diff --git a/output/openapi/elasticsearch-openapi.json b/output/openapi/elasticsearch-openapi.json index 58efb1d883..3a9dec8c5f 100644 --- a/output/openapi/elasticsearch-openapi.json +++ b/output/openapi/elasticsearch-openapi.json @@ -482,6 +482,16 @@ "$ref": "#/components/schemas/_types:Name" }, "style": "simple" + }, + { + "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" } ], "responses": { @@ -519,6 +529,26 @@ "$ref": "#/components/schemas/_types:Name" }, "style": "simple" + }, + { + "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. 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": { @@ -566,6 +596,26 @@ "$ref": "#/components/schemas/_types:Name" }, "style": "simple" + }, + { + "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. 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": { @@ -594,6 +644,18 @@ "url": "https://www.elastic.co/guide/en/cloud/current/ec-autoscaling.html" }, "operationId": "autoscaling-get-autoscaling-capacity", + "parameters": [ + { + "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" + } + ], "responses": { "200": { "description": "", diff --git a/output/schema/schema.json b/output/schema/schema.json index c722ce7568..8bab6eef67 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -88808,8 +88808,35 @@ } } ], - "query": [], - "specLocation": "autoscaling/delete_autoscaling_policy/DeleteAutoscalingPolicyRequest.ts#L23-L36" + "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" + } + } + }, + { + "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": "autoscaling/delete_autoscaling_policy/DeleteAutoscalingPolicyRequest.ts#L24-L48" }, { "kind": "response", @@ -89041,8 +89068,22 @@ "namespace": "autoscaling.get_autoscaling_capacity" }, "path": [], - "query": [], - "specLocation": "autoscaling/get_autoscaling_capacity/GetAutoscalingCapacityRequest.ts#L22-L42" + "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": "autoscaling/get_autoscaling_capacity/GetAutoscalingCapacityRequest.ts#L23-L51" }, { "kind": "response", @@ -89112,8 +89153,22 @@ } } ], - "query": [], - "specLocation": "autoscaling/get_autoscaling_policy/GetAutoscalingPolicyRequest.ts#L23-L36" + "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": "autoscaling/get_autoscaling_policy/GetAutoscalingPolicyRequest.ts#L24-L44" }, { "kind": "response", @@ -89174,8 +89229,35 @@ } } ], - "query": [], - "specLocation": "autoscaling/put_autoscaling_policy/PutAutoscalingPolicyRequest.ts#L24-L39" + "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" + } + } + }, + { + "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": "autoscaling/put_autoscaling_policy/PutAutoscalingPolicyRequest.ts#L25-L51" }, { "kind": "response", diff --git a/output/schema/validation-errors.json b/output/schema/validation-errors.json index 8fd060be7a..b2b561784c 100644 --- a/output/schema/validation-errors.json +++ b/output/schema/validation-errors.json @@ -66,32 +66,6 @@ ], "response": [] }, - "autoscaling.delete_autoscaling_policy": { - "request": [ - "Request: missing json spec query parameter 'master_timeout'", - "Request: missing json spec query parameter 'timeout'" - ], - "response": [] - }, - "autoscaling.get_autoscaling_capacity": { - "request": [ - "Request: missing json spec query parameter 'master_timeout'" - ], - "response": [] - }, - "autoscaling.get_autoscaling_policy": { - "request": [ - "Request: missing json spec query parameter 'master_timeout'" - ], - "response": [] - }, - "autoscaling.put_autoscaling_policy": { - "request": [ - "Request: missing json spec query parameter 'master_timeout'", - "Request: missing json spec query parameter 'timeout'" - ], - "response": [] - }, "bulk": { "request": [ "Request: missing json spec query parameter 'type'", diff --git a/output/typescript/types.ts b/output/typescript/types.ts index d94f097d5e..6aa988b8c5 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -6840,6 +6840,8 @@ export interface AutoscalingAutoscalingPolicy { export interface AutoscalingDeleteAutoscalingPolicyRequest extends RequestBase { name: Name + master_timeout?: Duration + timeout?: Duration } export type AutoscalingDeleteAutoscalingPolicyResponse = AcknowledgedResponseBase @@ -6872,6 +6874,7 @@ export interface AutoscalingGetAutoscalingCapacityAutoscalingResources { } export interface AutoscalingGetAutoscalingCapacityRequest extends RequestBase { + master_timeout?: Duration } export interface AutoscalingGetAutoscalingCapacityResponse { @@ -6880,12 +6883,15 @@ export interface AutoscalingGetAutoscalingCapacityResponse { export interface AutoscalingGetAutoscalingPolicyRequest extends RequestBase { name: Name + master_timeout?: Duration } export type AutoscalingGetAutoscalingPolicyResponse = AutoscalingAutoscalingPolicy export interface AutoscalingPutAutoscalingPolicyRequest extends RequestBase { name: Name + master_timeout?: Duration + timeout?: Duration body?: AutoscalingAutoscalingPolicy } diff --git a/specification/autoscaling/delete_autoscaling_policy/DeleteAutoscalingPolicyRequest.ts b/specification/autoscaling/delete_autoscaling_policy/DeleteAutoscalingPolicyRequest.ts index f0764cf92d..e196824d24 100644 --- a/specification/autoscaling/delete_autoscaling_policy/DeleteAutoscalingPolicyRequest.ts +++ b/specification/autoscaling/delete_autoscaling_policy/DeleteAutoscalingPolicyRequest.ts @@ -19,6 +19,7 @@ import { RequestBase } from '@_types/Base' import { Name } from '@_types/common' +import { Duration } from '@_types/Time' /** * Delete an autoscaling policy. @@ -33,4 +34,15 @@ export interface Request extends RequestBase { path_parts: { name: Name } + 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/autoscaling/get_autoscaling_capacity/GetAutoscalingCapacityRequest.ts b/specification/autoscaling/get_autoscaling_capacity/GetAutoscalingCapacityRequest.ts index 0af9f01e07..866ef4fff1 100644 --- a/specification/autoscaling/get_autoscaling_capacity/GetAutoscalingCapacityRequest.ts +++ b/specification/autoscaling/get_autoscaling_capacity/GetAutoscalingCapacityRequest.ts @@ -18,6 +18,7 @@ */ import { RequestBase } from '@_types/Base' +import { Duration } from '@_types/Time' /** * Get the autoscaling capacity. @@ -39,4 +40,12 @@ import { RequestBase } from '@_types/Base' * @doc_id autoscaling-get-autoscaling-capacity * @ext_doc_id autoscaling */ -export interface Request extends RequestBase {} +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 + } +} diff --git a/specification/autoscaling/get_autoscaling_policy/GetAutoscalingPolicyRequest.ts b/specification/autoscaling/get_autoscaling_policy/GetAutoscalingPolicyRequest.ts index 01ded9d9ce..610fa96825 100644 --- a/specification/autoscaling/get_autoscaling_policy/GetAutoscalingPolicyRequest.ts +++ b/specification/autoscaling/get_autoscaling_policy/GetAutoscalingPolicyRequest.ts @@ -19,6 +19,7 @@ import { RequestBase } from '@_types/Base' import { Name } from '@_types/common' +import { Duration } from '@_types/Time' /** * Get an autoscaling policy. @@ -33,4 +34,11 @@ export interface Request extends RequestBase { path_parts: { name: Name } + 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/autoscaling/put_autoscaling_policy/PutAutoscalingPolicyRequest.ts b/specification/autoscaling/put_autoscaling_policy/PutAutoscalingPolicyRequest.ts index 03b1a4f115..85c0bb0220 100644 --- a/specification/autoscaling/put_autoscaling_policy/PutAutoscalingPolicyRequest.ts +++ b/specification/autoscaling/put_autoscaling_policy/PutAutoscalingPolicyRequest.ts @@ -20,6 +20,7 @@ import { AutoscalingPolicy } from '@autoscaling/_types/AutoscalingPolicy' import { RequestBase } from '@_types/Base' import { Name } from '@_types/common' +import { Duration } from '@_types/Time' /** * Create or update an autoscaling policy. @@ -34,6 +35,17 @@ export interface Request extends RequestBase { path_parts: { name: Name } + 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 + } /** @codegen_name policy */ body: AutoscalingPolicy }