diff --git a/services/objectstorage/src/main/java/cloud/stackit/sdk/objectstorage/Pair.java b/services/objectstorage/src/main/java/cloud/stackit/sdk/objectstorage/Pair.java index 07582f2..0909c58 100644 --- a/services/objectstorage/src/main/java/cloud/stackit/sdk/objectstorage/Pair.java +++ b/services/objectstorage/src/main/java/cloud/stackit/sdk/objectstorage/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/objectstorage/src/main/java/cloud/stackit/sdk/objectstorage/ServerConfiguration.java b/services/objectstorage/src/main/java/cloud/stackit/sdk/objectstorage/ServerConfiguration.java index f47ff95..835b97e 100644 --- a/services/objectstorage/src/main/java/cloud/stackit/sdk/objectstorage/ServerConfiguration.java +++ b/services/objectstorage/src/main/java/cloud/stackit/sdk/objectstorage/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/objectstorage/src/main/java/cloud/stackit/sdk/objectstorage/ServerVariable.java b/services/objectstorage/src/main/java/cloud/stackit/sdk/objectstorage/ServerVariable.java index 9597eac..7e28f35 100644 --- a/services/objectstorage/src/main/java/cloud/stackit/sdk/objectstorage/ServerVariable.java +++ b/services/objectstorage/src/main/java/cloud/stackit/sdk/objectstorage/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/objectstorage/src/main/java/cloud/stackit/sdk/objectstorage/StringUtil.java b/services/objectstorage/src/main/java/cloud/stackit/sdk/objectstorage/StringUtil.java index ea26bb6..a0ff3e9 100644 --- a/services/objectstorage/src/main/java/cloud/stackit/sdk/objectstorage/StringUtil.java +++ b/services/objectstorage/src/main/java/cloud/stackit/sdk/objectstorage/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/objectstorage/src/main/java/cloud/stackit/sdk/objectstorage/model/AbstractOpenApiSchema.java b/services/objectstorage/src/main/java/cloud/stackit/sdk/objectstorage/model/AbstractOpenApiSchema.java index fa331e2..eb0d16e 100644 --- a/services/objectstorage/src/main/java/cloud/stackit/sdk/objectstorage/model/AbstractOpenApiSchema.java +++ b/services/objectstorage/src/main/java/cloud/stackit/sdk/objectstorage/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/objectstorage/src/main/java/cloud/stackit/sdk/objectstorage/model/AccessKey.java b/services/objectstorage/src/main/java/cloud/stackit/sdk/objectstorage/model/AccessKey.java index 02bcfa2..27e8679 100644 --- a/services/objectstorage/src/main/java/cloud/stackit/sdk/objectstorage/model/AccessKey.java +++ b/services/objectstorage/src/main/java/cloud/stackit/sdk/objectstorage/model/AccessKey.java @@ -32,7 +32,7 @@ /** AccessKey */ @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.15.0") + comments = "Generator version: 7.19.0") public class AccessKey { public static final String SERIALIZED_NAME_DISPLAY_NAME = "displayName"; @@ -176,6 +176,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 AccessKey is not found in the empty JSON string", AccessKey.openapiRequiredFields.toString())); } @@ -187,8 +188,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (!AccessKey.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 `AccessKey` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + entry.getKey(), + jsonElement.toString())); } } @@ -197,26 +200,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("displayName").isJsonPrimitive()) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "Expected the field `displayName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("displayName").toString())); } if (!jsonObj.get("expires").isJsonPrimitive()) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "Expected the field `expires` to be a primitive type in the JSON string but got `%s`", jsonObj.get("expires").toString())); } if (!jsonObj.get("keyId").isJsonPrimitive()) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "Expected the field `keyId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("keyId").toString())); } diff --git a/services/objectstorage/src/main/java/cloud/stackit/sdk/objectstorage/model/Bucket.java b/services/objectstorage/src/main/java/cloud/stackit/sdk/objectstorage/model/Bucket.java index fd10092..955c7a3 100644 --- a/services/objectstorage/src/main/java/cloud/stackit/sdk/objectstorage/model/Bucket.java +++ b/services/objectstorage/src/main/java/cloud/stackit/sdk/objectstorage/model/Bucket.java @@ -32,7 +32,7 @@ /** Bucket */ @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.15.0") + comments = "Generator version: 7.19.0") public class Bucket { public static final String SERIALIZED_NAME_NAME = "name"; @@ -208,6 +208,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 Bucket is not found in the empty JSON string", Bucket.openapiRequiredFields.toString())); } @@ -219,8 +220,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (!Bucket.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 `Bucket` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + entry.getKey(), + jsonElement.toString())); } } @@ -229,32 +232,38 @@ 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("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("region").isJsonPrimitive()) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "Expected the field `region` to be a primitive type in the JSON string but got `%s`", jsonObj.get("region").toString())); } if (!jsonObj.get("urlPathStyle").isJsonPrimitive()) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "Expected the field `urlPathStyle` to be a primitive type in the JSON string but got `%s`", jsonObj.get("urlPathStyle").toString())); } if (!jsonObj.get("urlVirtualHostedStyle").isJsonPrimitive()) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "Expected the field `urlVirtualHostedStyle` to be a primitive type in the JSON string but got `%s`", jsonObj.get("urlVirtualHostedStyle").toString())); } diff --git a/services/objectstorage/src/main/java/cloud/stackit/sdk/objectstorage/model/CreateAccessKeyPayload.java b/services/objectstorage/src/main/java/cloud/stackit/sdk/objectstorage/model/CreateAccessKeyPayload.java index a2d7736..36df0c5 100644 --- a/services/objectstorage/src/main/java/cloud/stackit/sdk/objectstorage/model/CreateAccessKeyPayload.java +++ b/services/objectstorage/src/main/java/cloud/stackit/sdk/objectstorage/model/CreateAccessKeyPayload.java @@ -33,7 +33,7 @@ /** CreateAccessKeyPayload */ @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.15.0") + comments = "Generator version: 7.19.0") public class CreateAccessKeyPayload { public static final String SERIALIZED_NAME_EXPIRES = "expires"; @@ -120,6 +120,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 CreateAccessKeyPayload is not found in the empty JSON string", CreateAccessKeyPayload.openapiRequiredFields.toString())); } @@ -131,8 +132,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (!CreateAccessKeyPayload.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 `CreateAccessKeyPayload` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + entry.getKey(), + jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); diff --git a/services/objectstorage/src/main/java/cloud/stackit/sdk/objectstorage/model/CreateAccessKeyResponse.java b/services/objectstorage/src/main/java/cloud/stackit/sdk/objectstorage/model/CreateAccessKeyResponse.java index 3521a9b..de4091e 100644 --- a/services/objectstorage/src/main/java/cloud/stackit/sdk/objectstorage/model/CreateAccessKeyResponse.java +++ b/services/objectstorage/src/main/java/cloud/stackit/sdk/objectstorage/model/CreateAccessKeyResponse.java @@ -32,7 +32,7 @@ /** CreateAccessKeyResponse */ @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.15.0") + comments = "Generator version: 7.19.0") public class CreateAccessKeyResponse { public static final String SERIALIZED_NAME_ACCESS_KEY = "accessKey"; @@ -271,6 +271,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 CreateAccessKeyResponse is not found in the empty JSON string", CreateAccessKeyResponse.openapiRequiredFields.toString())); } @@ -282,8 +283,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (!CreateAccessKeyResponse.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 `CreateAccessKeyResponse` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + entry.getKey(), + jsonElement.toString())); } } @@ -292,20 +295,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("accessKey").isJsonPrimitive()) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "Expected the field `accessKey` to be a primitive type in the JSON string but got `%s`", jsonObj.get("accessKey").toString())); } if (!jsonObj.get("displayName").isJsonPrimitive()) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "Expected the field `displayName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("displayName").toString())); } @@ -313,24 +320,28 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti && !jsonObj.get("expires").isJsonPrimitive()) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "Expected the field `expires` to be a primitive type in the JSON string but got `%s`", jsonObj.get("expires").toString())); } if (!jsonObj.get("keyId").isJsonPrimitive()) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "Expected the field `keyId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("keyId").toString())); } if (!jsonObj.get("project").isJsonPrimitive()) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "Expected the field `project` to be a primitive type in the JSON string but got `%s`", jsonObj.get("project").toString())); } if (!jsonObj.get("secretAccessKey").isJsonPrimitive()) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "Expected the field `secretAccessKey` to be a primitive type in the JSON string but got `%s`", jsonObj.get("secretAccessKey").toString())); } diff --git a/services/objectstorage/src/main/java/cloud/stackit/sdk/objectstorage/model/CreateBucketResponse.java b/services/objectstorage/src/main/java/cloud/stackit/sdk/objectstorage/model/CreateBucketResponse.java index 59fc500..5c73ff5 100644 --- a/services/objectstorage/src/main/java/cloud/stackit/sdk/objectstorage/model/CreateBucketResponse.java +++ b/services/objectstorage/src/main/java/cloud/stackit/sdk/objectstorage/model/CreateBucketResponse.java @@ -32,7 +32,7 @@ /** CreateBucketResponse */ @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.15.0") + comments = "Generator version: 7.19.0") public class CreateBucketResponse { public static final String SERIALIZED_NAME_BUCKET = "bucket"; @@ -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 CreateBucketResponse is not found in the empty JSON string", CreateBucketResponse.openapiRequiredFields.toString())); } @@ -159,8 +160,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (!CreateBucketResponse.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 `CreateBucketResponse` 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("bucket").isJsonPrimitive()) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "Expected the field `bucket` to be a primitive type in the JSON string but got `%s`", jsonObj.get("bucket").toString())); } if (!jsonObj.get("project").isJsonPrimitive()) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "Expected the field `project` to be a primitive type in the JSON string but got `%s`", jsonObj.get("project").toString())); } diff --git a/services/objectstorage/src/main/java/cloud/stackit/sdk/objectstorage/model/CreateCredentialsGroupPayload.java b/services/objectstorage/src/main/java/cloud/stackit/sdk/objectstorage/model/CreateCredentialsGroupPayload.java index eda0e84..1aa648f 100644 --- a/services/objectstorage/src/main/java/cloud/stackit/sdk/objectstorage/model/CreateCredentialsGroupPayload.java +++ b/services/objectstorage/src/main/java/cloud/stackit/sdk/objectstorage/model/CreateCredentialsGroupPayload.java @@ -32,7 +32,7 @@ /** CreateCredentialsGroupPayload */ @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.15.0") + comments = "Generator version: 7.19.0") public class CreateCredentialsGroupPayload { public static final String SERIALIZED_NAME_DISPLAY_NAME = "displayName"; @@ -123,6 +123,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 CreateCredentialsGroupPayload is not found in the empty JSON string", CreateCredentialsGroupPayload.openapiRequiredFields.toString())); } @@ -134,8 +135,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (!CreateCredentialsGroupPayload.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 `CreateCredentialsGroupPayload` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + entry.getKey(), + jsonElement.toString())); } } @@ -144,14 +147,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("displayName").isJsonPrimitive()) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "Expected the field `displayName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("displayName").toString())); } diff --git a/services/objectstorage/src/main/java/cloud/stackit/sdk/objectstorage/model/CreateCredentialsGroupResponse.java b/services/objectstorage/src/main/java/cloud/stackit/sdk/objectstorage/model/CreateCredentialsGroupResponse.java index 88f9b1f..fc18395 100644 --- a/services/objectstorage/src/main/java/cloud/stackit/sdk/objectstorage/model/CreateCredentialsGroupResponse.java +++ b/services/objectstorage/src/main/java/cloud/stackit/sdk/objectstorage/model/CreateCredentialsGroupResponse.java @@ -32,7 +32,7 @@ /** CreateCredentialsGroupResponse */ @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.15.0") + comments = "Generator version: 7.19.0") public class CreateCredentialsGroupResponse { public static final String SERIALIZED_NAME_CREDENTIALS_GROUP = "credentialsGroup"; @@ -152,6 +152,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 CreateCredentialsGroupResponse is not found in the empty JSON string", CreateCredentialsGroupResponse.openapiRequiredFields.toString())); } @@ -163,8 +164,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (!CreateCredentialsGroupResponse.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 `CreateCredentialsGroupResponse` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + entry.getKey(), + jsonElement.toString())); } } @@ -173,8 +176,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(); @@ -183,6 +188,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (!jsonObj.get("project").isJsonPrimitive()) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "Expected the field `project` to be a primitive type in the JSON string but got `%s`", jsonObj.get("project").toString())); } diff --git a/services/objectstorage/src/main/java/cloud/stackit/sdk/objectstorage/model/CredentialsGroup.java b/services/objectstorage/src/main/java/cloud/stackit/sdk/objectstorage/model/CredentialsGroup.java index 4e84314..5dbcf62 100644 --- a/services/objectstorage/src/main/java/cloud/stackit/sdk/objectstorage/model/CredentialsGroup.java +++ b/services/objectstorage/src/main/java/cloud/stackit/sdk/objectstorage/model/CredentialsGroup.java @@ -32,7 +32,7 @@ /** CredentialsGroup */ @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.15.0") + comments = "Generator version: 7.19.0") public class CredentialsGroup { public static final String SERIALIZED_NAME_CREDENTIALS_GROUP_ID = "credentialsGroupId"; @@ -180,6 +180,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 CredentialsGroup is not found in the empty JSON string", CredentialsGroup.openapiRequiredFields.toString())); } @@ -191,8 +192,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (!CredentialsGroup.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 `CredentialsGroup` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + entry.getKey(), + jsonElement.toString())); } } @@ -201,26 +204,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("credentialsGroupId").isJsonPrimitive()) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "Expected the field `credentialsGroupId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("credentialsGroupId").toString())); } if (!jsonObj.get("displayName").isJsonPrimitive()) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "Expected the field `displayName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("displayName").toString())); } if (!jsonObj.get("urn").isJsonPrimitive()) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "Expected the field `urn` to be a primitive type in the JSON string but got `%s`", jsonObj.get("urn").toString())); } diff --git a/services/objectstorage/src/main/java/cloud/stackit/sdk/objectstorage/model/DeleteAccessKeyResponse.java b/services/objectstorage/src/main/java/cloud/stackit/sdk/objectstorage/model/DeleteAccessKeyResponse.java index d7d45a7..3b380ea 100644 --- a/services/objectstorage/src/main/java/cloud/stackit/sdk/objectstorage/model/DeleteAccessKeyResponse.java +++ b/services/objectstorage/src/main/java/cloud/stackit/sdk/objectstorage/model/DeleteAccessKeyResponse.java @@ -32,7 +32,7 @@ /** DeleteAccessKeyResponse */ @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.15.0") + comments = "Generator version: 7.19.0") public class DeleteAccessKeyResponse { public static final String SERIALIZED_NAME_KEY_ID = "keyId"; @@ -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 DeleteAccessKeyResponse is not found in the empty JSON string", DeleteAccessKeyResponse.openapiRequiredFields.toString())); } @@ -159,8 +160,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (!DeleteAccessKeyResponse.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 `DeleteAccessKeyResponse` 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("keyId").isJsonPrimitive()) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "Expected the field `keyId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("keyId").toString())); } if (!jsonObj.get("project").isJsonPrimitive()) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "Expected the field `project` to be a primitive type in the JSON string but got `%s`", jsonObj.get("project").toString())); } diff --git a/services/objectstorage/src/main/java/cloud/stackit/sdk/objectstorage/model/DeleteBucketResponse.java b/services/objectstorage/src/main/java/cloud/stackit/sdk/objectstorage/model/DeleteBucketResponse.java index e123513..2623298 100644 --- a/services/objectstorage/src/main/java/cloud/stackit/sdk/objectstorage/model/DeleteBucketResponse.java +++ b/services/objectstorage/src/main/java/cloud/stackit/sdk/objectstorage/model/DeleteBucketResponse.java @@ -32,7 +32,7 @@ /** DeleteBucketResponse */ @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.15.0") + comments = "Generator version: 7.19.0") public class DeleteBucketResponse { public static final String SERIALIZED_NAME_BUCKET = "bucket"; @@ -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 DeleteBucketResponse is not found in the empty JSON string", DeleteBucketResponse.openapiRequiredFields.toString())); } @@ -159,8 +160,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (!DeleteBucketResponse.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 `DeleteBucketResponse` 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("bucket").isJsonPrimitive()) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "Expected the field `bucket` to be a primitive type in the JSON string but got `%s`", jsonObj.get("bucket").toString())); } if (!jsonObj.get("project").isJsonPrimitive()) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "Expected the field `project` to be a primitive type in the JSON string but got `%s`", jsonObj.get("project").toString())); } diff --git a/services/objectstorage/src/main/java/cloud/stackit/sdk/objectstorage/model/DeleteCredentialsGroupResponse.java b/services/objectstorage/src/main/java/cloud/stackit/sdk/objectstorage/model/DeleteCredentialsGroupResponse.java index e61add6..cab8a06 100644 --- a/services/objectstorage/src/main/java/cloud/stackit/sdk/objectstorage/model/DeleteCredentialsGroupResponse.java +++ b/services/objectstorage/src/main/java/cloud/stackit/sdk/objectstorage/model/DeleteCredentialsGroupResponse.java @@ -32,7 +32,7 @@ /** DeleteCredentialsGroupResponse */ @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.15.0") + comments = "Generator version: 7.19.0") public class DeleteCredentialsGroupResponse { public static final String SERIALIZED_NAME_CREDENTIALS_GROUP_ID = "credentialsGroupId"; @@ -154,6 +154,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 DeleteCredentialsGroupResponse is not found in the empty JSON string", DeleteCredentialsGroupResponse.openapiRequiredFields.toString())); } @@ -165,8 +166,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (!DeleteCredentialsGroupResponse.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 `DeleteCredentialsGroupResponse` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + entry.getKey(), + jsonElement.toString())); } } @@ -175,20 +178,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("credentialsGroupId").isJsonPrimitive()) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "Expected the field `credentialsGroupId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("credentialsGroupId").toString())); } if (!jsonObj.get("project").isJsonPrimitive()) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "Expected the field `project` to be a primitive type in the JSON string but got `%s`", jsonObj.get("project").toString())); } diff --git a/services/objectstorage/src/main/java/cloud/stackit/sdk/objectstorage/model/DetailedError.java b/services/objectstorage/src/main/java/cloud/stackit/sdk/objectstorage/model/DetailedError.java index 0c3cfb5..684dfd0 100644 --- a/services/objectstorage/src/main/java/cloud/stackit/sdk/objectstorage/model/DetailedError.java +++ b/services/objectstorage/src/main/java/cloud/stackit/sdk/objectstorage/model/DetailedError.java @@ -32,7 +32,7 @@ /** DetailedError */ @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.15.0") + comments = "Generator version: 7.19.0") public class DetailedError { public static final String SERIALIZED_NAME_KEY = "key"; @@ -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 DetailedError is not found in the empty JSON string", DetailedError.openapiRequiredFields.toString())); } @@ -159,8 +160,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (!DetailedError.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 `DetailedError` 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("key").isJsonPrimitive()) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "Expected the field `key` to be a primitive type in the JSON string but got `%s`", jsonObj.get("key").toString())); } if (!jsonObj.get("msg").isJsonPrimitive()) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "Expected the field `msg` to be a primitive type in the JSON string but got `%s`", jsonObj.get("msg").toString())); } diff --git a/services/objectstorage/src/main/java/cloud/stackit/sdk/objectstorage/model/ErrorMessage.java b/services/objectstorage/src/main/java/cloud/stackit/sdk/objectstorage/model/ErrorMessage.java index e4e7d11..7619d38 100644 --- a/services/objectstorage/src/main/java/cloud/stackit/sdk/objectstorage/model/ErrorMessage.java +++ b/services/objectstorage/src/main/java/cloud/stackit/sdk/objectstorage/model/ErrorMessage.java @@ -35,7 +35,7 @@ /** ErrorMessage */ @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.15.0") + comments = "Generator version: 7.19.0") public class ErrorMessage { public static final String SERIALIZED_NAME_DETAIL = "detail"; @@ -132,6 +132,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 ErrorMessage is not found in the empty JSON string", ErrorMessage.openapiRequiredFields.toString())); } @@ -143,8 +144,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (!ErrorMessage.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 `ErrorMessage` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + entry.getKey(), + jsonElement.toString())); } } @@ -153,8 +156,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(); @@ -162,6 +167,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (!jsonObj.get("detail").isJsonArray()) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "Expected the field `detail` to be an array in the JSON string but got `%s`", jsonObj.get("detail").toString())); } diff --git a/services/objectstorage/src/main/java/cloud/stackit/sdk/objectstorage/model/GetBucketResponse.java b/services/objectstorage/src/main/java/cloud/stackit/sdk/objectstorage/model/GetBucketResponse.java index 5f29a93..0c8e834 100644 --- a/services/objectstorage/src/main/java/cloud/stackit/sdk/objectstorage/model/GetBucketResponse.java +++ b/services/objectstorage/src/main/java/cloud/stackit/sdk/objectstorage/model/GetBucketResponse.java @@ -32,7 +32,7 @@ /** GetBucketResponse */ @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.15.0") + comments = "Generator version: 7.19.0") public class GetBucketResponse { public static final String SERIALIZED_NAME_BUCKET = "bucket"; @@ -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 GetBucketResponse is not found in the empty JSON string", GetBucketResponse.openapiRequiredFields.toString())); } @@ -159,8 +160,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (!GetBucketResponse.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 `GetBucketResponse` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + entry.getKey(), + jsonElement.toString())); } } @@ -169,8 +172,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(); @@ -179,6 +184,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (!jsonObj.get("project").isJsonPrimitive()) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "Expected the field `project` to be a primitive type in the JSON string but got `%s`", jsonObj.get("project").toString())); } diff --git a/services/objectstorage/src/main/java/cloud/stackit/sdk/objectstorage/model/HTTPValidationError.java b/services/objectstorage/src/main/java/cloud/stackit/sdk/objectstorage/model/HTTPValidationError.java index 2b2789c..a4e00f4 100644 --- a/services/objectstorage/src/main/java/cloud/stackit/sdk/objectstorage/model/HTTPValidationError.java +++ b/services/objectstorage/src/main/java/cloud/stackit/sdk/objectstorage/model/HTTPValidationError.java @@ -35,7 +35,7 @@ /** HTTPValidationError */ @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.15.0") + comments = "Generator version: 7.19.0") public class HTTPValidationError { public static final String SERIALIZED_NAME_DETAIL = "detail"; @@ -130,6 +130,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 HTTPValidationError is not found in the empty JSON string", HTTPValidationError.openapiRequiredFields.toString())); } @@ -141,8 +142,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (!HTTPValidationError.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 `HTTPValidationError` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + entry.getKey(), + jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -153,6 +156,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (!jsonObj.get("detail").isJsonArray()) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "Expected the field `detail` to be an array in the JSON string but got `%s`", jsonObj.get("detail").toString())); } diff --git a/services/objectstorage/src/main/java/cloud/stackit/sdk/objectstorage/model/ListAccessKeysResponse.java b/services/objectstorage/src/main/java/cloud/stackit/sdk/objectstorage/model/ListAccessKeysResponse.java index 3030628..386f1fa 100644 --- a/services/objectstorage/src/main/java/cloud/stackit/sdk/objectstorage/model/ListAccessKeysResponse.java +++ b/services/objectstorage/src/main/java/cloud/stackit/sdk/objectstorage/model/ListAccessKeysResponse.java @@ -35,7 +35,7 @@ /** ListAccessKeysResponse */ @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.15.0") + comments = "Generator version: 7.19.0") public class ListAccessKeysResponse { public static final String SERIALIZED_NAME_ACCESS_KEYS = "accessKeys"; @@ -159,6 +159,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 ListAccessKeysResponse is not found in the empty JSON string", ListAccessKeysResponse.openapiRequiredFields.toString())); } @@ -170,8 +171,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (!ListAccessKeysResponse.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 `ListAccessKeysResponse` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + entry.getKey(), + jsonElement.toString())); } } @@ -180,8 +183,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(); @@ -189,6 +194,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (!jsonObj.get("accessKeys").isJsonArray()) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "Expected the field `accessKeys` to be an array in the JSON string but got `%s`", jsonObj.get("accessKeys").toString())); } @@ -202,6 +208,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (!jsonObj.get("project").isJsonPrimitive()) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "Expected the field `project` to be a primitive type in the JSON string but got `%s`", jsonObj.get("project").toString())); } diff --git a/services/objectstorage/src/main/java/cloud/stackit/sdk/objectstorage/model/ListBucketsResponse.java b/services/objectstorage/src/main/java/cloud/stackit/sdk/objectstorage/model/ListBucketsResponse.java index fcdb089..caf8857 100644 --- a/services/objectstorage/src/main/java/cloud/stackit/sdk/objectstorage/model/ListBucketsResponse.java +++ b/services/objectstorage/src/main/java/cloud/stackit/sdk/objectstorage/model/ListBucketsResponse.java @@ -35,7 +35,7 @@ /** ListBucketsResponse */ @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.15.0") + comments = "Generator version: 7.19.0") public class ListBucketsResponse { public static final String SERIALIZED_NAME_BUCKETS = "buckets"; @@ -159,6 +159,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 ListBucketsResponse is not found in the empty JSON string", ListBucketsResponse.openapiRequiredFields.toString())); } @@ -170,8 +171,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (!ListBucketsResponse.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 `ListBucketsResponse` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + entry.getKey(), + jsonElement.toString())); } } @@ -180,8 +183,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(); @@ -189,6 +194,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (!jsonObj.get("buckets").isJsonArray()) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "Expected the field `buckets` to be an array in the JSON string but got `%s`", jsonObj.get("buckets").toString())); } @@ -202,6 +208,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (!jsonObj.get("project").isJsonPrimitive()) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "Expected the field `project` to be a primitive type in the JSON string but got `%s`", jsonObj.get("project").toString())); } diff --git a/services/objectstorage/src/main/java/cloud/stackit/sdk/objectstorage/model/ListCredentialsGroupsResponse.java b/services/objectstorage/src/main/java/cloud/stackit/sdk/objectstorage/model/ListCredentialsGroupsResponse.java index edf9332..46a13e9 100644 --- a/services/objectstorage/src/main/java/cloud/stackit/sdk/objectstorage/model/ListCredentialsGroupsResponse.java +++ b/services/objectstorage/src/main/java/cloud/stackit/sdk/objectstorage/model/ListCredentialsGroupsResponse.java @@ -35,7 +35,7 @@ /** ListCredentialsGroupsResponse */ @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.15.0") + comments = "Generator version: 7.19.0") public class ListCredentialsGroupsResponse { public static final String SERIALIZED_NAME_CREDENTIALS_GROUPS = "credentialsGroups"; @@ -167,6 +167,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 ListCredentialsGroupsResponse is not found in the empty JSON string", ListCredentialsGroupsResponse.openapiRequiredFields.toString())); } @@ -178,8 +179,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (!ListCredentialsGroupsResponse.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 `ListCredentialsGroupsResponse` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + entry.getKey(), + jsonElement.toString())); } } @@ -188,8 +191,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(); @@ -197,6 +202,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (!jsonObj.get("credentialsGroups").isJsonArray()) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "Expected the field `credentialsGroups` to be an array in the JSON string but got `%s`", jsonObj.get("credentialsGroups").toString())); } @@ -210,6 +216,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (!jsonObj.get("project").isJsonPrimitive()) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "Expected the field `project` to be a primitive type in the JSON string but got `%s`", jsonObj.get("project").toString())); } diff --git a/services/objectstorage/src/main/java/cloud/stackit/sdk/objectstorage/model/LocationInner.java b/services/objectstorage/src/main/java/cloud/stackit/sdk/objectstorage/model/LocationInner.java index 91c4382..bfa6ce9 100644 --- a/services/objectstorage/src/main/java/cloud/stackit/sdk/objectstorage/model/LocationInner.java +++ b/services/objectstorage/src/main/java/cloud/stackit/sdk/objectstorage/model/LocationInner.java @@ -30,7 +30,7 @@ @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.15.0") + comments = "Generator version: 7.19.0") public class LocationInner extends AbstractOpenApiSchema { private static final Logger log = Logger.getLogger(LocationInner.class.getName()); @@ -92,6 +92,7 @@ public LocationInner read(JsonReader in) throws IOException { if (!jsonElement.getAsJsonPrimitive().isString()) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "Expected json element to be of type String in the JSON string but got `%s`", jsonElement.toString())); } @@ -103,6 +104,7 @@ public LocationInner read(JsonReader in) throws IOException { // deserialization failed, continue errorMessages.add( String.format( + java.util.Locale.ROOT, "Deserialization for String failed with `%s`.", e.getMessage())); log.log( @@ -116,6 +118,7 @@ public LocationInner read(JsonReader in) throws IOException { if (!jsonElement.getAsJsonPrimitive().isNumber()) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "Expected json element to be of type Number in the JSON string but got `%s`", jsonElement.toString())); } @@ -127,6 +130,7 @@ public LocationInner read(JsonReader in) throws IOException { // deserialization failed, continue errorMessages.add( String.format( + java.util.Locale.ROOT, "Deserialization for Integer failed with `%s`.", e.getMessage())); log.log( @@ -137,8 +141,10 @@ public LocationInner read(JsonReader in) throws IOException { throw new IOException( String.format( + java.util.Locale.ROOT, "Failed deserialization for LocationInner: no class matches result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", - errorMessages, jsonElement.toString())); + errorMessages, + jsonElement.toString())); } }.nullSafe(); } @@ -234,13 +240,17 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (!jsonElement.getAsJsonPrimitive().isString()) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "Expected json element to be of type String in the JSON string but got `%s`", jsonElement.toString())); } return; } catch (Exception e) { errorMessages.add( - String.format("Deserialization for String failed with `%s`.", e.getMessage())); + String.format( + java.util.Locale.ROOT, + "Deserialization for String failed with `%s`.", + e.getMessage())); // continue to the next one } // validate the json string with Integer @@ -248,19 +258,25 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (!jsonElement.getAsJsonPrimitive().isNumber()) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "Expected json element to be of type Number in the JSON string but got `%s`", jsonElement.toString())); } return; } catch (Exception e) { errorMessages.add( - String.format("Deserialization for Integer failed with `%s`.", e.getMessage())); + String.format( + java.util.Locale.ROOT, + "Deserialization for Integer failed with `%s`.", + e.getMessage())); // continue to the next one } throw new IOException( String.format( + java.util.Locale.ROOT, "The JSON string is invalid for LocationInner with anyOf schemas: Integer, String. no class match the result, expected at least 1. Detailed failure message for anyOf schemas: %s. JSON: %s", - errorMessages, jsonElement.toString())); + errorMessages, + jsonElement.toString())); } /** diff --git a/services/objectstorage/src/main/java/cloud/stackit/sdk/objectstorage/model/ProjectStatus.java b/services/objectstorage/src/main/java/cloud/stackit/sdk/objectstorage/model/ProjectStatus.java index 9d39a00..d1e7af0 100644 --- a/services/objectstorage/src/main/java/cloud/stackit/sdk/objectstorage/model/ProjectStatus.java +++ b/services/objectstorage/src/main/java/cloud/stackit/sdk/objectstorage/model/ProjectStatus.java @@ -32,7 +32,7 @@ /** ProjectStatus */ @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.15.0") + comments = "Generator version: 7.19.0") public class ProjectStatus { public static final String SERIALIZED_NAME_PROJECT = "project"; @@ -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 ProjectStatus is not found in the empty JSON string", ProjectStatus.openapiRequiredFields.toString())); } @@ -159,8 +160,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (!ProjectStatus.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 `ProjectStatus` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + entry.getKey(), + jsonElement.toString())); } } @@ -169,14 +172,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("project").isJsonPrimitive()) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "Expected the field `project` to be a primitive type in the JSON string but got `%s`", jsonObj.get("project").toString())); } diff --git a/services/objectstorage/src/main/java/cloud/stackit/sdk/objectstorage/model/ValidationError.java b/services/objectstorage/src/main/java/cloud/stackit/sdk/objectstorage/model/ValidationError.java index 6483f66..2abb957 100644 --- a/services/objectstorage/src/main/java/cloud/stackit/sdk/objectstorage/model/ValidationError.java +++ b/services/objectstorage/src/main/java/cloud/stackit/sdk/objectstorage/model/ValidationError.java @@ -35,7 +35,7 @@ /** ValidationError */ @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.15.0") + comments = "Generator version: 7.19.0") public class ValidationError { public static final String SERIALIZED_NAME_LOC = "loc"; @@ -186,6 +186,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 ValidationError is not found in the empty JSON string", ValidationError.openapiRequiredFields.toString())); } @@ -197,8 +198,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (!ValidationError.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 `ValidationError` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + entry.getKey(), + jsonElement.toString())); } } @@ -207,8 +210,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(); @@ -216,6 +221,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (!jsonObj.get("loc").isJsonArray()) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "Expected the field `loc` to be an array in the JSON string but got `%s`", jsonObj.get("loc").toString())); } @@ -229,12 +235,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (!jsonObj.get("msg").isJsonPrimitive()) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "Expected the field `msg` to be a primitive type in the JSON string but got `%s`", jsonObj.get("msg").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())); }