diff --git a/services/serverupdate/src/main/java/cloud/stackit/sdk/serverupdate/Pair.java b/services/serverupdate/src/main/java/cloud/stackit/sdk/serverupdate/Pair.java index a25ef4d..47527dd 100644 --- a/services/serverupdate/src/main/java/cloud/stackit/sdk/serverupdate/Pair.java +++ b/services/serverupdate/src/main/java/cloud/stackit/sdk/serverupdate/Pair.java @@ -14,7 +14,7 @@ @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.19.0") + comments = "Generator version: 7.15.0") public class Pair { private final String name; private final String value; diff --git a/services/serverupdate/src/main/java/cloud/stackit/sdk/serverupdate/ServerConfiguration.java b/services/serverupdate/src/main/java/cloud/stackit/sdk/serverupdate/ServerConfiguration.java index 591f5df..e690a57 100644 --- a/services/serverupdate/src/main/java/cloud/stackit/sdk/serverupdate/ServerConfiguration.java +++ b/services/serverupdate/src/main/java/cloud/stackit/sdk/serverupdate/ServerConfiguration.java @@ -17,7 +17,7 @@ /** Representing a Server configuration. */ @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.19.0") + comments = "Generator version: 7.15.0") public class ServerConfiguration { public String URL; public String description; diff --git a/services/serverupdate/src/main/java/cloud/stackit/sdk/serverupdate/ServerVariable.java b/services/serverupdate/src/main/java/cloud/stackit/sdk/serverupdate/ServerVariable.java index d31068d..5607de2 100644 --- a/services/serverupdate/src/main/java/cloud/stackit/sdk/serverupdate/ServerVariable.java +++ b/services/serverupdate/src/main/java/cloud/stackit/sdk/serverupdate/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.19.0") + comments = "Generator version: 7.15.0") public class ServerVariable { public String description; public String defaultValue; diff --git a/services/serverupdate/src/main/java/cloud/stackit/sdk/serverupdate/StringUtil.java b/services/serverupdate/src/main/java/cloud/stackit/sdk/serverupdate/StringUtil.java index 6e79b71..5cd9f42 100644 --- a/services/serverupdate/src/main/java/cloud/stackit/sdk/serverupdate/StringUtil.java +++ b/services/serverupdate/src/main/java/cloud/stackit/sdk/serverupdate/StringUtil.java @@ -17,7 +17,7 @@ @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.19.0") + comments = "Generator version: 7.15.0") public class StringUtil { /** * Check if the given array contains the given value (with case-insensitive comparison). diff --git a/services/serverupdate/src/main/java/cloud/stackit/sdk/serverupdate/model/AbstractOpenApiSchema.java b/services/serverupdate/src/main/java/cloud/stackit/sdk/serverupdate/model/AbstractOpenApiSchema.java index 4e741ba..f560f07 100644 --- a/services/serverupdate/src/main/java/cloud/stackit/sdk/serverupdate/model/AbstractOpenApiSchema.java +++ b/services/serverupdate/src/main/java/cloud/stackit/sdk/serverupdate/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.19.0") + comments = "Generator version: 7.15.0") public abstract class AbstractOpenApiSchema { // store the actual instance of the schema/object diff --git a/services/serverupdate/src/main/java/cloud/stackit/sdk/serverupdate/model/CreateUpdatePayload.java b/services/serverupdate/src/main/java/cloud/stackit/sdk/serverupdate/model/CreateUpdatePayload.java index d28dbbb..7d495eb 100644 --- a/services/serverupdate/src/main/java/cloud/stackit/sdk/serverupdate/model/CreateUpdatePayload.java +++ b/services/serverupdate/src/main/java/cloud/stackit/sdk/serverupdate/model/CreateUpdatePayload.java @@ -32,7 +32,7 @@ /** CreateUpdatePayload */ @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.19.0") + comments = "Generator version: 7.15.0") public class CreateUpdatePayload { public static final String SERIALIZED_NAME_BACKUP_BEFORE_UPDATE = "backupBeforeUpdate"; @@ -153,7 +153,6 @@ 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 CreateUpdatePayload is not found in the empty JSON string", CreateUpdatePayload.openapiRequiredFields.toString())); } @@ -165,10 +164,8 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (!CreateUpdatePayload.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 `CreateUpdatePayload` properties. JSON: %s", - entry.getKey(), - jsonElement.toString())); + entry.getKey(), jsonElement.toString())); } } @@ -177,10 +174,8 @@ 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(); diff --git a/services/serverupdate/src/main/java/cloud/stackit/sdk/serverupdate/model/CreateUpdateSchedulePayload.java b/services/serverupdate/src/main/java/cloud/stackit/sdk/serverupdate/model/CreateUpdateSchedulePayload.java index f0c4378..7624ad7 100644 --- a/services/serverupdate/src/main/java/cloud/stackit/sdk/serverupdate/model/CreateUpdateSchedulePayload.java +++ b/services/serverupdate/src/main/java/cloud/stackit/sdk/serverupdate/model/CreateUpdateSchedulePayload.java @@ -32,7 +32,7 @@ /** CreateUpdateSchedulePayload */ @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.19.0") + comments = "Generator version: 7.15.0") public class CreateUpdateSchedulePayload { public static final String SERIALIZED_NAME_ENABLED = "enabled"; @@ -209,7 +209,6 @@ 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 CreateUpdateSchedulePayload is not found in the empty JSON string", CreateUpdateSchedulePayload.openapiRequiredFields.toString())); } @@ -221,10 +220,8 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (!CreateUpdateSchedulePayload.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 `CreateUpdateSchedulePayload` properties. JSON: %s", - entry.getKey(), - jsonElement.toString())); + entry.getKey(), jsonElement.toString())); } } @@ -233,24 +230,20 @@ 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("rrule").isJsonPrimitive()) { throw new IllegalArgumentException( String.format( - java.util.Locale.ROOT, "Expected the field `rrule` to be a primitive type in the JSON string but got `%s`", jsonObj.get("rrule").toString())); } diff --git a/services/serverupdate/src/main/java/cloud/stackit/sdk/serverupdate/model/EnableServiceResourcePayload.java b/services/serverupdate/src/main/java/cloud/stackit/sdk/serverupdate/model/EnableServiceResourcePayload.java index a227c4c..dd88140 100644 --- a/services/serverupdate/src/main/java/cloud/stackit/sdk/serverupdate/model/EnableServiceResourcePayload.java +++ b/services/serverupdate/src/main/java/cloud/stackit/sdk/serverupdate/model/EnableServiceResourcePayload.java @@ -33,7 +33,7 @@ /** EnableServiceResourcePayload */ @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.19.0") + comments = "Generator version: 7.15.0") public class EnableServiceResourcePayload { public static final String SERIALIZED_NAME_UPDATE_POLICY_ID = "updatePolicyId"; @@ -123,7 +123,6 @@ 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 EnableServiceResourcePayload is not found in the empty JSON string", EnableServiceResourcePayload.openapiRequiredFields.toString())); } @@ -135,10 +134,8 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (!EnableServiceResourcePayload.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 `EnableServiceResourcePayload` properties. JSON: %s", - entry.getKey(), - jsonElement.toString())); + entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -146,7 +143,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti && !jsonObj.get("updatePolicyId").isJsonPrimitive()) { throw new IllegalArgumentException( String.format( - java.util.Locale.ROOT, "Expected the field `updatePolicyId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("updatePolicyId").toString())); } diff --git a/services/serverupdate/src/main/java/cloud/stackit/sdk/serverupdate/model/ErrorResponse.java b/services/serverupdate/src/main/java/cloud/stackit/sdk/serverupdate/model/ErrorResponse.java index a28f1f1..33fcd5e 100644 --- a/services/serverupdate/src/main/java/cloud/stackit/sdk/serverupdate/model/ErrorResponse.java +++ b/services/serverupdate/src/main/java/cloud/stackit/sdk/serverupdate/model/ErrorResponse.java @@ -32,7 +32,7 @@ /** ErrorResponse */ @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.19.0") + comments = "Generator version: 7.15.0") public class ErrorResponse { public static final String SERIALIZED_NAME_MESSAGE = "message"; @@ -148,7 +148,6 @@ 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())); } @@ -160,10 +159,8 @@ 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())); } } @@ -172,24 +169,20 @@ 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("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("status").isJsonPrimitive()) { throw new IllegalArgumentException( String.format( - java.util.Locale.ROOT, "Expected the field `status` to be a primitive type in the JSON string but got `%s`", jsonObj.get("status").toString())); } diff --git a/services/serverupdate/src/main/java/cloud/stackit/sdk/serverupdate/model/GetUpdatePoliciesResponse.java b/services/serverupdate/src/main/java/cloud/stackit/sdk/serverupdate/model/GetUpdatePoliciesResponse.java index 3a4adef..cbbf2a9 100644 --- a/services/serverupdate/src/main/java/cloud/stackit/sdk/serverupdate/model/GetUpdatePoliciesResponse.java +++ b/services/serverupdate/src/main/java/cloud/stackit/sdk/serverupdate/model/GetUpdatePoliciesResponse.java @@ -35,7 +35,7 @@ /** GetUpdatePoliciesResponse */ @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.19.0") + comments = "Generator version: 7.15.0") public class GetUpdatePoliciesResponse { public static final String SERIALIZED_NAME_ITEMS = "items"; @@ -130,7 +130,6 @@ 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 GetUpdatePoliciesResponse is not found in the empty JSON string", GetUpdatePoliciesResponse.openapiRequiredFields.toString())); } @@ -142,10 +141,8 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (!GetUpdatePoliciesResponse.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 `GetUpdatePoliciesResponse` properties. JSON: %s", - entry.getKey(), - jsonElement.toString())); + entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -156,7 +153,6 @@ 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/serverupdate/src/main/java/cloud/stackit/sdk/serverupdate/model/GetUpdateSchedulesResponse.java b/services/serverupdate/src/main/java/cloud/stackit/sdk/serverupdate/model/GetUpdateSchedulesResponse.java index 6197cde..f1cb719 100644 --- a/services/serverupdate/src/main/java/cloud/stackit/sdk/serverupdate/model/GetUpdateSchedulesResponse.java +++ b/services/serverupdate/src/main/java/cloud/stackit/sdk/serverupdate/model/GetUpdateSchedulesResponse.java @@ -35,7 +35,7 @@ /** GetUpdateSchedulesResponse */ @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.19.0") + comments = "Generator version: 7.15.0") public class GetUpdateSchedulesResponse { public static final String SERIALIZED_NAME_ITEMS = "items"; @@ -130,7 +130,6 @@ 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 GetUpdateSchedulesResponse is not found in the empty JSON string", GetUpdateSchedulesResponse.openapiRequiredFields.toString())); } @@ -142,10 +141,8 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (!GetUpdateSchedulesResponse.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 `GetUpdateSchedulesResponse` properties. JSON: %s", - entry.getKey(), - jsonElement.toString())); + entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -156,7 +153,6 @@ 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/serverupdate/src/main/java/cloud/stackit/sdk/serverupdate/model/GetUpdateServiceResponse.java b/services/serverupdate/src/main/java/cloud/stackit/sdk/serverupdate/model/GetUpdateServiceResponse.java index 2cf0169..04b0580 100644 --- a/services/serverupdate/src/main/java/cloud/stackit/sdk/serverupdate/model/GetUpdateServiceResponse.java +++ b/services/serverupdate/src/main/java/cloud/stackit/sdk/serverupdate/model/GetUpdateServiceResponse.java @@ -32,7 +32,7 @@ /** GetUpdateServiceResponse */ @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.19.0") + comments = "Generator version: 7.15.0") public class GetUpdateServiceResponse { public static final String SERIALIZED_NAME_ENABLED = "enabled"; @@ -119,7 +119,6 @@ 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 GetUpdateServiceResponse is not found in the empty JSON string", GetUpdateServiceResponse.openapiRequiredFields.toString())); } @@ -131,10 +130,8 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (!GetUpdateServiceResponse.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 `GetUpdateServiceResponse` properties. JSON: %s", - entry.getKey(), - jsonElement.toString())); + entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); diff --git a/services/serverupdate/src/main/java/cloud/stackit/sdk/serverupdate/model/GetUpdatesListResponse.java b/services/serverupdate/src/main/java/cloud/stackit/sdk/serverupdate/model/GetUpdatesListResponse.java index 48fb9cb..4bc0166 100644 --- a/services/serverupdate/src/main/java/cloud/stackit/sdk/serverupdate/model/GetUpdatesListResponse.java +++ b/services/serverupdate/src/main/java/cloud/stackit/sdk/serverupdate/model/GetUpdatesListResponse.java @@ -35,7 +35,7 @@ /** GetUpdatesListResponse */ @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.19.0") + comments = "Generator version: 7.15.0") public class GetUpdatesListResponse { public static final String SERIALIZED_NAME_ITEMS = "items"; @@ -130,7 +130,6 @@ 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 GetUpdatesListResponse is not found in the empty JSON string", GetUpdatesListResponse.openapiRequiredFields.toString())); } @@ -142,10 +141,8 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (!GetUpdatesListResponse.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 `GetUpdatesListResponse` properties. JSON: %s", - entry.getKey(), - jsonElement.toString())); + entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -156,7 +153,6 @@ 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/serverupdate/src/main/java/cloud/stackit/sdk/serverupdate/model/Update.java b/services/serverupdate/src/main/java/cloud/stackit/sdk/serverupdate/model/Update.java index d40507b..d7347c2 100644 --- a/services/serverupdate/src/main/java/cloud/stackit/sdk/serverupdate/model/Update.java +++ b/services/serverupdate/src/main/java/cloud/stackit/sdk/serverupdate/model/Update.java @@ -32,7 +32,7 @@ /** Update */ @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.19.0") + comments = "Generator version: 7.15.0") public class Update { public static final String SERIALIZED_NAME_END_DATE = "endDate"; @@ -285,7 +285,6 @@ 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 Update is not found in the empty JSON string", Update.openapiRequiredFields.toString())); } @@ -297,10 +296,8 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (!Update.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 `Update` properties. JSON: %s", - entry.getKey(), - jsonElement.toString())); + entry.getKey(), jsonElement.toString())); } } @@ -309,10 +306,8 @@ 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(); @@ -320,7 +315,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti && !jsonObj.get("endDate").isJsonPrimitive()) { throw new IllegalArgumentException( String.format( - java.util.Locale.ROOT, "Expected the field `endDate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("endDate").toString())); } @@ -328,21 +322,18 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti && !jsonObj.get("failReason").isJsonPrimitive()) { throw new IllegalArgumentException( String.format( - java.util.Locale.ROOT, "Expected the field `failReason` to be a primitive type in the JSON string but got `%s`", jsonObj.get("failReason").toString())); } if (!jsonObj.get("startDate").isJsonPrimitive()) { throw new IllegalArgumentException( String.format( - java.util.Locale.ROOT, "Expected the field `startDate` to be a primitive type in the JSON string but got `%s`", jsonObj.get("startDate").toString())); } if (!jsonObj.get("status").isJsonPrimitive()) { throw new IllegalArgumentException( String.format( - java.util.Locale.ROOT, "Expected the field `status` to be a primitive type in the JSON string but got `%s`", jsonObj.get("status").toString())); } diff --git a/services/serverupdate/src/main/java/cloud/stackit/sdk/serverupdate/model/UpdatePolicy.java b/services/serverupdate/src/main/java/cloud/stackit/sdk/serverupdate/model/UpdatePolicy.java index 5e9e06a..ab94c2f 100644 --- a/services/serverupdate/src/main/java/cloud/stackit/sdk/serverupdate/model/UpdatePolicy.java +++ b/services/serverupdate/src/main/java/cloud/stackit/sdk/serverupdate/model/UpdatePolicy.java @@ -32,7 +32,7 @@ /** UpdatePolicy */ @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.19.0") + comments = "Generator version: 7.15.0") public class UpdatePolicy { public static final String SERIALIZED_NAME_DEFAULT = "default"; @@ -280,7 +280,6 @@ 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 UpdatePolicy is not found in the empty JSON string", UpdatePolicy.openapiRequiredFields.toString())); } @@ -292,10 +291,8 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (!UpdatePolicy.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 `UpdatePolicy` properties. JSON: %s", - entry.getKey(), - jsonElement.toString())); + entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -303,7 +300,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti && !jsonObj.get("description").isJsonPrimitive()) { throw new IllegalArgumentException( String.format( - java.util.Locale.ROOT, "Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString())); } @@ -311,7 +307,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti && !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())); } @@ -319,7 +314,6 @@ 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())); } @@ -327,7 +321,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti && !jsonObj.get("rrule").isJsonPrimitive()) { throw new IllegalArgumentException( String.format( - java.util.Locale.ROOT, "Expected the field `rrule` to be a primitive type in the JSON string but got `%s`", jsonObj.get("rrule").toString())); } diff --git a/services/serverupdate/src/main/java/cloud/stackit/sdk/serverupdate/model/UpdateSchedule.java b/services/serverupdate/src/main/java/cloud/stackit/sdk/serverupdate/model/UpdateSchedule.java index ec95011..ac80025 100644 --- a/services/serverupdate/src/main/java/cloud/stackit/sdk/serverupdate/model/UpdateSchedule.java +++ b/services/serverupdate/src/main/java/cloud/stackit/sdk/serverupdate/model/UpdateSchedule.java @@ -32,7 +32,7 @@ /** UpdateSchedule */ @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.19.0") + comments = "Generator version: 7.15.0") public class UpdateSchedule { public static final String SERIALIZED_NAME_ENABLED = "enabled"; @@ -235,7 +235,6 @@ 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 UpdateSchedule is not found in the empty JSON string", UpdateSchedule.openapiRequiredFields.toString())); } @@ -247,10 +246,8 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (!UpdateSchedule.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 `UpdateSchedule` properties. JSON: %s", - entry.getKey(), - jsonElement.toString())); + entry.getKey(), jsonElement.toString())); } } @@ -259,24 +256,20 @@ 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("rrule").isJsonPrimitive()) { throw new IllegalArgumentException( String.format( - java.util.Locale.ROOT, "Expected the field `rrule` to be a primitive type in the JSON string but got `%s`", jsonObj.get("rrule").toString())); } diff --git a/services/serverupdate/src/main/java/cloud/stackit/sdk/serverupdate/model/UpdateScheduleCreateRequest.java b/services/serverupdate/src/main/java/cloud/stackit/sdk/serverupdate/model/UpdateScheduleCreateRequest.java index 6465cc5..e23da78 100644 --- a/services/serverupdate/src/main/java/cloud/stackit/sdk/serverupdate/model/UpdateScheduleCreateRequest.java +++ b/services/serverupdate/src/main/java/cloud/stackit/sdk/serverupdate/model/UpdateScheduleCreateRequest.java @@ -32,7 +32,7 @@ /** UpdateScheduleCreateRequest */ @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.19.0") + comments = "Generator version: 7.15.0") public class UpdateScheduleCreateRequest { public static final String SERIALIZED_NAME_ENABLED = "enabled"; @@ -209,7 +209,6 @@ 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 UpdateScheduleCreateRequest is not found in the empty JSON string", UpdateScheduleCreateRequest.openapiRequiredFields.toString())); } @@ -221,10 +220,8 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (!UpdateScheduleCreateRequest.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 `UpdateScheduleCreateRequest` properties. JSON: %s", - entry.getKey(), - jsonElement.toString())); + entry.getKey(), jsonElement.toString())); } } @@ -233,24 +230,20 @@ 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("rrule").isJsonPrimitive()) { throw new IllegalArgumentException( String.format( - java.util.Locale.ROOT, "Expected the field `rrule` to be a primitive type in the JSON string but got `%s`", jsonObj.get("rrule").toString())); } diff --git a/services/serverupdate/src/main/java/cloud/stackit/sdk/serverupdate/model/UpdateUpdateSchedulePayload.java b/services/serverupdate/src/main/java/cloud/stackit/sdk/serverupdate/model/UpdateUpdateSchedulePayload.java index 65f32e7..d010d1a 100644 --- a/services/serverupdate/src/main/java/cloud/stackit/sdk/serverupdate/model/UpdateUpdateSchedulePayload.java +++ b/services/serverupdate/src/main/java/cloud/stackit/sdk/serverupdate/model/UpdateUpdateSchedulePayload.java @@ -32,7 +32,7 @@ /** UpdateUpdateSchedulePayload */ @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.19.0") + comments = "Generator version: 7.15.0") public class UpdateUpdateSchedulePayload { public static final String SERIALIZED_NAME_ENABLED = "enabled"; @@ -209,7 +209,6 @@ 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 UpdateUpdateSchedulePayload is not found in the empty JSON string", UpdateUpdateSchedulePayload.openapiRequiredFields.toString())); } @@ -221,10 +220,8 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (!UpdateUpdateSchedulePayload.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 `UpdateUpdateSchedulePayload` properties. JSON: %s", - entry.getKey(), - jsonElement.toString())); + entry.getKey(), jsonElement.toString())); } } @@ -233,24 +230,20 @@ 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("rrule").isJsonPrimitive()) { throw new IllegalArgumentException( String.format( - java.util.Locale.ROOT, "Expected the field `rrule` to be a primitive type in the JSON string but got `%s`", jsonObj.get("rrule").toString())); }