Skip to content

Commit ec1640e

Browse files
committed
Update generated code
1 parent 54317cf commit ec1640e

16 files changed

+1841
-138
lines changed

core/src/main/java/com/sap/ai/sdk/core/model/InlineObject2.java renamed to core/src/main/java/com/sap/ai/sdk/core/model/AiBadRequest.java

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@
2323
import javax.annotation.Nonnull;
2424
import javax.annotation.Nullable;
2525

26-
/** InlineObject2 */
26+
/** AiBadRequest */
2727
// CHECKSTYLE:OFF
28-
public class InlineObject2
28+
public class AiBadRequest
2929
// CHECKSTYLE:ON
3030
{
3131
@JsonProperty("error")
@@ -34,42 +34,42 @@ public class InlineObject2
3434
@JsonAnySetter @JsonAnyGetter
3535
private final Map<String, Object> cloudSdkCustomFields = new LinkedHashMap<>();
3636

37-
/** Default constructor for InlineObject2. */
38-
protected InlineObject2() {}
37+
/** Default constructor for AiBadRequest. */
38+
protected AiBadRequest() {}
3939

4040
/**
41-
* Set the error of this {@link InlineObject2} instance and return the same instance.
41+
* Set the error of this {@link AiBadRequest} instance and return the same instance.
4242
*
43-
* @param error The error of this {@link InlineObject2}
44-
* @return The same instance of this {@link InlineObject2} class
43+
* @param error The error of this {@link AiBadRequest}
44+
* @return The same instance of this {@link AiBadRequest} class
4545
*/
4646
@Nonnull
47-
public InlineObject2 error(@Nullable final AiApiError error) {
47+
public AiBadRequest error(@Nullable final AiApiError error) {
4848
this.error = error;
4949
return this;
5050
}
5151

5252
/**
5353
* Get error
5454
*
55-
* @return error The error of this {@link InlineObject2} instance.
55+
* @return error The error of this {@link AiBadRequest} instance.
5656
*/
5757
@Nonnull
5858
public AiApiError getError() {
5959
return error;
6060
}
6161

6262
/**
63-
* Set the error of this {@link InlineObject2} instance.
63+
* Set the error of this {@link AiBadRequest} instance.
6464
*
65-
* @param error The error of this {@link InlineObject2}
65+
* @param error The error of this {@link AiBadRequest}
6666
*/
6767
public void setError(@Nullable final AiApiError error) {
6868
this.error = error;
6969
}
7070

7171
/**
72-
* Get the names of the unrecognizable properties of the {@link InlineObject2}.
72+
* Get the names of the unrecognizable properties of the {@link AiBadRequest}.
7373
*
7474
* @return The set of properties names
7575
*/
@@ -80,7 +80,7 @@ public Set<String> getCustomFieldNames() {
8080
}
8181

8282
/**
83-
* Get the value of an unrecognizable property of this {@link InlineObject2} instance.
83+
* Get the value of an unrecognizable property of this {@link AiBadRequest} instance.
8484
*
8585
* @deprecated Use {@link #toMap()} instead.
8686
* @param name The name of the property
@@ -91,13 +91,13 @@ public Set<String> getCustomFieldNames() {
9191
@Deprecated
9292
public Object getCustomField(@Nonnull final String name) throws NoSuchElementException {
9393
if (!cloudSdkCustomFields.containsKey(name)) {
94-
throw new NoSuchElementException("InlineObject2 has no field with name '" + name + "'.");
94+
throw new NoSuchElementException("AiBadRequest has no field with name '" + name + "'.");
9595
}
9696
return cloudSdkCustomFields.get(name);
9797
}
9898

9999
/**
100-
* Get the value of all properties of this {@link InlineObject2} instance including unrecognized
100+
* Get the value of all properties of this {@link AiBadRequest} instance including unrecognized
101101
* properties.
102102
*
103103
* @return The map of all properties
@@ -111,7 +111,7 @@ public Map<String, Object> toMap() {
111111
}
112112

113113
/**
114-
* Set an unrecognizable property of this {@link InlineObject2} instance. If the map previously
114+
* Set an unrecognizable property of this {@link AiBadRequest} instance. If the map previously
115115
* contained a mapping for the key, the old value is replaced by the specified value.
116116
*
117117
* @param customFieldName The name of the property
@@ -130,9 +130,9 @@ public boolean equals(@Nullable final java.lang.Object o) {
130130
if (o == null || getClass() != o.getClass()) {
131131
return false;
132132
}
133-
final InlineObject2 inlineObject2 = (InlineObject2) o;
134-
return Objects.equals(this.cloudSdkCustomFields, inlineObject2.cloudSdkCustomFields)
135-
&& Objects.equals(this.error, inlineObject2.error);
133+
final AiBadRequest aiBadRequest = (AiBadRequest) o;
134+
return Objects.equals(this.cloudSdkCustomFields, aiBadRequest.cloudSdkCustomFields)
135+
&& Objects.equals(this.error, aiBadRequest.error);
136136
}
137137

138138
@Override
@@ -144,7 +144,7 @@ public int hashCode() {
144144
@Nonnull
145145
public String toString() {
146146
final StringBuilder sb = new StringBuilder();
147-
sb.append("class InlineObject2 {\n");
147+
sb.append("class AiBadRequest {\n");
148148
sb.append(" error: ").append(toIndentedString(error)).append("\n");
149149
cloudSdkCustomFields.forEach(
150150
(k, v) ->
@@ -163,8 +163,8 @@ private String toIndentedString(final java.lang.Object o) {
163163
return o.toString().replace("\n", "\n ");
164164
}
165165

166-
/** Create a new {@link InlineObject2} instance. No arguments are required. */
167-
public static InlineObject2 create() {
168-
return new InlineObject2();
166+
/** Create a new {@link AiBadRequest} instance. No arguments are required. */
167+
public static AiBadRequest create() {
168+
return new AiBadRequest();
169169
}
170170
}
Lines changed: 170 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,170 @@
1+
/*
2+
* AI Core
3+
* Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models.
4+
*
5+
*
6+
*
7+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
8+
* https://openapi-generator.tech
9+
* Do not edit the class manually.
10+
*/
11+
12+
package com.sap.ai.sdk.core.model;
13+
14+
import com.fasterxml.jackson.annotation.JsonAnyGetter;
15+
import com.fasterxml.jackson.annotation.JsonAnySetter;
16+
import com.fasterxml.jackson.annotation.JsonIgnore;
17+
import com.fasterxml.jackson.annotation.JsonProperty;
18+
import java.util.LinkedHashMap;
19+
import java.util.Map;
20+
import java.util.NoSuchElementException;
21+
import java.util.Objects;
22+
import java.util.Set;
23+
import javax.annotation.Nonnull;
24+
import javax.annotation.Nullable;
25+
26+
/** AiNotFound */
27+
// CHECKSTYLE:OFF
28+
public class AiNotFound
29+
// CHECKSTYLE:ON
30+
{
31+
@JsonProperty("error")
32+
private AiApiError error;
33+
34+
@JsonAnySetter @JsonAnyGetter
35+
private final Map<String, Object> cloudSdkCustomFields = new LinkedHashMap<>();
36+
37+
/** Default constructor for AiNotFound. */
38+
protected AiNotFound() {}
39+
40+
/**
41+
* Set the error of this {@link AiNotFound} instance and return the same instance.
42+
*
43+
* @param error The error of this {@link AiNotFound}
44+
* @return The same instance of this {@link AiNotFound} class
45+
*/
46+
@Nonnull
47+
public AiNotFound error(@Nullable final AiApiError error) {
48+
this.error = error;
49+
return this;
50+
}
51+
52+
/**
53+
* Get error
54+
*
55+
* @return error The error of this {@link AiNotFound} instance.
56+
*/
57+
@Nonnull
58+
public AiApiError getError() {
59+
return error;
60+
}
61+
62+
/**
63+
* Set the error of this {@link AiNotFound} instance.
64+
*
65+
* @param error The error of this {@link AiNotFound}
66+
*/
67+
public void setError(@Nullable final AiApiError error) {
68+
this.error = error;
69+
}
70+
71+
/**
72+
* Get the names of the unrecognizable properties of the {@link AiNotFound}.
73+
*
74+
* @return The set of properties names
75+
*/
76+
@JsonIgnore
77+
@Nonnull
78+
public Set<String> getCustomFieldNames() {
79+
return cloudSdkCustomFields.keySet();
80+
}
81+
82+
/**
83+
* Get the value of an unrecognizable property of this {@link AiNotFound} instance.
84+
*
85+
* @deprecated Use {@link #toMap()} instead.
86+
* @param name The name of the property
87+
* @return The value of the property
88+
* @throws NoSuchElementException If no property with the given name could be found.
89+
*/
90+
@Nullable
91+
@Deprecated
92+
public Object getCustomField(@Nonnull final String name) throws NoSuchElementException {
93+
if (!cloudSdkCustomFields.containsKey(name)) {
94+
throw new NoSuchElementException("AiNotFound has no field with name '" + name + "'.");
95+
}
96+
return cloudSdkCustomFields.get(name);
97+
}
98+
99+
/**
100+
* Get the value of all properties of this {@link AiNotFound} instance including unrecognized
101+
* properties.
102+
*
103+
* @return The map of all properties
104+
*/
105+
@JsonIgnore
106+
@Nonnull
107+
public Map<String, Object> toMap() {
108+
final Map<String, Object> declaredFields = new LinkedHashMap<>(cloudSdkCustomFields);
109+
if (error != null) declaredFields.put("error", error);
110+
return declaredFields;
111+
}
112+
113+
/**
114+
* Set an unrecognizable property of this {@link AiNotFound} instance. If the map previously
115+
* contained a mapping for the key, the old value is replaced by the specified value.
116+
*
117+
* @param customFieldName The name of the property
118+
* @param customFieldValue The value of the property
119+
*/
120+
@JsonIgnore
121+
public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) {
122+
cloudSdkCustomFields.put(customFieldName, customFieldValue);
123+
}
124+
125+
@Override
126+
public boolean equals(@Nullable final java.lang.Object o) {
127+
if (this == o) {
128+
return true;
129+
}
130+
if (o == null || getClass() != o.getClass()) {
131+
return false;
132+
}
133+
final AiNotFound aiNotFound = (AiNotFound) o;
134+
return Objects.equals(this.cloudSdkCustomFields, aiNotFound.cloudSdkCustomFields)
135+
&& Objects.equals(this.error, aiNotFound.error);
136+
}
137+
138+
@Override
139+
public int hashCode() {
140+
return Objects.hash(error, cloudSdkCustomFields);
141+
}
142+
143+
@Override
144+
@Nonnull
145+
public String toString() {
146+
final StringBuilder sb = new StringBuilder();
147+
sb.append("class AiNotFound {\n");
148+
sb.append(" error: ").append(toIndentedString(error)).append("\n");
149+
cloudSdkCustomFields.forEach(
150+
(k, v) ->
151+
sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n"));
152+
sb.append("}");
153+
return sb.toString();
154+
}
155+
156+
/**
157+
* Convert the given object to string with each line indented by 4 spaces (except the first line).
158+
*/
159+
private String toIndentedString(final java.lang.Object o) {
160+
if (o == null) {
161+
return "null";
162+
}
163+
return o.toString().replace("\n", "\n ");
164+
}
165+
166+
/** Create a new {@link AiNotFound} instance. No arguments are required. */
167+
public static AiNotFound create() {
168+
return new AiNotFound();
169+
}
170+
}

0 commit comments

Comments
 (0)