From 0d745ee9b8e0c7c2a705be37dc2b09e3032dca00 Mon Sep 17 00:00:00 2001 From: Quentin Pradet Date: Thu, 20 Feb 2025 14:39:22 +0400 Subject: [PATCH 1/4] Revert "uppercase enum source mode (#3676)" This reverts commit 94e5ff9eb25866b034e997beec7bffd5c3f12ae6. --- output/openapi/elasticsearch-openapi.json | 6 +++--- output/openapi/elasticsearch-serverless-openapi.json | 6 +++--- output/schema/schema-serverless.json | 6 +++--- output/schema/schema.json | 6 +++--- output/typescript/types.ts | 2 +- specification/indices/_types/IndexSettings.ts | 6 +++--- 6 files changed, 16 insertions(+), 16 deletions(-) diff --git a/output/openapi/elasticsearch-openapi.json b/output/openapi/elasticsearch-openapi.json index 5b55f5c812..cc81962f89 100644 --- a/output/openapi/elasticsearch-openapi.json +++ b/output/openapi/elasticsearch-openapi.json @@ -62215,9 +62215,9 @@ "indices._types:SourceMode": { "type": "string", "enum": [ - "DISABLED", - "STORED", - "SYNTHETIC" + "disabled", + "stored", + "synthetic" ] }, "indices._types:IndexingSlowlogSettings": { diff --git a/output/openapi/elasticsearch-serverless-openapi.json b/output/openapi/elasticsearch-serverless-openapi.json index fb602e518e..218ea263c3 100644 --- a/output/openapi/elasticsearch-serverless-openapi.json +++ b/output/openapi/elasticsearch-serverless-openapi.json @@ -40787,9 +40787,9 @@ "indices._types:SourceMode": { "type": "string", "enum": [ - "DISABLED", - "STORED", - "SYNTHETIC" + "disabled", + "stored", + "synthetic" ] }, "indices._types:IndexingSlowlogSettings": { diff --git a/output/schema/schema-serverless.json b/output/schema/schema-serverless.json index 9993ed3ef3..282b688ac0 100644 --- a/output/schema/schema-serverless.json +++ b/output/schema/schema-serverless.json @@ -97027,13 +97027,13 @@ "kind": "enum", "members": [ { - "name": "DISABLED" + "name": "disabled" }, { - "name": "STORED" + "name": "stored" }, { - "name": "SYNTHETIC" + "name": "synthetic" } ], "name": { diff --git a/output/schema/schema.json b/output/schema/schema.json index 06b1811a44..613513b51e 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -132270,13 +132270,13 @@ "kind": "enum", "members": [ { - "name": "DISABLED" + "name": "disabled" }, { - "name": "STORED" + "name": "stored" }, { - "name": "SYNTHETIC" + "name": "synthetic" } ], "name": { diff --git a/output/typescript/types.ts b/output/typescript/types.ts index f41b28a0dc..09a7c67f73 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -11584,7 +11584,7 @@ export interface IndicesSoftDeletes { retention_lease?: IndicesRetentionLease } -export type IndicesSourceMode = 'DISABLED' | 'STORED' | 'SYNTHETIC' +export type IndicesSourceMode = 'disabled' | 'stored' | 'synthetic' export interface IndicesStorage { type: IndicesStorageType diff --git a/specification/indices/_types/IndexSettings.ts b/specification/indices/_types/IndexSettings.ts index 2680da8bbc..9b62d988a1 100644 --- a/specification/indices/_types/IndexSettings.ts +++ b/specification/indices/_types/IndexSettings.ts @@ -500,9 +500,9 @@ export class MappingLimitSettingsSourceFields { } export enum SourceMode { - DISABLED, - STORED, - SYNTHETIC + disabled, + stored, + synthetic } export class SlowlogSettings { From e2d9086fc97f8fb2ebd04d2ec6a28e7530b4e9ea Mon Sep 17 00:00:00 2001 From: Quentin Pradet Date: Tue, 25 Feb 2025 16:01:08 +0400 Subject: [PATCH 2/4] Switch enums from upper case to lower case --- specification/_types/Lifecycle.ts | 6 +-- specification/_types/common.ts | 8 --- specification/_types/query_dsl/fulltext.ts | 26 +++++----- specification/cat/transforms/types.ts | 12 ++--- .../cluster/allocation_explain/types.ts | 50 +++++++++---------- specification/enrich/execute_policy/types.ts | 8 +-- specification/esql/_types/Pragmas.ts | 6 +-- specification/indices/stats/types.ts | 8 +-- .../GetFeatureUpgradeStatusResponse.ts | 8 +-- .../_types/SnapshotShardsStatsStage.ts | 10 ++-- 10 files changed, 67 insertions(+), 75 deletions(-) diff --git a/specification/_types/Lifecycle.ts b/specification/_types/Lifecycle.ts index b44bd9a6ac..af4caeaa1f 100644 --- a/specification/_types/Lifecycle.ts +++ b/specification/_types/Lifecycle.ts @@ -18,7 +18,7 @@ */ export enum LifecycleOperationMode { - RUNNING, - STOPPING, - STOPPED + running, + stopping, + stopped } diff --git a/specification/_types/common.ts b/specification/_types/common.ts index 73847e459e..11ccd26938 100644 --- a/specification/_types/common.ts +++ b/specification/_types/common.ts @@ -235,14 +235,6 @@ export enum HealthStatus { red } -export enum HttpMethod { - GET, - POST, - PUT, - DELETE, - HEAD -} - export enum Level { cluster, indices, diff --git a/specification/_types/query_dsl/fulltext.ts b/specification/_types/query_dsl/fulltext.ts index a03ff6ed38..ef184482b3 100644 --- a/specification/_types/query_dsl/fulltext.ts +++ b/specification/_types/query_dsl/fulltext.ts @@ -730,57 +730,57 @@ export enum SimpleQueryStringFlag { /** * Disables all operators. */ - NONE, + none, /** * Enables the `+` AND operator. */ - AND, + and, /** * Enables the `-` NOT operator. */ - NOT, + not, /** * Enables the `\|` OR operator. */ - OR, + or, /** * Enables the `*` prefix operator. */ - PREFIX, + prefix, /** * Enables the `"` quotes operator used to search for phrases. */ - PHRASE, + phrase, /** * Enables the `(` and `)` operators to control operator precedence. */ - PRECEDENCE, + precedence, /** * Enables `\` as an escape character. */ - ESCAPE, + escape, /** * Enables whitespace as split characters. */ - WHITESPACE, + whitespace, /** * Enables the `~N` operator after a word, where `N` is an integer denoting the allowed edit distance for matching. */ - FUZZY, + fuzzy, /** * Enables the `~N` operator, after a phrase where `N` is the maximum number of positions allowed between matching tokens. * Synonymous to `SLOP`. */ - NEAR, + near, /** * Enables the `~N` operator, after a phrase where `N` is maximum number of positions allowed between matching tokens. * Synonymous to `NEAR`. */ - SLOP, + slop, /** * Enables all optional operators. */ - ALL + all } /** diff --git a/specification/cat/transforms/types.ts b/specification/cat/transforms/types.ts index f5f14fc5a9..2decfbdd52 100644 --- a/specification/cat/transforms/types.ts +++ b/specification/cat/transforms/types.ts @@ -197,12 +197,12 @@ export class TransformsRecord { } export enum TransformState { - STARTED, - INDEXING, - ABORTING, - STOPPING, - STOPPED, - FAILED + started, + indexing, + aborting, + stopping, + stopped, + failed } export enum TransformType { diff --git a/specification/cluster/allocation_explain/types.ts b/specification/cluster/allocation_explain/types.ts index 02a090e1c3..752cb66ada 100644 --- a/specification/cluster/allocation_explain/types.ts +++ b/specification/cluster/allocation_explain/types.ts @@ -31,10 +31,10 @@ export class AllocationDecision { } export enum AllocationExplainDecision { - NO, - YES, - THROTTLE, - ALWAYS + no, + yes, + throttle, + always } export class AllocationStore { @@ -117,12 +117,12 @@ export class NodeAllocationExplanation { } export enum StoreCopy { - NONE, - AVAILABLE, - CORRUPT, - IO_ERROR, - STALE, - UNKNOWN + none, + available, + corrupt, + io_error, + stale, + unknown } export class UnassignedInformation { @@ -139,19 +139,19 @@ export class UnassignedInformation { * @doc_id cat-shards */ export enum UnassignedInformationReason { - INDEX_CREATED, - CLUSTER_RECOVERED, - INDEX_REOPENED, - DANGLING_INDEX_IMPORTED, - NEW_INDEX_RESTORED, - EXISTING_INDEX_RESTORED, - REPLICA_ADDED, - ALLOCATION_FAILED, - NODE_LEFT, - REROUTE_CANCELLED, - REINITIALIZED, - REALLOCATED_REPLICA, - PRIMARY_FAILED, - FORCED_EMPTY_PRIMARY, - MANUAL_ALLOCATION + index_created, + cluster_recovered, + index_reopened, + dangling_index_imported, + new_index_restored, + existing_index_restored, + replica_added, + allocation_failed, + node_left, + reroute_cancelled, + reinitialized, + reallocated_replica, + primary_failed, + forced_empty_primary, + manual_allocation } diff --git a/specification/enrich/execute_policy/types.ts b/specification/enrich/execute_policy/types.ts index 9a9a21b011..6f30d59905 100644 --- a/specification/enrich/execute_policy/types.ts +++ b/specification/enrich/execute_policy/types.ts @@ -22,8 +22,8 @@ export class ExecuteEnrichPolicyStatus { } export enum EnrichPolicyPhase { - SCHEDULED, - RUNNING, - COMPLETE, - FAILED + scheduled, + running, + complete, + failed, } diff --git a/specification/esql/_types/Pragmas.ts b/specification/esql/_types/Pragmas.ts index 9bd608297f..5814baa109 100644 --- a/specification/esql/_types/Pragmas.ts +++ b/specification/esql/_types/Pragmas.ts @@ -18,7 +18,7 @@ */ export enum DataPartitioning { - SHARD, - SEGMENT, - DOC + shard, + segment, + doc, } diff --git a/specification/indices/stats/types.ts b/specification/indices/stats/types.ts index d9049ebf0c..6cd116e9d6 100644 --- a/specification/indices/stats/types.ts +++ b/specification/indices/stats/types.ts @@ -167,10 +167,10 @@ export class ShardRouting { } export enum ShardRoutingState { - UNASSIGNED, - INITIALIZING, - STARTED, - RELOCATING + unassigned, + initializing, + started, + relocating } export class ShardSequenceNumber { diff --git a/specification/migration/get_feature_upgrade_status/GetFeatureUpgradeStatusResponse.ts b/specification/migration/get_feature_upgrade_status/GetFeatureUpgradeStatusResponse.ts index 5e9532d965..e7599ee4cf 100644 --- a/specification/migration/get_feature_upgrade_status/GetFeatureUpgradeStatusResponse.ts +++ b/specification/migration/get_feature_upgrade_status/GetFeatureUpgradeStatusResponse.ts @@ -28,10 +28,10 @@ export class Response { } export enum MigrationStatus { - NO_MIGRATION_NEEDED, - MIGRATION_NEEDED, - IN_PROGRESS, - ERROR + no_migration_needed, + migration_needed, + in_progress, + error } export class MigrationFeature { diff --git a/specification/snapshot/_types/SnapshotShardsStatsStage.ts b/specification/snapshot/_types/SnapshotShardsStatsStage.ts index aebe460bca..92031e117c 100644 --- a/specification/snapshot/_types/SnapshotShardsStatsStage.ts +++ b/specification/snapshot/_types/SnapshotShardsStatsStage.ts @@ -19,13 +19,13 @@ export enum ShardsStatsStage { /** The number of shards in the snapshot that were successfully stored in the repository. */ - DONE, + done, /** The number of shards in the snapshot that were not successfully stored in the repository. */ - FAILURE, + failure, /** The number of shards in the snapshot that are in the finalizing stage of being stored in the repository. */ - FINALIZE, + finalize, /** The number of shards in the snapshot that are in the initializing stage of being stored in the repository. */ - INIT, + init, /** The number of shards in the snapshot that are in the started stage of being stored in the repository. */ - STARTED + started } From 285f843c5bef29b307231614fea0a2497d9cd1a8 Mon Sep 17 00:00:00 2001 From: Quentin Pradet Date: Tue, 25 Feb 2025 16:10:39 +0400 Subject: [PATCH 3/4] Run make contrib --- output/openapi/elasticsearch-openapi.json | 104 +++++++------- .../elasticsearch-serverless-openapi.json | 34 ++--- output/schema/schema-serverless.json | 132 +++++++++--------- output/schema/schema.json | 132 +++++++++--------- output/typescript/types.ts | 16 +-- specification/enrich/execute_policy/types.ts | 2 +- specification/esql/_types/Pragmas.ts | 2 +- 7 files changed, 211 insertions(+), 211 deletions(-) diff --git a/output/openapi/elasticsearch-openapi.json b/output/openapi/elasticsearch-openapi.json index cc81962f89..8ddc04ca2b 100644 --- a/output/openapi/elasticsearch-openapi.json +++ b/output/openapi/elasticsearch-openapi.json @@ -49368,19 +49368,19 @@ "_types.query_dsl:SimpleQueryStringFlag": { "type": "string", "enum": [ - "NONE", - "AND", - "NOT", - "OR", - "PREFIX", - "PHRASE", - "PRECEDENCE", - "ESCAPE", - "WHITESPACE", - "FUZZY", - "NEAR", - "SLOP", - "ALL" + "none", + "and", + "not", + "or", + "prefix", + "phrase", + "precedence", + "escape", + "whitespace", + "fuzzy", + "near", + "slop", + "all" ] }, "_types.query_dsl:SpanContainingQuery": { @@ -62736,10 +62736,10 @@ "cluster.allocation_explain:AllocationExplainDecision": { "type": "string", "enum": [ - "NO", - "YES", - "THROTTLE", - "ALWAYS" + "no", + "yes", + "throttle", + "always" ] }, "cluster.allocation_explain:ClusterInfo": { @@ -63034,21 +63034,21 @@ "cluster.allocation_explain:UnassignedInformationReason": { "type": "string", "enum": [ - "INDEX_CREATED", - "CLUSTER_RECOVERED", - "INDEX_REOPENED", - "DANGLING_INDEX_IMPORTED", - "NEW_INDEX_RESTORED", - "EXISTING_INDEX_RESTORED", - "REPLICA_ADDED", - "ALLOCATION_FAILED", - "NODE_LEFT", - "REROUTE_CANCELLED", - "REINITIALIZED", - "REALLOCATED_REPLICA", - "PRIMARY_FAILED", - "FORCED_EMPTY_PRIMARY", - "MANUAL_ALLOCATION" + "index_created", + "cluster_recovered", + "index_reopened", + "dangling_index_imported", + "new_index_restored", + "existing_index_restored", + "replica_added", + "allocation_failed", + "node_left", + "reroute_cancelled", + "reinitialized", + "reallocated_replica", + "primary_failed", + "forced_empty_primary", + "manual_allocation" ] }, "cluster._types:ComponentTemplate": { @@ -69285,10 +69285,10 @@ "enrich.execute_policy:EnrichPolicyPhase": { "type": "string", "enum": [ - "SCHEDULED", - "RUNNING", - "COMPLETE", - "FAILED" + "scheduled", + "running", + "complete", + "failed" ] }, "enrich._types:Summary": { @@ -70859,9 +70859,9 @@ "_types:LifecycleOperationMode": { "type": "string", "enum": [ - "RUNNING", - "STOPPING", - "STOPPED" + "running", + "stopping", + "stopped" ] }, "_global.health_report:SlmIndicator": { @@ -73880,10 +73880,10 @@ "indices.stats:ShardRoutingState": { "type": "string", "enum": [ - "UNASSIGNED", - "INITIALIZING", - "STARTED", - "RELOCATING" + "unassigned", + "initializing", + "started", + "relocating" ] }, "indices.stats:ShardSequenceNumber": { @@ -77085,10 +77085,10 @@ "migration.get_feature_upgrade_status:MigrationStatus": { "type": "string", "enum": [ - "NO_MIGRATION_NEEDED", - "MIGRATION_NEEDED", - "IN_PROGRESS", - "ERROR" + "no_migration_needed", + "migration_needed", + "in_progress", + "error" ] }, "migration.get_feature_upgrade_status:MigrationFeatureIndexInfo": { @@ -90333,11 +90333,11 @@ "snapshot._types:ShardsStatsStage": { "type": "string", "enum": [ - "DONE", - "FAILURE", - "FINALIZE", - "INIT", - "STARTED" + "done", + "failure", + "finalize", + "init", + "started" ] }, "snapshot._types:ShardsStatsSummary": { diff --git a/output/openapi/elasticsearch-serverless-openapi.json b/output/openapi/elasticsearch-serverless-openapi.json index 218ea263c3..b646f04586 100644 --- a/output/openapi/elasticsearch-serverless-openapi.json +++ b/output/openapi/elasticsearch-serverless-openapi.json @@ -29590,19 +29590,19 @@ "_types.query_dsl:SimpleQueryStringFlag": { "type": "string", "enum": [ - "NONE", - "AND", - "NOT", - "OR", - "PREFIX", - "PHRASE", - "PRECEDENCE", - "ESCAPE", - "WHITESPACE", - "FUZZY", - "NEAR", - "SLOP", - "ALL" + "none", + "and", + "not", + "or", + "prefix", + "phrase", + "precedence", + "escape", + "whitespace", + "fuzzy", + "near", + "slop", + "all" ] }, "_types.query_dsl:SpanContainingQuery": { @@ -44834,10 +44834,10 @@ "enrich.execute_policy:EnrichPolicyPhase": { "type": "string", "enum": [ - "SCHEDULED", - "RUNNING", - "COMPLETE", - "FAILED" + "scheduled", + "running", + "complete", + "failed" ] }, "enrich._types:Summary": { diff --git a/output/schema/schema-serverless.json b/output/schema/schema-serverless.json index 282b688ac0..a8dc0bd6e6 100644 --- a/output/schema/schema-serverless.json +++ b/output/schema/schema-serverless.json @@ -47241,7 +47241,7 @@ "name": "SearchType", "namespace": "_types" }, - "specLocation": "_types/common.ts#L272-L277" + "specLocation": "_types/common.ts#L264-L269" }, { "kind": "interface", @@ -69294,7 +69294,7 @@ "name": "SuggestMode", "namespace": "_types" }, - "specLocation": "_types/common.ts#L279-L292" + "specLocation": "_types/common.ts#L271-L284" }, { "kind": "interface", @@ -78299,7 +78299,7 @@ "name": "ClusterInfoTarget", "namespace": "_types" }, - "specLocation": "_types/common.ts#L378-L384" + "specLocation": "_types/common.ts#L370-L376" }, { "kind": "type_alias", @@ -78307,7 +78307,7 @@ "name": "ClusterInfoTargets", "namespace": "_types" }, - "specLocation": "_types/common.ts#L386-L386", + "specLocation": "_types/common.ts#L378-L378", "type": { "items": [ { @@ -78724,19 +78724,19 @@ "name": "Level", "namespace": "_types" }, - "specLocation": "_types/common.ts#L246-L250" + "specLocation": "_types/common.ts#L238-L242" }, { "kind": "enum", "members": [ { - "name": "RUNNING" + "name": "running" }, { - "name": "STOPPING" + "name": "stopping" }, { - "name": "STOPPED" + "name": "stopped" } ], "name": { @@ -78994,7 +78994,7 @@ "name": "OpType", "namespace": "_types" }, - "specLocation": "_types/common.ts#L252-L261" + "specLocation": "_types/common.ts#L244-L253" }, { "kind": "type_alias", @@ -79086,7 +79086,7 @@ "name": "Refresh", "namespace": "_types" }, - "specLocation": "_types/common.ts#L263-L270" + "specLocation": "_types/common.ts#L255-L262" }, { "kind": "enum", @@ -79226,7 +79226,7 @@ "name": "Slices", "namespace": "_types" }, - "specLocation": "_types/common.ts#L361-L366", + "specLocation": "_types/common.ts#L353-L358", "type": { "items": [ { @@ -79259,7 +79259,7 @@ "name": "SlicesCalculation", "namespace": "_types" }, - "specLocation": "_types/common.ts#L368-L376" + "specLocation": "_types/common.ts#L360-L368" }, { "kind": "type_alias", @@ -79326,7 +79326,7 @@ "name": "ThreadType", "namespace": "_types" }, - "specLocation": "_types/common.ts#L294-L300" + "specLocation": "_types/common.ts#L286-L292" }, { "description": "Time of day, expressed as HH:MM:SS", @@ -79520,7 +79520,7 @@ "name": "WaitForActiveShardOptions", "namespace": "_types" }, - "specLocation": "_types/common.ts#L302-L306" + "specLocation": "_types/common.ts#L294-L298" }, { "codegenNames": [ @@ -79579,7 +79579,7 @@ "name": "WaitForEvents", "namespace": "_types" }, - "specLocation": "_types/common.ts#L308-L315" + "specLocation": "_types/common.ts#L300-L307" }, { "kind": "type_alias", @@ -92645,55 +92645,55 @@ "members": [ { "description": "Disables all operators.", - "name": "NONE" + "name": "none" }, { "description": "Enables the `+` AND operator.", - "name": "AND" + "name": "and" }, { "description": "Enables the `-` NOT operator.", - "name": "NOT" + "name": "not" }, { "description": "Enables the `\\|` OR operator.", - "name": "OR" + "name": "or" }, { "description": "Enables the `*` prefix operator.", - "name": "PREFIX" + "name": "prefix" }, { "description": "Enables the `\"` quotes operator used to search for phrases.", - "name": "PHRASE" + "name": "phrase" }, { "description": "Enables the `(` and `)` operators to control operator precedence.", - "name": "PRECEDENCE" + "name": "precedence" }, { "description": "Enables `\\` as an escape character.", - "name": "ESCAPE" + "name": "escape" }, { "description": "Enables whitespace as split characters.", - "name": "WHITESPACE" + "name": "whitespace" }, { "description": "Enables the `~N` operator after a word, where `N` is an integer denoting the allowed edit distance for matching.", - "name": "FUZZY" + "name": "fuzzy" }, { "description": "Enables the `~N` operator, after a phrase where `N` is the maximum number of positions allowed between matching tokens.\nSynonymous to `SLOP`.", - "name": "NEAR" + "name": "near" }, { "description": "Enables the `~N` operator, after a phrase where `N` is maximum number of positions allowed between matching tokens.\nSynonymous to `NEAR`.", - "name": "SLOP" + "name": "slop" }, { "description": "Enables all optional operators.", - "name": "ALL" + "name": "all" } ], "name": { @@ -93942,16 +93942,16 @@ "kind": "enum", "members": [ { - "name": "NO" + "name": "no" }, { - "name": "YES" + "name": "yes" }, { - "name": "THROTTLE" + "name": "throttle" }, { - "name": "ALWAYS" + "name": "always" } ], "name": { @@ -93998,49 +93998,49 @@ "kind": "enum", "members": [ { - "name": "INDEX_CREATED" + "name": "index_created" }, { - "name": "CLUSTER_RECOVERED" + "name": "cluster_recovered" }, { - "name": "INDEX_REOPENED" + "name": "index_reopened" }, { - "name": "DANGLING_INDEX_IMPORTED" + "name": "dangling_index_imported" }, { - "name": "NEW_INDEX_RESTORED" + "name": "new_index_restored" }, { - "name": "EXISTING_INDEX_RESTORED" + "name": "existing_index_restored" }, { - "name": "REPLICA_ADDED" + "name": "replica_added" }, { - "name": "ALLOCATION_FAILED" + "name": "allocation_failed" }, { - "name": "NODE_LEFT" + "name": "node_left" }, { - "name": "REROUTE_CANCELLED" + "name": "reroute_cancelled" }, { - "name": "REINITIALIZED" + "name": "reinitialized" }, { - "name": "REALLOCATED_REPLICA" + "name": "reallocated_replica" }, { - "name": "PRIMARY_FAILED" + "name": "primary_failed" }, { - "name": "FORCED_EMPTY_PRIMARY" + "name": "forced_empty_primary" }, { - "name": "MANUAL_ALLOCATION" + "name": "manual_allocation" } ], "name": { @@ -95169,16 +95169,16 @@ "kind": "enum", "members": [ { - "name": "SCHEDULED" + "name": "scheduled" }, { - "name": "RUNNING" + "name": "running" }, { - "name": "COMPLETE" + "name": "complete" }, { - "name": "FAILED" + "name": "failed" } ], "name": { @@ -97276,16 +97276,16 @@ "kind": "enum", "members": [ { - "name": "UNASSIGNED" + "name": "unassigned" }, { - "name": "INITIALIZING" + "name": "initializing" }, { - "name": "STARTED" + "name": "started" }, { - "name": "RELOCATING" + "name": "relocating" } ], "name": { @@ -97806,16 +97806,16 @@ "kind": "enum", "members": [ { - "name": "NO_MIGRATION_NEEDED" + "name": "no_migration_needed" }, { - "name": "MIGRATION_NEEDED" + "name": "migration_needed" }, { - "name": "IN_PROGRESS" + "name": "in_progress" }, { - "name": "ERROR" + "name": "error" } ], "name": { @@ -107751,23 +107751,23 @@ "members": [ { "description": "The number of shards in the snapshot that were successfully stored in the repository.", - "name": "DONE" + "name": "done" }, { "description": "The number of shards in the snapshot that were not successfully stored in the repository.", - "name": "FAILURE" + "name": "failure" }, { "description": "The number of shards in the snapshot that are in the finalizing stage of being stored in the repository.", - "name": "FINALIZE" + "name": "finalize" }, { "description": "The number of shards in the snapshot that are in the initializing stage of being stored in the repository.", - "name": "INIT" + "name": "init" }, { "description": "The number of shards in the snapshot that are in the started stage of being stored in the repository.", - "name": "STARTED" + "name": "started" } ], "name": { @@ -110329,7 +110329,7 @@ } } ], - "specLocation": "_types/common.ts#L317-L330" + "specLocation": "_types/common.ts#L309-L322" }, { "attachedBehaviors": [ @@ -134590,7 +134590,7 @@ } } ], - "specLocation": "_types/common.ts#L332-L359" + "specLocation": "_types/common.ts#L324-L351" }, { "kind": "interface", diff --git a/output/schema/schema.json b/output/schema/schema.json index 613513b51e..22c3311778 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -45503,7 +45503,7 @@ "name": "ClusterInfoTarget", "namespace": "_types" }, - "specLocation": "_types/common.ts#L378-L384" + "specLocation": "_types/common.ts#L370-L376" }, { "kind": "type_alias", @@ -45511,7 +45511,7 @@ "name": "ClusterInfoTargets", "namespace": "_types" }, - "specLocation": "_types/common.ts#L386-L386", + "specLocation": "_types/common.ts#L378-L378", "type": { "kind": "union_of", "items": [ @@ -48114,7 +48114,7 @@ } } ], - "specLocation": "_types/common.ts#L332-L359" + "specLocation": "_types/common.ts#L324-L351" }, { "kind": "interface", @@ -48257,7 +48257,7 @@ } } ], - "specLocation": "_types/common.ts#L317-L330" + "specLocation": "_types/common.ts#L309-L322" }, { "kind": "type_alias", @@ -48728,19 +48728,19 @@ "name": "Level", "namespace": "_types" }, - "specLocation": "_types/common.ts#L246-L250" + "specLocation": "_types/common.ts#L238-L242" }, { "kind": "enum", "members": [ { - "name": "RUNNING" + "name": "running" }, { - "name": "STOPPING" + "name": "stopping" }, { - "name": "STOPPED" + "name": "stopped" } ], "name": { @@ -49660,7 +49660,7 @@ "name": "OpType", "namespace": "_types" }, - "specLocation": "_types/common.ts#L252-L261" + "specLocation": "_types/common.ts#L244-L253" }, { "kind": "type_alias", @@ -50164,7 +50164,7 @@ "name": "Refresh", "namespace": "_types" }, - "specLocation": "_types/common.ts#L263-L270" + "specLocation": "_types/common.ts#L255-L262" }, { "kind": "interface", @@ -51422,7 +51422,7 @@ "name": "SearchType", "namespace": "_types" }, - "specLocation": "_types/common.ts#L272-L277" + "specLocation": "_types/common.ts#L264-L269" }, { "kind": "interface", @@ -51972,7 +51972,7 @@ "name": "Slices", "namespace": "_types" }, - "specLocation": "_types/common.ts#L361-L366", + "specLocation": "_types/common.ts#L353-L358", "type": { "kind": "union_of", "items": [ @@ -52005,7 +52005,7 @@ "name": "SlicesCalculation", "namespace": "_types" }, - "specLocation": "_types/common.ts#L368-L376" + "specLocation": "_types/common.ts#L360-L368" }, { "kind": "type_alias", @@ -52468,7 +52468,7 @@ "name": "SuggestMode", "namespace": "_types" }, - "specLocation": "_types/common.ts#L279-L292" + "specLocation": "_types/common.ts#L271-L284" }, { "kind": "type_alias", @@ -52698,7 +52698,7 @@ "name": "ThreadType", "namespace": "_types" }, - "specLocation": "_types/common.ts#L294-L300" + "specLocation": "_types/common.ts#L286-L292" }, { "kind": "type_alias", @@ -53148,7 +53148,7 @@ "name": "WaitForActiveShardOptions", "namespace": "_types" }, - "specLocation": "_types/common.ts#L302-L306" + "specLocation": "_types/common.ts#L294-L298" }, { "kind": "type_alias", @@ -53207,7 +53207,7 @@ "name": "WaitForEvents", "namespace": "_types" }, - "specLocation": "_types/common.ts#L308-L315" + "specLocation": "_types/common.ts#L300-L307" }, { "kind": "interface", @@ -88033,55 +88033,55 @@ "members": [ { "description": "Disables all operators.", - "name": "NONE" + "name": "none" }, { "description": "Enables the `+` AND operator.", - "name": "AND" + "name": "and" }, { "description": "Enables the `-` NOT operator.", - "name": "NOT" + "name": "not" }, { "description": "Enables the `\\|` OR operator.", - "name": "OR" + "name": "or" }, { "description": "Enables the `*` prefix operator.", - "name": "PREFIX" + "name": "prefix" }, { "description": "Enables the `\"` quotes operator used to search for phrases.", - "name": "PHRASE" + "name": "phrase" }, { "description": "Enables the `(` and `)` operators to control operator precedence.", - "name": "PRECEDENCE" + "name": "precedence" }, { "description": "Enables `\\` as an escape character.", - "name": "ESCAPE" + "name": "escape" }, { "description": "Enables whitespace as split characters.", - "name": "WHITESPACE" + "name": "whitespace" }, { "description": "Enables the `~N` operator after a word, where `N` is an integer denoting the allowed edit distance for matching.", - "name": "FUZZY" + "name": "fuzzy" }, { "description": "Enables the `~N` operator, after a phrase where `N` is the maximum number of positions allowed between matching tokens.\nSynonymous to `SLOP`.", - "name": "NEAR" + "name": "near" }, { "description": "Enables the `~N` operator, after a phrase where `N` is maximum number of positions allowed between matching tokens.\nSynonymous to `NEAR`.", - "name": "SLOP" + "name": "slop" }, { "description": "Enables all optional operators.", - "name": "ALL" + "name": "all" } ], "name": { @@ -109154,16 +109154,16 @@ "kind": "enum", "members": [ { - "name": "NO" + "name": "no" }, { - "name": "YES" + "name": "yes" }, { - "name": "THROTTLE" + "name": "throttle" }, { - "name": "ALWAYS" + "name": "always" } ], "name": { @@ -110328,49 +110328,49 @@ "kind": "enum", "members": [ { - "name": "INDEX_CREATED" + "name": "index_created" }, { - "name": "CLUSTER_RECOVERED" + "name": "cluster_recovered" }, { - "name": "INDEX_REOPENED" + "name": "index_reopened" }, { - "name": "DANGLING_INDEX_IMPORTED" + "name": "dangling_index_imported" }, { - "name": "NEW_INDEX_RESTORED" + "name": "new_index_restored" }, { - "name": "EXISTING_INDEX_RESTORED" + "name": "existing_index_restored" }, { - "name": "REPLICA_ADDED" + "name": "replica_added" }, { - "name": "ALLOCATION_FAILED" + "name": "allocation_failed" }, { - "name": "NODE_LEFT" + "name": "node_left" }, { - "name": "REROUTE_CANCELLED" + "name": "reroute_cancelled" }, { - "name": "REINITIALIZED" + "name": "reinitialized" }, { - "name": "REALLOCATED_REPLICA" + "name": "reallocated_replica" }, { - "name": "PRIMARY_FAILED" + "name": "primary_failed" }, { - "name": "FORCED_EMPTY_PRIMARY" + "name": "forced_empty_primary" }, { - "name": "MANUAL_ALLOCATION" + "name": "manual_allocation" } ], "name": { @@ -120824,16 +120824,16 @@ "kind": "enum", "members": [ { - "name": "SCHEDULED" + "name": "scheduled" }, { - "name": "RUNNING" + "name": "running" }, { - "name": "COMPLETE" + "name": "complete" }, { - "name": "FAILED" + "name": "failed" } ], "name": { @@ -145366,16 +145366,16 @@ "kind": "enum", "members": [ { - "name": "UNASSIGNED" + "name": "unassigned" }, { - "name": "INITIALIZING" + "name": "initializing" }, { - "name": "STARTED" + "name": "started" }, { - "name": "RELOCATING" + "name": "relocating" } ], "name": { @@ -156595,16 +156595,16 @@ "kind": "enum", "members": [ { - "name": "NO_MIGRATION_NEEDED" + "name": "no_migration_needed" }, { - "name": "MIGRATION_NEEDED" + "name": "migration_needed" }, { - "name": "IN_PROGRESS" + "name": "in_progress" }, { - "name": "ERROR" + "name": "error" } ], "name": { @@ -211497,23 +211497,23 @@ "members": [ { "description": "The number of shards in the snapshot that were successfully stored in the repository.", - "name": "DONE" + "name": "done" }, { "description": "The number of shards in the snapshot that were not successfully stored in the repository.", - "name": "FAILURE" + "name": "failure" }, { "description": "The number of shards in the snapshot that are in the finalizing stage of being stored in the repository.", - "name": "FINALIZE" + "name": "finalize" }, { "description": "The number of shards in the snapshot that are in the initializing stage of being stored in the repository.", - "name": "INIT" + "name": "init" }, { "description": "The number of shards in the snapshot that are in the started stage of being stored in the repository.", - "name": "STARTED" + "name": "started" } ], "name": { diff --git a/output/typescript/types.ts b/output/typescript/types.ts index 09a7c67f73..961899fb06 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -2543,7 +2543,7 @@ export interface LatLonGeoLocation { export type Level = 'cluster' | 'indices' | 'shards' -export type LifecycleOperationMode = 'RUNNING' | 'STOPPING' | 'STOPPED' +export type LifecycleOperationMode = 'running' | 'stopping' | 'stopped' export type MapboxVectorTiles = ArrayBuffer @@ -6567,7 +6567,7 @@ export interface QueryDslShapeQueryKeys extends QueryDslQueryBase { export type QueryDslShapeQuery = QueryDslShapeQueryKeys & { [property: string]: QueryDslShapeFieldQuery | boolean | float | string } -export type QueryDslSimpleQueryStringFlag = 'NONE' | 'AND' | 'NOT' | 'OR' | 'PREFIX' | 'PHRASE' | 'PRECEDENCE' | 'ESCAPE' | 'WHITESPACE' | 'FUZZY' | 'NEAR' | 'SLOP' | 'ALL' +export type QueryDslSimpleQueryStringFlag = 'none' | 'and' | 'not' | 'or' | 'prefix' | 'phrase' | 'precedence' | 'escape' | 'whitespace' | 'fuzzy' | 'near' | 'slop' | 'all' export type QueryDslSimpleQueryStringFlags = SpecUtilsPipeSeparatedFlags @@ -9110,7 +9110,7 @@ export interface ClusterAllocationExplainAllocationDecision { explanation: string } -export type ClusterAllocationExplainAllocationExplainDecision = 'NO' | 'YES' | 'THROTTLE' | 'ALWAYS' +export type ClusterAllocationExplainAllocationExplainDecision = 'no' | 'yes' | 'throttle' | 'always' export interface ClusterAllocationExplainAllocationStore { allocation_id: string @@ -9224,7 +9224,7 @@ export interface ClusterAllocationExplainUnassignedInformation { allocation_status?: string } -export type ClusterAllocationExplainUnassignedInformationReason = 'INDEX_CREATED' | 'CLUSTER_RECOVERED' | 'INDEX_REOPENED' | 'DANGLING_INDEX_IMPORTED' | 'NEW_INDEX_RESTORED' | 'EXISTING_INDEX_RESTORED' | 'REPLICA_ADDED' | 'ALLOCATION_FAILED' | 'NODE_LEFT' | 'REROUTE_CANCELLED' | 'REINITIALIZED' | 'REALLOCATED_REPLICA' | 'PRIMARY_FAILED' | 'FORCED_EMPTY_PRIMARY' | 'MANUAL_ALLOCATION' +export type ClusterAllocationExplainUnassignedInformationReason = 'index_created' | 'cluster_recovered' | 'index_reopened' | 'dangling_index_imported' | 'new_index_restored' | 'existing_index_restored' | 'replica_added' | 'allocation_failed' | 'node_left' | 'reroute_cancelled' | 'reinitialized' | 'reallocated_replica' | 'primary_failed' | 'forced_empty_primary' | 'manual_allocation' export interface ClusterDeleteComponentTemplateRequest extends RequestBase { name: Names @@ -10402,7 +10402,7 @@ export interface EnrichDeletePolicyRequest extends RequestBase { export type EnrichDeletePolicyResponse = AcknowledgedResponseBase -export type EnrichExecutePolicyEnrichPolicyPhase = 'SCHEDULED' | 'RUNNING' | 'COMPLETE' | 'FAILED' +export type EnrichExecutePolicyEnrichPolicyPhase = 'scheduled' | 'running' | 'complete' | 'failed' export interface EnrichExecutePolicyExecuteEnrichPolicyStatus { phase: EnrichExecutePolicyEnrichPolicyPhase @@ -12915,7 +12915,7 @@ export interface IndicesStatsShardRouting { state: IndicesStatsShardRoutingState } -export type IndicesStatsShardRoutingState = 'UNASSIGNED' | 'INITIALIZING' | 'STARTED' | 'RELOCATING' +export type IndicesStatsShardRoutingState = 'unassigned' | 'initializing' | 'started' | 'relocating' export interface IndicesStatsShardSequenceNumber { global_checkpoint: long @@ -14081,7 +14081,7 @@ export interface MigrationGetFeatureUpgradeStatusMigrationFeatureIndexInfo { failure_cause?: ErrorCause } -export type MigrationGetFeatureUpgradeStatusMigrationStatus = 'NO_MIGRATION_NEEDED' | 'MIGRATION_NEEDED' | 'IN_PROGRESS' | 'ERROR' +export type MigrationGetFeatureUpgradeStatusMigrationStatus = 'no_migration_needed' | 'migration_needed' | 'in_progress' | 'error' export interface MigrationGetFeatureUpgradeStatusRequest extends RequestBase { } @@ -19817,7 +19817,7 @@ export interface SnapshotShardsStats { total: long } -export type SnapshotShardsStatsStage = 'DONE' | 'FAILURE' | 'FINALIZE' | 'INIT' | 'STARTED' +export type SnapshotShardsStatsStage = 'done' | 'failure' | 'finalize' | 'init' | 'started' export interface SnapshotShardsStatsSummary { incremental: SnapshotShardsStatsSummaryItem diff --git a/specification/enrich/execute_policy/types.ts b/specification/enrich/execute_policy/types.ts index 6f30d59905..9c04fe482c 100644 --- a/specification/enrich/execute_policy/types.ts +++ b/specification/enrich/execute_policy/types.ts @@ -25,5 +25,5 @@ export enum EnrichPolicyPhase { scheduled, running, complete, - failed, + failed } diff --git a/specification/esql/_types/Pragmas.ts b/specification/esql/_types/Pragmas.ts index 5814baa109..bb56973a92 100644 --- a/specification/esql/_types/Pragmas.ts +++ b/specification/esql/_types/Pragmas.ts @@ -20,5 +20,5 @@ export enum DataPartitioning { shard, segment, - doc, + doc } From af3181f1b3653e41457a2aefcc92808d84685ada Mon Sep 17 00:00:00 2001 From: Quentin Pradet Date: Tue, 25 Feb 2025 16:16:03 +0400 Subject: [PATCH 4/4] Revert "Switch enums from upper case to lower case" --- output/openapi/elasticsearch-openapi.json | 104 +++++++------- .../elasticsearch-serverless-openapi.json | 34 ++--- output/schema/schema-serverless.json | 132 +++++++++--------- output/schema/schema.json | 132 +++++++++--------- output/typescript/types.ts | 16 +-- specification/_types/Lifecycle.ts | 6 +- specification/_types/common.ts | 8 ++ specification/_types/query_dsl/fulltext.ts | 26 ++-- specification/cat/transforms/types.ts | 12 +- .../cluster/allocation_explain/types.ts | 50 +++---- specification/enrich/execute_policy/types.ts | 8 +- specification/esql/_types/Pragmas.ts | 6 +- specification/indices/stats/types.ts | 8 +- .../GetFeatureUpgradeStatusResponse.ts | 8 +- .../_types/SnapshotShardsStatsStage.ts | 10 +- 15 files changed, 284 insertions(+), 276 deletions(-) diff --git a/output/openapi/elasticsearch-openapi.json b/output/openapi/elasticsearch-openapi.json index 8ddc04ca2b..cc81962f89 100644 --- a/output/openapi/elasticsearch-openapi.json +++ b/output/openapi/elasticsearch-openapi.json @@ -49368,19 +49368,19 @@ "_types.query_dsl:SimpleQueryStringFlag": { "type": "string", "enum": [ - "none", - "and", - "not", - "or", - "prefix", - "phrase", - "precedence", - "escape", - "whitespace", - "fuzzy", - "near", - "slop", - "all" + "NONE", + "AND", + "NOT", + "OR", + "PREFIX", + "PHRASE", + "PRECEDENCE", + "ESCAPE", + "WHITESPACE", + "FUZZY", + "NEAR", + "SLOP", + "ALL" ] }, "_types.query_dsl:SpanContainingQuery": { @@ -62736,10 +62736,10 @@ "cluster.allocation_explain:AllocationExplainDecision": { "type": "string", "enum": [ - "no", - "yes", - "throttle", - "always" + "NO", + "YES", + "THROTTLE", + "ALWAYS" ] }, "cluster.allocation_explain:ClusterInfo": { @@ -63034,21 +63034,21 @@ "cluster.allocation_explain:UnassignedInformationReason": { "type": "string", "enum": [ - "index_created", - "cluster_recovered", - "index_reopened", - "dangling_index_imported", - "new_index_restored", - "existing_index_restored", - "replica_added", - "allocation_failed", - "node_left", - "reroute_cancelled", - "reinitialized", - "reallocated_replica", - "primary_failed", - "forced_empty_primary", - "manual_allocation" + "INDEX_CREATED", + "CLUSTER_RECOVERED", + "INDEX_REOPENED", + "DANGLING_INDEX_IMPORTED", + "NEW_INDEX_RESTORED", + "EXISTING_INDEX_RESTORED", + "REPLICA_ADDED", + "ALLOCATION_FAILED", + "NODE_LEFT", + "REROUTE_CANCELLED", + "REINITIALIZED", + "REALLOCATED_REPLICA", + "PRIMARY_FAILED", + "FORCED_EMPTY_PRIMARY", + "MANUAL_ALLOCATION" ] }, "cluster._types:ComponentTemplate": { @@ -69285,10 +69285,10 @@ "enrich.execute_policy:EnrichPolicyPhase": { "type": "string", "enum": [ - "scheduled", - "running", - "complete", - "failed" + "SCHEDULED", + "RUNNING", + "COMPLETE", + "FAILED" ] }, "enrich._types:Summary": { @@ -70859,9 +70859,9 @@ "_types:LifecycleOperationMode": { "type": "string", "enum": [ - "running", - "stopping", - "stopped" + "RUNNING", + "STOPPING", + "STOPPED" ] }, "_global.health_report:SlmIndicator": { @@ -73880,10 +73880,10 @@ "indices.stats:ShardRoutingState": { "type": "string", "enum": [ - "unassigned", - "initializing", - "started", - "relocating" + "UNASSIGNED", + "INITIALIZING", + "STARTED", + "RELOCATING" ] }, "indices.stats:ShardSequenceNumber": { @@ -77085,10 +77085,10 @@ "migration.get_feature_upgrade_status:MigrationStatus": { "type": "string", "enum": [ - "no_migration_needed", - "migration_needed", - "in_progress", - "error" + "NO_MIGRATION_NEEDED", + "MIGRATION_NEEDED", + "IN_PROGRESS", + "ERROR" ] }, "migration.get_feature_upgrade_status:MigrationFeatureIndexInfo": { @@ -90333,11 +90333,11 @@ "snapshot._types:ShardsStatsStage": { "type": "string", "enum": [ - "done", - "failure", - "finalize", - "init", - "started" + "DONE", + "FAILURE", + "FINALIZE", + "INIT", + "STARTED" ] }, "snapshot._types:ShardsStatsSummary": { diff --git a/output/openapi/elasticsearch-serverless-openapi.json b/output/openapi/elasticsearch-serverless-openapi.json index b646f04586..218ea263c3 100644 --- a/output/openapi/elasticsearch-serverless-openapi.json +++ b/output/openapi/elasticsearch-serverless-openapi.json @@ -29590,19 +29590,19 @@ "_types.query_dsl:SimpleQueryStringFlag": { "type": "string", "enum": [ - "none", - "and", - "not", - "or", - "prefix", - "phrase", - "precedence", - "escape", - "whitespace", - "fuzzy", - "near", - "slop", - "all" + "NONE", + "AND", + "NOT", + "OR", + "PREFIX", + "PHRASE", + "PRECEDENCE", + "ESCAPE", + "WHITESPACE", + "FUZZY", + "NEAR", + "SLOP", + "ALL" ] }, "_types.query_dsl:SpanContainingQuery": { @@ -44834,10 +44834,10 @@ "enrich.execute_policy:EnrichPolicyPhase": { "type": "string", "enum": [ - "scheduled", - "running", - "complete", - "failed" + "SCHEDULED", + "RUNNING", + "COMPLETE", + "FAILED" ] }, "enrich._types:Summary": { diff --git a/output/schema/schema-serverless.json b/output/schema/schema-serverless.json index a8dc0bd6e6..282b688ac0 100644 --- a/output/schema/schema-serverless.json +++ b/output/schema/schema-serverless.json @@ -47241,7 +47241,7 @@ "name": "SearchType", "namespace": "_types" }, - "specLocation": "_types/common.ts#L264-L269" + "specLocation": "_types/common.ts#L272-L277" }, { "kind": "interface", @@ -69294,7 +69294,7 @@ "name": "SuggestMode", "namespace": "_types" }, - "specLocation": "_types/common.ts#L271-L284" + "specLocation": "_types/common.ts#L279-L292" }, { "kind": "interface", @@ -78299,7 +78299,7 @@ "name": "ClusterInfoTarget", "namespace": "_types" }, - "specLocation": "_types/common.ts#L370-L376" + "specLocation": "_types/common.ts#L378-L384" }, { "kind": "type_alias", @@ -78307,7 +78307,7 @@ "name": "ClusterInfoTargets", "namespace": "_types" }, - "specLocation": "_types/common.ts#L378-L378", + "specLocation": "_types/common.ts#L386-L386", "type": { "items": [ { @@ -78724,19 +78724,19 @@ "name": "Level", "namespace": "_types" }, - "specLocation": "_types/common.ts#L238-L242" + "specLocation": "_types/common.ts#L246-L250" }, { "kind": "enum", "members": [ { - "name": "running" + "name": "RUNNING" }, { - "name": "stopping" + "name": "STOPPING" }, { - "name": "stopped" + "name": "STOPPED" } ], "name": { @@ -78994,7 +78994,7 @@ "name": "OpType", "namespace": "_types" }, - "specLocation": "_types/common.ts#L244-L253" + "specLocation": "_types/common.ts#L252-L261" }, { "kind": "type_alias", @@ -79086,7 +79086,7 @@ "name": "Refresh", "namespace": "_types" }, - "specLocation": "_types/common.ts#L255-L262" + "specLocation": "_types/common.ts#L263-L270" }, { "kind": "enum", @@ -79226,7 +79226,7 @@ "name": "Slices", "namespace": "_types" }, - "specLocation": "_types/common.ts#L353-L358", + "specLocation": "_types/common.ts#L361-L366", "type": { "items": [ { @@ -79259,7 +79259,7 @@ "name": "SlicesCalculation", "namespace": "_types" }, - "specLocation": "_types/common.ts#L360-L368" + "specLocation": "_types/common.ts#L368-L376" }, { "kind": "type_alias", @@ -79326,7 +79326,7 @@ "name": "ThreadType", "namespace": "_types" }, - "specLocation": "_types/common.ts#L286-L292" + "specLocation": "_types/common.ts#L294-L300" }, { "description": "Time of day, expressed as HH:MM:SS", @@ -79520,7 +79520,7 @@ "name": "WaitForActiveShardOptions", "namespace": "_types" }, - "specLocation": "_types/common.ts#L294-L298" + "specLocation": "_types/common.ts#L302-L306" }, { "codegenNames": [ @@ -79579,7 +79579,7 @@ "name": "WaitForEvents", "namespace": "_types" }, - "specLocation": "_types/common.ts#L300-L307" + "specLocation": "_types/common.ts#L308-L315" }, { "kind": "type_alias", @@ -92645,55 +92645,55 @@ "members": [ { "description": "Disables all operators.", - "name": "none" + "name": "NONE" }, { "description": "Enables the `+` AND operator.", - "name": "and" + "name": "AND" }, { "description": "Enables the `-` NOT operator.", - "name": "not" + "name": "NOT" }, { "description": "Enables the `\\|` OR operator.", - "name": "or" + "name": "OR" }, { "description": "Enables the `*` prefix operator.", - "name": "prefix" + "name": "PREFIX" }, { "description": "Enables the `\"` quotes operator used to search for phrases.", - "name": "phrase" + "name": "PHRASE" }, { "description": "Enables the `(` and `)` operators to control operator precedence.", - "name": "precedence" + "name": "PRECEDENCE" }, { "description": "Enables `\\` as an escape character.", - "name": "escape" + "name": "ESCAPE" }, { "description": "Enables whitespace as split characters.", - "name": "whitespace" + "name": "WHITESPACE" }, { "description": "Enables the `~N` operator after a word, where `N` is an integer denoting the allowed edit distance for matching.", - "name": "fuzzy" + "name": "FUZZY" }, { "description": "Enables the `~N` operator, after a phrase where `N` is the maximum number of positions allowed between matching tokens.\nSynonymous to `SLOP`.", - "name": "near" + "name": "NEAR" }, { "description": "Enables the `~N` operator, after a phrase where `N` is maximum number of positions allowed between matching tokens.\nSynonymous to `NEAR`.", - "name": "slop" + "name": "SLOP" }, { "description": "Enables all optional operators.", - "name": "all" + "name": "ALL" } ], "name": { @@ -93942,16 +93942,16 @@ "kind": "enum", "members": [ { - "name": "no" + "name": "NO" }, { - "name": "yes" + "name": "YES" }, { - "name": "throttle" + "name": "THROTTLE" }, { - "name": "always" + "name": "ALWAYS" } ], "name": { @@ -93998,49 +93998,49 @@ "kind": "enum", "members": [ { - "name": "index_created" + "name": "INDEX_CREATED" }, { - "name": "cluster_recovered" + "name": "CLUSTER_RECOVERED" }, { - "name": "index_reopened" + "name": "INDEX_REOPENED" }, { - "name": "dangling_index_imported" + "name": "DANGLING_INDEX_IMPORTED" }, { - "name": "new_index_restored" + "name": "NEW_INDEX_RESTORED" }, { - "name": "existing_index_restored" + "name": "EXISTING_INDEX_RESTORED" }, { - "name": "replica_added" + "name": "REPLICA_ADDED" }, { - "name": "allocation_failed" + "name": "ALLOCATION_FAILED" }, { - "name": "node_left" + "name": "NODE_LEFT" }, { - "name": "reroute_cancelled" + "name": "REROUTE_CANCELLED" }, { - "name": "reinitialized" + "name": "REINITIALIZED" }, { - "name": "reallocated_replica" + "name": "REALLOCATED_REPLICA" }, { - "name": "primary_failed" + "name": "PRIMARY_FAILED" }, { - "name": "forced_empty_primary" + "name": "FORCED_EMPTY_PRIMARY" }, { - "name": "manual_allocation" + "name": "MANUAL_ALLOCATION" } ], "name": { @@ -95169,16 +95169,16 @@ "kind": "enum", "members": [ { - "name": "scheduled" + "name": "SCHEDULED" }, { - "name": "running" + "name": "RUNNING" }, { - "name": "complete" + "name": "COMPLETE" }, { - "name": "failed" + "name": "FAILED" } ], "name": { @@ -97276,16 +97276,16 @@ "kind": "enum", "members": [ { - "name": "unassigned" + "name": "UNASSIGNED" }, { - "name": "initializing" + "name": "INITIALIZING" }, { - "name": "started" + "name": "STARTED" }, { - "name": "relocating" + "name": "RELOCATING" } ], "name": { @@ -97806,16 +97806,16 @@ "kind": "enum", "members": [ { - "name": "no_migration_needed" + "name": "NO_MIGRATION_NEEDED" }, { - "name": "migration_needed" + "name": "MIGRATION_NEEDED" }, { - "name": "in_progress" + "name": "IN_PROGRESS" }, { - "name": "error" + "name": "ERROR" } ], "name": { @@ -107751,23 +107751,23 @@ "members": [ { "description": "The number of shards in the snapshot that were successfully stored in the repository.", - "name": "done" + "name": "DONE" }, { "description": "The number of shards in the snapshot that were not successfully stored in the repository.", - "name": "failure" + "name": "FAILURE" }, { "description": "The number of shards in the snapshot that are in the finalizing stage of being stored in the repository.", - "name": "finalize" + "name": "FINALIZE" }, { "description": "The number of shards in the snapshot that are in the initializing stage of being stored in the repository.", - "name": "init" + "name": "INIT" }, { "description": "The number of shards in the snapshot that are in the started stage of being stored in the repository.", - "name": "started" + "name": "STARTED" } ], "name": { @@ -110329,7 +110329,7 @@ } } ], - "specLocation": "_types/common.ts#L309-L322" + "specLocation": "_types/common.ts#L317-L330" }, { "attachedBehaviors": [ @@ -134590,7 +134590,7 @@ } } ], - "specLocation": "_types/common.ts#L324-L351" + "specLocation": "_types/common.ts#L332-L359" }, { "kind": "interface", diff --git a/output/schema/schema.json b/output/schema/schema.json index 22c3311778..613513b51e 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -45503,7 +45503,7 @@ "name": "ClusterInfoTarget", "namespace": "_types" }, - "specLocation": "_types/common.ts#L370-L376" + "specLocation": "_types/common.ts#L378-L384" }, { "kind": "type_alias", @@ -45511,7 +45511,7 @@ "name": "ClusterInfoTargets", "namespace": "_types" }, - "specLocation": "_types/common.ts#L378-L378", + "specLocation": "_types/common.ts#L386-L386", "type": { "kind": "union_of", "items": [ @@ -48114,7 +48114,7 @@ } } ], - "specLocation": "_types/common.ts#L324-L351" + "specLocation": "_types/common.ts#L332-L359" }, { "kind": "interface", @@ -48257,7 +48257,7 @@ } } ], - "specLocation": "_types/common.ts#L309-L322" + "specLocation": "_types/common.ts#L317-L330" }, { "kind": "type_alias", @@ -48728,19 +48728,19 @@ "name": "Level", "namespace": "_types" }, - "specLocation": "_types/common.ts#L238-L242" + "specLocation": "_types/common.ts#L246-L250" }, { "kind": "enum", "members": [ { - "name": "running" + "name": "RUNNING" }, { - "name": "stopping" + "name": "STOPPING" }, { - "name": "stopped" + "name": "STOPPED" } ], "name": { @@ -49660,7 +49660,7 @@ "name": "OpType", "namespace": "_types" }, - "specLocation": "_types/common.ts#L244-L253" + "specLocation": "_types/common.ts#L252-L261" }, { "kind": "type_alias", @@ -50164,7 +50164,7 @@ "name": "Refresh", "namespace": "_types" }, - "specLocation": "_types/common.ts#L255-L262" + "specLocation": "_types/common.ts#L263-L270" }, { "kind": "interface", @@ -51422,7 +51422,7 @@ "name": "SearchType", "namespace": "_types" }, - "specLocation": "_types/common.ts#L264-L269" + "specLocation": "_types/common.ts#L272-L277" }, { "kind": "interface", @@ -51972,7 +51972,7 @@ "name": "Slices", "namespace": "_types" }, - "specLocation": "_types/common.ts#L353-L358", + "specLocation": "_types/common.ts#L361-L366", "type": { "kind": "union_of", "items": [ @@ -52005,7 +52005,7 @@ "name": "SlicesCalculation", "namespace": "_types" }, - "specLocation": "_types/common.ts#L360-L368" + "specLocation": "_types/common.ts#L368-L376" }, { "kind": "type_alias", @@ -52468,7 +52468,7 @@ "name": "SuggestMode", "namespace": "_types" }, - "specLocation": "_types/common.ts#L271-L284" + "specLocation": "_types/common.ts#L279-L292" }, { "kind": "type_alias", @@ -52698,7 +52698,7 @@ "name": "ThreadType", "namespace": "_types" }, - "specLocation": "_types/common.ts#L286-L292" + "specLocation": "_types/common.ts#L294-L300" }, { "kind": "type_alias", @@ -53148,7 +53148,7 @@ "name": "WaitForActiveShardOptions", "namespace": "_types" }, - "specLocation": "_types/common.ts#L294-L298" + "specLocation": "_types/common.ts#L302-L306" }, { "kind": "type_alias", @@ -53207,7 +53207,7 @@ "name": "WaitForEvents", "namespace": "_types" }, - "specLocation": "_types/common.ts#L300-L307" + "specLocation": "_types/common.ts#L308-L315" }, { "kind": "interface", @@ -88033,55 +88033,55 @@ "members": [ { "description": "Disables all operators.", - "name": "none" + "name": "NONE" }, { "description": "Enables the `+` AND operator.", - "name": "and" + "name": "AND" }, { "description": "Enables the `-` NOT operator.", - "name": "not" + "name": "NOT" }, { "description": "Enables the `\\|` OR operator.", - "name": "or" + "name": "OR" }, { "description": "Enables the `*` prefix operator.", - "name": "prefix" + "name": "PREFIX" }, { "description": "Enables the `\"` quotes operator used to search for phrases.", - "name": "phrase" + "name": "PHRASE" }, { "description": "Enables the `(` and `)` operators to control operator precedence.", - "name": "precedence" + "name": "PRECEDENCE" }, { "description": "Enables `\\` as an escape character.", - "name": "escape" + "name": "ESCAPE" }, { "description": "Enables whitespace as split characters.", - "name": "whitespace" + "name": "WHITESPACE" }, { "description": "Enables the `~N` operator after a word, where `N` is an integer denoting the allowed edit distance for matching.", - "name": "fuzzy" + "name": "FUZZY" }, { "description": "Enables the `~N` operator, after a phrase where `N` is the maximum number of positions allowed between matching tokens.\nSynonymous to `SLOP`.", - "name": "near" + "name": "NEAR" }, { "description": "Enables the `~N` operator, after a phrase where `N` is maximum number of positions allowed between matching tokens.\nSynonymous to `NEAR`.", - "name": "slop" + "name": "SLOP" }, { "description": "Enables all optional operators.", - "name": "all" + "name": "ALL" } ], "name": { @@ -109154,16 +109154,16 @@ "kind": "enum", "members": [ { - "name": "no" + "name": "NO" }, { - "name": "yes" + "name": "YES" }, { - "name": "throttle" + "name": "THROTTLE" }, { - "name": "always" + "name": "ALWAYS" } ], "name": { @@ -110328,49 +110328,49 @@ "kind": "enum", "members": [ { - "name": "index_created" + "name": "INDEX_CREATED" }, { - "name": "cluster_recovered" + "name": "CLUSTER_RECOVERED" }, { - "name": "index_reopened" + "name": "INDEX_REOPENED" }, { - "name": "dangling_index_imported" + "name": "DANGLING_INDEX_IMPORTED" }, { - "name": "new_index_restored" + "name": "NEW_INDEX_RESTORED" }, { - "name": "existing_index_restored" + "name": "EXISTING_INDEX_RESTORED" }, { - "name": "replica_added" + "name": "REPLICA_ADDED" }, { - "name": "allocation_failed" + "name": "ALLOCATION_FAILED" }, { - "name": "node_left" + "name": "NODE_LEFT" }, { - "name": "reroute_cancelled" + "name": "REROUTE_CANCELLED" }, { - "name": "reinitialized" + "name": "REINITIALIZED" }, { - "name": "reallocated_replica" + "name": "REALLOCATED_REPLICA" }, { - "name": "primary_failed" + "name": "PRIMARY_FAILED" }, { - "name": "forced_empty_primary" + "name": "FORCED_EMPTY_PRIMARY" }, { - "name": "manual_allocation" + "name": "MANUAL_ALLOCATION" } ], "name": { @@ -120824,16 +120824,16 @@ "kind": "enum", "members": [ { - "name": "scheduled" + "name": "SCHEDULED" }, { - "name": "running" + "name": "RUNNING" }, { - "name": "complete" + "name": "COMPLETE" }, { - "name": "failed" + "name": "FAILED" } ], "name": { @@ -145366,16 +145366,16 @@ "kind": "enum", "members": [ { - "name": "unassigned" + "name": "UNASSIGNED" }, { - "name": "initializing" + "name": "INITIALIZING" }, { - "name": "started" + "name": "STARTED" }, { - "name": "relocating" + "name": "RELOCATING" } ], "name": { @@ -156595,16 +156595,16 @@ "kind": "enum", "members": [ { - "name": "no_migration_needed" + "name": "NO_MIGRATION_NEEDED" }, { - "name": "migration_needed" + "name": "MIGRATION_NEEDED" }, { - "name": "in_progress" + "name": "IN_PROGRESS" }, { - "name": "error" + "name": "ERROR" } ], "name": { @@ -211497,23 +211497,23 @@ "members": [ { "description": "The number of shards in the snapshot that were successfully stored in the repository.", - "name": "done" + "name": "DONE" }, { "description": "The number of shards in the snapshot that were not successfully stored in the repository.", - "name": "failure" + "name": "FAILURE" }, { "description": "The number of shards in the snapshot that are in the finalizing stage of being stored in the repository.", - "name": "finalize" + "name": "FINALIZE" }, { "description": "The number of shards in the snapshot that are in the initializing stage of being stored in the repository.", - "name": "init" + "name": "INIT" }, { "description": "The number of shards in the snapshot that are in the started stage of being stored in the repository.", - "name": "started" + "name": "STARTED" } ], "name": { diff --git a/output/typescript/types.ts b/output/typescript/types.ts index 961899fb06..09a7c67f73 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -2543,7 +2543,7 @@ export interface LatLonGeoLocation { export type Level = 'cluster' | 'indices' | 'shards' -export type LifecycleOperationMode = 'running' | 'stopping' | 'stopped' +export type LifecycleOperationMode = 'RUNNING' | 'STOPPING' | 'STOPPED' export type MapboxVectorTiles = ArrayBuffer @@ -6567,7 +6567,7 @@ export interface QueryDslShapeQueryKeys extends QueryDslQueryBase { export type QueryDslShapeQuery = QueryDslShapeQueryKeys & { [property: string]: QueryDslShapeFieldQuery | boolean | float | string } -export type QueryDslSimpleQueryStringFlag = 'none' | 'and' | 'not' | 'or' | 'prefix' | 'phrase' | 'precedence' | 'escape' | 'whitespace' | 'fuzzy' | 'near' | 'slop' | 'all' +export type QueryDslSimpleQueryStringFlag = 'NONE' | 'AND' | 'NOT' | 'OR' | 'PREFIX' | 'PHRASE' | 'PRECEDENCE' | 'ESCAPE' | 'WHITESPACE' | 'FUZZY' | 'NEAR' | 'SLOP' | 'ALL' export type QueryDslSimpleQueryStringFlags = SpecUtilsPipeSeparatedFlags @@ -9110,7 +9110,7 @@ export interface ClusterAllocationExplainAllocationDecision { explanation: string } -export type ClusterAllocationExplainAllocationExplainDecision = 'no' | 'yes' | 'throttle' | 'always' +export type ClusterAllocationExplainAllocationExplainDecision = 'NO' | 'YES' | 'THROTTLE' | 'ALWAYS' export interface ClusterAllocationExplainAllocationStore { allocation_id: string @@ -9224,7 +9224,7 @@ export interface ClusterAllocationExplainUnassignedInformation { allocation_status?: string } -export type ClusterAllocationExplainUnassignedInformationReason = 'index_created' | 'cluster_recovered' | 'index_reopened' | 'dangling_index_imported' | 'new_index_restored' | 'existing_index_restored' | 'replica_added' | 'allocation_failed' | 'node_left' | 'reroute_cancelled' | 'reinitialized' | 'reallocated_replica' | 'primary_failed' | 'forced_empty_primary' | 'manual_allocation' +export type ClusterAllocationExplainUnassignedInformationReason = 'INDEX_CREATED' | 'CLUSTER_RECOVERED' | 'INDEX_REOPENED' | 'DANGLING_INDEX_IMPORTED' | 'NEW_INDEX_RESTORED' | 'EXISTING_INDEX_RESTORED' | 'REPLICA_ADDED' | 'ALLOCATION_FAILED' | 'NODE_LEFT' | 'REROUTE_CANCELLED' | 'REINITIALIZED' | 'REALLOCATED_REPLICA' | 'PRIMARY_FAILED' | 'FORCED_EMPTY_PRIMARY' | 'MANUAL_ALLOCATION' export interface ClusterDeleteComponentTemplateRequest extends RequestBase { name: Names @@ -10402,7 +10402,7 @@ export interface EnrichDeletePolicyRequest extends RequestBase { export type EnrichDeletePolicyResponse = AcknowledgedResponseBase -export type EnrichExecutePolicyEnrichPolicyPhase = 'scheduled' | 'running' | 'complete' | 'failed' +export type EnrichExecutePolicyEnrichPolicyPhase = 'SCHEDULED' | 'RUNNING' | 'COMPLETE' | 'FAILED' export interface EnrichExecutePolicyExecuteEnrichPolicyStatus { phase: EnrichExecutePolicyEnrichPolicyPhase @@ -12915,7 +12915,7 @@ export interface IndicesStatsShardRouting { state: IndicesStatsShardRoutingState } -export type IndicesStatsShardRoutingState = 'unassigned' | 'initializing' | 'started' | 'relocating' +export type IndicesStatsShardRoutingState = 'UNASSIGNED' | 'INITIALIZING' | 'STARTED' | 'RELOCATING' export interface IndicesStatsShardSequenceNumber { global_checkpoint: long @@ -14081,7 +14081,7 @@ export interface MigrationGetFeatureUpgradeStatusMigrationFeatureIndexInfo { failure_cause?: ErrorCause } -export type MigrationGetFeatureUpgradeStatusMigrationStatus = 'no_migration_needed' | 'migration_needed' | 'in_progress' | 'error' +export type MigrationGetFeatureUpgradeStatusMigrationStatus = 'NO_MIGRATION_NEEDED' | 'MIGRATION_NEEDED' | 'IN_PROGRESS' | 'ERROR' export interface MigrationGetFeatureUpgradeStatusRequest extends RequestBase { } @@ -19817,7 +19817,7 @@ export interface SnapshotShardsStats { total: long } -export type SnapshotShardsStatsStage = 'done' | 'failure' | 'finalize' | 'init' | 'started' +export type SnapshotShardsStatsStage = 'DONE' | 'FAILURE' | 'FINALIZE' | 'INIT' | 'STARTED' export interface SnapshotShardsStatsSummary { incremental: SnapshotShardsStatsSummaryItem diff --git a/specification/_types/Lifecycle.ts b/specification/_types/Lifecycle.ts index af4caeaa1f..b44bd9a6ac 100644 --- a/specification/_types/Lifecycle.ts +++ b/specification/_types/Lifecycle.ts @@ -18,7 +18,7 @@ */ export enum LifecycleOperationMode { - running, - stopping, - stopped + RUNNING, + STOPPING, + STOPPED } diff --git a/specification/_types/common.ts b/specification/_types/common.ts index 11ccd26938..73847e459e 100644 --- a/specification/_types/common.ts +++ b/specification/_types/common.ts @@ -235,6 +235,14 @@ export enum HealthStatus { red } +export enum HttpMethod { + GET, + POST, + PUT, + DELETE, + HEAD +} + export enum Level { cluster, indices, diff --git a/specification/_types/query_dsl/fulltext.ts b/specification/_types/query_dsl/fulltext.ts index ef184482b3..a03ff6ed38 100644 --- a/specification/_types/query_dsl/fulltext.ts +++ b/specification/_types/query_dsl/fulltext.ts @@ -730,57 +730,57 @@ export enum SimpleQueryStringFlag { /** * Disables all operators. */ - none, + NONE, /** * Enables the `+` AND operator. */ - and, + AND, /** * Enables the `-` NOT operator. */ - not, + NOT, /** * Enables the `\|` OR operator. */ - or, + OR, /** * Enables the `*` prefix operator. */ - prefix, + PREFIX, /** * Enables the `"` quotes operator used to search for phrases. */ - phrase, + PHRASE, /** * Enables the `(` and `)` operators to control operator precedence. */ - precedence, + PRECEDENCE, /** * Enables `\` as an escape character. */ - escape, + ESCAPE, /** * Enables whitespace as split characters. */ - whitespace, + WHITESPACE, /** * Enables the `~N` operator after a word, where `N` is an integer denoting the allowed edit distance for matching. */ - fuzzy, + FUZZY, /** * Enables the `~N` operator, after a phrase where `N` is the maximum number of positions allowed between matching tokens. * Synonymous to `SLOP`. */ - near, + NEAR, /** * Enables the `~N` operator, after a phrase where `N` is maximum number of positions allowed between matching tokens. * Synonymous to `NEAR`. */ - slop, + SLOP, /** * Enables all optional operators. */ - all + ALL } /** diff --git a/specification/cat/transforms/types.ts b/specification/cat/transforms/types.ts index 2decfbdd52..f5f14fc5a9 100644 --- a/specification/cat/transforms/types.ts +++ b/specification/cat/transforms/types.ts @@ -197,12 +197,12 @@ export class TransformsRecord { } export enum TransformState { - started, - indexing, - aborting, - stopping, - stopped, - failed + STARTED, + INDEXING, + ABORTING, + STOPPING, + STOPPED, + FAILED } export enum TransformType { diff --git a/specification/cluster/allocation_explain/types.ts b/specification/cluster/allocation_explain/types.ts index 752cb66ada..02a090e1c3 100644 --- a/specification/cluster/allocation_explain/types.ts +++ b/specification/cluster/allocation_explain/types.ts @@ -31,10 +31,10 @@ export class AllocationDecision { } export enum AllocationExplainDecision { - no, - yes, - throttle, - always + NO, + YES, + THROTTLE, + ALWAYS } export class AllocationStore { @@ -117,12 +117,12 @@ export class NodeAllocationExplanation { } export enum StoreCopy { - none, - available, - corrupt, - io_error, - stale, - unknown + NONE, + AVAILABLE, + CORRUPT, + IO_ERROR, + STALE, + UNKNOWN } export class UnassignedInformation { @@ -139,19 +139,19 @@ export class UnassignedInformation { * @doc_id cat-shards */ export enum UnassignedInformationReason { - index_created, - cluster_recovered, - index_reopened, - dangling_index_imported, - new_index_restored, - existing_index_restored, - replica_added, - allocation_failed, - node_left, - reroute_cancelled, - reinitialized, - reallocated_replica, - primary_failed, - forced_empty_primary, - manual_allocation + INDEX_CREATED, + CLUSTER_RECOVERED, + INDEX_REOPENED, + DANGLING_INDEX_IMPORTED, + NEW_INDEX_RESTORED, + EXISTING_INDEX_RESTORED, + REPLICA_ADDED, + ALLOCATION_FAILED, + NODE_LEFT, + REROUTE_CANCELLED, + REINITIALIZED, + REALLOCATED_REPLICA, + PRIMARY_FAILED, + FORCED_EMPTY_PRIMARY, + MANUAL_ALLOCATION } diff --git a/specification/enrich/execute_policy/types.ts b/specification/enrich/execute_policy/types.ts index 9c04fe482c..9a9a21b011 100644 --- a/specification/enrich/execute_policy/types.ts +++ b/specification/enrich/execute_policy/types.ts @@ -22,8 +22,8 @@ export class ExecuteEnrichPolicyStatus { } export enum EnrichPolicyPhase { - scheduled, - running, - complete, - failed + SCHEDULED, + RUNNING, + COMPLETE, + FAILED } diff --git a/specification/esql/_types/Pragmas.ts b/specification/esql/_types/Pragmas.ts index bb56973a92..9bd608297f 100644 --- a/specification/esql/_types/Pragmas.ts +++ b/specification/esql/_types/Pragmas.ts @@ -18,7 +18,7 @@ */ export enum DataPartitioning { - shard, - segment, - doc + SHARD, + SEGMENT, + DOC } diff --git a/specification/indices/stats/types.ts b/specification/indices/stats/types.ts index 6cd116e9d6..d9049ebf0c 100644 --- a/specification/indices/stats/types.ts +++ b/specification/indices/stats/types.ts @@ -167,10 +167,10 @@ export class ShardRouting { } export enum ShardRoutingState { - unassigned, - initializing, - started, - relocating + UNASSIGNED, + INITIALIZING, + STARTED, + RELOCATING } export class ShardSequenceNumber { diff --git a/specification/migration/get_feature_upgrade_status/GetFeatureUpgradeStatusResponse.ts b/specification/migration/get_feature_upgrade_status/GetFeatureUpgradeStatusResponse.ts index e7599ee4cf..5e9532d965 100644 --- a/specification/migration/get_feature_upgrade_status/GetFeatureUpgradeStatusResponse.ts +++ b/specification/migration/get_feature_upgrade_status/GetFeatureUpgradeStatusResponse.ts @@ -28,10 +28,10 @@ export class Response { } export enum MigrationStatus { - no_migration_needed, - migration_needed, - in_progress, - error + NO_MIGRATION_NEEDED, + MIGRATION_NEEDED, + IN_PROGRESS, + ERROR } export class MigrationFeature { diff --git a/specification/snapshot/_types/SnapshotShardsStatsStage.ts b/specification/snapshot/_types/SnapshotShardsStatsStage.ts index 92031e117c..aebe460bca 100644 --- a/specification/snapshot/_types/SnapshotShardsStatsStage.ts +++ b/specification/snapshot/_types/SnapshotShardsStatsStage.ts @@ -19,13 +19,13 @@ export enum ShardsStatsStage { /** The number of shards in the snapshot that were successfully stored in the repository. */ - done, + DONE, /** The number of shards in the snapshot that were not successfully stored in the repository. */ - failure, + FAILURE, /** The number of shards in the snapshot that are in the finalizing stage of being stored in the repository. */ - finalize, + FINALIZE, /** The number of shards in the snapshot that are in the initializing stage of being stored in the repository. */ - init, + INIT, /** The number of shards in the snapshot that are in the started stage of being stored in the repository. */ - started + STARTED }