Skip to content

Commit 00ff975

Browse files
committed
Revert "Generate serverupdate (#253)"
This reverts commit e8a34be.
1 parent e8a34be commit 00ff975

18 files changed

+38
-113
lines changed

services/serverupdate/src/main/java/cloud/stackit/sdk/serverupdate/Pair.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
@javax.annotation.Generated(
1616
value = "org.openapitools.codegen.languages.JavaClientCodegen",
17-
comments = "Generator version: 7.19.0")
17+
comments = "Generator version: 7.15.0")
1818
public class Pair {
1919
private final String name;
2020
private final String value;

services/serverupdate/src/main/java/cloud/stackit/sdk/serverupdate/ServerConfiguration.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
/** Representing a Server configuration. */
1818
@javax.annotation.Generated(
1919
value = "org.openapitools.codegen.languages.JavaClientCodegen",
20-
comments = "Generator version: 7.19.0")
20+
comments = "Generator version: 7.15.0")
2121
public class ServerConfiguration {
2222
public String URL;
2323
public String description;

services/serverupdate/src/main/java/cloud/stackit/sdk/serverupdate/ServerVariable.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
/** Representing a Server Variable for server URL template substitution. */
1818
@javax.annotation.Generated(
1919
value = "org.openapitools.codegen.languages.JavaClientCodegen",
20-
comments = "Generator version: 7.19.0")
20+
comments = "Generator version: 7.15.0")
2121
public class ServerVariable {
2222
public String description;
2323
public String defaultValue;

services/serverupdate/src/main/java/cloud/stackit/sdk/serverupdate/StringUtil.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
@javax.annotation.Generated(
1919
value = "org.openapitools.codegen.languages.JavaClientCodegen",
20-
comments = "Generator version: 7.19.0")
20+
comments = "Generator version: 7.15.0")
2121
public class StringUtil {
2222
/**
2323
* Check if the given array contains the given value (with case-insensitive comparison).

services/serverupdate/src/main/java/cloud/stackit/sdk/serverupdate/model/AbstractOpenApiSchema.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
/** Abstract class for oneOf,anyOf schemas defined in OpenAPI spec */
1919
@javax.annotation.Generated(
2020
value = "org.openapitools.codegen.languages.JavaClientCodegen",
21-
comments = "Generator version: 7.19.0")
21+
comments = "Generator version: 7.15.0")
2222
public abstract class AbstractOpenApiSchema {
2323

2424
// store the actual instance of the schema/object

services/serverupdate/src/main/java/cloud/stackit/sdk/serverupdate/model/CreateUpdatePayload.java

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
/** CreateUpdatePayload */
3333
@javax.annotation.Generated(
3434
value = "org.openapitools.codegen.languages.JavaClientCodegen",
35-
comments = "Generator version: 7.19.0")
35+
comments = "Generator version: 7.15.0")
3636
public class CreateUpdatePayload {
3737
public static final String SERIALIZED_NAME_BACKUP_BEFORE_UPDATE = "backupBeforeUpdate";
3838

@@ -153,7 +153,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
153153
.isEmpty()) { // has required fields but JSON element is null
154154
throw new IllegalArgumentException(
155155
String.format(
156-
java.util.Locale.ROOT,
157156
"The required field(s) %s in CreateUpdatePayload is not found in the empty JSON string",
158157
CreateUpdatePayload.openapiRequiredFields.toString()));
159158
}
@@ -165,10 +164,8 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
165164
if (!CreateUpdatePayload.openapiFields.contains(entry.getKey())) {
166165
throw new IllegalArgumentException(
167166
String.format(
168-
java.util.Locale.ROOT,
169167
"The field `%s` in the JSON string is not defined in the `CreateUpdatePayload` properties. JSON: %s",
170-
entry.getKey(),
171-
jsonElement.toString()));
168+
entry.getKey(), jsonElement.toString()));
172169
}
173170
}
174171

@@ -177,10 +174,8 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
177174
if (jsonElement.getAsJsonObject().get(requiredField) == null) {
178175
throw new IllegalArgumentException(
179176
String.format(
180-
java.util.Locale.ROOT,
181177
"The required field `%s` is not found in the JSON string: %s",
182-
requiredField,
183-
jsonElement.toString()));
178+
requiredField, jsonElement.toString()));
184179
}
185180
}
186181
JsonObject jsonObj = jsonElement.getAsJsonObject();

services/serverupdate/src/main/java/cloud/stackit/sdk/serverupdate/model/CreateUpdateSchedulePayload.java

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
/** CreateUpdateSchedulePayload */
3333
@javax.annotation.Generated(
3434
value = "org.openapitools.codegen.languages.JavaClientCodegen",
35-
comments = "Generator version: 7.19.0")
35+
comments = "Generator version: 7.15.0")
3636
public class CreateUpdateSchedulePayload {
3737
public static final String SERIALIZED_NAME_ENABLED = "enabled";
3838

@@ -209,7 +209,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
209209
.isEmpty()) { // has required fields but JSON element is null
210210
throw new IllegalArgumentException(
211211
String.format(
212-
java.util.Locale.ROOT,
213212
"The required field(s) %s in CreateUpdateSchedulePayload is not found in the empty JSON string",
214213
CreateUpdateSchedulePayload.openapiRequiredFields.toString()));
215214
}
@@ -221,10 +220,8 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
221220
if (!CreateUpdateSchedulePayload.openapiFields.contains(entry.getKey())) {
222221
throw new IllegalArgumentException(
223222
String.format(
224-
java.util.Locale.ROOT,
225223
"The field `%s` in the JSON string is not defined in the `CreateUpdateSchedulePayload` properties. JSON: %s",
226-
entry.getKey(),
227-
jsonElement.toString()));
224+
entry.getKey(), jsonElement.toString()));
228225
}
229226
}
230227

@@ -233,24 +230,20 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
233230
if (jsonElement.getAsJsonObject().get(requiredField) == null) {
234231
throw new IllegalArgumentException(
235232
String.format(
236-
java.util.Locale.ROOT,
237233
"The required field `%s` is not found in the JSON string: %s",
238-
requiredField,
239-
jsonElement.toString()));
234+
requiredField, jsonElement.toString()));
240235
}
241236
}
242237
JsonObject jsonObj = jsonElement.getAsJsonObject();
243238
if (!jsonObj.get("name").isJsonPrimitive()) {
244239
throw new IllegalArgumentException(
245240
String.format(
246-
java.util.Locale.ROOT,
247241
"Expected the field `name` to be a primitive type in the JSON string but got `%s`",
248242
jsonObj.get("name").toString()));
249243
}
250244
if (!jsonObj.get("rrule").isJsonPrimitive()) {
251245
throw new IllegalArgumentException(
252246
String.format(
253-
java.util.Locale.ROOT,
254247
"Expected the field `rrule` to be a primitive type in the JSON string but got `%s`",
255248
jsonObj.get("rrule").toString()));
256249
}

services/serverupdate/src/main/java/cloud/stackit/sdk/serverupdate/model/EnableServiceResourcePayload.java

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
/** EnableServiceResourcePayload */
3434
@javax.annotation.Generated(
3535
value = "org.openapitools.codegen.languages.JavaClientCodegen",
36-
comments = "Generator version: 7.19.0")
36+
comments = "Generator version: 7.15.0")
3737
public class EnableServiceResourcePayload {
3838
public static final String SERIALIZED_NAME_UPDATE_POLICY_ID = "updatePolicyId";
3939

@@ -123,7 +123,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
123123
.isEmpty()) { // has required fields but JSON element is null
124124
throw new IllegalArgumentException(
125125
String.format(
126-
java.util.Locale.ROOT,
127126
"The required field(s) %s in EnableServiceResourcePayload is not found in the empty JSON string",
128127
EnableServiceResourcePayload.openapiRequiredFields.toString()));
129128
}
@@ -135,18 +134,15 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
135134
if (!EnableServiceResourcePayload.openapiFields.contains(entry.getKey())) {
136135
throw new IllegalArgumentException(
137136
String.format(
138-
java.util.Locale.ROOT,
139137
"The field `%s` in the JSON string is not defined in the `EnableServiceResourcePayload` properties. JSON: %s",
140-
entry.getKey(),
141-
jsonElement.toString()));
138+
entry.getKey(), jsonElement.toString()));
142139
}
143140
}
144141
JsonObject jsonObj = jsonElement.getAsJsonObject();
145142
if ((jsonObj.get("updatePolicyId") != null && !jsonObj.get("updatePolicyId").isJsonNull())
146143
&& !jsonObj.get("updatePolicyId").isJsonPrimitive()) {
147144
throw new IllegalArgumentException(
148145
String.format(
149-
java.util.Locale.ROOT,
150146
"Expected the field `updatePolicyId` to be a primitive type in the JSON string but got `%s`",
151147
jsonObj.get("updatePolicyId").toString()));
152148
}

services/serverupdate/src/main/java/cloud/stackit/sdk/serverupdate/model/ErrorResponse.java

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
/** ErrorResponse */
3333
@javax.annotation.Generated(
3434
value = "org.openapitools.codegen.languages.JavaClientCodegen",
35-
comments = "Generator version: 7.19.0")
35+
comments = "Generator version: 7.15.0")
3636
public class ErrorResponse {
3737
public static final String SERIALIZED_NAME_MESSAGE = "message";
3838

@@ -148,7 +148,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
148148
.isEmpty()) { // has required fields but JSON element is null
149149
throw new IllegalArgumentException(
150150
String.format(
151-
java.util.Locale.ROOT,
152151
"The required field(s) %s in ErrorResponse is not found in the empty JSON string",
153152
ErrorResponse.openapiRequiredFields.toString()));
154153
}
@@ -160,10 +159,8 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
160159
if (!ErrorResponse.openapiFields.contains(entry.getKey())) {
161160
throw new IllegalArgumentException(
162161
String.format(
163-
java.util.Locale.ROOT,
164162
"The field `%s` in the JSON string is not defined in the `ErrorResponse` properties. JSON: %s",
165-
entry.getKey(),
166-
jsonElement.toString()));
163+
entry.getKey(), jsonElement.toString()));
167164
}
168165
}
169166

@@ -172,24 +169,20 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
172169
if (jsonElement.getAsJsonObject().get(requiredField) == null) {
173170
throw new IllegalArgumentException(
174171
String.format(
175-
java.util.Locale.ROOT,
176172
"The required field `%s` is not found in the JSON string: %s",
177-
requiredField,
178-
jsonElement.toString()));
173+
requiredField, jsonElement.toString()));
179174
}
180175
}
181176
JsonObject jsonObj = jsonElement.getAsJsonObject();
182177
if (!jsonObj.get("message").isJsonPrimitive()) {
183178
throw new IllegalArgumentException(
184179
String.format(
185-
java.util.Locale.ROOT,
186180
"Expected the field `message` to be a primitive type in the JSON string but got `%s`",
187181
jsonObj.get("message").toString()));
188182
}
189183
if (!jsonObj.get("status").isJsonPrimitive()) {
190184
throw new IllegalArgumentException(
191185
String.format(
192-
java.util.Locale.ROOT,
193186
"Expected the field `status` to be a primitive type in the JSON string but got `%s`",
194187
jsonObj.get("status").toString()));
195188
}

services/serverupdate/src/main/java/cloud/stackit/sdk/serverupdate/model/GetUpdatePoliciesResponse.java

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
/** GetUpdatePoliciesResponse */
3636
@javax.annotation.Generated(
3737
value = "org.openapitools.codegen.languages.JavaClientCodegen",
38-
comments = "Generator version: 7.19.0")
38+
comments = "Generator version: 7.15.0")
3939
public class GetUpdatePoliciesResponse {
4040
public static final String SERIALIZED_NAME_ITEMS = "items";
4141

@@ -130,7 +130,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
130130
.isEmpty()) { // has required fields but JSON element is null
131131
throw new IllegalArgumentException(
132132
String.format(
133-
java.util.Locale.ROOT,
134133
"The required field(s) %s in GetUpdatePoliciesResponse is not found in the empty JSON string",
135134
GetUpdatePoliciesResponse.openapiRequiredFields.toString()));
136135
}
@@ -142,10 +141,8 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
142141
if (!GetUpdatePoliciesResponse.openapiFields.contains(entry.getKey())) {
143142
throw new IllegalArgumentException(
144143
String.format(
145-
java.util.Locale.ROOT,
146144
"The field `%s` in the JSON string is not defined in the `GetUpdatePoliciesResponse` properties. JSON: %s",
147-
entry.getKey(),
148-
jsonElement.toString()));
145+
entry.getKey(), jsonElement.toString()));
149146
}
150147
}
151148
JsonObject jsonObj = jsonElement.getAsJsonObject();
@@ -156,7 +153,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
156153
if (!jsonObj.get("items").isJsonArray()) {
157154
throw new IllegalArgumentException(
158155
String.format(
159-
java.util.Locale.ROOT,
160156
"Expected the field `items` to be an array in the JSON string but got `%s`",
161157
jsonObj.get("items").toString()));
162158
}

0 commit comments

Comments
 (0)