Skip to content

Commit e2d9086

Browse files
committed
Switch enums from upper case to lower case
1 parent 0d745ee commit e2d9086

File tree

10 files changed

+67
-75
lines changed

10 files changed

+67
-75
lines changed

specification/_types/Lifecycle.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
*/
1919

2020
export enum LifecycleOperationMode {
21-
RUNNING,
22-
STOPPING,
23-
STOPPED
21+
running,
22+
stopping,
23+
stopped
2424
}

specification/_types/common.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -235,14 +235,6 @@ export enum HealthStatus {
235235
red
236236
}
237237

238-
export enum HttpMethod {
239-
GET,
240-
POST,
241-
PUT,
242-
DELETE,
243-
HEAD
244-
}
245-
246238
export enum Level {
247239
cluster,
248240
indices,

specification/_types/query_dsl/fulltext.ts

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -730,57 +730,57 @@ export enum SimpleQueryStringFlag {
730730
/**
731731
* Disables all operators.
732732
*/
733-
NONE,
733+
none,
734734
/**
735735
* Enables the `+` AND operator.
736736
*/
737-
AND,
737+
and,
738738
/**
739739
* Enables the `-` NOT operator.
740740
*/
741-
NOT,
741+
not,
742742
/**
743743
* Enables the `\|` OR operator.
744744
*/
745-
OR,
745+
or,
746746
/**
747747
* Enables the `*` prefix operator.
748748
*/
749-
PREFIX,
749+
prefix,
750750
/**
751751
* Enables the `"` quotes operator used to search for phrases.
752752
*/
753-
PHRASE,
753+
phrase,
754754
/**
755755
* Enables the `(` and `)` operators to control operator precedence.
756756
*/
757-
PRECEDENCE,
757+
precedence,
758758
/**
759759
* Enables `\` as an escape character.
760760
*/
761-
ESCAPE,
761+
escape,
762762
/**
763763
* Enables whitespace as split characters.
764764
*/
765-
WHITESPACE,
765+
whitespace,
766766
/**
767767
* Enables the `~N` operator after a word, where `N` is an integer denoting the allowed edit distance for matching.
768768
*/
769-
FUZZY,
769+
fuzzy,
770770
/**
771771
* Enables the `~N` operator, after a phrase where `N` is the maximum number of positions allowed between matching tokens.
772772
* Synonymous to `SLOP`.
773773
*/
774-
NEAR,
774+
near,
775775
/**
776776
* Enables the `~N` operator, after a phrase where `N` is maximum number of positions allowed between matching tokens.
777777
* Synonymous to `NEAR`.
778778
*/
779-
SLOP,
779+
slop,
780780
/**
781781
* Enables all optional operators.
782782
*/
783-
ALL
783+
all
784784
}
785785

786786
/**

specification/cat/transforms/types.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -197,12 +197,12 @@ export class TransformsRecord {
197197
}
198198

199199
export enum TransformState {
200-
STARTED,
201-
INDEXING,
202-
ABORTING,
203-
STOPPING,
204-
STOPPED,
205-
FAILED
200+
started,
201+
indexing,
202+
aborting,
203+
stopping,
204+
stopped,
205+
failed
206206
}
207207

208208
export enum TransformType {

specification/cluster/allocation_explain/types.ts

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,10 @@ export class AllocationDecision {
3131
}
3232

3333
export enum AllocationExplainDecision {
34-
NO,
35-
YES,
36-
THROTTLE,
37-
ALWAYS
34+
no,
35+
yes,
36+
throttle,
37+
always
3838
}
3939

4040
export class AllocationStore {
@@ -117,12 +117,12 @@ export class NodeAllocationExplanation {
117117
}
118118

119119
export enum StoreCopy {
120-
NONE,
121-
AVAILABLE,
122-
CORRUPT,
123-
IO_ERROR,
124-
STALE,
125-
UNKNOWN
120+
none,
121+
available,
122+
corrupt,
123+
io_error,
124+
stale,
125+
unknown
126126
}
127127

128128
export class UnassignedInformation {
@@ -139,19 +139,19 @@ export class UnassignedInformation {
139139
* @doc_id cat-shards
140140
*/
141141
export enum UnassignedInformationReason {
142-
INDEX_CREATED,
143-
CLUSTER_RECOVERED,
144-
INDEX_REOPENED,
145-
DANGLING_INDEX_IMPORTED,
146-
NEW_INDEX_RESTORED,
147-
EXISTING_INDEX_RESTORED,
148-
REPLICA_ADDED,
149-
ALLOCATION_FAILED,
150-
NODE_LEFT,
151-
REROUTE_CANCELLED,
152-
REINITIALIZED,
153-
REALLOCATED_REPLICA,
154-
PRIMARY_FAILED,
155-
FORCED_EMPTY_PRIMARY,
156-
MANUAL_ALLOCATION
142+
index_created,
143+
cluster_recovered,
144+
index_reopened,
145+
dangling_index_imported,
146+
new_index_restored,
147+
existing_index_restored,
148+
replica_added,
149+
allocation_failed,
150+
node_left,
151+
reroute_cancelled,
152+
reinitialized,
153+
reallocated_replica,
154+
primary_failed,
155+
forced_empty_primary,
156+
manual_allocation
157157
}

specification/enrich/execute_policy/types.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ export class ExecuteEnrichPolicyStatus {
2222
}
2323

2424
export enum EnrichPolicyPhase {
25-
SCHEDULED,
26-
RUNNING,
27-
COMPLETE,
28-
FAILED
25+
scheduled,
26+
running,
27+
complete,
28+
failed,
2929
}

specification/esql/_types/Pragmas.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
*/
1919

2020
export enum DataPartitioning {
21-
SHARD,
22-
SEGMENT,
23-
DOC
21+
shard,
22+
segment,
23+
doc,
2424
}

specification/indices/stats/types.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -167,10 +167,10 @@ export class ShardRouting {
167167
}
168168

169169
export enum ShardRoutingState {
170-
UNASSIGNED,
171-
INITIALIZING,
172-
STARTED,
173-
RELOCATING
170+
unassigned,
171+
initializing,
172+
started,
173+
relocating
174174
}
175175

176176
export class ShardSequenceNumber {

specification/migration/get_feature_upgrade_status/GetFeatureUpgradeStatusResponse.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@ export class Response {
2828
}
2929

3030
export enum MigrationStatus {
31-
NO_MIGRATION_NEEDED,
32-
MIGRATION_NEEDED,
33-
IN_PROGRESS,
34-
ERROR
31+
no_migration_needed,
32+
migration_needed,
33+
in_progress,
34+
error
3535
}
3636

3737
export class MigrationFeature {

specification/snapshot/_types/SnapshotShardsStatsStage.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@
1919

2020
export enum ShardsStatsStage {
2121
/** The number of shards in the snapshot that were successfully stored in the repository. */
22-
DONE,
22+
done,
2323
/** The number of shards in the snapshot that were not successfully stored in the repository. */
24-
FAILURE,
24+
failure,
2525
/** The number of shards in the snapshot that are in the finalizing stage of being stored in the repository. */
26-
FINALIZE,
26+
finalize,
2727
/** The number of shards in the snapshot that are in the initializing stage of being stored in the repository. */
28-
INIT,
28+
init,
2929
/** The number of shards in the snapshot that are in the started stage of being stored in the repository. */
30-
STARTED
30+
started
3131
}

0 commit comments

Comments
 (0)