Skip to content

Commit ecd47ac

Browse files
committed
[codegen] Update to latest API spec
1 parent 29ce6a1 commit ecd47ac

21 files changed

+2714
-26
lines changed
Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
/*
2+
* Licensed to Elasticsearch B.V. under one or more contributor
3+
* license agreements. See the NOTICE file distributed with
4+
* this work for additional information regarding copyright
5+
* ownership. Elasticsearch B.V. licenses this file to you under
6+
* the Apache License, Version 2.0 (the "License"); you may
7+
* not use this file except in compliance with the License.
8+
* You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing,
13+
* software distributed under the License is distributed on an
14+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+
* KIND, either express or implied. See the License for the
16+
* specific language governing permissions and limitations
17+
* under the License.
18+
*/
19+
20+
package co.elastic.clients.elasticsearch._types;
21+
22+
import co.elastic.clients.json.JsonEnum;
23+
import co.elastic.clients.json.JsonpDeserializable;
24+
import co.elastic.clients.json.JsonpDeserializer;
25+
26+
//----------------------------------------------------------------
27+
// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST.
28+
//----------------------------------------------------------------
29+
//
30+
// This code is generated from the Elasticsearch API specification
31+
// at https://github.com/elastic/elasticsearch-specification
32+
//
33+
// Manual updates to this file will be lost when the code is
34+
// re-generated.
35+
//
36+
// If you find a property that is missing or wrongly typed, please
37+
// open an issue or a PR on the API specification repository.
38+
//
39+
//----------------------------------------------------------------
40+
41+
/**
42+
*
43+
* @see <a href="../doc-files/api-spec.html#_types.DFIIndependenceMeasure">API
44+
* specification</a>
45+
*/
46+
@JsonpDeserializable
47+
public enum DFIIndependenceMeasure implements JsonEnum {
48+
Standardized("standardized"),
49+
50+
Saturated("saturated"),
51+
52+
Chisquared("chisquared"),
53+
54+
;
55+
56+
private final String jsonValue;
57+
58+
DFIIndependenceMeasure(String jsonValue) {
59+
this.jsonValue = jsonValue;
60+
}
61+
62+
public String jsonValue() {
63+
return this.jsonValue;
64+
}
65+
66+
public static final JsonEnum.Deserializer<DFIIndependenceMeasure> _DESERIALIZER = new JsonEnum.Deserializer<>(
67+
DFIIndependenceMeasure.values());
68+
}
Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
/*
2+
* Licensed to Elasticsearch B.V. under one or more contributor
3+
* license agreements. See the NOTICE file distributed with
4+
* this work for additional information regarding copyright
5+
* ownership. Elasticsearch B.V. licenses this file to you under
6+
* the Apache License, Version 2.0 (the "License"); you may
7+
* not use this file except in compliance with the License.
8+
* You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing,
13+
* software distributed under the License is distributed on an
14+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+
* KIND, either express or implied. See the License for the
16+
* specific language governing permissions and limitations
17+
* under the License.
18+
*/
19+
20+
package co.elastic.clients.elasticsearch._types;
21+
22+
import co.elastic.clients.json.JsonEnum;
23+
import co.elastic.clients.json.JsonpDeserializable;
24+
import co.elastic.clients.json.JsonpDeserializer;
25+
26+
//----------------------------------------------------------------
27+
// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST.
28+
//----------------------------------------------------------------
29+
//
30+
// This code is generated from the Elasticsearch API specification
31+
// at https://github.com/elastic/elasticsearch-specification
32+
//
33+
// Manual updates to this file will be lost when the code is
34+
// re-generated.
35+
//
36+
// If you find a property that is missing or wrongly typed, please
37+
// open an issue or a PR on the API specification repository.
38+
//
39+
//----------------------------------------------------------------
40+
41+
/**
42+
*
43+
* @see <a href="../doc-files/api-spec.html#_types.DFRAfterEffect">API
44+
* specification</a>
45+
*/
46+
@JsonpDeserializable
47+
public enum DFRAfterEffect implements JsonEnum {
48+
No("no"),
49+
50+
B("b"),
51+
52+
L("l"),
53+
54+
;
55+
56+
private final String jsonValue;
57+
58+
DFRAfterEffect(String jsonValue) {
59+
this.jsonValue = jsonValue;
60+
}
61+
62+
public String jsonValue() {
63+
return this.jsonValue;
64+
}
65+
66+
public static final JsonEnum.Deserializer<DFRAfterEffect> _DESERIALIZER = new JsonEnum.Deserializer<>(
67+
DFRAfterEffect.values());
68+
}
Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
/*
2+
* Licensed to Elasticsearch B.V. under one or more contributor
3+
* license agreements. See the NOTICE file distributed with
4+
* this work for additional information regarding copyright
5+
* ownership. Elasticsearch B.V. licenses this file to you under
6+
* the Apache License, Version 2.0 (the "License"); you may
7+
* not use this file except in compliance with the License.
8+
* You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing,
13+
* software distributed under the License is distributed on an
14+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+
* KIND, either express or implied. See the License for the
16+
* specific language governing permissions and limitations
17+
* under the License.
18+
*/
19+
20+
package co.elastic.clients.elasticsearch._types;
21+
22+
import co.elastic.clients.json.JsonEnum;
23+
import co.elastic.clients.json.JsonpDeserializable;
24+
import co.elastic.clients.json.JsonpDeserializer;
25+
26+
//----------------------------------------------------------------
27+
// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST.
28+
//----------------------------------------------------------------
29+
//
30+
// This code is generated from the Elasticsearch API specification
31+
// at https://github.com/elastic/elasticsearch-specification
32+
//
33+
// Manual updates to this file will be lost when the code is
34+
// re-generated.
35+
//
36+
// If you find a property that is missing or wrongly typed, please
37+
// open an issue or a PR on the API specification repository.
38+
//
39+
//----------------------------------------------------------------
40+
41+
/**
42+
*
43+
* @see <a href="../doc-files/api-spec.html#_types.DFRBasicModel">API
44+
* specification</a>
45+
*/
46+
@JsonpDeserializable
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+
;
63+
64+
private final String jsonValue;
65+
66+
DFRBasicModel(String jsonValue) {
67+
this.jsonValue = jsonValue;
68+
}
69+
70+
public String jsonValue() {
71+
return this.jsonValue;
72+
}
73+
74+
public static final JsonEnum.Deserializer<DFRBasicModel> _DESERIALIZER = new JsonEnum.Deserializer<>(
75+
DFRBasicModel.values());
76+
}

java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ElasticsearchException.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919

2020
package co.elastic.clients.elasticsearch._types;
2121

22+
import javax.annotation.Nullable;
23+
2224
/**
2325
* Exception thrown by API client methods when Elasticsearch could not accept or
2426
* process a request.

java-client/src/main/java/co/elastic/clients/elasticsearch/_types/FieldValue.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,10 @@ public static FieldValue of(JsonData value) {
6969
return new FieldValue(Kind.Any, value);
7070
}
7171

72+
public static FieldValue of(Object value) {
73+
return of(JsonData.of(value));
74+
}
75+
7276
public static final FieldValue NULL = new FieldValue(Kind.Null, null);
7377
public static final FieldValue TRUE = new FieldValue(Kind.Boolean, Boolean.TRUE);
7478
public static final FieldValue FALSE = new FieldValue(Kind.Boolean, Boolean.FALSE);
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
/*
2+
* Licensed to Elasticsearch B.V. under one or more contributor
3+
* license agreements. See the NOTICE file distributed with
4+
* this work for additional information regarding copyright
5+
* ownership. Elasticsearch B.V. licenses this file to you under
6+
* the Apache License, Version 2.0 (the "License"); you may
7+
* not use this file except in compliance with the License.
8+
* You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing,
13+
* software distributed under the License is distributed on an
14+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+
* KIND, either express or implied. See the License for the
16+
* specific language governing permissions and limitations
17+
* under the License.
18+
*/
19+
20+
package co.elastic.clients.elasticsearch._types;
21+
22+
import co.elastic.clients.json.JsonEnum;
23+
import co.elastic.clients.json.JsonpDeserializable;
24+
import co.elastic.clients.json.JsonpDeserializer;
25+
26+
//----------------------------------------------------------------
27+
// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST.
28+
//----------------------------------------------------------------
29+
//
30+
// This code is generated from the Elasticsearch API specification
31+
// at https://github.com/elastic/elasticsearch-specification
32+
//
33+
// Manual updates to this file will be lost when the code is
34+
// re-generated.
35+
//
36+
// If you find a property that is missing or wrongly typed, please
37+
// open an issue or a PR on the API specification repository.
38+
//
39+
//----------------------------------------------------------------
40+
41+
/**
42+
*
43+
* @see <a href="../doc-files/api-spec.html#_types.IBDistribution">API
44+
* specification</a>
45+
*/
46+
@JsonpDeserializable
47+
public enum IBDistribution implements JsonEnum {
48+
Ll("ll"),
49+
50+
Spl("spl"),
51+
52+
;
53+
54+
private final String jsonValue;
55+
56+
IBDistribution(String jsonValue) {
57+
this.jsonValue = jsonValue;
58+
}
59+
60+
public String jsonValue() {
61+
return this.jsonValue;
62+
}
63+
64+
public static final JsonEnum.Deserializer<IBDistribution> _DESERIALIZER = new JsonEnum.Deserializer<>(
65+
IBDistribution.values());
66+
}
Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
/*
2+
* Licensed to Elasticsearch B.V. under one or more contributor
3+
* license agreements. See the NOTICE file distributed with
4+
* this work for additional information regarding copyright
5+
* ownership. Elasticsearch B.V. licenses this file to you under
6+
* the Apache License, Version 2.0 (the "License"); you may
7+
* not use this file except in compliance with the License.
8+
* You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing,
13+
* software distributed under the License is distributed on an
14+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+
* KIND, either express or implied. See the License for the
16+
* specific language governing permissions and limitations
17+
* under the License.
18+
*/
19+
20+
package co.elastic.clients.elasticsearch._types;
21+
22+
import co.elastic.clients.json.JsonEnum;
23+
import co.elastic.clients.json.JsonpDeserializable;
24+
import co.elastic.clients.json.JsonpDeserializer;
25+
26+
//----------------------------------------------------------------
27+
// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST.
28+
//----------------------------------------------------------------
29+
//
30+
// This code is generated from the Elasticsearch API specification
31+
// at https://github.com/elastic/elasticsearch-specification
32+
//
33+
// Manual updates to this file will be lost when the code is
34+
// re-generated.
35+
//
36+
// If you find a property that is missing or wrongly typed, please
37+
// open an issue or a PR on the API specification repository.
38+
//
39+
//----------------------------------------------------------------
40+
41+
/**
42+
*
43+
* @see <a href="../doc-files/api-spec.html#_types.IBLambda">API
44+
* specification</a>
45+
*/
46+
@JsonpDeserializable
47+
public enum IBLambda implements JsonEnum {
48+
Df("df"),
49+
50+
Ttf("ttf"),
51+
52+
;
53+
54+
private final String jsonValue;
55+
56+
IBLambda(String jsonValue) {
57+
this.jsonValue = jsonValue;
58+
}
59+
60+
public String jsonValue() {
61+
return this.jsonValue;
62+
}
63+
64+
public static final JsonEnum.Deserializer<IBLambda> _DESERIALIZER = new JsonEnum.Deserializer<>(IBLambda.values());
65+
}

0 commit comments

Comments
 (0)