diff --git a/output/openapi/elasticsearch-openapi.json b/output/openapi/elasticsearch-openapi.json index 3b139ce6ca..f175501859 100644 --- a/output/openapi/elasticsearch-openapi.json +++ b/output/openapi/elasticsearch-openapi.json @@ -2424,6 +2424,9 @@ "parameters": [ { "$ref": "#/components/parameters/ccr.get_auto_follow_pattern#name" + }, + { + "$ref": "#/components/parameters/ccr.get_auto_follow_pattern#master_timeout" } ], "responses": { @@ -2454,6 +2457,16 @@ "$ref": "#/components/schemas/_types:Name" }, "style": "simple" + }, + { + "in": "query", + "name": "master_timeout", + "description": "Period to wait for a connection to the master node.", + "deprecated": false, + "schema": { + "$ref": "#/components/schemas/_types:Duration" + }, + "style": "form" } ], "requestBody": { @@ -2561,6 +2574,16 @@ "$ref": "#/components/schemas/_types:Name" }, "style": "simple" + }, + { + "in": "query", + "name": "master_timeout", + "description": "Period to wait for a connection to the master node.", + "deprecated": false, + "schema": { + "$ref": "#/components/schemas/_types:Duration" + }, + "style": "form" } ], "responses": { @@ -2598,6 +2621,16 @@ }, "style": "simple" }, + { + "in": "query", + "name": "master_timeout", + "description": "Period to wait for a connection to the master node.", + "deprecated": false, + "schema": { + "$ref": "#/components/schemas/_types:Duration" + }, + "style": "form" + }, { "in": "query", "name": "wait_for_active_shards", @@ -2727,6 +2760,16 @@ "$ref": "#/components/schemas/_types:Indices" }, "style": "simple" + }, + { + "in": "query", + "name": "master_timeout", + "description": "Period to wait for a connection to the master node.", + "deprecated": false, + "schema": { + "$ref": "#/components/schemas/_types:Duration" + }, + "style": "form" } ], "responses": { @@ -2777,6 +2820,16 @@ "$ref": "#/components/schemas/_types:Indices" }, "style": "simple" + }, + { + "in": "query", + "name": "timeout", + "description": "Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.", + "deprecated": false, + "schema": { + "$ref": "#/components/schemas/_types:Duration" + }, + "style": "form" } ], "responses": { @@ -2827,6 +2880,16 @@ "$ref": "#/components/schemas/_types:IndexName" }, "style": "simple" + }, + { + "in": "query", + "name": "timeout", + "description": "Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.", + "deprecated": false, + "schema": { + "$ref": "#/components/schemas/_types:Duration" + }, + "style": "form" } ], "requestBody": { @@ -2887,6 +2950,11 @@ "url": "https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-auto-follow.html" }, "operationId": "ccr-get-auto-follow-pattern", + "parameters": [ + { + "$ref": "#/components/parameters/ccr.get_auto_follow_pattern#master_timeout" + } + ], "responses": { "200": { "$ref": "#/components/responses/ccr.get_auto_follow_pattern#200" @@ -2917,6 +2985,16 @@ "$ref": "#/components/schemas/_types:Name" }, "style": "simple" + }, + { + "in": "query", + "name": "master_timeout", + "description": "Period to wait for a connection to the master node.", + "deprecated": false, + "schema": { + "$ref": "#/components/schemas/_types:Duration" + }, + "style": "form" } ], "responses": { @@ -2953,6 +3031,16 @@ "$ref": "#/components/schemas/_types:IndexName" }, "style": "simple" + }, + { + "in": "query", + "name": "master_timeout", + "description": "Period to wait for a connection to the master node.", + "deprecated": false, + "schema": { + "$ref": "#/components/schemas/_types:Duration" + }, + "style": "form" } ], "responses": { @@ -2992,6 +3080,16 @@ "$ref": "#/components/schemas/_types:Name" }, "style": "simple" + }, + { + "in": "query", + "name": "master_timeout", + "description": "Period to wait for a connection to the master node.", + "deprecated": false, + "schema": { + "$ref": "#/components/schemas/_types:Duration" + }, + "style": "form" } ], "responses": { @@ -3031,6 +3129,16 @@ "$ref": "#/components/schemas/_types:IndexName" }, "style": "simple" + }, + { + "in": "query", + "name": "master_timeout", + "description": "Period to wait for a connection to the master node.", + "deprecated": false, + "schema": { + "$ref": "#/components/schemas/_types:Duration" + }, + "style": "form" } ], "requestBody": { @@ -3097,6 +3205,28 @@ "summary": "Get cross-cluster replication stats", "description": "This API returns stats about auto-following and the same shard-level stats as the get follower stats API.", "operationId": "ccr-stats", + "parameters": [ + { + "in": "query", + "name": "master_timeout", + "description": "Period to wait for a connection to the master node.", + "deprecated": false, + "schema": { + "$ref": "#/components/schemas/_types:Duration" + }, + "style": "form" + }, + { + "in": "query", + "name": "timeout", + "description": "Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.", + "deprecated": false, + "schema": { + "$ref": "#/components/schemas/_types:Duration" + }, + "style": "form" + } + ], "responses": { "200": { "description": "", @@ -3146,6 +3276,16 @@ "$ref": "#/components/schemas/_types:IndexName" }, "style": "simple" + }, + { + "in": "query", + "name": "master_timeout", + "description": "Period to wait for a connection to the master node.", + "deprecated": false, + "schema": { + "$ref": "#/components/schemas/_types:Duration" + }, + "style": "form" } ], "responses": { @@ -3396,6 +3536,9 @@ }, { "$ref": "#/components/parameters/cluster.allocation_explain#include_yes_decisions" + }, + { + "$ref": "#/components/parameters/cluster.allocation_explain#master_timeout" } ], "requestBody": { @@ -3421,6 +3564,9 @@ }, { "$ref": "#/components/parameters/cluster.allocation_explain#include_yes_decisions" + }, + { + "$ref": "#/components/parameters/cluster.allocation_explain#master_timeout" } ], "requestBody": { @@ -3659,6 +3805,16 @@ }, "style": "form" }, + { + "in": "query", + "name": "master_timeout", + "description": "Period to wait for a connection to the master node.", + "deprecated": false, + "schema": { + "$ref": "#/components/schemas/_types:Duration" + }, + "style": "form" + }, { "in": "query", "name": "timeout", @@ -3691,6 +3847,16 @@ }, "operationId": "cluster-delete-voting-config-exclusions", "parameters": [ + { + "in": "query", + "name": "master_timeout", + "description": "Period to wait for a connection to the master node.", + "deprecated": false, + "schema": { + "$ref": "#/components/schemas/_types:Duration" + }, + "style": "form" + }, { "in": "query", "name": "wait_for_removal", @@ -7933,6 +8099,9 @@ "parameters": [ { "$ref": "#/components/parameters/enrich.get_policy#name" + }, + { + "$ref": "#/components/parameters/enrich.get_policy#master_timeout" } ], "responses": { @@ -7960,6 +8129,16 @@ "$ref": "#/components/schemas/_types:Name" }, "style": "simple" + }, + { + "in": "query", + "name": "master_timeout", + "description": "Period to wait for a connection to the master node.", + "deprecated": false, + "schema": { + "$ref": "#/components/schemas/_types:Duration" + }, + "style": "form" } ], "requestBody": { @@ -8015,6 +8194,16 @@ "$ref": "#/components/schemas/_types:Name" }, "style": "simple" + }, + { + "in": "query", + "name": "master_timeout", + "description": "Period to wait for a connection to the master node.", + "deprecated": false, + "schema": { + "$ref": "#/components/schemas/_types:Duration" + }, + "style": "form" } ], "responses": { @@ -8052,6 +8241,16 @@ }, "style": "simple" }, + { + "in": "query", + "name": "master_timeout", + "description": "Period to wait for a connection to the master node.", + "deprecated": false, + "schema": { + "$ref": "#/components/schemas/_types:Duration" + }, + "style": "form" + }, { "in": "query", "name": "wait_for_completion", @@ -8094,6 +8293,11 @@ "summary": "Get an enrich policy", "description": "Returns information about an enrich policy.", "operationId": "enrich-get-policy-1", + "parameters": [ + { + "$ref": "#/components/parameters/enrich.get_policy#master_timeout" + } + ], "responses": { "200": { "$ref": "#/components/responses/enrich.get_policy#200" @@ -8110,6 +8314,18 @@ "summary": "Get enrich stats", "description": "Returns enrich coordinator statistics and information about enrich policies that are currently executing.", "operationId": "enrich-stats", + "parameters": [ + { + "in": "query", + "name": "master_timeout", + "description": "Period to wait for a connection to the master node.", + "deprecated": false, + "schema": { + "$ref": "#/components/schemas/_types:Duration" + }, + "style": "form" + } + ], "responses": { "200": { "description": "", @@ -8922,6 +9138,18 @@ "url": "https://www.elastic.co/guide/en/elasticsearch/reference/current/snapshots-take-snapshot.html" }, "operationId": "features-get-features", + "parameters": [ + { + "in": "query", + "name": "master_timeout", + "description": "Period to wait for a connection to the master node.", + "deprecated": false, + "schema": { + "$ref": "#/components/schemas/_types:Duration" + }, + "style": "form" + } + ], "responses": { "200": { "description": "", @@ -8956,6 +9184,18 @@ "summary": "Reset the features", "description": "Clear all of the state information stored in system indices by Elasticsearch features, including the security and machine learning indices.\n\nWARNING: Intended for development and testing use only. Do not reset features on a production cluster.\n\nReturn a cluster to the same state as a new installation by resetting the feature state for all Elasticsearch features.\nThis deletes all state information stored in system indices.\n\nThe response code is HTTP 200 if the state is successfully reset for all features.\nIt is HTTP 500 if the reset operation failed for any feature.\n\nNote that select features might provide a way to reset particular system indices.\nUsing this API resets all features, both those that are built-in and implemented as plugins.\n\nTo list the features that will be affected, use the get features API.\n\nIMPORTANT: The features installed on the node you submit this request to are the features that will be reset. Run on the master node if you have any doubts about which plugins are installed on individual nodes.", "operationId": "features-reset-features", + "parameters": [ + { + "in": "query", + "name": "master_timeout", + "description": "Period to wait for a connection to the master node.", + "deprecated": false, + "schema": { + "$ref": "#/components/schemas/_types:Duration" + }, + "style": "form" + } + ], "responses": { "200": { "description": "", @@ -10203,16 +10443,6 @@ "$ref": "#/components/schemas/_types:Duration" }, "style": "form" - }, - { - "in": "query", - "name": "timeout", - "description": "Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.", - "deprecated": false, - "schema": { - "$ref": "#/components/schemas/_types:Duration" - }, - "style": "form" } ], "responses": { @@ -10550,7 +10780,7 @@ { "in": "query", "name": "master_timeout", - "description": "Explicit operation timeout for connection to master node", + "description": "Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error.", "deprecated": false, "schema": { "$ref": "#/components/schemas/_types:Duration" @@ -10560,7 +10790,7 @@ { "in": "query", "name": "timeout", - "description": "Explicit operation timeout", + "description": "Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.", "deprecated": false, "schema": { "$ref": "#/components/schemas/_types:Duration" @@ -10595,7 +10825,7 @@ { "in": "query", "name": "master_timeout", - "description": "Explicit operation timeout for connection to master node", + "description": "Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error.", "deprecated": false, "schema": { "$ref": "#/components/schemas/_types:Duration" @@ -10605,7 +10835,7 @@ { "in": "query", "name": "timeout", - "description": "Explicit operation timeout", + "description": "Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.", "deprecated": false, "schema": { "$ref": "#/components/schemas/_types:Duration" @@ -12929,26 +13159,6 @@ }, "style": "form" }, - { - "in": "query", - "name": "master_timeout", - "description": "Period to wait for a connection to the master node.\nIf no response is received before the timeout expires, the request fails and returns an error.", - "deprecated": false, - "schema": { - "$ref": "#/components/schemas/_types:Duration" - }, - "style": "form" - }, - { - "in": "query", - "name": "timeout", - "description": "Period to wait for a response.\nIf no response is received before the timeout expires, the request fails and returns an error.", - "deprecated": false, - "schema": { - "$ref": "#/components/schemas/_types:Duration" - }, - "style": "form" - }, { "in": "query", "name": "wait_for_active_shards", @@ -15797,9 +16007,6 @@ "parameters": [ { "$ref": "#/components/parameters/ingest.get_geoip_database#id" - }, - { - "$ref": "#/components/parameters/ingest.get_geoip_database#master_timeout" } ], "responses": { @@ -16323,11 +16530,6 @@ "summary": "Get GeoIP database configurations", "description": "Get information about one or more IP geolocation database configurations.", "operationId": "ingest-get-geoip-database", - "parameters": [ - { - "$ref": "#/components/parameters/ingest.get_geoip_database#master_timeout" - } - ], "responses": { "200": { "$ref": "#/components/responses/ingest.get_geoip_database#200" @@ -16633,6 +16835,12 @@ "parameters": [ { "$ref": "#/components/parameters/license.post#acknowledge" + }, + { + "$ref": "#/components/parameters/license.post#master_timeout" + }, + { + "$ref": "#/components/parameters/license.post#timeout" } ], "requestBody": { @@ -16654,6 +16862,12 @@ "parameters": [ { "$ref": "#/components/parameters/license.post#acknowledge" + }, + { + "$ref": "#/components/parameters/license.post#master_timeout" + }, + { + "$ref": "#/components/parameters/license.post#timeout" } ], "requestBody": { @@ -16675,6 +16889,28 @@ "url": "https://www.elastic.co/guide/en/kibana/current/managing-licenses.html" }, "operationId": "license-delete", + "parameters": [ + { + "in": "query", + "name": "master_timeout", + "description": "Period to wait for a connection to the master node.", + "deprecated": false, + "schema": { + "$ref": "#/components/schemas/_types:Duration" + }, + "style": "form" + }, + { + "in": "query", + "name": "timeout", + "description": "Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.", + "deprecated": false, + "schema": { + "$ref": "#/components/schemas/_types:Duration" + }, + "style": "form" + } + ], "responses": { "200": { "description": "", @@ -16767,6 +17003,26 @@ "type": "boolean" }, "style": "form" + }, + { + "in": "query", + "name": "master_timeout", + "description": "Period to wait for a connection to the master node.", + "deprecated": false, + "schema": { + "$ref": "#/components/schemas/_types:Duration" + }, + "style": "form" + }, + { + "in": "query", + "name": "timeout", + "description": "Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.", + "deprecated": false, + "schema": { + "$ref": "#/components/schemas/_types:Duration" + }, + "style": "form" } ], "responses": { @@ -16845,6 +17101,16 @@ "type": "string" }, "style": "form" + }, + { + "in": "query", + "name": "master_timeout", + "description": "Period to wait for a connection to the master node.", + "deprecated": false, + "schema": { + "$ref": "#/components/schemas/_types:Duration" + }, + "style": "form" } ], "responses": { @@ -19247,6 +19513,16 @@ "type": "boolean" }, "style": "form" + }, + { + "in": "query", + "name": "timeout", + "description": "Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.", + "deprecated": false, + "schema": { + "$ref": "#/components/schemas/_types:Duration" + }, + "style": "form" } ], "responses": { @@ -20598,9 +20874,6 @@ "description": "Get information about how machine learning jobs and trained models are using memory,\non each node, both within the JVM heap, and natively, outside of the JVM.", "operationId": "ml-get-memory-stats", "parameters": [ - { - "$ref": "#/components/parameters/ml.get_memory_stats#human" - }, { "$ref": "#/components/parameters/ml.get_memory_stats#master_timeout" }, @@ -20628,9 +20901,6 @@ { "$ref": "#/components/parameters/ml.get_memory_stats#node_id" }, - { - "$ref": "#/components/parameters/ml.get_memory_stats#human" - }, { "$ref": "#/components/parameters/ml.get_memory_stats#master_timeout" }, @@ -24185,9 +24455,6 @@ { "$ref": "#/components/parameters/nodes.hot_threads#snapshots" }, - { - "$ref": "#/components/parameters/nodes.hot_threads#master_timeout" - }, { "$ref": "#/components/parameters/nodes.hot_threads#threads" }, @@ -24229,9 +24496,6 @@ { "$ref": "#/components/parameters/nodes.hot_threads#snapshots" }, - { - "$ref": "#/components/parameters/nodes.hot_threads#master_timeout" - }, { "$ref": "#/components/parameters/nodes.hot_threads#threads" }, @@ -24264,9 +24528,6 @@ { "$ref": "#/components/parameters/nodes.info#flat_settings" }, - { - "$ref": "#/components/parameters/nodes.info#master_timeout" - }, { "$ref": "#/components/parameters/nodes.info#timeout" } @@ -24294,9 +24555,6 @@ { "$ref": "#/components/parameters/nodes.info#flat_settings" }, - { - "$ref": "#/components/parameters/nodes.info#master_timeout" - }, { "$ref": "#/components/parameters/nodes.info#timeout" } @@ -24324,9 +24582,6 @@ { "$ref": "#/components/parameters/nodes.info#flat_settings" }, - { - "$ref": "#/components/parameters/nodes.info#master_timeout" - }, { "$ref": "#/components/parameters/nodes.info#timeout" } @@ -24357,9 +24612,6 @@ { "$ref": "#/components/parameters/nodes.info#flat_settings" }, - { - "$ref": "#/components/parameters/nodes.info#master_timeout" - }, { "$ref": "#/components/parameters/nodes.info#timeout" } @@ -24450,9 +24702,6 @@ { "$ref": "#/components/parameters/nodes.stats#level" }, - { - "$ref": "#/components/parameters/nodes.stats#master_timeout" - }, { "$ref": "#/components/parameters/nodes.stats#timeout" }, @@ -24500,9 +24749,6 @@ { "$ref": "#/components/parameters/nodes.stats#level" }, - { - "$ref": "#/components/parameters/nodes.stats#master_timeout" - }, { "$ref": "#/components/parameters/nodes.stats#timeout" }, @@ -24550,9 +24796,6 @@ { "$ref": "#/components/parameters/nodes.stats#level" }, - { - "$ref": "#/components/parameters/nodes.stats#master_timeout" - }, { "$ref": "#/components/parameters/nodes.stats#timeout" }, @@ -24603,9 +24846,6 @@ { "$ref": "#/components/parameters/nodes.stats#level" }, - { - "$ref": "#/components/parameters/nodes.stats#master_timeout" - }, { "$ref": "#/components/parameters/nodes.stats#timeout" }, @@ -24656,9 +24896,6 @@ { "$ref": "#/components/parameters/nodes.stats#level" }, - { - "$ref": "#/components/parameters/nodes.stats#master_timeout" - }, { "$ref": "#/components/parameters/nodes.stats#timeout" }, @@ -24712,9 +24949,6 @@ { "$ref": "#/components/parameters/nodes.stats#level" }, - { - "$ref": "#/components/parameters/nodes.stats#master_timeout" - }, { "$ref": "#/components/parameters/nodes.stats#timeout" }, @@ -27612,6 +27846,9 @@ { "$ref": "#/components/parameters/search_shards#local" }, + { + "$ref": "#/components/parameters/search_shards#master_timeout" + }, { "$ref": "#/components/parameters/search_shards#preference" }, @@ -27645,6 +27882,9 @@ { "$ref": "#/components/parameters/search_shards#local" }, + { + "$ref": "#/components/parameters/search_shards#master_timeout" + }, { "$ref": "#/components/parameters/search_shards#preference" }, @@ -27683,6 +27923,9 @@ { "$ref": "#/components/parameters/search_shards#local" }, + { + "$ref": "#/components/parameters/search_shards#master_timeout" + }, { "$ref": "#/components/parameters/search_shards#preference" }, @@ -27719,6 +27962,9 @@ { "$ref": "#/components/parameters/search_shards#local" }, + { + "$ref": "#/components/parameters/search_shards#master_timeout" + }, { "$ref": "#/components/parameters/search_shards#preference" }, @@ -28045,12 +28291,6 @@ }, { "$ref": "#/components/parameters/searchable_snapshots.clear_cache#ignore_unavailable" - }, - { - "$ref": "#/components/parameters/searchable_snapshots.clear_cache#pretty" - }, - { - "$ref": "#/components/parameters/searchable_snapshots.clear_cache#human" } ], "responses": { @@ -28081,12 +28321,6 @@ }, { "$ref": "#/components/parameters/searchable_snapshots.clear_cache#ignore_unavailable" - }, - { - "$ref": "#/components/parameters/searchable_snapshots.clear_cache#pretty" - }, - { - "$ref": "#/components/parameters/searchable_snapshots.clear_cache#human" } ], "responses": { @@ -32025,9 +32259,6 @@ }, { "$ref": "#/components/parameters/shutdown.get_node#master_timeout" - }, - { - "$ref": "#/components/parameters/shutdown.get_node#timeout" } ], "responses": { @@ -32188,9 +32419,6 @@ "parameters": [ { "$ref": "#/components/parameters/shutdown.get_node#master_timeout" - }, - { - "$ref": "#/components/parameters/shutdown.get_node#timeout" } ], "responses": { @@ -32848,15 +33076,6 @@ "$ref": "#/components/schemas/_types:Duration" }, "style": "form" - }, - { - "in": "query", - "name": "timeout", - "deprecated": false, - "schema": { - "$ref": "#/components/schemas/_types:Duration" - }, - "style": "form" } ], "requestBody": { @@ -34749,16 +34968,6 @@ }, "style": "form" }, - { - "in": "query", - "name": "master_timeout", - "description": "Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error.", - "deprecated": false, - "schema": { - "$ref": "#/components/schemas/_types:Duration" - }, - "style": "form" - }, { "in": "query", "name": "timeout", @@ -36185,6 +36394,16 @@ "type": "boolean" }, "style": "form" + }, + { + "in": "query", + "name": "timeout", + "description": "Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.", + "deprecated": false, + "schema": { + "$ref": "#/components/schemas/_types:Duration" + }, + "style": "form" } ], "responses": { @@ -37787,6 +38006,18 @@ "summary": "Start the watch service", "description": "Start the Watcher service if it is not already running.", "operationId": "watcher-start", + "parameters": [ + { + "in": "query", + "name": "master_timeout", + "description": "Period to wait for a connection to the master node.", + "deprecated": false, + "schema": { + "$ref": "#/components/schemas/_types:Duration" + }, + "style": "form" + } + ], "responses": { "200": { "description": "", @@ -37858,6 +38089,18 @@ "summary": "Stop the watch service", "description": "Stop the Watcher service if it is running.", "operationId": "watcher-stop", + "parameters": [ + { + "in": "query", + "name": "master_timeout", + "description": "Period to wait for a connection to the master node.", + "deprecated": false, + "schema": { + "$ref": "#/components/schemas/_types:Duration" + }, + "style": "form" + } + ], "responses": { "200": { "description": "", @@ -96534,6 +96777,16 @@ }, "style": "simple" }, + "ccr.get_auto_follow_pattern#master_timeout": { + "in": "query", + "name": "master_timeout", + "description": "Period to wait for a connection to the master node.", + "deprecated": false, + "schema": { + "$ref": "#/components/schemas/_types:Duration" + }, + "style": "form" + }, "clear_scroll#scroll_id": { "in": "path", "name": "scroll_id", @@ -96565,6 +96818,16 @@ }, "style": "form" }, + "cluster.allocation_explain#master_timeout": { + "in": "query", + "name": "master_timeout", + "description": "Period to wait for a connection to the master node.", + "deprecated": false, + "schema": { + "$ref": "#/components/schemas/_types:Duration" + }, + "style": "form" + }, "cluster.get_component_template#name": { "in": "path", "name": "name", @@ -97173,6 +97436,16 @@ }, "style": "simple" }, + "enrich.get_policy#master_timeout": { + "in": "query", + "name": "master_timeout", + "description": "Period to wait for a connection to the master node.", + "deprecated": false, + "schema": { + "$ref": "#/components/schemas/_types:Duration" + }, + "style": "form" + }, "eql.search#index": { "in": "path", "name": "index", @@ -100249,16 +100522,6 @@ }, "style": "simple" }, - "ingest.get_geoip_database#master_timeout": { - "in": "query", - "name": "master_timeout", - "description": "Period to wait for a connection to the master node.\nIf no response is received before the timeout expires, the request fails and returns an error.", - "deprecated": false, - "schema": { - "$ref": "#/components/schemas/_types:Duration" - }, - "style": "form" - }, "ingest.get_ip_location_database#id": { "in": "path", "name": "id", @@ -100363,6 +100626,26 @@ }, "style": "form" }, + "license.post#master_timeout": { + "in": "query", + "name": "master_timeout", + "description": "Period to wait for a connection to the master node.", + "deprecated": false, + "schema": { + "$ref": "#/components/schemas/_types:Duration" + }, + "style": "form" + }, + "license.post#timeout": { + "in": "query", + "name": "timeout", + "description": "Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.", + "deprecated": false, + "schema": { + "$ref": "#/components/schemas/_types:Duration" + }, + "style": "form" + }, "logstash.get_pipeline#id": { "in": "path", "name": "id", @@ -101104,16 +101387,6 @@ }, "style": "simple" }, - "ml.get_memory_stats#human": { - "in": "query", - "name": "human", - "description": "Specify this query parameter to include the fields with units in the response. Otherwise only\nthe `_in_bytes` sizes are returned in the response.", - "deprecated": false, - "schema": { - "type": "boolean" - }, - "style": "form" - }, "ml.get_memory_stats#master_timeout": { "in": "query", "name": "master_timeout", @@ -102021,16 +102294,6 @@ }, "style": "form" }, - "nodes.hot_threads#master_timeout": { - "in": "query", - "name": "master_timeout", - "description": "Period to wait for a connection to the master node. If no response\nis received before the timeout expires, the request fails and\nreturns an error.", - "deprecated": false, - "schema": { - "$ref": "#/components/schemas/_types:Duration" - }, - "style": "form" - }, "nodes.hot_threads#threads": { "in": "query", "name": "threads", @@ -102103,16 +102366,6 @@ }, "style": "form" }, - "nodes.info#master_timeout": { - "in": "query", - "name": "master_timeout", - "description": "Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error.", - "deprecated": false, - "schema": { - "$ref": "#/components/schemas/_types:Duration" - }, - "style": "form" - }, "nodes.info#timeout": { "in": "query", "name": "timeout", @@ -102237,16 +102490,6 @@ }, "style": "form" }, - "nodes.stats#master_timeout": { - "in": "query", - "name": "master_timeout", - "description": "Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error.", - "deprecated": false, - "schema": { - "$ref": "#/components/schemas/_types:Duration" - }, - "style": "form" - }, "nodes.stats#timeout": { "in": "query", "name": "timeout", @@ -103185,6 +103428,16 @@ }, "style": "form" }, + "search_shards#master_timeout": { + "in": "query", + "name": "master_timeout", + "description": "Period to wait for a connection to the master node.", + "deprecated": false, + "schema": { + "$ref": "#/components/schemas/_types:Duration" + }, + "style": "form" + }, "search_shards#preference": { "in": "query", "name": "preference", @@ -103407,24 +103660,6 @@ }, "style": "form" }, - "searchable_snapshots.clear_cache#pretty": { - "in": "query", - "name": "pretty", - "deprecated": false, - "schema": { - "type": "boolean" - }, - "style": "form" - }, - "searchable_snapshots.clear_cache#human": { - "in": "query", - "name": "human", - "deprecated": false, - "schema": { - "type": "boolean" - }, - "style": "form" - }, "searchable_snapshots.stats#index": { "in": "path", "name": "index", @@ -103907,16 +104142,6 @@ }, "style": "form" }, - "shutdown.get_node#timeout": { - "in": "query", - "name": "timeout", - "description": "Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.", - "deprecated": false, - "schema": { - "$ref": "#/components/schemas/_types:TimeUnit" - }, - "style": "form" - }, "slm.get_lifecycle#policy_id": { "in": "path", "name": "policy_id", diff --git a/output/openapi/elasticsearch-serverless-openapi.json b/output/openapi/elasticsearch-serverless-openapi.json index 1d34adb4e2..7cd8fb3c26 100644 --- a/output/openapi/elasticsearch-serverless-openapi.json +++ b/output/openapi/elasticsearch-serverless-openapi.json @@ -4611,6 +4611,9 @@ "parameters": [ { "$ref": "#/components/parameters/enrich.get_policy#name" + }, + { + "$ref": "#/components/parameters/enrich.get_policy#master_timeout" } ], "responses": { @@ -4638,6 +4641,16 @@ "$ref": "#/components/schemas/_types:Name" }, "style": "simple" + }, + { + "in": "query", + "name": "master_timeout", + "description": "Period to wait for a connection to the master node.", + "deprecated": false, + "schema": { + "$ref": "#/components/schemas/_types:Duration" + }, + "style": "form" } ], "requestBody": { @@ -4693,6 +4706,16 @@ "$ref": "#/components/schemas/_types:Name" }, "style": "simple" + }, + { + "in": "query", + "name": "master_timeout", + "description": "Period to wait for a connection to the master node.", + "deprecated": false, + "schema": { + "$ref": "#/components/schemas/_types:Duration" + }, + "style": "form" } ], "responses": { @@ -4730,6 +4753,16 @@ }, "style": "simple" }, + { + "in": "query", + "name": "master_timeout", + "description": "Period to wait for a connection to the master node.", + "deprecated": false, + "schema": { + "$ref": "#/components/schemas/_types:Duration" + }, + "style": "form" + }, { "in": "query", "name": "wait_for_completion", @@ -4772,6 +4805,11 @@ "summary": "Get an enrich policy", "description": "Returns information about an enrich policy.", "operationId": "enrich-get-policy-1", + "parameters": [ + { + "$ref": "#/components/parameters/enrich.get_policy#master_timeout" + } + ], "responses": { "200": { "$ref": "#/components/responses/enrich.get_policy#200" @@ -11147,6 +11185,16 @@ "type": "boolean" }, "style": "form" + }, + { + "in": "query", + "name": "timeout", + "description": "Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.", + "deprecated": false, + "schema": { + "$ref": "#/components/schemas/_types:Duration" + }, + "style": "form" } ], "responses": { @@ -19149,6 +19197,16 @@ "type": "boolean" }, "style": "form" + }, + { + "in": "query", + "name": "timeout", + "description": "Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.", + "deprecated": false, + "schema": { + "$ref": "#/components/schemas/_types:Duration" + }, + "style": "form" } ], "responses": { @@ -58670,6 +58728,16 @@ }, "style": "simple" }, + "enrich.get_policy#master_timeout": { + "in": "query", + "name": "master_timeout", + "description": "Period to wait for a connection to the master node.", + "deprecated": false, + "schema": { + "$ref": "#/components/schemas/_types:Duration" + }, + "style": "form" + }, "eql.search#index": { "in": "path", "name": "index", diff --git a/output/schema/schema-serverless.json b/output/schema/schema-serverless.json index 09b247282d..ba99bc9799 100644 --- a/output/schema/schema-serverless.json +++ b/output/schema/schema-serverless.json @@ -16884,8 +16884,22 @@ } } ], - "query": [], - "specLocation": "enrich/delete_policy/DeleteEnrichPolicyRequest.ts#L23-L37" + "query": [ + { + "description": "Period to wait for a connection to the master node.", + "name": "master_timeout", + "required": false, + "serverDefault": "30s", + "type": { + "kind": "instance_of", + "type": { + "name": "Duration", + "namespace": "_types" + } + } + } + ], + "specLocation": "enrich/delete_policy/DeleteEnrichPolicyRequest.ts#L24-L45" }, { "body": { @@ -16939,6 +16953,19 @@ } ], "query": [ + { + "description": "Period to wait for a connection to the master node.", + "name": "master_timeout", + "required": false, + "serverDefault": "30s", + "type": { + "kind": "instance_of", + "type": { + "name": "Duration", + "namespace": "_types" + } + } + }, { "description": "If `true`, the request blocks other enrich policy execution requests until complete.", "name": "wait_for_completion", @@ -16953,7 +16980,7 @@ } } ], - "specLocation": "enrich/execute_policy/ExecuteEnrichPolicyRequest.ts#L23-L45" + "specLocation": "enrich/execute_policy/ExecuteEnrichPolicyRequest.ts#L24-L51" }, { "body": { @@ -17023,8 +17050,22 @@ } } ], - "query": [], - "specLocation": "enrich/get_policy/GetEnrichPolicyRequest.ts#L23-L38" + "query": [ + { + "description": "Period to wait for a connection to the master node.", + "name": "master_timeout", + "required": false, + "serverDefault": "30s", + "type": { + "kind": "instance_of", + "type": { + "name": "Duration", + "namespace": "_types" + } + } + } + ], + "specLocation": "enrich/get_policy/GetEnrichPolicyRequest.ts#L24-L46" }, { "body": { @@ -17124,8 +17165,22 @@ } } ], - "query": [], - "specLocation": "enrich/put_policy/PutEnrichPolicyRequest.ts#L24-L53" + "query": [ + { + "description": "Period to wait for a connection to the master node.", + "name": "master_timeout", + "required": false, + "serverDefault": "30s", + "type": { + "kind": "instance_of", + "type": { + "name": "Duration", + "namespace": "_types" + } + } + } + ], + "specLocation": "enrich/put_policy/PutEnrichPolicyRequest.ts#L25-L61" }, { "body": { @@ -26715,9 +26770,22 @@ "namespace": "_builtins" } } + }, + { + "description": "Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.", + "name": "timeout", + "required": false, + "serverDefault": "30s", + "type": { + "kind": "instance_of", + "type": { + "name": "Duration", + "namespace": "_types" + } + } } ], - "specLocation": "ml/delete_trained_model/MlDeleteTrainedModelRequest.ts#L23-L43" + "specLocation": "ml/delete_trained_model/MlDeleteTrainedModelRequest.ts#L24-L49" }, { "body": { @@ -43454,9 +43522,22 @@ "namespace": "_builtins" } } + }, + { + "description": "Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.", + "name": "timeout", + "required": false, + "serverDefault": "30s", + "type": { + "kind": "instance_of", + "type": { + "name": "Duration", + "namespace": "_types" + } + } } ], - "specLocation": "transform/reset_transform/ResetTransformRequest.ts#L23-L49" + "specLocation": "transform/reset_transform/ResetTransformRequest.ts#L24-L55" }, { "body": { diff --git a/output/schema/schema.json b/output/schema/schema.json index 3aa13b78dc..3eaf1360cf 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -40509,6 +40509,19 @@ } } }, + { + "description": "Period to wait for a connection to the master node.", + "name": "master_timeout", + "required": false, + "serverDefault": "30s", + "type": { + "kind": "instance_of", + "type": { + "name": "Duration", + "namespace": "_types" + } + } + }, { "description": "Specifies the node or shard the operation should be performed on.\nRandom by default.", "name": "preference", @@ -40534,7 +40547,7 @@ } } ], - "specLocation": "_global/search_shards/SearchShardsRequest.ts#L23-L76" + "specLocation": "_global/search_shards/SearchShardsRequest.ts#L24-L82" }, { "kind": "response", @@ -104599,8 +104612,22 @@ } } ], - "query": [], - "specLocation": "ccr/delete_auto_follow_pattern/DeleteAutoFollowPatternRequest.ts#L23-L35" + "query": [ + { + "description": "Period to wait for a connection to the master node.", + "name": "master_timeout", + "required": false, + "serverDefault": "30s", + "type": { + "kind": "instance_of", + "type": { + "name": "Duration", + "namespace": "_types" + } + } + } + ], + "specLocation": "ccr/delete_auto_follow_pattern/DeleteAutoFollowPatternRequest.ts#L24-L43" }, { "kind": "response", @@ -104824,6 +104851,19 @@ } ], "query": [ + { + "description": "Period to wait for a connection to the master node.", + "name": "master_timeout", + "required": false, + "serverDefault": "30s", + "type": { + "kind": "instance_of", + "type": { + "name": "Duration", + "namespace": "_types" + } + } + }, { "description": "Specifies the number of shards to wait on being active before responding. This defaults to waiting on none of the shards to be\nactive.\nA shard must be restored from the leader index before being active. Restoring a follower shard requires transferring all the\nremote Lucene segment files to the follower index.", "name": "wait_for_active_shards", @@ -104837,7 +104877,7 @@ } } ], - "specLocation": "ccr/follow/CreateFollowIndexRequest.ts#L26-L113" + "specLocation": "ccr/follow/CreateFollowIndexRequest.ts#L26-L118" }, { "kind": "response", @@ -105129,8 +105169,22 @@ } } ], - "query": [], - "specLocation": "ccr/follow_info/FollowInfoRequest.ts#L23-L36" + "query": [ + { + "description": "Period to wait for a connection to the master node.", + "name": "master_timeout", + "required": false, + "serverDefault": "30s", + "type": { + "kind": "instance_of", + "type": { + "name": "Duration", + "namespace": "_types" + } + } + } + ], + "specLocation": "ccr/follow_info/FollowInfoRequest.ts#L24-L44" }, { "kind": "response", @@ -105192,8 +105246,22 @@ } } ], - "query": [], - "specLocation": "ccr/follow_stats/FollowIndexStatsRequest.ts#L23-L36" + "query": [ + { + "description": "Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.", + "name": "timeout", + "required": false, + "serverDefault": "30s", + "type": { + "kind": "instance_of", + "type": { + "name": "Duration", + "namespace": "_types" + } + } + } + ], + "specLocation": "ccr/follow_stats/FollowIndexStatsRequest.ts#L24-L44" }, { "kind": "response", @@ -105301,8 +105369,22 @@ } } ], - "query": [], - "specLocation": "ccr/forget_follower/ForgetFollowerIndexRequest.ts#L23-L51" + "query": [ + { + "description": "Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.", + "name": "timeout", + "required": false, + "serverDefault": "30s", + "type": { + "kind": "instance_of", + "type": { + "name": "Duration", + "namespace": "_types" + } + } + } + ], + "specLocation": "ccr/forget_follower/ForgetFollowerIndexRequest.ts#L24-L59" }, { "kind": "response", @@ -105480,8 +105562,22 @@ } } ], - "query": [], - "specLocation": "ccr/get_auto_follow_pattern/GetAutoFollowPatternRequest.ts#L23-L36" + "query": [ + { + "description": "Period to wait for a connection to the master node.", + "name": "master_timeout", + "required": false, + "serverDefault": "30s", + "type": { + "kind": "instance_of", + "type": { + "name": "Duration", + "namespace": "_types" + } + } + } + ], + "specLocation": "ccr/get_auto_follow_pattern/GetAutoFollowPatternRequest.ts#L24-L44" }, { "kind": "response", @@ -105543,8 +105639,22 @@ } } ], - "query": [], - "specLocation": "ccr/pause_auto_follow_pattern/PauseAutoFollowPatternRequest.ts#L23-L41" + "query": [ + { + "description": "Period to wait for a connection to the master node.", + "name": "master_timeout", + "required": false, + "serverDefault": "30s", + "type": { + "kind": "instance_of", + "type": { + "name": "Duration", + "namespace": "_types" + } + } + } + ], + "specLocation": "ccr/pause_auto_follow_pattern/PauseAutoFollowPatternRequest.ts#L24-L49" }, { "kind": "response", @@ -105597,8 +105707,22 @@ } } ], - "query": [], - "specLocation": "ccr/pause_follow/PauseFollowIndexRequest.ts#L23-L37" + "query": [ + { + "description": "Period to wait for a connection to the master node.", + "name": "master_timeout", + "required": false, + "serverDefault": "30s", + "type": { + "kind": "instance_of", + "type": { + "name": "Duration", + "namespace": "_types" + } + } + } + ], + "specLocation": "ccr/pause_follow/PauseFollowIndexRequest.ts#L24-L45" }, { "kind": "response", @@ -105852,8 +105976,22 @@ } } ], - "query": [], - "specLocation": "ccr/put_auto_follow_pattern/PutAutoFollowPatternRequest.ts#L27-L120" + "query": [ + { + "description": "Period to wait for a connection to the master node.", + "name": "master_timeout", + "required": false, + "serverDefault": "30s", + "type": { + "kind": "instance_of", + "type": { + "name": "Duration", + "namespace": "_types" + } + } + } + ], + "specLocation": "ccr/put_auto_follow_pattern/PutAutoFollowPatternRequest.ts#L27-L127" }, { "kind": "response", @@ -105906,8 +106044,22 @@ } } ], - "query": [], - "specLocation": "ccr/resume_auto_follow_pattern/ResumeAutoFollowPatternRequest.ts#L23-L37" + "query": [ + { + "description": "Period to wait for a connection to the master node.", + "name": "master_timeout", + "required": false, + "serverDefault": "30s", + "type": { + "kind": "instance_of", + "type": { + "name": "Duration", + "namespace": "_types" + } + } + } + ], + "specLocation": "ccr/resume_auto_follow_pattern/ResumeAutoFollowPatternRequest.ts#L24-L45" }, { "kind": "response", @@ -106072,8 +106224,22 @@ } } ], - "query": [], - "specLocation": "ccr/resume_follow/ResumeFollowIndexRequest.ts#L25-L52" + "query": [ + { + "description": "Period to wait for a connection to the master node.", + "name": "master_timeout", + "required": false, + "serverDefault": "30s", + "type": { + "kind": "instance_of", + "type": { + "name": "Duration", + "namespace": "_types" + } + } + } + ], + "specLocation": "ccr/resume_follow/ResumeFollowIndexRequest.ts#L25-L59" }, { "kind": "response", @@ -106260,8 +106426,35 @@ "namespace": "ccr.stats" }, "path": [], - "query": [], - "specLocation": "ccr/stats/CcrStatsRequest.ts#L22-L29" + "query": [ + { + "description": "Period to wait for a connection to the master node.", + "name": "master_timeout", + "required": false, + "serverDefault": "30s", + "type": { + "kind": "instance_of", + "type": { + "name": "Duration", + "namespace": "_types" + } + } + }, + { + "description": "Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.", + "name": "timeout", + "required": false, + "serverDefault": "30s", + "type": { + "kind": "instance_of", + "type": { + "name": "Duration", + "namespace": "_types" + } + } + } + ], + "specLocation": "ccr/stats/CcrStatsRequest.ts#L23-L43" }, { "kind": "response", @@ -106331,8 +106524,22 @@ } } ], - "query": [], - "specLocation": "ccr/unfollow/UnfollowIndexRequest.ts#L23-L39" + "query": [ + { + "description": "Period to wait for a connection to the master node.", + "name": "master_timeout", + "required": false, + "serverDefault": "30s", + "type": { + "kind": "instance_of", + "type": { + "name": "Duration", + "namespace": "_types" + } + } + } + ], + "specLocation": "ccr/unfollow/UnfollowIndexRequest.ts#L24-L47" }, { "kind": "response", @@ -107264,9 +107471,22 @@ "namespace": "_builtins" } } + }, + { + "description": "Period to wait for a connection to the master node.", + "name": "master_timeout", + "required": false, + "serverDefault": "30s", + "type": { + "kind": "instance_of", + "type": { + "name": "Duration", + "namespace": "_types" + } + } } ], - "specLocation": "cluster/allocation_explain/ClusterAllocationExplainRequest.ts#L24-L66" + "specLocation": "cluster/allocation_explain/ClusterAllocationExplainRequest.ts#L25-L72" }, { "kind": "interface", @@ -107899,6 +108119,19 @@ }, "path": [], "query": [ + { + "description": "Period to wait for a connection to the master node.", + "name": "master_timeout", + "required": false, + "serverDefault": "30s", + "type": { + "kind": "instance_of", + "type": { + "name": "Duration", + "namespace": "_types" + } + } + }, { "description": "Specifies whether to wait for all excluded nodes to be removed from the\ncluster before clearing the voting configuration exclusions list.\nDefaults to true, meaning that all excluded nodes must be removed from\nthe cluster before this API takes any action. If set to false then the\nvoting configuration exclusions list is cleared even if some excluded\nnodes are still in the cluster.", "name": "wait_for_removal", @@ -107913,7 +108146,7 @@ } } ], - "specLocation": "cluster/delete_voting_config_exclusions/ClusterDeleteVotingConfigExclusionsRequest.ts#L22-L43" + "specLocation": "cluster/delete_voting_config_exclusions/ClusterDeleteVotingConfigExclusionsRequest.ts#L23-L49" }, { "kind": "response", @@ -109281,6 +109514,19 @@ } } }, + { + "description": "Period to wait for a connection to the master node.", + "name": "master_timeout", + "required": false, + "serverDefault": "30s", + "type": { + "kind": "instance_of", + "type": { + "name": "Duration", + "namespace": "_types" + } + } + }, { "description": "When adding a voting configuration exclusion, the API waits for the\nspecified nodes to be excluded from the voting configuration before\nreturning. If the timeout expires before the appropriate condition\nis satisfied, the request fails and returns an error.", "name": "timeout", @@ -109295,7 +109541,7 @@ } } ], - "specLocation": "cluster/post_voting_config_exclusions/ClusterPostVotingConfigExclusionsRequest.ts#L24-L69" + "specLocation": "cluster/post_voting_config_exclusions/ClusterPostVotingConfigExclusionsRequest.ts#L24-L74" }, { "kind": "response", @@ -118098,8 +118344,22 @@ } } ], - "query": [], - "specLocation": "enrich/delete_policy/DeleteEnrichPolicyRequest.ts#L23-L37" + "query": [ + { + "description": "Period to wait for a connection to the master node.", + "name": "master_timeout", + "required": false, + "serverDefault": "30s", + "type": { + "kind": "instance_of", + "type": { + "name": "Duration", + "namespace": "_types" + } + } + } + ], + "specLocation": "enrich/delete_policy/DeleteEnrichPolicyRequest.ts#L24-L45" }, { "kind": "response", @@ -118196,6 +118456,19 @@ } ], "query": [ + { + "description": "Period to wait for a connection to the master node.", + "name": "master_timeout", + "required": false, + "serverDefault": "30s", + "type": { + "kind": "instance_of", + "type": { + "name": "Duration", + "namespace": "_types" + } + } + }, { "description": "If `true`, the request blocks other enrich policy execution requests until complete.", "name": "wait_for_completion", @@ -118210,7 +118483,7 @@ } } ], - "specLocation": "enrich/execute_policy/ExecuteEnrichPolicyRequest.ts#L23-L45" + "specLocation": "enrich/execute_policy/ExecuteEnrichPolicyRequest.ts#L24-L51" }, { "kind": "response", @@ -118280,8 +118553,22 @@ } } ], - "query": [], - "specLocation": "enrich/get_policy/GetEnrichPolicyRequest.ts#L23-L38" + "query": [ + { + "description": "Period to wait for a connection to the master node.", + "name": "master_timeout", + "required": false, + "serverDefault": "30s", + "type": { + "kind": "instance_of", + "type": { + "name": "Duration", + "namespace": "_types" + } + } + } + ], + "specLocation": "enrich/get_policy/GetEnrichPolicyRequest.ts#L24-L46" }, { "kind": "response", @@ -118381,8 +118668,22 @@ } } ], - "query": [], - "specLocation": "enrich/put_policy/PutEnrichPolicyRequest.ts#L24-L53" + "query": [ + { + "description": "Period to wait for a connection to the master node.", + "name": "master_timeout", + "required": false, + "serverDefault": "30s", + "type": { + "kind": "instance_of", + "type": { + "name": "Duration", + "namespace": "_types" + } + } + } + ], + "specLocation": "enrich/put_policy/PutEnrichPolicyRequest.ts#L25-L61" }, { "kind": "response", @@ -118635,8 +118936,22 @@ "namespace": "enrich.stats" }, "path": [], - "query": [], - "specLocation": "enrich/stats/EnrichStatsRequest.ts#L22-L29" + "query": [ + { + "description": "Period to wait for a connection to the master node.", + "name": "master_timeout", + "required": false, + "serverDefault": "30s", + "type": { + "kind": "instance_of", + "type": { + "name": "Duration", + "namespace": "_types" + } + } + } + ], + "specLocation": "enrich/stats/EnrichStatsRequest.ts#L23-L38" }, { "kind": "response", @@ -120227,8 +120542,22 @@ "namespace": "features.get_features" }, "path": [], - "query": [], - "specLocation": "features/get_features/GetFeaturesRequest.ts#L22-L37" + "query": [ + { + "description": "Period to wait for a connection to the master node.", + "name": "master_timeout", + "required": false, + "serverDefault": "30s", + "type": { + "kind": "instance_of", + "type": { + "name": "Duration", + "namespace": "_types" + } + } + } + ], + "specLocation": "features/get_features/GetFeaturesRequest.ts#L23-L46" }, { "kind": "response", @@ -120277,8 +120606,22 @@ "namespace": "features.reset_features" }, "path": [], - "query": [], - "specLocation": "features/reset_features/ResetFeaturesRequest.ts#L22-L44" + "query": [ + { + "description": "Period to wait for a connection to the master node.", + "name": "master_timeout", + "required": false, + "serverDefault": "30s", + "type": { + "kind": "instance_of", + "type": { + "name": "Duration", + "namespace": "_types" + } + } + } + ], + "specLocation": "features/reset_features/ResetFeaturesRequest.ts#L23-L53" }, { "kind": "response", @@ -123839,22 +124182,9 @@ "namespace": "_types" } } - }, - { - "description": "Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.", - "name": "timeout", - "required": false, - "serverDefault": "30s", - "type": { - "kind": "instance_of", - "type": { - "name": "Duration", - "namespace": "_types" - } - } } ], - "specLocation": "ilm/explain_lifecycle/ExplainLifecycleRequest.ts#L24-L62" + "specLocation": "ilm/explain_lifecycle/ExplainLifecycleRequest.ts#L24-L57" }, { "kind": "response", @@ -124603,9 +124933,10 @@ "path": [], "query": [ { - "description": "Explicit operation timeout for connection to master node", + "description": "Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error.", "name": "master_timeout", "required": false, + "serverDefault": "30s", "type": { "kind": "instance_of", "type": { @@ -124615,9 +124946,10 @@ } }, { - "description": "Explicit operation timeout", + "description": "Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.", "name": "timeout", "required": false, + "serverDefault": "30s", "type": { "kind": "instance_of", "type": { @@ -124627,7 +124959,7 @@ } } ], - "specLocation": "ilm/start/StartIlmRequest.ts#L23-L37" + "specLocation": "ilm/start/StartIlmRequest.ts#L23-L45" }, { "kind": "response", @@ -124669,9 +125001,10 @@ "path": [], "query": [ { - "description": "Explicit operation timeout for connection to master node", + "description": "Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error.", "name": "master_timeout", "required": false, + "serverDefault": "30s", "type": { "kind": "instance_of", "type": { @@ -124681,9 +125014,10 @@ } }, { - "description": "Explicit operation timeout", + "description": "Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.", "name": "timeout", "required": false, + "serverDefault": "30s", "type": { "kind": "instance_of", "type": { @@ -124693,7 +125027,7 @@ } } ], - "specLocation": "ilm/stop/StopIlmRequest.ts#L23-L39" + "specLocation": "ilm/stop/StopIlmRequest.ts#L23-L47" }, { "kind": "response", @@ -132682,32 +133016,6 @@ } } }, - { - "description": "Period to wait for a connection to the master node.\nIf no response is received before the timeout expires, the request fails and returns an error.", - "name": "master_timeout", - "required": false, - "serverDefault": "30s", - "type": { - "kind": "instance_of", - "type": { - "name": "Duration", - "namespace": "_types" - } - } - }, - { - "description": "Period to wait for a response.\nIf no response is received before the timeout expires, the request fails and returns an error.", - "name": "timeout", - "required": false, - "serverDefault": "30s", - "type": { - "kind": "instance_of", - "type": { - "name": "Duration", - "namespace": "_types" - } - } - }, { "description": "The number of shard copies that must be active before proceeding with the operation.\nSet to all or any positive integer up to the total number of shards in the index (`number_of_replicas+1`).", "name": "wait_for_active_shards", @@ -132722,7 +133030,7 @@ } } ], - "specLocation": "indices/field_usage_stats/IndicesFieldUsageStatsRequest.ts#L29-L91" + "specLocation": "indices/field_usage_stats/IndicesFieldUsageStatsRequest.ts#L28-L78" }, { "kind": "response", @@ -148662,22 +148970,8 @@ } } ], - "query": [ - { - "description": "Period to wait for a connection to the master node.\nIf no response is received before the timeout expires, the request fails and returns an error.", - "name": "master_timeout", - "required": false, - "serverDefault": "30s", - "type": { - "kind": "instance_of", - "type": { - "name": "Duration", - "namespace": "_types" - } - } - } - ], - "specLocation": "ingest/get_geoip_database/GetGeoipDatabaseRequest.ts#L24-L47" + "query": [], + "specLocation": "ingest/get_geoip_database/GetGeoipDatabaseRequest.ts#L23-L39" }, { "kind": "response", @@ -150115,8 +150409,35 @@ "namespace": "license.delete" }, "path": [], - "query": [], - "specLocation": "license/delete/DeleteLicenseRequest.ts#L22-L32" + "query": [ + { + "description": "Period to wait for a connection to the master node.", + "name": "master_timeout", + "required": false, + "serverDefault": "30s", + "type": { + "kind": "instance_of", + "type": { + "name": "Duration", + "namespace": "_types" + } + } + }, + { + "description": "Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.", + "name": "timeout", + "required": false, + "serverDefault": "30s", + "type": { + "kind": "instance_of", + "type": { + "name": "Duration", + "namespace": "_types" + } + } + } + ], + "specLocation": "license/delete/DeleteLicenseRequest.ts#L23-L46" }, { "kind": "response", @@ -150597,9 +150918,35 @@ "namespace": "_builtins" } } + }, + { + "description": "Period to wait for a connection to the master node.", + "name": "master_timeout", + "required": false, + "serverDefault": "30s", + "type": { + "kind": "instance_of", + "type": { + "name": "Duration", + "namespace": "_types" + } + } + }, + { + "description": "Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.", + "name": "timeout", + "required": false, + "serverDefault": "30s", + "type": { + "kind": "instance_of", + "type": { + "name": "Duration", + "namespace": "_types" + } + } } ], - "specLocation": "license/post/PostLicenseRequest.ts#L23-L51" + "specLocation": "license/post/PostLicenseRequest.ts#L24-L62" }, { "kind": "response", @@ -150679,9 +151026,35 @@ "namespace": "_builtins" } } + }, + { + "description": "Period to wait for a connection to the master node.", + "name": "master_timeout", + "required": false, + "serverDefault": "30s", + "type": { + "kind": "instance_of", + "type": { + "name": "Duration", + "namespace": "_types" + } + } + }, + { + "description": "Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.", + "name": "timeout", + "required": false, + "serverDefault": "30s", + "type": { + "kind": "instance_of", + "type": { + "name": "Duration", + "namespace": "_types" + } + } } ], - "specLocation": "license/post_start_basic/StartBasicLicenseRequest.ts#L22-L40" + "specLocation": "license/post_start_basic/StartBasicLicenseRequest.ts#L23-L51" }, { "kind": "response", @@ -150820,9 +151193,22 @@ "namespace": "_builtins" } } + }, + { + "description": "Period to wait for a connection to the master node.", + "name": "master_timeout", + "required": false, + "serverDefault": "30s", + "type": { + "kind": "instance_of", + "type": { + "name": "Duration", + "namespace": "_types" + } + } } ], - "specLocation": "license/post_start_trial/StartTrialLicenseRequest.ts#L22-L40" + "specLocation": "license/post_start_trial/StartTrialLicenseRequest.ts#L23-L46" }, { "kind": "response", @@ -165352,9 +165738,22 @@ "namespace": "_builtins" } } + }, + { + "description": "Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.", + "name": "timeout", + "required": false, + "serverDefault": "30s", + "type": { + "kind": "instance_of", + "type": { + "name": "Duration", + "namespace": "_types" + } + } } ], - "specLocation": "ml/delete_trained_model/MlDeleteTrainedModelRequest.ts#L23-L43" + "specLocation": "ml/delete_trained_model/MlDeleteTrainedModelRequest.ts#L24-L49" }, { "kind": "response", @@ -168912,18 +169311,6 @@ } ], "query": [ - { - "description": "Specify this query parameter to include the fields with units in the response. Otherwise only\nthe `_in_bytes` sizes are returned in the response.", - "name": "human", - "required": false, - "type": { - "kind": "instance_of", - "type": { - "name": "boolean", - "namespace": "_builtins" - } - } - }, { "description": "Period to wait for a connection to the master node. If no response is received before the timeout\nexpires, the request fails and returns an error.", "name": "master_timeout", @@ -168951,7 +169338,7 @@ } } ], - "specLocation": "ml/get_memory_stats/MlGetMemoryStatsRequest.ts#L24-L60" + "specLocation": "ml/get_memory_stats/MlGetMemoryStatsRequest.ts#L24-L55" }, { "kind": "response", @@ -182291,19 +182678,6 @@ } } }, - { - "description": "Period to wait for a connection to the master node. If no response\nis received before the timeout expires, the request fails and\nreturns an error.", - "name": "master_timeout", - "required": false, - "serverDefault": "30s", - "type": { - "kind": "instance_of", - "type": { - "name": "Duration", - "namespace": "_types" - } - } - }, { "description": "Specifies the number of hot threads to provide information for.", "name": "threads", @@ -182356,7 +182730,7 @@ } } ], - "specLocation": "nodes/hot_threads/NodesHotThreadsRequest.ts#L25-L85" + "specLocation": "nodes/hot_threads/NodesHotThreadsRequest.ts#L25-L78" }, { "kind": "response", @@ -185400,19 +185774,6 @@ } } }, - { - "description": "Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error.", - "name": "master_timeout", - "required": false, - "serverDefault": "30s", - "type": { - "kind": "instance_of", - "type": { - "name": "Duration", - "namespace": "_types" - } - } - }, { "description": "Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.", "name": "timeout", @@ -185427,7 +185788,7 @@ } } ], - "specLocation": "nodes/info/NodesInfoRequest.ts#L24-L57" + "specLocation": "nodes/info/NodesInfoRequest.ts#L24-L52" }, { "kind": "response", @@ -185758,19 +186119,6 @@ } } }, - { - "description": "Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error.", - "name": "master_timeout", - "required": false, - "serverDefault": "30s", - "type": { - "kind": "instance_of", - "type": { - "name": "Duration", - "namespace": "_types" - } - } - }, { "description": "Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.", "name": "timeout", @@ -185813,7 +186161,7 @@ } } ], - "specLocation": "nodes/stats/NodesStatsRequest.ts#L24-L78" + "specLocation": "nodes/stats/NodesStatsRequest.ts#L24-L73" }, { "kind": "response", @@ -190105,31 +190453,9 @@ "namespace": "_builtins" } } - }, - { - "name": "pretty", - "required": false, - "type": { - "kind": "instance_of", - "type": { - "name": "boolean", - "namespace": "_builtins" - } - } - }, - { - "name": "human", - "required": false, - "type": { - "kind": "instance_of", - "type": { - "name": "boolean", - "namespace": "_builtins" - } - } } ], - "specLocation": "searchable_snapshots/clear_cache/SearchableSnapshotsClearCacheRequest.ts#L23-L42" + "specLocation": "searchable_snapshots/clear_cache/SearchableSnapshotsClearCacheRequest.ts#L23-L40" }, { "kind": "response", @@ -202755,22 +203081,9 @@ "namespace": "_types" } } - }, - { - "description": "Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.", - "name": "timeout", - "required": false, - "serverDefault": "30s", - "type": { - "kind": "instance_of", - "type": { - "name": "TimeUnit", - "namespace": "_types" - } - } } ], - "specLocation": "shutdown/get_node/ShutdownGetNodeRequest.ts#L24-L54" + "specLocation": "shutdown/get_node/ShutdownGetNodeRequest.ts#L24-L49" }, { "kind": "response", @@ -206430,20 +206743,9 @@ "namespace": "_types" } } - }, - { - "name": "timeout", - "required": false, - "type": { - "kind": "instance_of", - "type": { - "name": "Duration", - "namespace": "_types" - } - } } ], - "specLocation": "snapshot/clone/SnapshotCloneRequest.ts#L24-L45" + "specLocation": "snapshot/clone/SnapshotCloneRequest.ts#L24-L44" }, { "kind": "response", @@ -210739,19 +211041,6 @@ } } }, - { - "description": "Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error.", - "name": "master_timeout", - "required": false, - "serverDefault": "30s", - "type": { - "kind": "instance_of", - "type": { - "name": "Duration", - "namespace": "_types" - } - } - }, { "description": "Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.", "name": "timeout", @@ -210779,7 +211068,7 @@ } } ], - "specLocation": "tasks/list/ListTasksRequest.ts#L25-L74" + "specLocation": "tasks/list/ListTasksRequest.ts#L25-L69" }, { "kind": "response", @@ -214438,9 +214727,22 @@ "namespace": "_builtins" } } + }, + { + "description": "Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.", + "name": "timeout", + "required": false, + "serverDefault": "30s", + "type": { + "kind": "instance_of", + "type": { + "name": "Duration", + "namespace": "_types" + } + } } ], - "specLocation": "transform/reset_transform/ResetTransformRequest.ts#L23-L49" + "specLocation": "transform/reset_transform/ResetTransformRequest.ts#L24-L55" }, { "kind": "response", @@ -220684,8 +220986,22 @@ "namespace": "watcher.start" }, "path": [], - "query": [], - "specLocation": "watcher/start/WatcherStartRequest.ts#L22-L29" + "query": [ + { + "description": "Period to wait for a connection to the master node.", + "name": "master_timeout", + "required": false, + "serverDefault": "30s", + "type": { + "kind": "instance_of", + "type": { + "name": "Duration", + "namespace": "_types" + } + } + } + ], + "specLocation": "watcher/start/WatcherStartRequest.ts#L23-L38" }, { "kind": "response", @@ -221102,8 +221418,22 @@ "namespace": "watcher.stop" }, "path": [], - "query": [], - "specLocation": "watcher/stop/WatcherStopRequest.ts#L22-L29" + "query": [ + { + "description": "Period to wait for a connection to the master node.", + "name": "master_timeout", + "required": false, + "serverDefault": "30s", + "type": { + "kind": "instance_of", + "type": { + "name": "Duration", + "namespace": "_types" + } + } + } + ], + "specLocation": "watcher/stop/WatcherStopRequest.ts#L23-L38" }, { "kind": "response", diff --git a/output/schema/validation-errors.json b/output/schema/validation-errors.json index a081f0974e..94dbd22bac 100644 --- a/output/schema/validation-errors.json +++ b/output/schema/validation-errors.json @@ -110,109 +110,12 @@ ], "response": [] }, - "ccr.delete_auto_follow_pattern": { - "request": [ - "Request: missing json spec query parameter 'master_timeout'" - ], - "response": [] - }, - "ccr.follow": { - "request": [ - "Request: missing json spec query parameter 'master_timeout'" - ], - "response": [] - }, - "ccr.follow_info": { - "request": [ - "Request: missing json spec query parameter 'master_timeout'" - ], - "response": [] - }, - "ccr.follow_stats": { - "request": [ - "Request: missing json spec query parameter 'timeout'" - ], - "response": [] - }, - "ccr.forget_follower": { - "request": [ - "Request: missing json spec query parameter 'timeout'" - ], - "response": [] - }, - "ccr.get_auto_follow_pattern": { - "request": [ - "Request: missing json spec query parameter 'master_timeout'" - ], - "response": [] - }, - "ccr.pause_auto_follow_pattern": { - "request": [ - "Request: missing json spec query parameter 'master_timeout'" - ], - "response": [] - }, - "ccr.pause_follow": { - "request": [ - "Request: missing json spec query parameter 'master_timeout'" - ], - "response": [] - }, - "ccr.put_auto_follow_pattern": { - "request": [ - "Request: missing json spec query parameter 'master_timeout'" - ], - "response": [] - }, - "ccr.resume_auto_follow_pattern": { - "request": [ - "Request: missing json spec query parameter 'master_timeout'" - ], - "response": [] - }, - "ccr.resume_follow": { - "request": [ - "Request: missing json spec query parameter 'master_timeout'" - ], - "response": [] - }, - "ccr.stats": { - "request": [ - "Request: missing json spec query parameter 'timeout'", - "Request: missing json spec query parameter 'master_timeout'" - ], - "response": [] - }, - "ccr.unfollow": { - "request": [ - "Request: missing json spec query parameter 'master_timeout'" - ], - "response": [] - }, - "cluster.allocation_explain": { - "request": [ - "Request: missing json spec query parameter 'master_timeout'" - ], - "response": [] - }, - "cluster.delete_voting_config_exclusions": { - "request": [ - "Request: missing json spec query parameter 'master_timeout'" - ], - "response": [] - }, "cluster.get_component_template": { "request": [ "Request: query parameter 'flat_settings' does not exist in the json spec" ], "response": [] }, - "cluster.post_voting_config_exclusions": { - "request": [ - "Request: missing json spec query parameter 'master_timeout'" - ], - "response": [] - }, "cluster.put_component_template": { "request": [ "Request: missing json spec query parameter 'timeout'" @@ -243,36 +146,6 @@ ], "response": [] }, - "enrich.delete_policy": { - "request": [ - "Request: missing json spec query parameter 'master_timeout'" - ], - "response": [] - }, - "enrich.execute_policy": { - "request": [ - "Request: missing json spec query parameter 'master_timeout'" - ], - "response": [] - }, - "enrich.get_policy": { - "request": [ - "Request: missing json spec query parameter 'master_timeout'" - ], - "response": [] - }, - "enrich.put_policy": { - "request": [ - "Request: missing json spec query parameter 'master_timeout'" - ], - "response": [] - }, - "enrich.stats": { - "request": [ - "Request: missing json spec query parameter 'master_timeout'" - ], - "response": [] - }, "eql.search": { "request": [ "Request: query parameter 'allow_no_indices' does not exist in the json spec", @@ -293,18 +166,6 @@ ], "response": [] }, - "features.get_features": { - "request": [ - "Request: missing json spec query parameter 'master_timeout'" - ], - "response": [] - }, - "features.reset_features": { - "request": [ - "Request: missing json spec query parameter 'master_timeout'" - ], - "response": [] - }, "fleet.delete_secret": { "request": [ "Missing request & response" @@ -329,12 +190,6 @@ ], "response": [] }, - "ilm.explain_lifecycle": { - "request": [ - "Request: query parameter 'timeout' does not exist in the json spec" - ], - "response": [] - }, "index": { "request": [ "Request: missing json spec query parameter 'require_data_stream'" @@ -362,8 +217,6 @@ }, "indices.field_usage_stats": { "request": [ - "Request: query parameter 'master_timeout' does not exist in the json spec", - "Request: query parameter 'timeout' does not exist in the json spec", "Request: query parameter 'wait_for_active_shards' does not exist in the json spec" ], "response": [] @@ -412,61 +265,20 @@ ], "response": [] }, - "ingest.get_geoip_database": { - "request": [ - "Request: query parameter 'master_timeout' does not exist in the json spec" - ], - "response": [] - }, "ingest.get_ip_location_database": { "request": [ "Request: query parameter 'master_timeout' does not exist in the json spec" ], "response": [] }, - "license.delete": { - "request": [ - "Request: missing json spec query parameter 'master_timeout'", - "Request: missing json spec query parameter 'timeout'" - ], - "response": [] - }, - "license.post": { - "request": [ - "Request: missing json spec query parameter 'master_timeout'", - "Request: missing json spec query parameter 'timeout'" - ], - "response": [] - }, - "license.post_start_basic": { - "request": [ - "Request: missing json spec query parameter 'master_timeout'", - "Request: missing json spec query parameter 'timeout'" - ], - "response": [] - }, "license.post_start_trial": { "request": [ "Request: query parameter 'type_query_string' does not exist in the json spec", "Request: missing json spec query parameter 'type'", - "Request: missing json spec query parameter 'master_timeout'", - "Request: missing json spec query parameter 'timeout'" - ], - "response": [] - }, - "ml.delete_trained_model": { - "request": [ "Request: missing json spec query parameter 'timeout'" ], "response": [] }, - "ml.get_memory_stats": { - "request": [ - "Request: query parameter 'human' does not exist in the json spec", - "request definition ml.get_memory_stats:Request / query - Property 'human' is already defined in an ancestor class" - ], - "response": [] - }, "ml.stop_datafeed": { "request": [ "Request: missing json spec query parameter 'allow_no_datafeeds'" @@ -484,24 +296,6 @@ ], "response": [] }, - "nodes.hot_threads": { - "request": [ - "Request: query parameter 'master_timeout' does not exist in the json spec" - ], - "response": [] - }, - "nodes.info": { - "request": [ - "Request: query parameter 'master_timeout' does not exist in the json spec" - ], - "response": [] - }, - "nodes.stats": { - "request": [ - "Request: query parameter 'master_timeout' does not exist in the json spec" - ], - "response": [] - }, "profiling.flamegraph": { "request": [ "Missing request & response" @@ -552,19 +346,9 @@ ], "response": [] }, - "search_shards": { - "request": [ - "Request: missing json spec query parameter 'master_timeout'" - ], - "response": [] - }, "searchable_snapshots.clear_cache": { "request": [ - "Request: query parameter 'pretty' does not exist in the json spec", - "Request: query parameter 'human' does not exist in the json spec", - "Request: missing json spec query parameter 'index'", - "request definition searchable_snapshots.clear_cache:Request / query - Property 'pretty' is already defined in an ancestor class", - "request definition searchable_snapshots.clear_cache:Request / query - Property 'human' is already defined in an ancestor class" + "Request: missing json spec query parameter 'index'" ], "response": [] }, @@ -607,12 +391,6 @@ ], "response": [] }, - "shutdown.get_node": { - "request": [ - "Request: query parameter 'timeout' does not exist in the json spec" - ], - "response": [] - }, "shutdown.put_node": { "request": [ "Request: query parameter 'master_timeout' does not exist in the json spec", @@ -626,12 +404,6 @@ ], "response": [] }, - "snapshot.clone": { - "request": [ - "Request: query parameter 'timeout' does not exist in the json spec" - ], - "response": [] - }, "snapshot.delete": { "request": [ "Request: missing json spec query parameter 'wait_for_completion'" @@ -644,12 +416,6 @@ ], "response": [] }, - "tasks.list": { - "request": [ - "Request: query parameter 'master_timeout' does not exist in the json spec" - ], - "response": [] - }, "transform.get_node_stats": { "request": [ "Missing request & response" @@ -663,12 +429,6 @@ "interface definition transform._types:SyncContainer - Property time is a single-variant and must be required" ] }, - "transform.reset_transform": { - "request": [ - "Request: missing json spec query parameter 'timeout'" - ], - "response": [] - }, "watcher.execute_watch": { "request": [ "interface definition watcher._types:TriggerContainer - Property schedule is a single-variant and must be required" @@ -683,18 +443,6 @@ ], "response": [] }, - "watcher.start": { - "request": [ - "Request: missing json spec query parameter 'master_timeout'" - ], - "response": [] - }, - "watcher.stop": { - "request": [ - "Request: missing json spec query parameter 'master_timeout'" - ], - "response": [] - }, "watcher.update_settings": { "request": [ "Missing request & response" diff --git a/output/typescript/types.ts b/output/typescript/types.ts index 001c39f55b..9a7d66a3df 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -1896,6 +1896,7 @@ export interface SearchShardsRequest extends RequestBase { expand_wildcards?: ExpandWildcards ignore_unavailable?: boolean local?: boolean + master_timeout?: Duration preference?: string routing?: Routing } @@ -8801,12 +8802,14 @@ export interface CcrShardStats { export interface CcrDeleteAutoFollowPatternRequest extends RequestBase { name: Name + master_timeout?: Duration } export type CcrDeleteAutoFollowPatternResponse = AcknowledgedResponseBase export interface CcrFollowRequest extends RequestBase { index: IndexName + master_timeout?: Duration wait_for_active_shards?: WaitForActiveShards body?: { data_stream_name?: string @@ -8857,6 +8860,7 @@ export type CcrFollowInfoFollowerIndexStatus = 'active' | 'paused' export interface CcrFollowInfoRequest extends RequestBase { index: Indices + master_timeout?: Duration } export interface CcrFollowInfoResponse { @@ -8865,6 +8869,7 @@ export interface CcrFollowInfoResponse { export interface CcrFollowStatsRequest extends RequestBase { index: Indices + timeout?: Duration } export interface CcrFollowStatsResponse { @@ -8873,6 +8878,7 @@ export interface CcrFollowStatsResponse { export interface CcrForgetFollowerRequest extends RequestBase { index: IndexName + timeout?: Duration body?: { follower_cluster?: string follower_index?: IndexName @@ -8901,6 +8907,7 @@ export interface CcrGetAutoFollowPatternAutoFollowPatternSummary { export interface CcrGetAutoFollowPatternRequest extends RequestBase { name?: Name + master_timeout?: Duration } export interface CcrGetAutoFollowPatternResponse { @@ -8909,18 +8916,21 @@ export interface CcrGetAutoFollowPatternResponse { export interface CcrPauseAutoFollowPatternRequest extends RequestBase { name: Name + master_timeout?: Duration } export type CcrPauseAutoFollowPatternResponse = AcknowledgedResponseBase export interface CcrPauseFollowRequest extends RequestBase { index: IndexName + master_timeout?: Duration } export type CcrPauseFollowResponse = AcknowledgedResponseBase export interface CcrPutAutoFollowPatternRequest extends RequestBase { name: Name + master_timeout?: Duration body?: { remote_cluster: string follow_index_pattern?: IndexPattern @@ -8944,12 +8954,14 @@ export type CcrPutAutoFollowPatternResponse = AcknowledgedResponseBase export interface CcrResumeAutoFollowPatternRequest extends RequestBase { name: Name + master_timeout?: Duration } export type CcrResumeAutoFollowPatternResponse = AcknowledgedResponseBase export interface CcrResumeFollowRequest extends RequestBase { index: IndexName + master_timeout?: Duration body?: { max_outstanding_read_requests?: long max_outstanding_write_requests?: long @@ -8985,6 +8997,8 @@ export interface CcrStatsFollowStats { } export interface CcrStatsRequest extends RequestBase { + master_timeout?: Duration + timeout?: Duration } export interface CcrStatsResponse { @@ -8994,6 +9008,7 @@ export interface CcrStatsResponse { export interface CcrUnfollowRequest extends RequestBase { index: IndexName + master_timeout?: Duration } export type CcrUnfollowResponse = AcknowledgedResponseBase @@ -9084,6 +9099,7 @@ export interface ClusterAllocationExplainNodeDiskUsage { export interface ClusterAllocationExplainRequest extends RequestBase { include_disk_info?: boolean include_yes_decisions?: boolean + master_timeout?: Duration body?: { current_node?: string index?: IndexName @@ -9148,6 +9164,7 @@ export interface ClusterDeleteComponentTemplateRequest extends RequestBase { export type ClusterDeleteComponentTemplateResponse = AcknowledgedResponseBase export interface ClusterDeleteVotingConfigExclusionsRequest extends RequestBase { + master_timeout?: Duration wait_for_removal?: boolean } @@ -9280,6 +9297,7 @@ export interface ClusterPendingTasksResponse { export interface ClusterPostVotingConfigExclusionsRequest extends RequestBase { node_names?: Names node_ids?: Ids + master_timeout?: Duration timeout?: Duration } @@ -10303,6 +10321,7 @@ export interface EnrichSummary { export interface EnrichDeletePolicyRequest extends RequestBase { name: Name + master_timeout?: Duration } export type EnrichDeletePolicyResponse = AcknowledgedResponseBase @@ -10315,6 +10334,7 @@ export interface EnrichExecutePolicyExecuteEnrichPolicyStatus { export interface EnrichExecutePolicyRequest extends RequestBase { name: Name + master_timeout?: Duration wait_for_completion?: boolean } @@ -10325,6 +10345,7 @@ export interface EnrichExecutePolicyResponse { export interface EnrichGetPolicyRequest extends RequestBase { name?: Names + master_timeout?: Duration } export interface EnrichGetPolicyResponse { @@ -10333,6 +10354,7 @@ export interface EnrichGetPolicyResponse { export interface EnrichPutPolicyRequest extends RequestBase { name: Name + master_timeout?: Duration body?: { geo_match?: EnrichPolicy match?: EnrichPolicy @@ -10367,6 +10389,7 @@ export interface EnrichStatsExecutingPolicy { } export interface EnrichStatsRequest extends RequestBase { + master_timeout?: Duration } export interface EnrichStatsResponse { @@ -10506,6 +10529,7 @@ export interface FeaturesFeature { } export interface FeaturesGetFeaturesRequest extends RequestBase { + master_timeout?: Duration } export interface FeaturesGetFeaturesResponse { @@ -10513,6 +10537,7 @@ export interface FeaturesGetFeaturesResponse { } export interface FeaturesResetFeaturesRequest extends RequestBase { + master_timeout?: Duration } export interface FeaturesResetFeaturesResponse { @@ -10864,7 +10889,6 @@ export interface IlmExplainLifecycleRequest extends RequestBase { only_errors?: boolean only_managed?: boolean master_timeout?: Duration - timeout?: Duration } export interface IlmExplainLifecycleResponse { @@ -11819,8 +11843,6 @@ export interface IndicesFieldUsageStatsRequest extends RequestBase { expand_wildcards?: ExpandWildcards ignore_unavailable?: boolean fields?: Fields - master_timeout?: Duration - timeout?: Duration wait_for_active_shards?: WaitForActiveShards } @@ -13434,7 +13456,6 @@ export interface IngestGetGeoipDatabaseDatabaseConfigurationMetadata { export interface IngestGetGeoipDatabaseRequest extends RequestBase { id?: Ids - master_timeout?: Duration } export interface IngestGetGeoipDatabaseResponse { @@ -13586,6 +13607,8 @@ export type LicenseLicenseStatus = 'active' | 'valid' | 'invalid' | 'expired' export type LicenseLicenseType = 'missing' | 'trial' | 'basic' | 'standard' | 'dev' | 'silver' | 'gold' | 'platinum' | 'enterprise' export interface LicenseDeleteRequest extends RequestBase { + master_timeout?: Duration + timeout?: Duration } export type LicenseDeleteResponse = AcknowledgedResponseBase @@ -13635,6 +13658,8 @@ export interface LicensePostAcknowledgement { export interface LicensePostRequest extends RequestBase { acknowledge?: boolean + master_timeout?: Duration + timeout?: Duration body?: { license?: LicenseLicense licenses?: LicenseLicense[] @@ -13649,6 +13674,8 @@ export interface LicensePostResponse { export interface LicensePostStartBasicRequest extends RequestBase { acknowledge?: boolean + master_timeout?: Duration + timeout?: Duration } export interface LicensePostStartBasicResponse { @@ -13662,6 +13689,7 @@ export interface LicensePostStartBasicResponse { export interface LicensePostStartTrialRequest extends RequestBase { acknowledge?: boolean type_query_string?: string + master_timeout?: Duration } export interface LicensePostStartTrialResponse { @@ -15178,6 +15206,7 @@ export type MlDeleteModelSnapshotResponse = AcknowledgedResponseBase export interface MlDeleteTrainedModelRequest extends RequestBase { model_id: Id force?: boolean + timeout?: Duration } export type MlDeleteTrainedModelResponse = AcknowledgedResponseBase @@ -15571,7 +15600,6 @@ export interface MlGetMemoryStatsMemory { export interface MlGetMemoryStatsRequest extends RequestBase { node_id?: Id - human?: boolean master_timeout?: Duration timeout?: Duration } @@ -16956,7 +16984,6 @@ export interface NodesHotThreadsRequest extends RequestBase { ignore_idle_threads?: boolean interval?: Duration snapshots?: long - master_timeout?: Duration threads?: long timeout?: Duration type?: ThreadType @@ -17318,7 +17345,6 @@ export interface NodesInfoRequest extends RequestBase { node_id?: NodeIds metric?: Metrics flat_settings?: boolean - master_timeout?: Duration timeout?: Duration } @@ -17354,7 +17380,6 @@ export interface NodesStatsRequest extends RequestBase { groups?: boolean include_segment_file_sizes?: boolean level?: Level - master_timeout?: Duration timeout?: Duration types?: string[] include_unloaded_segments?: boolean @@ -17834,8 +17859,6 @@ export interface SearchableSnapshotsClearCacheRequest extends RequestBase { expand_wildcards?: ExpandWildcards allow_no_indices?: boolean ignore_unavailable?: boolean - pretty?: boolean - human?: boolean } export type SearchableSnapshotsClearCacheResponse = any @@ -19098,7 +19121,6 @@ export interface ShutdownGetNodePluginsStatus { export interface ShutdownGetNodeRequest extends RequestBase { node_id?: NodeIds master_timeout?: TimeUnit - timeout?: TimeUnit } export interface ShutdownGetNodeResponse { @@ -19497,7 +19519,6 @@ export interface SnapshotCloneRequest extends RequestBase { snapshot: Name target_snapshot: Name master_timeout?: Duration - timeout?: Duration body?: { indices: string } @@ -19934,7 +19955,6 @@ export interface TasksListRequest extends RequestBase { group_by?: TasksGroupBy nodes?: NodeIds parent_task_id?: Id - master_timeout?: Duration timeout?: Duration wait_for_completion?: boolean } @@ -20311,6 +20331,7 @@ export type TransformPutTransformResponse = AcknowledgedResponseBase export interface TransformResetTransformRequest extends RequestBase { transform_id: Id force?: boolean + timeout?: Duration } export type TransformResetTransformResponse = AcknowledgedResponseBase @@ -21026,6 +21047,7 @@ export interface WatcherQueryWatchesResponse { } export interface WatcherStartRequest extends RequestBase { + master_timeout?: Duration } export type WatcherStartResponse = AcknowledgedResponseBase @@ -21068,6 +21090,7 @@ export interface WatcherStatsWatcherNodeStats { export type WatcherStatsWatcherState = 'stopped' | 'starting' | 'started' | 'stopping' export interface WatcherStopRequest extends RequestBase { + master_timeout?: Duration } export type WatcherStopResponse = AcknowledgedResponseBase diff --git a/specification/_global/search_shards/SearchShardsRequest.ts b/specification/_global/search_shards/SearchShardsRequest.ts index 55cfecbf64..64b6cb31ab 100644 --- a/specification/_global/search_shards/SearchShardsRequest.ts +++ b/specification/_global/search_shards/SearchShardsRequest.ts @@ -19,6 +19,7 @@ import { RequestBase } from '@_types/Base' import { ExpandWildcards, Indices, Routing } from '@_types/common' +import { Duration } from '@_types/Time' /** * Get the search shards. @@ -63,6 +64,11 @@ export interface Request extends RequestBase { * @server_default false */ local?: boolean + /** + * Period to wait for a connection to the master node. + * @server_default 30s + */ + master_timeout?: Duration /** * Specifies the node or shard the operation should be performed on. * Random by default. diff --git a/specification/ccr/delete_auto_follow_pattern/DeleteAutoFollowPatternRequest.ts b/specification/ccr/delete_auto_follow_pattern/DeleteAutoFollowPatternRequest.ts index 1453c767bc..38ef021cae 100644 --- a/specification/ccr/delete_auto_follow_pattern/DeleteAutoFollowPatternRequest.ts +++ b/specification/ccr/delete_auto_follow_pattern/DeleteAutoFollowPatternRequest.ts @@ -19,6 +19,7 @@ import { RequestBase } from '@_types/Base' import { Name } from '@_types/common' +import { Duration } from '@_types/Time' /** * Delete auto-follow patterns. @@ -32,4 +33,11 @@ export interface Request extends RequestBase { path_parts: { name: Name } + query_parameters: { + /** + * Period to wait for a connection to the master node. + * @server_default 30s + */ + master_timeout?: Duration + } } diff --git a/specification/ccr/follow/CreateFollowIndexRequest.ts b/specification/ccr/follow/CreateFollowIndexRequest.ts index 263774f597..ba97e71c56 100644 --- a/specification/ccr/follow/CreateFollowIndexRequest.ts +++ b/specification/ccr/follow/CreateFollowIndexRequest.ts @@ -39,6 +39,11 @@ export interface Request extends RequestBase { index: IndexName } query_parameters: { + /** + * Period to wait for a connection to the master node. + * @server_default 30s + */ + master_timeout?: Duration /** * Specifies the number of shards to wait on being active before responding. This defaults to waiting on none of the shards to be * active. diff --git a/specification/ccr/follow_info/FollowInfoRequest.ts b/specification/ccr/follow_info/FollowInfoRequest.ts index 3ebca0f259..27c0aef895 100644 --- a/specification/ccr/follow_info/FollowInfoRequest.ts +++ b/specification/ccr/follow_info/FollowInfoRequest.ts @@ -19,6 +19,7 @@ import { RequestBase } from '@_types/Base' import { Indices } from '@_types/common' +import { Duration } from '@_types/Time' /** * Get follower information. @@ -33,4 +34,11 @@ export interface Request extends RequestBase { path_parts: { index: Indices } + query_parameters: { + /** + * Period to wait for a connection to the master node. + * @server_default 30s + */ + master_timeout?: Duration + } } diff --git a/specification/ccr/follow_stats/FollowIndexStatsRequest.ts b/specification/ccr/follow_stats/FollowIndexStatsRequest.ts index 7009b5f220..676487c7fa 100644 --- a/specification/ccr/follow_stats/FollowIndexStatsRequest.ts +++ b/specification/ccr/follow_stats/FollowIndexStatsRequest.ts @@ -19,6 +19,7 @@ import { RequestBase } from '@_types/Base' import { Indices } from '@_types/common' +import { Duration } from '@_types/Time' /** * Get follower stats. @@ -33,4 +34,11 @@ export interface Request extends RequestBase { path_parts: { index: Indices } + query_parameters: { + /** + * Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. + * @server_default 30s + */ + timeout?: Duration + } } diff --git a/specification/ccr/forget_follower/ForgetFollowerIndexRequest.ts b/specification/ccr/forget_follower/ForgetFollowerIndexRequest.ts index 2293381615..88a71b994d 100644 --- a/specification/ccr/forget_follower/ForgetFollowerIndexRequest.ts +++ b/specification/ccr/forget_follower/ForgetFollowerIndexRequest.ts @@ -19,6 +19,7 @@ import { RequestBase } from '@_types/Base' import { IndexName, Uuid } from '@_types/common' +import { Duration } from '@_types/Time' /** * Forget a follower. @@ -42,6 +43,13 @@ export interface Request extends RequestBase { path_parts: { index: IndexName } + query_parameters: { + /** + * Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. + * @server_default 30s + */ + timeout?: Duration + } body: { follower_cluster?: string follower_index?: IndexName diff --git a/specification/ccr/get_auto_follow_pattern/GetAutoFollowPatternRequest.ts b/specification/ccr/get_auto_follow_pattern/GetAutoFollowPatternRequest.ts index 433e27f425..50ba1ce62e 100644 --- a/specification/ccr/get_auto_follow_pattern/GetAutoFollowPatternRequest.ts +++ b/specification/ccr/get_auto_follow_pattern/GetAutoFollowPatternRequest.ts @@ -19,6 +19,7 @@ import { RequestBase } from '@_types/Base' import { Name } from '@_types/common' +import { Duration } from '@_types/Time' /** * Get auto-follow patterns. @@ -33,4 +34,11 @@ export interface Request extends RequestBase { /** Specifies the auto-follow pattern collection that you want to retrieve. If you do not specify a name, the API returns information for all collections. */ name?: Name } + query_parameters: { + /** + * Period to wait for a connection to the master node. + * @server_default 30s + */ + master_timeout?: Duration + } } diff --git a/specification/ccr/pause_auto_follow_pattern/PauseAutoFollowPatternRequest.ts b/specification/ccr/pause_auto_follow_pattern/PauseAutoFollowPatternRequest.ts index e670093d4a..69ae39cec0 100644 --- a/specification/ccr/pause_auto_follow_pattern/PauseAutoFollowPatternRequest.ts +++ b/specification/ccr/pause_auto_follow_pattern/PauseAutoFollowPatternRequest.ts @@ -19,6 +19,7 @@ import { RequestBase } from '@_types/Base' import { Name } from '@_types/common' +import { Duration } from '@_types/Time' /** * Pause an auto-follow pattern. @@ -38,4 +39,11 @@ export interface Request extends RequestBase { path_parts: { name: Name } + query_parameters: { + /** + * Period to wait for a connection to the master node. + * @server_default 30s + */ + master_timeout?: Duration + } } diff --git a/specification/ccr/pause_follow/PauseFollowIndexRequest.ts b/specification/ccr/pause_follow/PauseFollowIndexRequest.ts index 6a8e642959..91f2a54d03 100644 --- a/specification/ccr/pause_follow/PauseFollowIndexRequest.ts +++ b/specification/ccr/pause_follow/PauseFollowIndexRequest.ts @@ -19,6 +19,7 @@ import { RequestBase } from '@_types/Base' import { IndexName } from '@_types/common' +import { Duration } from '@_types/Time' /** * Pause a follower. @@ -34,4 +35,11 @@ export interface Request extends RequestBase { path_parts: { index: IndexName } + query_parameters: { + /** + * Period to wait for a connection to the master node. + * @server_default 30s + */ + master_timeout?: Duration + } } diff --git a/specification/ccr/put_auto_follow_pattern/PutAutoFollowPatternRequest.ts b/specification/ccr/put_auto_follow_pattern/PutAutoFollowPatternRequest.ts index d61bbf73be..ac4319645b 100644 --- a/specification/ccr/put_auto_follow_pattern/PutAutoFollowPatternRequest.ts +++ b/specification/ccr/put_auto_follow_pattern/PutAutoFollowPatternRequest.ts @@ -44,6 +44,13 @@ export interface Request extends RequestBase { */ name: Name } + query_parameters: { + /** + * Period to wait for a connection to the master node. + * @server_default 30s + */ + master_timeout?: Duration + } body: { /** * The remote cluster containing the leader indices to match against. diff --git a/specification/ccr/resume_auto_follow_pattern/ResumeAutoFollowPatternRequest.ts b/specification/ccr/resume_auto_follow_pattern/ResumeAutoFollowPatternRequest.ts index 2fb24358f1..02ae33846b 100644 --- a/specification/ccr/resume_auto_follow_pattern/ResumeAutoFollowPatternRequest.ts +++ b/specification/ccr/resume_auto_follow_pattern/ResumeAutoFollowPatternRequest.ts @@ -19,6 +19,7 @@ import { RequestBase } from '@_types/Base' import { Name } from '@_types/common' +import { Duration } from '@_types/Time' /** * Resume an auto-follow pattern. @@ -34,4 +35,11 @@ export interface Request extends RequestBase { path_parts: { name: Name } + query_parameters: { + /** + * Period to wait for a connection to the master node. + * @server_default 30s + */ + master_timeout?: Duration + } } diff --git a/specification/ccr/resume_follow/ResumeFollowIndexRequest.ts b/specification/ccr/resume_follow/ResumeFollowIndexRequest.ts index adc86c0798..46ba0b9757 100644 --- a/specification/ccr/resume_follow/ResumeFollowIndexRequest.ts +++ b/specification/ccr/resume_follow/ResumeFollowIndexRequest.ts @@ -37,6 +37,13 @@ export interface Request extends RequestBase { path_parts: { index: IndexName } + query_parameters: { + /** + * Period to wait for a connection to the master node. + * @server_default 30s + */ + master_timeout?: Duration + } body: { max_outstanding_read_requests?: long max_outstanding_write_requests?: long diff --git a/specification/ccr/stats/CcrStatsRequest.ts b/specification/ccr/stats/CcrStatsRequest.ts index 280205ff97..e0a10215a8 100644 --- a/specification/ccr/stats/CcrStatsRequest.ts +++ b/specification/ccr/stats/CcrStatsRequest.ts @@ -18,6 +18,7 @@ */ import { RequestBase } from '@_types/Base' +import { Duration } from '@_types/Time' /** * Get cross-cluster replication stats. @@ -26,4 +27,17 @@ import { RequestBase } from '@_types/Base' * @availability stack since=6.5.0 stability=stable * @doc_id ccr-get-stats */ -export interface Request extends RequestBase {} +export interface Request extends RequestBase { + query_parameters: { + /** + * Period to wait for a connection to the master node. + * @server_default 30s + */ + master_timeout?: Duration + /** + * Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. + * @server_default 30s + */ + timeout?: Duration + } +} diff --git a/specification/ccr/unfollow/UnfollowIndexRequest.ts b/specification/ccr/unfollow/UnfollowIndexRequest.ts index 6913918463..d0e979f7b1 100644 --- a/specification/ccr/unfollow/UnfollowIndexRequest.ts +++ b/specification/ccr/unfollow/UnfollowIndexRequest.ts @@ -19,6 +19,7 @@ import { RequestBase } from '@_types/Base' import { IndexName } from '@_types/common' +import { Duration } from '@_types/Time' /** * Unfollow an index. @@ -36,4 +37,11 @@ export interface Request extends RequestBase { path_parts: { index: IndexName } + query_parameters: { + /** + * Period to wait for a connection to the master node. + * @server_default 30s + */ + master_timeout?: Duration + } } diff --git a/specification/cluster/allocation_explain/ClusterAllocationExplainRequest.ts b/specification/cluster/allocation_explain/ClusterAllocationExplainRequest.ts index f38a39db22..f79f4538bc 100644 --- a/specification/cluster/allocation_explain/ClusterAllocationExplainRequest.ts +++ b/specification/cluster/allocation_explain/ClusterAllocationExplainRequest.ts @@ -20,6 +20,7 @@ import { RequestBase } from '@_types/Base' import { IndexName } from '@_types/common' import { integer } from '@_types/Numeric' +import { Duration } from '@_types/Time' /** * Explain the shard allocations. @@ -44,6 +45,11 @@ export interface Request extends RequestBase { * @server_default false */ include_yes_decisions?: boolean + /** + * Period to wait for a connection to the master node. + * @server_default 30s + */ + master_timeout?: Duration } body: { /** diff --git a/specification/cluster/delete_voting_config_exclusions/ClusterDeleteVotingConfigExclusionsRequest.ts b/specification/cluster/delete_voting_config_exclusions/ClusterDeleteVotingConfigExclusionsRequest.ts index 3f181de67e..50c7a8d66e 100644 --- a/specification/cluster/delete_voting_config_exclusions/ClusterDeleteVotingConfigExclusionsRequest.ts +++ b/specification/cluster/delete_voting_config_exclusions/ClusterDeleteVotingConfigExclusionsRequest.ts @@ -18,6 +18,7 @@ */ import { RequestBase } from '@_types/Base' +import { Duration } from '@_types/Time' /** * Clear cluster voting config exclusions. @@ -29,6 +30,11 @@ import { RequestBase } from '@_types/Base' */ export interface Request extends RequestBase { query_parameters: { + /** + * Period to wait for a connection to the master node. + * @server_default 30s + */ + master_timeout?: Duration /** * Specifies whether to wait for all excluded nodes to be removed from the * cluster before clearing the voting configuration exclusions list. diff --git a/specification/cluster/post_voting_config_exclusions/ClusterPostVotingConfigExclusionsRequest.ts b/specification/cluster/post_voting_config_exclusions/ClusterPostVotingConfigExclusionsRequest.ts index 67421889c0..959c4af8ba 100644 --- a/specification/cluster/post_voting_config_exclusions/ClusterPostVotingConfigExclusionsRequest.ts +++ b/specification/cluster/post_voting_config_exclusions/ClusterPostVotingConfigExclusionsRequest.ts @@ -57,6 +57,11 @@ export interface Request extends RequestBase { * from the voting configuration. If specified, you may not also specify node_names. */ node_ids?: Ids + /** + * Period to wait for a connection to the master node. + * @server_default 30s + */ + master_timeout?: Duration /** * When adding a voting configuration exclusion, the API waits for the * specified nodes to be excluded from the voting configuration before diff --git a/specification/enrich/delete_policy/DeleteEnrichPolicyRequest.ts b/specification/enrich/delete_policy/DeleteEnrichPolicyRequest.ts index 1f46679bf0..8ccb249d8d 100644 --- a/specification/enrich/delete_policy/DeleteEnrichPolicyRequest.ts +++ b/specification/enrich/delete_policy/DeleteEnrichPolicyRequest.ts @@ -19,6 +19,7 @@ import { RequestBase } from '@_types/Base' import { Name } from '@_types/common' +import { Duration } from '@_types/Time' /** * Delete an enrich policy. @@ -34,4 +35,11 @@ export interface Request extends RequestBase { */ name: Name } + query_parameters: { + /** + * Period to wait for a connection to the master node. + * @server_default 30s + */ + master_timeout?: Duration + } } diff --git a/specification/enrich/execute_policy/ExecuteEnrichPolicyRequest.ts b/specification/enrich/execute_policy/ExecuteEnrichPolicyRequest.ts index 32095c8f3e..2be0d48a63 100644 --- a/specification/enrich/execute_policy/ExecuteEnrichPolicyRequest.ts +++ b/specification/enrich/execute_policy/ExecuteEnrichPolicyRequest.ts @@ -19,6 +19,7 @@ import { RequestBase } from '@_types/Base' import { Name } from '@_types/common' +import { Duration } from '@_types/Time' /** * Run an enrich policy. @@ -36,6 +37,11 @@ export interface Request extends RequestBase { name: Name } query_parameters: { + /** + * Period to wait for a connection to the master node. + * @server_default 30s + */ + master_timeout?: Duration /** * If `true`, the request blocks other enrich policy execution requests until complete. * @server_default true diff --git a/specification/enrich/get_policy/GetEnrichPolicyRequest.ts b/specification/enrich/get_policy/GetEnrichPolicyRequest.ts index bee0b8bbf8..df025b1416 100644 --- a/specification/enrich/get_policy/GetEnrichPolicyRequest.ts +++ b/specification/enrich/get_policy/GetEnrichPolicyRequest.ts @@ -19,6 +19,7 @@ import { RequestBase } from '@_types/Base' import { Names } from '@_types/common' +import { Duration } from '@_types/Time' /** * Get an enrich policy. @@ -35,4 +36,11 @@ export interface Request extends RequestBase { */ name?: Names } + query_parameters: { + /** + * Period to wait for a connection to the master node. + * @server_default 30s + */ + master_timeout?: Duration + } } diff --git a/specification/enrich/put_policy/PutEnrichPolicyRequest.ts b/specification/enrich/put_policy/PutEnrichPolicyRequest.ts index 0aee24f900..8fa742b2ee 100644 --- a/specification/enrich/put_policy/PutEnrichPolicyRequest.ts +++ b/specification/enrich/put_policy/PutEnrichPolicyRequest.ts @@ -20,6 +20,7 @@ import { Policy } from '@enrich/_types/Policy' import { RequestBase } from '@_types/Base' import { Name } from '@_types/common' +import { Duration } from '@_types/Time' /** * Create an enrich policy. @@ -36,6 +37,13 @@ export interface Request extends RequestBase { */ name: Name } + query_parameters: { + /** + * Period to wait for a connection to the master node. + * @server_default 30s + */ + master_timeout?: Duration + } body: { /** * Matches enrich data to incoming documents based on a `geo_shape` query. diff --git a/specification/enrich/stats/EnrichStatsRequest.ts b/specification/enrich/stats/EnrichStatsRequest.ts index f00bdc2efd..189c6429d7 100644 --- a/specification/enrich/stats/EnrichStatsRequest.ts +++ b/specification/enrich/stats/EnrichStatsRequest.ts @@ -18,6 +18,7 @@ */ import { RequestBase } from '@_types/Base' +import { Duration } from '@_types/Time' /** * Get enrich stats. @@ -26,4 +27,12 @@ import { RequestBase } from '@_types/Base' * @availability stack since=7.5.0 stability=stable * @availability serverless stability=stable visibility=private */ -export interface Request extends RequestBase {} +export interface Request extends RequestBase { + query_parameters: { + /** + * Period to wait for a connection to the master node. + * @server_default 30s + */ + master_timeout?: Duration + } +} diff --git a/specification/features/get_features/GetFeaturesRequest.ts b/specification/features/get_features/GetFeaturesRequest.ts index 533c11229b..509992db73 100644 --- a/specification/features/get_features/GetFeaturesRequest.ts +++ b/specification/features/get_features/GetFeaturesRequest.ts @@ -18,6 +18,7 @@ */ import { RequestBase } from '@_types/Base' +import { Duration } from '@_types/Time' /** * Get the features. @@ -34,4 +35,12 @@ import { RequestBase } from '@_types/Base' * @availability stack since=7.12.0 stability=stable * @ext_doc_id snapshot-create */ -export interface Request extends RequestBase {} +export interface Request extends RequestBase { + query_parameters: { + /** + * Period to wait for a connection to the master node. + * @server_default 30s + */ + master_timeout?: Duration + } +} diff --git a/specification/features/reset_features/ResetFeaturesRequest.ts b/specification/features/reset_features/ResetFeaturesRequest.ts index 4364a55ccf..a0eef89a73 100644 --- a/specification/features/reset_features/ResetFeaturesRequest.ts +++ b/specification/features/reset_features/ResetFeaturesRequest.ts @@ -18,6 +18,7 @@ */ import { RequestBase } from '@_types/Base' +import { Duration } from '@_types/Time' /** * Reset the features. @@ -41,4 +42,12 @@ import { RequestBase } from '@_types/Base' * @availability stack since=7.12.0 stability=experimental * @availability serverless stability=experimental visibility=private */ -export interface Request extends RequestBase {} +export interface Request extends RequestBase { + query_parameters: { + /** + * Period to wait for a connection to the master node. + * @server_default 30s + */ + master_timeout?: Duration + } +} diff --git a/specification/ilm/explain_lifecycle/ExplainLifecycleRequest.ts b/specification/ilm/explain_lifecycle/ExplainLifecycleRequest.ts index 7eacbdaf41..dcba3620bd 100644 --- a/specification/ilm/explain_lifecycle/ExplainLifecycleRequest.ts +++ b/specification/ilm/explain_lifecycle/ExplainLifecycleRequest.ts @@ -53,10 +53,5 @@ export interface Request extends RequestBase { * @server_default 30s */ master_timeout?: Duration - /** - * Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. - * @server_default 30s - */ - timeout?: Duration } } diff --git a/specification/ilm/start/StartIlmRequest.ts b/specification/ilm/start/StartIlmRequest.ts index aaa44be924..12a27e3aef 100644 --- a/specification/ilm/start/StartIlmRequest.ts +++ b/specification/ilm/start/StartIlmRequest.ts @@ -31,7 +31,15 @@ import { Duration } from '@_types/Time' */ export interface Request extends RequestBase { query_parameters: { + /** + * Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. + * @server_default 30s + */ master_timeout?: Duration + /** + * Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. + * @server_default 30s + */ timeout?: Duration } } diff --git a/specification/ilm/stop/StopIlmRequest.ts b/specification/ilm/stop/StopIlmRequest.ts index 3f20ae5795..2761540986 100644 --- a/specification/ilm/stop/StopIlmRequest.ts +++ b/specification/ilm/stop/StopIlmRequest.ts @@ -33,7 +33,15 @@ import { Duration } from '@_types/Time' */ export interface Request extends RequestBase { query_parameters: { + /** + * Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. + * @server_default 30s + */ master_timeout?: Duration + /** + * Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. + * @server_default 30s + */ timeout?: Duration } } diff --git a/specification/indices/field_usage_stats/IndicesFieldUsageStatsRequest.ts b/specification/indices/field_usage_stats/IndicesFieldUsageStatsRequest.ts index 139723d57f..e7bbe76741 100644 --- a/specification/indices/field_usage_stats/IndicesFieldUsageStatsRequest.ts +++ b/specification/indices/field_usage_stats/IndicesFieldUsageStatsRequest.ts @@ -24,7 +24,6 @@ import { Indices, WaitForActiveShards } from '@_types/common' -import { Duration } from '@_types/Time' /** * Get field usage stats. @@ -69,18 +68,6 @@ export interface Request extends RequestBase { * Comma-separated list or wildcard expressions of fields to include in the statistics. */ fields?: Fields - /** - * Period to wait for a connection to the master node. - * If no response is received before the timeout expires, the request fails and returns an error. - * @server_default 30s - */ - master_timeout?: Duration - /** - * Period to wait for a response. - * If no response is received before the timeout expires, the request fails and returns an error. - * @server_default 30s - */ - timeout?: Duration /** * The number of shard copies that must be active before proceeding with the operation. * Set to all or any positive integer up to the total number of shards in the index (`number_of_replicas+1`). diff --git a/specification/ingest/get_geoip_database/GetGeoipDatabaseRequest.ts b/specification/ingest/get_geoip_database/GetGeoipDatabaseRequest.ts index a3780949ae..5854167ffd 100644 --- a/specification/ingest/get_geoip_database/GetGeoipDatabaseRequest.ts +++ b/specification/ingest/get_geoip_database/GetGeoipDatabaseRequest.ts @@ -19,7 +19,6 @@ import { RequestBase } from '@_types/Base' import { Ids } from '@_types/common' -import { Duration } from '@_types/Time' /** * Get GeoIP database configurations. @@ -37,11 +36,4 @@ export interface Request extends RequestBase { */ id?: Ids } - query_parameters: { - /** - * Period to wait for a connection to the master node. - * If no response is received before the timeout expires, the request fails and returns an error. - * @server_default 30s */ - master_timeout?: Duration - } } diff --git a/specification/license/delete/DeleteLicenseRequest.ts b/specification/license/delete/DeleteLicenseRequest.ts index 2f432fecda..1f1ba63989 100644 --- a/specification/license/delete/DeleteLicenseRequest.ts +++ b/specification/license/delete/DeleteLicenseRequest.ts @@ -18,6 +18,7 @@ */ import { RequestBase } from '@_types/Base' +import { Duration } from '@_types/Time' /** * Delete the license. @@ -29,4 +30,17 @@ import { RequestBase } from '@_types/Base' * @cluster_privileges manage * @ext_doc_id license-management */ -export interface Request extends RequestBase {} +export interface Request extends RequestBase { + query_parameters: { + /** + * Period to wait for a connection to the master node. + * @server_default 30s + */ + master_timeout?: Duration + /** + * Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. + * @server_default 30s + */ + timeout?: Duration + } +} diff --git a/specification/license/post/PostLicenseRequest.ts b/specification/license/post/PostLicenseRequest.ts index bc7d0e89ca..8672884a54 100644 --- a/specification/license/post/PostLicenseRequest.ts +++ b/specification/license/post/PostLicenseRequest.ts @@ -19,6 +19,7 @@ import { License } from '@license/_types/License' import { RequestBase } from '@_types/Base' +import { Duration } from '@_types/Time' /** * Update the license. @@ -40,6 +41,16 @@ export interface Request extends RequestBase { * @server_default false */ acknowledge?: boolean + /** + * Period to wait for a connection to the master node. + * @server_default 30s + */ + master_timeout?: Duration + /** + * Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. + * @server_default 30s + */ + timeout?: Duration } body: { license?: License diff --git a/specification/license/post_start_basic/StartBasicLicenseRequest.ts b/specification/license/post_start_basic/StartBasicLicenseRequest.ts index 63339ddafb..210e92bfe8 100644 --- a/specification/license/post_start_basic/StartBasicLicenseRequest.ts +++ b/specification/license/post_start_basic/StartBasicLicenseRequest.ts @@ -18,6 +18,7 @@ */ import { RequestBase } from '@_types/Base' +import { Duration } from '@_types/Time' /** * Start a basic license. @@ -36,5 +37,15 @@ import { RequestBase } from '@_types/Base' export interface Request extends RequestBase { query_parameters: { acknowledge?: boolean + /** + * Period to wait for a connection to the master node. + * @server_default 30s + */ + master_timeout?: Duration + /** + * Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. + * @server_default 30s + */ + timeout?: Duration } } diff --git a/specification/license/post_start_trial/StartTrialLicenseRequest.ts b/specification/license/post_start_trial/StartTrialLicenseRequest.ts index 989ae9f846..31fb7a8886 100644 --- a/specification/license/post_start_trial/StartTrialLicenseRequest.ts +++ b/specification/license/post_start_trial/StartTrialLicenseRequest.ts @@ -18,6 +18,7 @@ */ import { RequestBase } from '@_types/Base' +import { Duration } from '@_types/Time' /** * Start a trial. @@ -36,5 +37,10 @@ export interface Request extends RequestBase { query_parameters: { acknowledge?: boolean type_query_string?: string + /** + * Period to wait for a connection to the master node. + * @server_default 30s + */ + master_timeout?: Duration } } diff --git a/specification/ml/delete_trained_model/MlDeleteTrainedModelRequest.ts b/specification/ml/delete_trained_model/MlDeleteTrainedModelRequest.ts index 4fe1de2ce7..d3036608cd 100644 --- a/specification/ml/delete_trained_model/MlDeleteTrainedModelRequest.ts +++ b/specification/ml/delete_trained_model/MlDeleteTrainedModelRequest.ts @@ -19,6 +19,7 @@ import { RequestBase } from '@_types/Base' import { Id } from '@_types/common' +import { Duration } from '@_types/Time' /** * Delete an unreferenced trained model. @@ -39,5 +40,10 @@ export interface Request extends RequestBase { query_parameters: { /** Forcefully deletes a trained model that is referenced by ingest pipelines or has a started deployment. **/ force?: boolean + /** + * Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. + * @server_default 30s + */ + timeout?: Duration } } diff --git a/specification/ml/get_memory_stats/MlGetMemoryStatsRequest.ts b/specification/ml/get_memory_stats/MlGetMemoryStatsRequest.ts index 100cba2f87..cc50332460 100644 --- a/specification/ml/get_memory_stats/MlGetMemoryStatsRequest.ts +++ b/specification/ml/get_memory_stats/MlGetMemoryStatsRequest.ts @@ -39,11 +39,6 @@ export interface Request extends RequestBase { node_id?: Id } query_parameters: { - /** - * Specify this query parameter to include the fields with units in the response. Otherwise only - * the `_in_bytes` sizes are returned in the response. - */ - human?: boolean /** * Period to wait for a connection to the master node. If no response is received before the timeout * expires, the request fails and returns an error. diff --git a/specification/nodes/hot_threads/NodesHotThreadsRequest.ts b/specification/nodes/hot_threads/NodesHotThreadsRequest.ts index 46ef45bb17..b8b3c8e5ea 100644 --- a/specification/nodes/hot_threads/NodesHotThreadsRequest.ts +++ b/specification/nodes/hot_threads/NodesHotThreadsRequest.ts @@ -57,13 +57,6 @@ export interface Request extends RequestBase { * @server_default 10 */ snapshots?: long - /** - * Period to wait for a connection to the master node. If no response - * is received before the timeout expires, the request fails and - * returns an error. - * @server_default 30s - */ - master_timeout?: Duration /** * Specifies the number of hot threads to provide information for. * @server_default 3 diff --git a/specification/nodes/info/NodesInfoRequest.ts b/specification/nodes/info/NodesInfoRequest.ts index 88c20e3b5e..b3ff497a24 100644 --- a/specification/nodes/info/NodesInfoRequest.ts +++ b/specification/nodes/info/NodesInfoRequest.ts @@ -43,11 +43,6 @@ export interface Request extends RequestBase { * @server_default false */ flat_settings?: boolean - /** - * Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. - * @server_default 30s - */ - master_timeout?: Duration /** * Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. * @server_default 30s diff --git a/specification/nodes/stats/NodesStatsRequest.ts b/specification/nodes/stats/NodesStatsRequest.ts index d349a4df7d..c64e9a3b1c 100644 --- a/specification/nodes/stats/NodesStatsRequest.ts +++ b/specification/nodes/stats/NodesStatsRequest.ts @@ -57,11 +57,6 @@ export interface Request extends RequestBase { include_segment_file_sizes?: boolean /** Indicates whether statistics are aggregated at the cluster, index, or shard level. */ level?: Level - /** - * Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. - * @server_default 30s - */ - master_timeout?: Duration /** * Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. * @server_default 30s diff --git a/specification/searchable_snapshots/clear_cache/SearchableSnapshotsClearCacheRequest.ts b/specification/searchable_snapshots/clear_cache/SearchableSnapshotsClearCacheRequest.ts index 5c50a67828..9a7487e4d9 100644 --- a/specification/searchable_snapshots/clear_cache/SearchableSnapshotsClearCacheRequest.ts +++ b/specification/searchable_snapshots/clear_cache/SearchableSnapshotsClearCacheRequest.ts @@ -36,7 +36,5 @@ export interface Request extends RequestBase { expand_wildcards?: ExpandWildcards allow_no_indices?: boolean ignore_unavailable?: boolean - pretty?: boolean - human?: boolean } } diff --git a/specification/shutdown/get_node/ShutdownGetNodeRequest.ts b/specification/shutdown/get_node/ShutdownGetNodeRequest.ts index 0cea4eb47b..fb381bcd9a 100644 --- a/specification/shutdown/get_node/ShutdownGetNodeRequest.ts +++ b/specification/shutdown/get_node/ShutdownGetNodeRequest.ts @@ -45,10 +45,5 @@ export interface Request extends RequestBase { * @server_default 30s */ master_timeout?: TimeUnit - /** - * Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. - * @server_default 30s - */ - timeout?: TimeUnit } } diff --git a/specification/snapshot/clone/SnapshotCloneRequest.ts b/specification/snapshot/clone/SnapshotCloneRequest.ts index 4141fb04b6..07bbd65b19 100644 --- a/specification/snapshot/clone/SnapshotCloneRequest.ts +++ b/specification/snapshot/clone/SnapshotCloneRequest.ts @@ -37,7 +37,6 @@ export interface Request extends RequestBase { } query_parameters: { master_timeout?: Duration - timeout?: Duration } body: { indices: string diff --git a/specification/tasks/list/ListTasksRequest.ts b/specification/tasks/list/ListTasksRequest.ts index 63fb774595..9f49d26d0a 100644 --- a/specification/tasks/list/ListTasksRequest.ts +++ b/specification/tasks/list/ListTasksRequest.ts @@ -55,11 +55,6 @@ export interface Request extends RequestBase { * Parent task ID used to limit returned information. To return all tasks, omit this parameter or use a value of `-1`. */ parent_task_id?: Id - /** - * Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. - * @server_default 30s - */ - master_timeout?: Duration /** * Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. * @server_default 30s diff --git a/specification/transform/reset_transform/ResetTransformRequest.ts b/specification/transform/reset_transform/ResetTransformRequest.ts index 5dc089b75b..4b1f026825 100644 --- a/specification/transform/reset_transform/ResetTransformRequest.ts +++ b/specification/transform/reset_transform/ResetTransformRequest.ts @@ -19,6 +19,7 @@ import { RequestBase } from '@_types/Base' import { Id } from '@_types/common' +import { Duration } from '@_types/Time' /** * Reset a transform. @@ -45,5 +46,10 @@ export interface Request extends RequestBase { * @server_default false */ force?: boolean + /** + * Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. + * @server_default 30s + */ + timeout?: Duration } } diff --git a/specification/watcher/start/WatcherStartRequest.ts b/specification/watcher/start/WatcherStartRequest.ts index 3d7528bd4b..63e2a6d0c0 100644 --- a/specification/watcher/start/WatcherStartRequest.ts +++ b/specification/watcher/start/WatcherStartRequest.ts @@ -18,6 +18,7 @@ */ import { RequestBase } from '@_types/Base' +import { Duration } from '@_types/Time' /** * Start the watch service. @@ -26,4 +27,12 @@ import { RequestBase } from '@_types/Base' * @availability stack stability=stable * @cluster_privileges manage_watcher */ -export interface Request extends RequestBase {} +export interface Request extends RequestBase { + query_parameters: { + /** + * Period to wait for a connection to the master node. + * @server_default 30s + */ + master_timeout?: Duration + } +} diff --git a/specification/watcher/stop/WatcherStopRequest.ts b/specification/watcher/stop/WatcherStopRequest.ts index 1560c387d0..ba8d031c36 100644 --- a/specification/watcher/stop/WatcherStopRequest.ts +++ b/specification/watcher/stop/WatcherStopRequest.ts @@ -18,6 +18,7 @@ */ import { RequestBase } from '@_types/Base' +import { Duration } from '@_types/Time' /** * Stop the watch service. @@ -26,4 +27,12 @@ import { RequestBase } from '@_types/Base' * @availability stack stability=stable * @cluster_privileges manage_watcher */ -export interface Request extends RequestBase {} +export interface Request extends RequestBase { + query_parameters: { + /** + * Period to wait for a connection to the master node. + * @server_default 30s + */ + master_timeout?: Duration + } +}