From fba4542ba8c1bd4f792383edbd8b71a852360f1f Mon Sep 17 00:00:00 2001 From: Xtansia <1222964+Xtansia@users.noreply.github.com> Date: Mon, 12 Aug 2024 00:25:28 +0000 Subject: [PATCH] Re-generate client code using latest OpenSearch API specification (2024-08-12) Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --- src/ApiGenerator/opensearch-openapi.yaml | 1441 ++++++++++++----- .../_Generated/Descriptors.Cat.cs | 58 +- .../_Generated/Descriptors.Cluster.cs | 59 +- .../_Generated/Descriptors.DanglingIndices.cs | 12 +- .../_Generated/Descriptors.Indices.cs | 18 +- .../_Generated/Descriptors.Ingest.cs | 16 +- .../_Generated/Descriptors.NoNamespace.cs | 2 +- .../_Generated/Descriptors.Nodes.cs | 12 +- .../_Generated/Descriptors.Snapshot.cs | 52 +- .../_Generated/Descriptors.Tasks.cs | 4 +- .../_Generated/Requests.Cat.cs | 116 +- .../_Generated/Requests.Cluster.cs | 116 +- .../_Generated/Requests.DanglingIndices.cs | 24 +- .../_Generated/Requests.Indices.cs | 36 +- .../_Generated/Requests.Ingest.cs | 32 +- .../_Generated/Requests.NoNamespace.cs | 4 +- .../_Generated/Requests.Nodes.cs | 24 +- .../_Generated/Requests.Snapshot.cs | 104 +- .../_Generated/Requests.Tasks.cs | 8 +- .../RequestParameters.Cat.cs | 116 +- .../RequestParameters.Cluster.cs | 116 +- .../RequestParameters.DanglingIndices.cs | 24 +- .../RequestParameters.Indices.cs | 36 +- .../RequestParameters.Ingest.cs | 32 +- .../RequestParameters.NoNamespace.cs | 4 +- .../RequestParameters.Nodes.cs | 24 +- .../RequestParameters.Snapshot.cs | 104 +- .../RequestParameters.Tasks.cs | 8 +- 28 files changed, 1574 insertions(+), 1028 deletions(-) diff --git a/src/ApiGenerator/opensearch-openapi.yaml b/src/ApiGenerator/opensearch-openapi.yaml index ecd3ef3b9e..eda71662fd 100644 --- a/src/ApiGenerator/opensearch-openapi.yaml +++ b/src/ApiGenerator/opensearch-openapi.yaml @@ -2,7 +2,7 @@ openapi: 3.1.0 info: title: OpenSearch API Specification version: 1.0.0 - x-api-version: 2.15.0 + x-api-version: 2.16.0 paths: /: get: @@ -64,7 +64,7 @@ paths: x-version-added: '1.0' description: Creates or updates an alias. externalDocs: - url: https://opensearch.org/docs/latest/im-plugin/index-alias/#create-aliases + url: https://opensearch.org/docs/latest/api-reference/index-apis/update-alias/ parameters: - $ref: '#/components/parameters/indices.put_alias::query.cluster_manager_timeout' - $ref: '#/components/parameters/indices.put_alias::query.master_timeout' @@ -128,7 +128,7 @@ paths: x-version-added: '1.0' description: Creates or updates an alias. externalDocs: - url: https://opensearch.org/docs/latest/im-plugin/index-alias/#create-aliases + url: https://opensearch.org/docs/latest/api-reference/index-apis/update-alias/ parameters: - $ref: '#/components/parameters/indices.put_alias::path.name' - $ref: '#/components/parameters/indices.put_alias::query.cluster_manager_timeout' @@ -150,7 +150,7 @@ paths: x-version-added: '1.0' description: Creates or updates an alias. externalDocs: - url: https://opensearch.org/docs/latest/im-plugin/index-alias/#create-aliases + url: https://opensearch.org/docs/latest/api-reference/index-apis/update-alias/ parameters: - $ref: '#/components/parameters/indices.put_alias::path.name' - $ref: '#/components/parameters/indices.put_alias::query.cluster_manager_timeout' @@ -173,7 +173,7 @@ paths: x-version-added: '1.0' description: Updates index aliases. externalDocs: - url: https://opensearch.org/docs/latest/api-reference/alias/ + url: https://opensearch.org/docs/latest/api-reference/index-apis/alias/ parameters: - $ref: '#/components/parameters/indices.update_aliases::query.cluster_manager_timeout' - $ref: '#/components/parameters/indices.update_aliases::query.master_timeout' @@ -195,7 +195,7 @@ paths: x-version-added: '1.0' description: Creates or updates an alias. externalDocs: - url: https://opensearch.org/docs/latest/im-plugin/index-alias/#create-aliases + url: https://opensearch.org/docs/latest/api-reference/index-apis/update-alias/ parameters: - $ref: '#/components/parameters/indices.put_alias::path.name' - $ref: '#/components/parameters/indices.put_alias::query.cluster_manager_timeout' @@ -217,7 +217,7 @@ paths: x-version-added: '1.0' description: Creates or updates an alias. externalDocs: - url: https://opensearch.org/docs/latest/im-plugin/index-alias/#create-aliases + url: https://opensearch.org/docs/latest/api-reference/index-apis/update-alias/ parameters: - $ref: '#/components/parameters/indices.put_alias::path.name' - $ref: '#/components/parameters/indices.put_alias::query.cluster_manager_timeout' @@ -4071,6 +4071,107 @@ paths: - $ref: '#/components/parameters/_global::query.error_trace' - $ref: '#/components/parameters/_global::query.source' - $ref: '#/components/parameters/_global::query.filter_path' + /_plugins/_ppl: + post: + operationId: ppl.query.0 + x-operation-group: ppl.query + x-version-added: '1.0' + description: Send a PPL query to the PPL plugin. + externalDocs: + url: https://opensearch.org/docs/latest/search-plugins/sql/sql-ppl-api/ + parameters: + - $ref: '#/components/parameters/ppl.query::query.format' + - $ref: '#/components/parameters/ppl.query::query.sanitize' + - $ref: '#/components/parameters/_global::query.pretty' + - $ref: '#/components/parameters/_global::query.human' + - $ref: '#/components/parameters/_global::query.error_trace' + - $ref: '#/components/parameters/_global::query.source' + - $ref: '#/components/parameters/_global::query.filter_path' + requestBody: + $ref: '#/components/requestBodies/ppl.query' + responses: + '200': + $ref: '#/components/responses/ppl.query@200' + /_plugins/_ppl/_explain: + post: + operationId: ppl.explain.0 + x-operation-group: ppl.explain + x-version-added: '1.0' + description: Shows how a query is executed against OpenSearch. + externalDocs: + url: https://opensearch.org/docs/latest/search-plugins/sql/sql-ppl-api/ + parameters: + - $ref: '#/components/parameters/ppl.explain::query.format' + - $ref: '#/components/parameters/ppl.explain::query.sanitize' + - $ref: '#/components/parameters/_global::query.pretty' + - $ref: '#/components/parameters/_global::query.human' + - $ref: '#/components/parameters/_global::query.error_trace' + - $ref: '#/components/parameters/_global::query.source' + - $ref: '#/components/parameters/_global::query.filter_path' + requestBody: + $ref: '#/components/requestBodies/ppl.explain' + responses: + '200': + $ref: '#/components/responses/ppl.explain@200' + /_plugins/_ppl/stats: + get: + operationId: ppl.get_stats.0 + x-operation-group: ppl.get_stats + x-version-added: '1.0' + description: Collect metrics for the plugin within the interval. + externalDocs: + url: https://opensearch.org/docs/latest/search-plugins/sql/monitoring/ + parameters: + - $ref: '#/components/parameters/ppl.get_stats::query.format' + - $ref: '#/components/parameters/ppl.get_stats::query.sanitize' + - $ref: '#/components/parameters/_global::query.pretty' + - $ref: '#/components/parameters/_global::query.human' + - $ref: '#/components/parameters/_global::query.error_trace' + - $ref: '#/components/parameters/_global::query.source' + - $ref: '#/components/parameters/_global::query.filter_path' + responses: + '200': + $ref: '#/components/responses/ppl.get_stats@200' + post: + operationId: ppl.post_stats.1 + x-operation-group: ppl.post_stats + x-version-added: '1.0' + description: By a stats endpoint, you are able to collect metrics for the plugin within the interval. + externalDocs: + url: https://opensearch.org/docs/latest/search-plugins/sql/monitoring/ + parameters: + - $ref: '#/components/parameters/ppl.post_stats::query.format' + - $ref: '#/components/parameters/ppl.post_stats::query.sanitize' + - $ref: '#/components/parameters/_global::query.pretty' + - $ref: '#/components/parameters/_global::query.human' + - $ref: '#/components/parameters/_global::query.error_trace' + - $ref: '#/components/parameters/_global::query.source' + - $ref: '#/components/parameters/_global::query.filter_path' + requestBody: + $ref: '#/components/requestBodies/ppl.post_stats' + responses: + '200': + $ref: '#/components/responses/ppl.post_stats@200' + /_plugins/_query/settings: + put: + operationId: sql.settings.0 + x-operation-group: sql.settings + x-version-added: '1.0' + description: Adds SQL settings to the standard OpenSearch cluster settings. + externalDocs: + url: https://opensearch.org/docs/latest/search-plugins/sql/settings/ + parameters: + - $ref: '#/components/parameters/sql.settings::query.format' + - $ref: '#/components/parameters/_global::query.pretty' + - $ref: '#/components/parameters/_global::query.human' + - $ref: '#/components/parameters/_global::query.error_trace' + - $ref: '#/components/parameters/_global::query.source' + - $ref: '#/components/parameters/_global::query.filter_path' + requestBody: + $ref: '#/components/requestBodies/sql.settings' + responses: + '200': + $ref: '#/components/responses/sql.settings@200' /_plugins/_rollup/jobs/{id}: delete: operationId: rollups.delete.0 @@ -5626,6 +5727,108 @@ paths: - $ref: '#/components/parameters/_global::query.error_trace' - $ref: '#/components/parameters/_global::query.source' - $ref: '#/components/parameters/_global::query.filter_path' + /_plugins/_sql: + post: + operationId: sql.query.0 + x-operation-group: sql.query + x-version-added: '1.0' + description: Send a SQL/PPL query to the SQL plugin. + externalDocs: + url: https://opensearch.org/docs/latest/search-plugins/sql/sql-ppl-api/ + parameters: + - $ref: '#/components/parameters/sql.query::query.format' + - $ref: '#/components/parameters/sql.query::query.sanitize' + - $ref: '#/components/parameters/_global::query.pretty' + - $ref: '#/components/parameters/_global::query.human' + - $ref: '#/components/parameters/_global::query.error_trace' + - $ref: '#/components/parameters/_global::query.source' + - $ref: '#/components/parameters/_global::query.filter_path' + requestBody: + $ref: '#/components/requestBodies/sql.query' + responses: + '200': + $ref: '#/components/responses/sql.query@200' + /_plugins/_sql/_explain: + post: + operationId: sql.explain.0 + x-operation-group: sql.explain + x-version-added: '1.0' + description: Shows how a query is executed against OpenSearch. + externalDocs: + url: https://opensearch.org/docs/latest/search-plugins/sql/sql-ppl-api/ + parameters: + - $ref: '#/components/parameters/sql.explain::query.format' + - $ref: '#/components/parameters/sql.explain::query.sanitize' + - $ref: '#/components/parameters/_global::query.pretty' + - $ref: '#/components/parameters/_global::query.human' + - $ref: '#/components/parameters/_global::query.error_trace' + - $ref: '#/components/parameters/_global::query.source' + - $ref: '#/components/parameters/_global::query.filter_path' + requestBody: + $ref: '#/components/requestBodies/sql.explain' + responses: + '200': + $ref: '#/components/responses/sql.explain@200' + /_plugins/_sql/close: + post: + operationId: sql.close.0 + x-operation-group: sql.close + x-version-added: '1.0' + description: Clear the cursor context. + externalDocs: + url: https://opensearch.org/docs/latest/search-plugins/sql/sql-ppl-api/ + parameters: + - $ref: '#/components/parameters/sql.close::query.format' + - $ref: '#/components/parameters/sql.close::query.sanitize' + - $ref: '#/components/parameters/_global::query.pretty' + - $ref: '#/components/parameters/_global::query.human' + - $ref: '#/components/parameters/_global::query.error_trace' + - $ref: '#/components/parameters/_global::query.source' + - $ref: '#/components/parameters/_global::query.filter_path' + requestBody: + $ref: '#/components/requestBodies/sql.close' + responses: + '200': + $ref: '#/components/responses/sql.close@200' + /_plugins/_sql/stats: + get: + operationId: sql.get_stats.0 + x-operation-group: sql.get_stats + x-version-added: '1.0' + description: Collect metrics for the plugin within the interval. + externalDocs: + url: https://opensearch.org/docs/latest/search-plugins/sql/monitoring/ + parameters: + - $ref: '#/components/parameters/sql.get_stats::query.format' + - $ref: '#/components/parameters/sql.get_stats::query.sanitize' + - $ref: '#/components/parameters/_global::query.pretty' + - $ref: '#/components/parameters/_global::query.human' + - $ref: '#/components/parameters/_global::query.error_trace' + - $ref: '#/components/parameters/_global::query.source' + - $ref: '#/components/parameters/_global::query.filter_path' + responses: + '200': + $ref: '#/components/responses/sql.get_stats@200' + post: + operationId: sql.post_stats.1 + x-operation-group: sql.post_stats + x-version-added: '1.0' + description: By a stats endpoint, you are able to collect metrics for the plugin within the interval. + externalDocs: + url: https://opensearch.org/docs/latest/search-plugins/sql/monitoring/ + parameters: + - $ref: '#/components/parameters/sql.post_stats::query.format' + - $ref: '#/components/parameters/sql.post_stats::query.sanitize' + - $ref: '#/components/parameters/_global::query.pretty' + - $ref: '#/components/parameters/_global::query.human' + - $ref: '#/components/parameters/_global::query.error_trace' + - $ref: '#/components/parameters/_global::query.source' + - $ref: '#/components/parameters/_global::query.filter_path' + requestBody: + $ref: '#/components/requestBodies/sql.post_stats' + responses: + '200': + $ref: '#/components/responses/sql.post_stats@200' /_plugins/_transform: get: operationId: transforms.search.0 @@ -5762,7 +5965,7 @@ paths: operationId: transforms.stop.0 x-operation-group: transforms.stop x-version-added: '1.0' - description: stop transform. + description: Stop transform. externalDocs: url: https://opensearch.org/docs/latest/im-plugin/index-transforms/transforms-apis/#stop-a-transform-job parameters: @@ -7796,7 +7999,7 @@ paths: x-version-added: '1.0' description: Creates or updates an alias. externalDocs: - url: https://opensearch.org/docs/latest/im-plugin/index-alias/#create-aliases + url: https://opensearch.org/docs/latest/api-reference/index-apis/update-alias/ parameters: - $ref: '#/components/parameters/indices.put_alias::path.index' - $ref: '#/components/parameters/indices.put_alias::query.cluster_manager_timeout' @@ -7884,7 +8087,7 @@ paths: x-version-added: '1.0' description: Creates or updates an alias. externalDocs: - url: https://opensearch.org/docs/latest/im-plugin/index-alias/#create-aliases + url: https://opensearch.org/docs/latest/api-reference/index-apis/update-alias/ parameters: - $ref: '#/components/parameters/indices.put_alias::path.index' - $ref: '#/components/parameters/indices.put_alias::path.name' @@ -7907,7 +8110,7 @@ paths: x-version-added: '1.0' description: Creates or updates an alias. externalDocs: - url: https://opensearch.org/docs/latest/im-plugin/index-alias/#create-aliases + url: https://opensearch.org/docs/latest/api-reference/index-apis/update-alias/ parameters: - $ref: '#/components/parameters/indices.put_alias::path.index' - $ref: '#/components/parameters/indices.put_alias::path.name' @@ -7931,7 +8134,7 @@ paths: x-version-added: '1.0' description: Creates or updates an alias. externalDocs: - url: https://opensearch.org/docs/latest/im-plugin/index-alias/#create-aliases + url: https://opensearch.org/docs/latest/api-reference/index-apis/update-alias/ parameters: - $ref: '#/components/parameters/indices.put_alias::path.index' - $ref: '#/components/parameters/indices.put_alias::query.cluster_manager_timeout' @@ -7975,7 +8178,7 @@ paths: x-version-added: '1.0' description: Creates or updates an alias. externalDocs: - url: https://opensearch.org/docs/latest/im-plugin/index-alias/#create-aliases + url: https://opensearch.org/docs/latest/api-reference/index-apis/update-alias/ parameters: - $ref: '#/components/parameters/indices.put_alias::path.index' - $ref: '#/components/parameters/indices.put_alias::path.name' @@ -7998,7 +8201,7 @@ paths: x-version-added: '1.0' description: Creates or updates an alias. externalDocs: - url: https://opensearch.org/docs/latest/im-plugin/index-alias/#create-aliases + url: https://opensearch.org/docs/latest/api-reference/index-apis/update-alias/ parameters: - $ref: '#/components/parameters/indices.put_alias::path.index' - $ref: '#/components/parameters/indices.put_alias::path.name' @@ -10241,6 +10444,95 @@ paths: $ref: '#/components/responses/knn.stats@200' deprecated: true x-ignorable: true + /_opendistro/_ppl: + post: + operationId: ppl.query.0_superseded + x-operation-group: ppl.query + x-version-added: '1.0' + description: Send a PPL query to the PPL plugin. + externalDocs: + url: https://opensearch.org/docs/latest/search-plugins/sql/sql-ppl-api/ + parameters: + - $ref: '#/components/parameters/ppl.query::query.format' + - $ref: '#/components/parameters/ppl.query::query.sanitize' + - $ref: '#/components/parameters/_global::query.pretty' + - $ref: '#/components/parameters/_global::query.human' + - $ref: '#/components/parameters/_global::query.error_trace' + - $ref: '#/components/parameters/_global::query.source' + - $ref: '#/components/parameters/_global::query.filter_path' + requestBody: + $ref: '#/components/requestBodies/ppl.query' + responses: + '200': + $ref: '#/components/responses/ppl.query@200' + deprecated: true + x-ignorable: true + /_opendistro/_ppl/_explain: + post: + operationId: ppl.explain.0_superseded + x-operation-group: ppl.explain + x-version-added: '1.0' + description: Shows how a query is executed against OpenSearch. + externalDocs: + url: https://opensearch.org/docs/latest/search-plugins/sql/sql-ppl-api/ + parameters: + - $ref: '#/components/parameters/ppl.explain::query.format' + - $ref: '#/components/parameters/ppl.explain::query.sanitize' + - $ref: '#/components/parameters/_global::query.pretty' + - $ref: '#/components/parameters/_global::query.human' + - $ref: '#/components/parameters/_global::query.error_trace' + - $ref: '#/components/parameters/_global::query.source' + - $ref: '#/components/parameters/_global::query.filter_path' + requestBody: + $ref: '#/components/requestBodies/ppl.explain' + responses: + '200': + $ref: '#/components/responses/ppl.explain@200' + deprecated: true + x-ignorable: true + /_opendistro/_ppl/stats: + get: + operationId: ppl.get_stats.0_superseded + x-operation-group: ppl.get_stats + x-version-added: '1.0' + description: Collect metrics for the plugin within the interval. + externalDocs: + url: https://opensearch.org/docs/latest/search-plugins/sql/monitoring/ + parameters: + - $ref: '#/components/parameters/ppl.get_stats::query.format' + - $ref: '#/components/parameters/ppl.get_stats::query.sanitize' + - $ref: '#/components/parameters/_global::query.pretty' + - $ref: '#/components/parameters/_global::query.human' + - $ref: '#/components/parameters/_global::query.error_trace' + - $ref: '#/components/parameters/_global::query.source' + - $ref: '#/components/parameters/_global::query.filter_path' + responses: + '200': + $ref: '#/components/responses/ppl.get_stats@200' + deprecated: true + x-ignorable: true + post: + operationId: ppl.post_stats.1_superseded + x-operation-group: ppl.post_stats + x-version-added: '1.0' + description: By a stats endpoint, you are able to collect metrics for the plugin within the interval. + externalDocs: + url: https://opensearch.org/docs/latest/search-plugins/sql/monitoring/ + parameters: + - $ref: '#/components/parameters/ppl.post_stats::query.format' + - $ref: '#/components/parameters/ppl.post_stats::query.sanitize' + - $ref: '#/components/parameters/_global::query.pretty' + - $ref: '#/components/parameters/_global::query.human' + - $ref: '#/components/parameters/_global::query.error_trace' + - $ref: '#/components/parameters/_global::query.source' + - $ref: '#/components/parameters/_global::query.filter_path' + requestBody: + $ref: '#/components/requestBodies/ppl.post_stats' + responses: + '200': + $ref: '#/components/responses/ppl.post_stats@200' + deprecated: true + x-ignorable: true /_opendistro/_rollup/jobs/{rollupID}: get: operationId: rollups.get.0_superseded @@ -11603,6 +11895,140 @@ paths: - $ref: '#/components/parameters/_global::query.filter_path' deprecated: true x-ignorable: true + /_opendistro/_sql: + post: + operationId: sql.query.0_superseded + x-operation-group: sql.query + x-version-added: '1.0' + description: Send a SQL/PPL query to the SQL plugin. + externalDocs: + url: https://opensearch.org/docs/latest/search-plugins/sql/sql-ppl-api/ + parameters: + - $ref: '#/components/parameters/sql.query::query.format' + - $ref: '#/components/parameters/sql.query::query.sanitize' + - $ref: '#/components/parameters/_global::query.pretty' + - $ref: '#/components/parameters/_global::query.human' + - $ref: '#/components/parameters/_global::query.error_trace' + - $ref: '#/components/parameters/_global::query.source' + - $ref: '#/components/parameters/_global::query.filter_path' + requestBody: + $ref: '#/components/requestBodies/sql.query' + responses: + '200': + $ref: '#/components/responses/sql.query@200' + deprecated: true + x-ignorable: true + /_opendistro/_sql/_explain: + post: + operationId: sql.explain.0_superseded + x-operation-group: sql.explain + x-version-added: '1.0' + description: Shows how a query is executed against OpenSearch. + externalDocs: + url: https://opensearch.org/docs/latest/search-plugins/sql/sql-ppl-api/ + parameters: + - $ref: '#/components/parameters/sql.explain::query.format' + - $ref: '#/components/parameters/sql.explain::query.sanitize' + - $ref: '#/components/parameters/_global::query.pretty' + - $ref: '#/components/parameters/_global::query.human' + - $ref: '#/components/parameters/_global::query.error_trace' + - $ref: '#/components/parameters/_global::query.source' + - $ref: '#/components/parameters/_global::query.filter_path' + requestBody: + $ref: '#/components/requestBodies/sql.explain' + responses: + '200': + $ref: '#/components/responses/sql.explain@200' + deprecated: true + x-ignorable: true + /_opendistro/_sql/close: + post: + operationId: sql.close.0_superseded + x-operation-group: sql.close + x-version-added: '1.0' + description: Clear the cursor context. + externalDocs: + url: https://opensearch.org/docs/latest/search-plugins/sql/sql-ppl-api/ + parameters: + - $ref: '#/components/parameters/sql.close::query.format' + - $ref: '#/components/parameters/sql.close::query.sanitize' + - $ref: '#/components/parameters/_global::query.pretty' + - $ref: '#/components/parameters/_global::query.human' + - $ref: '#/components/parameters/_global::query.error_trace' + - $ref: '#/components/parameters/_global::query.source' + - $ref: '#/components/parameters/_global::query.filter_path' + requestBody: + $ref: '#/components/requestBodies/sql.close' + responses: + '200': + $ref: '#/components/responses/sql.close@200' + deprecated: true + x-ignorable: true + /_opendistro/_sql/settings: + put: + operationId: sql.settings.0_superseded + x-operation-group: sql.settings + x-version-added: '1.0' + description: Adds SQL settings to the standard OpenSearch cluster settings. + externalDocs: + url: https://opensearch.org/docs/latest/search-plugins/sql/settings/ + parameters: + - $ref: '#/components/parameters/sql.settings::query.format' + - $ref: '#/components/parameters/_global::query.pretty' + - $ref: '#/components/parameters/_global::query.human' + - $ref: '#/components/parameters/_global::query.error_trace' + - $ref: '#/components/parameters/_global::query.source' + - $ref: '#/components/parameters/_global::query.filter_path' + requestBody: + $ref: '#/components/requestBodies/sql.settings' + responses: + '200': + $ref: '#/components/responses/sql.settings@200' + deprecated: true + x-ignorable: true + /_opendistro/_sql/stats: + get: + operationId: sql.get_stats.0_superseded + x-operation-group: sql.get_stats + x-version-added: '1.0' + description: Collect metrics for the plugin within the interval. + externalDocs: + url: https://opensearch.org/docs/latest/search-plugins/sql/monitoring/ + parameters: + - $ref: '#/components/parameters/sql.get_stats::query.format' + - $ref: '#/components/parameters/sql.get_stats::query.sanitize' + - $ref: '#/components/parameters/_global::query.pretty' + - $ref: '#/components/parameters/_global::query.human' + - $ref: '#/components/parameters/_global::query.error_trace' + - $ref: '#/components/parameters/_global::query.source' + - $ref: '#/components/parameters/_global::query.filter_path' + responses: + '200': + $ref: '#/components/responses/sql.get_stats@200' + deprecated: true + x-ignorable: true + post: + operationId: sql.post_stats.1_superseded + x-operation-group: sql.post_stats + x-version-added: '1.0' + description: By a stats endpoint, you are able to collect metrics for the plugin within the interval. + externalDocs: + url: https://opensearch.org/docs/latest/search-plugins/sql/monitoring/ + parameters: + - $ref: '#/components/parameters/sql.post_stats::query.format' + - $ref: '#/components/parameters/sql.post_stats::query.sanitize' + - $ref: '#/components/parameters/_global::query.pretty' + - $ref: '#/components/parameters/_global::query.human' + - $ref: '#/components/parameters/_global::query.error_trace' + - $ref: '#/components/parameters/_global::query.source' + - $ref: '#/components/parameters/_global::query.filter_path' + requestBody: + $ref: '#/components/requestBodies/sql.post_stats' + responses: + '200': + $ref: '#/components/responses/sql.post_stats@200' + deprecated: true + x-ignorable: true components: parameters: _global::query.pretty: @@ -19475,6 +19901,58 @@ components: schema: type: string required: true + ppl.explain::query.format: + name: format + in: query + description: A short version of the Accept header, e.g. json, yaml. + schema: + type: string + ppl.explain::query.sanitize: + name: sanitize + in: query + description: Specifies whether to escape special characters in the results. + schema: + type: boolean + default: true + ppl.get_stats::query.format: + name: format + in: query + description: A short version of the Accept header, e.g. json, yaml. + schema: + type: string + ppl.get_stats::query.sanitize: + name: sanitize + in: query + description: Specifies whether to escape special characters in the results. + schema: + type: boolean + default: true + ppl.post_stats::query.format: + name: format + in: query + description: A short version of the Accept header, e.g. json, yaml. + schema: + type: string + ppl.post_stats::query.sanitize: + name: sanitize + in: query + description: Specifies whether to escape special characters in the results. + schema: + type: boolean + default: true + ppl.query::query.format: + name: format + in: query + description: A short version of the Accept header, e.g. json, yaml. + schema: + type: string + ppl.query::query.sanitize: + name: sanitize + in: query + description: Specifies whether to escape special characters in the results. + schema: + type: boolean + default: true put_script::path.context: in: path name: context @@ -21070,6 +21548,77 @@ components: schema: $ref: '#/components/schemas/_common:Duration' style: form + sql.close::query.format: + name: format + in: query + description: A short version of the Accept header, e.g. json, yaml. + schema: + type: string + sql.close::query.sanitize: + name: sanitize + in: query + description: Specifies whether to escape special characters in the results + schema: + type: boolean + default: true + sql.explain::query.format: + name: format + in: query + description: A short version of the Accept header, e.g. json, yaml. + schema: + type: string + sql.explain::query.sanitize: + name: sanitize + in: query + description: Specifies whether to escape special characters in the results + schema: + type: boolean + default: true + sql.get_stats::query.format: + name: format + in: query + description: A short version of the Accept header, e.g. json, yaml. + schema: + type: string + sql.get_stats::query.sanitize: + name: sanitize + in: query + description: Specifies whether to escape special characters in the results + schema: + type: boolean + default: true + sql.post_stats::query.format: + name: format + in: query + description: A short version of the Accept header, e.g. json, yaml. + schema: + type: string + sql.post_stats::query.sanitize: + name: sanitize + in: query + description: Specifies whether to escape special characters in the results + schema: + type: boolean + default: true + sql.query::query.format: + name: format + in: query + description: A short version of the Accept header, e.g. json, yaml. + schema: + type: string + sql.query::query.sanitize: + name: sanitize + in: query + description: Specifies whether to escape special characters in the results + schema: + type: boolean + default: true + sql.settings::query.format: + name: format + in: query + description: A short version of the Accept header, e.g. json, yaml. + schema: + type: string tasks.cancel::path.task_id: in: path name: task_id @@ -22521,18 +23070,7 @@ components: ml.search_models: content: application/json: - schema: - type: object - properties: - query: - type: object - description: The query. - size: - type: integer - description: The number of models to return. - required: - - query - - size + $ref: '#/components/schemas/ml._common:SearchModelsQuery' msearch: content: application/x-ndjson: @@ -22609,6 +23147,24 @@ components: schema: $ref: '#/components/schemas/notifications._common:NotificationsConfig' required: true + ppl.explain: + content: + application/json: + schema: + $ref: '#/components/schemas/sql._common:Explain' + required: true + ppl.post_stats: + content: + application/json: + schema: + $ref: '#/components/schemas/sql._common:Stats' + required: true + ppl.query: + content: + application/json: + schema: + $ref: '#/components/schemas/sql._common:Query' + required: true put_script: content: application/json: @@ -22678,7 +23234,6 @@ components: examples: RemoteStoreRestore_example1: summary: Examples for Post Remote Storage Restore Operation. - description: '' value: indices: - books @@ -23212,6 +23767,38 @@ components: rename_replacement: type: string description: Details of what to restore + sql.close: + content: + application/json: + schema: + $ref: '#/components/schemas/sql._common:SqlClose' + required: true + sql.explain: + content: + application/json: + schema: + $ref: '#/components/schemas/sql._common:Explain' + required: true + sql.post_stats: + content: + application/json: + schema: + $ref: '#/components/schemas/sql._common:Stats' + required: true + sql.query: + content: + application/json: + schema: + $ref: '#/components/schemas/sql._common:Query' + required: true + sql.settings: + content: + application/json: + schema: + anyOf: + - $ref: '#/components/schemas/sql._common:SqlSettingsPlain' + - $ref: '#/components/schemas/sql._common:SqlSettings' + required: true termvectors: content: application/json: @@ -23285,7 +23872,6 @@ components: description: The search definition using the Query DSL responses: bulk@200: - description: '' content: application/json: schema: @@ -23310,7 +23896,6 @@ components: - items - took cat.aliases@200: - description: '' content: text/plain: type: string @@ -23320,7 +23905,6 @@ components: items: $ref: '#/components/schemas/cat.aliases:AliasesRecord' cat.all_pit_segments@200: - description: '' content: text/plain: type: string @@ -23330,7 +23914,6 @@ components: items: $ref: '#/components/schemas/cat._common:CatPitSegmentsRecord' cat.allocation@200: - description: '' content: text/plain: type: string @@ -23340,7 +23923,6 @@ components: items: $ref: '#/components/schemas/cat.allocation:AllocationRecord' cat.cluster_manager@200: - description: '' content: text/plain: type: string @@ -23350,7 +23932,6 @@ components: items: $ref: '#/components/schemas/cat.cluster_manager:ClusterManagerRecord' cat.count@200: - description: '' content: text/plain: type: string @@ -23360,7 +23941,6 @@ components: items: $ref: '#/components/schemas/cat.count:CountRecord' cat.fielddata@200: - description: '' content: text/plain: type: string @@ -23370,7 +23950,6 @@ components: items: $ref: '#/components/schemas/cat.fielddata:FielddataRecord' cat.health@200: - description: '' content: text/plain: type: string @@ -23395,13 +23974,11 @@ components: items: $ref: '#/components/schemas/cat.health:HealthRecord' cat.help@200: - description: '' content: text/plain: schema: type: string cat.indices@200: - description: '' content: text/plain: type: string @@ -23426,7 +24003,6 @@ components: items: $ref: '#/components/schemas/cat.indices:IndicesRecord' cat.master@200: - description: '' content: text/plain: type: string @@ -23436,7 +24012,6 @@ components: items: $ref: '#/components/schemas/cat.master:MasterRecord' cat.nodeattrs@200: - description: '' content: text/plain: type: string @@ -23446,7 +24021,6 @@ components: items: $ref: '#/components/schemas/cat.nodeattrs:NodeAttributesRecord' cat.nodes@200: - description: '' content: text/plain: type: string @@ -23456,7 +24030,6 @@ components: items: $ref: '#/components/schemas/cat.nodes:NodesRecord' cat.pending_tasks@200: - description: '' content: text/plain: type: string @@ -23466,7 +24039,6 @@ components: items: $ref: '#/components/schemas/cat.pending_tasks:PendingTasksRecord' cat.pit_segments@200: - description: '' content: text/plain: type: string @@ -23476,7 +24048,6 @@ components: items: $ref: '#/components/schemas/cat._common:CatPitSegmentsRecord' cat.plugins@200: - description: '' content: text/plain: type: string @@ -23486,7 +24057,6 @@ components: items: $ref: '#/components/schemas/cat.plugins:PluginsRecord' cat.recovery@200: - description: '' content: text/plain: type: string @@ -23496,7 +24066,6 @@ components: items: $ref: '#/components/schemas/cat.recovery:RecoveryRecord' cat.repositories@200: - description: '' content: text/plain: type: string @@ -23506,7 +24075,6 @@ components: items: $ref: '#/components/schemas/cat.repositories:RepositoriesRecord' cat.segment_replication@200: - description: '' content: text/plain: type: string @@ -23516,7 +24084,6 @@ components: items: $ref: '#/components/schemas/cat._common:CatSegmentReplicationRecord' cat.segments@200: - description: '' content: text/plain: type: string @@ -23526,7 +24093,6 @@ components: items: $ref: '#/components/schemas/cat.segments:SegmentsRecord' cat.shards@200: - description: '' content: text/plain: type: string @@ -23536,7 +24102,6 @@ components: items: $ref: '#/components/schemas/cat.shards:ShardsRecord' cat.snapshots@200: - description: '' content: text/plain: type: string @@ -23546,7 +24111,6 @@ components: items: $ref: '#/components/schemas/cat.snapshots:SnapshotsRecord' cat.tasks@200: - description: '' content: text/plain: type: string @@ -23556,7 +24120,6 @@ components: items: $ref: '#/components/schemas/cat.tasks:TasksRecord' cat.templates@200: - description: '' content: text/plain: type: string @@ -23566,7 +24129,6 @@ components: items: $ref: '#/components/schemas/cat.templates:TemplatesRecord' cat.thread_pool@200: - description: '' content: text/plain: type: string @@ -23576,7 +24138,6 @@ components: items: $ref: '#/components/schemas/cat.thread_pool:ThreadPoolRecord' clear_scroll@200: - description: '' content: application/json: schema: @@ -23590,7 +24151,6 @@ components: - num_freed - succeeded cluster.allocation_explain@200: - description: '' content: application/json: schema: @@ -23658,25 +24218,19 @@ components: - primary - shard cluster.delete_component_template@200: - description: '' content: application/json: schema: $ref: '#/components/schemas/_common:AcknowledgedResponseBase' - cluster.delete_decommission_awareness@200: - description: '' + cluster.delete_decommission_awareness@200: {} cluster.delete_voting_config_exclusions@200: - description: '' content: application/json: {} - cluster.delete_weighted_routing@200: - description: '' + cluster.delete_weighted_routing@200: {} cluster.exists_component_template@200: - description: '' content: application/json: {} cluster.get_component_template@200: - description: '' content: application/json: schema: @@ -23688,10 +24242,8 @@ components: $ref: '#/components/schemas/cluster._common:ComponentTemplate' required: - component_templates - cluster.get_decommission_awareness@200: - description: '' + cluster.get_decommission_awareness@200: {} cluster.get_settings@200: - description: '' content: application/json: schema: @@ -23712,16 +24264,13 @@ components: required: - persistent - transient - cluster.get_weighted_routing@200: - description: '' + cluster.get_weighted_routing@200: {} cluster.health@200: - description: '' content: application/json: schema: $ref: '#/components/schemas/cluster.health:HealthResponseBody' cluster.pending_tasks@200: - description: '' content: application/json: schema: @@ -23734,19 +24283,15 @@ components: required: - tasks cluster.post_voting_config_exclusions@200: - description: '' content: application/json: {} cluster.put_component_template@200: - description: '' content: application/json: schema: $ref: '#/components/schemas/_common:AcknowledgedResponseBase' - cluster.put_decommission_awareness@200: - description: '' + cluster.put_decommission_awareness@200: {} cluster.put_settings@200: - description: '' content: application/json: schema: @@ -23764,10 +24309,8 @@ components: - acknowledged - persistent - transient - cluster.put_weighted_routing@200: - description: '' + cluster.put_weighted_routing@200: {} cluster.remote_info@200: - description: '' content: application/json: schema: @@ -23775,7 +24318,6 @@ components: additionalProperties: $ref: '#/components/schemas/cluster.remote_info:ClusterRemoteInfo' cluster.reroute@200: - description: '' content: application/json: schema: @@ -23796,19 +24338,16 @@ components: required: - acknowledged cluster.state@200: - description: '' content: application/json: schema: type: object cluster.stats@200: - description: '' content: application/json: schema: $ref: '#/components/schemas/cluster.stats:StatsResponseBase' count@200: - description: '' content: application/json: schema: @@ -23822,7 +24361,6 @@ components: - _shards - count create_pit@200: - description: '' content: application/json: schema: @@ -23836,25 +24374,21 @@ components: type: integer format: int64 create@200: - description: '' content: application/json: schema: $ref: '#/components/schemas/_common:WriteResponseBase' dangling_indices.delete_dangling_index@200: - description: '' content: application/json: schema: $ref: '#/components/schemas/_common:AcknowledgedResponseBase' dangling_indices.import_dangling_index@200: - description: '' content: application/json: schema: $ref: '#/components/schemas/_common:AcknowledgedResponseBase' dangling_indices.list_dangling_indices@200: - description: '' content: application/json: schema: @@ -23871,7 +24405,6 @@ components: required: - dangling_indices delete_all_pits@200: - description: '' content: application/json: schema: @@ -23882,13 +24415,11 @@ components: items: $ref: '#/components/schemas/_core._common:PitsDetailsDeleteAll' delete_by_query_rethrottle@200: - description: '' content: application/json: schema: $ref: '#/components/schemas/tasks._common:TaskListResponseBase' delete_by_query@200: - description: '' content: application/json: schema: @@ -23929,7 +24460,6 @@ components: version_conflicts: type: number delete_pit@200: - description: '' content: application/json: schema: @@ -23940,27 +24470,22 @@ components: items: $ref: '#/components/schemas/_core._common:DeletedPit' delete_script@200: - description: '' content: application/json: schema: $ref: '#/components/schemas/_common:AcknowledgedResponseBase' delete@200: - description: '' content: application/json: schema: $ref: '#/components/schemas/_common:WriteResponseBase' exists_source@200: - description: '' content: application/json: {} exists@200: - description: '' content: application/json: {} explain@200: - description: '' content: application/json: schema: @@ -23981,7 +24506,6 @@ components: - _index - matched field_caps@200: - description: '' content: application/json: schema: @@ -23999,7 +24523,6 @@ components: - fields - indices get_all_pits@200: - description: '' content: application/json: schema: @@ -24010,7 +24533,6 @@ components: items: $ref: '#/components/schemas/_core._common:PitDetail' get_script_context@200: - description: '' content: application/json: schema: @@ -24023,7 +24545,6 @@ components: required: - contexts get_script_languages@200: - description: '' content: application/json: schema: @@ -24041,7 +24562,6 @@ components: - language_contexts - types_allowed get_script@200: - description: '' content: application/json: schema: @@ -24057,31 +24577,26 @@ components: - _id - found get_source@200: - description: '' content: application/json: schema: type: object get@200: - description: '' content: application/json: schema: $ref: '#/components/schemas/_core.get:GetResult' index@200: - description: '' content: application/json: schema: $ref: '#/components/schemas/_common:WriteResponseBase' index@201: - description: '' content: application/json: schema: $ref: '#/components/schemas/_common:WriteResponseBase' indices.add_block@200: - description: '' content: application/json: schema: @@ -24100,7 +24615,6 @@ components: - indices - shards_acknowledged indices.analyze@200: - description: '' content: application/json: schema: @@ -24113,13 +24627,11 @@ components: items: $ref: '#/components/schemas/indices.analyze:AnalyzeToken' indices.clear_cache@200: - description: '' content: application/json: schema: $ref: '#/components/schemas/_common:ShardsOperationResponseBase' indices.clone@200: - description: '' content: application/json: schema: @@ -24136,7 +24648,6 @@ components: - index - shards_acknowledged indices.close@200: - description: '' content: application/json: schema: @@ -24155,13 +24666,11 @@ components: - indices - shards_acknowledged indices.create_data_stream@200: - description: '' content: application/json: schema: $ref: '#/components/schemas/_common:AcknowledgedResponseBase' indices.create@200: - description: '' content: application/json: schema: @@ -24178,7 +24687,6 @@ components: - index - shards_acknowledged indices.data_streams_stats@200: - description: '' content: application/json: schema: @@ -24209,63 +24717,51 @@ components: - data_streams - total_store_size_bytes indices.delete_alias@200: - description: '' content: application/json: schema: $ref: '#/components/schemas/_common:AcknowledgedResponseBase' indices.delete_data_stream@200: - description: '' content: application/json: schema: $ref: '#/components/schemas/_common:AcknowledgedResponseBase' indices.delete_index_template@200: - description: '' content: application/json: schema: $ref: '#/components/schemas/_common:AcknowledgedResponseBase' indices.delete_template@200: - description: '' content: application/json: schema: $ref: '#/components/schemas/_common:AcknowledgedResponseBase' indices.delete@200: - description: '' content: application/json: schema: $ref: '#/components/schemas/_common:IndicesResponseBase' indices.exists_alias@200: - description: '' content: application/json: {} indices.exists_index_template@200: - description: '' content: application/json: {} indices.exists_template@200: - description: '' content: application/json: {} indices.exists@200: - description: '' content: application/json: {} indices.exists@404: - description: '' content: application/json: {} indices.flush@200: - description: '' content: application/json: schema: $ref: '#/components/schemas/_common:ShardsOperationResponseBase' indices.forcemerge@200: - description: '' content: application/json: schema: @@ -24279,7 +24775,6 @@ components: you can use the task_id to get the status of the task at _tasks/ type: string indices.get_alias@200: - description: '' content: application/json: schema: @@ -24287,7 +24782,6 @@ components: additionalProperties: $ref: '#/components/schemas/indices.get_alias:IndexAliases' indices.get_data_stream@200: - description: '' content: application/json: schema: @@ -24300,7 +24794,6 @@ components: required: - data_streams indices.get_field_mapping@200: - description: '' content: application/json: schema: @@ -24308,7 +24801,6 @@ components: additionalProperties: $ref: '#/components/schemas/indices.get_field_mapping:TypeFieldMappings' indices.get_index_template@200: - description: '' content: application/json: schema: @@ -24321,7 +24813,6 @@ components: required: - index_templates indices.get_mapping@200: - description: '' content: application/json: schema: @@ -24329,7 +24820,6 @@ components: additionalProperties: $ref: '#/components/schemas/indices.get_mapping:IndexMappingRecord' indices.get_settings@200: - description: '' content: application/json: schema: @@ -24337,17 +24827,14 @@ components: additionalProperties: $ref: '#/components/schemas/indices._common:IndexState' indices.get_template@200: - description: '' content: application/json: schema: type: object additionalProperties: $ref: '#/components/schemas/indices._common:TemplateMapping' - indices.get_upgrade@200: - description: '' + indices.get_upgrade@200: {} indices.get@200: - description: '' content: application/json: schema: @@ -24355,7 +24842,6 @@ components: additionalProperties: $ref: '#/components/schemas/indices._common:IndexState' indices.open@200: - description: '' content: application/json: schema: @@ -24376,37 +24862,31 @@ components: - shards_acknowledged additionalProperties: false indices.put_alias@200: - description: '' content: application/json: schema: $ref: '#/components/schemas/_common:AcknowledgedResponseBase' indices.put_index_template@200: - description: '' content: application/json: schema: $ref: '#/components/schemas/_common:AcknowledgedResponseBase' indices.put_mapping@200: - description: '' content: application/json: schema: $ref: '#/components/schemas/_common:IndicesResponseBase' indices.put_settings@200: - description: '' content: application/json: schema: $ref: '#/components/schemas/_common:AcknowledgedResponseBase' indices.put_template@200: - description: '' content: application/json: schema: $ref: '#/components/schemas/_common:AcknowledgedResponseBase' indices.recovery@200: - description: '' content: application/json: schema: @@ -24414,13 +24894,11 @@ components: additionalProperties: $ref: '#/components/schemas/indices.recovery:RecoveryStatus' indices.refresh@200: - description: '' content: application/json: schema: $ref: '#/components/schemas/_common:ShardsOperationResponseBase' indices.resolve_index@200: - description: '' content: application/json: schema: @@ -24443,7 +24921,6 @@ components: - data_streams - indices indices.rollover@200: - description: '' content: application/json: schema: @@ -24474,7 +24951,6 @@ components: - rolled_over - shards_acknowledged indices.segments@200: - description: '' content: application/json: schema: @@ -24490,7 +24966,6 @@ components: - _shards - indices indices.shard_stores@200: - description: '' content: application/json: schema: @@ -24503,7 +24978,6 @@ components: required: - indices indices.shrink@200: - description: '' content: application/json: schema: @@ -24520,13 +24994,11 @@ components: - index - shards_acknowledged indices.simulate_index_template@200: - description: '' content: application/json: schema: type: object indices.simulate_template@200: - description: '' content: application/json: schema: @@ -24541,7 +25013,6 @@ components: required: - template indices.split@200: - description: '' content: application/json: schema: @@ -24558,7 +25029,6 @@ components: - index - shards_acknowledged indices.stats@200: - description: '' content: application/json: schema: @@ -24576,15 +25046,12 @@ components: - _all - _shards indices.update_aliases@200: - description: '' content: application/json: schema: $ref: '#/components/schemas/_common:AcknowledgedResponseBase' - indices.upgrade@200: - description: '' + indices.upgrade@200: {} indices.validate_query@200: - description: '' content: application/json: schema: @@ -24603,7 +25070,6 @@ components: required: - valid info@200: - description: '' content: application/json: schema: @@ -24626,13 +25092,11 @@ components: - tagline - version ingest.delete_pipeline@200: - description: '' content: application/json: schema: $ref: '#/components/schemas/_common:AcknowledgedResponseBase' ingest.get_pipeline@200: - description: '' content: application/json: schema: @@ -24640,7 +25104,6 @@ components: additionalProperties: $ref: '#/components/schemas/ingest._common:Pipeline' ingest.processor_grok@200: - description: '' content: application/json: schema: @@ -24653,13 +25116,11 @@ components: required: - patterns ingest.put_pipeline@200: - description: '' content: application/json: schema: $ref: '#/components/schemas/_common:AcknowledgedResponseBase' ingest.simulate@200: - description: '' content: application/json: schema: @@ -24671,20 +25132,13 @@ components: $ref: '#/components/schemas/ingest.simulate:PipelineSimulation' required: - docs - knn.delete_model@200: - description: '' - knn.get_model@200: - description: '' - knn.search_models@200: - description: '' - knn.stats@200: - description: '' - knn.train_model@200: - description: '' - knn.warmup@200: - description: '' + knn.delete_model@200: {} + knn.get_model@200: {} + knn.search_models@200: {} + knn.stats@200: {} + knn.train_model@200: {} + knn.warmup@200: {} mget@200: - description: '' content: application/json: schema: @@ -24699,120 +25153,42 @@ components: ml.delete_model_group@200: content: application/json: - schema: - type: object + $ref: '#/components/schemas/ml._common:ModelGroup' ml.delete_model@200: content: application/json: - schema: - type: object + $ref: '#/components/schemas/ml._common:ModelGroup' ml.get_model_group@200: content: application/json: - schema: - type: object - properties: - name: - type: string - description: The model group name. - latest_version: - type: number - description: The latest version. - description: - type: string - description: The model group description. - access: - type: string - description: The model group access. - created_time: - type: integer - format: int64 - last_updated_time: - type: integer - format: int64 - required: - - access - - description - - latest_version - - name + $ref: '#/components/schemas/ml._common:ModelGroup' ml.get_task@200: content: application/json: - schema: - type: object - properties: - model_id: - type: string - description: The model ID. - state: - type: string - description: The state. - enum: - - CANCELLED - - COMPLETED - - COMPLETED_WITH_ERROR - - CREATED - - FAILED - - RUNNING - required: - - state + $ref: '#/components/schemas/ml._common:Task' ml.register_model_group@200: content: application/json: - schema: - type: object - properties: - model_group_id: - type: string - description: The model group ID. - status: - type: string - description: The status. - required: - - model_group_id - - status + $ref: '#/components/schemas/ml._common:ModelGroupRegistration' ml.register_model@200: content: application/json: - schema: - type: object - properties: - task_id: - type: string - description: The task ID. - model_id: - type: string - description: The model ID. - status: - type: string - description: The status. - required: - - status - - task_id + $ref: '#/components/schemas/ml._common:Task' ml.search_models@200: content: application/json: - schema: - type: object - properties: - hits: - $ref: '#/components/schemas/ml._common:SearchModelHits' - required: - - hits + $ref: '#/components/schemas/ml._common:SearchModelsResponse' msearch_template@200: - description: '' content: application/json: schema: $ref: '#/components/schemas/_core.msearch:MultiSearchResult' msearch@200: - description: '' content: application/json: schema: $ref: '#/components/schemas/_core.msearch:MultiSearchResult' mtermvectors@200: - description: '' content: application/json: schema: @@ -24824,34 +25200,28 @@ components: $ref: '#/components/schemas/_core.mtermvectors:TermVectorsResult' required: - docs - nodes.hot_threads@200: - description: '' + nodes.hot_threads@200: {} nodes.info@200: - description: '' content: application/json: schema: $ref: '#/components/schemas/nodes.info:ResponseBase' nodes.reload_secure_settings@200: - description: '' content: application/json: schema: $ref: '#/components/schemas/nodes.reload_secure_settings:ResponseBase' nodes.stats@200: - description: '' content: application/json: schema: $ref: '#/components/schemas/nodes.stats:ResponseBase' nodes.usage@200: - description: '' content: application/json: schema: $ref: '#/components/schemas/nodes.usage:ResponseBase' notifications.create_config@200: - description: '' content: application/json: schema: @@ -24860,31 +25230,26 @@ components: config_id: type: string notifications.delete_config@200: - description: '' content: application/json: schema: $ref: '#/components/schemas/notifications._common:DeleteConfigsResponse' notifications.delete_configs@200: - description: '' content: application/json: schema: $ref: '#/components/schemas/notifications._common:DeleteConfigsResponse' notifications.get_config@200: - description: '' content: application/json: schema: $ref: '#/components/schemas/notifications._common:GetConfigsResponse' notifications.get_configs@200: - description: '' content: application/json: schema: $ref: '#/components/schemas/notifications._common:GetConfigsResponse' notifications.list_channels@200: - description: '' content: application/json: schema: @@ -24903,7 +25268,6 @@ components: items: $ref: '#/components/schemas/notifications._common:NotificationChannel' notifications.list_features@200: - description: '' content: application/json: schema: @@ -24916,7 +25280,6 @@ components: plugin_features: $ref: '#/components/schemas/notifications._common:NotificationsPluginFeaturesMap' notifications.send_test@200: - description: '' content: application/json: schema: @@ -24929,7 +25292,6 @@ components: items: $ref: '#/components/schemas/notifications._common:EventStatus' notifications.update_config@200: - description: '' content: application/json: schema: @@ -24938,17 +25300,38 @@ components: config_id: type: string ping@200: - description: '' content: application/json: {} - put_script@200: + ppl.explain@200: + content: + application/json: + schema: + $ref: '#/components/schemas/sql._common:ExplainResponse' + required: true + ppl.get_stats@200: + content: + text/plain: + schema: + type: string + required: true + ppl.post_stats@200: + content: + text/plain: + schema: + type: string + required: true + ppl.query@200: description: '' + content: + application/json: + schema: + $ref: '#/components/schemas/sql._common:QueryResponse' + put_script@200: content: application/json: schema: $ref: '#/components/schemas/_common:AcknowledgedResponseBase' rank_eval@200: - description: '' content: application/json: schema: @@ -24971,7 +25354,6 @@ components: - failures - metric_score reindex_rethrottle@200: - description: '' content: application/json: schema: @@ -24984,7 +25366,6 @@ components: required: - nodes reindex@200: - description: '' content: application/json: schema: @@ -25025,7 +25406,6 @@ components: version_conflicts: type: number remote_store.restore@200: - description: '' content: application/json: schema: @@ -25038,7 +25418,6 @@ components: examples: RemoteStoreRestore_example1: summary: Examples for Post Remote Storage Restore Operation. - description: '' value: remote_store: indices: @@ -25048,7 +25427,6 @@ components: failed: 0 successful: 1 render_search_template@200: - description: '' content: application/json: schema: @@ -25060,8 +25438,7 @@ components: type: object required: - template_output - rollups.delete@200: - description: '' + rollups.delete@200: {} rollups.explain@200: content: application/json: @@ -25077,12 +25454,9 @@ components: application/json: schema: $ref: '#/components/schemas/rollups._common:RollupEntity' - rollups.start@200: - description: '' - rollups.stop@200: - description: '' + rollups.start@200: {} + rollups.stop@200: {} scripts_painless_execute@200: - description: '' content: application/json: schema: @@ -25093,13 +25467,11 @@ components: required: - result scroll@200: - description: '' content: application/json: schema: $ref: '#/components/schemas/_core.search:ResponseBody' search_pipeline.delete@200: - description: '' content: application/json: schema: @@ -25108,13 +25480,11 @@ components: acknowledged: type: boolean search_pipeline.get@200: - description: '' content: application/json: schema: $ref: '#/components/schemas/search_pipeline._common:SearchPipelineMap' search_pipeline.put@200: - description: '' content: application/json: schema: @@ -25123,7 +25493,6 @@ components: acknowledged: type: boolean search_shards@200: - description: '' content: application/json: schema: @@ -25148,7 +25517,6 @@ components: - nodes - shards search_template@200: - description: '' content: application/json: schema: @@ -25196,265 +25564,221 @@ components: - timed_out - took search@200: - description: '' content: application/json: schema: $ref: '#/components/schemas/_core.search:ResponseBody' security.authinfo@200: - description: '' content: application/json: schema: $ref: '#/components/schemas/security._common:AuthInfo' security.authinfo@500: - description: '' content: application/json: schema: $ref: '#/components/schemas/security._common:InternalServerError' security.authtoken@200: - description: '' content: application/json: schema: $ref: '#/components/schemas/security._common:Ok' security.cache@501: - description: '' content: application/json: schema: $ref: '#/components/schemas/security._common:MethodNotImplemented' security.change_password@200: - description: '' content: application/json: schema: $ref: '#/components/schemas/security._common:Ok' security.config_upgrade_check@200: - description: '' content: application/json: schema: $ref: '#/components/schemas/security._common:UpgradeCheck' security.config_upgrade_perform@200: - description: '' content: application/json: schema: $ref: '#/components/schemas/security._common:UpgradePerform' security.create_action_group@200: - description: '' content: application/json: schema: $ref: '#/components/schemas/security._common:Ok' security.create_allowlist@200: - description: '' content: application/json: schema: $ref: '#/components/schemas/security._common:AllowListConfig' security.create_role_mapping@200: - description: '' content: application/json: schema: $ref: '#/components/schemas/security._common:Ok' security.create_role@200: - description: '' content: application/json: schema: $ref: '#/components/schemas/security._common:Ok' security.create_tenant@200: - description: '' content: application/json: schema: $ref: '#/components/schemas/security._common:Ok' security.create_tenant@400: - description: '' content: application/json: schema: $ref: '#/components/schemas/security._common:BadRequest' security.create_update_tenancy_config@200: - description: '' content: application/json: schema: $ref: '#/components/schemas/security._common:MultiTenancyConfig' security.create_update_tenancy_config@400: - description: '' content: application/json: schema: $ref: '#/components/schemas/security._common:BadRequest' security.create_user_legacy@200: - description: '' content: application/json: schema: $ref: '#/components/schemas/security._common:Ok' security.create_user@200: - description: '' content: application/json: schema: $ref: '#/components/schemas/security._common:Ok' security.delete_action_group@200: - description: '' content: application/json: schema: $ref: '#/components/schemas/security._common:Ok' security.delete_distinguished_name@200: - description: '' content: application/json: schema: $ref: '#/components/schemas/security._common:Ok' security.delete_distinguished_name@403: - description: '' content: application/json: schema: $ref: '#/components/schemas/security._common:Unauthorized' security.delete_role_mapping@200: - description: '' content: application/json: schema: $ref: '#/components/schemas/security._common:Ok' security.delete_role@200: - description: '' content: application/json: schema: $ref: '#/components/schemas/security._common:Ok' security.delete_tenant@200: - description: '' content: application/json: schema: $ref: '#/components/schemas/security._common:Ok' security.delete_tenant@400: - description: '' content: application/json: schema: $ref: '#/components/schemas/security._common:BadRequest' security.delete_user_legacy@200: - description: '' content: application/json: schema: $ref: '#/components/schemas/security._common:Ok' security.delete_user@200: - description: '' content: application/json: schema: $ref: '#/components/schemas/security._common:Ok' security.flush_cache@200: - description: '' content: application/json: schema: $ref: '#/components/schemas/security._common:Ok' security.generate_obo_token@200: - description: '' content: application/json: schema: $ref: '#/components/schemas/security._common:GenerateOBOToken' security.generate_obo_token@400: - description: '' content: application/json: schema: $ref: '#/components/schemas/security._common:BadRequest' security.generate_user_token_legacy@200: - description: '' content: application/json: schema: $ref: '#/components/schemas/security._common:Ok' security.generate_user_token_legacy@400: - description: '' content: application/json: schema: $ref: '#/components/schemas/security._common:BadRequest' security.generate_user_token@200: - description: '' content: application/json: schema: $ref: '#/components/schemas/security._common:Ok' security.generate_user_token@400: - description: '' content: application/json: schema: $ref: '#/components/schemas/security._common:BadRequest' security.get_account_details@200: - description: '' content: application/json: schema: $ref: '#/components/schemas/security._common:AccountDetails' security.get_action_group@200: - description: '' content: application/json: schema: $ref: '#/components/schemas/security._common:ActionGroupsMap' security.get_action_groups@200: - description: '' content: application/json: schema: $ref: '#/components/schemas/security._common:ActionGroupsMap' security.get_allowlist@200: - description: '' content: application/json: schema: $ref: '#/components/schemas/security._common:AllowListConfig' security.get_audit_configuration@200: - description: '' content: application/json: schema: $ref: '#/components/schemas/security._common:AuditConfigWithReadOnly' security.get_certificates@200: - description: '' content: application/json: schema: $ref: '#/components/schemas/security._common:GetCertificates' security.get_certificates@400: - description: '' content: application/json: schema: $ref: '#/components/schemas/security._common:BadRequest' security.get_configuration@200: - description: '' content: application/json: schema: $ref: '#/components/schemas/security._common:DynamicConfig' security.get_dashboards_info@200: - description: '' content: application/json: schema: $ref: '#/components/schemas/security._common:DashboardsInfo' security.get_dashboards_info@500: - description: '' content: application/json: schema: @@ -25466,391 +25790,326 @@ components: schema: $ref: '#/components/schemas/security._common:DistinguishedNames' security.get_distinguished_name@403: - description: '' content: application/json: schema: $ref: '#/components/schemas/security._common:Unauthorized' security.get_distinguished_names@200: - description: '' content: application/json: schema: $ref: '#/components/schemas/security._common:DistinguishedNamesMap' security.get_distinguished_names@403: - description: '' content: application/json: schema: $ref: '#/components/schemas/security._common:Unauthorized' security.get_permissions_info@200: - description: '' content: application/json: schema: $ref: '#/components/schemas/security._common:PermissionsInfo' security.get_permissions_info@500: - description: '' content: application/json: schema: $ref: '#/components/schemas/security._common:InternalServerError' security.get_role_mapping@200: - description: '' content: application/json: schema: $ref: '#/components/schemas/security._common:RoleMappings' security.get_role_mappings@200: - description: '' content: application/json: schema: $ref: '#/components/schemas/security._common:RoleMappings' security.get_role@200: - description: '' content: application/json: schema: $ref: '#/components/schemas/security._common:RolesMap' security.get_roles@200: - description: '' content: application/json: schema: $ref: '#/components/schemas/security._common:RolesMap' security.get_sslinfo@200: - description: '' content: application/json: schema: $ref: '#/components/schemas/security._common:SSLInfo' security.get_sslinfo@500: - description: '' content: application/json: schema: $ref: '#/components/schemas/security._common:InternalServerError' security.get_tenancy_config@200: - description: '' content: application/json: schema: $ref: '#/components/schemas/security._common:MultiTenancyConfig' security.get_tenancy_config@400: - description: '' content: application/json: schema: $ref: '#/components/schemas/security._common:BadRequest' security.get_tenant@200: - description: '' content: application/json: schema: $ref: '#/components/schemas/security._common:TenantsMap' security.get_tenants@200: - description: '' content: application/json: schema: $ref: '#/components/schemas/security._common:TenantsMap' security.get_tenants@400: - description: '' content: application/json: schema: $ref: '#/components/schemas/security._common:BadRequest' security.get_user_legacy@200: - description: '' content: application/json: schema: $ref: '#/components/schemas/security._common:UsersMap' security.get_user@200: - description: '' content: application/json: schema: $ref: '#/components/schemas/security._common:UsersMap' security.get_users_legacy@200: - description: '' content: application/json: schema: $ref: '#/components/schemas/security._common:UsersMap' security.get_users@200: - description: '' content: application/json: schema: $ref: '#/components/schemas/security._common:UsersMap' security.health@200: - description: '' content: application/json: schema: $ref: '#/components/schemas/security._common:HealthInfo' security.migrate@200: - description: '' content: application/json: schema: $ref: '#/components/schemas/security._common:Ok' security.migrate@400: - description: '' content: application/json: schema: $ref: '#/components/schemas/security._common:BadRequest' security.patch_action_group@200: - description: '' content: application/json: schema: $ref: '#/components/schemas/security._common:Ok' security.patch_action_groups@200: - description: '' content: application/json: schema: $ref: '#/components/schemas/security._common:Ok' security.patch_allowlist@200: - description: '' content: application/json: schema: $ref: '#/components/schemas/security._common:AllowListConfig' security.patch_audit_configuration@200: - description: '' content: application/json: schema: $ref: '#/components/schemas/security._common:Ok' security.patch_configuration@200: - description: '' content: application/json: schema: $ref: '#/components/schemas/security._common:Ok' security.patch_distinguished_name@200: - description: '' content: application/json: schema: $ref: '#/components/schemas/security._common:Ok' security.patch_distinguished_name@403: - description: '' content: application/json: schema: $ref: '#/components/schemas/security._common:Unauthorized' security.patch_distinguished_names@200: - description: '' content: application/json: schema: $ref: '#/components/schemas/security._common:Ok' security.patch_distinguished_names@403: - description: '' content: application/json: schema: $ref: '#/components/schemas/security._common:Unauthorized' security.patch_role_mapping@200: - description: '' content: application/json: schema: $ref: '#/components/schemas/security._common:Ok' security.patch_role_mapping@400: - description: '' content: application/json: schema: $ref: '#/components/schemas/security._common:BadRequest' security.patch_role_mappings@200: - description: '' content: application/json: schema: $ref: '#/components/schemas/security._common:Ok' security.patch_role_mappings@400: - description: '' content: application/json: schema: $ref: '#/components/schemas/security._common:BadRequest' security.patch_role@200: - description: '' content: application/json: schema: $ref: '#/components/schemas/security._common:Ok' security.patch_role@400: - description: '' content: application/json: schema: $ref: '#/components/schemas/security._common:BadRequest' security.patch_roles@200: - description: '' content: application/json: schema: $ref: '#/components/schemas/security._common:Ok' security.patch_roles@400: - description: '' content: application/json: schema: $ref: '#/components/schemas/security._common:BadRequest' security.patch_tenant@200: - description: '' content: application/json: schema: $ref: '#/components/schemas/security._common:Ok' security.patch_tenant@400: - description: '' content: application/json: schema: $ref: '#/components/schemas/security._common:BadRequest' security.patch_tenants@200: - description: '' content: application/json: schema: $ref: '#/components/schemas/security._common:Ok' security.patch_tenants@400: - description: '' content: application/json: schema: $ref: '#/components/schemas/security._common:BadRequest' security.patch_user@200: - description: '' content: application/json: schema: $ref: '#/components/schemas/security._common:Ok' security.patch_users@200: - description: '' content: application/json: schema: $ref: '#/components/schemas/security._common:Ok' security.post_dashboards_info@200: - description: '' content: application/json: schema: $ref: '#/components/schemas/security._common:DashboardsInfo' security.post_dashboards_info@500: - description: '' content: application/json: schema: $ref: '#/components/schemas/security._common:InternalServerError' security.reload_http_certificates@200: - description: '' content: application/json: schema: $ref: '#/components/schemas/security._common:Ok' security.reload_http_certificates@400: - description: '' content: application/json: schema: $ref: '#/components/schemas/security._common:BadRequest' security.reload_transport_certificates@200: - description: '' content: application/json: schema: $ref: '#/components/schemas/security._common:Ok' security.reload_transport_certificates@400: - description: '' content: application/json: schema: $ref: '#/components/schemas/security._common:BadRequest' security.tenant_info@200: - description: '' content: application/json: schema: $ref: '#/components/schemas/security._common:TenantInfo' security.tenant_info@500: - description: '' content: application/json: schema: $ref: '#/components/schemas/security._common:InternalServerError' security.update_audit_configuration@200: - description: '' content: application/json: schema: $ref: '#/components/schemas/security._common:Ok' security.update_configuration@200: - description: '' content: application/json: schema: $ref: '#/components/schemas/security._common:Ok' security.update_distinguished_name@200: - description: '' content: application/json: schema: $ref: '#/components/schemas/security._common:Ok' security.update_distinguished_name@403: - description: '' content: application/json: schema: $ref: '#/components/schemas/security._common:Unauthorized' security.validate@200: - description: '' content: application/json: schema: $ref: '#/components/schemas/security._common:Ok' security.validate@400: - description: '' content: application/json: schema: $ref: '#/components/schemas/security._common:BadRequest' security.who_am_i_protected@200: - description: '' content: application/json: schema: $ref: '#/components/schemas/security._common:WhoAmI' security.who_am_i_protected@500: - description: '' content: application/json: schema: $ref: '#/components/schemas/security._common:InternalServerError' security.who_am_i@200: - description: '' content: application/json: schema: $ref: '#/components/schemas/security._common:WhoAmI' security.who_am_i@500: - description: '' content: application/json: schema: $ref: '#/components/schemas/security._common:InternalServerError' snapshot.cleanup_repository@200: - description: '' content: application/json: schema: @@ -25861,19 +26120,16 @@ components: required: - results snapshot.clone@200: - description: '' content: application/json: schema: $ref: '#/components/schemas/_common:AcknowledgedResponseBase' snapshot.create_repository@200: - description: '' content: application/json: schema: $ref: '#/components/schemas/_common:AcknowledgedResponseBase' snapshot.create@200: - description: '' content: application/json: schema: @@ -25885,19 +26141,16 @@ components: snapshot: $ref: '#/components/schemas/snapshot._common:SnapshotInfo' snapshot.delete_repository@200: - description: '' content: application/json: schema: $ref: '#/components/schemas/_common:AcknowledgedResponseBase' snapshot.delete@200: - description: '' content: application/json: schema: $ref: '#/components/schemas/_common:AcknowledgedResponseBase' snapshot.get_repository@200: - description: '' content: application/json: schema: @@ -25905,7 +26158,6 @@ components: additionalProperties: $ref: '#/components/schemas/snapshot._common:Repository' snapshot.get@200: - description: '' content: application/json: schema: @@ -25929,7 +26181,6 @@ components: - remaining - total snapshot.restore@200: - description: '' content: application/json: schema: @@ -25940,7 +26191,6 @@ components: required: - snapshot snapshot.status@200: - description: '' content: application/json: schema: @@ -25953,7 +26203,6 @@ components: required: - snapshots snapshot.verify_repository@200: - description: '' content: application/json: schema: @@ -25965,14 +26214,46 @@ components: $ref: '#/components/schemas/snapshot.verify_repository:CompactNodeInfo' required: - nodes + sql.close@200: + content: + application/json: + schema: + $ref: '#/components/schemas/sql._common:SqlCloseResponse' + required: true + sql.explain@200: + content: + application/json: + schema: + $ref: '#/components/schemas/sql._common:ExplainResponse' + required: true + sql.get_stats@200: + content: + text/plain: + schema: + type: string + required: true + sql.post_stats@200: + content: + text/plain: + schema: + type: string + required: true + sql.query@200: + content: + application/json: + schema: + $ref: '#/components/schemas/sql._common:QueryResponse' + sql.settings@200: + content: + application/json: + schema: + $ref: '#/components/schemas/sql._common:SqlSettingsResponse' tasks.cancel@200: - description: '' content: application/json: schema: $ref: '#/components/schemas/tasks._common:TaskListResponseBase' tasks.get@200: - description: '' content: application/json: schema: @@ -25990,13 +26271,11 @@ components: - completed - task tasks.list@200: - description: '' content: application/json: schema: $ref: '#/components/schemas/tasks._common:TaskListResponseBase' termvectors@200: - description: '' content: application/json: schema: @@ -26022,8 +26301,7 @@ components: - _version - found - took - transforms.delete@200: - description: '' + transforms.delete@200: {} transforms.explain@200: content: application/json: @@ -26060,7 +26338,6 @@ components: schema: $ref: '#/components/schemas/_common:AcknowledgedResponseBase' update_by_query_rethrottle@200: - description: '' content: application/json: schema: @@ -26073,7 +26350,6 @@ components: required: - nodes update_by_query@200: - description: '' content: application/json: schema: @@ -26114,7 +26390,6 @@ components: throttled_until_millis: $ref: '#/components/schemas/_common:DurationValueUnitMillis' update@200: - description: '' content: application/json: schema: @@ -26404,12 +26679,10 @@ components: description: |- A duration. Units can be `nanos`, `micros`, `ms` (milliseconds), `s` (seconds), `m` (minutes), `h` (hours) and `d` (days). Also accepts "0" without a unit and "-1" to indicate an unspecified value. - pattern: ^([0-9]+)(?:d|h|m|s|ms|micros|nanos)$ + pattern: ^([0-9\.]+)(?:d|h|m|s|ms|micros|nanos)$ type: string _common:DurationLarge: - description: |- - A date histogram interval. Similar to `Duration` with additional units: `w` (week), `M` (month), `q` (quarter) and - `y` (year) + description: 'A date histogram interval. Similar to `Duration` with additional units: `w` (week), `M` (month), `q` (quarter) and `y` (year).' type: string _common:DurationValueUnitMillis: allOf: @@ -26449,6 +26722,9 @@ components: $ref: '#/components/schemas/_common:ErrorCause' required: - type + additionalProperties: + title: metadata + description: Additional details about the error. _common:ErrorResponseBase: type: object properties: @@ -26548,7 +26824,7 @@ components: - as 4 top/bottom/left/right coordinates - as 2 top_left / bottom_right points - as 2 top_right / bottom_left points - - as a WKT bounding box + - as a WKT bounding box. oneOf: - $ref: '#/components/schemas/_common:CoordsGeoBounds' - $ref: '#/components/schemas/_common:TopLeftBottomRightGeoBounds' @@ -26587,7 +26863,7 @@ components: - type: number - type: string _common:GeoHexCell: - description: A map hex cell (H3) reference + description: A map hex cell (H3) reference. type: string _common:GeoLine: type: object @@ -26611,7 +26887,7 @@ components: - as a `{lat, long}` object - as a geo hash value - as a `[lon, lat]` array - - as a string in `", "` or WKT point formats + - as a string in `", "` or WKT point formats. oneOf: - $ref: '#/components/schemas/_common:LatLonGeoLocation' - $ref: '#/components/schemas/_common:GeoHashLocation' @@ -26627,7 +26903,7 @@ components: - intersects - within _common:GeoTile: - description: A map tile reference, represented as `{zoom}/{x}/{y}` + description: A map tile reference, represented as `{zoom}/{x}/{y}`. type: string _common:GeoTilePrecision: type: number @@ -26946,7 +27222,7 @@ components: items: type: string _common:MinimumShouldMatch: - description: The minimum number of terms that should match as integer, percentage or range + description: The minimum number of terms that should match as integer, percentage or range. oneOf: - type: number - type: string @@ -27027,7 +27303,7 @@ components: - transform - voting_only _common:NodeRoles: - description: '* @doc_id node-roles' + description: Node roles. type: array items: $ref: '#/components/schemas/_common:NodeRole' @@ -27531,8 +27807,7 @@ components: Specifies any named parameters that are passed into the script as variables. Use parameters instead of hard-coded values to decrease compile time. type: object - additionalProperties: - type: object + additionalProperties: true _common:ScriptField: type: object properties: @@ -28026,7 +28301,7 @@ components: - model_id - model_text _common:TimeOfDay: - description: Time of day, expressed as HH:MM:SS + description: Time of day, expressed as HH:MM:SS. type: string _common:TimeUnit: type: string @@ -28095,13 +28370,14 @@ components: _common:ulong: type: number _common:UnitMillis: - description: Time unit for milliseconds + description: Time unit for milliseconds. type: number + format: int64 _common:UnitNanos: - description: Time unit for nanoseconds + description: Time unit for nanoseconds. type: number _common:UnitSeconds: - description: Time unit for seconds + description: Time unit for seconds. type: number _common:Username: type: string @@ -28125,7 +28401,7 @@ components: Although "void" is generally used for the unit type that has only one value, this is to be interpreted as the bottom type that has no value at all. Most languages have a unit type, but few have a bottom type. - See https://en.m.wikipedia.org/wiki/Unit_type and https://en.m.wikipedia.org/wiki/Bottom_type + See https://en.m.wikipedia.org/wiki/Unit_type and https://en.m.wikipedia.org/wiki/Bottom_type. type: object _common:WaitForActiveShardOptions: type: string @@ -33841,8 +34117,8 @@ components: type: string enum: - 'false' - - runtime - strict + - strict_allow_templates - 'true' _common.mapping:DynamicProperty: allOf: @@ -36106,7 +36382,9 @@ components: To return a document, the query term must exactly match the queried field's value, including whitespace and capitalization. type: object additionalProperties: - $ref: '#/components/schemas/_common.query_dsl:TermQuery' + anyOf: + - $ref: '#/components/schemas/_common.query_dsl:TermQuery' + - $ref: '#/components/schemas/_common:FieldValue' minProperties: 1 maxProperties: 1 terms: @@ -36401,7 +36679,7 @@ components: - SLOP - WHITESPACE _common.query_dsl:SimpleQueryStringFlags: - description: Query flags can be either a single flag or a combination of flags, e.g. `OR|AND|PREFIX` + description: Query flags can be either a single flag or a combination of flags, e.g. `OR|AND|PREFIX`. allOf: - $ref: '#/components/schemas/_common:PipeSeparatedFlagsSimpleQueryStringFlag' _common.query_dsl:SimpleQueryStringQuery: @@ -41704,6 +41982,8 @@ components: type: string index_uuid: type: string + creation_date: + $ref: '#/components/schemas/_common:DateTime' creation_date_millis: $ref: '#/components/schemas/_common:EpochTimeUnitMillis' node_ids: @@ -42053,6 +42333,7 @@ components: $ref: '#/components/schemas/_common:Stringifiedboolean' indices._common:IndexSettings: type: object + description: The index settings to be updated. properties: index: $ref: '#/components/schemas/indices._common:IndexSettings' @@ -42183,7 +42464,6 @@ components: store: $ref: '#/components/schemas/indices._common:Storage' additionalProperties: {} - description: The index settings to be updated indices._common:IndexSettingsAnalysis: type: object properties: @@ -42297,7 +42577,7 @@ components: $ref: '#/components/schemas/indices._common:IndexTemplateDataStreamConfiguration' required: - index_patterns - description: New index template definition to be simulated, if no index template name is specified + description: New index template definition to be simulated, if no index template name is specified. indices._common:IndexTemplateDataStreamConfiguration: type: object properties: @@ -44738,7 +45018,45 @@ components: required: - relation - value - ml._common:SearchModelHits: + ml._common:ModelGroup: + type: object + properties: + name: + type: string + description: The model group name. + latest_version: + type: number + description: The latest version. + description: + type: string + description: The model group description. + access: + type: string + description: The model group access. + created_time: + type: integer + format: int64 + last_updated_time: + type: integer + format: int64 + required: + - access + - description + - latest_version + - name + ml._common:ModelGroupRegistration: + type: object + properties: + model_group_id: + type: string + description: The model group ID. + status: + type: string + description: The status. + required: + - model_group_id + - status + ml._common:SearchModelsHits: type: object properties: total: @@ -44746,11 +45064,11 @@ components: hits: type: array items: - $ref: '#/components/schemas/ml._common:SearchModelHitsHit' + $ref: '#/components/schemas/ml._common:SearchModelsHitsHit' required: - hits - total - ml._common:SearchModelHitsHit: + ml._common:SearchModelsHitsHit: type: object properties: _index: @@ -44765,6 +45083,62 @@ components: required: - _id - model_id + ml._common:SearchModelsQuery: + type: object + properties: + query: + type: object + description: The query. + size: + type: integer + description: The number of models to return. + required: + - query + - size + ml._common:SearchModelsResponse: + type: object + properties: + hits: + $ref: '#/components/schemas/ml._common:SearchModelsHits' + required: + - hits + ml._common:Task: + type: object + properties: + model_id: + type: string + description: The model ID. + state: + type: string + description: The state. + enum: + - CANCELLED + - COMPLETED + - COMPLETED_WITH_ERROR + - CREATED + - FAILED + - RUNNING + task_type: + type: string + description: Task type. + enum: + - DEPLOY_MODEL + function_name: + type: string + worker_node: + type: array + items: + $ref: '#/components/schemas/_common:NodeIds' + create_time: + type: integer + format: int64 + last_update_time: + type: integer + format: int64 + is_async: + type: boolean + required: + - state nodes._common:AdaptiveSelection: type: object properties: @@ -45736,6 +46110,9 @@ components: $ref: '#/components/schemas/nodes._common:ShardSearchBackpressureTaskResourceTrackerStats' cancellation_stats: $ref: '#/components/schemas/nodes._common:ShardSearchBackpressureTaskCancellationStats' + completion_count: + x-version-added: '3.0' + type: number nodes._common:ShardSearchPipelineStats: type: object properties: @@ -46351,6 +46728,8 @@ components: $ref: '#/components/schemas/nodes.info:NodeInfoSettingsIngest' index: $ref: '#/components/schemas/nodes.info:NodeInfoSettingsIndex' + plugins: + $ref: '#/components/schemas/nodes.info:NodeInfoSettingsPlugins' required: - client - cluster @@ -46511,6 +46890,10 @@ components: required: - attr - name + nodes.info:NodeInfoSettingsPlugins: + type: object + additionalProperties: + $ref: '#/components/schemas/_common:FieldValue' nodes.info:NodeInfoSettingsTransport: type: object properties: @@ -48497,6 +48880,168 @@ components: $ref: '#/components/schemas/_common:Name' required: - name + sql._common:Cursor: + type: object + properties: + keep_alive: + type: string + sql._common:Explain: + type: object + properties: + query: + type: string + filter: + type: object + fetch_size: + type: integer + sql._common:ExplainBody: + type: object + properties: + name: + type: string + description: + type: object + children: + type: array + items: + $ref: '#/components/schemas/sql._common:ExplainBody' + sql._common:ExplainResponse: + type: object + properties: + root: + $ref: '#/components/schemas/sql._common:ExplainBody' + sql._common:Plugins: + type: object + properties: + ppl: + $ref: '#/components/schemas/sql._common:Ppl' + query: + $ref: '#/components/schemas/sql._common:PluginsQuery' + sql: + $ref: '#/components/schemas/sql._common:Sql' + sql._common:PluginsQuery: + type: object + properties: + memory_limit: + type: string + size_limit: + anyOf: + - type: string + - type: integer + sql._common:Ppl: + type: object + properties: + enabled: + anyOf: + - type: boolean + - type: string + sql._common:Query: + type: object + properties: + query: + type: string + filter: + type: object + fetch_size: + type: integer + sql._common:QueryResponse: + type: object + properties: + schema: + type: array + items: + type: object + datarows: + type: array + items: + type: array + cursor: + type: string + total: + type: integer + size: + type: integer + status: + type: integer + sql._common:Sql: + type: object + properties: + enabled: + anyOf: + - type: boolean + - type: string + slowlog: + anyOf: + - type: integer + - type: string + cursor: + $ref: '#/components/schemas/sql._common:Cursor' + sql._common:SqlClose: + type: object + properties: + cursor: + type: string + sql._common:SqlCloseResponse: + type: object + properties: + succeeded: + type: boolean + sql._common:SqlSettings: + type: object + properties: + transient: + $ref: '#/components/schemas/sql._common:Transient' + sql._common:SqlSettingsPlain: + type: object + properties: + transient: + $ref: '#/components/schemas/sql._common:TransientPlain' + sql._common:SqlSettingsResponse: + type: object + properties: + acknowledged: + type: boolean + persistent: + type: object + transient: + $ref: '#/components/schemas/sql._common:Transient' + sql._common:Stats: + type: object + properties: + start_time: + type: string + end_time: + type: object + cluster_name: + type: object + index: + type: object + query: + type: object + user: + type: object + execution_time: + type: object + sql._common:Transient: + type: object + properties: + plugins: + $ref: '#/components/schemas/sql._common:Plugins' + sql._common:TransientPlain: + type: object + properties: + plugins.sql.enabled: + type: boolean + plugins.ppl.enabled: + type: boolean + plugins.sql.slowlog: + type: integer + plugins.sql.cursor.keep_alive: + type: string + plugins.query.memory_limit: + type: string + plugins.query.size_limit: + type: integer tasks._common:GroupBy: type: string enum: diff --git a/src/OpenSearch.Client/_Generated/Descriptors.Cat.cs b/src/OpenSearch.Client/_Generated/Descriptors.Cat.cs index d3c7ef50e6..c20a2b1d5a 100644 --- a/src/OpenSearch.Client/_Generated/Descriptors.Cat.cs +++ b/src/OpenSearch.Client/_Generated/Descriptors.Cat.cs @@ -175,7 +175,7 @@ public CatAllocationDescriptor NodeId(NodeIds nodeId) => /// Operation timeout for connection to cluster-manager node. /// Supported by OpenSearch servers of version 2.0.0 or greater. - public CatAllocationDescriptor ClusterManagerTimeout(Time clustermanagertimeout) => + public CatAllocationDescriptor ClusterManagerTimeout(string clustermanagertimeout) => Qs("cluster_manager_timeout", clustermanagertimeout); /// A short version of the Accept header, e.g. json, yaml. @@ -194,7 +194,7 @@ public CatAllocationDescriptor ClusterManagerTimeout(Time clustermanagertimeout) [Obsolete( "Deprecated as of: 2.0.0, reason: To promote inclusive language, use 'cluster_manager_timeout' instead." )] - public CatAllocationDescriptor MasterTimeout(Time mastertimeout) => + public CatAllocationDescriptor MasterTimeout(string mastertimeout) => Qs("master_timeout", mastertimeout); /// Comma-separated list of column names or column aliases to sort by. @@ -220,7 +220,7 @@ public partial class CatClusterManagerDescriptor // Request parameters /// Operation timeout for connection to cluster-manager node. /// Supported by OpenSearch servers of version 2.0.0 or greater. - public CatClusterManagerDescriptor ClusterManagerTimeout(Time clustermanagertimeout) => + public CatClusterManagerDescriptor ClusterManagerTimeout(string clustermanagertimeout) => Qs("cluster_manager_timeout", clustermanagertimeout); /// A short version of the Accept header, e.g. json, yaml. @@ -239,7 +239,7 @@ public CatClusterManagerDescriptor ClusterManagerTimeout(Time clustermanagertime [Obsolete( "Deprecated as of: 2.0.0, reason: To promote inclusive language, use 'cluster_manager_timeout' instead." )] - public CatClusterManagerDescriptor MasterTimeout(Time mastertimeout) => + public CatClusterManagerDescriptor MasterTimeout(string mastertimeout) => Qs("master_timeout", mastertimeout); /// Comma-separated list of column names or column aliases to sort by. @@ -432,7 +432,7 @@ public CatIndicesDescriptor Index() /// Operation timeout for connection to cluster-manager node. /// Supported by OpenSearch servers of version 2.0.0 or greater. - public CatIndicesDescriptor ClusterManagerTimeout(Time clustermanagertimeout) => + public CatIndicesDescriptor ClusterManagerTimeout(string clustermanagertimeout) => Qs("cluster_manager_timeout", clustermanagertimeout); /// The type of index that wildcard patterns can match. @@ -462,7 +462,7 @@ public CatIndicesDescriptor IncludeUnloadedSegments(bool? includeunloadedsegment [Obsolete( "Deprecated as of: 2.0.0, reason: To promote inclusive language, use 'cluster_manager_timeout' instead." )] - public CatIndicesDescriptor MasterTimeout(Time mastertimeout) => + public CatIndicesDescriptor MasterTimeout(string mastertimeout) => Qs("master_timeout", mastertimeout); /// If true, the response only includes information from primary shards. @@ -487,7 +487,7 @@ public partial class CatMasterDescriptor // Request parameters /// Operation timeout for connection to cluster-manager node. /// Supported by OpenSearch servers of version 2.0.0 or greater. - public CatMasterDescriptor ClusterManagerTimeout(Time clustermanagertimeout) => + public CatMasterDescriptor ClusterManagerTimeout(string clustermanagertimeout) => Qs("cluster_manager_timeout", clustermanagertimeout); /// A short version of the Accept header, e.g. json, yaml. @@ -506,7 +506,7 @@ public CatMasterDescriptor ClusterManagerTimeout(Time clustermanagertimeout) => [Obsolete( "Deprecated as of: 2.0.0, reason: To promote inclusive language, use 'cluster_manager_timeout' instead." )] - public CatMasterDescriptor MasterTimeout(Time mastertimeout) => + public CatMasterDescriptor MasterTimeout(string mastertimeout) => Qs("master_timeout", mastertimeout); /// Comma-separated list of column names or column aliases to sort by. @@ -532,7 +532,7 @@ public partial class CatNodeAttributesDescriptor // Request parameters /// Operation timeout for connection to cluster-manager node. /// Supported by OpenSearch servers of version 2.0.0 or greater. - public CatNodeAttributesDescriptor ClusterManagerTimeout(Time clustermanagertimeout) => + public CatNodeAttributesDescriptor ClusterManagerTimeout(string clustermanagertimeout) => Qs("cluster_manager_timeout", clustermanagertimeout); /// A short version of the Accept header, e.g. json, yaml. @@ -551,7 +551,7 @@ public CatNodeAttributesDescriptor ClusterManagerTimeout(Time clustermanagertime [Obsolete( "Deprecated as of: 2.0.0, reason: To promote inclusive language, use 'cluster_manager_timeout' instead." )] - public CatNodeAttributesDescriptor MasterTimeout(Time mastertimeout) => + public CatNodeAttributesDescriptor MasterTimeout(string mastertimeout) => Qs("master_timeout", mastertimeout); /// Comma-separated list of column names or column aliases to sort by. @@ -576,7 +576,7 @@ public partial class CatNodesDescriptor /// Operation timeout for connection to cluster-manager node. /// Supported by OpenSearch servers of version 2.0.0 or greater. - public CatNodesDescriptor ClusterManagerTimeout(Time clustermanagertimeout) => + public CatNodesDescriptor ClusterManagerTimeout(string clustermanagertimeout) => Qs("cluster_manager_timeout", clustermanagertimeout); /// A short version of the Accept header, e.g. json, yaml. @@ -601,7 +601,7 @@ public CatNodesDescriptor ClusterManagerTimeout(Time clustermanagertimeout) => [Obsolete( "Deprecated as of: 2.0.0, reason: To promote inclusive language, use 'cluster_manager_timeout' instead." )] - public CatNodesDescriptor MasterTimeout(Time mastertimeout) => + public CatNodesDescriptor MasterTimeout(string mastertimeout) => Qs("master_timeout", mastertimeout); /// Comma-separated list of column names or column aliases to sort by. @@ -627,7 +627,7 @@ public partial class CatPendingTasksDescriptor // Request parameters /// Operation timeout for connection to cluster-manager node. /// Supported by OpenSearch servers of version 2.0.0 or greater. - public CatPendingTasksDescriptor ClusterManagerTimeout(Time clustermanagertimeout) => + public CatPendingTasksDescriptor ClusterManagerTimeout(string clustermanagertimeout) => Qs("cluster_manager_timeout", clustermanagertimeout); /// A short version of the Accept header, e.g. json, yaml. @@ -646,7 +646,7 @@ public CatPendingTasksDescriptor ClusterManagerTimeout(Time clustermanagertimeou [Obsolete( "Deprecated as of: 2.0.0, reason: To promote inclusive language, use 'cluster_manager_timeout' instead." )] - public CatPendingTasksDescriptor MasterTimeout(Time mastertimeout) => + public CatPendingTasksDescriptor MasterTimeout(string mastertimeout) => Qs("master_timeout", mastertimeout); /// Comma-separated list of column names or column aliases to sort by. @@ -705,7 +705,7 @@ public partial class CatPluginsDescriptor // Request parameters /// Operation timeout for connection to cluster-manager node. /// Supported by OpenSearch servers of version 2.0.0 or greater. - public CatPluginsDescriptor ClusterManagerTimeout(Time clustermanagertimeout) => + public CatPluginsDescriptor ClusterManagerTimeout(string clustermanagertimeout) => Qs("cluster_manager_timeout", clustermanagertimeout); /// A short version of the Accept header, e.g. json, yaml. @@ -724,7 +724,7 @@ public CatPluginsDescriptor ClusterManagerTimeout(Time clustermanagertimeout) => [Obsolete( "Deprecated as of: 2.0.0, reason: To promote inclusive language, use 'cluster_manager_timeout' instead." )] - public CatPluginsDescriptor MasterTimeout(Time mastertimeout) => + public CatPluginsDescriptor MasterTimeout(string mastertimeout) => Qs("master_timeout", mastertimeout); /// Comma-separated list of column names or column aliases to sort by. @@ -813,7 +813,7 @@ public partial class CatRepositoriesDescriptor // Request parameters /// Operation timeout for connection to cluster-manager node. /// Supported by OpenSearch servers of version 2.0.0 or greater. - public CatRepositoriesDescriptor ClusterManagerTimeout(Time clustermanagertimeout) => + public CatRepositoriesDescriptor ClusterManagerTimeout(string clustermanagertimeout) => Qs("cluster_manager_timeout", clustermanagertimeout); /// A short version of the Accept header, e.g. json, yaml. @@ -832,7 +832,7 @@ public CatRepositoriesDescriptor ClusterManagerTimeout(Time clustermanagertimeou [Obsolete( "Deprecated as of: 2.0.0, reason: To promote inclusive language, use 'cluster_manager_timeout' instead." )] - public CatRepositoriesDescriptor MasterTimeout(Time mastertimeout) => + public CatRepositoriesDescriptor MasterTimeout(string mastertimeout) => Qs("master_timeout", mastertimeout); /// Comma-separated list of column names or column aliases to sort by. @@ -928,7 +928,7 @@ public CatSegmentReplicationDescriptor SortByColumns(params string[] sortbycolum Qs("s", sortbycolumns); /// Operation timeout. - public CatSegmentReplicationDescriptor Timeout(Time timeout) => Qs("timeout", timeout); + public CatSegmentReplicationDescriptor Timeout(string timeout) => Qs("timeout", timeout); /// Verbose mode. Display column headers. public CatSegmentReplicationDescriptor Verbose(bool? verbose = true) => Qs("v", verbose); @@ -975,7 +975,7 @@ public CatSegmentsDescriptor Index() /// Operation timeout for connection to cluster-manager node. /// Supported by OpenSearch servers of version 2.0.0 or greater. - public CatSegmentsDescriptor ClusterManagerTimeout(Time clustermanagertimeout) => + public CatSegmentsDescriptor ClusterManagerTimeout(string clustermanagertimeout) => Qs("cluster_manager_timeout", clustermanagertimeout); /// A short version of the Accept header, e.g. json, yaml. @@ -991,7 +991,7 @@ public CatSegmentsDescriptor ClusterManagerTimeout(Time clustermanagertimeout) = [Obsolete( "Deprecated as of: 2.0.0, reason: To promote inclusive language, use 'cluster_manager_timeout' instead." )] - public CatSegmentsDescriptor MasterTimeout(Time mastertimeout) => + public CatSegmentsDescriptor MasterTimeout(string mastertimeout) => Qs("master_timeout", mastertimeout); /// Comma-separated list of column names or column aliases to sort by. @@ -1039,7 +1039,7 @@ public CatShardsDescriptor Index() /// Operation timeout for connection to cluster-manager node. /// Supported by OpenSearch servers of version 2.0.0 or greater. - public CatShardsDescriptor ClusterManagerTimeout(Time clustermanagertimeout) => + public CatShardsDescriptor ClusterManagerTimeout(string clustermanagertimeout) => Qs("cluster_manager_timeout", clustermanagertimeout); /// A short version of the Accept header, e.g. json, yaml. @@ -1058,7 +1058,7 @@ public CatShardsDescriptor ClusterManagerTimeout(Time clustermanagertimeout) => [Obsolete( "Deprecated as of: 2.0.0, reason: To promote inclusive language, use 'cluster_manager_timeout' instead." )] - public CatShardsDescriptor MasterTimeout(Time mastertimeout) => + public CatShardsDescriptor MasterTimeout(string mastertimeout) => Qs("master_timeout", mastertimeout); /// Comma-separated list of column names or column aliases to sort by. @@ -1099,7 +1099,7 @@ public CatSnapshotsDescriptor RepositoryName(Names repository) => // Request parameters /// Operation timeout for connection to cluster-manager node. /// Supported by OpenSearch servers of version 2.0.0 or greater. - public CatSnapshotsDescriptor ClusterManagerTimeout(Time clustermanagertimeout) => + public CatSnapshotsDescriptor ClusterManagerTimeout(string clustermanagertimeout) => Qs("cluster_manager_timeout", clustermanagertimeout); /// A short version of the Accept header, e.g. json, yaml. @@ -1119,7 +1119,7 @@ public CatSnapshotsDescriptor IgnoreUnavailable(bool? ignoreunavailable = true) [Obsolete( "Deprecated as of: 2.0.0, reason: To promote inclusive language, use 'cluster_manager_timeout' instead." )] - public CatSnapshotsDescriptor MasterTimeout(Time mastertimeout) => + public CatSnapshotsDescriptor MasterTimeout(string mastertimeout) => Qs("master_timeout", mastertimeout); /// Comma-separated list of column names or column aliases to sort by. @@ -1199,7 +1199,7 @@ public CatTemplatesDescriptor Name(Name name) => // Request parameters /// Operation timeout for connection to cluster-manager node. /// Supported by OpenSearch servers of version 2.0.0 or greater. - public CatTemplatesDescriptor ClusterManagerTimeout(Time clustermanagertimeout) => + public CatTemplatesDescriptor ClusterManagerTimeout(string clustermanagertimeout) => Qs("cluster_manager_timeout", clustermanagertimeout); /// A short version of the Accept header, e.g. json, yaml. @@ -1218,7 +1218,7 @@ public CatTemplatesDescriptor ClusterManagerTimeout(Time clustermanagertimeout) [Obsolete( "Deprecated as of: 2.0.0, reason: To promote inclusive language, use 'cluster_manager_timeout' instead." )] - public CatTemplatesDescriptor MasterTimeout(Time mastertimeout) => + public CatTemplatesDescriptor MasterTimeout(string mastertimeout) => Qs("master_timeout", mastertimeout); /// Comma-separated list of column names or column aliases to sort by. @@ -1260,7 +1260,7 @@ public CatThreadPoolDescriptor ThreadPoolPatterns(Names threadPoolPatterns) => // Request parameters /// Operation timeout for connection to cluster-manager node. /// Supported by OpenSearch servers of version 2.0.0 or greater. - public CatThreadPoolDescriptor ClusterManagerTimeout(Time clustermanagertimeout) => + public CatThreadPoolDescriptor ClusterManagerTimeout(string clustermanagertimeout) => Qs("cluster_manager_timeout", clustermanagertimeout); /// A short version of the Accept header, e.g. json, yaml. @@ -1279,7 +1279,7 @@ public CatThreadPoolDescriptor ClusterManagerTimeout(Time clustermanagertimeout) [Obsolete( "Deprecated as of: 2.0.0, reason: To promote inclusive language, use 'cluster_manager_timeout' instead." )] - public CatThreadPoolDescriptor MasterTimeout(Time mastertimeout) => + public CatThreadPoolDescriptor MasterTimeout(string mastertimeout) => Qs("master_timeout", mastertimeout); /// The multiplier in which to display values. diff --git a/src/OpenSearch.Client/_Generated/Descriptors.Cluster.cs b/src/OpenSearch.Client/_Generated/Descriptors.Cluster.cs index 426e0af0be..9b72208f53 100644 --- a/src/OpenSearch.Client/_Generated/Descriptors.Cluster.cs +++ b/src/OpenSearch.Client/_Generated/Descriptors.Cluster.cs @@ -108,18 +108,18 @@ protected DeleteComponentTemplateDescriptor() /// Operation timeout for connection to cluster-manager node. /// Supported by OpenSearch servers of version 2.0.0 or greater. public DeleteComponentTemplateDescriptor ClusterManagerTimeout( - Time clustermanagertimeout + string clustermanagertimeout ) => Qs("cluster_manager_timeout", clustermanagertimeout); /// 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. [Obsolete( "Deprecated as of: 2.0.0, reason: To promote inclusive language, use 'cluster_manager_timeout' instead." )] - public DeleteComponentTemplateDescriptor MasterTimeout(Time mastertimeout) => + public DeleteComponentTemplateDescriptor MasterTimeout(string mastertimeout) => Qs("master_timeout", mastertimeout); /// Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. - public DeleteComponentTemplateDescriptor Timeout(Time timeout) => Qs("timeout", timeout); + public DeleteComponentTemplateDescriptor Timeout(string timeout) => Qs("timeout", timeout); } /// Descriptor for DeleteVotingConfigExclusions https://opensearch.org/docs/latest @@ -168,7 +168,7 @@ protected ComponentTemplateExistsDescriptor() /// Operation timeout for connection to cluster-manager node. /// Supported by OpenSearch servers of version 2.0.0 or greater. public ComponentTemplateExistsDescriptor ClusterManagerTimeout( - Time clustermanagertimeout + string clustermanagertimeout ) => Qs("cluster_manager_timeout", clustermanagertimeout); /// If true, the request retrieves information from the local node only. Defaults to false, which means information is retrieved from the master node. @@ -178,7 +178,7 @@ Time clustermanagertimeout [Obsolete( "Deprecated as of: 2.0.0, reason: To promote inclusive language, use 'cluster_manager_timeout' instead." )] - public ComponentTemplateExistsDescriptor MasterTimeout(Time mastertimeout) => + public ComponentTemplateExistsDescriptor MasterTimeout(string mastertimeout) => Qs("master_timeout", mastertimeout); } @@ -212,7 +212,7 @@ public GetComponentTemplateDescriptor Name(Name name) => // Request parameters /// Operation timeout for connection to cluster-manager node. /// Supported by OpenSearch servers of version 2.0.0 or greater. - public GetComponentTemplateDescriptor ClusterManagerTimeout(Time clustermanagertimeout) => + public GetComponentTemplateDescriptor ClusterManagerTimeout(string clustermanagertimeout) => Qs("cluster_manager_timeout", clustermanagertimeout); /// If `true`, the request retrieves information from the local node only. If `false`, information is retrieved from the master node. @@ -222,7 +222,7 @@ public GetComponentTemplateDescriptor ClusterManagerTimeout(Time clustermanagert [Obsolete( "Deprecated as of: 2.0.0, reason: To promote inclusive language, use 'cluster_manager_timeout' instead." )] - public GetComponentTemplateDescriptor MasterTimeout(Time mastertimeout) => + public GetComponentTemplateDescriptor MasterTimeout(string mastertimeout) => Qs("master_timeout", mastertimeout); } @@ -241,7 +241,7 @@ public partial class ClusterGetSettingsDescriptor // Request parameters /// Operation timeout for connection to cluster-manager node. /// Supported by OpenSearch servers of version 2.0.0 or greater. - public ClusterGetSettingsDescriptor ClusterManagerTimeout(Time clustermanagertimeout) => + public ClusterGetSettingsDescriptor ClusterManagerTimeout(string clustermanagertimeout) => Qs("cluster_manager_timeout", clustermanagertimeout); /// If `true`, returns settings in flat format. @@ -256,11 +256,11 @@ public ClusterGetSettingsDescriptor IncludeDefaults(bool? includedefaults = true [Obsolete( "Deprecated as of: 2.0.0, reason: To promote inclusive language, use 'cluster_manager_timeout' instead." )] - public ClusterGetSettingsDescriptor MasterTimeout(Time mastertimeout) => + public ClusterGetSettingsDescriptor MasterTimeout(string mastertimeout) => Qs("master_timeout", mastertimeout); /// Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. - public ClusterGetSettingsDescriptor Timeout(Time timeout) => Qs("timeout", timeout); + public ClusterGetSettingsDescriptor Timeout(string timeout) => Qs("timeout", timeout); } /// Descriptor for Health https://opensearch.org/docs/latest/api-reference/cluster-api/cluster-health/ @@ -305,7 +305,7 @@ public ClusterHealthDescriptor AwarenessAttribute(string awarenessattribute) => /// Operation timeout for connection to cluster-manager node. /// Supported by OpenSearch servers of version 2.0.0 or greater. - public ClusterHealthDescriptor ClusterManagerTimeout(Time clustermanagertimeout) => + public ClusterHealthDescriptor ClusterManagerTimeout(string clustermanagertimeout) => Qs("cluster_manager_timeout", clustermanagertimeout); /// Whether to expand wildcard expression to concrete indices that are open, closed or both. @@ -322,11 +322,11 @@ public ClusterHealthDescriptor ExpandWildcards(ExpandWildcards? expandwildcards) [Obsolete( "Deprecated as of: 2.0.0, reason: To promote inclusive language, use 'cluster_manager_timeout' instead." )] - public ClusterHealthDescriptor MasterTimeout(Time mastertimeout) => + public ClusterHealthDescriptor MasterTimeout(string mastertimeout) => Qs("master_timeout", mastertimeout); /// Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. - public ClusterHealthDescriptor Timeout(Time timeout) => Qs("timeout", timeout); + public ClusterHealthDescriptor Timeout(string timeout) => Qs("timeout", timeout); /// 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. public ClusterHealthDescriptor WaitForActiveShards(string waitforactiveshards) => @@ -370,7 +370,7 @@ public partial class ClusterPendingTasksDescriptor // Request parameters /// Operation timeout for connection to cluster-manager node. /// Supported by OpenSearch servers of version 2.0.0 or greater. - public ClusterPendingTasksDescriptor ClusterManagerTimeout(Time clustermanagertimeout) => + public ClusterPendingTasksDescriptor ClusterManagerTimeout(string clustermanagertimeout) => Qs("cluster_manager_timeout", clustermanagertimeout); /// If `true`, the request retrieves information from the local node only. If `false`, information is retrieved from the master node. @@ -380,7 +380,7 @@ public ClusterPendingTasksDescriptor ClusterManagerTimeout(Time clustermanagerti [Obsolete( "Deprecated as of: 2.0.0, reason: To promote inclusive language, use 'cluster_manager_timeout' instead." )] - public ClusterPendingTasksDescriptor MasterTimeout(Time mastertimeout) => + public ClusterPendingTasksDescriptor MasterTimeout(string mastertimeout) => Qs("master_timeout", mastertimeout); } @@ -406,7 +406,8 @@ public PostVotingConfigExclusionsDescriptor NodeNames(params string[] nodenames) Qs("node_names", nodenames); /// 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. - public PostVotingConfigExclusionsDescriptor Timeout(Time timeout) => Qs("timeout", timeout); + public PostVotingConfigExclusionsDescriptor Timeout(string timeout) => + Qs("timeout", timeout); } /// Descriptor for PutComponentTemplate https://opensearch.org/docs/latest/im-plugin/index-templates/#use-component-templates-to-create-an-index-template @@ -436,7 +437,7 @@ protected PutComponentTemplateDescriptor() // Request parameters /// Operation timeout for connection to cluster-manager node. /// Supported by OpenSearch servers of version 2.0.0 or greater. - public PutComponentTemplateDescriptor ClusterManagerTimeout(Time clustermanagertimeout) => + public PutComponentTemplateDescriptor ClusterManagerTimeout(string clustermanagertimeout) => Qs("cluster_manager_timeout", clustermanagertimeout); /// If `true`, this request cannot replace or update existing component templates. @@ -446,11 +447,11 @@ public PutComponentTemplateDescriptor ClusterManagerTimeout(Time clustermanagert [Obsolete( "Deprecated as of: 2.0.0, reason: To promote inclusive language, use 'cluster_manager_timeout' instead." )] - public PutComponentTemplateDescriptor MasterTimeout(Time mastertimeout) => + public PutComponentTemplateDescriptor MasterTimeout(string mastertimeout) => Qs("master_timeout", mastertimeout); /// Operation timeout. - public PutComponentTemplateDescriptor Timeout(Time timeout) => Qs("timeout", timeout); + public PutComponentTemplateDescriptor Timeout(string timeout) => Qs("timeout", timeout); } /// Descriptor for PutSettings https://opensearch.org/docs/latest/api-reference/cluster-settings/ @@ -468,7 +469,7 @@ public partial class ClusterPutSettingsDescriptor // Request parameters /// Operation timeout for connection to cluster-manager node. /// Supported by OpenSearch servers of version 2.0.0 or greater. - public ClusterPutSettingsDescriptor ClusterManagerTimeout(Time clustermanagertimeout) => + public ClusterPutSettingsDescriptor ClusterManagerTimeout(string clustermanagertimeout) => Qs("cluster_manager_timeout", clustermanagertimeout); /// Return settings in flat format. @@ -479,11 +480,11 @@ public ClusterPutSettingsDescriptor FlatSettings(bool? flatsettings = true) => [Obsolete( "Deprecated as of: 2.0.0, reason: To promote inclusive language, use 'cluster_manager_timeout' instead." )] - public ClusterPutSettingsDescriptor MasterTimeout(Time mastertimeout) => + public ClusterPutSettingsDescriptor MasterTimeout(string mastertimeout) => Qs("master_timeout", mastertimeout); /// Explicit operation timeout. - public ClusterPutSettingsDescriptor Timeout(Time timeout) => Qs("timeout", timeout); + public ClusterPutSettingsDescriptor Timeout(string timeout) => Qs("timeout", timeout); } /// Descriptor for RemoteInfo https://opensearch.org/docs/latest/api-reference/remote-info/ @@ -515,7 +516,7 @@ public partial class ClusterRerouteDescriptor // Request parameters /// Operation timeout for connection to cluster-manager node. /// Supported by OpenSearch servers of version 2.0.0 or greater. - public ClusterRerouteDescriptor ClusterManagerTimeout(Time clustermanagertimeout) => + public ClusterRerouteDescriptor ClusterManagerTimeout(string clustermanagertimeout) => Qs("cluster_manager_timeout", clustermanagertimeout); /// If true, then the request simulates the operation only and returns the resulting state. @@ -528,7 +529,7 @@ public ClusterRerouteDescriptor ClusterManagerTimeout(Time clustermanagertimeout [Obsolete( "Deprecated as of: 2.0.0, reason: To promote inclusive language, use 'cluster_manager_timeout' instead." )] - public ClusterRerouteDescriptor MasterTimeout(Time mastertimeout) => + public ClusterRerouteDescriptor MasterTimeout(string mastertimeout) => Qs("master_timeout", mastertimeout); /// Limits the information returned to the specified metrics. @@ -539,7 +540,7 @@ public ClusterRerouteDescriptor RetryFailed(bool? retryfailed = true) => Qs("retry_failed", retryfailed); /// Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. - public ClusterRerouteDescriptor Timeout(Time timeout) => Qs("timeout", timeout); + public ClusterRerouteDescriptor Timeout(string timeout) => Qs("timeout", timeout); } /// Descriptor for State https://opensearch.org/docs/latest @@ -595,7 +596,7 @@ public ClusterStateDescriptor AllowNoIndices(bool? allownoindices = true) => /// Operation timeout for connection to cluster-manager node. /// Supported by OpenSearch servers of version 2.0.0 or greater. - public ClusterStateDescriptor ClusterManagerTimeout(Time clustermanagertimeout) => + public ClusterStateDescriptor ClusterManagerTimeout(string clustermanagertimeout) => Qs("cluster_manager_timeout", clustermanagertimeout); /// Whether to expand wildcard expression to concrete indices that are open, closed or both. @@ -617,7 +618,7 @@ public ClusterStateDescriptor IgnoreUnavailable(bool? ignoreunavailable = true) [Obsolete( "Deprecated as of: 2.0.0, reason: To promote inclusive language, use 'cluster_manager_timeout' instead." )] - public ClusterStateDescriptor MasterTimeout(Time mastertimeout) => + public ClusterStateDescriptor MasterTimeout(string mastertimeout) => Qs("master_timeout", mastertimeout); /// Wait for the metadata version to be equal or greater than the specified metadata version. @@ -625,7 +626,7 @@ public ClusterStateDescriptor WaitForMetadataVersion(long? waitformetadataversio Qs("wait_for_metadata_version", waitformetadataversion); /// The maximum time to wait for wait_for_metadata_version before timing out. - public ClusterStateDescriptor WaitForTimeout(Time waitfortimeout) => + public ClusterStateDescriptor WaitForTimeout(string waitfortimeout) => Qs("wait_for_timeout", waitfortimeout); } @@ -662,6 +663,6 @@ public ClusterStatsDescriptor FlatSettings(bool? flatsettings = true) => Qs("flat_settings", flatsettings); /// 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. - public ClusterStatsDescriptor Timeout(Time timeout) => Qs("timeout", timeout); + public ClusterStatsDescriptor Timeout(string timeout) => Qs("timeout", timeout); } } diff --git a/src/OpenSearch.Client/_Generated/Descriptors.DanglingIndices.cs b/src/OpenSearch.Client/_Generated/Descriptors.DanglingIndices.cs index b27f71aa69..ff8f1f0bae 100644 --- a/src/OpenSearch.Client/_Generated/Descriptors.DanglingIndices.cs +++ b/src/OpenSearch.Client/_Generated/Descriptors.DanglingIndices.cs @@ -89,18 +89,18 @@ public DeleteDanglingIndexDescriptor AcceptDataLoss(bool? acceptdataloss = true) /// Operation timeout for connection to cluster-manager node. /// Supported by OpenSearch servers of version 2.0.0 or greater. - public DeleteDanglingIndexDescriptor ClusterManagerTimeout(Time clustermanagertimeout) => + public DeleteDanglingIndexDescriptor ClusterManagerTimeout(string clustermanagertimeout) => Qs("cluster_manager_timeout", clustermanagertimeout); /// Specify timeout for connection to master. [Obsolete( "Deprecated as of: 2.0.0, reason: To promote inclusive language, use 'cluster_manager_timeout' instead." )] - public DeleteDanglingIndexDescriptor MasterTimeout(Time mastertimeout) => + public DeleteDanglingIndexDescriptor MasterTimeout(string mastertimeout) => Qs("master_timeout", mastertimeout); /// Explicit operation timeout. - public DeleteDanglingIndexDescriptor Timeout(Time timeout) => Qs("timeout", timeout); + public DeleteDanglingIndexDescriptor Timeout(string timeout) => Qs("timeout", timeout); } /// Descriptor for ImportDanglingIndex https://opensearch.org/docs/latest/api-reference/index-apis/dangling-index/ @@ -135,18 +135,18 @@ public ImportDanglingIndexDescriptor AcceptDataLoss(bool? acceptdataloss = true) /// Operation timeout for connection to cluster-manager node. /// Supported by OpenSearch servers of version 2.0.0 or greater. - public ImportDanglingIndexDescriptor ClusterManagerTimeout(Time clustermanagertimeout) => + public ImportDanglingIndexDescriptor ClusterManagerTimeout(string clustermanagertimeout) => Qs("cluster_manager_timeout", clustermanagertimeout); /// Specify timeout for connection to master. [Obsolete( "Deprecated as of: 2.0.0, reason: To promote inclusive language, use 'cluster_manager_timeout' instead." )] - public ImportDanglingIndexDescriptor MasterTimeout(Time mastertimeout) => + public ImportDanglingIndexDescriptor MasterTimeout(string mastertimeout) => Qs("master_timeout", mastertimeout); /// Explicit operation timeout. - public ImportDanglingIndexDescriptor Timeout(Time timeout) => Qs("timeout", timeout); + public ImportDanglingIndexDescriptor Timeout(string timeout) => Qs("timeout", timeout); } /// Descriptor for List https://opensearch.org/docs/latest/api-reference/index-apis/dangling-index/ diff --git a/src/OpenSearch.Client/_Generated/Descriptors.Indices.cs b/src/OpenSearch.Client/_Generated/Descriptors.Indices.cs index 6e49115199..032629c2f4 100644 --- a/src/OpenSearch.Client/_Generated/Descriptors.Indices.cs +++ b/src/OpenSearch.Client/_Generated/Descriptors.Indices.cs @@ -85,18 +85,18 @@ protected DeleteComposableIndexTemplateDescriptor() /// Operation timeout for connection to cluster-manager node. /// Supported by OpenSearch servers of version 2.0.0 or greater. public DeleteComposableIndexTemplateDescriptor ClusterManagerTimeout( - Time clustermanagertimeout + string clustermanagertimeout ) => Qs("cluster_manager_timeout", clustermanagertimeout); /// 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. [Obsolete( "Deprecated as of: 2.0.0, reason: To promote inclusive language, use 'cluster_manager_timeout' instead." )] - public DeleteComposableIndexTemplateDescriptor MasterTimeout(Time mastertimeout) => + public DeleteComposableIndexTemplateDescriptor MasterTimeout(string mastertimeout) => Qs("master_timeout", mastertimeout); /// Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. - public DeleteComposableIndexTemplateDescriptor Timeout(Time timeout) => + public DeleteComposableIndexTemplateDescriptor Timeout(string timeout) => Qs("timeout", timeout); } @@ -128,7 +128,7 @@ protected ComposableIndexTemplateExistsDescriptor() /// Operation timeout for connection to cluster-manager node. /// Supported by OpenSearch servers of version 2.0.0 or greater. public ComposableIndexTemplateExistsDescriptor ClusterManagerTimeout( - Time clustermanagertimeout + string clustermanagertimeout ) => Qs("cluster_manager_timeout", clustermanagertimeout); /// Return settings in flat format. @@ -143,7 +143,7 @@ public ComposableIndexTemplateExistsDescriptor Local(bool? local = true) => [Obsolete( "Deprecated as of: 2.0.0, reason: To promote inclusive language, use 'cluster_manager_timeout' instead." )] - public ComposableIndexTemplateExistsDescriptor MasterTimeout(Time mastertimeout) => + public ComposableIndexTemplateExistsDescriptor MasterTimeout(string mastertimeout) => Qs("master_timeout", mastertimeout); } @@ -178,7 +178,7 @@ public GetComposableIndexTemplateDescriptor Name(Name name) => /// Operation timeout for connection to cluster-manager node. /// Supported by OpenSearch servers of version 2.0.0 or greater. public GetComposableIndexTemplateDescriptor ClusterManagerTimeout( - Time clustermanagertimeout + string clustermanagertimeout ) => Qs("cluster_manager_timeout", clustermanagertimeout); /// If true, returns settings in flat format. @@ -192,7 +192,7 @@ public GetComposableIndexTemplateDescriptor FlatSettings(bool? flatsettings = tr [Obsolete( "Deprecated as of: 2.0.0, reason: To promote inclusive language, use 'cluster_manager_timeout' instead." )] - public GetComposableIndexTemplateDescriptor MasterTimeout(Time mastertimeout) => + public GetComposableIndexTemplateDescriptor MasterTimeout(string mastertimeout) => Qs("master_timeout", mastertimeout); } @@ -227,7 +227,7 @@ protected PutComposableIndexTemplateDescriptor() /// Operation timeout for connection to cluster-manager node. /// Supported by OpenSearch servers of version 2.0.0 or greater. public PutComposableIndexTemplateDescriptor ClusterManagerTimeout( - Time clustermanagertimeout + string clustermanagertimeout ) => Qs("cluster_manager_timeout", clustermanagertimeout); /// If `true`, this request cannot replace or update existing index templates. @@ -238,7 +238,7 @@ public PutComposableIndexTemplateDescriptor Create(bool? create = true) => [Obsolete( "Deprecated as of: 2.0.0, reason: To promote inclusive language, use 'cluster_manager_timeout' instead." )] - public PutComposableIndexTemplateDescriptor MasterTimeout(Time mastertimeout) => + public PutComposableIndexTemplateDescriptor MasterTimeout(string mastertimeout) => Qs("master_timeout", mastertimeout); } } diff --git a/src/OpenSearch.Client/_Generated/Descriptors.Ingest.cs b/src/OpenSearch.Client/_Generated/Descriptors.Ingest.cs index 9ade495896..eaba0214c1 100644 --- a/src/OpenSearch.Client/_Generated/Descriptors.Ingest.cs +++ b/src/OpenSearch.Client/_Generated/Descriptors.Ingest.cs @@ -84,18 +84,18 @@ protected DeletePipelineDescriptor() // Request parameters /// Operation timeout for connection to cluster-manager node. /// Supported by OpenSearch servers of version 2.0.0 or greater. - public DeletePipelineDescriptor ClusterManagerTimeout(Time clustermanagertimeout) => + public DeletePipelineDescriptor ClusterManagerTimeout(string clustermanagertimeout) => Qs("cluster_manager_timeout", clustermanagertimeout); /// 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. [Obsolete( "Deprecated as of: 2.0.0, reason: To promote inclusive language, use 'cluster_manager_timeout' instead." )] - public DeletePipelineDescriptor MasterTimeout(Time mastertimeout) => + public DeletePipelineDescriptor MasterTimeout(string mastertimeout) => Qs("master_timeout", mastertimeout); /// Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. - public DeletePipelineDescriptor Timeout(Time timeout) => Qs("timeout", timeout); + public DeletePipelineDescriptor Timeout(string timeout) => Qs("timeout", timeout); } /// Descriptor for GetPipeline https://opensearch.org/docs/latest/api-reference/ingest-apis/get-ingest/ @@ -128,14 +128,14 @@ public GetPipelineDescriptor Id(Id id) => // Request parameters /// Operation timeout for connection to cluster-manager node. /// Supported by OpenSearch servers of version 2.0.0 or greater. - public GetPipelineDescriptor ClusterManagerTimeout(Time clustermanagertimeout) => + public GetPipelineDescriptor ClusterManagerTimeout(string clustermanagertimeout) => Qs("cluster_manager_timeout", clustermanagertimeout); /// 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. [Obsolete( "Deprecated as of: 2.0.0, reason: To promote inclusive language, use 'cluster_manager_timeout' instead." )] - public GetPipelineDescriptor MasterTimeout(Time mastertimeout) => + public GetPipelineDescriptor MasterTimeout(string mastertimeout) => Qs("master_timeout", mastertimeout); } @@ -180,18 +180,18 @@ protected PutPipelineDescriptor() // Request parameters /// Operation timeout for connection to cluster-manager node. /// Supported by OpenSearch servers of version 2.0.0 or greater. - public PutPipelineDescriptor ClusterManagerTimeout(Time clustermanagertimeout) => + public PutPipelineDescriptor ClusterManagerTimeout(string clustermanagertimeout) => Qs("cluster_manager_timeout", clustermanagertimeout); /// 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. [Obsolete( "Deprecated as of: 2.0.0, reason: To promote inclusive language, use 'cluster_manager_timeout' instead." )] - public PutPipelineDescriptor MasterTimeout(Time mastertimeout) => + public PutPipelineDescriptor MasterTimeout(string mastertimeout) => Qs("master_timeout", mastertimeout); /// Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. - public PutPipelineDescriptor Timeout(Time timeout) => Qs("timeout", timeout); + public PutPipelineDescriptor Timeout(string timeout) => Qs("timeout", timeout); } /// Descriptor for SimulatePipeline https://opensearch.org/docs/latest/api-reference/ingest-apis/simulate-ingest/ diff --git a/src/OpenSearch.Client/_Generated/Descriptors.NoNamespace.cs b/src/OpenSearch.Client/_Generated/Descriptors.NoNamespace.cs index 6e1b206c5b..d0741834a3 100644 --- a/src/OpenSearch.Client/_Generated/Descriptors.NoNamespace.cs +++ b/src/OpenSearch.Client/_Generated/Descriptors.NoNamespace.cs @@ -98,7 +98,7 @@ public CreatePitDescriptor ExpandWildcards(ExpandWildcards? expandwildcards) => Qs("expand_wildcards", expandwildcards); /// Specify the keep alive for point in time. - public CreatePitDescriptor KeepAlive(Time keepalive) => Qs("keep_alive", keepalive); + public CreatePitDescriptor KeepAlive(string keepalive) => Qs("keep_alive", keepalive); /// Specify the node or shard the operation should be performed on. public CreatePitDescriptor Preference(string preference) => Qs("preference", preference); diff --git a/src/OpenSearch.Client/_Generated/Descriptors.Nodes.cs b/src/OpenSearch.Client/_Generated/Descriptors.Nodes.cs index 4caeb869f8..aebcf1790b 100644 --- a/src/OpenSearch.Client/_Generated/Descriptors.Nodes.cs +++ b/src/OpenSearch.Client/_Generated/Descriptors.Nodes.cs @@ -90,7 +90,7 @@ public NodesHotThreadsDescriptor IgnoreIdleThreads(bool? ignoreidlethreads = tru Qs("ignore_idle_threads", ignoreidlethreads); /// The interval for the second sampling of threads. - public NodesHotThreadsDescriptor Interval(Time interval) => Qs("interval", interval); + public NodesHotThreadsDescriptor Interval(string interval) => Qs("interval", interval); /// Number of samples of thread stacktrace. public NodesHotThreadsDescriptor Snapshots(long? snapshots) => Qs("snapshots", snapshots); @@ -99,7 +99,7 @@ public NodesHotThreadsDescriptor IgnoreIdleThreads(bool? ignoreidlethreads = tru public NodesHotThreadsDescriptor Threads(long? threads) => Qs("threads", threads); /// Operation timeout. - public NodesHotThreadsDescriptor Timeout(Time timeout) => Qs("timeout", timeout); + public NodesHotThreadsDescriptor Timeout(string timeout) => Qs("timeout", timeout); /// The type to sample. public NodesHotThreadsDescriptor Type(NodesSampleType? type) => Qs("type", type); @@ -150,7 +150,7 @@ public NodesInfoDescriptor FlatSettings(bool? flatsettings = true) => Qs("flat_settings", flatsettings); /// Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. - public NodesInfoDescriptor Timeout(Time timeout) => Qs("timeout", timeout); + public NodesInfoDescriptor Timeout(string timeout) => Qs("timeout", timeout); } /// Descriptor for ReloadSecureSettings https://opensearch.org/docs/latest/api-reference/nodes-apis/nodes-reload-secure/ @@ -182,7 +182,7 @@ public ReloadSecureSettingsDescriptor NodeId(NodeIds nodeId) => // Request parameters /// Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. - public ReloadSecureSettingsDescriptor Timeout(Time timeout) => Qs("timeout", timeout); + public ReloadSecureSettingsDescriptor Timeout(string timeout) => Qs("timeout", timeout); } /// Descriptor for Stats https://opensearch.org/docs/latest/api-reference/nodes-apis/nodes-usage/ @@ -286,7 +286,7 @@ public NodesStatsDescriptor IncludeSegmentFileSizes(bool? includesegmentfilesize public NodesStatsDescriptor Level(Level? level) => Qs("level", level); /// Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. - public NodesStatsDescriptor Timeout(Time timeout) => Qs("timeout", timeout); + public NodesStatsDescriptor Timeout(string timeout) => Qs("timeout", timeout); /// A comma-separated list of document types for the indexing index metric. public NodesStatsDescriptor Types(params string[] types) => Qs("types", types); @@ -337,6 +337,6 @@ public NodesUsageDescriptor NodeId(NodeIds nodeId) => // Request parameters /// Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. - public NodesUsageDescriptor Timeout(Time timeout) => Qs("timeout", timeout); + public NodesUsageDescriptor Timeout(string timeout) => Qs("timeout", timeout); } } diff --git a/src/OpenSearch.Client/_Generated/Descriptors.Snapshot.cs b/src/OpenSearch.Client/_Generated/Descriptors.Snapshot.cs index f5fd45f6b1..29a069b703 100644 --- a/src/OpenSearch.Client/_Generated/Descriptors.Snapshot.cs +++ b/src/OpenSearch.Client/_Generated/Descriptors.Snapshot.cs @@ -84,18 +84,18 @@ protected CleanupRepositoryDescriptor() // Request parameters /// Operation timeout for connection to cluster-manager node. /// Supported by OpenSearch servers of version 2.0.0 or greater. - public CleanupRepositoryDescriptor ClusterManagerTimeout(Time clustermanagertimeout) => + public CleanupRepositoryDescriptor ClusterManagerTimeout(string clustermanagertimeout) => Qs("cluster_manager_timeout", clustermanagertimeout); /// Period to wait for a connection to the master node. [Obsolete( "Deprecated as of: 2.0.0, reason: To promote inclusive language, use 'cluster_manager_timeout' instead." )] - public CleanupRepositoryDescriptor MasterTimeout(Time mastertimeout) => + public CleanupRepositoryDescriptor MasterTimeout(string mastertimeout) => Qs("master_timeout", mastertimeout); /// Period to wait for a response. - public CleanupRepositoryDescriptor Timeout(Time timeout) => Qs("timeout", timeout); + public CleanupRepositoryDescriptor Timeout(string timeout) => Qs("timeout", timeout); } /// Descriptor for Clone https://opensearch.org/docs/latest @@ -133,14 +133,14 @@ protected CloneSnapshotDescriptor() // Request parameters /// Operation timeout for connection to cluster-manager node. /// Supported by OpenSearch servers of version 2.0.0 or greater. - public CloneSnapshotDescriptor ClusterManagerTimeout(Time clustermanagertimeout) => + public CloneSnapshotDescriptor ClusterManagerTimeout(string clustermanagertimeout) => Qs("cluster_manager_timeout", clustermanagertimeout); /// Explicit operation timeout for connection to master node. [Obsolete( "Deprecated as of: 2.0.0, reason: To promote inclusive language, use 'cluster_manager_timeout' instead." )] - public CloneSnapshotDescriptor MasterTimeout(Time mastertimeout) => + public CloneSnapshotDescriptor MasterTimeout(string mastertimeout) => Qs("master_timeout", mastertimeout); } @@ -169,14 +169,14 @@ protected SnapshotDescriptor() // Request parameters /// Operation timeout for connection to cluster-manager node. /// Supported by OpenSearch servers of version 2.0.0 or greater. - public SnapshotDescriptor ClusterManagerTimeout(Time clustermanagertimeout) => + public SnapshotDescriptor ClusterManagerTimeout(string clustermanagertimeout) => Qs("cluster_manager_timeout", clustermanagertimeout); /// 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. [Obsolete( "Deprecated as of: 2.0.0, reason: To promote inclusive language, use 'cluster_manager_timeout' instead." )] - public SnapshotDescriptor MasterTimeout(Time mastertimeout) => + public SnapshotDescriptor MasterTimeout(string mastertimeout) => Qs("master_timeout", mastertimeout); /// If `true`, the request returns a response when the snapshot is complete. If `false`, the request returns a response when the snapshot initializes. @@ -211,18 +211,18 @@ protected CreateRepositoryDescriptor() // Request parameters /// Operation timeout for connection to cluster-manager node. /// Supported by OpenSearch servers of version 2.0.0 or greater. - public CreateRepositoryDescriptor ClusterManagerTimeout(Time clustermanagertimeout) => + public CreateRepositoryDescriptor ClusterManagerTimeout(string clustermanagertimeout) => Qs("cluster_manager_timeout", clustermanagertimeout); /// Explicit operation timeout for connection to master node. [Obsolete( "Deprecated as of: 2.0.0, reason: To promote inclusive language, use 'cluster_manager_timeout' instead." )] - public CreateRepositoryDescriptor MasterTimeout(Time mastertimeout) => + public CreateRepositoryDescriptor MasterTimeout(string mastertimeout) => Qs("master_timeout", mastertimeout); /// Explicit operation timeout. - public CreateRepositoryDescriptor Timeout(Time timeout) => Qs("timeout", timeout); + public CreateRepositoryDescriptor Timeout(string timeout) => Qs("timeout", timeout); /// Whether to verify the repository after creation. public CreateRepositoryDescriptor Verify(bool? verify = true) => Qs("verify", verify); @@ -257,14 +257,14 @@ protected DeleteSnapshotDescriptor() // Request parameters /// Operation timeout for connection to cluster-manager node. /// Supported by OpenSearch servers of version 2.0.0 or greater. - public DeleteSnapshotDescriptor ClusterManagerTimeout(Time clustermanagertimeout) => + public DeleteSnapshotDescriptor ClusterManagerTimeout(string clustermanagertimeout) => Qs("cluster_manager_timeout", clustermanagertimeout); /// Explicit operation timeout for connection to master node. [Obsolete( "Deprecated as of: 2.0.0, reason: To promote inclusive language, use 'cluster_manager_timeout' instead." )] - public DeleteSnapshotDescriptor MasterTimeout(Time mastertimeout) => + public DeleteSnapshotDescriptor MasterTimeout(string mastertimeout) => Qs("master_timeout", mastertimeout); } @@ -295,18 +295,18 @@ protected DeleteRepositoryDescriptor() // Request parameters /// Operation timeout for connection to cluster-manager node. /// Supported by OpenSearch servers of version 2.0.0 or greater. - public DeleteRepositoryDescriptor ClusterManagerTimeout(Time clustermanagertimeout) => + public DeleteRepositoryDescriptor ClusterManagerTimeout(string clustermanagertimeout) => Qs("cluster_manager_timeout", clustermanagertimeout); /// Explicit operation timeout for connection to master node. [Obsolete( "Deprecated as of: 2.0.0, reason: To promote inclusive language, use 'cluster_manager_timeout' instead." )] - public DeleteRepositoryDescriptor MasterTimeout(Time mastertimeout) => + public DeleteRepositoryDescriptor MasterTimeout(string mastertimeout) => Qs("master_timeout", mastertimeout); /// Explicit operation timeout. - public DeleteRepositoryDescriptor Timeout(Time timeout) => Qs("timeout", timeout); + public DeleteRepositoryDescriptor Timeout(string timeout) => Qs("timeout", timeout); } /// Descriptor for Get https://opensearch.org/docs/latest @@ -338,7 +338,7 @@ protected GetSnapshotDescriptor() // Request parameters /// Operation timeout for connection to cluster-manager node. /// Supported by OpenSearch servers of version 2.0.0 or greater. - public GetSnapshotDescriptor ClusterManagerTimeout(Time clustermanagertimeout) => + public GetSnapshotDescriptor ClusterManagerTimeout(string clustermanagertimeout) => Qs("cluster_manager_timeout", clustermanagertimeout); /// If false, the request returns an error for any snapshots that are unavailable. @@ -349,7 +349,7 @@ public GetSnapshotDescriptor IgnoreUnavailable(bool? ignoreunavailable = true) = [Obsolete( "Deprecated as of: 2.0.0, reason: To promote inclusive language, use 'cluster_manager_timeout' instead." )] - public GetSnapshotDescriptor MasterTimeout(Time mastertimeout) => + public GetSnapshotDescriptor MasterTimeout(string mastertimeout) => Qs("master_timeout", mastertimeout); /// If true, returns additional information about each snapshot such as the version of OpenSearch which took the snapshot, the start and end times of the snapshot, and the number of shards snapshotted. @@ -386,7 +386,7 @@ public GetRepositoryDescriptor RepositoryName(Names repository) => // Request parameters /// Operation timeout for connection to cluster-manager node. /// Supported by OpenSearch servers of version 2.0.0 or greater. - public GetRepositoryDescriptor ClusterManagerTimeout(Time clustermanagertimeout) => + public GetRepositoryDescriptor ClusterManagerTimeout(string clustermanagertimeout) => Qs("cluster_manager_timeout", clustermanagertimeout); /// Return local information, do not retrieve the state from cluster-manager node. @@ -396,7 +396,7 @@ public GetRepositoryDescriptor ClusterManagerTimeout(Time clustermanagertimeout) [Obsolete( "Deprecated as of: 2.0.0, reason: To promote inclusive language, use 'cluster_manager_timeout' instead." )] - public GetRepositoryDescriptor MasterTimeout(Time mastertimeout) => + public GetRepositoryDescriptor MasterTimeout(string mastertimeout) => Qs("master_timeout", mastertimeout); } @@ -425,14 +425,14 @@ protected RestoreDescriptor() // Request parameters /// Operation timeout for connection to cluster-manager node. /// Supported by OpenSearch servers of version 2.0.0 or greater. - public RestoreDescriptor ClusterManagerTimeout(Time clustermanagertimeout) => + public RestoreDescriptor ClusterManagerTimeout(string clustermanagertimeout) => Qs("cluster_manager_timeout", clustermanagertimeout); /// Explicit operation timeout for connection to master node. [Obsolete( "Deprecated as of: 2.0.0, reason: To promote inclusive language, use 'cluster_manager_timeout' instead." )] - public RestoreDescriptor MasterTimeout(Time mastertimeout) => + public RestoreDescriptor MasterTimeout(string mastertimeout) => Qs("master_timeout", mastertimeout); /// Should this request wait until the operation has completed before returning. @@ -481,7 +481,7 @@ public SnapshotStatusDescriptor Snapshot(Names snapshot) => // Request parameters /// Operation timeout for connection to cluster-manager node. /// Supported by OpenSearch servers of version 2.0.0 or greater. - public SnapshotStatusDescriptor ClusterManagerTimeout(Time clustermanagertimeout) => + public SnapshotStatusDescriptor ClusterManagerTimeout(string clustermanagertimeout) => Qs("cluster_manager_timeout", clustermanagertimeout); /// Whether to ignore unavailable snapshots, defaults to false which means a SnapshotMissingException is thrown. @@ -492,7 +492,7 @@ public SnapshotStatusDescriptor IgnoreUnavailable(bool? ignoreunavailable = true [Obsolete( "Deprecated as of: 2.0.0, reason: To promote inclusive language, use 'cluster_manager_timeout' instead." )] - public SnapshotStatusDescriptor MasterTimeout(Time mastertimeout) => + public SnapshotStatusDescriptor MasterTimeout(string mastertimeout) => Qs("master_timeout", mastertimeout); } @@ -523,17 +523,17 @@ protected VerifyRepositoryDescriptor() // Request parameters /// Operation timeout for connection to cluster-manager node. /// Supported by OpenSearch servers of version 2.0.0 or greater. - public VerifyRepositoryDescriptor ClusterManagerTimeout(Time clustermanagertimeout) => + public VerifyRepositoryDescriptor ClusterManagerTimeout(string clustermanagertimeout) => Qs("cluster_manager_timeout", clustermanagertimeout); /// Explicit operation timeout for connection to master node. [Obsolete( "Deprecated as of: 2.0.0, reason: To promote inclusive language, use 'cluster_manager_timeout' instead." )] - public VerifyRepositoryDescriptor MasterTimeout(Time mastertimeout) => + public VerifyRepositoryDescriptor MasterTimeout(string mastertimeout) => Qs("master_timeout", mastertimeout); /// Explicit operation timeout. - public VerifyRepositoryDescriptor Timeout(Time timeout) => Qs("timeout", timeout); + public VerifyRepositoryDescriptor Timeout(string timeout) => Qs("timeout", timeout); } } diff --git a/src/OpenSearch.Client/_Generated/Descriptors.Tasks.cs b/src/OpenSearch.Client/_Generated/Descriptors.Tasks.cs index 3f19f53440..d861554a5a 100644 --- a/src/OpenSearch.Client/_Generated/Descriptors.Tasks.cs +++ b/src/OpenSearch.Client/_Generated/Descriptors.Tasks.cs @@ -122,7 +122,7 @@ protected GetTaskDescriptor() // Request parameters /// Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. - public GetTaskDescriptor Timeout(Time timeout) => Qs("timeout", timeout); + public GetTaskDescriptor Timeout(string timeout) => Qs("timeout", timeout); /// If `true`, the request blocks until the task has completed. public GetTaskDescriptor WaitForCompletion(bool? waitforcompletion = true) => @@ -155,7 +155,7 @@ public ListTasksDescriptor ParentTaskId(string parenttaskid) => Qs("parent_task_id", parenttaskid); /// Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. - public ListTasksDescriptor Timeout(Time timeout) => Qs("timeout", timeout); + public ListTasksDescriptor Timeout(string timeout) => Qs("timeout", timeout); /// If `true`, the request blocks until the operation is complete. public ListTasksDescriptor WaitForCompletion(bool? waitforcompletion = true) => diff --git a/src/OpenSearch.Client/_Generated/Requests.Cat.cs b/src/OpenSearch.Client/_Generated/Requests.Cat.cs index 600fcd4bce..44414fcd8a 100644 --- a/src/OpenSearch.Client/_Generated/Requests.Cat.cs +++ b/src/OpenSearch.Client/_Generated/Requests.Cat.cs @@ -241,9 +241,9 @@ public Bytes? Bytes /// Operation timeout for connection to cluster-manager node. /// Supported by OpenSearch servers of version 2.0.0 or greater. - public Time ClusterManagerTimeout + public string ClusterManagerTimeout { - get => Q