Skip to content

Commit a635cfb

Browse files
Generate resourcemanager
1 parent 4d7bd44 commit a635cfb

25 files changed

+212
-62
lines changed

services/resourcemanager/src/main/java/cloud/stackit/sdk/resourcemanager/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.15.0")
17+
comments = "Generator version: 7.19.0")
1818
public class Pair {
1919
private final String name;
2020
private final String value;

services/resourcemanager/src/main/java/cloud/stackit/sdk/resourcemanager/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.15.0")
20+
comments = "Generator version: 7.19.0")
2121
public class ServerConfiguration {
2222
public String URL;
2323
public String description;

services/resourcemanager/src/main/java/cloud/stackit/sdk/resourcemanager/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.15.0")
20+
comments = "Generator version: 7.19.0")
2121
public class ServerVariable {
2222
public String description;
2323
public String defaultValue;

services/resourcemanager/src/main/java/cloud/stackit/sdk/resourcemanager/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.15.0")
20+
comments = "Generator version: 7.19.0")
2121
public class StringUtil {
2222
/**
2323
* Check if the given array contains the given value (with case-insensitive comparison).

services/resourcemanager/src/main/java/cloud/stackit/sdk/resourcemanager/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.15.0")
21+
comments = "Generator version: 7.19.0")
2222
public abstract class AbstractOpenApiSchema {
2323

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

services/resourcemanager/src/main/java/cloud/stackit/sdk/resourcemanager/model/ContainerSearchResult.java

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
/** ContainerSearchResult */
3535
@javax.annotation.Generated(
3636
value = "org.openapitools.codegen.languages.JavaClientCodegen",
37-
comments = "Generator version: 7.15.0")
37+
comments = "Generator version: 7.19.0")
3838
public class ContainerSearchResult {
3939
public static final String SERIALIZED_NAME_CONTAINER_ID = "containerId";
4040

@@ -318,6 +318,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
318318
.isEmpty()) { // has required fields but JSON element is null
319319
throw new IllegalArgumentException(
320320
String.format(
321+
java.util.Locale.ROOT,
321322
"The required field(s) %s in ContainerSearchResult is not found in the empty JSON string",
322323
ContainerSearchResult.openapiRequiredFields.toString()));
323324
}
@@ -329,8 +330,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
329330
if (!ContainerSearchResult.openapiFields.contains(entry.getKey())) {
330331
throw new IllegalArgumentException(
331332
String.format(
333+
java.util.Locale.ROOT,
332334
"The field `%s` in the JSON string is not defined in the `ContainerSearchResult` properties. JSON: %s",
333-
entry.getKey(), jsonElement.toString()));
335+
entry.getKey(),
336+
jsonElement.toString()));
334337
}
335338
}
336339

@@ -339,20 +342,24 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
339342
if (jsonElement.getAsJsonObject().get(requiredField) == null) {
340343
throw new IllegalArgumentException(
341344
String.format(
345+
java.util.Locale.ROOT,
342346
"The required field `%s` is not found in the JSON string: %s",
343-
requiredField, jsonElement.toString()));
347+
requiredField,
348+
jsonElement.toString()));
344349
}
345350
}
346351
JsonObject jsonObj = jsonElement.getAsJsonObject();
347352
if (!jsonObj.get("containerId").isJsonPrimitive()) {
348353
throw new IllegalArgumentException(
349354
String.format(
355+
java.util.Locale.ROOT,
350356
"Expected the field `containerId` to be a primitive type in the JSON string but got `%s`",
351357
jsonObj.get("containerId").toString()));
352358
}
353359
if (!jsonObj.get("containerType").isJsonPrimitive()) {
354360
throw new IllegalArgumentException(
355361
String.format(
362+
java.util.Locale.ROOT,
356363
"Expected the field `containerType` to be a primitive type in the JSON string but got `%s`",
357364
jsonObj.get("containerType").toString()));
358365
}
@@ -361,6 +368,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
361368
if (!jsonObj.get("id").isJsonPrimitive()) {
362369
throw new IllegalArgumentException(
363370
String.format(
371+
java.util.Locale.ROOT,
364372
"Expected the field `id` to be a primitive type in the JSON string but got `%s`",
365373
jsonObj.get("id").toString()));
366374
}
@@ -371,13 +379,15 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
371379
if (!jsonObj.get("name").isJsonPrimitive()) {
372380
throw new IllegalArgumentException(
373381
String.format(
382+
java.util.Locale.ROOT,
374383
"Expected the field `name` to be a primitive type in the JSON string but got `%s`",
375384
jsonObj.get("name").toString()));
376385
}
377386
if ((jsonObj.get("organizationId") != null && !jsonObj.get("organizationId").isJsonNull())
378387
&& !jsonObj.get("organizationId").isJsonPrimitive()) {
379388
throw new IllegalArgumentException(
380389
String.format(
390+
java.util.Locale.ROOT,
381391
"Expected the field `organizationId` to be a primitive type in the JSON string but got `%s`",
382392
jsonObj.get("organizationId").toString()));
383393
}

services/resourcemanager/src/main/java/cloud/stackit/sdk/resourcemanager/model/CreateFolderPayload.java

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

@@ -228,6 +228,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
228228
.isEmpty()) { // has required fields but JSON element is null
229229
throw new IllegalArgumentException(
230230
String.format(
231+
java.util.Locale.ROOT,
231232
"The required field(s) %s in CreateFolderPayload is not found in the empty JSON string",
232233
CreateFolderPayload.openapiRequiredFields.toString()));
233234
}
@@ -239,8 +240,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
239240
if (!CreateFolderPayload.openapiFields.contains(entry.getKey())) {
240241
throw new IllegalArgumentException(
241242
String.format(
243+
java.util.Locale.ROOT,
242244
"The field `%s` in the JSON string is not defined in the `CreateFolderPayload` properties. JSON: %s",
243-
entry.getKey(), jsonElement.toString()));
245+
entry.getKey(),
246+
jsonElement.toString()));
244247
}
245248
}
246249

@@ -249,14 +252,17 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
249252
if (jsonElement.getAsJsonObject().get(requiredField) == null) {
250253
throw new IllegalArgumentException(
251254
String.format(
255+
java.util.Locale.ROOT,
252256
"The required field `%s` is not found in the JSON string: %s",
253-
requiredField, jsonElement.toString()));
257+
requiredField,
258+
jsonElement.toString()));
254259
}
255260
}
256261
JsonObject jsonObj = jsonElement.getAsJsonObject();
257262
if (!jsonObj.get("containerParentId").isJsonPrimitive()) {
258263
throw new IllegalArgumentException(
259264
String.format(
265+
java.util.Locale.ROOT,
260266
"Expected the field `containerParentId` to be a primitive type in the JSON string but got `%s`",
261267
jsonObj.get("containerParentId").toString()));
262268
}
@@ -267,6 +273,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
267273
if (!jsonObj.get("members").isJsonArray()) {
268274
throw new IllegalArgumentException(
269275
String.format(
276+
java.util.Locale.ROOT,
270277
"Expected the field `members` to be an array in the JSON string but got `%s`",
271278
jsonObj.get("members").toString()));
272279
}
@@ -281,6 +288,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
281288
if (!jsonObj.get("name").isJsonPrimitive()) {
282289
throw new IllegalArgumentException(
283290
String.format(
291+
java.util.Locale.ROOT,
284292
"Expected the field `name` to be a primitive type in the JSON string but got `%s`",
285293
jsonObj.get("name").toString()));
286294
}

services/resourcemanager/src/main/java/cloud/stackit/sdk/resourcemanager/model/CreateProjectPayload.java

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

@@ -231,6 +231,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
231231
.isEmpty()) { // has required fields but JSON element is null
232232
throw new IllegalArgumentException(
233233
String.format(
234+
java.util.Locale.ROOT,
234235
"The required field(s) %s in CreateProjectPayload is not found in the empty JSON string",
235236
CreateProjectPayload.openapiRequiredFields.toString()));
236237
}
@@ -242,8 +243,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
242243
if (!CreateProjectPayload.openapiFields.contains(entry.getKey())) {
243244
throw new IllegalArgumentException(
244245
String.format(
246+
java.util.Locale.ROOT,
245247
"The field `%s` in the JSON string is not defined in the `CreateProjectPayload` properties. JSON: %s",
246-
entry.getKey(), jsonElement.toString()));
248+
entry.getKey(),
249+
jsonElement.toString()));
247250
}
248251
}
249252

@@ -252,21 +255,25 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
252255
if (jsonElement.getAsJsonObject().get(requiredField) == null) {
253256
throw new IllegalArgumentException(
254257
String.format(
258+
java.util.Locale.ROOT,
255259
"The required field `%s` is not found in the JSON string: %s",
256-
requiredField, jsonElement.toString()));
260+
requiredField,
261+
jsonElement.toString()));
257262
}
258263
}
259264
JsonObject jsonObj = jsonElement.getAsJsonObject();
260265
if (!jsonObj.get("containerParentId").isJsonPrimitive()) {
261266
throw new IllegalArgumentException(
262267
String.format(
268+
java.util.Locale.ROOT,
263269
"Expected the field `containerParentId` to be a primitive type in the JSON string but got `%s`",
264270
jsonObj.get("containerParentId").toString()));
265271
}
266272
// ensure the json data is an array
267273
if (!jsonObj.get("members").isJsonArray()) {
268274
throw new IllegalArgumentException(
269275
String.format(
276+
java.util.Locale.ROOT,
270277
"Expected the field `members` to be an array in the JSON string but got `%s`",
271278
jsonObj.get("members").toString()));
272279
}
@@ -280,6 +287,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
280287
if (!jsonObj.get("name").isJsonPrimitive()) {
281288
throw new IllegalArgumentException(
282289
String.format(
290+
java.util.Locale.ROOT,
283291
"Expected the field `name` to be a primitive type in the JSON string but got `%s`",
284292
jsonObj.get("name").toString()));
285293
}

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

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
/** ErrorResponse */
3535
@javax.annotation.Generated(
3636
value = "org.openapitools.codegen.languages.JavaClientCodegen",
37-
comments = "Generator version: 7.15.0")
37+
comments = "Generator version: 7.19.0")
3838
public class ErrorResponse {
3939
public static final String SERIALIZED_NAME_ERROR = "error";
4040

@@ -235,6 +235,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
235235
.isEmpty()) { // has required fields but JSON element is null
236236
throw new IllegalArgumentException(
237237
String.format(
238+
java.util.Locale.ROOT,
238239
"The required field(s) %s in ErrorResponse is not found in the empty JSON string",
239240
ErrorResponse.openapiRequiredFields.toString()));
240241
}
@@ -246,8 +247,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
246247
if (!ErrorResponse.openapiFields.contains(entry.getKey())) {
247248
throw new IllegalArgumentException(
248249
String.format(
250+
java.util.Locale.ROOT,
249251
"The field `%s` in the JSON string is not defined in the `ErrorResponse` properties. JSON: %s",
250-
entry.getKey(), jsonElement.toString()));
252+
entry.getKey(),
253+
jsonElement.toString()));
251254
}
252255
}
253256

@@ -256,26 +259,31 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
256259
if (jsonElement.getAsJsonObject().get(requiredField) == null) {
257260
throw new IllegalArgumentException(
258261
String.format(
262+
java.util.Locale.ROOT,
259263
"The required field `%s` is not found in the JSON string: %s",
260-
requiredField, jsonElement.toString()));
264+
requiredField,
265+
jsonElement.toString()));
261266
}
262267
}
263268
JsonObject jsonObj = jsonElement.getAsJsonObject();
264269
if (!jsonObj.get("error").isJsonPrimitive()) {
265270
throw new IllegalArgumentException(
266271
String.format(
272+
java.util.Locale.ROOT,
267273
"Expected the field `error` to be a primitive type in the JSON string but got `%s`",
268274
jsonObj.get("error").toString()));
269275
}
270276
if (!jsonObj.get("message").isJsonPrimitive()) {
271277
throw new IllegalArgumentException(
272278
String.format(
279+
java.util.Locale.ROOT,
273280
"Expected the field `message` to be a primitive type in the JSON string but got `%s`",
274281
jsonObj.get("message").toString()));
275282
}
276283
if (!jsonObj.get("path").isJsonPrimitive()) {
277284
throw new IllegalArgumentException(
278285
String.format(
286+
java.util.Locale.ROOT,
279287
"Expected the field `path` to be a primitive type in the JSON string but got `%s`",
280288
jsonObj.get("path").toString()));
281289
}

services/resourcemanager/src/main/java/cloud/stackit/sdk/resourcemanager/model/FolderResponse.java

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

@@ -312,6 +312,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
312312
.isEmpty()) { // has required fields but JSON element is null
313313
throw new IllegalArgumentException(
314314
String.format(
315+
java.util.Locale.ROOT,
315316
"The required field(s) %s in FolderResponse is not found in the empty JSON string",
316317
FolderResponse.openapiRequiredFields.toString()));
317318
}
@@ -323,8 +324,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
323324
if (!FolderResponse.openapiFields.contains(entry.getKey())) {
324325
throw new IllegalArgumentException(
325326
String.format(
327+
java.util.Locale.ROOT,
326328
"The field `%s` in the JSON string is not defined in the `FolderResponse` properties. JSON: %s",
327-
entry.getKey(), jsonElement.toString()));
329+
entry.getKey(),
330+
jsonElement.toString()));
328331
}
329332
}
330333

@@ -333,26 +336,31 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
333336
if (jsonElement.getAsJsonObject().get(requiredField) == null) {
334337
throw new IllegalArgumentException(
335338
String.format(
339+
java.util.Locale.ROOT,
336340
"The required field `%s` is not found in the JSON string: %s",
337-
requiredField, jsonElement.toString()));
341+
requiredField,
342+
jsonElement.toString()));
338343
}
339344
}
340345
JsonObject jsonObj = jsonElement.getAsJsonObject();
341346
if (!jsonObj.get("containerId").isJsonPrimitive()) {
342347
throw new IllegalArgumentException(
343348
String.format(
349+
java.util.Locale.ROOT,
344350
"Expected the field `containerId` to be a primitive type in the JSON string but got `%s`",
345351
jsonObj.get("containerId").toString()));
346352
}
347353
if (!jsonObj.get("folderId").isJsonPrimitive()) {
348354
throw new IllegalArgumentException(
349355
String.format(
356+
java.util.Locale.ROOT,
350357
"Expected the field `folderId` to be a primitive type in the JSON string but got `%s`",
351358
jsonObj.get("folderId").toString()));
352359
}
353360
if (!jsonObj.get("name").isJsonPrimitive()) {
354361
throw new IllegalArgumentException(
355362
String.format(
363+
java.util.Locale.ROOT,
356364
"Expected the field `name` to be a primitive type in the JSON string but got `%s`",
357365
jsonObj.get("name").toString()));
358366
}

0 commit comments

Comments
 (0)