diff --git a/output/openapi/elasticsearch-openapi.json b/output/openapi/elasticsearch-openapi.json index 7ec1b54c88..aadbbe6df3 100644 --- a/output/openapi/elasticsearch-openapi.json +++ b/output/openapi/elasticsearch-openapi.json @@ -4365,6 +4365,9 @@ { "$ref": "#/components/parameters/cluster.put_component_template-create" }, + { + "$ref": "#/components/parameters/cluster.put_component_template-cause" + }, { "$ref": "#/components/parameters/cluster.put_component_template-master_timeout" } @@ -4394,6 +4397,9 @@ { "$ref": "#/components/parameters/cluster.put_component_template-create" }, + { + "$ref": "#/components/parameters/cluster.put_component_template-cause" + }, { "$ref": "#/components/parameters/cluster.put_component_template-master_timeout" } @@ -110531,6 +110537,16 @@ }, "style": "form" }, + "cluster.put_component_template-cause": { + "in": "query", + "name": "cause", + "description": "User defined reason for create the component template.", + "deprecated": false, + "schema": { + "type": "string" + }, + "style": "form" + }, "cluster.put_component_template-master_timeout": { "in": "query", "name": "master_timeout", diff --git a/output/openapi/elasticsearch-serverless-openapi.json b/output/openapi/elasticsearch-serverless-openapi.json index 332de0ea79..12c3be401b 100644 --- a/output/openapi/elasticsearch-serverless-openapi.json +++ b/output/openapi/elasticsearch-serverless-openapi.json @@ -1710,6 +1710,9 @@ { "$ref": "#/components/parameters/cluster.put_component_template-create" }, + { + "$ref": "#/components/parameters/cluster.put_component_template-cause" + }, { "$ref": "#/components/parameters/cluster.put_component_template-master_timeout" } @@ -1739,6 +1742,9 @@ { "$ref": "#/components/parameters/cluster.put_component_template-create" }, + { + "$ref": "#/components/parameters/cluster.put_component_template-cause" + }, { "$ref": "#/components/parameters/cluster.put_component_template-master_timeout" } @@ -66644,6 +66650,16 @@ }, "style": "form" }, + "cluster.put_component_template-cause": { + "in": "query", + "name": "cause", + "description": "User defined reason for create the component template.", + "deprecated": false, + "schema": { + "type": "string" + }, + "style": "form" + }, "cluster.put_component_template-master_timeout": { "in": "query", "name": "master_timeout", diff --git a/output/schema/schema.json b/output/schema/schema.json index 4db2409248..433ae4fe1d 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -122199,6 +122199,19 @@ } } }, + { + "description": "User defined reason for create the component template.", + "name": "cause", + "required": false, + "serverDefault": "api", + "type": { + "kind": "instance_of", + "type": { + "name": "string", + "namespace": "_builtins" + } + } + }, { "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", @@ -122213,7 +122226,7 @@ } } ], - "specLocation": "cluster/put_component_template/ClusterPutComponentTemplateRequest.ts#L25-L105" + "specLocation": "cluster/put_component_template/ClusterPutComponentTemplateRequest.ts#L25-L110" }, { "kind": "response", diff --git a/output/schema/validation-errors.json b/output/schema/validation-errors.json index b32adeb015..be5ae53f93 100644 --- a/output/schema/validation-errors.json +++ b/output/schema/validation-errors.json @@ -15,6 +15,7 @@ }, "cluster.put_component_template": { "request": [ + "Request: query parameter 'cause' does not exist in the json spec", "Request: missing json spec query parameter 'timeout'" ], "response": [] diff --git a/output/typescript/types.ts b/output/typescript/types.ts index 67759da2e3..f805a89d3b 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -9578,6 +9578,7 @@ export type ClusterPostVotingConfigExclusionsResponse = boolean export interface ClusterPutComponentTemplateRequest extends RequestBase { name: Name create?: boolean + cause?: string master_timeout?: Duration body?: { template: IndicesIndexState diff --git a/specification/cluster/put_component_template/ClusterPutComponentTemplateRequest.ts b/specification/cluster/put_component_template/ClusterPutComponentTemplateRequest.ts index cf84753855..4701e5cadb 100644 --- a/specification/cluster/put_component_template/ClusterPutComponentTemplateRequest.ts +++ b/specification/cluster/put_component_template/ClusterPutComponentTemplateRequest.ts @@ -72,6 +72,11 @@ export interface Request extends RequestBase { * If `true`, this request cannot replace or update existing component templates. * @server_default false */ create?: boolean + /** + * User defined reason for create the component template. + * @server_default api + */ + cause?: string /** * 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.