Skip to content

Commit 491bddd

Browse files
committed
[codegen] update to latest spec
1 parent a6a059e commit 491bddd

15 files changed

Lines changed: 332 additions & 205 deletions

java-client/src/main/java/co/elastic/clients/elasticsearch/doc-files/api-spec.html

Lines changed: 119 additions & 118 deletions
Large diffs are not rendered by default.

java-client/src/main/java/co/elastic/clients/elasticsearch/inference/Ai21ServiceSettings.java

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,7 @@ public final String modelId() {
104104
* <p>
105105
* IMPORTANT: You need to provide the API key only once, during the inference
106106
* model creation. The get inference endpoint API does not retrieve your API
107-
* key. After creating the inference model, you cannot change the associated API
108-
* key. If you want to use a different API key, delete the inference model and
109-
* recreate it with the same name and the updated API key.
107+
* key.
110108
* <p>
111109
* API name: {@code api_key}
112110
*/
@@ -208,9 +206,7 @@ public final Builder modelId(String value) {
208206
* <p>
209207
* IMPORTANT: You need to provide the API key only once, during the inference
210208
* model creation. The get inference endpoint API does not retrieve your API
211-
* key. After creating the inference model, you cannot change the associated API
212-
* key. If you want to use a different API key, delete the inference model and
213-
* recreate it with the same name and the updated API key.
209+
* key.
214210
* <p>
215211
* API name: {@code api_key}
216212
*/

java-client/src/main/java/co/elastic/clients/elasticsearch/inference/AzureAiStudioServiceSettings.java

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,7 @@ public static AzureAiStudioServiceSettings of(Function<Builder, ObjectBuilder<Az
9494
* <p>
9595
* IMPORTANT: You need to provide the API key only once, during the inference
9696
* model creation. The get inference endpoint API does not retrieve your API
97-
* key. After creating the inference model, you cannot change the associated API
98-
* key. If you want to use a different API key, delete the inference model and
99-
* recreate it with the same name and the updated API key.
97+
* key.
10098
* <p>
10199
* API name: {@code api_key}
102100
*/
@@ -237,9 +235,7 @@ private Builder(AzureAiStudioServiceSettings instance) {
237235
* <p>
238236
* IMPORTANT: You need to provide the API key only once, during the inference
239237
* model creation. The get inference endpoint API does not retrieve your API
240-
* key. After creating the inference model, you cannot change the associated API
241-
* key. If you want to use a different API key, delete the inference model and
242-
* recreate it with the same name and the updated API key.
238+
* key.
243239
* <p>
244240
* API name: {@code api_key}
245241
*/

java-client/src/main/java/co/elastic/clients/elasticsearch/inference/AzureOpenAIServiceSettings.java

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,7 @@ public static AzureOpenAIServiceSettings of(Function<Builder, ObjectBuilder<Azur
100100
* <p>
101101
* IMPORTANT: You need to provide the API key only once, during the inference
102102
* model creation. The get inference endpoint API does not retrieve your API
103-
* key. After creating the inference model, you cannot change the associated API
104-
* key. If you want to use a different API key, delete the inference model and
105-
* recreate it with the same name and the updated API key.
103+
* key.
106104
* <p>
107105
* API name: {@code api_key}
108106
*/
@@ -254,9 +252,7 @@ private Builder(AzureOpenAIServiceSettings instance) {
254252
* <p>
255253
* IMPORTANT: You need to provide the API key only once, during the inference
256254
* model creation. The get inference endpoint API does not retrieve your API
257-
* key. After creating the inference model, you cannot change the associated API
258-
* key. If you want to use a different API key, delete the inference model and
259-
* recreate it with the same name and the updated API key.
255+
* key.
260256
* <p>
261257
* API name: {@code api_key}
262258
*/

java-client/src/main/java/co/elastic/clients/elasticsearch/inference/CohereServiceSettings.java

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,7 @@ public static CohereServiceSettings of(Function<Builder, ObjectBuilder<CohereSer
9595
* <p>
9696
* IMPORTANT: You need to provide the API key only once, during the inference
9797
* model creation. The get inference endpoint API does not retrieve your API
98-
* key. After creating the inference model, you cannot change the associated API
99-
* key. If you want to use a different API key, delete the inference model and
100-
* recreate it with the same name and the updated API key.
98+
* key.
10199
* <p>
102100
* API name: {@code api_key}
103101
*/
@@ -243,9 +241,7 @@ private Builder(CohereServiceSettings instance) {
243241
* <p>
244242
* IMPORTANT: You need to provide the API key only once, during the inference
245243
* model creation. The get inference endpoint API does not retrieve your API
246-
* key. After creating the inference model, you cannot change the associated API
247-
* key. If you want to use a different API key, delete the inference model and
248-
* recreate it with the same name and the updated API key.
244+
* key.
249245
* <p>
250246
* API name: {@code api_key}
251247
*/

java-client/src/main/java/co/elastic/clients/elasticsearch/inference/ContextualAIServiceSettings.java

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,7 @@ public static ContextualAIServiceSettings of(Function<Builder, ObjectBuilder<Con
8686
* <p>
8787
* IMPORTANT: You need to provide the API key only once, during the inference
8888
* model creation. The get inference endpoint API does not retrieve your API
89-
* key. After creating the inference model, you cannot change the associated API
90-
* key. If you want to use a different API key, delete the inference model and
91-
* recreate it with the same name and the updated API key.
89+
* key.
9290
* <p>
9391
* API name: {@code api_key}
9492
*/
@@ -178,9 +176,7 @@ private Builder(ContextualAIServiceSettings instance) {
178176
* <p>
179177
* IMPORTANT: You need to provide the API key only once, during the inference
180178
* model creation. The get inference endpoint API does not retrieve your API
181-
* key. After creating the inference model, you cannot change the associated API
182-
* key. If you want to use a different API key, delete the inference model and
183-
* recreate it with the same name and the updated API key.
179+
* key.
184180
* <p>
185181
* API name: {@code api_key}
186182
*/

java-client/src/main/java/co/elastic/clients/elasticsearch/inference/DeepSeekServiceSettings.java

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,7 @@ public static DeepSeekServiceSettings of(Function<Builder, ObjectBuilder<DeepSee
8787
* <p>
8888
* IMPORTANT: You need to provide the API key only once, during the inference
8989
* model creation. The get inference endpoint API does not retrieve your API
90-
* key. After creating the inference model, you cannot change the associated API
91-
* key. If you want to use a different API key, delete the inference model and
92-
* recreate it with the same name and the updated API key.
90+
* key.
9391
* <p>
9492
* API name: {@code api_key}
9593
*/
@@ -183,9 +181,7 @@ private Builder(DeepSeekServiceSettings instance) {
183181
* <p>
184182
* IMPORTANT: You need to provide the API key only once, during the inference
185183
* model creation. The get inference endpoint API does not retrieve your API
186-
* key. After creating the inference model, you cannot change the associated API
187-
* key. If you want to use a different API key, delete the inference model and
188-
* recreate it with the same name and the updated API key.
184+
* key.
189185
* <p>
190186
* API name: {@code api_key}
191187
*/

java-client/src/main/java/co/elastic/clients/elasticsearch/inference/GroqServiceSettings.java

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -103,9 +103,7 @@ public final String modelId() {
103103
* <p>
104104
* IMPORTANT: You need to provide the API key only once, during the inference
105105
* model creation. The get inference endpoint API does not retrieve your API
106-
* key. After creating the inference model, you cannot change the associated API
107-
* key. If you want to use a different API key, delete the inference model and
108-
* recreate it with the same name and the updated API key.
106+
* key.
109107
* <p>
110108
* API name: {@code api_key}
111109
*/
@@ -206,9 +204,7 @@ public final Builder modelId(String value) {
206204
* <p>
207205
* IMPORTANT: You need to provide the API key only once, during the inference
208206
* model creation. The get inference endpoint API does not retrieve your API
209-
* key. After creating the inference model, you cannot change the associated API
210-
* key. If you want to use a different API key, delete the inference model and
211-
* recreate it with the same name and the updated API key.
207+
* key.
212208
* <p>
213209
* API name: {@code api_key}
214210
*/

java-client/src/main/java/co/elastic/clients/elasticsearch/inference/HuggingFaceServiceSettings.java

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,7 @@ public static HuggingFaceServiceSettings of(Function<Builder, ObjectBuilder<Hugg
9191
* <p>
9292
* IMPORTANT: You need to provide the API key only once, during the inference
9393
* model creation. The get inference endpoint API does not retrieve your API
94-
* key. After creating the inference model, you cannot change the associated API
95-
* key. If you want to use a different API key, delete the inference model and
96-
* recreate it with the same name and the updated API key.
94+
* key.
9795
* <p>
9896
* API name: {@code api_key}
9997
*/
@@ -217,9 +215,7 @@ private Builder(HuggingFaceServiceSettings instance) {
217215
* <p>
218216
* IMPORTANT: You need to provide the API key only once, during the inference
219217
* model creation. The get inference endpoint API does not retrieve your API
220-
* key. After creating the inference model, you cannot change the associated API
221-
* key. If you want to use a different API key, delete the inference model and
222-
* recreate it with the same name and the updated API key.
218+
* key.
223219
* <p>
224220
* API name: {@code api_key}
225221
*/
Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
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.inference;
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=
44+
* "../doc-files/api-spec.html#inference._types.JinaAIElementType">API
45+
* specification</a>
46+
*/
47+
@JsonpDeserializable
48+
public enum JinaAIElementType implements JsonEnum {
49+
Binary("binary"),
50+
51+
Bit("bit"),
52+
53+
Float("float"),
54+
55+
;
56+
57+
private final String jsonValue;
58+
59+
JinaAIElementType(String jsonValue) {
60+
this.jsonValue = jsonValue;
61+
}
62+
63+
public String jsonValue() {
64+
return this.jsonValue;
65+
}
66+
67+
public static final JsonEnum.Deserializer<JinaAIElementType> _DESERIALIZER = new JsonEnum.Deserializer<>(
68+
JinaAIElementType.values());
69+
}

0 commit comments

Comments
 (0)