diff --git a/output/openapi/elasticsearch-openapi.json b/output/openapi/elasticsearch-openapi.json index bf5782a0c6..c4a7d710b4 100644 --- a/output/openapi/elasticsearch-openapi.json +++ b/output/openapi/elasticsearch-openapi.json @@ -4252,6 +4252,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" } @@ -4280,6 +4283,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" } @@ -109864,6 +109870,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 6ecb7e0b42..00d79d3c6c 100644 --- a/output/openapi/elasticsearch-serverless-openapi.json +++ b/output/openapi/elasticsearch-serverless-openapi.json @@ -1664,6 +1664,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" } @@ -1692,6 +1695,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" } @@ -66344,6 +66350,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 7d258e4ec4..653b5ba9c4 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -122415,6 +122415,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", @@ -122429,7 +122442,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 ea1254330e..45264aa46f 100644 --- a/output/schema/validation-errors.json +++ b/output/schema/validation-errors.json @@ -172,6 +172,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 7ca07b927d..8eeddaea1b 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -9620,6 +9620,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.