diff --git a/services/serverbackup/build.gradle b/services/serverbackup/build.gradle
index 10cd648e..314067c8 100644
--- a/services/serverbackup/build.gradle
+++ b/services/serverbackup/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/serverbackup/oas_commit b/services/serverbackup/oas_commit
index 148a7d96..1c4304d8 100644
--- a/services/serverbackup/oas_commit
+++ b/services/serverbackup/oas_commit
@@ -1 +1 @@
-ed4e4fbee2f5db4d95725108fb3d736e5363fb2f
+4ba9d6ffcf1ec61aff0807a261f8c0ca25d266f8
diff --git a/services/serverbackup/src/main/java/cloud/stackit/sdk/serverbackup/ApiClient.java b/services/serverbackup/src/main/java/cloud/stackit/sdk/serverbackup/ApiClient.java
index 7b50c8f5..1214d901 100644
--- a/services/serverbackup/src/main/java/cloud/stackit/sdk/serverbackup/ApiClient.java
+++ b/services/serverbackup/src/main/java/cloud/stackit/sdk/serverbackup/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-backup.api.stackit.cloud
- * @return An instance of OkHttpClient
+ * @param basePath Base path of the URL (e.g https://server-backup.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/serverbackup/src/main/java/cloud/stackit/sdk/serverbackup/Pair.java b/services/serverbackup/src/main/java/cloud/stackit/sdk/serverbackup/Pair.java
index b1dc5fac..426ecdbc 100644
--- a/services/serverbackup/src/main/java/cloud/stackit/sdk/serverbackup/Pair.java
+++ b/services/serverbackup/src/main/java/cloud/stackit/sdk/serverbackup/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/serverbackup/src/main/java/cloud/stackit/sdk/serverbackup/ServerConfiguration.java b/services/serverbackup/src/main/java/cloud/stackit/sdk/serverbackup/ServerConfiguration.java
index 2d28bcef..2a6a081d 100644
--- a/services/serverbackup/src/main/java/cloud/stackit/sdk/serverbackup/ServerConfiguration.java
+++ b/services/serverbackup/src/main/java/cloud/stackit/sdk/serverbackup/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/serverbackup/src/main/java/cloud/stackit/sdk/serverbackup/ServerVariable.java b/services/serverbackup/src/main/java/cloud/stackit/sdk/serverbackup/ServerVariable.java
index bb25018e..6b84304d 100644
--- a/services/serverbackup/src/main/java/cloud/stackit/sdk/serverbackup/ServerVariable.java
+++ b/services/serverbackup/src/main/java/cloud/stackit/sdk/serverbackup/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/serverbackup/src/main/java/cloud/stackit/sdk/serverbackup/StringUtil.java b/services/serverbackup/src/main/java/cloud/stackit/sdk/serverbackup/StringUtil.java
index 2129bad9..279e48ef 100644
--- a/services/serverbackup/src/main/java/cloud/stackit/sdk/serverbackup/StringUtil.java
+++ b/services/serverbackup/src/main/java/cloud/stackit/sdk/serverbackup/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/serverbackup/src/main/java/cloud/stackit/sdk/serverbackup/model/AbstractOpenApiSchema.java b/services/serverbackup/src/main/java/cloud/stackit/sdk/serverbackup/model/AbstractOpenApiSchema.java
index 1fde19ba..595d5c0c 100644
--- a/services/serverbackup/src/main/java/cloud/stackit/sdk/serverbackup/model/AbstractOpenApiSchema.java
+++ b/services/serverbackup/src/main/java/cloud/stackit/sdk/serverbackup/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/serverbackup/src/main/java/cloud/stackit/sdk/serverbackup/model/Backup.java b/services/serverbackup/src/main/java/cloud/stackit/sdk/serverbackup/model/Backup.java
index 5fd73dfe..1db7a99f 100644
--- a/services/serverbackup/src/main/java/cloud/stackit/sdk/serverbackup/model/Backup.java
+++ b/services/serverbackup/src/main/java/cloud/stackit/sdk/serverbackup/model/Backup.java
@@ -36,7 +36,7 @@
/** Backup */
@javax.annotation.Generated(
value = "org.openapitools.codegen.languages.JavaClientCodegen",
- comments = "Generator version: 7.15.0")
+ comments = "Generator version: 7.19.0")
public class Backup {
public static final String SERIALIZED_NAME_CREATED_AT = "createdAt";
@@ -451,6 +451,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 Backup is not found in the empty JSON string",
Backup.openapiRequiredFields.toString()));
}
@@ -461,26 +462,31 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
if (jsonElement.getAsJsonObject().get(requiredField) == null) {
throw new IllegalArgumentException(
String.format(
+ java.util.Locale.ROOT,
"The required field `%s` is not found in the JSON string: %s",
- requiredField, jsonElement.toString()));
+ requiredField,
+ jsonElement.toString()));
}
}
JsonObject jsonObj = jsonElement.getAsJsonObject();
if (!jsonObj.get("createdAt").isJsonPrimitive()) {
throw new IllegalArgumentException(
String.format(
+ java.util.Locale.ROOT,
"Expected the field `createdAt` to be a primitive type in the JSON string but got `%s`",
jsonObj.get("createdAt").toString()));
}
if (!jsonObj.get("expireAt").isJsonPrimitive()) {
throw new IllegalArgumentException(
String.format(
+ java.util.Locale.ROOT,
"Expected the field `expireAt` to be a primitive type in the JSON string but got `%s`",
jsonObj.get("expireAt").toString()));
}
if (!jsonObj.get("id").isJsonPrimitive()) {
throw new IllegalArgumentException(
String.format(
+ java.util.Locale.ROOT,
"Expected the field `id` to be a primitive type in the JSON string but got `%s`",
jsonObj.get("id").toString()));
}
@@ -488,18 +494,21 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
&& !jsonObj.get("lastRestoredAt").isJsonPrimitive()) {
throw new IllegalArgumentException(
String.format(
+ java.util.Locale.ROOT,
"Expected the field `lastRestoredAt` to be a primitive type in the JSON string but got `%s`",
jsonObj.get("lastRestoredAt").toString()));
}
if (!jsonObj.get("name").isJsonPrimitive()) {
throw new IllegalArgumentException(
String.format(
+ java.util.Locale.ROOT,
"Expected the field `name` to be a primitive type in the JSON string but got `%s`",
jsonObj.get("name").toString()));
}
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()));
}
@@ -512,6 +521,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
if (!jsonObj.get("volumeBackups").isJsonArray()) {
throw new IllegalArgumentException(
String.format(
+ java.util.Locale.ROOT,
"Expected the field `volumeBackups` to be an array in the JSON string but got `%s`",
jsonObj.get("volumeBackups").toString()));
}
@@ -591,6 +601,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/serverbackup/src/main/java/cloud/stackit/sdk/serverbackup/model/BackupJob.java b/services/serverbackup/src/main/java/cloud/stackit/sdk/serverbackup/model/BackupJob.java
index 3c74998c..c00d5e13 100644
--- a/services/serverbackup/src/main/java/cloud/stackit/sdk/serverbackup/model/BackupJob.java
+++ b/services/serverbackup/src/main/java/cloud/stackit/sdk/serverbackup/model/BackupJob.java
@@ -33,7 +33,7 @@
/** BackupJob */
@javax.annotation.Generated(
value = "org.openapitools.codegen.languages.JavaClientCodegen",
- comments = "Generator version: 7.15.0")
+ comments = "Generator version: 7.19.0")
public class BackupJob {
public static final String SERIALIZED_NAME_ID = "id";
@@ -170,6 +170,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 BackupJob is not found in the empty JSON string",
BackupJob.openapiRequiredFields.toString()));
}
@@ -180,14 +181,17 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
if (jsonElement.getAsJsonObject().get(requiredField) == null) {
throw new IllegalArgumentException(
String.format(
+ java.util.Locale.ROOT,
"The required field `%s` is not found in the JSON string: %s",
- requiredField, jsonElement.toString()));
+ requiredField,
+ jsonElement.toString()));
}
}
JsonObject jsonObj = jsonElement.getAsJsonObject();
if (!jsonObj.get("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()));
}
@@ -259,6 +263,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/serverbackup/src/main/java/cloud/stackit/sdk/serverbackup/model/BackupPolicy.java b/services/serverbackup/src/main/java/cloud/stackit/sdk/serverbackup/model/BackupPolicy.java
index 7814a7d1..63edaa40 100644
--- a/services/serverbackup/src/main/java/cloud/stackit/sdk/serverbackup/model/BackupPolicy.java
+++ b/services/serverbackup/src/main/java/cloud/stackit/sdk/serverbackup/model/BackupPolicy.java
@@ -33,7 +33,7 @@
/** BackupPolicy */
@javax.annotation.Generated(
value = "org.openapitools.codegen.languages.JavaClientCodegen",
- comments = "Generator version: 7.15.0")
+ comments = "Generator version: 7.19.0")
public class BackupPolicy {
public static final String SERIALIZED_NAME_BACKUP_PROPERTIES = "backupProperties";
@@ -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 BackupPolicy is not found in the empty JSON string",
BackupPolicy.openapiRequiredFields.toString()));
}
@@ -351,6 +352,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()));
}
@@ -358,6 +360,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()));
}
@@ -365,6 +368,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()));
}
@@ -372,6 +376,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()));
}
@@ -443,6 +448,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/serverbackup/src/main/java/cloud/stackit/sdk/serverbackup/model/BackupPolicyBackupProperties.java b/services/serverbackup/src/main/java/cloud/stackit/sdk/serverbackup/model/BackupPolicyBackupProperties.java
index ef5e65a3..b8a1c04d 100644
--- a/services/serverbackup/src/main/java/cloud/stackit/sdk/serverbackup/model/BackupPolicyBackupProperties.java
+++ b/services/serverbackup/src/main/java/cloud/stackit/sdk/serverbackup/model/BackupPolicyBackupProperties.java
@@ -33,7 +33,7 @@
/** BackupPolicyBackupProperties */
@javax.annotation.Generated(
value = "org.openapitools.codegen.languages.JavaClientCodegen",
- comments = "Generator version: 7.15.0")
+ comments = "Generator version: 7.19.0")
public class BackupPolicyBackupProperties {
public static final String SERIALIZED_NAME_NAME = "name";
@@ -199,6 +199,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 BackupPolicyBackupProperties is not found in the empty JSON string",
BackupPolicyBackupProperties.openapiRequiredFields.toString()));
}
@@ -208,6 +209,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()));
}
@@ -283,6 +285,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/serverbackup/src/main/java/cloud/stackit/sdk/serverbackup/model/BackupProperties.java b/services/serverbackup/src/main/java/cloud/stackit/sdk/serverbackup/model/BackupProperties.java
index e48f9803..79ed5c5c 100644
--- a/services/serverbackup/src/main/java/cloud/stackit/sdk/serverbackup/model/BackupProperties.java
+++ b/services/serverbackup/src/main/java/cloud/stackit/sdk/serverbackup/model/BackupProperties.java
@@ -34,7 +34,7 @@
/** BackupProperties */
@javax.annotation.Generated(
value = "org.openapitools.codegen.languages.JavaClientCodegen",
- comments = "Generator version: 7.15.0")
+ comments = "Generator version: 7.19.0")
public class BackupProperties {
public static final String SERIALIZED_NAME_NAME = "name";
@@ -231,6 +231,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
.isEmpty()) { // has required fields but JSON element is null
throw new IllegalArgumentException(
String.format(
+ java.util.Locale.ROOT,
"The required field(s) %s in BackupProperties is not found in the empty JSON string",
BackupProperties.openapiRequiredFields.toString()));
}
@@ -241,14 +242,17 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
if (jsonElement.getAsJsonObject().get(requiredField) == null) {
throw new IllegalArgumentException(
String.format(
+ java.util.Locale.ROOT,
"The required field `%s` is not found in the JSON string: %s",
- requiredField, jsonElement.toString()));
+ requiredField,
+ jsonElement.toString()));
}
}
JsonObject jsonObj = jsonElement.getAsJsonObject();
if (!jsonObj.get("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()));
}
@@ -258,6 +262,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
&& !jsonObj.get("volumeIds").isJsonArray()) {
throw new IllegalArgumentException(
String.format(
+ java.util.Locale.ROOT,
"Expected the field `volumeIds` to be an array in the JSON string but got `%s`",
jsonObj.get("volumeIds").toString()));
}
@@ -330,6 +335,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/serverbackup/src/main/java/cloud/stackit/sdk/serverbackup/model/BackupSchedule.java b/services/serverbackup/src/main/java/cloud/stackit/sdk/serverbackup/model/BackupSchedule.java
index 83e0053d..2ffe4612 100644
--- a/services/serverbackup/src/main/java/cloud/stackit/sdk/serverbackup/model/BackupSchedule.java
+++ b/services/serverbackup/src/main/java/cloud/stackit/sdk/serverbackup/model/BackupSchedule.java
@@ -33,7 +33,7 @@
/** BackupSchedule */
@javax.annotation.Generated(
value = "org.openapitools.codegen.languages.JavaClientCodegen",
- comments = "Generator version: 7.15.0")
+ comments = "Generator version: 7.19.0")
public class BackupSchedule {
public static final String SERIALIZED_NAME_BACKUP_PROPERTIES = "backupProperties";
@@ -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 BackupSchedule is not found in the empty JSON string",
BackupSchedule.openapiRequiredFields.toString()));
}
@@ -290,8 +291,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();
@@ -303,12 +306,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
if (!jsonObj.get("name").isJsonPrimitive()) {
throw new IllegalArgumentException(
String.format(
+ java.util.Locale.ROOT,
"Expected the field `name` to be a primitive type in the JSON string but got `%s`",
jsonObj.get("name").toString()));
}
if (!jsonObj.get("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()));
}
@@ -380,6 +385,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/serverbackup/src/main/java/cloud/stackit/sdk/serverbackup/model/BackupVolumeBackupsInner.java b/services/serverbackup/src/main/java/cloud/stackit/sdk/serverbackup/model/BackupVolumeBackupsInner.java
index 2839212b..d4a9c309 100644
--- a/services/serverbackup/src/main/java/cloud/stackit/sdk/serverbackup/model/BackupVolumeBackupsInner.java
+++ b/services/serverbackup/src/main/java/cloud/stackit/sdk/serverbackup/model/BackupVolumeBackupsInner.java
@@ -34,7 +34,7 @@
/** BackupVolumeBackupsInner */
@javax.annotation.Generated(
value = "org.openapitools.codegen.languages.JavaClientCodegen",
- comments = "Generator version: 7.15.0")
+ comments = "Generator version: 7.19.0")
public class BackupVolumeBackupsInner {
public static final String SERIALIZED_NAME_ID = "id";
@@ -382,6 +382,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 BackupVolumeBackupsInner is not found in the empty JSON string",
BackupVolumeBackupsInner.openapiRequiredFields.toString()));
}
@@ -391,6 +392,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()));
}
@@ -398,6 +400,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
&& !jsonObj.get("lastRestoredAt").isJsonPrimitive()) {
throw new IllegalArgumentException(
String.format(
+ java.util.Locale.ROOT,
"Expected the field `lastRestoredAt` to be a primitive type in the JSON string but got `%s`",
jsonObj.get("lastRestoredAt").toString()));
}
@@ -406,6 +409,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
&& !jsonObj.get("lastRestoredVolumeId").isJsonPrimitive()) {
throw new IllegalArgumentException(
String.format(
+ java.util.Locale.ROOT,
"Expected the field `lastRestoredVolumeId` to be a primitive type in the JSON string but got `%s`",
jsonObj.get("lastRestoredVolumeId").toString()));
}
@@ -413,6 +417,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
&& !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()));
}
@@ -424,6 +429,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
&& !jsonObj.get("volumeId").isJsonPrimitive()) {
throw new IllegalArgumentException(
String.format(
+ java.util.Locale.ROOT,
"Expected the field `volumeId` to be a primitive type in the JSON string but got `%s`",
jsonObj.get("volumeId").toString()));
}
@@ -497,6 +503,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/serverbackup/src/main/java/cloud/stackit/sdk/serverbackup/model/CreateBackupPayload.java b/services/serverbackup/src/main/java/cloud/stackit/sdk/serverbackup/model/CreateBackupPayload.java
index 58907514..65211bf0 100644
--- a/services/serverbackup/src/main/java/cloud/stackit/sdk/serverbackup/model/CreateBackupPayload.java
+++ b/services/serverbackup/src/main/java/cloud/stackit/sdk/serverbackup/model/CreateBackupPayload.java
@@ -34,7 +34,7 @@
/** CreateBackupPayload */
@javax.annotation.Generated(
value = "org.openapitools.codegen.languages.JavaClientCodegen",
- comments = "Generator version: 7.15.0")
+ comments = "Generator version: 7.19.0")
public class CreateBackupPayload {
public static final String SERIALIZED_NAME_NAME = "name";
@@ -232,6 +232,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 CreateBackupPayload is not found in the empty JSON string",
CreateBackupPayload.openapiRequiredFields.toString()));
}
@@ -242,14 +243,17 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
if (jsonElement.getAsJsonObject().get(requiredField) == null) {
throw new IllegalArgumentException(
String.format(
+ java.util.Locale.ROOT,
"The required field `%s` is not found in the JSON string: %s",
- requiredField, jsonElement.toString()));
+ requiredField,
+ jsonElement.toString()));
}
}
JsonObject jsonObj = jsonElement.getAsJsonObject();
if (!jsonObj.get("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()));
}
@@ -259,6 +263,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
&& !jsonObj.get("volumeIds").isJsonArray()) {
throw new IllegalArgumentException(
String.format(
+ java.util.Locale.ROOT,
"Expected the field `volumeIds` to be an array in the JSON string but got `%s`",
jsonObj.get("volumeIds").toString()));
}
@@ -331,6 +336,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/serverbackup/src/main/java/cloud/stackit/sdk/serverbackup/model/CreateBackupSchedulePayload.java b/services/serverbackup/src/main/java/cloud/stackit/sdk/serverbackup/model/CreateBackupSchedulePayload.java
index 124dd955..fb08f98b 100644
--- a/services/serverbackup/src/main/java/cloud/stackit/sdk/serverbackup/model/CreateBackupSchedulePayload.java
+++ b/services/serverbackup/src/main/java/cloud/stackit/sdk/serverbackup/model/CreateBackupSchedulePayload.java
@@ -33,7 +33,7 @@
/** CreateBackupSchedulePayload */
@javax.annotation.Generated(
value = "org.openapitools.codegen.languages.JavaClientCodegen",
- comments = "Generator version: 7.15.0")
+ comments = "Generator version: 7.19.0")
public class CreateBackupSchedulePayload {
public static final String SERIALIZED_NAME_BACKUP_PROPERTIES = "backupProperties";
@@ -254,6 +254,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 CreateBackupSchedulePayload is not found in the empty JSON string",
CreateBackupSchedulePayload.openapiRequiredFields.toString()));
}
@@ -264,8 +265,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();
@@ -277,12 +280,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
if (!jsonObj.get("name").isJsonPrimitive()) {
throw new IllegalArgumentException(
String.format(
+ java.util.Locale.ROOT,
"Expected the field `name` to be a primitive type in the JSON string but got `%s`",
jsonObj.get("name").toString()));
}
if (!jsonObj.get("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()));
}
@@ -357,6 +362,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/serverbackup/src/main/java/cloud/stackit/sdk/serverbackup/model/EnableServiceResourcePayload.java b/services/serverbackup/src/main/java/cloud/stackit/sdk/serverbackup/model/EnableServiceResourcePayload.java
index 1d9fd060..de4f5815 100644
--- a/services/serverbackup/src/main/java/cloud/stackit/sdk/serverbackup/model/EnableServiceResourcePayload.java
+++ b/services/serverbackup/src/main/java/cloud/stackit/sdk/serverbackup/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_BACKUP_POLICY_ID = "backupPolicyId";
@@ -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("backupPolicyId").isJsonPrimitive()) {
throw new IllegalArgumentException(
String.format(
+ java.util.Locale.ROOT,
"Expected the field `backupPolicyId` to be a primitive type in the JSON string but got `%s`",
jsonObj.get("backupPolicyId").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/serverbackup/src/main/java/cloud/stackit/sdk/serverbackup/model/ErrorResponse.java b/services/serverbackup/src/main/java/cloud/stackit/sdk/serverbackup/model/ErrorResponse.java
index 712c39c0..854319b0 100644
--- a/services/serverbackup/src/main/java/cloud/stackit/sdk/serverbackup/model/ErrorResponse.java
+++ b/services/serverbackup/src/main/java/cloud/stackit/sdk/serverbackup/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/serverbackup/src/main/java/cloud/stackit/sdk/serverbackup/model/GetBackupPoliciesResponse.java b/services/serverbackup/src/main/java/cloud/stackit/sdk/serverbackup/model/GetBackupPoliciesResponse.java
index ce2c16fa..7f9f4910 100644
--- a/services/serverbackup/src/main/java/cloud/stackit/sdk/serverbackup/model/GetBackupPoliciesResponse.java
+++ b/services/serverbackup/src/main/java/cloud/stackit/sdk/serverbackup/model/GetBackupPoliciesResponse.java
@@ -35,7 +35,7 @@
/** GetBackupPoliciesResponse */
@javax.annotation.Generated(
value = "org.openapitools.codegen.languages.JavaClientCodegen",
- comments = "Generator version: 7.15.0")
+ comments = "Generator version: 7.19.0")
public class GetBackupPoliciesResponse {
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 GetBackupPoliciesResponse is not found in the empty JSON string",
GetBackupPoliciesResponse.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/serverbackup/src/main/java/cloud/stackit/sdk/serverbackup/model/GetBackupSchedulesResponse.java b/services/serverbackup/src/main/java/cloud/stackit/sdk/serverbackup/model/GetBackupSchedulesResponse.java
index 1e218c87..e95dcced 100644
--- a/services/serverbackup/src/main/java/cloud/stackit/sdk/serverbackup/model/GetBackupSchedulesResponse.java
+++ b/services/serverbackup/src/main/java/cloud/stackit/sdk/serverbackup/model/GetBackupSchedulesResponse.java
@@ -35,7 +35,7 @@
/** GetBackupSchedulesResponse */
@javax.annotation.Generated(
value = "org.openapitools.codegen.languages.JavaClientCodegen",
- comments = "Generator version: 7.15.0")
+ comments = "Generator version: 7.19.0")
public class GetBackupSchedulesResponse {
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 GetBackupSchedulesResponse is not found in the empty JSON string",
GetBackupSchedulesResponse.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/serverbackup/src/main/java/cloud/stackit/sdk/serverbackup/model/GetBackupServiceResponse.java b/services/serverbackup/src/main/java/cloud/stackit/sdk/serverbackup/model/GetBackupServiceResponse.java
index 3130568b..49dbc9c5 100644
--- a/services/serverbackup/src/main/java/cloud/stackit/sdk/serverbackup/model/GetBackupServiceResponse.java
+++ b/services/serverbackup/src/main/java/cloud/stackit/sdk/serverbackup/model/GetBackupServiceResponse.java
@@ -33,7 +33,7 @@
/** GetBackupServiceResponse */
@javax.annotation.Generated(
value = "org.openapitools.codegen.languages.JavaClientCodegen",
- comments = "Generator version: 7.15.0")
+ comments = "Generator version: 7.19.0")
public class GetBackupServiceResponse {
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 GetBackupServiceResponse is not found in the empty JSON string",
GetBackupServiceResponse.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/serverbackup/src/main/java/cloud/stackit/sdk/serverbackup/model/GetBackupsListResponse.java b/services/serverbackup/src/main/java/cloud/stackit/sdk/serverbackup/model/GetBackupsListResponse.java
index b570cd85..e3331b3e 100644
--- a/services/serverbackup/src/main/java/cloud/stackit/sdk/serverbackup/model/GetBackupsListResponse.java
+++ b/services/serverbackup/src/main/java/cloud/stackit/sdk/serverbackup/model/GetBackupsListResponse.java
@@ -35,7 +35,7 @@
/** GetBackupsListResponse */
@javax.annotation.Generated(
value = "org.openapitools.codegen.languages.JavaClientCodegen",
- comments = "Generator version: 7.15.0")
+ comments = "Generator version: 7.19.0")
public class GetBackupsListResponse {
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 GetBackupsListResponse is not found in the empty JSON string",
GetBackupsListResponse.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/serverbackup/src/main/java/cloud/stackit/sdk/serverbackup/model/RestoreBackupPayload.java b/services/serverbackup/src/main/java/cloud/stackit/sdk/serverbackup/model/RestoreBackupPayload.java
index ca2ea299..48453eb8 100644
--- a/services/serverbackup/src/main/java/cloud/stackit/sdk/serverbackup/model/RestoreBackupPayload.java
+++ b/services/serverbackup/src/main/java/cloud/stackit/sdk/serverbackup/model/RestoreBackupPayload.java
@@ -34,7 +34,7 @@
/** RestoreBackupPayload */
@javax.annotation.Generated(
value = "org.openapitools.codegen.languages.JavaClientCodegen",
- comments = "Generator version: 7.15.0")
+ comments = "Generator version: 7.19.0")
public class RestoreBackupPayload {
public static final String SERIALIZED_NAME_START_SERVER_AFTER_RESTORE =
"startServerAfterRestore";
@@ -211,6 +211,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 RestoreBackupPayload is not found in the empty JSON string",
RestoreBackupPayload.openapiRequiredFields.toString()));
}
@@ -221,8 +222,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();
@@ -232,6 +235,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
&& !jsonObj.get("volumeIds").isJsonArray()) {
throw new IllegalArgumentException(
String.format(
+ java.util.Locale.ROOT,
"Expected the field `volumeIds` to be an array in the JSON string but got `%s`",
jsonObj.get("volumeIds").toString()));
}
@@ -304,6 +308,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/serverbackup/src/main/java/cloud/stackit/sdk/serverbackup/model/RestoreVolumeBackupPayload.java b/services/serverbackup/src/main/java/cloud/stackit/sdk/serverbackup/model/RestoreVolumeBackupPayload.java
index 13c9efb0..b5022cd1 100644
--- a/services/serverbackup/src/main/java/cloud/stackit/sdk/serverbackup/model/RestoreVolumeBackupPayload.java
+++ b/services/serverbackup/src/main/java/cloud/stackit/sdk/serverbackup/model/RestoreVolumeBackupPayload.java
@@ -33,7 +33,7 @@
/** RestoreVolumeBackupPayload */
@javax.annotation.Generated(
value = "org.openapitools.codegen.languages.JavaClientCodegen",
- comments = "Generator version: 7.15.0")
+ comments = "Generator version: 7.19.0")
public class RestoreVolumeBackupPayload {
public static final String SERIALIZED_NAME_RESTORE_VOLUME_ID = "restoreVolumeId";
@@ -172,6 +172,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 RestoreVolumeBackupPayload is not found in the empty JSON string",
RestoreVolumeBackupPayload.openapiRequiredFields.toString()));
}
@@ -182,14 +183,17 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
if (jsonElement.getAsJsonObject().get(requiredField) == null) {
throw new IllegalArgumentException(
String.format(
+ java.util.Locale.ROOT,
"The required field `%s` is not found in the JSON string: %s",
- requiredField, jsonElement.toString()));
+ requiredField,
+ jsonElement.toString()));
}
}
JsonObject jsonObj = jsonElement.getAsJsonObject();
if (!jsonObj.get("restoreVolumeId").isJsonPrimitive()) {
throw new IllegalArgumentException(
String.format(
+ java.util.Locale.ROOT,
"Expected the field `restoreVolumeId` to be a primitive type in the JSON string but got `%s`",
jsonObj.get("restoreVolumeId").toString()));
}
@@ -263,6 +267,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/serverbackup/src/main/java/cloud/stackit/sdk/serverbackup/model/UpdateBackupSchedulePayload.java b/services/serverbackup/src/main/java/cloud/stackit/sdk/serverbackup/model/UpdateBackupSchedulePayload.java
index e1732d79..03a054a4 100644
--- a/services/serverbackup/src/main/java/cloud/stackit/sdk/serverbackup/model/UpdateBackupSchedulePayload.java
+++ b/services/serverbackup/src/main/java/cloud/stackit/sdk/serverbackup/model/UpdateBackupSchedulePayload.java
@@ -33,7 +33,7 @@
/** UpdateBackupSchedulePayload */
@javax.annotation.Generated(
value = "org.openapitools.codegen.languages.JavaClientCodegen",
- comments = "Generator version: 7.15.0")
+ comments = "Generator version: 7.19.0")
public class UpdateBackupSchedulePayload {
public static final String SERIALIZED_NAME_BACKUP_PROPERTIES = "backupProperties";
@@ -254,6 +254,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 UpdateBackupSchedulePayload is not found in the empty JSON string",
UpdateBackupSchedulePayload.openapiRequiredFields.toString()));
}
@@ -264,8 +265,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();
@@ -277,12 +280,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
if (!jsonObj.get("name").isJsonPrimitive()) {
throw new IllegalArgumentException(
String.format(
+ java.util.Locale.ROOT,
"Expected the field `name` to be a primitive type in the JSON string but got `%s`",
jsonObj.get("name").toString()));
}
if (!jsonObj.get("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()));
}
@@ -357,6 +362,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()));