Skip to content

Commit bd44d2c

Browse files
chore: [DevOps] Update Cloud SDK to 5.17.0-SNAPSHOT
1 parent 285960b commit bd44d2c

File tree

269 files changed

+4875
-18
lines changed

Some content is hidden

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

269 files changed

+4875
-18
lines changed

core/src/main/java/com/sap/ai/sdk/core/model/AiApiError.java

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,18 +219,38 @@ public Set<String> getCustomFieldNames() {
219219
/**
220220
* Get the value of an unrecognizable property of this {@link AiApiError} instance.
221221
*
222+
* @deprecated Use {@link #toMap()} instead.
222223
* @param name The name of the property
223224
* @return The value of the property
224225
* @throws NoSuchElementException If no property with the given name could be found.
225226
*/
226227
@Nullable
228+
@Deprecated
227229
public Object getCustomField(@Nonnull final String name) throws NoSuchElementException {
228230
if (!cloudSdkCustomFields.containsKey(name)) {
229231
throw new NoSuchElementException("AiApiError has no field with name '" + name + "'.");
230232
}
231233
return cloudSdkCustomFields.get(name);
232234
}
233235

236+
/**
237+
* Get the value of all properties of this {@link AiApiError} instance including unrecognized
238+
* properties.
239+
*
240+
* @return The map of all properties
241+
*/
242+
@JsonIgnore
243+
@Nonnull
244+
public Map<String, Object> toMap() {
245+
final Map<String, Object> declaredFields = new LinkedHashMap<>(cloudSdkCustomFields);
246+
if (code != null) declaredFields.put("code", code);
247+
if (message != null) declaredFields.put("message", message);
248+
if (requestId != null) declaredFields.put("requestId", requestId);
249+
if (target != null) declaredFields.put("target", target);
250+
if (details != null) declaredFields.put("details", details);
251+
return declaredFields;
252+
}
253+
234254
/**
235255
* Set an unrecognizable property of this {@link AiApiError} instance. If the map previously
236256
* contained a mapping for the key, the old value is replaced by the specified value.

core/src/main/java/com/sap/ai/sdk/core/model/AiApiErrorWithId.java

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,18 +117,35 @@ public Set<String> getCustomFieldNames() {
117117
/**
118118
* Get the value of an unrecognizable property of this {@link AiApiErrorWithId} instance.
119119
*
120+
* @deprecated Use {@link #toMap()} instead.
120121
* @param name The name of the property
121122
* @return The value of the property
122123
* @throws NoSuchElementException If no property with the given name could be found.
123124
*/
124125
@Nullable
126+
@Deprecated
125127
public Object getCustomField(@Nonnull final String name) throws NoSuchElementException {
126128
if (!cloudSdkCustomFields.containsKey(name)) {
127129
throw new NoSuchElementException("AiApiErrorWithId has no field with name '" + name + "'.");
128130
}
129131
return cloudSdkCustomFields.get(name);
130132
}
131133

134+
/**
135+
* Get the value of all properties of this {@link AiApiErrorWithId} instance including
136+
* unrecognized properties.
137+
*
138+
* @return The map of all properties
139+
*/
140+
@JsonIgnore
141+
@Nonnull
142+
public Map<String, Object> toMap() {
143+
final Map<String, Object> declaredFields = new LinkedHashMap<>(cloudSdkCustomFields);
144+
if (id != null) declaredFields.put("id", id);
145+
if (error != null) declaredFields.put("error", error);
146+
return declaredFields;
147+
}
148+
132149
/**
133150
* Set an unrecognizable property of this {@link AiApiErrorWithId} instance. If the map previously
134151
* contained a mapping for the key, the old value is replaced by the specified value.

core/src/main/java/com/sap/ai/sdk/core/model/AiArtifact.java

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -546,18 +546,45 @@ public Set<String> getCustomFieldNames() {
546546
/**
547547
* Get the value of an unrecognizable property of this {@link AiArtifact} instance.
548548
*
549+
* @deprecated Use {@link #toMap()} instead.
549550
* @param name The name of the property
550551
* @return The value of the property
551552
* @throws NoSuchElementException If no property with the given name could be found.
552553
*/
553554
@Nullable
555+
@Deprecated
554556
public Object getCustomField(@Nonnull final String name) throws NoSuchElementException {
555557
if (!cloudSdkCustomFields.containsKey(name)) {
556558
throw new NoSuchElementException("AiArtifact has no field with name '" + name + "'.");
557559
}
558560
return cloudSdkCustomFields.get(name);
559561
}
560562

563+
/**
564+
* Get the value of all properties of this {@link AiArtifact} instance including unrecognized
565+
* properties.
566+
*
567+
* @return The map of all properties
568+
*/
569+
@JsonIgnore
570+
@Nonnull
571+
public Map<String, Object> toMap() {
572+
final Map<String, Object> declaredFields = new LinkedHashMap<>(cloudSdkCustomFields);
573+
if (labels != null) declaredFields.put("labels", labels);
574+
if (name != null) declaredFields.put("name", name);
575+
if (kind != null) declaredFields.put("kind", kind);
576+
if (url != null) declaredFields.put("url", url);
577+
if (description != null) declaredFields.put("description", description);
578+
if (id != null) declaredFields.put("id", id);
579+
if (scenarioId != null) declaredFields.put("scenarioId", scenarioId);
580+
if (configurationId != null) declaredFields.put("configurationId", configurationId);
581+
if (executionId != null) declaredFields.put("executionId", executionId);
582+
if (createdAt != null) declaredFields.put("createdAt", createdAt);
583+
if (modifiedAt != null) declaredFields.put("modifiedAt", modifiedAt);
584+
if (scenario != null) declaredFields.put("scenario", scenario);
585+
return declaredFields;
586+
}
587+
561588
/**
562589
* Set an unrecognizable property of this {@link AiArtifact} instance. If the map previously
563590
* contained a mapping for the key, the old value is replaced by the specified value.

core/src/main/java/com/sap/ai/sdk/core/model/AiArtifactArgumentBinding.java

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,11 +118,13 @@ public Set<String> getCustomFieldNames() {
118118
/**
119119
* Get the value of an unrecognizable property of this {@link AiArtifactArgumentBinding} instance.
120120
*
121+
* @deprecated Use {@link #toMap()} instead.
121122
* @param name The name of the property
122123
* @return The value of the property
123124
* @throws NoSuchElementException If no property with the given name could be found.
124125
*/
125126
@Nullable
127+
@Deprecated
126128
public Object getCustomField(@Nonnull final String name) throws NoSuchElementException {
127129
if (!cloudSdkCustomFields.containsKey(name)) {
128130
throw new NoSuchElementException(
@@ -131,6 +133,21 @@ public Object getCustomField(@Nonnull final String name) throws NoSuchElementExc
131133
return cloudSdkCustomFields.get(name);
132134
}
133135

136+
/**
137+
* Get the value of all properties of this {@link AiArtifactArgumentBinding} instance including
138+
* unrecognized properties.
139+
*
140+
* @return The map of all properties
141+
*/
142+
@JsonIgnore
143+
@Nonnull
144+
public Map<String, Object> toMap() {
145+
final Map<String, Object> declaredFields = new LinkedHashMap<>(cloudSdkCustomFields);
146+
if (key != null) declaredFields.put("key", key);
147+
if (artifactId != null) declaredFields.put("artifactId", artifactId);
148+
return declaredFields;
149+
}
150+
134151
/**
135152
* Set an unrecognizable property of this {@link AiArtifactArgumentBinding} instance. If the map
136153
* previously contained a mapping for the key, the old value is replaced by the specified value.

core/src/main/java/com/sap/ai/sdk/core/model/AiArtifactCreationResponse.java

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,11 +153,13 @@ public Set<String> getCustomFieldNames() {
153153
* Get the value of an unrecognizable property of this {@link AiArtifactCreationResponse}
154154
* instance.
155155
*
156+
* @deprecated Use {@link #toMap()} instead.
156157
* @param name The name of the property
157158
* @return The value of the property
158159
* @throws NoSuchElementException If no property with the given name could be found.
159160
*/
160161
@Nullable
162+
@Deprecated
161163
public Object getCustomField(@Nonnull final String name) throws NoSuchElementException {
162164
if (!cloudSdkCustomFields.containsKey(name)) {
163165
throw new NoSuchElementException(
@@ -166,6 +168,22 @@ public Object getCustomField(@Nonnull final String name) throws NoSuchElementExc
166168
return cloudSdkCustomFields.get(name);
167169
}
168170

171+
/**
172+
* Get the value of all properties of this {@link AiArtifactCreationResponse} instance including
173+
* unrecognized properties.
174+
*
175+
* @return The map of all properties
176+
*/
177+
@JsonIgnore
178+
@Nonnull
179+
public Map<String, Object> toMap() {
180+
final Map<String, Object> declaredFields = new LinkedHashMap<>(cloudSdkCustomFields);
181+
if (id != null) declaredFields.put("id", id);
182+
if (message != null) declaredFields.put("message", message);
183+
if (url != null) declaredFields.put("url", url);
184+
return declaredFields;
185+
}
186+
169187
/**
170188
* Set an unrecognizable property of this {@link AiArtifactCreationResponse} instance. If the map
171189
* previously contained a mapping for the key, the old value is replaced by the specified value.

core/src/main/java/com/sap/ai/sdk/core/model/AiArtifactList.java

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,18 +135,35 @@ public Set<String> getCustomFieldNames() {
135135
/**
136136
* Get the value of an unrecognizable property of this {@link AiArtifactList} instance.
137137
*
138+
* @deprecated Use {@link #toMap()} instead.
138139
* @param name The name of the property
139140
* @return The value of the property
140141
* @throws NoSuchElementException If no property with the given name could be found.
141142
*/
142143
@Nullable
144+
@Deprecated
143145
public Object getCustomField(@Nonnull final String name) throws NoSuchElementException {
144146
if (!cloudSdkCustomFields.containsKey(name)) {
145147
throw new NoSuchElementException("AiArtifactList has no field with name '" + name + "'.");
146148
}
147149
return cloudSdkCustomFields.get(name);
148150
}
149151

152+
/**
153+
* Get the value of all properties of this {@link AiArtifactList} instance including unrecognized
154+
* properties.
155+
*
156+
* @return The map of all properties
157+
*/
158+
@JsonIgnore
159+
@Nonnull
160+
public Map<String, Object> toMap() {
161+
final Map<String, Object> declaredFields = new LinkedHashMap<>(cloudSdkCustomFields);
162+
if (count != null) declaredFields.put("count", count);
163+
if (resources != null) declaredFields.put("resources", resources);
164+
return declaredFields;
165+
}
166+
150167
/**
151168
* Set an unrecognizable property of this {@link AiArtifactList} instance. If the map previously
152169
* contained a mapping for the key, the old value is replaced by the specified value.

core/src/main/java/com/sap/ai/sdk/core/model/AiArtifactPostData.java

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -341,18 +341,39 @@ public Set<String> getCustomFieldNames() {
341341
/**
342342
* Get the value of an unrecognizable property of this {@link AiArtifactPostData} instance.
343343
*
344+
* @deprecated Use {@link #toMap()} instead.
344345
* @param name The name of the property
345346
* @return The value of the property
346347
* @throws NoSuchElementException If no property with the given name could be found.
347348
*/
348349
@Nullable
350+
@Deprecated
349351
public Object getCustomField(@Nonnull final String name) throws NoSuchElementException {
350352
if (!cloudSdkCustomFields.containsKey(name)) {
351353
throw new NoSuchElementException("AiArtifactPostData has no field with name '" + name + "'.");
352354
}
353355
return cloudSdkCustomFields.get(name);
354356
}
355357

358+
/**
359+
* Get the value of all properties of this {@link AiArtifactPostData} instance including
360+
* unrecognized properties.
361+
*
362+
* @return The map of all properties
363+
*/
364+
@JsonIgnore
365+
@Nonnull
366+
public Map<String, Object> toMap() {
367+
final Map<String, Object> declaredFields = new LinkedHashMap<>(cloudSdkCustomFields);
368+
if (labels != null) declaredFields.put("labels", labels);
369+
if (name != null) declaredFields.put("name", name);
370+
if (kind != null) declaredFields.put("kind", kind);
371+
if (url != null) declaredFields.put("url", url);
372+
if (description != null) declaredFields.put("description", description);
373+
if (scenarioId != null) declaredFields.put("scenarioId", scenarioId);
374+
return declaredFields;
375+
}
376+
356377
/**
357378
* Set an unrecognizable property of this {@link AiArtifactPostData} instance. If the map
358379
* previously contained a mapping for the key, the old value is replaced by the specified value.

core/src/main/java/com/sap/ai/sdk/core/model/AiConfiguration.java

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -363,18 +363,42 @@ public Set<String> getCustomFieldNames() {
363363
/**
364364
* Get the value of an unrecognizable property of this {@link AiConfiguration} instance.
365365
*
366+
* @deprecated Use {@link #toMap()} instead.
366367
* @param name The name of the property
367368
* @return The value of the property
368369
* @throws NoSuchElementException If no property with the given name could be found.
369370
*/
370371
@Nullable
372+
@Deprecated
371373
public Object getCustomField(@Nonnull final String name) throws NoSuchElementException {
372374
if (!cloudSdkCustomFields.containsKey(name)) {
373375
throw new NoSuchElementException("AiConfiguration has no field with name '" + name + "'.");
374376
}
375377
return cloudSdkCustomFields.get(name);
376378
}
377379

380+
/**
381+
* Get the value of all properties of this {@link AiConfiguration} instance including unrecognized
382+
* properties.
383+
*
384+
* @return The map of all properties
385+
*/
386+
@JsonIgnore
387+
@Nonnull
388+
public Map<String, Object> toMap() {
389+
final Map<String, Object> declaredFields = new LinkedHashMap<>(cloudSdkCustomFields);
390+
if (name != null) declaredFields.put("name", name);
391+
if (executableId != null) declaredFields.put("executableId", executableId);
392+
if (scenarioId != null) declaredFields.put("scenarioId", scenarioId);
393+
if (parameterBindings != null) declaredFields.put("parameterBindings", parameterBindings);
394+
if (inputArtifactBindings != null)
395+
declaredFields.put("inputArtifactBindings", inputArtifactBindings);
396+
if (id != null) declaredFields.put("id", id);
397+
if (createdAt != null) declaredFields.put("createdAt", createdAt);
398+
if (scenario != null) declaredFields.put("scenario", scenario);
399+
return declaredFields;
400+
}
401+
378402
/**
379403
* Set an unrecognizable property of this {@link AiConfiguration} instance. If the map previously
380404
* contained a mapping for the key, the old value is replaced by the specified value.

core/src/main/java/com/sap/ai/sdk/core/model/AiConfigurationBaseData.java

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,11 +263,13 @@ public Set<String> getCustomFieldNames() {
263263
/**
264264
* Get the value of an unrecognizable property of this {@link AiConfigurationBaseData} instance.
265265
*
266+
* @deprecated Use {@link #toMap()} instead.
266267
* @param name The name of the property
267268
* @return The value of the property
268269
* @throws NoSuchElementException If no property with the given name could be found.
269270
*/
270271
@Nullable
272+
@Deprecated
271273
public Object getCustomField(@Nonnull final String name) throws NoSuchElementException {
272274
if (!cloudSdkCustomFields.containsKey(name)) {
273275
throw new NoSuchElementException(
@@ -276,6 +278,25 @@ public Object getCustomField(@Nonnull final String name) throws NoSuchElementExc
276278
return cloudSdkCustomFields.get(name);
277279
}
278280

281+
/**
282+
* Get the value of all properties of this {@link AiConfigurationBaseData} instance including
283+
* unrecognized properties.
284+
*
285+
* @return The map of all properties
286+
*/
287+
@JsonIgnore
288+
@Nonnull
289+
public Map<String, Object> toMap() {
290+
final Map<String, Object> declaredFields = new LinkedHashMap<>(cloudSdkCustomFields);
291+
if (name != null) declaredFields.put("name", name);
292+
if (executableId != null) declaredFields.put("executableId", executableId);
293+
if (scenarioId != null) declaredFields.put("scenarioId", scenarioId);
294+
if (parameterBindings != null) declaredFields.put("parameterBindings", parameterBindings);
295+
if (inputArtifactBindings != null)
296+
declaredFields.put("inputArtifactBindings", inputArtifactBindings);
297+
return declaredFields;
298+
}
299+
279300
/**
280301
* Set an unrecognizable property of this {@link AiConfigurationBaseData} instance. If the map
281302
* previously contained a mapping for the key, the old value is replaced by the specified value.

core/src/main/java/com/sap/ai/sdk/core/model/AiConfigurationCreationResponse.java

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,11 +120,13 @@ public Set<String> getCustomFieldNames() {
120120
* Get the value of an unrecognizable property of this {@link AiConfigurationCreationResponse}
121121
* instance.
122122
*
123+
* @deprecated Use {@link #toMap()} instead.
123124
* @param name The name of the property
124125
* @return The value of the property
125126
* @throws NoSuchElementException If no property with the given name could be found.
126127
*/
127128
@Nullable
129+
@Deprecated
128130
public Object getCustomField(@Nonnull final String name) throws NoSuchElementException {
129131
if (!cloudSdkCustomFields.containsKey(name)) {
130132
throw new NoSuchElementException(
@@ -133,6 +135,21 @@ public Object getCustomField(@Nonnull final String name) throws NoSuchElementExc
133135
return cloudSdkCustomFields.get(name);
134136
}
135137

138+
/**
139+
* Get the value of all properties of this {@link AiConfigurationCreationResponse} instance
140+
* including unrecognized properties.
141+
*
142+
* @return The map of all properties
143+
*/
144+
@JsonIgnore
145+
@Nonnull
146+
public Map<String, Object> toMap() {
147+
final Map<String, Object> declaredFields = new LinkedHashMap<>(cloudSdkCustomFields);
148+
if (id != null) declaredFields.put("id", id);
149+
if (message != null) declaredFields.put("message", message);
150+
return declaredFields;
151+
}
152+
136153
/**
137154
* Set an unrecognizable property of this {@link AiConfigurationCreationResponse} instance. If the
138155
* map previously contained a mapping for the key, the old value is replaced by the specified

0 commit comments

Comments
 (0)