diff --git a/output/openapi/elasticsearch-openapi.json b/output/openapi/elasticsearch-openapi.json index 4d9b7c4d0e..b2ac01c381 100644 --- a/output/openapi/elasticsearch-openapi.json +++ b/output/openapi/elasticsearch-openapi.json @@ -70267,6 +70267,9 @@ "name": { "$ref": "#/components/schemas/_types:Name" }, + "roles": { + "$ref": "#/components/schemas/_types:NodeRoles" + }, "attributes": { "type": "object", "additionalProperties": { @@ -70283,11 +70286,38 @@ "required": [ "id", "name", + "roles", "attributes", "transport_address", "weight_ranking" ] }, + "_types:NodeRoles": { + "description": "* @doc_id node-roles", + "type": "array", + "items": { + "$ref": "#/components/schemas/_types:NodeRole" + } + }, + "_types:NodeRole": { + "type": "string", + "enum": [ + "master", + "data", + "data_cold", + "data_content", + "data_frozen", + "data_hot", + "data_warm", + "client", + "ingest", + "ml", + "voting_only", + "transform", + "remote_cluster_client", + "coordinating_only" + ] + }, "_types:TransportAddress": { "type": "string" }, @@ -70315,6 +70345,9 @@ "node_name": { "$ref": "#/components/schemas/_types:Name" }, + "roles": { + "$ref": "#/components/schemas/_types:NodeRoles" + }, "store": { "$ref": "#/components/schemas/cluster.allocation_explain:AllocationStore" }, @@ -70331,6 +70364,7 @@ "node_decision", "node_id", "node_name", + "roles", "transport_address", "weight_ranking" ] @@ -94719,32 +94753,6 @@ "refresh_interval_in_millis" ] }, - "_types:NodeRoles": { - "description": "* @doc_id node-roles", - "type": "array", - "items": { - "$ref": "#/components/schemas/_types:NodeRole" - } - }, - "_types:NodeRole": { - "type": "string", - "enum": [ - "master", - "data", - "data_cold", - "data_content", - "data_frozen", - "data_hot", - "data_warm", - "client", - "ingest", - "ml", - "voting_only", - "transform", - "remote_cluster_client", - "coordinating_only" - ] - }, "nodes.info:NodeInfoSettings": { "type": "object", "properties": { diff --git a/output/schema/schema-serverless.json b/output/schema/schema-serverless.json index f1df4f49f7..18d56d754f 100644 --- a/output/schema/schema-serverless.json +++ b/output/schema/schema-serverless.json @@ -90416,7 +90416,7 @@ "name": "AllocationExplainDecision", "namespace": "cluster.allocation_explain" }, - "specLocation": "cluster/allocation_explain/types.ts#L32-L37" + "specLocation": "cluster/allocation_explain/types.ts#L33-L38" }, { "kind": "enum", @@ -90450,7 +90450,7 @@ "name": "Decision", "namespace": "cluster.allocation_explain" }, - "specLocation": "cluster/allocation_explain/types.ts#L86-L95" + "specLocation": "cluster/allocation_explain/types.ts#L92-L101" }, { "kind": "enum", @@ -90505,7 +90505,7 @@ "name": "UnassignedInformationReason", "namespace": "cluster.allocation_explain" }, - "specLocation": "cluster/allocation_explain/types.ts#L127-L146" + "specLocation": "cluster/allocation_explain/types.ts#L138-L157" }, { "kind": "type_alias", diff --git a/output/schema/schema.json b/output/schema/schema.json index ed3b4f523c..781a64b48c 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -103148,7 +103148,7 @@ } } ], - "specLocation": "cluster/allocation_explain/types.ts#L26-L30" + "specLocation": "cluster/allocation_explain/types.ts#L27-L31" }, { "kind": "enum", @@ -103170,7 +103170,7 @@ "name": "AllocationExplainDecision", "namespace": "cluster.allocation_explain" }, - "specLocation": "cluster/allocation_explain/types.ts#L32-L37" + "specLocation": "cluster/allocation_explain/types.ts#L33-L38" }, { "kind": "interface", @@ -103246,7 +103246,7 @@ } } ], - "specLocation": "cluster/allocation_explain/types.ts#L39-L46" + "specLocation": "cluster/allocation_explain/types.ts#L40-L47" }, { "kind": "interface", @@ -103358,7 +103358,7 @@ } } ], - "specLocation": "cluster/allocation_explain/types.ts#L48-L54" + "specLocation": "cluster/allocation_explain/types.ts#L49-L55" }, { "kind": "interface", @@ -103389,6 +103389,24 @@ } } }, + { + "availability": { + "serverless": {}, + "stack": { + "since": "8.11.0", + "stability": "stable" + } + }, + "name": "roles", + "required": true, + "type": { + "kind": "instance_of", + "type": { + "name": "NodeRoles", + "namespace": "_types" + } + } + }, { "name": "attributes", "required": true, @@ -103434,7 +103452,7 @@ } } ], - "specLocation": "cluster/allocation_explain/types.ts#L78-L84" + "specLocation": "cluster/allocation_explain/types.ts#L79-L90" }, { "kind": "enum", @@ -103468,7 +103486,7 @@ "name": "Decision", "namespace": "cluster.allocation_explain" }, - "specLocation": "cluster/allocation_explain/types.ts#L86-L95" + "specLocation": "cluster/allocation_explain/types.ts#L92-L101" }, { "kind": "interface", @@ -103544,7 +103562,7 @@ } } ], - "specLocation": "cluster/allocation_explain/types.ts#L62-L69" + "specLocation": "cluster/allocation_explain/types.ts#L63-L70" }, { "kind": "interface", @@ -103622,6 +103640,24 @@ } } }, + { + "availability": { + "serverless": {}, + "stack": { + "since": "8.11.0", + "stability": "stable" + } + }, + "name": "roles", + "required": true, + "type": { + "kind": "instance_of", + "type": { + "name": "NodeRoles", + "namespace": "_types" + } + } + }, { "name": "store", "required": false, @@ -103656,7 +103692,7 @@ } } ], - "specLocation": "cluster/allocation_explain/types.ts#L97-L106" + "specLocation": "cluster/allocation_explain/types.ts#L103-L117" }, { "kind": "interface", @@ -103699,7 +103735,7 @@ } } ], - "specLocation": "cluster/allocation_explain/types.ts#L56-L60" + "specLocation": "cluster/allocation_explain/types.ts#L57-L61" }, { "kind": "request", @@ -103856,7 +103892,7 @@ } } ], - "specLocation": "cluster/allocation_explain/types.ts#L71-L76" + "specLocation": "cluster/allocation_explain/types.ts#L72-L77" }, { "kind": "response", @@ -104273,7 +104309,7 @@ } } ], - "specLocation": "cluster/allocation_explain/types.ts#L117-L125" + "specLocation": "cluster/allocation_explain/types.ts#L128-L136" }, { "kind": "enum", @@ -104328,7 +104364,7 @@ "name": "UnassignedInformationReason", "namespace": "cluster.allocation_explain" }, - "specLocation": "cluster/allocation_explain/types.ts#L127-L146" + "specLocation": "cluster/allocation_explain/types.ts#L138-L157" }, { "kind": "request", diff --git a/output/typescript/types.ts b/output/typescript/types.ts index 02aac32cdf..0504cb7c33 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -8872,6 +8872,7 @@ export interface ClusterAllocationExplainClusterInfo { export interface ClusterAllocationExplainCurrentNode { id: Id name: Name + roles: NodeRoles attributes: Record transport_address: TransportAddress weight_ranking: integer @@ -8894,6 +8895,7 @@ export interface ClusterAllocationExplainNodeAllocationExplanation { node_decision: ClusterAllocationExplainDecision node_id: Id node_name: Name + roles: NodeRoles store?: ClusterAllocationExplainAllocationStore transport_address: TransportAddress weight_ranking: integer diff --git a/specification/cluster/allocation_explain/types.ts b/specification/cluster/allocation_explain/types.ts index fd8ad8aca6..02a090e1c3 100644 --- a/specification/cluster/allocation_explain/types.ts +++ b/specification/cluster/allocation_explain/types.ts @@ -20,6 +20,7 @@ import { Dictionary } from '@spec_utils/Dictionary' import { Id, Name } from '@_types/common' import { TransportAddress } from '@_types/Networking' +import { NodeRoles } from '@_types/Node' import { double, integer, long } from '@_types/Numeric' import { DateTime } from '@_types/Time' @@ -78,6 +79,11 @@ export class ReservedSize { export class CurrentNode { id: Id name: Name + /** + * @availability stack since=8.11.0 stability=stable + * @availability serverless + */ + roles: NodeRoles attributes: Dictionary transport_address: TransportAddress weight_ranking: integer @@ -100,6 +106,11 @@ export class NodeAllocationExplanation { node_decision: Decision node_id: Id node_name: Name + /** + * @availability stack since=8.11.0 stability=stable + * @availability serverless + */ + roles: NodeRoles store?: AllocationStore transport_address: TransportAddress weight_ranking: integer