From bab8e1b1ff437178d3efb9708a372465370aa2c4 Mon Sep 17 00:00:00 2001 From: SDK Generator Bot Date: Mon, 2 Feb 2026 14:57:02 +0000 Subject: [PATCH] Generate serverupdate --- services/serverupdate/build.gradle | 4 +- services/serverupdate/oas_commit | 2 +- .../stackit/sdk/serverupdate/ApiClient.java | 68 ++++++++++++++++--- .../cloud/stackit/sdk/serverupdate/Pair.java | 2 +- .../sdk/serverupdate/ServerConfiguration.java | 2 +- .../sdk/serverupdate/ServerVariable.java | 2 +- .../stackit/sdk/serverupdate/StringUtil.java | 2 +- .../model/AbstractOpenApiSchema.java | 2 +- .../model/CreateUpdatePayload.java | 8 ++- .../model/CreateUpdateSchedulePayload.java | 10 ++- .../model/EnableServiceResourcePayload.java | 5 +- .../sdk/serverupdate/model/ErrorResponse.java | 10 ++- .../model/GetUpdatePoliciesResponse.java | 5 +- .../model/GetUpdateSchedulesResponse.java | 5 +- .../model/GetUpdateServiceResponse.java | 4 +- .../model/GetUpdatesListResponse.java | 5 +- .../sdk/serverupdate/model/Update.java | 12 +++- .../sdk/serverupdate/model/UpdatePolicy.java | 8 ++- .../serverupdate/model/UpdateSchedule.java | 10 ++- .../model/UpdateScheduleCreateRequest.java | 10 ++- .../model/UpdateUpdateSchedulePayload.java | 10 ++- 21 files changed, 150 insertions(+), 36 deletions(-) diff --git a/services/serverupdate/build.gradle b/services/serverupdate/build.gradle index 10cd648e..314067c8 100644 --- a/services/serverupdate/build.gradle +++ b/services/serverupdate/build.gradle @@ -10,8 +10,8 @@ dependencies { implementation 'com.google.code.gson:gson:2.9.1' implementation 'io.gsonfire:gson-fire:1.9.0' implementation 'jakarta.ws.rs:jakarta.ws.rs-api:2.1.6' - implementation 'org.openapitools:jackson-databind-nullable:0.2.6' - implementation group: 'org.apache.commons', name: 'commons-lang3', version: '3.17.0' + implementation 'org.openapitools:jackson-databind-nullable:0.2.8' + implementation group: 'org.apache.commons', name: 'commons-lang3', version: '3.18.0' implementation "jakarta.annotation:jakarta.annotation-api:$jakarta_annotation_version" testImplementation 'org.junit.jupiter:junit-jupiter-api:5.10.3' testImplementation 'org.mockito:mockito-core:3.12.4' diff --git a/services/serverupdate/oas_commit b/services/serverupdate/oas_commit index 148a7d96..1c4304d8 100644 --- a/services/serverupdate/oas_commit +++ b/services/serverupdate/oas_commit @@ -1 +1 @@ -ed4e4fbee2f5db4d95725108fb3d736e5363fb2f +4ba9d6ffcf1ec61aff0807a261f8c0ca25d266f8 diff --git a/services/serverupdate/src/main/java/cloud/stackit/sdk/serverupdate/ApiClient.java b/services/serverupdate/src/main/java/cloud/stackit/sdk/serverupdate/ApiClient.java index 6b0a4e81..cce4c448 100644 --- a/services/serverupdate/src/main/java/cloud/stackit/sdk/serverupdate/ApiClient.java +++ b/services/serverupdate/src/main/java/cloud/stackit/sdk/serverupdate/ApiClient.java @@ -84,6 +84,7 @@ public class ApiClient { protected InputStream sslCaCert; protected boolean verifyingSsl; protected KeyManager[] keyManagers; + protected String tlsServerName; protected OkHttpClient httpClient; protected JSON json; @@ -189,8 +190,8 @@ public String getBasePath() { /** * Set base path * - * @param basePath Base path of the URL (e.g https://server-update.api.stackit.cloud - * @return An instance of OkHttpClient + * @param basePath Base path of the URL (e.g https://server-update.api.stackit.cloud) + * @return An instance of ApiClient */ public ApiClient setBasePath(String basePath) { this.basePath = basePath; @@ -321,6 +322,28 @@ public ApiClient setKeyManagers(KeyManager[] managers) { return this; } + /** + * Get TLS server name for SNI (Server Name Indication). + * + * @return The TLS server name + */ + public String getTlsServerName() { + return tlsServerName; + } + + /** + * Set TLS server name for SNI (Server Name Indication). This is used to verify the server + * certificate against a specific hostname instead of the hostname in the URL. + * + * @param tlsServerName The TLS server name to use for certificate verification + * @return ApiClient + */ + public ApiClient setTlsServerName(String tlsServerName) { + this.tlsServerName = tlsServerName; + applySslSettings(); + return this; + } + /** * Getter for the field dateFormat. * @@ -605,7 +628,7 @@ public List parameterToPair(String name, Object value) { * @param value The value of the parameter. * @return A list of {@code Pair} objects. */ - public List parameterToPairs(String collectionFormat, String name, Collection value) { + public List parameterToPairs(String collectionFormat, String name, Collection value) { List params = new ArrayList(); // preconditions @@ -827,7 +850,17 @@ public T deserialize(Response response, Type returnType) throws ApiException } try { if (isJsonMime(contentType)) { - return JSON.deserialize(respBody.byteStream(), returnType); + if (returnType.equals(String.class)) { + String respBodyString = respBody.string(); + if (respBodyString.isEmpty()) { + return null; + } + // Use String-based deserialize for String return type with fallback + return JSON.deserialize(respBodyString, returnType); + } else { + // Use InputStream-based deserialize which supports responses > 2GB + return JSON.deserialize(respBody.byteStream(), returnType); + } } else if (returnType.equals(String.class)) { String respBodyString = respBody.string(); if (respBodyString.isEmpty()) { @@ -1227,8 +1260,10 @@ public String buildUrl( if (serverIndex < 0 || serverIndex >= servers.size()) { throw new ArrayIndexOutOfBoundsException( String.format( + java.util.Locale.ROOT, "Invalid index %d when selecting the host settings. Must be less than %d", - serverIndex, servers.size())); + serverIndex, + servers.size())); } baseURL = servers.get(serverIndex).URL(serverVariables); } else { @@ -1302,12 +1337,16 @@ public void processHeaderParams(Map headerParams, Request.Builde public void processCookieParams(Map cookieParams, Request.Builder reqBuilder) { for (Entry param : cookieParams.entrySet()) { reqBuilder.addHeader( - "Cookie", String.format("%s=%s", param.getKey(), param.getValue())); + "Cookie", + String.format( + java.util.Locale.ROOT, "%s=%s", param.getKey(), param.getValue())); } for (Entry param : defaultCookieMap.entrySet()) { if (!cookieParams.containsKey(param.getKey())) { reqBuilder.addHeader( - "Cookie", String.format("%s=%s", param.getKey(), param.getValue())); + "Cookie", + String.format( + java.util.Locale.ROOT, "%s=%s", param.getKey(), param.getValue())); } } } @@ -1495,7 +1534,20 @@ public boolean verify(String hostname, SSLSession session) { trustManagerFactory.init(caKeyStore); } trustManagers = trustManagerFactory.getTrustManagers(); - hostnameVerifier = OkHostnameVerifier.INSTANCE; + if (tlsServerName != null && !tlsServerName.isEmpty()) { + hostnameVerifier = + new HostnameVerifier() { + @Override + public boolean verify(String hostname, SSLSession session) { + // Verify the certificate against tlsServerName instead of the + // actual hostname + return OkHostnameVerifier.INSTANCE.verify( + tlsServerName, session); + } + }; + } else { + hostnameVerifier = OkHostnameVerifier.INSTANCE; + } } SSLContext sslContext = SSLContext.getInstance("TLS"); 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 47527dd3..a25ef4db 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 e690a57c..591f5df2 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 5607de2d..d31068d4 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 5cd9f428..6e79b716 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 f560f07e..4e741baa 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 4f604fdd..5278cf14 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 @@ -33,7 +33,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"; @@ -203,6 +203,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())); } @@ -213,8 +214,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonElement.getAsJsonObject().get(requiredField) == null) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", - requiredField, jsonElement.toString())); + requiredField, + jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -287,6 +290,7 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) else throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); 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 aea6808e..e87bfd76 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 @@ -33,7 +33,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"; @@ -260,6 +260,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())); } @@ -270,20 +271,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())); } @@ -358,6 +363,7 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) else throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().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 4d798fed..d707fd15 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 @@ -34,7 +34,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"; @@ -174,6 +174,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())); } @@ -183,6 +184,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())); } @@ -258,6 +260,7 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) else throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().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 fbc5cced..e9ed81ce 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 @@ -33,7 +33,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"; @@ -197,6 +197,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())); } @@ -207,20 +208,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())); } @@ -292,6 +297,7 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) else throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().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 da997f44..644cbd01 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"; @@ -179,6 +179,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())); } @@ -191,6 +192,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())); } @@ -272,6 +274,7 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) else throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().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 7297c1bc..3602bfcc 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"; @@ -179,6 +179,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())); } @@ -191,6 +192,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())); } @@ -272,6 +274,7 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) else throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().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 ffef5518..f2a94856 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 @@ -33,7 +33,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"; @@ -169,6 +169,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())); } @@ -244,6 +245,7 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) else throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); 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 d7e3e008..4e990434 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"; @@ -179,6 +179,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())); } @@ -191,6 +192,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())); } @@ -271,6 +273,7 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) else throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().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 07fa770a..1ccd1a76 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 @@ -33,7 +33,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"; @@ -341,6 +341,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())); } @@ -351,8 +352,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(); @@ -360,6 +363,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())); } @@ -367,18 +371,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())); } @@ -450,6 +457,7 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) else throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().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 f3245382..7e7bb216 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 @@ -33,7 +33,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"; @@ -337,6 +337,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())); } @@ -346,6 +347,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())); } @@ -353,6 +355,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())); } @@ -360,6 +363,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())); } @@ -367,6 +371,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())); } @@ -438,6 +443,7 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) else throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().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 5f59ad62..fad23dba 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 @@ -33,7 +33,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"; @@ -284,6 +284,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())); } @@ -294,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("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())); } @@ -379,6 +384,7 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) else throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().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 5d23e4a8..edfcdbdf 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 @@ -33,7 +33,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"; @@ -260,6 +260,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())); } @@ -270,20 +271,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())); } @@ -358,6 +363,7 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) else throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().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 a7fbf7a3..545bf9ed 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 @@ -33,7 +33,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"; @@ -260,6 +260,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())); } @@ -270,20 +271,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())); } @@ -358,6 +363,7 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) else throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString()));