From ac9fdfbed77faf28fff1f3a075e283733f4220f7 Mon Sep 17 00:00:00 2001 From: SDK Generator Bot Date: Wed, 21 Jan 2026 14:20:00 +0000 Subject: [PATCH] Generate serverupdate --- .../java/cloud/stackit/sdk/serverupdate/Pair.java | 2 +- .../sdk/serverupdate/ServerConfiguration.java | 2 +- .../stackit/sdk/serverupdate/ServerVariable.java | 2 +- .../stackit/sdk/serverupdate/StringUtil.java | 2 +- .../serverupdate/model/AbstractOpenApiSchema.java | 2 +- .../serverupdate/model/CreateUpdatePayload.java | 11 ++++++++--- .../model/CreateUpdateSchedulePayload.java | 13 ++++++++++--- .../model/EnableServiceResourcePayload.java | 8 ++++++-- .../sdk/serverupdate/model/ErrorResponse.java | 13 ++++++++++--- .../model/GetUpdatePoliciesResponse.java | 8 ++++++-- .../model/GetUpdateSchedulesResponse.java | 8 ++++++-- .../model/GetUpdateServiceResponse.java | 7 +++++-- .../model/GetUpdatesListResponse.java | 8 ++++++-- .../stackit/sdk/serverupdate/model/Update.java | 15 ++++++++++++--- .../sdk/serverupdate/model/UpdatePolicy.java | 11 +++++++++-- .../sdk/serverupdate/model/UpdateSchedule.java | 13 ++++++++++--- .../model/UpdateScheduleCreateRequest.java | 13 ++++++++++--- .../model/UpdateUpdateSchedulePayload.java | 13 ++++++++++--- 18 files changed, 113 insertions(+), 38 deletions(-) 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 47527dd..a25ef4d 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.15.0") + comments = "Generator version: 7.19.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 e690a57..591f5df 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.15.0") + comments = "Generator version: 7.19.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 5607de2..d31068d 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.15.0") + comments = "Generator version: 7.19.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 5cd9f42..6e79b71 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.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/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 f560f07..4e741ba 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.15.0") + comments = "Generator version: 7.19.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 7d495eb..d28dbbb 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.15.0") + comments = "Generator version: 7.19.0") public class CreateUpdatePayload { public static final String SERIALIZED_NAME_BACKUP_BEFORE_UPDATE = "backupBeforeUpdate"; @@ -153,6 +153,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 CreateUpdatePayload is not found in the empty JSON string", CreateUpdatePayload.openapiRequiredFields.toString())); } @@ -164,8 +165,10 @@ 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())); } } @@ -174,8 +177,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(); 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 7624ad7..f0c4378 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.15.0") + comments = "Generator version: 7.19.0") public class CreateUpdateSchedulePayload { public static final String SERIALIZED_NAME_ENABLED = "enabled"; @@ -209,6 +209,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 CreateUpdateSchedulePayload is not found in the empty JSON string", CreateUpdateSchedulePayload.openapiRequiredFields.toString())); } @@ -220,8 +221,10 @@ 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())); } } @@ -230,20 +233,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("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 dd88140..a227c4c 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.15.0") + comments = "Generator version: 7.19.0") public class EnableServiceResourcePayload { public static final String SERIALIZED_NAME_UPDATE_POLICY_ID = "updatePolicyId"; @@ -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 EnableServiceResourcePayload is not found in the empty JSON string", EnableServiceResourcePayload.openapiRequiredFields.toString())); } @@ -134,8 +135,10 @@ 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(); @@ -143,6 +146,7 @@ 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 33fcd5e..a28f1f1 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.15.0") + comments = "Generator version: 7.19.0") public class ErrorResponse { public static final String SERIALIZED_NAME_MESSAGE = "message"; @@ -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 ErrorResponse is not found in the empty JSON string", ErrorResponse.openapiRequiredFields.toString())); } @@ -159,8 +160,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (!ErrorResponse.openapiFields.contains(entry.getKey())) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `ErrorResponse` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + entry.getKey(), + jsonElement.toString())); } } @@ -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("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 cbbf2a9..3a4adef 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.15.0") + comments = "Generator version: 7.19.0") public class GetUpdatePoliciesResponse { public static final String SERIALIZED_NAME_ITEMS = "items"; @@ -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 GetUpdatePoliciesResponse is not found in the empty JSON string", GetUpdatePoliciesResponse.openapiRequiredFields.toString())); } @@ -141,8 +142,10 @@ 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(); @@ -153,6 +156,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (!jsonObj.get("items").isJsonArray()) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "Expected the field `items` to be an array in the JSON string but got `%s`", jsonObj.get("items").toString())); } diff --git a/services/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 f1cb719..6197cde 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.15.0") + comments = "Generator version: 7.19.0") public class GetUpdateSchedulesResponse { public static final String SERIALIZED_NAME_ITEMS = "items"; @@ -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 GetUpdateSchedulesResponse is not found in the empty JSON string", GetUpdateSchedulesResponse.openapiRequiredFields.toString())); } @@ -141,8 +142,10 @@ 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(); @@ -153,6 +156,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (!jsonObj.get("items").isJsonArray()) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "Expected the field `items` to be an array in the JSON string but got `%s`", jsonObj.get("items").toString())); } diff --git a/services/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 04b0580..2cf0169 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.15.0") + comments = "Generator version: 7.19.0") public class GetUpdateServiceResponse { public static final String SERIALIZED_NAME_ENABLED = "enabled"; @@ -119,6 +119,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 GetUpdateServiceResponse is not found in the empty JSON string", GetUpdateServiceResponse.openapiRequiredFields.toString())); } @@ -130,8 +131,10 @@ 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 4bc0166..48fb9cb 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.15.0") + comments = "Generator version: 7.19.0") public class GetUpdatesListResponse { public static final String SERIALIZED_NAME_ITEMS = "items"; @@ -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 GetUpdatesListResponse is not found in the empty JSON string", GetUpdatesListResponse.openapiRequiredFields.toString())); } @@ -141,8 +142,10 @@ 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(); @@ -153,6 +156,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (!jsonObj.get("items").isJsonArray()) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "Expected the field `items` to be an array in the JSON string but got `%s`", jsonObj.get("items").toString())); } diff --git a/services/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 d7347c2..d40507b 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.15.0") + comments = "Generator version: 7.19.0") public class Update { public static final String SERIALIZED_NAME_END_DATE = "endDate"; @@ -285,6 +285,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 Update is not found in the empty JSON string", Update.openapiRequiredFields.toString())); } @@ -296,8 +297,10 @@ 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())); } } @@ -306,8 +309,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(); @@ -315,6 +320,7 @@ 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())); } @@ -322,18 +328,21 @@ 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 ab94c2f..5e9e06a 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.15.0") + comments = "Generator version: 7.19.0") public class UpdatePolicy { public static final String SERIALIZED_NAME_DEFAULT = "default"; @@ -280,6 +280,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 UpdatePolicy is not found in the empty JSON string", UpdatePolicy.openapiRequiredFields.toString())); } @@ -291,8 +292,10 @@ 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(); @@ -300,6 +303,7 @@ 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())); } @@ -307,6 +311,7 @@ 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())); } @@ -314,6 +319,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti && !jsonObj.get("name").isJsonPrimitive()) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } @@ -321,6 +327,7 @@ 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 ac80025..ec95011 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.15.0") + comments = "Generator version: 7.19.0") public class UpdateSchedule { public static final String SERIALIZED_NAME_ENABLED = "enabled"; @@ -235,6 +235,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti .isEmpty()) { // has required fields but JSON element is null throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "The required field(s) %s in UpdateSchedule is not found in the empty JSON string", UpdateSchedule.openapiRequiredFields.toString())); } @@ -246,8 +247,10 @@ 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())); } } @@ -256,20 +259,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("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 e23da78..6465cc5 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.15.0") + comments = "Generator version: 7.19.0") public class UpdateScheduleCreateRequest { public static final String SERIALIZED_NAME_ENABLED = "enabled"; @@ -209,6 +209,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 UpdateScheduleCreateRequest is not found in the empty JSON string", UpdateScheduleCreateRequest.openapiRequiredFields.toString())); } @@ -220,8 +221,10 @@ 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())); } } @@ -230,20 +233,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("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 d010d1a..65f32e7 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.15.0") + comments = "Generator version: 7.19.0") public class UpdateUpdateSchedulePayload { public static final String SERIALIZED_NAME_ENABLED = "enabled"; @@ -209,6 +209,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 UpdateUpdateSchedulePayload is not found in the empty JSON string", UpdateUpdateSchedulePayload.openapiRequiredFields.toString())); } @@ -220,8 +221,10 @@ 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())); } } @@ -230,20 +233,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("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())); }