diff --git a/services/resourcemanager/src/main/java/cloud/stackit/sdk/resourcemanager/Pair.java b/services/resourcemanager/src/main/java/cloud/stackit/sdk/resourcemanager/Pair.java index c588e7f..d2454e9 100644 --- a/services/resourcemanager/src/main/java/cloud/stackit/sdk/resourcemanager/Pair.java +++ b/services/resourcemanager/src/main/java/cloud/stackit/sdk/resourcemanager/Pair.java @@ -14,7 +14,7 @@ @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.15.0") + comments = "Generator version: 7.19.0") public class Pair { private final String name; private final String value; diff --git a/services/resourcemanager/src/main/java/cloud/stackit/sdk/resourcemanager/ServerConfiguration.java b/services/resourcemanager/src/main/java/cloud/stackit/sdk/resourcemanager/ServerConfiguration.java index 6d8b5d7..c5c4370 100644 --- a/services/resourcemanager/src/main/java/cloud/stackit/sdk/resourcemanager/ServerConfiguration.java +++ b/services/resourcemanager/src/main/java/cloud/stackit/sdk/resourcemanager/ServerConfiguration.java @@ -17,7 +17,7 @@ /** Representing a Server configuration. */ @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.15.0") + comments = "Generator version: 7.19.0") public class ServerConfiguration { public String URL; public String description; diff --git a/services/resourcemanager/src/main/java/cloud/stackit/sdk/resourcemanager/ServerVariable.java b/services/resourcemanager/src/main/java/cloud/stackit/sdk/resourcemanager/ServerVariable.java index 4d05ebb..bd5c198 100644 --- a/services/resourcemanager/src/main/java/cloud/stackit/sdk/resourcemanager/ServerVariable.java +++ b/services/resourcemanager/src/main/java/cloud/stackit/sdk/resourcemanager/ServerVariable.java @@ -17,7 +17,7 @@ /** Representing a Server Variable for server URL template substitution. */ @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.15.0") + comments = "Generator version: 7.19.0") public class ServerVariable { public String description; public String defaultValue; diff --git a/services/resourcemanager/src/main/java/cloud/stackit/sdk/resourcemanager/StringUtil.java b/services/resourcemanager/src/main/java/cloud/stackit/sdk/resourcemanager/StringUtil.java index 055c671..a3263fa 100644 --- a/services/resourcemanager/src/main/java/cloud/stackit/sdk/resourcemanager/StringUtil.java +++ b/services/resourcemanager/src/main/java/cloud/stackit/sdk/resourcemanager/StringUtil.java @@ -17,7 +17,7 @@ @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.15.0") + comments = "Generator version: 7.19.0") public class StringUtil { /** * Check if the given array contains the given value (with case-insensitive comparison). diff --git a/services/resourcemanager/src/main/java/cloud/stackit/sdk/resourcemanager/model/AbstractOpenApiSchema.java b/services/resourcemanager/src/main/java/cloud/stackit/sdk/resourcemanager/model/AbstractOpenApiSchema.java index 7bdb667..18c4312 100644 --- a/services/resourcemanager/src/main/java/cloud/stackit/sdk/resourcemanager/model/AbstractOpenApiSchema.java +++ b/services/resourcemanager/src/main/java/cloud/stackit/sdk/resourcemanager/model/AbstractOpenApiSchema.java @@ -18,7 +18,7 @@ /** Abstract class for oneOf,anyOf schemas defined in OpenAPI spec */ @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.15.0") + comments = "Generator version: 7.19.0") public abstract class AbstractOpenApiSchema { // store the actual instance of the schema/object diff --git a/services/resourcemanager/src/main/java/cloud/stackit/sdk/resourcemanager/model/ContainerSearchResult.java b/services/resourcemanager/src/main/java/cloud/stackit/sdk/resourcemanager/model/ContainerSearchResult.java index 7e5d977..f2c8a6a 100644 --- a/services/resourcemanager/src/main/java/cloud/stackit/sdk/resourcemanager/model/ContainerSearchResult.java +++ b/services/resourcemanager/src/main/java/cloud/stackit/sdk/resourcemanager/model/ContainerSearchResult.java @@ -34,7 +34,7 @@ /** ContainerSearchResult */ @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.15.0") + comments = "Generator version: 7.19.0") public class ContainerSearchResult { public static final String SERIALIZED_NAME_CONTAINER_ID = "containerId"; @@ -318,6 +318,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti .isEmpty()) { // has required fields but JSON element is null throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "The required field(s) %s in ContainerSearchResult is not found in the empty JSON string", ContainerSearchResult.openapiRequiredFields.toString())); } @@ -329,8 +330,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (!ContainerSearchResult.openapiFields.contains(entry.getKey())) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `ContainerSearchResult` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + entry.getKey(), + jsonElement.toString())); } } @@ -339,20 +342,24 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonElement.getAsJsonObject().get(requiredField) == null) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", - requiredField, jsonElement.toString())); + requiredField, + jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if (!jsonObj.get("containerId").isJsonPrimitive()) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "Expected the field `containerId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("containerId").toString())); } if (!jsonObj.get("containerType").isJsonPrimitive()) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "Expected the field `containerType` to be a primitive type in the JSON string but got `%s`", jsonObj.get("containerType").toString())); } @@ -361,6 +368,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (!jsonObj.get("id").isJsonPrimitive()) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "Expected the field `id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("id").toString())); } @@ -371,6 +379,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (!jsonObj.get("name").isJsonPrimitive()) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } @@ -378,6 +387,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti && !jsonObj.get("organizationId").isJsonPrimitive()) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "Expected the field `organizationId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("organizationId").toString())); } diff --git a/services/resourcemanager/src/main/java/cloud/stackit/sdk/resourcemanager/model/CreateFolderPayload.java b/services/resourcemanager/src/main/java/cloud/stackit/sdk/resourcemanager/model/CreateFolderPayload.java index 0214daa..21ae751 100644 --- a/services/resourcemanager/src/main/java/cloud/stackit/sdk/resourcemanager/model/CreateFolderPayload.java +++ b/services/resourcemanager/src/main/java/cloud/stackit/sdk/resourcemanager/model/CreateFolderPayload.java @@ -35,7 +35,7 @@ /** CreateFolderPayload */ @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.15.0") + comments = "Generator version: 7.19.0") public class CreateFolderPayload { public static final String SERIALIZED_NAME_CONTAINER_PARENT_ID = "containerParentId"; @@ -228,6 +228,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti .isEmpty()) { // has required fields but JSON element is null throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "The required field(s) %s in CreateFolderPayload is not found in the empty JSON string", CreateFolderPayload.openapiRequiredFields.toString())); } @@ -239,8 +240,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (!CreateFolderPayload.openapiFields.contains(entry.getKey())) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `CreateFolderPayload` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + entry.getKey(), + jsonElement.toString())); } } @@ -249,14 +252,17 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonElement.getAsJsonObject().get(requiredField) == null) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", - requiredField, jsonElement.toString())); + requiredField, + jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if (!jsonObj.get("containerParentId").isJsonPrimitive()) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "Expected the field `containerParentId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("containerParentId").toString())); } @@ -267,6 +273,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (!jsonObj.get("members").isJsonArray()) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "Expected the field `members` to be an array in the JSON string but got `%s`", jsonObj.get("members").toString())); } @@ -281,6 +288,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (!jsonObj.get("name").isJsonPrimitive()) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } diff --git a/services/resourcemanager/src/main/java/cloud/stackit/sdk/resourcemanager/model/CreateProjectPayload.java b/services/resourcemanager/src/main/java/cloud/stackit/sdk/resourcemanager/model/CreateProjectPayload.java index 8be3de6..13e2e55 100644 --- a/services/resourcemanager/src/main/java/cloud/stackit/sdk/resourcemanager/model/CreateProjectPayload.java +++ b/services/resourcemanager/src/main/java/cloud/stackit/sdk/resourcemanager/model/CreateProjectPayload.java @@ -35,7 +35,7 @@ /** CreateProjectPayload */ @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.15.0") + comments = "Generator version: 7.19.0") public class CreateProjectPayload { public static final String SERIALIZED_NAME_CONTAINER_PARENT_ID = "containerParentId"; @@ -231,6 +231,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti .isEmpty()) { // has required fields but JSON element is null throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "The required field(s) %s in CreateProjectPayload is not found in the empty JSON string", CreateProjectPayload.openapiRequiredFields.toString())); } @@ -242,8 +243,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (!CreateProjectPayload.openapiFields.contains(entry.getKey())) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `CreateProjectPayload` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + entry.getKey(), + jsonElement.toString())); } } @@ -252,14 +255,17 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonElement.getAsJsonObject().get(requiredField) == null) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", - requiredField, jsonElement.toString())); + requiredField, + jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if (!jsonObj.get("containerParentId").isJsonPrimitive()) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "Expected the field `containerParentId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("containerParentId").toString())); } @@ -267,6 +273,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (!jsonObj.get("members").isJsonArray()) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "Expected the field `members` to be an array in the JSON string but got `%s`", jsonObj.get("members").toString())); } @@ -280,6 +287,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (!jsonObj.get("name").isJsonPrimitive()) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } diff --git a/services/resourcemanager/src/main/java/cloud/stackit/sdk/resourcemanager/model/ErrorResponse.java b/services/resourcemanager/src/main/java/cloud/stackit/sdk/resourcemanager/model/ErrorResponse.java index e04d4ac..3927175 100644 --- a/services/resourcemanager/src/main/java/cloud/stackit/sdk/resourcemanager/model/ErrorResponse.java +++ b/services/resourcemanager/src/main/java/cloud/stackit/sdk/resourcemanager/model/ErrorResponse.java @@ -34,7 +34,7 @@ /** ErrorResponse */ @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.15.0") + comments = "Generator version: 7.19.0") public class ErrorResponse { public static final String SERIALIZED_NAME_ERROR = "error"; @@ -235,6 +235,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti .isEmpty()) { // has required fields but JSON element is null throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "The required field(s) %s in ErrorResponse is not found in the empty JSON string", ErrorResponse.openapiRequiredFields.toString())); } @@ -246,8 +247,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (!ErrorResponse.openapiFields.contains(entry.getKey())) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `ErrorResponse` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + entry.getKey(), + jsonElement.toString())); } } @@ -256,26 +259,31 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonElement.getAsJsonObject().get(requiredField) == null) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", - requiredField, jsonElement.toString())); + requiredField, + jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if (!jsonObj.get("error").isJsonPrimitive()) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "Expected the field `error` to be a primitive type in the JSON string but got `%s`", jsonObj.get("error").toString())); } if (!jsonObj.get("message").isJsonPrimitive()) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "Expected the field `message` to be a primitive type in the JSON string but got `%s`", jsonObj.get("message").toString())); } if (!jsonObj.get("path").isJsonPrimitive()) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "Expected the field `path` to be a primitive type in the JSON string but got `%s`", jsonObj.get("path").toString())); } diff --git a/services/resourcemanager/src/main/java/cloud/stackit/sdk/resourcemanager/model/FolderResponse.java b/services/resourcemanager/src/main/java/cloud/stackit/sdk/resourcemanager/model/FolderResponse.java index 791379b..1a296a5 100644 --- a/services/resourcemanager/src/main/java/cloud/stackit/sdk/resourcemanager/model/FolderResponse.java +++ b/services/resourcemanager/src/main/java/cloud/stackit/sdk/resourcemanager/model/FolderResponse.java @@ -35,7 +35,7 @@ /** FolderResponse */ @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.15.0") + comments = "Generator version: 7.19.0") public class FolderResponse { public static final String SERIALIZED_NAME_CONTAINER_ID = "containerId"; @@ -312,6 +312,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti .isEmpty()) { // has required fields but JSON element is null throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "The required field(s) %s in FolderResponse is not found in the empty JSON string", FolderResponse.openapiRequiredFields.toString())); } @@ -323,8 +324,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (!FolderResponse.openapiFields.contains(entry.getKey())) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `FolderResponse` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + entry.getKey(), + jsonElement.toString())); } } @@ -333,26 +336,31 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonElement.getAsJsonObject().get(requiredField) == null) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", - requiredField, jsonElement.toString())); + requiredField, + jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if (!jsonObj.get("containerId").isJsonPrimitive()) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "Expected the field `containerId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("containerId").toString())); } if (!jsonObj.get("folderId").isJsonPrimitive()) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "Expected the field `folderId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("folderId").toString())); } if (!jsonObj.get("name").isJsonPrimitive()) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } diff --git a/services/resourcemanager/src/main/java/cloud/stackit/sdk/resourcemanager/model/GetFolderDetailsResponse.java b/services/resourcemanager/src/main/java/cloud/stackit/sdk/resourcemanager/model/GetFolderDetailsResponse.java index 0150d15..78e122d 100644 --- a/services/resourcemanager/src/main/java/cloud/stackit/sdk/resourcemanager/model/GetFolderDetailsResponse.java +++ b/services/resourcemanager/src/main/java/cloud/stackit/sdk/resourcemanager/model/GetFolderDetailsResponse.java @@ -38,7 +38,7 @@ /** GetFolderDetailsResponse */ @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.15.0") + comments = "Generator version: 7.19.0") public class GetFolderDetailsResponse { public static final String SERIALIZED_NAME_CONTAINER_ID = "containerId"; @@ -353,6 +353,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti .isEmpty()) { // has required fields but JSON element is null throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "The required field(s) %s in GetFolderDetailsResponse is not found in the empty JSON string", GetFolderDetailsResponse.openapiRequiredFields.toString())); } @@ -364,8 +365,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (!GetFolderDetailsResponse.openapiFields.contains(entry.getKey())) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `GetFolderDetailsResponse` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + entry.getKey(), + jsonElement.toString())); } } @@ -374,26 +377,31 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonElement.getAsJsonObject().get(requiredField) == null) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", - requiredField, jsonElement.toString())); + requiredField, + jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if (!jsonObj.get("containerId").isJsonPrimitive()) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "Expected the field `containerId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("containerId").toString())); } if (!jsonObj.get("folderId").isJsonPrimitive()) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "Expected the field `folderId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("folderId").toString())); } if (!jsonObj.get("name").isJsonPrimitive()) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } @@ -406,6 +414,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (!jsonObj.get("parents").isJsonArray()) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "Expected the field `parents` to be an array in the JSON string but got `%s`", jsonObj.get("parents").toString())); } diff --git a/services/resourcemanager/src/main/java/cloud/stackit/sdk/resourcemanager/model/GetProjectResponse.java b/services/resourcemanager/src/main/java/cloud/stackit/sdk/resourcemanager/model/GetProjectResponse.java index ade2789..0ab6461 100644 --- a/services/resourcemanager/src/main/java/cloud/stackit/sdk/resourcemanager/model/GetProjectResponse.java +++ b/services/resourcemanager/src/main/java/cloud/stackit/sdk/resourcemanager/model/GetProjectResponse.java @@ -38,7 +38,7 @@ /** GetProjectResponse */ @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.15.0") + comments = "Generator version: 7.19.0") public class GetProjectResponse { public static final String SERIALIZED_NAME_CONTAINER_ID = "containerId"; @@ -388,6 +388,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti .isEmpty()) { // has required fields but JSON element is null throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "The required field(s) %s in GetProjectResponse is not found in the empty JSON string", GetProjectResponse.openapiRequiredFields.toString())); } @@ -399,8 +400,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (!GetProjectResponse.openapiFields.contains(entry.getKey())) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `GetProjectResponse` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + entry.getKey(), + jsonElement.toString())); } } @@ -409,14 +412,17 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonElement.getAsJsonObject().get(requiredField) == null) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", - requiredField, jsonElement.toString())); + requiredField, + jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if (!jsonObj.get("containerId").isJsonPrimitive()) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "Expected the field `containerId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("containerId").toString())); } @@ -425,6 +431,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (!jsonObj.get("name").isJsonPrimitive()) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } @@ -437,6 +444,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (!jsonObj.get("parents").isJsonArray()) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "Expected the field `parents` to be an array in the JSON string but got `%s`", jsonObj.get("parents").toString())); } @@ -451,6 +459,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (!jsonObj.get("projectId").isJsonPrimitive()) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "Expected the field `projectId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("projectId").toString())); } diff --git a/services/resourcemanager/src/main/java/cloud/stackit/sdk/resourcemanager/model/ListFoldersResponse.java b/services/resourcemanager/src/main/java/cloud/stackit/sdk/resourcemanager/model/ListFoldersResponse.java index 5e22124..82d46ba 100644 --- a/services/resourcemanager/src/main/java/cloud/stackit/sdk/resourcemanager/model/ListFoldersResponse.java +++ b/services/resourcemanager/src/main/java/cloud/stackit/sdk/resourcemanager/model/ListFoldersResponse.java @@ -36,7 +36,7 @@ /** ListFoldersResponse */ @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.15.0") + comments = "Generator version: 7.19.0") public class ListFoldersResponse { public static final String SERIALIZED_NAME_ITEMS = "items"; @@ -189,6 +189,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti .isEmpty()) { // has required fields but JSON element is null throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "The required field(s) %s in ListFoldersResponse is not found in the empty JSON string", ListFoldersResponse.openapiRequiredFields.toString())); } @@ -200,8 +201,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (!ListFoldersResponse.openapiFields.contains(entry.getKey())) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `ListFoldersResponse` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + entry.getKey(), + jsonElement.toString())); } } @@ -210,8 +213,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonElement.getAsJsonObject().get(requiredField) == null) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", - requiredField, jsonElement.toString())); + requiredField, + jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -219,6 +224,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (!jsonObj.get("items").isJsonArray()) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "Expected the field `items` to be an array in the JSON string but got `%s`", jsonObj.get("items").toString())); } diff --git a/services/resourcemanager/src/main/java/cloud/stackit/sdk/resourcemanager/model/ListFoldersResponseItemsInner.java b/services/resourcemanager/src/main/java/cloud/stackit/sdk/resourcemanager/model/ListFoldersResponseItemsInner.java index 6122428..94b6c38 100644 --- a/services/resourcemanager/src/main/java/cloud/stackit/sdk/resourcemanager/model/ListFoldersResponseItemsInner.java +++ b/services/resourcemanager/src/main/java/cloud/stackit/sdk/resourcemanager/model/ListFoldersResponseItemsInner.java @@ -35,7 +35,7 @@ /** ListFoldersResponseItemsInner */ @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.15.0") + comments = "Generator version: 7.19.0") public class ListFoldersResponseItemsInner { public static final String SERIALIZED_NAME_CONTAINER_ID = "containerId"; @@ -317,6 +317,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti .isEmpty()) { // has required fields but JSON element is null throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "The required field(s) %s in ListFoldersResponseItemsInner is not found in the empty JSON string", ListFoldersResponseItemsInner.openapiRequiredFields.toString())); } @@ -328,8 +329,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (!ListFoldersResponseItemsInner.openapiFields.contains(entry.getKey())) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `ListFoldersResponseItemsInner` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + entry.getKey(), + jsonElement.toString())); } } @@ -338,26 +341,31 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonElement.getAsJsonObject().get(requiredField) == null) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", - requiredField, jsonElement.toString())); + requiredField, + jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if (!jsonObj.get("containerId").isJsonPrimitive()) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "Expected the field `containerId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("containerId").toString())); } if (!jsonObj.get("folderId").isJsonPrimitive()) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "Expected the field `folderId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("folderId").toString())); } if (!jsonObj.get("name").isJsonPrimitive()) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } diff --git a/services/resourcemanager/src/main/java/cloud/stackit/sdk/resourcemanager/model/ListOrganizationsResponse.java b/services/resourcemanager/src/main/java/cloud/stackit/sdk/resourcemanager/model/ListOrganizationsResponse.java index 81bbcb5..4e2b225 100644 --- a/services/resourcemanager/src/main/java/cloud/stackit/sdk/resourcemanager/model/ListOrganizationsResponse.java +++ b/services/resourcemanager/src/main/java/cloud/stackit/sdk/resourcemanager/model/ListOrganizationsResponse.java @@ -36,7 +36,7 @@ /** ListOrganizationsResponse */ @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.15.0") + comments = "Generator version: 7.19.0") public class ListOrganizationsResponse { public static final String SERIALIZED_NAME_ITEMS = "items"; @@ -190,6 +190,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti .isEmpty()) { // has required fields but JSON element is null throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "The required field(s) %s in ListOrganizationsResponse is not found in the empty JSON string", ListOrganizationsResponse.openapiRequiredFields.toString())); } @@ -201,8 +202,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (!ListOrganizationsResponse.openapiFields.contains(entry.getKey())) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `ListOrganizationsResponse` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + entry.getKey(), + jsonElement.toString())); } } @@ -211,8 +214,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonElement.getAsJsonObject().get(requiredField) == null) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", - requiredField, jsonElement.toString())); + requiredField, + jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -220,6 +225,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (!jsonObj.get("items").isJsonArray()) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "Expected the field `items` to be an array in the JSON string but got `%s`", jsonObj.get("items").toString())); } diff --git a/services/resourcemanager/src/main/java/cloud/stackit/sdk/resourcemanager/model/ListOrganizationsResponseItemsInner.java b/services/resourcemanager/src/main/java/cloud/stackit/sdk/resourcemanager/model/ListOrganizationsResponseItemsInner.java index 992d44b..80b3376 100644 --- a/services/resourcemanager/src/main/java/cloud/stackit/sdk/resourcemanager/model/ListOrganizationsResponseItemsInner.java +++ b/services/resourcemanager/src/main/java/cloud/stackit/sdk/resourcemanager/model/ListOrganizationsResponseItemsInner.java @@ -35,7 +35,7 @@ /** ListOrganizationsResponseItemsInner */ @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.15.0") + comments = "Generator version: 7.19.0") public class ListOrganizationsResponseItemsInner { public static final String SERIALIZED_NAME_CONTAINER_ID = "containerId"; @@ -330,6 +330,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti .isEmpty()) { // has required fields but JSON element is null throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "The required field(s) %s in ListOrganizationsResponseItemsInner is not found in the empty JSON string", ListOrganizationsResponseItemsInner.openapiRequiredFields .toString())); @@ -342,8 +343,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (!ListOrganizationsResponseItemsInner.openapiFields.contains(entry.getKey())) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `ListOrganizationsResponseItemsInner` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + entry.getKey(), + jsonElement.toString())); } } @@ -352,14 +355,17 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonElement.getAsJsonObject().get(requiredField) == null) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", - requiredField, jsonElement.toString())); + requiredField, + jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if (!jsonObj.get("containerId").isJsonPrimitive()) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "Expected the field `containerId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("containerId").toString())); } @@ -368,12 +374,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (!jsonObj.get("name").isJsonPrimitive()) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } if (!jsonObj.get("organizationId").isJsonPrimitive()) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "Expected the field `organizationId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("organizationId").toString())); } diff --git a/services/resourcemanager/src/main/java/cloud/stackit/sdk/resourcemanager/model/ListProjectsResponse.java b/services/resourcemanager/src/main/java/cloud/stackit/sdk/resourcemanager/model/ListProjectsResponse.java index d5fd05f..e9c92a0 100644 --- a/services/resourcemanager/src/main/java/cloud/stackit/sdk/resourcemanager/model/ListProjectsResponse.java +++ b/services/resourcemanager/src/main/java/cloud/stackit/sdk/resourcemanager/model/ListProjectsResponse.java @@ -36,7 +36,7 @@ /** ListProjectsResponse */ @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.15.0") + comments = "Generator version: 7.19.0") public class ListProjectsResponse { public static final String SERIALIZED_NAME_ITEMS = "items"; @@ -188,6 +188,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti .isEmpty()) { // has required fields but JSON element is null throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "The required field(s) %s in ListProjectsResponse is not found in the empty JSON string", ListProjectsResponse.openapiRequiredFields.toString())); } @@ -199,8 +200,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (!ListProjectsResponse.openapiFields.contains(entry.getKey())) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `ListProjectsResponse` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + entry.getKey(), + jsonElement.toString())); } } @@ -209,8 +212,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonElement.getAsJsonObject().get(requiredField) == null) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", - requiredField, jsonElement.toString())); + requiredField, + jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -218,6 +223,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (!jsonObj.get("items").isJsonArray()) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "Expected the field `items` to be an array in the JSON string but got `%s`", jsonObj.get("items").toString())); } diff --git a/services/resourcemanager/src/main/java/cloud/stackit/sdk/resourcemanager/model/Member.java b/services/resourcemanager/src/main/java/cloud/stackit/sdk/resourcemanager/model/Member.java index 246f479..770e5d9 100644 --- a/services/resourcemanager/src/main/java/cloud/stackit/sdk/resourcemanager/model/Member.java +++ b/services/resourcemanager/src/main/java/cloud/stackit/sdk/resourcemanager/model/Member.java @@ -32,7 +32,7 @@ /** Member */ @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.15.0") + comments = "Generator version: 7.19.0") public class Member { public static final String SERIALIZED_NAME_ROLE = "role"; @@ -148,6 +148,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti .isEmpty()) { // has required fields but JSON element is null throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "The required field(s) %s in Member is not found in the empty JSON string", Member.openapiRequiredFields.toString())); } @@ -159,8 +160,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (!Member.openapiFields.contains(entry.getKey())) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `Member` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + entry.getKey(), + jsonElement.toString())); } } @@ -169,20 +172,24 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonElement.getAsJsonObject().get(requiredField) == null) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", - requiredField, jsonElement.toString())); + requiredField, + jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if (!jsonObj.get("role").isJsonPrimitive()) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "Expected the field `role` to be a primitive type in the JSON string but got `%s`", jsonObj.get("role").toString())); } if (!jsonObj.get("subject").isJsonPrimitive()) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "Expected the field `subject` to be a primitive type in the JSON string but got `%s`", jsonObj.get("subject").toString())); } diff --git a/services/resourcemanager/src/main/java/cloud/stackit/sdk/resourcemanager/model/OrganizationResponse.java b/services/resourcemanager/src/main/java/cloud/stackit/sdk/resourcemanager/model/OrganizationResponse.java index 75dfeb7..76d4aa1 100644 --- a/services/resourcemanager/src/main/java/cloud/stackit/sdk/resourcemanager/model/OrganizationResponse.java +++ b/services/resourcemanager/src/main/java/cloud/stackit/sdk/resourcemanager/model/OrganizationResponse.java @@ -35,7 +35,7 @@ /** OrganizationResponse */ @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.15.0") + comments = "Generator version: 7.19.0") public class OrganizationResponse { public static final String SERIALIZED_NAME_CONTAINER_ID = "containerId"; @@ -321,6 +321,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti .isEmpty()) { // has required fields but JSON element is null throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "The required field(s) %s in OrganizationResponse is not found in the empty JSON string", OrganizationResponse.openapiRequiredFields.toString())); } @@ -332,8 +333,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (!OrganizationResponse.openapiFields.contains(entry.getKey())) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `OrganizationResponse` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + entry.getKey(), + jsonElement.toString())); } } @@ -342,14 +345,17 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonElement.getAsJsonObject().get(requiredField) == null) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", - requiredField, jsonElement.toString())); + requiredField, + jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if (!jsonObj.get("containerId").isJsonPrimitive()) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "Expected the field `containerId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("containerId").toString())); } @@ -358,12 +364,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (!jsonObj.get("name").isJsonPrimitive()) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } if (!jsonObj.get("organizationId").isJsonPrimitive()) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "Expected the field `organizationId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("organizationId").toString())); } diff --git a/services/resourcemanager/src/main/java/cloud/stackit/sdk/resourcemanager/model/Parent.java b/services/resourcemanager/src/main/java/cloud/stackit/sdk/resourcemanager/model/Parent.java index f3f1953..6e17415 100644 --- a/services/resourcemanager/src/main/java/cloud/stackit/sdk/resourcemanager/model/Parent.java +++ b/services/resourcemanager/src/main/java/cloud/stackit/sdk/resourcemanager/model/Parent.java @@ -34,7 +34,7 @@ /** Parent container. */ @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.15.0") + comments = "Generator version: 7.19.0") public class Parent { public static final String SERIALIZED_NAME_CONTAINER_ID = "containerId"; @@ -230,6 +230,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti .isEmpty()) { // has required fields but JSON element is null throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "The required field(s) %s in Parent is not found in the empty JSON string", Parent.openapiRequiredFields.toString())); } @@ -241,8 +242,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (!Parent.openapiFields.contains(entry.getKey())) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `Parent` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + entry.getKey(), + jsonElement.toString())); } } @@ -251,26 +254,31 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonElement.getAsJsonObject().get(requiredField) == null) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", - requiredField, jsonElement.toString())); + requiredField, + jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if (!jsonObj.get("containerId").isJsonPrimitive()) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "Expected the field `containerId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("containerId").toString())); } if (!jsonObj.get("id").isJsonPrimitive()) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "Expected the field `id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("id").toString())); } if (!jsonObj.get("type").isJsonPrimitive()) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); } diff --git a/services/resourcemanager/src/main/java/cloud/stackit/sdk/resourcemanager/model/ParentListInner.java b/services/resourcemanager/src/main/java/cloud/stackit/sdk/resourcemanager/model/ParentListInner.java index 04a935f..8da2a58 100644 --- a/services/resourcemanager/src/main/java/cloud/stackit/sdk/resourcemanager/model/ParentListInner.java +++ b/services/resourcemanager/src/main/java/cloud/stackit/sdk/resourcemanager/model/ParentListInner.java @@ -34,7 +34,7 @@ /** ParentListInner */ @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.15.0") + comments = "Generator version: 7.19.0") public class ParentListInner { public static final String SERIALIZED_NAME_CONTAINER_ID = "containerId"; @@ -318,6 +318,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti .isEmpty()) { // has required fields but JSON element is null throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "The required field(s) %s in ParentListInner is not found in the empty JSON string", ParentListInner.openapiRequiredFields.toString())); } @@ -329,8 +330,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (!ParentListInner.openapiFields.contains(entry.getKey())) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `ParentListInner` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + entry.getKey(), + jsonElement.toString())); } } @@ -339,14 +342,17 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonElement.getAsJsonObject().get(requiredField) == null) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", - requiredField, jsonElement.toString())); + requiredField, + jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if (!jsonObj.get("containerId").isJsonPrimitive()) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "Expected the field `containerId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("containerId").toString())); } @@ -355,18 +361,21 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti && !jsonObj.get("containerParentId").isJsonPrimitive()) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "Expected the field `containerParentId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("containerParentId").toString())); } if (!jsonObj.get("id").isJsonPrimitive()) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "Expected the field `id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("id").toString())); } if (!jsonObj.get("name").isJsonPrimitive()) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } @@ -374,12 +383,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti && !jsonObj.get("parentId").isJsonPrimitive()) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "Expected the field `parentId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("parentId").toString())); } if (!jsonObj.get("type").isJsonPrimitive()) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); } diff --git a/services/resourcemanager/src/main/java/cloud/stackit/sdk/resourcemanager/model/PartialUpdateFolderPayload.java b/services/resourcemanager/src/main/java/cloud/stackit/sdk/resourcemanager/model/PartialUpdateFolderPayload.java index c596ee1..d9e04d7 100644 --- a/services/resourcemanager/src/main/java/cloud/stackit/sdk/resourcemanager/model/PartialUpdateFolderPayload.java +++ b/services/resourcemanager/src/main/java/cloud/stackit/sdk/resourcemanager/model/PartialUpdateFolderPayload.java @@ -33,7 +33,7 @@ /** PartialUpdateFolderPayload */ @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.15.0") + comments = "Generator version: 7.19.0") public class PartialUpdateFolderPayload { public static final String SERIALIZED_NAME_CONTAINER_PARENT_ID = "containerParentId"; @@ -187,6 +187,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti .isEmpty()) { // has required fields but JSON element is null throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "The required field(s) %s in PartialUpdateFolderPayload is not found in the empty JSON string", PartialUpdateFolderPayload.openapiRequiredFields.toString())); } @@ -198,8 +199,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (!PartialUpdateFolderPayload.openapiFields.contains(entry.getKey())) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `PartialUpdateFolderPayload` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + entry.getKey(), + jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -208,6 +211,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti && !jsonObj.get("containerParentId").isJsonPrimitive()) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "Expected the field `containerParentId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("containerParentId").toString())); } @@ -215,6 +219,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti && !jsonObj.get("name").isJsonPrimitive()) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } diff --git a/services/resourcemanager/src/main/java/cloud/stackit/sdk/resourcemanager/model/PartialUpdateOrganizationPayload.java b/services/resourcemanager/src/main/java/cloud/stackit/sdk/resourcemanager/model/PartialUpdateOrganizationPayload.java index 6c868b1..cb5eb8f 100644 --- a/services/resourcemanager/src/main/java/cloud/stackit/sdk/resourcemanager/model/PartialUpdateOrganizationPayload.java +++ b/services/resourcemanager/src/main/java/cloud/stackit/sdk/resourcemanager/model/PartialUpdateOrganizationPayload.java @@ -33,7 +33,7 @@ /** PartialUpdateOrganizationPayload */ @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.15.0") + comments = "Generator version: 7.19.0") public class PartialUpdateOrganizationPayload { public static final String SERIALIZED_NAME_LABELS = "labels"; @@ -160,6 +160,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti .isEmpty()) { // has required fields but JSON element is null throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "The required field(s) %s in PartialUpdateOrganizationPayload is not found in the empty JSON string", PartialUpdateOrganizationPayload.openapiRequiredFields.toString())); } @@ -171,8 +172,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (!PartialUpdateOrganizationPayload.openapiFields.contains(entry.getKey())) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `PartialUpdateOrganizationPayload` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + entry.getKey(), + jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -180,6 +183,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti && !jsonObj.get("name").isJsonPrimitive()) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } diff --git a/services/resourcemanager/src/main/java/cloud/stackit/sdk/resourcemanager/model/PartialUpdateProjectPayload.java b/services/resourcemanager/src/main/java/cloud/stackit/sdk/resourcemanager/model/PartialUpdateProjectPayload.java index b3c0ea8..b006c5e 100644 --- a/services/resourcemanager/src/main/java/cloud/stackit/sdk/resourcemanager/model/PartialUpdateProjectPayload.java +++ b/services/resourcemanager/src/main/java/cloud/stackit/sdk/resourcemanager/model/PartialUpdateProjectPayload.java @@ -33,7 +33,7 @@ /** PartialUpdateProjectPayload */ @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.15.0") + comments = "Generator version: 7.19.0") public class PartialUpdateProjectPayload { public static final String SERIALIZED_NAME_CONTAINER_PARENT_ID = "containerParentId"; @@ -188,6 +188,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti .isEmpty()) { // has required fields but JSON element is null throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "The required field(s) %s in PartialUpdateProjectPayload is not found in the empty JSON string", PartialUpdateProjectPayload.openapiRequiredFields.toString())); } @@ -199,8 +200,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (!PartialUpdateProjectPayload.openapiFields.contains(entry.getKey())) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `PartialUpdateProjectPayload` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + entry.getKey(), + jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -209,6 +212,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti && !jsonObj.get("containerParentId").isJsonPrimitive()) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "Expected the field `containerParentId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("containerParentId").toString())); } @@ -216,6 +220,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti && !jsonObj.get("name").isJsonPrimitive()) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } diff --git a/services/resourcemanager/src/main/java/cloud/stackit/sdk/resourcemanager/model/Project.java b/services/resourcemanager/src/main/java/cloud/stackit/sdk/resourcemanager/model/Project.java index 2655478..8c1c133 100644 --- a/services/resourcemanager/src/main/java/cloud/stackit/sdk/resourcemanager/model/Project.java +++ b/services/resourcemanager/src/main/java/cloud/stackit/sdk/resourcemanager/model/Project.java @@ -35,7 +35,7 @@ /** Project */ @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.15.0") + comments = "Generator version: 7.19.0") public class Project { public static final String SERIALIZED_NAME_CONTAINER_ID = "containerId"; @@ -349,6 +349,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti .isEmpty()) { // has required fields but JSON element is null throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "The required field(s) %s in Project is not found in the empty JSON string", Project.openapiRequiredFields.toString())); } @@ -360,8 +361,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (!Project.openapiFields.contains(entry.getKey())) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `Project` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + entry.getKey(), + jsonElement.toString())); } } @@ -370,14 +373,17 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonElement.getAsJsonObject().get(requiredField) == null) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", - requiredField, jsonElement.toString())); + requiredField, + jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); if (!jsonObj.get("containerId").isJsonPrimitive()) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "Expected the field `containerId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("containerId").toString())); } @@ -386,6 +392,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (!jsonObj.get("name").isJsonPrimitive()) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } @@ -394,6 +401,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (!jsonObj.get("projectId").isJsonPrimitive()) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "Expected the field `projectId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("projectId").toString())); }