Skip to content

Commit c40b593

Browse files
committed
[codegen] Fix StorageType
1 parent 3e9d4ec commit c40b593

File tree

1 file changed

+10
-4
lines changed
  • java-client/src/main/java/co/elastic/clients/elasticsearch/indices

1 file changed

+10
-4
lines changed

java-client/src/main/java/co/elastic/clients/elasticsearch/indices/StorageType.java

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@
2727
import co.elastic.clients.json.JsonpDeserializable;
2828
import co.elastic.clients.json.JsonpDeserializer;
2929

30+
import javax.annotation.Nullable;
31+
3032
/**
3133
*
3234
* @see <a href="../doc-files/api-spec.html#indices._types.StorageType">API
@@ -39,7 +41,7 @@ public enum StorageType implements JsonEnum {
3941
* depending on the operating environment, which is currently hybridfs on all
4042
* supported systems but is subject to change.
4143
*/
42-
Fs("fs"),
44+
Fs("fs", ""),
4345

4446
/**
4547
* The NIO FS type stores the shard index on the file system (maps to Lucene
@@ -68,20 +70,24 @@ public enum StorageType implements JsonEnum {
6870
*/
6971
Hybridfs("hybridfs"),
7072

71-
SystemDefault(""),
72-
7373
;
7474

7575
private final String jsonValue;
76+
private final String[] aliases;
7677

77-
StorageType(String jsonValue) {
78+
StorageType(String jsonValue, String... aliases) {
7879
this.jsonValue = jsonValue;
80+
this.aliases = aliases;
7981
}
8082

8183
public String jsonValue() {
8284
return this.jsonValue;
8385
}
8486

87+
public String[] aliases() {
88+
return this.aliases;
89+
}
90+
8591
public static final JsonEnum.Deserializer<StorageType> _DESERIALIZER = new JsonEnum.Deserializer<>(
8692
StorageType.values());
8793
}

0 commit comments

Comments
 (0)