From 906dc3fabf44297b487476bc58daf8cba1a193ea Mon Sep 17 00:00:00 2001 From: nknize Date: Thu, 30 Sep 2021 00:06:27 +0000 Subject: [PATCH] [codegen] 7.x synchronization --- ...autoscaling.delete_autoscaling_policy.json | 2 +- .../autoscaling.get_autoscaling_capacity.json | 2 +- .../autoscaling.get_autoscaling_policy.json | 2 +- .../autoscaling.put_autoscaling_policy.json | 2 +- .../Core/close_point_in_time.json | 3 +- .../Core/cluster.allocation_explain.json | 2 +- .../RestSpecification/Core/field_caps.json | 3 +- .../Core/fleet.global_checkpoints.json | 4 +- .../Core/get_script_context.json | 2 +- .../Core/get_script_languages.json | 2 +- .../Core/indices.delete.json | 4 +- .../Core/indices.resolve_index.json | 2 +- .../migration.get_feature_upgrade_status.json | 24 +++++ .../Core/migration.post_feature_upgrade.json | 24 +++++ .../Core/ml.delete_expired_data.json | 3 +- .../Core/ml.preview_datafeed.json | 3 +- .../Core/ml.put_trained_model.json | 8 ++ .../Core/ml.stop_datafeed.json | 3 +- .../Core/monitoring.bulk.json | 4 +- ....clear_repositories_metering_archive.json} | 2 +- ...nodes.get_repositories_metering_info.json} | 2 +- .../RestSpecification/Core/nodes.stats.json | 6 +- .../Core/open_point_in_time.json | 6 -- .../RestSpecification/Core/rank_eval.json | 2 +- .../RestSpecification/Core/search_mvt.json | 90 +++++++++++++++++++ .../Core/searchable_snapshots.mount.json | 2 +- .../Core/searchable_snapshots.stats.json | 2 +- .../security.clear_cached_service_tokens.json | 2 +- .../Core/security.create_service_token.json | 2 +- .../Core/security.delete_service_token.json | 2 +- .../Core/security.get_service_accounts.json | 2 +- .../security.get_service_credentials.json | 2 +- .../Core/security.query_api_keys.json | 30 +++++++ .../Core/shutdown.delete_node.json | 6 +- .../Core/shutdown.get_node.json | 6 +- .../Core/shutdown.put_node.json | 6 +- .../RestSpecification/Core/terms_enum.json | 2 +- .../Core/transform.preview_transform.json | 16 +++- src/Elasticsearch.Net/Api/Enums.Generated.cs | 23 +++++ .../RequestParameters.Fleet.cs | 2 +- .../RequestParameters.Indices.cs | 2 +- .../RequestParameters.MachineLearning.cs | 6 ++ .../RequestParameters.Migration.cs | 14 +++ .../RequestParameters.NoNamespace.cs | 54 +++++++++++ .../RequestParameters.Nodes.cs | 8 +- .../RequestParameters.Security.cs | 7 ++ .../ElasticLowLevelClient.Cluster.cs | 4 +- .../ElasticLowLevelClient.Fleet.cs | 6 +- .../ElasticLowLevelClient.Indices.cs | 2 - .../ElasticLowLevelClient.Migration.cs | 18 ++++ .../ElasticLowLevelClient.NoNamespace.cs | 42 +++++---- .../ElasticLowLevelClient.Nodes.cs | 12 +-- ...asticLowLevelClient.SearchableSnapshots.cs | 6 -- .../ElasticLowLevelClient.Security.cs | 27 +++--- .../ElasticLowLevelClient.Shutdown.cs | 8 -- .../ElasticLowLevelClient.Transform.cs | 13 +++ .../IElasticLowLevelClient.Generated.cs | 40 +++++---- .../_Generated/ApiUrlsLookup.generated.cs | 4 +- 58 files changed, 448 insertions(+), 137 deletions(-) create mode 100644 src/ApiGenerator/RestSpecification/Core/migration.get_feature_upgrade_status.json create mode 100644 src/ApiGenerator/RestSpecification/Core/migration.post_feature_upgrade.json rename src/ApiGenerator/RestSpecification/Core/{nodes.clear_metering_archive.json => nodes.clear_repositories_metering_archive.json} (95%) rename src/ApiGenerator/RestSpecification/Core/{nodes.get_metering_info.json => nodes.get_repositories_metering_info.json} (94%) create mode 100644 src/ApiGenerator/RestSpecification/Core/search_mvt.json create mode 100644 src/ApiGenerator/RestSpecification/Core/security.query_api_keys.json diff --git a/src/ApiGenerator/RestSpecification/Core/autoscaling.delete_autoscaling_policy.json b/src/ApiGenerator/RestSpecification/Core/autoscaling.delete_autoscaling_policy.json index 7ddb1f1caf..548cffd1c6 100644 --- a/src/ApiGenerator/RestSpecification/Core/autoscaling.delete_autoscaling_policy.json +++ b/src/ApiGenerator/RestSpecification/Core/autoscaling.delete_autoscaling_policy.json @@ -5,7 +5,7 @@ "description":"Deletes an autoscaling policy. Designed for indirect use by ECE/ESS and ECK. Direct use is not supported." }, "stability":"stable", - "visibility":"public", + "visibility":"private", "headers":{ "accept": [ "application/json"] }, diff --git a/src/ApiGenerator/RestSpecification/Core/autoscaling.get_autoscaling_capacity.json b/src/ApiGenerator/RestSpecification/Core/autoscaling.get_autoscaling_capacity.json index 795507edfc..af34854612 100644 --- a/src/ApiGenerator/RestSpecification/Core/autoscaling.get_autoscaling_capacity.json +++ b/src/ApiGenerator/RestSpecification/Core/autoscaling.get_autoscaling_capacity.json @@ -5,7 +5,7 @@ "description": "Gets the current autoscaling capacity based on the configured autoscaling policy. Designed for indirect use by ECE/ESS and ECK. Direct use is not supported." }, "stability":"stable", - "visibility":"public", + "visibility":"private", "headers":{ "accept": [ "application/json"] }, diff --git a/src/ApiGenerator/RestSpecification/Core/autoscaling.get_autoscaling_policy.json b/src/ApiGenerator/RestSpecification/Core/autoscaling.get_autoscaling_policy.json index e76df1ec25..c4903ad255 100644 --- a/src/ApiGenerator/RestSpecification/Core/autoscaling.get_autoscaling_policy.json +++ b/src/ApiGenerator/RestSpecification/Core/autoscaling.get_autoscaling_policy.json @@ -5,7 +5,7 @@ "description": "Retrieves an autoscaling policy. Designed for indirect use by ECE/ESS and ECK. Direct use is not supported." }, "stability":"stable", - "visibility":"public", + "visibility":"private", "headers":{ "accept": [ "application/json"] }, diff --git a/src/ApiGenerator/RestSpecification/Core/autoscaling.put_autoscaling_policy.json b/src/ApiGenerator/RestSpecification/Core/autoscaling.put_autoscaling_policy.json index b51904a1bf..08c00c03e4 100644 --- a/src/ApiGenerator/RestSpecification/Core/autoscaling.put_autoscaling_policy.json +++ b/src/ApiGenerator/RestSpecification/Core/autoscaling.put_autoscaling_policy.json @@ -5,7 +5,7 @@ "description": "Creates a new autoscaling policy. Designed for indirect use by ECE/ESS and ECK. Direct use is not supported." }, "stability":"stable", - "visibility":"public", + "visibility":"private", "headers":{ "accept": [ "application/json"], "content_type": ["application/json"] diff --git a/src/ApiGenerator/RestSpecification/Core/close_point_in_time.json b/src/ApiGenerator/RestSpecification/Core/close_point_in_time.json index d3f636a1bd..c25ac88847 100644 --- a/src/ApiGenerator/RestSpecification/Core/close_point_in_time.json +++ b/src/ApiGenerator/RestSpecification/Core/close_point_in_time.json @@ -7,7 +7,8 @@ "stability":"stable", "visibility":"public", "headers":{ - "accept": [ "application/json"] + "accept": [ "application/json"], + "content_type": ["application/json"] }, "url":{ "paths":[ diff --git a/src/ApiGenerator/RestSpecification/Core/cluster.allocation_explain.json b/src/ApiGenerator/RestSpecification/Core/cluster.allocation_explain.json index 36f341d761..e828af8a56 100644 --- a/src/ApiGenerator/RestSpecification/Core/cluster.allocation_explain.json +++ b/src/ApiGenerator/RestSpecification/Core/cluster.allocation_explain.json @@ -32,7 +32,7 @@ } }, "body":{ - "description":"The index, shard, and primary flag to explain. Empty means 'explain the first unassigned shard'" + "description":"The index, shard, and primary flag to explain. Empty means 'explain a randomly-chosen unassigned shard'" } } } diff --git a/src/ApiGenerator/RestSpecification/Core/field_caps.json b/src/ApiGenerator/RestSpecification/Core/field_caps.json index d2632a1267..f1f5e3992a 100644 --- a/src/ApiGenerator/RestSpecification/Core/field_caps.json +++ b/src/ApiGenerator/RestSpecification/Core/field_caps.json @@ -7,7 +7,8 @@ "stability":"stable", "visibility":"public", "headers":{ - "accept": [ "application/json"] + "accept": [ "application/json"], + "content_type": ["application/json"] }, "url":{ "paths":[ diff --git a/src/ApiGenerator/RestSpecification/Core/fleet.global_checkpoints.json b/src/ApiGenerator/RestSpecification/Core/fleet.global_checkpoints.json index 20c46c2d9f..97618bec8f 100644 --- a/src/ApiGenerator/RestSpecification/Core/fleet.global_checkpoints.json +++ b/src/ApiGenerator/RestSpecification/Core/fleet.global_checkpoints.json @@ -1,10 +1,10 @@ { "fleet.global_checkpoints":{ "documentation":{ - "url": null, + "url": "https://www.elastic.co/guide/en/elasticsearch/reference/current/get-global-checkpoints.html", "description": "Returns the current global checkpoints for an index. This API is design for internal use by the fleet server project." }, - "stability":"experimental", + "stability":"stable", "visibility":"public", "headers":{ "accept": [ "application/json"], diff --git a/src/ApiGenerator/RestSpecification/Core/get_script_context.json b/src/ApiGenerator/RestSpecification/Core/get_script_context.json index 5f62e05756..332b57d791 100644 --- a/src/ApiGenerator/RestSpecification/Core/get_script_context.json +++ b/src/ApiGenerator/RestSpecification/Core/get_script_context.json @@ -4,7 +4,7 @@ "url": "https://www.elastic.co/guide/en/elasticsearch/painless/master/painless-contexts.html", "description":"Returns all script contexts." }, - "stability":"experimental", + "stability":"stable", "visibility":"public", "headers":{ "accept": [ "application/json"] diff --git a/src/ApiGenerator/RestSpecification/Core/get_script_languages.json b/src/ApiGenerator/RestSpecification/Core/get_script_languages.json index f8df1e76f8..9c228017f0 100644 --- a/src/ApiGenerator/RestSpecification/Core/get_script_languages.json +++ b/src/ApiGenerator/RestSpecification/Core/get_script_languages.json @@ -4,7 +4,7 @@ "url": "https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-scripting.html", "description":"Returns available script types, languages and contexts" }, - "stability":"experimental", + "stability":"stable", "visibility":"public", "headers":{ "accept": [ "application/json"] diff --git a/src/ApiGenerator/RestSpecification/Core/indices.delete.json b/src/ApiGenerator/RestSpecification/Core/indices.delete.json index 252ba75473..d066c745b9 100644 --- a/src/ApiGenerator/RestSpecification/Core/indices.delete.json +++ b/src/ApiGenerator/RestSpecification/Core/indices.delete.json @@ -51,8 +51,8 @@ "none", "all" ], - "default":"open", - "description":"Whether wildcard expressions should get expanded to open or closed indices (default: open)" + "default":"open,closed", + "description":"Whether wildcard expressions should get expanded to open, closed, or hidden indices" } } } diff --git a/src/ApiGenerator/RestSpecification/Core/indices.resolve_index.json b/src/ApiGenerator/RestSpecification/Core/indices.resolve_index.json index e51c2d5227..4ea78bfd45 100644 --- a/src/ApiGenerator/RestSpecification/Core/indices.resolve_index.json +++ b/src/ApiGenerator/RestSpecification/Core/indices.resolve_index.json @@ -4,7 +4,7 @@ "url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-resolve-index-api.html", "description":"Returns information about any matching indices, aliases, and data streams" }, - "stability":"experimental", + "stability":"stable", "visibility":"public", "headers":{ "accept": [ "application/json"] diff --git a/src/ApiGenerator/RestSpecification/Core/migration.get_feature_upgrade_status.json b/src/ApiGenerator/RestSpecification/Core/migration.get_feature_upgrade_status.json new file mode 100644 index 0000000000..27e142c6f3 --- /dev/null +++ b/src/ApiGenerator/RestSpecification/Core/migration.get_feature_upgrade_status.json @@ -0,0 +1,24 @@ +{ + "migration.get_feature_upgrade_status":{ + "documentation":{ + "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/migration-api-feature-upgrade.html", + "description":"Find out whether system features need to be upgraded or not" + }, + "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, + "url":{ + "paths":[ + { + "path":"/_migration/system_features", + "methods":[ + "GET" + ] + } + ] + }, + "params":{} + } +} diff --git a/src/ApiGenerator/RestSpecification/Core/migration.post_feature_upgrade.json b/src/ApiGenerator/RestSpecification/Core/migration.post_feature_upgrade.json new file mode 100644 index 0000000000..6bafdfc69f --- /dev/null +++ b/src/ApiGenerator/RestSpecification/Core/migration.post_feature_upgrade.json @@ -0,0 +1,24 @@ +{ + "migration.post_feature_upgrade":{ + "documentation":{ + "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/migration-api-feature-upgrade.html", + "description":"Begin upgrades for system features" + }, + "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"] + }, + "url":{ + "paths":[ + { + "path":"/_migration/system_features", + "methods":[ + "POST" + ] + } + ] + }, + "params":{} + } +} diff --git a/src/ApiGenerator/RestSpecification/Core/ml.delete_expired_data.json b/src/ApiGenerator/RestSpecification/Core/ml.delete_expired_data.json index c45ca323d4..f2e8446934 100644 --- a/src/ApiGenerator/RestSpecification/Core/ml.delete_expired_data.json +++ b/src/ApiGenerator/RestSpecification/Core/ml.delete_expired_data.json @@ -7,7 +7,8 @@ "stability":"stable", "visibility":"public", "headers":{ - "accept": [ "application/json"] + "accept": [ "application/json"], + "content_type": ["application/json"] }, "url":{ "paths":[ diff --git a/src/ApiGenerator/RestSpecification/Core/ml.preview_datafeed.json b/src/ApiGenerator/RestSpecification/Core/ml.preview_datafeed.json index 2077cc5d39..8f4486ed1b 100644 --- a/src/ApiGenerator/RestSpecification/Core/ml.preview_datafeed.json +++ b/src/ApiGenerator/RestSpecification/Core/ml.preview_datafeed.json @@ -7,7 +7,8 @@ "stability":"stable", "visibility":"public", "headers":{ - "accept": [ "application/json"] + "accept": [ "application/json"], + "content_type": ["application/json"] }, "url":{ "paths":[ diff --git a/src/ApiGenerator/RestSpecification/Core/ml.put_trained_model.json b/src/ApiGenerator/RestSpecification/Core/ml.put_trained_model.json index 28cb5821ce..af3ef880bf 100644 --- a/src/ApiGenerator/RestSpecification/Core/ml.put_trained_model.json +++ b/src/ApiGenerator/RestSpecification/Core/ml.put_trained_model.json @@ -26,6 +26,14 @@ } ] }, + "params":{ + "defer_definition_decompression": { + "required": false, + "type": "boolean", + "description": "If set to `true` and a `compressed_definition` is provided, the request defers definition decompression and skips relevant validations.", + "default": false + } + }, "body":{ "description":"The trained model configuration", "required":true diff --git a/src/ApiGenerator/RestSpecification/Core/ml.stop_datafeed.json b/src/ApiGenerator/RestSpecification/Core/ml.stop_datafeed.json index 5dca1e7970..f689a33d72 100644 --- a/src/ApiGenerator/RestSpecification/Core/ml.stop_datafeed.json +++ b/src/ApiGenerator/RestSpecification/Core/ml.stop_datafeed.json @@ -7,7 +7,8 @@ "stability":"stable", "visibility":"public", "headers":{ - "accept": [ "application/json"] + "accept": [ "application/json"], + "content_type": ["application/json"] }, "url":{ "paths":[ diff --git a/src/ApiGenerator/RestSpecification/Core/monitoring.bulk.json b/src/ApiGenerator/RestSpecification/Core/monitoring.bulk.json index 6d41a4e59d..35f1a9dd13 100644 --- a/src/ApiGenerator/RestSpecification/Core/monitoring.bulk.json +++ b/src/ApiGenerator/RestSpecification/Core/monitoring.bulk.json @@ -4,8 +4,8 @@ "url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/monitor-elasticsearch-cluster.html", "description":"Used by the monitoring features to send monitoring data." }, - "stability":"experimental", - "visibility":"public", + "stability":"stable", + "visibility":"private", "headers":{ "accept": [ "application/json"], "content_type": ["application/x-ndjson"] diff --git a/src/ApiGenerator/RestSpecification/Core/nodes.clear_metering_archive.json b/src/ApiGenerator/RestSpecification/Core/nodes.clear_repositories_metering_archive.json similarity index 95% rename from src/ApiGenerator/RestSpecification/Core/nodes.clear_metering_archive.json rename to src/ApiGenerator/RestSpecification/Core/nodes.clear_repositories_metering_archive.json index 4a7c6e3c0d..3edcb98e8b 100644 --- a/src/ApiGenerator/RestSpecification/Core/nodes.clear_metering_archive.json +++ b/src/ApiGenerator/RestSpecification/Core/nodes.clear_repositories_metering_archive.json @@ -1,5 +1,5 @@ { - "nodes.clear_metering_archive":{ + "nodes.clear_repositories_metering_archive":{ "documentation":{ "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/clear-repositories-metering-archive-api.html", "description":"Removes the archived repositories metering information present in the cluster." diff --git a/src/ApiGenerator/RestSpecification/Core/nodes.get_metering_info.json b/src/ApiGenerator/RestSpecification/Core/nodes.get_repositories_metering_info.json similarity index 94% rename from src/ApiGenerator/RestSpecification/Core/nodes.get_metering_info.json rename to src/ApiGenerator/RestSpecification/Core/nodes.get_repositories_metering_info.json index caba879a9a..312b6b6c82 100644 --- a/src/ApiGenerator/RestSpecification/Core/nodes.get_metering_info.json +++ b/src/ApiGenerator/RestSpecification/Core/nodes.get_repositories_metering_info.json @@ -1,5 +1,5 @@ { - "nodes.get_metering_info":{ + "nodes.get_repositories_metering_info":{ "documentation":{ "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/get-repositories-metering-api.html", "description":"Returns cluster repositories metering information." diff --git a/src/ApiGenerator/RestSpecification/Core/nodes.stats.json b/src/ApiGenerator/RestSpecification/Core/nodes.stats.json index 3a0b1cb754..338b4fa42a 100644 --- a/src/ApiGenerator/RestSpecification/Core/nodes.stats.json +++ b/src/ApiGenerator/RestSpecification/Core/nodes.stats.json @@ -127,7 +127,8 @@ "segments", "store", "warmer", - "suggest" + "suggest", + "shards" ], "description":"Limit the information returned for `indices` metric to the specific index metrics. Isn't used if `indices` (or `all`) metric isn't specified." } @@ -175,7 +176,8 @@ "segments", "store", "warmer", - "suggest" + "suggest", + "shards" ], "description":"Limit the information returned for `indices` metric to the specific index metrics. Isn't used if `indices` (or `all`) metric isn't specified." }, diff --git a/src/ApiGenerator/RestSpecification/Core/open_point_in_time.json b/src/ApiGenerator/RestSpecification/Core/open_point_in_time.json index d33ead1597..55b19368f7 100644 --- a/src/ApiGenerator/RestSpecification/Core/open_point_in_time.json +++ b/src/ApiGenerator/RestSpecification/Core/open_point_in_time.json @@ -11,12 +11,6 @@ }, "url":{ "paths":[ - { - "path":"/_pit", - "methods":[ - "POST" - ] - }, { "path":"/{index}/_pit", "methods":[ diff --git a/src/ApiGenerator/RestSpecification/Core/rank_eval.json b/src/ApiGenerator/RestSpecification/Core/rank_eval.json index ec123f3f88..e7d40bbe3b 100644 --- a/src/ApiGenerator/RestSpecification/Core/rank_eval.json +++ b/src/ApiGenerator/RestSpecification/Core/rank_eval.json @@ -4,7 +4,7 @@ "url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/search-rank-eval.html", "description":"Allows to evaluate the quality of ranked search results over a set of typical search queries" }, - "stability":"experimental", + "stability":"stable", "visibility":"public", "headers":{ "accept": [ "application/json"], diff --git a/src/ApiGenerator/RestSpecification/Core/search_mvt.json b/src/ApiGenerator/RestSpecification/Core/search_mvt.json new file mode 100644 index 0000000000..abd89fdef7 --- /dev/null +++ b/src/ApiGenerator/RestSpecification/Core/search_mvt.json @@ -0,0 +1,90 @@ +{ + "search_mvt": { + "documentation": { + "url": "https://www.elastic.co/guide/en/elasticsearch/reference/master/search-vector-tile-api.html", + "description": "Searches a vector tile for geospatial values. Returns results as a binary Mapbox vector tile." + }, + "stability": "experimental", + "visibility": "public", + "headers": { + "accept": [ + "application/vnd.mapbox-vector-tile" + ], + "content_type": [ + "application/json" + ] + }, + "url": { + "paths": [ + { + "path": "/{index}/_mvt/{field}/{zoom}/{x}/{y}", + "methods": [ + "POST", + "GET" + ], + "parts": { + "index": { + "type": "list", + "description": "Comma-separated list of data streams, indices, or aliases to search" + }, + "field": { + "type": "string", + "description": "Field containing geospatial data to return" + }, + "zoom": { + "type": "int", + "description": "Zoom level for the vector tile to search" + }, + "x": { + "type": "int", + "description": "X coordinate for the vector tile to search" + }, + "y": { + "type": "int", + "description": "Y coordinate for the vector tile to search" + } + } + } + ] + }, + "params":{ + "exact_bounds":{ + "type":"boolean", + "description":"If false, the meta layer's feature is the bounding box of the tile. If true, the meta layer's feature is a bounding box resulting from a `geo_bounds` aggregation.", + "default":false + }, + "extent":{ + "type":"int", + "description":"Size, in pixels, of a side of the vector tile.", + "default":4096 + }, + "grid_precision":{ + "type":"int", + "description":"Additional zoom levels available through the aggs layer. Accepts 0-8.", + "default":8 + }, + "grid_type":{ + "type":"enum", + "options":[ + "grid", + "point" + ], + "description":"Determines the geometry type for features in the aggs layer.", + "default":"grid" + }, + "size":{ + "type":"int", + "description":"Maximum number of features to return in the hits layer. Accepts 0-10000.", + "default":10000 + }, + "track_total_hits":{ + "type":"boolean|long", + "description":"Indicate if the number of documents that match the query should be tracked. A number can also be specified, to accurately track the total hit count up to the number." + } + }, + "body":{ + "description":"Search request body.", + "required":false + } + } +} diff --git a/src/ApiGenerator/RestSpecification/Core/searchable_snapshots.mount.json b/src/ApiGenerator/RestSpecification/Core/searchable_snapshots.mount.json index 61cff6a67b..31820a9816 100644 --- a/src/ApiGenerator/RestSpecification/Core/searchable_snapshots.mount.json +++ b/src/ApiGenerator/RestSpecification/Core/searchable_snapshots.mount.json @@ -4,7 +4,7 @@ "url": "https://www.elastic.co/guide/en/elasticsearch/reference/current/searchable-snapshots-api-mount-snapshot.html", "description": "Mount a snapshot as a searchable index." }, - "stability": "experimental", + "stability": "stable", "visibility":"public", "headers":{ "accept": [ "application/json"], diff --git a/src/ApiGenerator/RestSpecification/Core/searchable_snapshots.stats.json b/src/ApiGenerator/RestSpecification/Core/searchable_snapshots.stats.json index 757483b1e5..d4605aa50d 100644 --- a/src/ApiGenerator/RestSpecification/Core/searchable_snapshots.stats.json +++ b/src/ApiGenerator/RestSpecification/Core/searchable_snapshots.stats.json @@ -4,7 +4,7 @@ "url": "https://www.elastic.co/guide/en/elasticsearch/reference/current/searchable-snapshots-apis.html", "description": "Retrieve shard-level statistics about searchable snapshots." }, - "stability": "experimental", + "stability": "stable", "visibility":"public", "headers":{ "accept": [ "application/json"] diff --git a/src/ApiGenerator/RestSpecification/Core/security.clear_cached_service_tokens.json b/src/ApiGenerator/RestSpecification/Core/security.clear_cached_service_tokens.json index 3692461f74..72c10d0065 100644 --- a/src/ApiGenerator/RestSpecification/Core/security.clear_cached_service_tokens.json +++ b/src/ApiGenerator/RestSpecification/Core/security.clear_cached_service_tokens.json @@ -4,7 +4,7 @@ "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-clear-service-token-caches.html", "description":"Evicts tokens from the service account token caches." }, - "stability":"beta", + "stability":"stable", "visibility":"public", "headers":{ "accept": [ "application/json"] diff --git a/src/ApiGenerator/RestSpecification/Core/security.create_service_token.json b/src/ApiGenerator/RestSpecification/Core/security.create_service_token.json index e9d18b5d95..33bdf709fb 100644 --- a/src/ApiGenerator/RestSpecification/Core/security.create_service_token.json +++ b/src/ApiGenerator/RestSpecification/Core/security.create_service_token.json @@ -4,7 +4,7 @@ "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-create-service-token.html", "description":"Creates a service account token for access without requiring basic authentication." }, - "stability":"beta", + "stability":"stable", "visibility":"public", "headers":{ "accept": [ "application/json"] diff --git a/src/ApiGenerator/RestSpecification/Core/security.delete_service_token.json b/src/ApiGenerator/RestSpecification/Core/security.delete_service_token.json index 5d865a3c23..4da3ec30b5 100644 --- a/src/ApiGenerator/RestSpecification/Core/security.delete_service_token.json +++ b/src/ApiGenerator/RestSpecification/Core/security.delete_service_token.json @@ -4,7 +4,7 @@ "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-delete-service-token.html", "description":"Deletes a service account token." }, - "stability":"beta", + "stability":"stable", "visibility":"public", "headers":{ "accept": [ "application/json"] diff --git a/src/ApiGenerator/RestSpecification/Core/security.get_service_accounts.json b/src/ApiGenerator/RestSpecification/Core/security.get_service_accounts.json index 1a7ebb7e3c..019fdddd7f 100644 --- a/src/ApiGenerator/RestSpecification/Core/security.get_service_accounts.json +++ b/src/ApiGenerator/RestSpecification/Core/security.get_service_accounts.json @@ -4,7 +4,7 @@ "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-get-service-accounts.html", "description":"Retrieves information about service accounts." }, - "stability":"beta", + "stability":"stable", "visibility":"public", "headers":{ "accept": [ "application/json"] diff --git a/src/ApiGenerator/RestSpecification/Core/security.get_service_credentials.json b/src/ApiGenerator/RestSpecification/Core/security.get_service_credentials.json index 6753425be0..d3668cbabc 100644 --- a/src/ApiGenerator/RestSpecification/Core/security.get_service_credentials.json +++ b/src/ApiGenerator/RestSpecification/Core/security.get_service_credentials.json @@ -4,7 +4,7 @@ "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-get-service-credentials.html", "description":"Retrieves information of all service credentials for a service account." }, - "stability":"beta", + "stability":"stable", "visibility":"public", "headers":{ "accept": [ "application/json"] diff --git a/src/ApiGenerator/RestSpecification/Core/security.query_api_keys.json b/src/ApiGenerator/RestSpecification/Core/security.query_api_keys.json new file mode 100644 index 0000000000..7e2b9a0bea --- /dev/null +++ b/src/ApiGenerator/RestSpecification/Core/security.query_api_keys.json @@ -0,0 +1,30 @@ +{ + "security.query_api_keys":{ + "documentation":{ + "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-query-api-key.html", + "description":"Retrieves information for API keys using a subset of query DSL" + }, + "stability":"stable", + "visibility":"public", + "headers":{ + "accept": [ "application/json"], + "content_type": ["application/json"] + }, + "url":{ + "paths":[ + { + "path":"/_security/_query/api_key", + "methods":[ + "GET", + "POST" + ] + } + ] + }, + "params":{}, + "body":{ + "description":"From, size, query, sort and search_after", + "required":false + } + } +} diff --git a/src/ApiGenerator/RestSpecification/Core/shutdown.delete_node.json b/src/ApiGenerator/RestSpecification/Core/shutdown.delete_node.json index 864bf44d8d..d990d1da1f 100644 --- a/src/ApiGenerator/RestSpecification/Core/shutdown.delete_node.json +++ b/src/ApiGenerator/RestSpecification/Core/shutdown.delete_node.json @@ -2,10 +2,10 @@ "shutdown.delete_node":{ "documentation":{ "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current", - "description":"Removes a node from the shutdown list" + "description":"Removes a node from the shutdown list. Designed for indirect use by ECE/ESS and ECK. Direct use is not supported." }, - "stability":"experimental", - "visibility":"public", + "stability":"stable", + "visibility":"private", "headers":{ "accept": [ "application/json"], "content_type": ["application/json"] diff --git a/src/ApiGenerator/RestSpecification/Core/shutdown.get_node.json b/src/ApiGenerator/RestSpecification/Core/shutdown.get_node.json index 02aec640d8..1620b955b8 100644 --- a/src/ApiGenerator/RestSpecification/Core/shutdown.get_node.json +++ b/src/ApiGenerator/RestSpecification/Core/shutdown.get_node.json @@ -2,10 +2,10 @@ "shutdown.get_node":{ "documentation":{ "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current", - "description":"Retrieve status of a node or nodes that are currently marked as shutting down" + "description":"Retrieve status of a node or nodes that are currently marked as shutting down. Designed for indirect use by ECE/ESS and ECK. Direct use is not supported." }, - "stability":"experimental", - "visibility":"public", + "stability":"stable", + "visibility":"private", "headers":{ "accept": [ "application/json"], "content_type": ["application/json"] diff --git a/src/ApiGenerator/RestSpecification/Core/shutdown.put_node.json b/src/ApiGenerator/RestSpecification/Core/shutdown.put_node.json index 257e7b6283..bf20cf3b70 100644 --- a/src/ApiGenerator/RestSpecification/Core/shutdown.put_node.json +++ b/src/ApiGenerator/RestSpecification/Core/shutdown.put_node.json @@ -2,10 +2,10 @@ "shutdown.put_node":{ "documentation":{ "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current", - "description":"Adds a node to be shut down" + "description":"Adds a node to be shut down. Designed for indirect use by ECE/ESS and ECK. Direct use is not supported." }, - "stability":"experimental", - "visibility":"public", + "stability":"stable", + "visibility":"private", "headers":{ "accept": [ "application/json"], "content_type": ["application/json"] diff --git a/src/ApiGenerator/RestSpecification/Core/terms_enum.json b/src/ApiGenerator/RestSpecification/Core/terms_enum.json index d2ebd13180..1050eb4b18 100644 --- a/src/ApiGenerator/RestSpecification/Core/terms_enum.json +++ b/src/ApiGenerator/RestSpecification/Core/terms_enum.json @@ -4,7 +4,7 @@ "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/search-terms-enum.html", "description": "The terms enum API can be used to discover terms in the index that begin with the provided string. It is designed for low-latency look-ups used in auto-complete scenarios." }, - "stability":"beta", + "stability":"stable", "visibility":"public", "headers":{ "accept": [ "application/json"], diff --git a/src/ApiGenerator/RestSpecification/Core/transform.preview_transform.json b/src/ApiGenerator/RestSpecification/Core/transform.preview_transform.json index 89636eb907..65cece3bc1 100644 --- a/src/ApiGenerator/RestSpecification/Core/transform.preview_transform.json +++ b/src/ApiGenerator/RestSpecification/Core/transform.preview_transform.json @@ -12,9 +12,23 @@ }, "url":{ "paths":[ + { + "path":"/_transform/{transform_id}/_preview", + "methods":[ + "GET", + "POST" + ], + "parts":{ + "transform_id":{ + "type":"string", + "description":"The id of the transform to preview." + } + } + }, { "path":"/_transform/_preview", "methods":[ + "GET", "POST" ] } @@ -22,7 +36,7 @@ }, "body":{ "description":"The definition for the transform to preview", - "required":true + "required":false } } } diff --git a/src/Elasticsearch.Net/Api/Enums.Generated.cs b/src/Elasticsearch.Net/Api/Enums.Generated.cs index 4797e9b123..ae6500901c 100644 --- a/src/Elasticsearch.Net/Api/Enums.Generated.cs +++ b/src/Elasticsearch.Net/Api/Enums.Generated.cs @@ -425,6 +425,15 @@ public enum ThreadType Block } + [StringEnum] + public enum GridType + { + [EnumMember(Value = "grid")] + Grid, + [EnumMember(Value = "point")] + Point + } + [StringEnum] public enum GroupBy { @@ -478,6 +487,7 @@ static KnownEnums() EnumStringResolvers.TryAdd(typeof(OpType), (e) => GetStringValue((OpType)e)); EnumStringResolvers.TryAdd(typeof(IndicesShardStoresStatus), (e) => GetStringValue((IndicesShardStoresStatus)e)); EnumStringResolvers.TryAdd(typeof(ThreadType), (e) => GetStringValue((ThreadType)e)); + EnumStringResolvers.TryAdd(typeof(GridType), (e) => GetStringValue((GridType)e)); EnumStringResolvers.TryAdd(typeof(GroupBy), (e) => GetStringValue((GroupBy)e)); EnumStringResolvers.TryAdd(typeof(TextStructureFindStructureFormat), (e) => GetStringValue((TextStructureFindStructureFormat)e)); } @@ -965,6 +975,19 @@ public static string GetStringValue(this ThreadType enumValue) throw new ArgumentException($"'{enumValue.ToString()}' is not a valid value for enum 'ThreadType'"); } + public static string GetStringValue(this GridType enumValue) + { + switch (enumValue) + { + case GridType.Grid: + return "grid"; + case GridType.Point: + return "point"; + } + + throw new ArgumentException($"'{enumValue.ToString()}' is not a valid value for enum 'GridType'"); + } + public static string GetStringValue(this GroupBy enumValue) { switch (enumValue) diff --git a/src/Elasticsearch.Net/Api/RequestParameters/RequestParameters.Fleet.cs b/src/Elasticsearch.Net/Api/RequestParameters/RequestParameters.Fleet.cs index 4e7e05a5f3..32c4408f38 100644 --- a/src/Elasticsearch.Net/Api/RequestParameters/RequestParameters.Fleet.cs +++ b/src/Elasticsearch.Net/Api/RequestParameters/RequestParameters.Fleet.cs @@ -27,7 +27,7 @@ // ReSharper disable once CheckNamespace namespace Elasticsearch.Net.Specification.FleetApi { - ///Request options for GlobalCheckpoints + ///Request options for GlobalCheckpoints https://www.elastic.co/guide/en/elasticsearch/reference/current/get-global-checkpoints.html public class GlobalCheckpointsRequestParameters : RequestParameters { public override HttpMethod DefaultHttpMethod => HttpMethod.GET; diff --git a/src/Elasticsearch.Net/Api/RequestParameters/RequestParameters.Indices.cs b/src/Elasticsearch.Net/Api/RequestParameters/RequestParameters.Indices.cs index bf942f264e..76acbb54fc 100644 --- a/src/Elasticsearch.Net/Api/RequestParameters/RequestParameters.Indices.cs +++ b/src/Elasticsearch.Net/Api/RequestParameters/RequestParameters.Indices.cs @@ -290,7 +290,7 @@ public bool? AllowNoIndices set => Q("allow_no_indices", value); } - ///Whether wildcard expressions should get expanded to open or closed indices (default: open) + ///Whether wildcard expressions should get expanded to open, closed, or hidden indices public ExpandWildcards? ExpandWildcards { get => Q("expand_wildcards"); diff --git a/src/Elasticsearch.Net/Api/RequestParameters/RequestParameters.MachineLearning.cs b/src/Elasticsearch.Net/Api/RequestParameters/RequestParameters.MachineLearning.cs index 9d04c32182..60161d50f7 100644 --- a/src/Elasticsearch.Net/Api/RequestParameters/RequestParameters.MachineLearning.cs +++ b/src/Elasticsearch.Net/Api/RequestParameters/RequestParameters.MachineLearning.cs @@ -789,6 +789,12 @@ public class PutTrainedModelRequestParameters : RequestParameters HttpMethod.PUT; public override bool SupportsBody => true; + ///If set to `true` and a `compressed_definition` is provided, the request defers definition decompression and skips relevant validations. + public bool? DeferDefinitionDecompression + { + get => Q("defer_definition_decompression"); + set => Q("defer_definition_decompression", value); + } } ///Request options for PutTrainedModelAlias https://www.elastic.co/guide/en/elasticsearch/reference/current/put-trained-models-aliases.html diff --git a/src/Elasticsearch.Net/Api/RequestParameters/RequestParameters.Migration.cs b/src/Elasticsearch.Net/Api/RequestParameters/RequestParameters.Migration.cs index 4f7db9bec9..27e57cf56d 100644 --- a/src/Elasticsearch.Net/Api/RequestParameters/RequestParameters.Migration.cs +++ b/src/Elasticsearch.Net/Api/RequestParameters/RequestParameters.Migration.cs @@ -33,4 +33,18 @@ public class DeprecationInfoRequestParameters : RequestParameters HttpMethod.GET; public override bool SupportsBody => false; } + + ///Request options for GetFeatureUpgradeStatus https://www.elastic.co/guide/en/elasticsearch/reference/current/migration-api-feature-upgrade.html + public class GetFeatureUpgradeStatusRequestParameters : RequestParameters + { + public override HttpMethod DefaultHttpMethod => HttpMethod.GET; + public override bool SupportsBody => false; + } + + ///Request options for PostFeatureUpgrade https://www.elastic.co/guide/en/elasticsearch/reference/current/migration-api-feature-upgrade.html + public class PostFeatureUpgradeRequestParameters : RequestParameters + { + public override HttpMethod DefaultHttpMethod => HttpMethod.POST; + public override bool SupportsBody => false; + } } \ No newline at end of file diff --git a/src/Elasticsearch.Net/Api/RequestParameters/RequestParameters.NoNamespace.cs b/src/Elasticsearch.Net/Api/RequestParameters/RequestParameters.NoNamespace.cs index 6dd2464408..f8c9b3f19a 100644 --- a/src/Elasticsearch.Net/Api/RequestParameters/RequestParameters.NoNamespace.cs +++ b/src/Elasticsearch.Net/Api/RequestParameters/RequestParameters.NoNamespace.cs @@ -1896,6 +1896,60 @@ public bool? TypedKeys } } + ///Request options for SearchMvt https://www.elastic.co/guide/en/elasticsearch/reference/master/search-vector-tile-api.html + public class SearchMvtRequestParameters : RequestParameters + { + public override HttpMethod DefaultHttpMethod => HttpMethod.POST; + public override bool SupportsBody => true; + /// + /// If false, the meta layer's feature is the bounding box of the tile. If true, the meta layer's feature is a bounding box resulting from a + /// `geo_bounds` aggregation. + /// + public bool? ExactBounds + { + get => Q("exact_bounds"); + set => Q("exact_bounds", value); + } + + ///Size, in pixels, of a side of the vector tile. + public int? Extent + { + get => Q("extent"); + set => Q("extent", value); + } + + ///Additional zoom levels available through the aggs layer. Accepts 0-8. + public int? GridPrecision + { + get => Q("grid_precision"); + set => Q("grid_precision", value); + } + + ///Determines the geometry type for features in the aggs layer. + public GridType? GridType + { + get => Q("grid_type"); + set => Q("grid_type", value); + } + + ///Maximum number of features to return in the hits layer. Accepts 0-10000. + public int? Size + { + get => Q("size"); + set => Q("size", value); + } + + /// + /// Indicate if the number of documents that match the query should be tracked. A number can also be specified, to accurately track the total + /// hit count up to the number. + /// + public bool? TrackTotalHits + { + get => Q("track_total_hits"); + set => Q("track_total_hits", value); + } + } + ///Request options for SearchShards https://www.elastic.co/guide/en/elasticsearch/reference/master/search-shards.html public class SearchShardsRequestParameters : RequestParameters { diff --git a/src/Elasticsearch.Net/Api/RequestParameters/RequestParameters.Nodes.cs b/src/Elasticsearch.Net/Api/RequestParameters/RequestParameters.Nodes.cs index dd23170f48..5458d74360 100644 --- a/src/Elasticsearch.Net/Api/RequestParameters/RequestParameters.Nodes.cs +++ b/src/Elasticsearch.Net/Api/RequestParameters/RequestParameters.Nodes.cs @@ -27,15 +27,15 @@ // ReSharper disable once CheckNamespace namespace Elasticsearch.Net.Specification.NodesApi { - ///Request options for ClearMeteringArchive https://www.elastic.co/guide/en/elasticsearch/reference/current/clear-repositories-metering-archive-api.html - public class ClearMeteringArchiveRequestParameters : RequestParameters + ///Request options for ClearRepositoriesMeteringArchive https://www.elastic.co/guide/en/elasticsearch/reference/current/clear-repositories-metering-archive-api.html + public class ClearRepositoriesMeteringArchiveRequestParameters : RequestParameters { public override HttpMethod DefaultHttpMethod => HttpMethod.DELETE; public override bool SupportsBody => false; } - ///Request options for GetMeteringInfo https://www.elastic.co/guide/en/elasticsearch/reference/current/get-repositories-metering-api.html - public class GetMeteringInfoRequestParameters : RequestParameters + ///Request options for GetRepositoriesMeteringInfo https://www.elastic.co/guide/en/elasticsearch/reference/current/get-repositories-metering-api.html + public class GetRepositoriesMeteringInfoRequestParameters : RequestParameters { public override HttpMethod DefaultHttpMethod => HttpMethod.GET; public override bool SupportsBody => false; diff --git a/src/Elasticsearch.Net/Api/RequestParameters/RequestParameters.Security.cs b/src/Elasticsearch.Net/Api/RequestParameters/RequestParameters.Security.cs index 225af32d51..e1ccb33764 100644 --- a/src/Elasticsearch.Net/Api/RequestParameters/RequestParameters.Security.cs +++ b/src/Elasticsearch.Net/Api/RequestParameters/RequestParameters.Security.cs @@ -440,6 +440,13 @@ public Refresh? Refresh } } + ///Request options for QueryApiKeys https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-query-api-key.html + public class QueryApiKeysRequestParameters : RequestParameters + { + public override HttpMethod DefaultHttpMethod => HttpMethod.POST; + public override bool SupportsBody => true; + } + ///Request options for SamlAuthenticate https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-saml-authenticate.html public class SamlAuthenticateRequestParameters : RequestParameters { diff --git a/src/Elasticsearch.Net/ElasticLowLevelClient.Cluster.cs b/src/Elasticsearch.Net/ElasticLowLevelClient.Cluster.cs index e7f1f1bbeb..edd90a59a2 100644 --- a/src/Elasticsearch.Net/ElasticLowLevelClient.Cluster.cs +++ b/src/Elasticsearch.Net/ElasticLowLevelClient.Cluster.cs @@ -47,12 +47,12 @@ internal LowLevelClusterNamespace(ElasticLowLevelClient client): base(client) } ///POST on /_cluster/allocation/explain https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-allocation-explain.html - ///The index, shard, and primary flag to explain. Empty means 'explain the first unassigned shard' + ///The index, shard, and primary flag to explain. Empty means 'explain a randomly-chosen unassigned shard' ///Request specific configuration such as querystring parameters & request specific connection settings. public TResponse AllocationExplain(PostData body, ClusterAllocationExplainRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => DoRequest(POST, "_cluster/allocation/explain", body, RequestParams(requestParameters)); ///POST on /_cluster/allocation/explain https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-allocation-explain.html - ///The index, shard, and primary flag to explain. Empty means 'explain the first unassigned shard' + ///The index, shard, and primary flag to explain. Empty means 'explain a randomly-chosen unassigned shard' ///Request specific configuration such as querystring parameters & request specific connection settings. [MapsApi("cluster.allocation_explain", "body")] public Task AllocationExplainAsync(PostData body, ClusterAllocationExplainRequestParameters requestParameters = null, CancellationToken ctx = default) diff --git a/src/Elasticsearch.Net/ElasticLowLevelClient.Fleet.cs b/src/Elasticsearch.Net/ElasticLowLevelClient.Fleet.cs index d2cf9feb13..2147705318 100644 --- a/src/Elasticsearch.Net/ElasticLowLevelClient.Fleet.cs +++ b/src/Elasticsearch.Net/ElasticLowLevelClient.Fleet.cs @@ -46,16 +46,14 @@ internal LowLevelFleetNamespace(ElasticLowLevelClient client): base(client) { } - ///GET on /{index}/_fleet/global_checkpoints + ///GET on /{index}/_fleet/global_checkpoints https://www.elastic.co/guide/en/elasticsearch/reference/current/get-global-checkpoints.html ///The name of the index. ///Request specific configuration such as querystring parameters & request specific connection settings. - ///Note: Experimental within the Elasticsearch server, this functionality is Experimental and may be changed or removed completely in a future release. Elastic will take a best effort approach to fix any issues, but experimental features are not subject to the support SLA of official GA features. This functionality is subject to potential breaking changes within a minor version, meaning that your referencing code may break when this library is upgraded. public TResponse GlobalCheckpoints(string index, GlobalCheckpointsRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => DoRequest(GET, Url($"{index:index}/_fleet/global_checkpoints"), null, RequestParams(requestParameters)); - ///GET on /{index}/_fleet/global_checkpoints + ///GET on /{index}/_fleet/global_checkpoints https://www.elastic.co/guide/en/elasticsearch/reference/current/get-global-checkpoints.html ///The name of the index. ///Request specific configuration such as querystring parameters & request specific connection settings. - ///Note: Experimental within the Elasticsearch server, this functionality is Experimental and may be changed or removed completely in a future release. Elastic will take a best effort approach to fix any issues, but experimental features are not subject to the support SLA of official GA features. This functionality is subject to potential breaking changes within a minor version, meaning that your referencing code may break when this library is upgraded. [MapsApi("fleet.global_checkpoints", "index")] public Task GlobalCheckpointsAsync(string index, GlobalCheckpointsRequestParameters requestParameters = null, CancellationToken ctx = default) where TResponse : class, IElasticsearchResponse, new() => DoRequestAsync(GET, Url($"{index:index}/_fleet/global_checkpoints"), ctx, null, RequestParams(requestParameters)); diff --git a/src/Elasticsearch.Net/ElasticLowLevelClient.Indices.cs b/src/Elasticsearch.Net/ElasticLowLevelClient.Indices.cs index 5d2efe5be0..3359056fad 100644 --- a/src/Elasticsearch.Net/ElasticLowLevelClient.Indices.cs +++ b/src/Elasticsearch.Net/ElasticLowLevelClient.Indices.cs @@ -863,13 +863,11 @@ public Task ReloadSearchAnalyzersAsync(string index, Reloa ///GET on /_resolve/index/{name} https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-resolve-index-api.html ///A comma-separated list of names or wildcard expressions ///Request specific configuration such as querystring parameters & request specific connection settings. - ///Note: Experimental within the Elasticsearch server, this functionality is Experimental and may be changed or removed completely in a future release. Elastic will take a best effort approach to fix any issues, but experimental features are not subject to the support SLA of official GA features. This functionality is subject to potential breaking changes within a minor version, meaning that your referencing code may break when this library is upgraded. public TResponse ResolveForAll(string name, ResolveIndexRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => DoRequest(GET, Url($"_resolve/index/{name:name}"), null, RequestParams(requestParameters)); ///GET on /_resolve/index/{name} https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-resolve-index-api.html ///A comma-separated list of names or wildcard expressions ///Request specific configuration such as querystring parameters & request specific connection settings. - ///Note: Experimental within the Elasticsearch server, this functionality is Experimental and may be changed or removed completely in a future release. Elastic will take a best effort approach to fix any issues, but experimental features are not subject to the support SLA of official GA features. This functionality is subject to potential breaking changes within a minor version, meaning that your referencing code may break when this library is upgraded. [MapsApi("indices.resolve_index", "name")] public Task ResolveForAllAsync(string name, ResolveIndexRequestParameters requestParameters = null, CancellationToken ctx = default) where TResponse : class, IElasticsearchResponse, new() => DoRequestAsync(GET, Url($"_resolve/index/{name:name}"), ctx, null, RequestParams(requestParameters)); diff --git a/src/Elasticsearch.Net/ElasticLowLevelClient.Migration.cs b/src/Elasticsearch.Net/ElasticLowLevelClient.Migration.cs index 00ba967190..ad061550df 100644 --- a/src/Elasticsearch.Net/ElasticLowLevelClient.Migration.cs +++ b/src/Elasticsearch.Net/ElasticLowLevelClient.Migration.cs @@ -66,5 +66,23 @@ public TResponse DeprecationInfo(string index, DeprecationInfoRequest [MapsApi("migration.deprecations", "index")] public Task DeprecationInfoAsync(string index, DeprecationInfoRequestParameters requestParameters = null, CancellationToken ctx = default) where TResponse : class, IElasticsearchResponse, new() => DoRequestAsync(GET, Url($"{index:index}/_migration/deprecations"), ctx, null, RequestParams(requestParameters)); + ///GET on /_migration/system_features https://www.elastic.co/guide/en/elasticsearch/reference/current/migration-api-feature-upgrade.html + ///Request specific configuration such as querystring parameters & request specific connection settings. + public TResponse GetFeatureUpgradeStatus(GetFeatureUpgradeStatusRequestParameters requestParameters = null) + where TResponse : class, IElasticsearchResponse, new() => DoRequest(GET, "_migration/system_features", null, RequestParams(requestParameters)); + ///GET on /_migration/system_features https://www.elastic.co/guide/en/elasticsearch/reference/current/migration-api-feature-upgrade.html + ///Request specific configuration such as querystring parameters & request specific connection settings. + [MapsApi("migration.get_feature_upgrade_status", "")] + public Task GetFeatureUpgradeStatusAsync(GetFeatureUpgradeStatusRequestParameters requestParameters = null, CancellationToken ctx = default) + where TResponse : class, IElasticsearchResponse, new() => DoRequestAsync(GET, "_migration/system_features", ctx, null, RequestParams(requestParameters)); + ///POST on /_migration/system_features https://www.elastic.co/guide/en/elasticsearch/reference/current/migration-api-feature-upgrade.html + ///Request specific configuration such as querystring parameters & request specific connection settings. + public TResponse PostFeatureUpgrade(PostFeatureUpgradeRequestParameters requestParameters = null) + where TResponse : class, IElasticsearchResponse, new() => DoRequest(POST, "_migration/system_features", null, RequestParams(requestParameters)); + ///POST on /_migration/system_features https://www.elastic.co/guide/en/elasticsearch/reference/current/migration-api-feature-upgrade.html + ///Request specific configuration such as querystring parameters & request specific connection settings. + [MapsApi("migration.post_feature_upgrade", "")] + public Task PostFeatureUpgradeAsync(PostFeatureUpgradeRequestParameters requestParameters = null, CancellationToken ctx = default) + where TResponse : class, IElasticsearchResponse, new() => DoRequestAsync(POST, "_migration/system_features", ctx, null, RequestParams(requestParameters)); } } \ No newline at end of file diff --git a/src/Elasticsearch.Net/ElasticLowLevelClient.NoNamespace.cs b/src/Elasticsearch.Net/ElasticLowLevelClient.NoNamespace.cs index 9c85c22bdc..fb0ea83df7 100644 --- a/src/Elasticsearch.Net/ElasticLowLevelClient.NoNamespace.cs +++ b/src/Elasticsearch.Net/ElasticLowLevelClient.NoNamespace.cs @@ -685,23 +685,19 @@ public Task GetScriptAsync(string id, GetScriptRequestPara where TResponse : class, IElasticsearchResponse, new() => DoRequestAsync(GET, Url($"_scripts/{id:id}"), ctx, null, RequestParams(requestParameters)); ///GET on /_script_context https://www.elastic.co/guide/en/elasticsearch/painless/master/painless-contexts.html ///Request specific configuration such as querystring parameters & request specific connection settings. - ///Note: Experimental within the Elasticsearch server, this functionality is Experimental and may be changed or removed completely in a future release. Elastic will take a best effort approach to fix any issues, but experimental features are not subject to the support SLA of official GA features. This functionality is subject to potential breaking changes within a minor version, meaning that your referencing code may break when this library is upgraded. public TResponse GetScriptContext(GetScriptContextRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => DoRequest(GET, "_script_context", null, RequestParams(requestParameters)); ///GET on /_script_context https://www.elastic.co/guide/en/elasticsearch/painless/master/painless-contexts.html ///Request specific configuration such as querystring parameters & request specific connection settings. - ///Note: Experimental within the Elasticsearch server, this functionality is Experimental and may be changed or removed completely in a future release. Elastic will take a best effort approach to fix any issues, but experimental features are not subject to the support SLA of official GA features. This functionality is subject to potential breaking changes within a minor version, meaning that your referencing code may break when this library is upgraded. [MapsApi("get_script_context", "")] public Task GetScriptContextAsync(GetScriptContextRequestParameters requestParameters = null, CancellationToken ctx = default) where TResponse : class, IElasticsearchResponse, new() => DoRequestAsync(GET, "_script_context", ctx, null, RequestParams(requestParameters)); ///GET on /_script_language https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-scripting.html ///Request specific configuration such as querystring parameters & request specific connection settings. - ///Note: Experimental within the Elasticsearch server, this functionality is Experimental and may be changed or removed completely in a future release. Elastic will take a best effort approach to fix any issues, but experimental features are not subject to the support SLA of official GA features. This functionality is subject to potential breaking changes within a minor version, meaning that your referencing code may break when this library is upgraded. public TResponse GetScriptLanguages(GetScriptLanguagesRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => DoRequest(GET, "_script_language", null, RequestParams(requestParameters)); ///GET on /_script_language https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-scripting.html ///Request specific configuration such as querystring parameters & request specific connection settings. - ///Note: Experimental within the Elasticsearch server, this functionality is Experimental and may be changed or removed completely in a future release. Elastic will take a best effort approach to fix any issues, but experimental features are not subject to the support SLA of official GA features. This functionality is subject to potential breaking changes within a minor version, meaning that your referencing code may break when this library is upgraded. [MapsApi("get_script_languages", "")] public Task GetScriptLanguagesAsync(GetScriptLanguagesRequestParameters requestParameters = null, CancellationToken ctx = default) where TResponse : class, IElasticsearchResponse, new() => DoRequestAsync(GET, "_script_language", ctx, null, RequestParams(requestParameters)); @@ -972,15 +968,6 @@ public TResponse MultiTermVectorsUsingType(string index, string type, [MapsApi("mtermvectors", "index, type, body")] public Task MultiTermVectorsUsingTypeAsync(string index, string type, PostData body, MultiTermVectorsRequestParameters requestParameters = null, CancellationToken ctx = default) where TResponse : class, IElasticsearchResponse, new() => DoRequestAsync(POST, Url($"{index:index}/{type:type}/_mtermvectors"), ctx, body, RequestParams(requestParameters)); - ///POST on /_pit https://www.elastic.co/guide/en/elasticsearch/reference/master/point-in-time-api.html - ///Request specific configuration such as querystring parameters & request specific connection settings. - public TResponse OpenPointInTime(OpenPointInTimeRequestParameters requestParameters = null) - where TResponse : class, IElasticsearchResponse, new() => DoRequest(POST, "_pit", null, RequestParams(requestParameters)); - ///POST on /_pit https://www.elastic.co/guide/en/elasticsearch/reference/master/point-in-time-api.html - ///Request specific configuration such as querystring parameters & request specific connection settings. - [MapsApi("open_point_in_time", "")] - public Task OpenPointInTimeAsync(OpenPointInTimeRequestParameters requestParameters = null, CancellationToken ctx = default) - where TResponse : class, IElasticsearchResponse, new() => DoRequestAsync(POST, "_pit", ctx, null, RequestParams(requestParameters)); ///POST on /{index}/_pit https://www.elastic.co/guide/en/elasticsearch/reference/master/point-in-time-api.html ///A comma-separated list of index names to open point in time; use the special string `_all` or Indices.All to perform the operation on all indices ///Request specific configuration such as querystring parameters & request specific connection settings. @@ -1032,13 +1019,11 @@ public Task PutScriptAsync(string id, string context, Post ///POST on /_rank_eval https://www.elastic.co/guide/en/elasticsearch/reference/master/search-rank-eval.html ///The ranking evaluation search definition, including search requests, document ratings and ranking metric definition. ///Request specific configuration such as querystring parameters & request specific connection settings. - ///Note: Experimental within the Elasticsearch server, this functionality is Experimental and may be changed or removed completely in a future release. Elastic will take a best effort approach to fix any issues, but experimental features are not subject to the support SLA of official GA features. This functionality is subject to potential breaking changes within a minor version, meaning that your referencing code may break when this library is upgraded. public TResponse RankEval(PostData body, RankEvalRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => DoRequest(POST, "_rank_eval", body, RequestParams(requestParameters)); ///POST on /_rank_eval https://www.elastic.co/guide/en/elasticsearch/reference/master/search-rank-eval.html ///The ranking evaluation search definition, including search requests, document ratings and ranking metric definition. ///Request specific configuration such as querystring parameters & request specific connection settings. - ///Note: Experimental within the Elasticsearch server, this functionality is Experimental and may be changed or removed completely in a future release. Elastic will take a best effort approach to fix any issues, but experimental features are not subject to the support SLA of official GA features. This functionality is subject to potential breaking changes within a minor version, meaning that your referencing code may break when this library is upgraded. [MapsApi("rank_eval", "body")] public Task RankEvalAsync(PostData body, RankEvalRequestParameters requestParameters = null, CancellationToken ctx = default) where TResponse : class, IElasticsearchResponse, new() => DoRequestAsync(POST, "_rank_eval", ctx, body, RequestParams(requestParameters)); @@ -1046,14 +1031,12 @@ public Task RankEvalAsync(PostData body, RankEvalRequestPa ///A comma-separated list of index names to search; use the special string `_all` or Indices.All to perform the operation on all indices ///The ranking evaluation search definition, including search requests, document ratings and ranking metric definition. ///Request specific configuration such as querystring parameters & request specific connection settings. - ///Note: Experimental within the Elasticsearch server, this functionality is Experimental and may be changed or removed completely in a future release. Elastic will take a best effort approach to fix any issues, but experimental features are not subject to the support SLA of official GA features. This functionality is subject to potential breaking changes within a minor version, meaning that your referencing code may break when this library is upgraded. public TResponse RankEval(string index, PostData body, RankEvalRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => DoRequest(POST, Url($"{index:index}/_rank_eval"), body, RequestParams(requestParameters)); ///POST on /{index}/_rank_eval https://www.elastic.co/guide/en/elasticsearch/reference/master/search-rank-eval.html ///A comma-separated list of index names to search; use the special string `_all` or Indices.All to perform the operation on all indices ///The ranking evaluation search definition, including search requests, document ratings and ranking metric definition. ///Request specific configuration such as querystring parameters & request specific connection settings. - ///Note: Experimental within the Elasticsearch server, this functionality is Experimental and may be changed or removed completely in a future release. Elastic will take a best effort approach to fix any issues, but experimental features are not subject to the support SLA of official GA features. This functionality is subject to potential breaking changes within a minor version, meaning that your referencing code may break when this library is upgraded. [MapsApi("rank_eval", "index, body")] public Task RankEvalAsync(string index, PostData body, RankEvalRequestParameters requestParameters = null, CancellationToken ctx = default) where TResponse : class, IElasticsearchResponse, new() => DoRequestAsync(POST, Url($"{index:index}/_rank_eval"), ctx, body, RequestParams(requestParameters)); @@ -1183,6 +1166,29 @@ public TResponse SearchUsingType(string index, string type, PostData [MapsApi("search", "index, type, body")] public Task SearchUsingTypeAsync(string index, string type, PostData body, SearchRequestParameters requestParameters = null, CancellationToken ctx = default) where TResponse : class, IElasticsearchResponse, new() => DoRequestAsync(POST, Url($"{index:index}/{type:type}/_search"), ctx, body, RequestParams(requestParameters)); + ///POST on /{index}/_mvt/{field}/{zoom}/{x}/{y} https://www.elastic.co/guide/en/elasticsearch/reference/master/search-vector-tile-api.html + ///Comma-separated list of data streams, indices, or aliases to search + ///Field containing geospatial data to return + ///Zoom level for the vector tile to search + ///X coordinate for the vector tile to search + ///Y coordinate for the vector tile to search + ///Search request body. + ///Request specific configuration such as querystring parameters & request specific connection settings. + ///Note: Experimental within the Elasticsearch server, this functionality is Experimental and may be changed or removed completely in a future release. Elastic will take a best effort approach to fix any issues, but experimental features are not subject to the support SLA of official GA features. This functionality is subject to potential breaking changes within a minor version, meaning that your referencing code may break when this library is upgraded. + public TResponse SearchMvt(string index, string field, int zoom, int X, int Y, PostData body, SearchMvtRequestParameters requestParameters = null) + where TResponse : class, IElasticsearchResponse, new() => DoRequest(POST, Url($"{index:index}/_mvt/{field:field}/{zoom:zoom}/{X:X}/{Y:Y}"), body, RequestParams(requestParameters)); + ///POST on /{index}/_mvt/{field}/{zoom}/{x}/{y} https://www.elastic.co/guide/en/elasticsearch/reference/master/search-vector-tile-api.html + ///Comma-separated list of data streams, indices, or aliases to search + ///Field containing geospatial data to return + ///Zoom level for the vector tile to search + ///X coordinate for the vector tile to search + ///Y coordinate for the vector tile to search + ///Search request body. + ///Request specific configuration such as querystring parameters & request specific connection settings. + ///Note: Experimental within the Elasticsearch server, this functionality is Experimental and may be changed or removed completely in a future release. Elastic will take a best effort approach to fix any issues, but experimental features are not subject to the support SLA of official GA features. This functionality is subject to potential breaking changes within a minor version, meaning that your referencing code may break when this library is upgraded. + [MapsApi("search_mvt", "index, field, zoom, x, y, body")] + public Task SearchMvtAsync(string index, string field, int zoom, int X, int Y, PostData body, SearchMvtRequestParameters requestParameters = null, CancellationToken ctx = default) + where TResponse : class, IElasticsearchResponse, new() => DoRequestAsync(POST, Url($"{index:index}/_mvt/{field:field}/{zoom:zoom}/{X:X}/{Y:Y}"), ctx, body, RequestParams(requestParameters)); ///POST on /_search_shards https://www.elastic.co/guide/en/elasticsearch/reference/master/search-shards.html ///Request specific configuration such as querystring parameters & request specific connection settings. public TResponse SearchShards(SearchShardsRequestParameters requestParameters = null) @@ -1248,14 +1254,12 @@ public Task SearchTemplateUsingTypeAsync(string index, str ///A comma-separated list of index names to search; use the special string `_all` or Indices.All to perform the operation on all indices ///field name, string which is the prefix expected in matching terms, timeout and size for max number of results ///Request specific configuration such as querystring parameters & request specific connection settings. - ///Note: Beta within the Elasticsearch server, this functionality is in Beta and is subject to change. The design and code is less mature than official GA features and is being provided as-is with no warranties. Beta features are not subject to the support SLA of official GA features. This functionality is subject to potential breaking changes within a minor version, meaning that your referencing code may break when this library is upgraded. public TResponse TermsEnum(string index, PostData body, TermsEnumRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => DoRequest(POST, Url($"{index:index}/_terms_enum"), body, RequestParams(requestParameters)); ///POST on /{index}/_terms_enum https://www.elastic.co/guide/en/elasticsearch/reference/current/search-terms-enum.html ///A comma-separated list of index names to search; use the special string `_all` or Indices.All to perform the operation on all indices ///field name, string which is the prefix expected in matching terms, timeout and size for max number of results ///Request specific configuration such as querystring parameters & request specific connection settings. - ///Note: Beta within the Elasticsearch server, this functionality is in Beta and is subject to change. The design and code is less mature than official GA features and is being provided as-is with no warranties. Beta features are not subject to the support SLA of official GA features. This functionality is subject to potential breaking changes within a minor version, meaning that your referencing code may break when this library is upgraded. [MapsApi("terms_enum", "index, body")] public Task TermsEnumAsync(string index, PostData body, TermsEnumRequestParameters requestParameters = null, CancellationToken ctx = default) where TResponse : class, IElasticsearchResponse, new() => DoRequestAsync(POST, Url($"{index:index}/_terms_enum"), ctx, body, RequestParams(requestParameters)); diff --git a/src/Elasticsearch.Net/ElasticLowLevelClient.Nodes.cs b/src/Elasticsearch.Net/ElasticLowLevelClient.Nodes.cs index 9a7fc8277e..c599dec7cb 100644 --- a/src/Elasticsearch.Net/ElasticLowLevelClient.Nodes.cs +++ b/src/Elasticsearch.Net/ElasticLowLevelClient.Nodes.cs @@ -51,28 +51,28 @@ internal LowLevelNodesNamespace(ElasticLowLevelClient client): base(client) ///Specifies the maximum archive_version to be cleared from the archive. ///Request specific configuration such as querystring parameters & request specific connection settings. ///Note: Experimental within the Elasticsearch server, this functionality is Experimental and may be changed or removed completely in a future release. Elastic will take a best effort approach to fix any issues, but experimental features are not subject to the support SLA of official GA features. This functionality is subject to potential breaking changes within a minor version, meaning that your referencing code may break when this library is upgraded. - public TResponse ClearMeteringArchive(string nodeId, long maxArchiveVersion, ClearMeteringArchiveRequestParameters requestParameters = null) + public TResponse ClearRepositoriesMeteringArchive(string nodeId, long maxArchiveVersion, ClearRepositoriesMeteringArchiveRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => DoRequest(DELETE, Url($"_nodes/{nodeId:nodeId}/_repositories_metering/{maxArchiveVersion:maxArchiveVersion}"), null, RequestParams(requestParameters)); ///DELETE on /_nodes/{node_id}/_repositories_metering/{max_archive_version} https://www.elastic.co/guide/en/elasticsearch/reference/current/clear-repositories-metering-archive-api.html ///Comma-separated list of node IDs or names used to limit returned information. ///Specifies the maximum archive_version to be cleared from the archive. ///Request specific configuration such as querystring parameters & request specific connection settings. ///Note: Experimental within the Elasticsearch server, this functionality is Experimental and may be changed or removed completely in a future release. Elastic will take a best effort approach to fix any issues, but experimental features are not subject to the support SLA of official GA features. This functionality is subject to potential breaking changes within a minor version, meaning that your referencing code may break when this library is upgraded. - [MapsApi("nodes.clear_metering_archive", "node_id, max_archive_version")] - public Task ClearMeteringArchiveAsync(string nodeId, long maxArchiveVersion, ClearMeteringArchiveRequestParameters requestParameters = null, CancellationToken ctx = default) + [MapsApi("nodes.clear_repositories_metering_archive", "node_id, max_archive_version")] + public Task ClearRepositoriesMeteringArchiveAsync(string nodeId, long maxArchiveVersion, ClearRepositoriesMeteringArchiveRequestParameters requestParameters = null, CancellationToken ctx = default) where TResponse : class, IElasticsearchResponse, new() => DoRequestAsync(DELETE, Url($"_nodes/{nodeId:nodeId}/_repositories_metering/{maxArchiveVersion:maxArchiveVersion}"), ctx, null, RequestParams(requestParameters)); ///GET on /_nodes/{node_id}/_repositories_metering https://www.elastic.co/guide/en/elasticsearch/reference/current/get-repositories-metering-api.html ///A comma-separated list of node IDs or names to limit the returned information. ///Request specific configuration such as querystring parameters & request specific connection settings. ///Note: Experimental within the Elasticsearch server, this functionality is Experimental and may be changed or removed completely in a future release. Elastic will take a best effort approach to fix any issues, but experimental features are not subject to the support SLA of official GA features. This functionality is subject to potential breaking changes within a minor version, meaning that your referencing code may break when this library is upgraded. - public TResponse GetMeteringInfo(string nodeId, GetMeteringInfoRequestParameters requestParameters = null) + public TResponse GetRepositoriesMeteringInfo(string nodeId, GetRepositoriesMeteringInfoRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => DoRequest(GET, Url($"_nodes/{nodeId:nodeId}/_repositories_metering"), null, RequestParams(requestParameters)); ///GET on /_nodes/{node_id}/_repositories_metering https://www.elastic.co/guide/en/elasticsearch/reference/current/get-repositories-metering-api.html ///A comma-separated list of node IDs or names to limit the returned information. ///Request specific configuration such as querystring parameters & request specific connection settings. ///Note: Experimental within the Elasticsearch server, this functionality is Experimental and may be changed or removed completely in a future release. Elastic will take a best effort approach to fix any issues, but experimental features are not subject to the support SLA of official GA features. This functionality is subject to potential breaking changes within a minor version, meaning that your referencing code may break when this library is upgraded. - [MapsApi("nodes.get_metering_info", "node_id")] - public Task GetMeteringInfoAsync(string nodeId, GetMeteringInfoRequestParameters requestParameters = null, CancellationToken ctx = default) + [MapsApi("nodes.get_repositories_metering_info", "node_id")] + public Task GetRepositoriesMeteringInfoAsync(string nodeId, GetRepositoriesMeteringInfoRequestParameters requestParameters = null, CancellationToken ctx = default) where TResponse : class, IElasticsearchResponse, new() => DoRequestAsync(GET, Url($"_nodes/{nodeId:nodeId}/_repositories_metering"), ctx, null, RequestParams(requestParameters)); ///GET on /_nodes/hot_threads https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-hot-threads.html ///Request specific configuration such as querystring parameters & request specific connection settings. diff --git a/src/Elasticsearch.Net/ElasticLowLevelClient.SearchableSnapshots.cs b/src/Elasticsearch.Net/ElasticLowLevelClient.SearchableSnapshots.cs index 0a3f6ab1f2..bca0833592 100644 --- a/src/Elasticsearch.Net/ElasticLowLevelClient.SearchableSnapshots.cs +++ b/src/Elasticsearch.Net/ElasticLowLevelClient.SearchableSnapshots.cs @@ -99,7 +99,6 @@ public Task ClearCacheAsync(string index, ClearCacheReques ///The name of the snapshot of the index to mount ///The restore configuration for mounting the snapshot as searchable ///Request specific configuration such as querystring parameters & request specific connection settings. - ///Note: Experimental within the Elasticsearch server, this functionality is Experimental and may be changed or removed completely in a future release. Elastic will take a best effort approach to fix any issues, but experimental features are not subject to the support SLA of official GA features. This functionality is subject to potential breaking changes within a minor version, meaning that your referencing code may break when this library is upgraded. public TResponse Mount(string repository, string snapshot, PostData body, MountRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => DoRequest(POST, Url($"_snapshot/{repository:repository}/{snapshot:snapshot}/_mount"), body, RequestParams(requestParameters)); ///POST on /_snapshot/{repository}/{snapshot}/_mount https://www.elastic.co/guide/en/elasticsearch/reference/current/searchable-snapshots-api-mount-snapshot.html @@ -107,7 +106,6 @@ public TResponse Mount(string repository, string snapshot, PostData b ///The name of the snapshot of the index to mount ///The restore configuration for mounting the snapshot as searchable ///Request specific configuration such as querystring parameters & request specific connection settings. - ///Note: Experimental within the Elasticsearch server, this functionality is Experimental and may be changed or removed completely in a future release. Elastic will take a best effort approach to fix any issues, but experimental features are not subject to the support SLA of official GA features. This functionality is subject to potential breaking changes within a minor version, meaning that your referencing code may break when this library is upgraded. [MapsApi("searchable_snapshots.mount", "repository, snapshot, body")] public Task MountAsync(string repository, string snapshot, PostData body, MountRequestParameters requestParameters = null, CancellationToken ctx = default) where TResponse : class, IElasticsearchResponse, new() => DoRequestAsync(POST, Url($"_snapshot/{repository:repository}/{snapshot:snapshot}/_mount"), ctx, body, RequestParams(requestParameters)); @@ -126,25 +124,21 @@ public Task RepositoryStatsAsync(string repository, Reposi where TResponse : class, IElasticsearchResponse, new() => DoRequestAsync(GET, Url($"_snapshot/{repository:repository}/_stats"), ctx, null, RequestParams(requestParameters)); ///GET on /_searchable_snapshots/stats https://www.elastic.co/guide/en/elasticsearch/reference/current/searchable-snapshots-apis.html ///Request specific configuration such as querystring parameters & request specific connection settings. - ///Note: Experimental within the Elasticsearch server, this functionality is Experimental and may be changed or removed completely in a future release. Elastic will take a best effort approach to fix any issues, but experimental features are not subject to the support SLA of official GA features. This functionality is subject to potential breaking changes within a minor version, meaning that your referencing code may break when this library is upgraded. public TResponse Stats(StatsRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => DoRequest(GET, "_searchable_snapshots/stats", null, RequestParams(requestParameters)); ///GET on /_searchable_snapshots/stats https://www.elastic.co/guide/en/elasticsearch/reference/current/searchable-snapshots-apis.html ///Request specific configuration such as querystring parameters & request specific connection settings. - ///Note: Experimental within the Elasticsearch server, this functionality is Experimental and may be changed or removed completely in a future release. Elastic will take a best effort approach to fix any issues, but experimental features are not subject to the support SLA of official GA features. This functionality is subject to potential breaking changes within a minor version, meaning that your referencing code may break when this library is upgraded. [MapsApi("searchable_snapshots.stats", "")] public Task StatsAsync(StatsRequestParameters requestParameters = null, CancellationToken ctx = default) where TResponse : class, IElasticsearchResponse, new() => DoRequestAsync(GET, "_searchable_snapshots/stats", ctx, null, RequestParams(requestParameters)); ///GET on /{index}/_searchable_snapshots/stats https://www.elastic.co/guide/en/elasticsearch/reference/current/searchable-snapshots-apis.html ///A comma-separated list of index names ///Request specific configuration such as querystring parameters & request specific connection settings. - ///Note: Experimental within the Elasticsearch server, this functionality is Experimental and may be changed or removed completely in a future release. Elastic will take a best effort approach to fix any issues, but experimental features are not subject to the support SLA of official GA features. This functionality is subject to potential breaking changes within a minor version, meaning that your referencing code may break when this library is upgraded. public TResponse Stats(string index, StatsRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => DoRequest(GET, Url($"{index:index}/_searchable_snapshots/stats"), null, RequestParams(requestParameters)); ///GET on /{index}/_searchable_snapshots/stats https://www.elastic.co/guide/en/elasticsearch/reference/current/searchable-snapshots-apis.html ///A comma-separated list of index names ///Request specific configuration such as querystring parameters & request specific connection settings. - ///Note: Experimental within the Elasticsearch server, this functionality is Experimental and may be changed or removed completely in a future release. Elastic will take a best effort approach to fix any issues, but experimental features are not subject to the support SLA of official GA features. This functionality is subject to potential breaking changes within a minor version, meaning that your referencing code may break when this library is upgraded. [MapsApi("searchable_snapshots.stats", "index")] public Task StatsAsync(string index, StatsRequestParameters requestParameters = null, CancellationToken ctx = default) where TResponse : class, IElasticsearchResponse, new() => DoRequestAsync(GET, Url($"{index:index}/_searchable_snapshots/stats"), ctx, null, RequestParams(requestParameters)); diff --git a/src/Elasticsearch.Net/ElasticLowLevelClient.Security.cs b/src/Elasticsearch.Net/ElasticLowLevelClient.Security.cs index 5f70e08ba8..9805a16367 100644 --- a/src/Elasticsearch.Net/ElasticLowLevelClient.Security.cs +++ b/src/Elasticsearch.Net/ElasticLowLevelClient.Security.cs @@ -137,7 +137,6 @@ public Task ClearCachedRolesAsync(string name, ClearCached ///An identifier for the service name ///A comma-separated list of service token names ///Request specific configuration such as querystring parameters & request specific connection settings. - ///Note: Beta within the Elasticsearch server, this functionality is in Beta and is subject to change. The design and code is less mature than official GA features and is being provided as-is with no warranties. Beta features are not subject to the support SLA of official GA features. This functionality is subject to potential breaking changes within a minor version, meaning that your referencing code may break when this library is upgraded. public TResponse ClearCachedServiceTokens(string @namespace, string service, string name, ClearCachedServiceTokensRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => DoRequest(POST, Url($"_security/service/{@namespace:namespace}/{service:service}/credential/token/{name:name}/_clear_cache"), null, RequestParams(requestParameters)); ///POST on /_security/service/{namespace}/{service}/credential/token/{name}/_clear_cache https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-clear-service-token-caches.html @@ -145,7 +144,6 @@ public TResponse ClearCachedServiceTokens(string @namespace, string s ///An identifier for the service name ///A comma-separated list of service token names ///Request specific configuration such as querystring parameters & request specific connection settings. - ///Note: Beta within the Elasticsearch server, this functionality is in Beta and is subject to change. The design and code is less mature than official GA features and is being provided as-is with no warranties. Beta features are not subject to the support SLA of official GA features. This functionality is subject to potential breaking changes within a minor version, meaning that your referencing code may break when this library is upgraded. [MapsApi("security.clear_cached_service_tokens", "namespace, service, name")] public Task ClearCachedServiceTokensAsync(string @namespace, string service, string name, ClearCachedServiceTokensRequestParameters requestParameters = null, CancellationToken ctx = default) where TResponse : class, IElasticsearchResponse, new() => DoRequestAsync(POST, Url($"_security/service/{@namespace:namespace}/{service:service}/credential/token/{name:name}/_clear_cache"), ctx, null, RequestParams(requestParameters)); @@ -165,7 +163,6 @@ public Task CreateApiKeyAsync(PostData body, CreateApiKeyR ///An identifier for the service name ///An identifier for the token name ///Request specific configuration such as querystring parameters & request specific connection settings. - ///Note: Beta within the Elasticsearch server, this functionality is in Beta and is subject to change. The design and code is less mature than official GA features and is being provided as-is with no warranties. Beta features are not subject to the support SLA of official GA features. This functionality is subject to potential breaking changes within a minor version, meaning that your referencing code may break when this library is upgraded. public TResponse CreateServiceToken(string @namespace, string service, string name, CreateServiceTokenRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => DoRequest(PUT, Url($"_security/service/{@namespace:namespace}/{service:service}/credential/token/{name:name}"), null, RequestParams(requestParameters)); ///PUT on /_security/service/{namespace}/{service}/credential/token/{name} https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-create-service-token.html @@ -173,7 +170,6 @@ public TResponse CreateServiceToken(string @namespace, string service ///An identifier for the service name ///An identifier for the token name ///Request specific configuration such as querystring parameters & request specific connection settings. - ///Note: Beta within the Elasticsearch server, this functionality is in Beta and is subject to change. The design and code is less mature than official GA features and is being provided as-is with no warranties. Beta features are not subject to the support SLA of official GA features. This functionality is subject to potential breaking changes within a minor version, meaning that your referencing code may break when this library is upgraded. [MapsApi("security.create_service_token", "namespace, service, name")] public Task CreateServiceTokenAsync(string @namespace, string service, string name, CreateServiceTokenRequestParameters requestParameters = null, CancellationToken ctx = default) where TResponse : class, IElasticsearchResponse, new() => DoRequestAsync(PUT, Url($"_security/service/{@namespace:namespace}/{service:service}/credential/token/{name:name}"), ctx, null, RequestParams(requestParameters)); @@ -181,14 +177,12 @@ public Task CreateServiceTokenAsync(string @namespace, str ///An identifier for the namespace ///An identifier for the service name ///Request specific configuration such as querystring parameters & request specific connection settings. - ///Note: Beta within the Elasticsearch server, this functionality is in Beta and is subject to change. The design and code is less mature than official GA features and is being provided as-is with no warranties. Beta features are not subject to the support SLA of official GA features. This functionality is subject to potential breaking changes within a minor version, meaning that your referencing code may break when this library is upgraded. public TResponse CreateServiceToken(string @namespace, string service, CreateServiceTokenRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => DoRequest(PUT, Url($"_security/service/{@namespace:namespace}/{service:service}/credential/token"), null, RequestParams(requestParameters)); ///PUT on /_security/service/{namespace}/{service}/credential/token https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-create-service-token.html ///An identifier for the namespace ///An identifier for the service name ///Request specific configuration such as querystring parameters & request specific connection settings. - ///Note: Beta within the Elasticsearch server, this functionality is in Beta and is subject to change. The design and code is less mature than official GA features and is being provided as-is with no warranties. Beta features are not subject to the support SLA of official GA features. This functionality is subject to potential breaking changes within a minor version, meaning that your referencing code may break when this library is upgraded. [MapsApi("security.create_service_token", "namespace, service")] public Task CreateServiceTokenAsync(string @namespace, string service, CreateServiceTokenRequestParameters requestParameters = null, CancellationToken ctx = default) where TResponse : class, IElasticsearchResponse, new() => DoRequestAsync(PUT, Url($"_security/service/{@namespace:namespace}/{service:service}/credential/token"), ctx, null, RequestParams(requestParameters)); @@ -232,7 +226,6 @@ public Task DeleteRoleMappingAsync(string name, DeleteRole ///An identifier for the service name ///An identifier for the token name ///Request specific configuration such as querystring parameters & request specific connection settings. - ///Note: Beta within the Elasticsearch server, this functionality is in Beta and is subject to change. The design and code is less mature than official GA features and is being provided as-is with no warranties. Beta features are not subject to the support SLA of official GA features. This functionality is subject to potential breaking changes within a minor version, meaning that your referencing code may break when this library is upgraded. public TResponse DeleteServiceToken(string @namespace, string service, string name, DeleteServiceTokenRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => DoRequest(DELETE, Url($"_security/service/{@namespace:namespace}/{service:service}/credential/token/{name:name}"), null, RequestParams(requestParameters)); ///DELETE on /_security/service/{namespace}/{service}/credential/token/{name} https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-delete-service-token.html @@ -240,7 +233,6 @@ public TResponse DeleteServiceToken(string @namespace, string service ///An identifier for the service name ///An identifier for the token name ///Request specific configuration such as querystring parameters & request specific connection settings. - ///Note: Beta within the Elasticsearch server, this functionality is in Beta and is subject to change. The design and code is less mature than official GA features and is being provided as-is with no warranties. Beta features are not subject to the support SLA of official GA features. This functionality is subject to potential breaking changes within a minor version, meaning that your referencing code may break when this library is upgraded. [MapsApi("security.delete_service_token", "namespace, service, name")] public Task DeleteServiceTokenAsync(string @namespace, string service, string name, DeleteServiceTokenRequestParameters requestParameters = null, CancellationToken ctx = default) where TResponse : class, IElasticsearchResponse, new() => DoRequestAsync(DELETE, Url($"_security/service/{@namespace:namespace}/{service:service}/credential/token/{name:name}"), ctx, null, RequestParams(requestParameters)); @@ -372,38 +364,32 @@ public Task GetRoleMappingAsync(GetRoleMappingRequestParam ///An identifier for the namespace ///An identifier for the service name ///Request specific configuration such as querystring parameters & request specific connection settings. - ///Note: Beta within the Elasticsearch server, this functionality is in Beta and is subject to change. The design and code is less mature than official GA features and is being provided as-is with no warranties. Beta features are not subject to the support SLA of official GA features. This functionality is subject to potential breaking changes within a minor version, meaning that your referencing code may break when this library is upgraded. public TResponse GetServiceAccounts(string @namespace, string service, GetServiceAccountsRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => DoRequest(GET, Url($"_security/service/{@namespace:namespace}/{service:service}"), null, RequestParams(requestParameters)); ///GET on /_security/service/{namespace}/{service} https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-get-service-accounts.html ///An identifier for the namespace ///An identifier for the service name ///Request specific configuration such as querystring parameters & request specific connection settings. - ///Note: Beta within the Elasticsearch server, this functionality is in Beta and is subject to change. The design and code is less mature than official GA features and is being provided as-is with no warranties. Beta features are not subject to the support SLA of official GA features. This functionality is subject to potential breaking changes within a minor version, meaning that your referencing code may break when this library is upgraded. [MapsApi("security.get_service_accounts", "namespace, service")] public Task GetServiceAccountsAsync(string @namespace, string service, GetServiceAccountsRequestParameters requestParameters = null, CancellationToken ctx = default) where TResponse : class, IElasticsearchResponse, new() => DoRequestAsync(GET, Url($"_security/service/{@namespace:namespace}/{service:service}"), ctx, null, RequestParams(requestParameters)); ///GET on /_security/service/{namespace} https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-get-service-accounts.html ///An identifier for the namespace ///Request specific configuration such as querystring parameters & request specific connection settings. - ///Note: Beta within the Elasticsearch server, this functionality is in Beta and is subject to change. The design and code is less mature than official GA features and is being provided as-is with no warranties. Beta features are not subject to the support SLA of official GA features. This functionality is subject to potential breaking changes within a minor version, meaning that your referencing code may break when this library is upgraded. public TResponse GetServiceAccounts(string @namespace, GetServiceAccountsRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => DoRequest(GET, Url($"_security/service/{@namespace:namespace}"), null, RequestParams(requestParameters)); ///GET on /_security/service/{namespace} https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-get-service-accounts.html ///An identifier for the namespace ///Request specific configuration such as querystring parameters & request specific connection settings. - ///Note: Beta within the Elasticsearch server, this functionality is in Beta and is subject to change. The design and code is less mature than official GA features and is being provided as-is with no warranties. Beta features are not subject to the support SLA of official GA features. This functionality is subject to potential breaking changes within a minor version, meaning that your referencing code may break when this library is upgraded. [MapsApi("security.get_service_accounts", "namespace")] public Task GetServiceAccountsAsync(string @namespace, GetServiceAccountsRequestParameters requestParameters = null, CancellationToken ctx = default) where TResponse : class, IElasticsearchResponse, new() => DoRequestAsync(GET, Url($"_security/service/{@namespace:namespace}"), ctx, null, RequestParams(requestParameters)); ///GET on /_security/service https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-get-service-accounts.html ///Request specific configuration such as querystring parameters & request specific connection settings. - ///Note: Beta within the Elasticsearch server, this functionality is in Beta and is subject to change. The design and code is less mature than official GA features and is being provided as-is with no warranties. Beta features are not subject to the support SLA of official GA features. This functionality is subject to potential breaking changes within a minor version, meaning that your referencing code may break when this library is upgraded. public TResponse GetServiceAccounts(GetServiceAccountsRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => DoRequest(GET, "_security/service", null, RequestParams(requestParameters)); ///GET on /_security/service https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-get-service-accounts.html ///Request specific configuration such as querystring parameters & request specific connection settings. - ///Note: Beta within the Elasticsearch server, this functionality is in Beta and is subject to change. The design and code is less mature than official GA features and is being provided as-is with no warranties. Beta features are not subject to the support SLA of official GA features. This functionality is subject to potential breaking changes within a minor version, meaning that your referencing code may break when this library is upgraded. [MapsApi("security.get_service_accounts", "")] public Task GetServiceAccountsAsync(GetServiceAccountsRequestParameters requestParameters = null, CancellationToken ctx = default) where TResponse : class, IElasticsearchResponse, new() => DoRequestAsync(GET, "_security/service", ctx, null, RequestParams(requestParameters)); @@ -411,14 +397,12 @@ public Task GetServiceAccountsAsync(GetServiceAccountsRequ ///An identifier for the namespace ///An identifier for the service name ///Request specific configuration such as querystring parameters & request specific connection settings. - ///Note: Beta within the Elasticsearch server, this functionality is in Beta and is subject to change. The design and code is less mature than official GA features and is being provided as-is with no warranties. Beta features are not subject to the support SLA of official GA features. This functionality is subject to potential breaking changes within a minor version, meaning that your referencing code may break when this library is upgraded. public TResponse GetServiceCredentials(string @namespace, string service, GetServiceCredentialsRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => DoRequest(GET, Url($"_security/service/{@namespace:namespace}/{service:service}/credential"), null, RequestParams(requestParameters)); ///GET on /_security/service/{namespace}/{service}/credential https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-get-service-credentials.html ///An identifier for the namespace ///An identifier for the service name ///Request specific configuration such as querystring parameters & request specific connection settings. - ///Note: Beta within the Elasticsearch server, this functionality is in Beta and is subject to change. The design and code is less mature than official GA features and is being provided as-is with no warranties. Beta features are not subject to the support SLA of official GA features. This functionality is subject to potential breaking changes within a minor version, meaning that your referencing code may break when this library is upgraded. [MapsApi("security.get_service_credentials", "namespace, service")] public Task GetServiceCredentialsAsync(string @namespace, string service, GetServiceCredentialsRequestParameters requestParameters = null, CancellationToken ctx = default) where TResponse : class, IElasticsearchResponse, new() => DoRequestAsync(GET, Url($"_security/service/{@namespace:namespace}/{service:service}/credential"), ctx, null, RequestParams(requestParameters)); @@ -569,6 +553,17 @@ public TResponse PutUser(string username, PostData body, PutUserReque [MapsApi("security.put_user", "username, body")] public Task PutUserAsync(string username, PostData body, PutUserRequestParameters requestParameters = null, CancellationToken ctx = default) where TResponse : class, IElasticsearchResponse, new() => DoRequestAsync(PUT, Url($"_security/user/{username:username}"), ctx, body, RequestParams(requestParameters)); + ///POST on /_security/_query/api_key https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-query-api-key.html + ///From, size, query, sort and search_after + ///Request specific configuration such as querystring parameters & request specific connection settings. + public TResponse QueryApiKeys(PostData body, QueryApiKeysRequestParameters requestParameters = null) + where TResponse : class, IElasticsearchResponse, new() => DoRequest(POST, "_security/_query/api_key", body, RequestParams(requestParameters)); + ///POST on /_security/_query/api_key https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-query-api-key.html + ///From, size, query, sort and search_after + ///Request specific configuration such as querystring parameters & request specific connection settings. + [MapsApi("security.query_api_keys", "body")] + public Task QueryApiKeysAsync(PostData body, QueryApiKeysRequestParameters requestParameters = null, CancellationToken ctx = default) + where TResponse : class, IElasticsearchResponse, new() => DoRequestAsync(POST, "_security/_query/api_key", ctx, body, RequestParams(requestParameters)); ///POST on /_security/saml/authenticate https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-saml-authenticate.html ///The SAML response to authenticate ///Request specific configuration such as querystring parameters & request specific connection settings. diff --git a/src/Elasticsearch.Net/ElasticLowLevelClient.Shutdown.cs b/src/Elasticsearch.Net/ElasticLowLevelClient.Shutdown.cs index 3ad19551c3..aec85eb805 100644 --- a/src/Elasticsearch.Net/ElasticLowLevelClient.Shutdown.cs +++ b/src/Elasticsearch.Net/ElasticLowLevelClient.Shutdown.cs @@ -49,37 +49,31 @@ internal LowLevelShutdownNamespace(ElasticLowLevelClient client): base(client) ///DELETE on /_nodes/{node_id}/shutdown https://www.elastic.co/guide/en/elasticsearch/reference/current ///The node id of node to be removed from the shutdown state ///Request specific configuration such as querystring parameters & request specific connection settings. - ///Note: Experimental within the Elasticsearch server, this functionality is Experimental and may be changed or removed completely in a future release. Elastic will take a best effort approach to fix any issues, but experimental features are not subject to the support SLA of official GA features. This functionality is subject to potential breaking changes within a minor version, meaning that your referencing code may break when this library is upgraded. public TResponse DeleteNode(string nodeId, DeleteNodeRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => DoRequest(DELETE, Url($"_nodes/{nodeId:nodeId}/shutdown"), null, RequestParams(requestParameters)); ///DELETE on /_nodes/{node_id}/shutdown https://www.elastic.co/guide/en/elasticsearch/reference/current ///The node id of node to be removed from the shutdown state ///Request specific configuration such as querystring parameters & request specific connection settings. - ///Note: Experimental within the Elasticsearch server, this functionality is Experimental and may be changed or removed completely in a future release. Elastic will take a best effort approach to fix any issues, but experimental features are not subject to the support SLA of official GA features. This functionality is subject to potential breaking changes within a minor version, meaning that your referencing code may break when this library is upgraded. [MapsApi("shutdown.delete_node", "node_id")] public Task DeleteNodeAsync(string nodeId, DeleteNodeRequestParameters requestParameters = null, CancellationToken ctx = default) where TResponse : class, IElasticsearchResponse, new() => DoRequestAsync(DELETE, Url($"_nodes/{nodeId:nodeId}/shutdown"), ctx, null, RequestParams(requestParameters)); ///GET on /_nodes/shutdown https://www.elastic.co/guide/en/elasticsearch/reference/current ///Request specific configuration such as querystring parameters & request specific connection settings. - ///Note: Experimental within the Elasticsearch server, this functionality is Experimental and may be changed or removed completely in a future release. Elastic will take a best effort approach to fix any issues, but experimental features are not subject to the support SLA of official GA features. This functionality is subject to potential breaking changes within a minor version, meaning that your referencing code may break when this library is upgraded. public TResponse GetNode(GetNodeRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => DoRequest(GET, "_nodes/shutdown", null, RequestParams(requestParameters)); ///GET on /_nodes/shutdown https://www.elastic.co/guide/en/elasticsearch/reference/current ///Request specific configuration such as querystring parameters & request specific connection settings. - ///Note: Experimental within the Elasticsearch server, this functionality is Experimental and may be changed or removed completely in a future release. Elastic will take a best effort approach to fix any issues, but experimental features are not subject to the support SLA of official GA features. This functionality is subject to potential breaking changes within a minor version, meaning that your referencing code may break when this library is upgraded. [MapsApi("shutdown.get_node", "")] public Task GetNodeAsync(GetNodeRequestParameters requestParameters = null, CancellationToken ctx = default) where TResponse : class, IElasticsearchResponse, new() => DoRequestAsync(GET, "_nodes/shutdown", ctx, null, RequestParams(requestParameters)); ///GET on /_nodes/{node_id}/shutdown https://www.elastic.co/guide/en/elasticsearch/reference/current ///Which node for which to retrieve the shutdown status ///Request specific configuration such as querystring parameters & request specific connection settings. - ///Note: Experimental within the Elasticsearch server, this functionality is Experimental and may be changed or removed completely in a future release. Elastic will take a best effort approach to fix any issues, but experimental features are not subject to the support SLA of official GA features. This functionality is subject to potential breaking changes within a minor version, meaning that your referencing code may break when this library is upgraded. public TResponse GetNode(string nodeId, GetNodeRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => DoRequest(GET, Url($"_nodes/{nodeId:nodeId}/shutdown"), null, RequestParams(requestParameters)); ///GET on /_nodes/{node_id}/shutdown https://www.elastic.co/guide/en/elasticsearch/reference/current ///Which node for which to retrieve the shutdown status ///Request specific configuration such as querystring parameters & request specific connection settings. - ///Note: Experimental within the Elasticsearch server, this functionality is Experimental and may be changed or removed completely in a future release. Elastic will take a best effort approach to fix any issues, but experimental features are not subject to the support SLA of official GA features. This functionality is subject to potential breaking changes within a minor version, meaning that your referencing code may break when this library is upgraded. [MapsApi("shutdown.get_node", "node_id")] public Task GetNodeAsync(string nodeId, GetNodeRequestParameters requestParameters = null, CancellationToken ctx = default) where TResponse : class, IElasticsearchResponse, new() => DoRequestAsync(GET, Url($"_nodes/{nodeId:nodeId}/shutdown"), ctx, null, RequestParams(requestParameters)); @@ -87,14 +81,12 @@ public Task GetNodeAsync(string nodeId, GetNodeRequestPara ///The node id of node to be shut down ///The shutdown type definition to register ///Request specific configuration such as querystring parameters & request specific connection settings. - ///Note: Experimental within the Elasticsearch server, this functionality is Experimental and may be changed or removed completely in a future release. Elastic will take a best effort approach to fix any issues, but experimental features are not subject to the support SLA of official GA features. This functionality is subject to potential breaking changes within a minor version, meaning that your referencing code may break when this library is upgraded. public TResponse PutNode(string nodeId, PostData body, PutNodeRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => DoRequest(PUT, Url($"_nodes/{nodeId:nodeId}/shutdown"), body, RequestParams(requestParameters)); ///PUT on /_nodes/{node_id}/shutdown https://www.elastic.co/guide/en/elasticsearch/reference/current ///The node id of node to be shut down ///The shutdown type definition to register ///Request specific configuration such as querystring parameters & request specific connection settings. - ///Note: Experimental within the Elasticsearch server, this functionality is Experimental and may be changed or removed completely in a future release. Elastic will take a best effort approach to fix any issues, but experimental features are not subject to the support SLA of official GA features. This functionality is subject to potential breaking changes within a minor version, meaning that your referencing code may break when this library is upgraded. [MapsApi("shutdown.put_node", "node_id, body")] public Task PutNodeAsync(string nodeId, PostData body, PutNodeRequestParameters requestParameters = null, CancellationToken ctx = default) where TResponse : class, IElasticsearchResponse, new() => DoRequestAsync(PUT, Url($"_nodes/{nodeId:nodeId}/shutdown"), ctx, body, RequestParams(requestParameters)); diff --git a/src/Elasticsearch.Net/ElasticLowLevelClient.Transform.cs b/src/Elasticsearch.Net/ElasticLowLevelClient.Transform.cs index 315988d784..549b9ef495 100644 --- a/src/Elasticsearch.Net/ElasticLowLevelClient.Transform.cs +++ b/src/Elasticsearch.Net/ElasticLowLevelClient.Transform.cs @@ -88,6 +88,19 @@ public TResponse GetStats(string transformId, GetTransformStatsReques [MapsApi("transform.get_transform_stats", "transform_id")] public Task GetStatsAsync(string transformId, GetTransformStatsRequestParameters requestParameters = null, CancellationToken ctx = default) where TResponse : class, IElasticsearchResponse, new() => DoRequestAsync(GET, Url($"_transform/{transformId:transformId}/_stats"), ctx, null, RequestParams(requestParameters)); + ///POST on /_transform/{transform_id}/_preview https://www.elastic.co/guide/en/elasticsearch/reference/current/preview-transform.html + ///The id of the transform to preview. + ///The definition for the transform to preview + ///Request specific configuration such as querystring parameters & request specific connection settings. + public TResponse Preview(string transformId, PostData body, PreviewTransformRequestParameters requestParameters = null) + where TResponse : class, IElasticsearchResponse, new() => DoRequest(POST, Url($"_transform/{transformId:transformId}/_preview"), body, RequestParams(requestParameters)); + ///POST on /_transform/{transform_id}/_preview https://www.elastic.co/guide/en/elasticsearch/reference/current/preview-transform.html + ///The id of the transform to preview. + ///The definition for the transform to preview + ///Request specific configuration such as querystring parameters & request specific connection settings. + [MapsApi("transform.preview_transform", "transform_id, body")] + public Task PreviewAsync(string transformId, PostData body, PreviewTransformRequestParameters requestParameters = null, CancellationToken ctx = default) + where TResponse : class, IElasticsearchResponse, new() => DoRequestAsync(POST, Url($"_transform/{transformId:transformId}/_preview"), ctx, body, RequestParams(requestParameters)); ///POST on /_transform/_preview https://www.elastic.co/guide/en/elasticsearch/reference/current/preview-transform.html ///The definition for the transform to preview ///Request specific configuration such as querystring parameters & request specific connection settings. diff --git a/src/Elasticsearch.Net/IElasticLowLevelClient.Generated.cs b/src/Elasticsearch.Net/IElasticLowLevelClient.Generated.cs index 0fbc1c2260..9115e9ef8d 100644 --- a/src/Elasticsearch.Net/IElasticLowLevelClient.Generated.cs +++ b/src/Elasticsearch.Net/IElasticLowLevelClient.Generated.cs @@ -547,22 +547,18 @@ Task GetScriptAsync(string id, GetScriptRequestParameters where TResponse : class, IElasticsearchResponse, new(); ///GET on /_script_context https://www.elastic.co/guide/en/elasticsearch/painless/master/painless-contexts.html ///Request specific configuration such as querystring parameters & request specific connection settings. - ///Note: Experimental within the Elasticsearch server, this functionality is Experimental and may be changed or removed completely in a future release. Elastic will take a best effort approach to fix any issues, but experimental features are not subject to the support SLA of official GA features. This functionality is subject to potential breaking changes within a minor version, meaning that your referencing code may break when this library is upgraded. TResponse GetScriptContext(GetScriptContextRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); ///GET on /_script_context https://www.elastic.co/guide/en/elasticsearch/painless/master/painless-contexts.html ///Request specific configuration such as querystring parameters & request specific connection settings. - ///Note: Experimental within the Elasticsearch server, this functionality is Experimental and may be changed or removed completely in a future release. Elastic will take a best effort approach to fix any issues, but experimental features are not subject to the support SLA of official GA features. This functionality is subject to potential breaking changes within a minor version, meaning that your referencing code may break when this library is upgraded. Task GetScriptContextAsync(GetScriptContextRequestParameters requestParameters = null, CancellationToken ctx = default) where TResponse : class, IElasticsearchResponse, new(); ///GET on /_script_language https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-scripting.html ///Request specific configuration such as querystring parameters & request specific connection settings. - ///Note: Experimental within the Elasticsearch server, this functionality is Experimental and may be changed or removed completely in a future release. Elastic will take a best effort approach to fix any issues, but experimental features are not subject to the support SLA of official GA features. This functionality is subject to potential breaking changes within a minor version, meaning that your referencing code may break when this library is upgraded. TResponse GetScriptLanguages(GetScriptLanguagesRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); ///GET on /_script_language https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-scripting.html ///Request specific configuration such as querystring parameters & request specific connection settings. - ///Note: Experimental within the Elasticsearch server, this functionality is Experimental and may be changed or removed completely in a future release. Elastic will take a best effort approach to fix any issues, but experimental features are not subject to the support SLA of official GA features. This functionality is subject to potential breaking changes within a minor version, meaning that your referencing code may break when this library is upgraded. Task GetScriptLanguagesAsync(GetScriptLanguagesRequestParameters requestParameters = null, CancellationToken ctx = default) where TResponse : class, IElasticsearchResponse, new(); ///GET on /{index}/_source/{id} https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-get.html @@ -813,14 +809,6 @@ TResponse MultiTermVectorsUsingType(string index, string type, PostDa [Obsolete("Deprecated in version 7.0.0: Specifying types in urls has been deprecated")] Task MultiTermVectorsUsingTypeAsync(string index, string type, PostData body, MultiTermVectorsRequestParameters requestParameters = null, CancellationToken ctx = default) where TResponse : class, IElasticsearchResponse, new(); - ///POST on /_pit https://www.elastic.co/guide/en/elasticsearch/reference/master/point-in-time-api.html - ///Request specific configuration such as querystring parameters & request specific connection settings. - TResponse OpenPointInTime(OpenPointInTimeRequestParameters requestParameters = null) - where TResponse : class, IElasticsearchResponse, new(); - ///POST on /_pit https://www.elastic.co/guide/en/elasticsearch/reference/master/point-in-time-api.html - ///Request specific configuration such as querystring parameters & request specific connection settings. - Task OpenPointInTimeAsync(OpenPointInTimeRequestParameters requestParameters = null, CancellationToken ctx = default) - where TResponse : class, IElasticsearchResponse, new(); ///POST on /{index}/_pit https://www.elastic.co/guide/en/elasticsearch/reference/master/point-in-time-api.html ///A comma-separated list of index names to open point in time; use the special string `_all` or Indices.All to perform the operation on all indices ///Request specific configuration such as querystring parameters & request specific connection settings. @@ -868,27 +856,23 @@ Task PutScriptAsync(string id, string context, PostData bo ///POST on /_rank_eval https://www.elastic.co/guide/en/elasticsearch/reference/master/search-rank-eval.html ///The ranking evaluation search definition, including search requests, document ratings and ranking metric definition. ///Request specific configuration such as querystring parameters & request specific connection settings. - ///Note: Experimental within the Elasticsearch server, this functionality is Experimental and may be changed or removed completely in a future release. Elastic will take a best effort approach to fix any issues, but experimental features are not subject to the support SLA of official GA features. This functionality is subject to potential breaking changes within a minor version, meaning that your referencing code may break when this library is upgraded. TResponse RankEval(PostData body, RankEvalRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); ///POST on /_rank_eval https://www.elastic.co/guide/en/elasticsearch/reference/master/search-rank-eval.html ///The ranking evaluation search definition, including search requests, document ratings and ranking metric definition. ///Request specific configuration such as querystring parameters & request specific connection settings. - ///Note: Experimental within the Elasticsearch server, this functionality is Experimental and may be changed or removed completely in a future release. Elastic will take a best effort approach to fix any issues, but experimental features are not subject to the support SLA of official GA features. This functionality is subject to potential breaking changes within a minor version, meaning that your referencing code may break when this library is upgraded. Task RankEvalAsync(PostData body, RankEvalRequestParameters requestParameters = null, CancellationToken ctx = default) where TResponse : class, IElasticsearchResponse, new(); ///POST on /{index}/_rank_eval https://www.elastic.co/guide/en/elasticsearch/reference/master/search-rank-eval.html ///A comma-separated list of index names to search; use the special string `_all` or Indices.All to perform the operation on all indices ///The ranking evaluation search definition, including search requests, document ratings and ranking metric definition. ///Request specific configuration such as querystring parameters & request specific connection settings. - ///Note: Experimental within the Elasticsearch server, this functionality is Experimental and may be changed or removed completely in a future release. Elastic will take a best effort approach to fix any issues, but experimental features are not subject to the support SLA of official GA features. This functionality is subject to potential breaking changes within a minor version, meaning that your referencing code may break when this library is upgraded. TResponse RankEval(string index, PostData body, RankEvalRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); ///POST on /{index}/_rank_eval https://www.elastic.co/guide/en/elasticsearch/reference/master/search-rank-eval.html ///A comma-separated list of index names to search; use the special string `_all` or Indices.All to perform the operation on all indices ///The ranking evaluation search definition, including search requests, document ratings and ranking metric definition. ///Request specific configuration such as querystring parameters & request specific connection settings. - ///Note: Experimental within the Elasticsearch server, this functionality is Experimental and may be changed or removed completely in a future release. Elastic will take a best effort approach to fix any issues, but experimental features are not subject to the support SLA of official GA features. This functionality is subject to potential breaking changes within a minor version, meaning that your referencing code may break when this library is upgraded. Task RankEvalAsync(string index, PostData body, RankEvalRequestParameters requestParameters = null, CancellationToken ctx = default) where TResponse : class, IElasticsearchResponse, new(); ///POST on /_reindex https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-reindex.html @@ -1007,6 +991,28 @@ TResponse SearchUsingType(string index, string type, PostData body, S [Obsolete("Deprecated in version 7.0.0: Specifying types in urls has been deprecated")] Task SearchUsingTypeAsync(string index, string type, PostData body, SearchRequestParameters requestParameters = null, CancellationToken ctx = default) where TResponse : class, IElasticsearchResponse, new(); + ///POST on /{index}/_mvt/{field}/{zoom}/{x}/{y} https://www.elastic.co/guide/en/elasticsearch/reference/master/search-vector-tile-api.html + ///Comma-separated list of data streams, indices, or aliases to search + ///Field containing geospatial data to return + ///Zoom level for the vector tile to search + ///X coordinate for the vector tile to search + ///Y coordinate for the vector tile to search + ///Search request body. + ///Request specific configuration such as querystring parameters & request specific connection settings. + ///Note: Experimental within the Elasticsearch server, this functionality is Experimental and may be changed or removed completely in a future release. Elastic will take a best effort approach to fix any issues, but experimental features are not subject to the support SLA of official GA features. This functionality is subject to potential breaking changes within a minor version, meaning that your referencing code may break when this library is upgraded. + TResponse SearchMvt(string index, string field, int zoom, int X, int Y, PostData body, SearchMvtRequestParameters requestParameters = null) + where TResponse : class, IElasticsearchResponse, new(); + ///POST on /{index}/_mvt/{field}/{zoom}/{x}/{y} https://www.elastic.co/guide/en/elasticsearch/reference/master/search-vector-tile-api.html + ///Comma-separated list of data streams, indices, or aliases to search + ///Field containing geospatial data to return + ///Zoom level for the vector tile to search + ///X coordinate for the vector tile to search + ///Y coordinate for the vector tile to search + ///Search request body. + ///Request specific configuration such as querystring parameters & request specific connection settings. + ///Note: Experimental within the Elasticsearch server, this functionality is Experimental and may be changed or removed completely in a future release. Elastic will take a best effort approach to fix any issues, but experimental features are not subject to the support SLA of official GA features. This functionality is subject to potential breaking changes within a minor version, meaning that your referencing code may break when this library is upgraded. + Task SearchMvtAsync(string index, string field, int zoom, int X, int Y, PostData body, SearchMvtRequestParameters requestParameters = null, CancellationToken ctx = default) + where TResponse : class, IElasticsearchResponse, new(); ///POST on /_search_shards https://www.elastic.co/guide/en/elasticsearch/reference/master/search-shards.html ///Request specific configuration such as querystring parameters & request specific connection settings. TResponse SearchShards(SearchShardsRequestParameters requestParameters = null) @@ -1067,14 +1073,12 @@ Task SearchTemplateUsingTypeAsync(string index, string typ ///A comma-separated list of index names to search; use the special string `_all` or Indices.All to perform the operation on all indices ///field name, string which is the prefix expected in matching terms, timeout and size for max number of results ///Request specific configuration such as querystring parameters & request specific connection settings. - ///Note: Beta within the Elasticsearch server, this functionality is in Beta and is subject to change. The design and code is less mature than official GA features and is being provided as-is with no warranties. Beta features are not subject to the support SLA of official GA features. This functionality is subject to potential breaking changes within a minor version, meaning that your referencing code may break when this library is upgraded. TResponse TermsEnum(string index, PostData body, TermsEnumRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new(); ///POST on /{index}/_terms_enum https://www.elastic.co/guide/en/elasticsearch/reference/current/search-terms-enum.html ///A comma-separated list of index names to search; use the special string `_all` or Indices.All to perform the operation on all indices ///field name, string which is the prefix expected in matching terms, timeout and size for max number of results ///Request specific configuration such as querystring parameters & request specific connection settings. - ///Note: Beta within the Elasticsearch server, this functionality is in Beta and is subject to change. The design and code is less mature than official GA features and is being provided as-is with no warranties. Beta features are not subject to the support SLA of official GA features. This functionality is subject to potential breaking changes within a minor version, meaning that your referencing code may break when this library is upgraded. Task TermsEnumAsync(string index, PostData body, TermsEnumRequestParameters requestParameters = null, CancellationToken ctx = default) where TResponse : class, IElasticsearchResponse, new(); ///POST on /{index}/_termvectors/{id} https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-termvectors.html diff --git a/src/Nest/_Generated/ApiUrlsLookup.generated.cs b/src/Nest/_Generated/ApiUrlsLookup.generated.cs index db9cb756c6..836f796223 100644 --- a/src/Nest/_Generated/ApiUrlsLookup.generated.cs +++ b/src/Nest/_Generated/ApiUrlsLookup.generated.cs @@ -231,7 +231,7 @@ internal static class ApiUrlsLookups internal static ApiUrls NodesReloadSecureSettings = new ApiUrls(new[]{"_nodes/reload_secure_settings", "_nodes/{node_id}/reload_secure_settings"}); internal static ApiUrls NodesStats = new ApiUrls(new[]{"_nodes/stats", "_nodes/{node_id}/stats", "_nodes/stats/{metric}", "_nodes/{node_id}/stats/{metric}", "_nodes/stats/{metric}/{index_metric}", "_nodes/{node_id}/stats/{metric}/{index_metric}"}); internal static ApiUrls NodesUsage = new ApiUrls(new[]{"_nodes/usage", "_nodes/{node_id}/usage", "_nodes/usage/{metric}", "_nodes/{node_id}/usage/{metric}"}); - internal static ApiUrls NoNamespaceOpenPointInTime = new ApiUrls(new[]{"_pit", "{index}/_pit"}); + internal static ApiUrls NoNamespaceOpenPointInTime = new ApiUrls(new[]{"{index}/_pit"}); internal static ApiUrls NoNamespacePing = new ApiUrls(new[]{""}); internal static ApiUrls NoNamespacePutScript = new ApiUrls(new[]{"_scripts/{id}", "_scripts/{id}/{context}"}); internal static ApiUrls NoNamespaceReindexOnServer = new ApiUrls(new[]{"_reindex"}); @@ -314,7 +314,7 @@ internal static class ApiUrlsLookups internal static ApiUrls TransformDelete = new ApiUrls(new[]{"_transform/{transform_id}"}); internal static ApiUrls TransformGet = new ApiUrls(new[]{"_transform/{transform_id}", "_transform"}); internal static ApiUrls TransformGetStats = new ApiUrls(new[]{"_transform/{transform_id}/_stats"}); - internal static ApiUrls TransformPreview = new ApiUrls(new[]{"_transform/_preview"}); + internal static ApiUrls TransformPreview = new ApiUrls(new[]{"_transform/{transform_id}/_preview", "_transform/_preview"}); internal static ApiUrls TransformPut = new ApiUrls(new[]{"_transform/{transform_id}"}); internal static ApiUrls TransformStart = new ApiUrls(new[]{"_transform/{transform_id}/_start"}); internal static ApiUrls TransformStop = new ApiUrls(new[]{"_transform/{transform_id}/_stop"});