Skip to content

Commit bd171fb

Browse files
authored
Generate IndexSettings (#1295)
Signed-off-by: Thomas Farr <[email protected]>
1 parent 1c7c6e0 commit bd171fb

File tree

98 files changed

+15741
-2218
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

98 files changed

+15741
-2218
lines changed

UPGRADING.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,3 +96,20 @@ After:
9696
- The `DataStream` class has been renamed to `IndexTemplateDataStreamConfiguration`, this affects:
9797
- `PutIndexTemplateRequest`'s `dataStream` field.
9898
- `SimulateIndexTemplateRequest`'s `dataStream` field.
99+
100+
### Translog
101+
- The `durability` property now accepts a `TranslogDurability` enum instead of a `String`.
102+
103+
### IndexSettingsMapping
104+
- The mapping limit fields now have specialized types instead of a generic `IndexSettingsMappingLimit` type:
105+
- `depth` is now of type `IndexSettingsMappingLimitDepth`.
106+
- `fieldNameLength` is now of type `IndexSettingsMappingLimitFieldNameLength`.
107+
- `nestedFields` is now of type `IndexSettingsMappingLimitNestedFields`.
108+
- `nestedObjects` is now of type `IndexSettingsMappingLimitNestedObjects`.
109+
- `totalFields` is now of type `IndexSettingsMappingLimitTotalFields`.
110+
111+
### IndexSettings
112+
- The `creationDate` property is now of type `Long` instead of `String`.
113+
- The `translogDurability` property now accepts a `TranslogDurability` enum instead of a `String`.
114+
- The `numberOfReplicas` property is now of type `Integer` instead of `String`.
115+
- The `numberOfShards` property is now of type `Integer` instead of `String`.
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
/*
2+
* SPDX-License-Identifier: Apache-2.0
3+
*
4+
* The OpenSearch Contributors require contributions made to
5+
* this file be licensed under the Apache-2.0 license or a
6+
* compatible open source license.
7+
*/
8+
9+
/*
10+
* Licensed to Elasticsearch B.V. under one or more contributor
11+
* license agreements. See the NOTICE file distributed with
12+
* this work for additional information regarding copyright
13+
* ownership. Elasticsearch B.V. licenses this file to you under
14+
* the Apache License, Version 2.0 (the "License"); you may
15+
* not use this file except in compliance with the License.
16+
* You may obtain a copy of the License at
17+
*
18+
* http://www.apache.org/licenses/LICENSE-2.0
19+
*
20+
* Unless required by applicable law or agreed to in writing,
21+
* software distributed under the License is distributed on an
22+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
23+
* KIND, either express or implied. See the License for the
24+
* specific language governing permissions and limitations
25+
* under the License.
26+
*/
27+
28+
/*
29+
* Modifications Copyright OpenSearch Contributors. See
30+
* GitHub history for details.
31+
*/
32+
33+
//----------------------------------------------------
34+
// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST.
35+
//----------------------------------------------------
36+
37+
package org.opensearch.client.opensearch._types;
38+
39+
import javax.annotation.Generated;
40+
import org.opensearch.client.json.JsonEnum;
41+
import org.opensearch.client.json.JsonpDeserializable;
42+
43+
// typedef: _types.DFIIndependenceMeasure
44+
45+
@JsonpDeserializable
46+
@Generated("org.opensearch.client.codegen.CodeGenerator")
47+
public enum DFIIndependenceMeasure implements JsonEnum {
48+
Chisquared("chisquared"),
49+
50+
Saturated("saturated"),
51+
52+
Standardized("standardized");
53+
54+
private final String jsonValue;
55+
56+
DFIIndependenceMeasure(String jsonValue) {
57+
this.jsonValue = jsonValue;
58+
}
59+
60+
public String jsonValue() {
61+
return this.jsonValue;
62+
}
63+
64+
public static final JsonEnum.Deserializer<DFIIndependenceMeasure> _DESERIALIZER = new JsonEnum.Deserializer<>(
65+
DFIIndependenceMeasure.values()
66+
);
67+
}
Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
/*
2+
* SPDX-License-Identifier: Apache-2.0
3+
*
4+
* The OpenSearch Contributors require contributions made to
5+
* this file be licensed under the Apache-2.0 license or a
6+
* compatible open source license.
7+
*/
8+
9+
/*
10+
* Licensed to Elasticsearch B.V. under one or more contributor
11+
* license agreements. See the NOTICE file distributed with
12+
* this work for additional information regarding copyright
13+
* ownership. Elasticsearch B.V. licenses this file to you under
14+
* the Apache License, Version 2.0 (the "License"); you may
15+
* not use this file except in compliance with the License.
16+
* You may obtain a copy of the License at
17+
*
18+
* http://www.apache.org/licenses/LICENSE-2.0
19+
*
20+
* Unless required by applicable law or agreed to in writing,
21+
* software distributed under the License is distributed on an
22+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
23+
* KIND, either express or implied. See the License for the
24+
* specific language governing permissions and limitations
25+
* under the License.
26+
*/
27+
28+
/*
29+
* Modifications Copyright OpenSearch Contributors. See
30+
* GitHub history for details.
31+
*/
32+
33+
//----------------------------------------------------
34+
// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST.
35+
//----------------------------------------------------
36+
37+
package org.opensearch.client.opensearch._types;
38+
39+
import javax.annotation.Generated;
40+
import org.opensearch.client.json.JsonEnum;
41+
import org.opensearch.client.json.JsonpDeserializable;
42+
43+
// typedef: _types.DFRAfterEffect
44+
45+
@JsonpDeserializable
46+
@Generated("org.opensearch.client.codegen.CodeGenerator")
47+
public enum DFRAfterEffect implements JsonEnum {
48+
B("b"),
49+
50+
L("l"),
51+
52+
No("no");
53+
54+
private final String jsonValue;
55+
56+
DFRAfterEffect(String jsonValue) {
57+
this.jsonValue = jsonValue;
58+
}
59+
60+
public String jsonValue() {
61+
return this.jsonValue;
62+
}
63+
64+
public static final JsonEnum.Deserializer<DFRAfterEffect> _DESERIALIZER = new JsonEnum.Deserializer<>(DFRAfterEffect.values());
65+
}
Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
/*
2+
* SPDX-License-Identifier: Apache-2.0
3+
*
4+
* The OpenSearch Contributors require contributions made to
5+
* this file be licensed under the Apache-2.0 license or a
6+
* compatible open source license.
7+
*/
8+
9+
/*
10+
* Licensed to Elasticsearch B.V. under one or more contributor
11+
* license agreements. See the NOTICE file distributed with
12+
* this work for additional information regarding copyright
13+
* ownership. Elasticsearch B.V. licenses this file to you under
14+
* the Apache License, Version 2.0 (the "License"); you may
15+
* not use this file except in compliance with the License.
16+
* You may obtain a copy of the License at
17+
*
18+
* http://www.apache.org/licenses/LICENSE-2.0
19+
*
20+
* Unless required by applicable law or agreed to in writing,
21+
* software distributed under the License is distributed on an
22+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
23+
* KIND, either express or implied. See the License for the
24+
* specific language governing permissions and limitations
25+
* under the License.
26+
*/
27+
28+
/*
29+
* Modifications Copyright OpenSearch Contributors. See
30+
* GitHub history for details.
31+
*/
32+
33+
//----------------------------------------------------
34+
// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST.
35+
//----------------------------------------------------
36+
37+
package org.opensearch.client.opensearch._types;
38+
39+
import javax.annotation.Generated;
40+
import org.opensearch.client.json.JsonEnum;
41+
import org.opensearch.client.json.JsonpDeserializable;
42+
43+
// typedef: _types.DFRBasicModel
44+
45+
@JsonpDeserializable
46+
@Generated("org.opensearch.client.codegen.CodeGenerator")
47+
public enum DFRBasicModel implements JsonEnum {
48+
Be("be"),
49+
50+
D("d"),
51+
52+
G("g"),
53+
54+
If("if"),
55+
56+
In("in"),
57+
58+
Ine("ine"),
59+
60+
P("p");
61+
62+
private final String jsonValue;
63+
64+
DFRBasicModel(String jsonValue) {
65+
this.jsonValue = jsonValue;
66+
}
67+
68+
public String jsonValue() {
69+
return this.jsonValue;
70+
}
71+
72+
public static final JsonEnum.Deserializer<DFRBasicModel> _DESERIALIZER = new JsonEnum.Deserializer<>(DFRBasicModel.values());
73+
}
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
/*
2+
* SPDX-License-Identifier: Apache-2.0
3+
*
4+
* The OpenSearch Contributors require contributions made to
5+
* this file be licensed under the Apache-2.0 license or a
6+
* compatible open source license.
7+
*/
8+
9+
/*
10+
* Licensed to Elasticsearch B.V. under one or more contributor
11+
* license agreements. See the NOTICE file distributed with
12+
* this work for additional information regarding copyright
13+
* ownership. Elasticsearch B.V. licenses this file to you under
14+
* the Apache License, Version 2.0 (the "License"); you may
15+
* not use this file except in compliance with the License.
16+
* You may obtain a copy of the License at
17+
*
18+
* http://www.apache.org/licenses/LICENSE-2.0
19+
*
20+
* Unless required by applicable law or agreed to in writing,
21+
* software distributed under the License is distributed on an
22+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
23+
* KIND, either express or implied. See the License for the
24+
* specific language governing permissions and limitations
25+
* under the License.
26+
*/
27+
28+
/*
29+
* Modifications Copyright OpenSearch Contributors. See
30+
* GitHub history for details.
31+
*/
32+
33+
//----------------------------------------------------
34+
// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST.
35+
//----------------------------------------------------
36+
37+
package org.opensearch.client.opensearch._types;
38+
39+
import javax.annotation.Generated;
40+
import org.opensearch.client.json.JsonEnum;
41+
import org.opensearch.client.json.JsonpDeserializable;
42+
43+
// typedef: _types.IBDistribution
44+
45+
@JsonpDeserializable
46+
@Generated("org.opensearch.client.codegen.CodeGenerator")
47+
public enum IBDistribution implements JsonEnum {
48+
Ll("ll"),
49+
50+
Spl("spl");
51+
52+
private final String jsonValue;
53+
54+
IBDistribution(String jsonValue) {
55+
this.jsonValue = jsonValue;
56+
}
57+
58+
public String jsonValue() {
59+
return this.jsonValue;
60+
}
61+
62+
public static final JsonEnum.Deserializer<IBDistribution> _DESERIALIZER = new JsonEnum.Deserializer<>(IBDistribution.values());
63+
}
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
/*
2+
* SPDX-License-Identifier: Apache-2.0
3+
*
4+
* The OpenSearch Contributors require contributions made to
5+
* this file be licensed under the Apache-2.0 license or a
6+
* compatible open source license.
7+
*/
8+
9+
/*
10+
* Licensed to Elasticsearch B.V. under one or more contributor
11+
* license agreements. See the NOTICE file distributed with
12+
* this work for additional information regarding copyright
13+
* ownership. Elasticsearch B.V. licenses this file to you under
14+
* the Apache License, Version 2.0 (the "License"); you may
15+
* not use this file except in compliance with the License.
16+
* You may obtain a copy of the License at
17+
*
18+
* http://www.apache.org/licenses/LICENSE-2.0
19+
*
20+
* Unless required by applicable law or agreed to in writing,
21+
* software distributed under the License is distributed on an
22+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
23+
* KIND, either express or implied. See the License for the
24+
* specific language governing permissions and limitations
25+
* under the License.
26+
*/
27+
28+
/*
29+
* Modifications Copyright OpenSearch Contributors. See
30+
* GitHub history for details.
31+
*/
32+
33+
//----------------------------------------------------
34+
// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST.
35+
//----------------------------------------------------
36+
37+
package org.opensearch.client.opensearch._types;
38+
39+
import javax.annotation.Generated;
40+
import org.opensearch.client.json.JsonEnum;
41+
import org.opensearch.client.json.JsonpDeserializable;
42+
43+
// typedef: _types.IBLambda
44+
45+
@JsonpDeserializable
46+
@Generated("org.opensearch.client.codegen.CodeGenerator")
47+
public enum IBLambda implements JsonEnum {
48+
Df("df"),
49+
50+
Ttf("ttf");
51+
52+
private final String jsonValue;
53+
54+
IBLambda(String jsonValue) {
55+
this.jsonValue = jsonValue;
56+
}
57+
58+
public String jsonValue() {
59+
return this.jsonValue;
60+
}
61+
62+
public static final JsonEnum.Deserializer<IBLambda> _DESERIALIZER = new JsonEnum.Deserializer<>(IBLambda.values());
63+
}

0 commit comments

Comments
 (0)