diff --git a/services/loadbalancer/src/main/java/cloud/stackit/sdk/loadbalancer/Pair.java b/services/loadbalancer/src/main/java/cloud/stackit/sdk/loadbalancer/Pair.java index f9aad86..24d994b 100644 --- a/services/loadbalancer/src/main/java/cloud/stackit/sdk/loadbalancer/Pair.java +++ b/services/loadbalancer/src/main/java/cloud/stackit/sdk/loadbalancer/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/loadbalancer/src/main/java/cloud/stackit/sdk/loadbalancer/ServerConfiguration.java b/services/loadbalancer/src/main/java/cloud/stackit/sdk/loadbalancer/ServerConfiguration.java index 6a36546..a9ffb9f 100644 --- a/services/loadbalancer/src/main/java/cloud/stackit/sdk/loadbalancer/ServerConfiguration.java +++ b/services/loadbalancer/src/main/java/cloud/stackit/sdk/loadbalancer/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/loadbalancer/src/main/java/cloud/stackit/sdk/loadbalancer/ServerVariable.java b/services/loadbalancer/src/main/java/cloud/stackit/sdk/loadbalancer/ServerVariable.java index 319b312..2281a67 100644 --- a/services/loadbalancer/src/main/java/cloud/stackit/sdk/loadbalancer/ServerVariable.java +++ b/services/loadbalancer/src/main/java/cloud/stackit/sdk/loadbalancer/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/loadbalancer/src/main/java/cloud/stackit/sdk/loadbalancer/StringUtil.java b/services/loadbalancer/src/main/java/cloud/stackit/sdk/loadbalancer/StringUtil.java index e5b72c6..b46650b 100644 --- a/services/loadbalancer/src/main/java/cloud/stackit/sdk/loadbalancer/StringUtil.java +++ b/services/loadbalancer/src/main/java/cloud/stackit/sdk/loadbalancer/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/loadbalancer/src/main/java/cloud/stackit/sdk/loadbalancer/model/AbstractOpenApiSchema.java b/services/loadbalancer/src/main/java/cloud/stackit/sdk/loadbalancer/model/AbstractOpenApiSchema.java index 7e01783..fca4138 100644 --- a/services/loadbalancer/src/main/java/cloud/stackit/sdk/loadbalancer/model/AbstractOpenApiSchema.java +++ b/services/loadbalancer/src/main/java/cloud/stackit/sdk/loadbalancer/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/loadbalancer/src/main/java/cloud/stackit/sdk/loadbalancer/model/ActiveHealthCheck.java b/services/loadbalancer/src/main/java/cloud/stackit/sdk/loadbalancer/model/ActiveHealthCheck.java index 09c0f6d..c790b98 100644 --- a/services/loadbalancer/src/main/java/cloud/stackit/sdk/loadbalancer/model/ActiveHealthCheck.java +++ b/services/loadbalancer/src/main/java/cloud/stackit/sdk/loadbalancer/model/ActiveHealthCheck.java @@ -32,7 +32,7 @@ /** ActiveHealthCheck */ @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.15.0") + comments = "Generator version: 7.19.0") public class ActiveHealthCheck { public static final String SERIALIZED_NAME_HEALTHY_THRESHOLD = "healthyThreshold"; @@ -230,6 +230,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 ActiveHealthCheck is not found in the empty JSON string", ActiveHealthCheck.openapiRequiredFields.toString())); } @@ -241,8 +242,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (!ActiveHealthCheck.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 `ActiveHealthCheck` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + entry.getKey(), + jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -250,6 +253,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti && !jsonObj.get("interval").isJsonPrimitive()) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "Expected the field `interval` to be a primitive type in the JSON string but got `%s`", jsonObj.get("interval").toString())); } @@ -257,6 +261,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti && !jsonObj.get("intervalJitter").isJsonPrimitive()) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "Expected the field `intervalJitter` to be a primitive type in the JSON string but got `%s`", jsonObj.get("intervalJitter").toString())); } @@ -264,6 +269,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti && !jsonObj.get("timeout").isJsonPrimitive()) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "Expected the field `timeout` to be a primitive type in the JSON string but got `%s`", jsonObj.get("timeout").toString())); } diff --git a/services/loadbalancer/src/main/java/cloud/stackit/sdk/loadbalancer/model/CreateCredentialsPayload.java b/services/loadbalancer/src/main/java/cloud/stackit/sdk/loadbalancer/model/CreateCredentialsPayload.java index bdace12..a70168c 100644 --- a/services/loadbalancer/src/main/java/cloud/stackit/sdk/loadbalancer/model/CreateCredentialsPayload.java +++ b/services/loadbalancer/src/main/java/cloud/stackit/sdk/loadbalancer/model/CreateCredentialsPayload.java @@ -32,7 +32,7 @@ /** CreateCredentialsPayload */ @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.15.0") + comments = "Generator version: 7.19.0") public class CreateCredentialsPayload { public static final String SERIALIZED_NAME_DISPLAY_NAME = "displayName"; @@ -171,6 +171,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 CreateCredentialsPayload is not found in the empty JSON string", CreateCredentialsPayload.openapiRequiredFields.toString())); } @@ -182,8 +183,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (!CreateCredentialsPayload.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 `CreateCredentialsPayload` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + entry.getKey(), + jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -191,6 +194,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti && !jsonObj.get("displayName").isJsonPrimitive()) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "Expected the field `displayName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("displayName").toString())); } @@ -198,6 +202,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti && !jsonObj.get("password").isJsonPrimitive()) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "Expected the field `password` to be a primitive type in the JSON string but got `%s`", jsonObj.get("password").toString())); } @@ -205,6 +210,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti && !jsonObj.get("username").isJsonPrimitive()) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "Expected the field `username` to be a primitive type in the JSON string but got `%s`", jsonObj.get("username").toString())); } diff --git a/services/loadbalancer/src/main/java/cloud/stackit/sdk/loadbalancer/model/CreateCredentialsResponse.java b/services/loadbalancer/src/main/java/cloud/stackit/sdk/loadbalancer/model/CreateCredentialsResponse.java index 743a0bd..79be418 100644 --- a/services/loadbalancer/src/main/java/cloud/stackit/sdk/loadbalancer/model/CreateCredentialsResponse.java +++ b/services/loadbalancer/src/main/java/cloud/stackit/sdk/loadbalancer/model/CreateCredentialsResponse.java @@ -32,7 +32,7 @@ /** CreateCredentialsResponse */ @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.15.0") + comments = "Generator version: 7.19.0") public class CreateCredentialsResponse { public static final String SERIALIZED_NAME_CREDENTIAL = "credential"; @@ -120,6 +120,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti .isEmpty()) { // has required fields but JSON element is null throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "The required field(s) %s in CreateCredentialsResponse is not found in the empty JSON string", CreateCredentialsResponse.openapiRequiredFields.toString())); } @@ -131,8 +132,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (!CreateCredentialsResponse.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 `CreateCredentialsResponse` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + entry.getKey(), + jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); diff --git a/services/loadbalancer/src/main/java/cloud/stackit/sdk/loadbalancer/model/CreateLoadBalancerPayload.java b/services/loadbalancer/src/main/java/cloud/stackit/sdk/loadbalancer/model/CreateLoadBalancerPayload.java index d969345..f2ac88e 100644 --- a/services/loadbalancer/src/main/java/cloud/stackit/sdk/loadbalancer/model/CreateLoadBalancerPayload.java +++ b/services/loadbalancer/src/main/java/cloud/stackit/sdk/loadbalancer/model/CreateLoadBalancerPayload.java @@ -37,7 +37,7 @@ /** CreateLoadBalancerPayload */ @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.15.0") + comments = "Generator version: 7.19.0") public class CreateLoadBalancerPayload { public static final String SERIALIZED_NAME_DISABLE_TARGET_SECURITY_GROUP_ASSIGNMENT = "disableTargetSecurityGroupAssignment"; @@ -638,6 +638,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 CreateLoadBalancerPayload is not found in the empty JSON string", CreateLoadBalancerPayload.openapiRequiredFields.toString())); } @@ -649,8 +650,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (!CreateLoadBalancerPayload.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 `CreateLoadBalancerPayload` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + entry.getKey(), + jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -661,6 +664,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (!jsonObj.get("errors").isJsonArray()) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "Expected the field `errors` to be an array in the JSON string but got `%s`", jsonObj.get("errors").toString())); } @@ -676,6 +680,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti && !jsonObj.get("externalAddress").isJsonPrimitive()) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "Expected the field `externalAddress` to be a primitive type in the JSON string but got `%s`", jsonObj.get("externalAddress").toString())); } @@ -686,6 +691,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (!jsonObj.get("listeners").isJsonArray()) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "Expected the field `listeners` to be an array in the JSON string but got `%s`", jsonObj.get("listeners").toString())); } @@ -706,6 +712,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())); } @@ -716,6 +723,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (!jsonObj.get("networks").isJsonArray()) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "Expected the field `networks` to be an array in the JSON string but got `%s`", jsonObj.get("networks").toString())); } @@ -735,6 +743,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti && !jsonObj.get("planId").isJsonPrimitive()) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "Expected the field `planId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("planId").toString())); } @@ -742,6 +751,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti && !jsonObj.get("privateAddress").isJsonPrimitive()) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "Expected the field `privateAddress` to be a primitive type in the JSON string but got `%s`", jsonObj.get("privateAddress").toString())); } @@ -749,6 +759,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti && !jsonObj.get("region").isJsonPrimitive()) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "Expected the field `region` to be a primitive type in the JSON string but got `%s`", jsonObj.get("region").toString())); } @@ -756,6 +767,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())); } @@ -770,6 +782,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (!jsonObj.get("targetPools").isJsonArray()) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "Expected the field `targetPools` to be an array in the JSON string but got `%s`", jsonObj.get("targetPools").toString())); } @@ -790,6 +803,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti && !jsonObj.get("version").isJsonPrimitive()) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "Expected the field `version` to be a primitive type in the JSON string but got `%s`", jsonObj.get("version").toString())); } diff --git a/services/loadbalancer/src/main/java/cloud/stackit/sdk/loadbalancer/model/CredentialsResponse.java b/services/loadbalancer/src/main/java/cloud/stackit/sdk/loadbalancer/model/CredentialsResponse.java index 243688b..1d49d86 100644 --- a/services/loadbalancer/src/main/java/cloud/stackit/sdk/loadbalancer/model/CredentialsResponse.java +++ b/services/loadbalancer/src/main/java/cloud/stackit/sdk/loadbalancer/model/CredentialsResponse.java @@ -32,7 +32,7 @@ /** CredentialsResponse */ @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.15.0") + comments = "Generator version: 7.19.0") public class CredentialsResponse { public static final String SERIALIZED_NAME_CREDENTIALS_REF = "credentialsRef"; @@ -196,6 +196,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 CredentialsResponse is not found in the empty JSON string", CredentialsResponse.openapiRequiredFields.toString())); } @@ -207,8 +208,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (!CredentialsResponse.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 `CredentialsResponse` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + entry.getKey(), + jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -216,6 +219,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti && !jsonObj.get("credentialsRef").isJsonPrimitive()) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "Expected the field `credentialsRef` to be a primitive type in the JSON string but got `%s`", jsonObj.get("credentialsRef").toString())); } @@ -223,6 +227,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti && !jsonObj.get("displayName").isJsonPrimitive()) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "Expected the field `displayName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("displayName").toString())); } @@ -230,6 +235,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti && !jsonObj.get("region").isJsonPrimitive()) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "Expected the field `region` to be a primitive type in the JSON string but got `%s`", jsonObj.get("region").toString())); } @@ -237,6 +243,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti && !jsonObj.get("username").isJsonPrimitive()) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "Expected the field `username` to be a primitive type in the JSON string but got `%s`", jsonObj.get("username").toString())); } diff --git a/services/loadbalancer/src/main/java/cloud/stackit/sdk/loadbalancer/model/GetCredentialsResponse.java b/services/loadbalancer/src/main/java/cloud/stackit/sdk/loadbalancer/model/GetCredentialsResponse.java index d9edadd..f748bc5 100644 --- a/services/loadbalancer/src/main/java/cloud/stackit/sdk/loadbalancer/model/GetCredentialsResponse.java +++ b/services/loadbalancer/src/main/java/cloud/stackit/sdk/loadbalancer/model/GetCredentialsResponse.java @@ -32,7 +32,7 @@ /** GetCredentialsResponse */ @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.15.0") + comments = "Generator version: 7.19.0") public class GetCredentialsResponse { public static final String SERIALIZED_NAME_CREDENTIAL = "credential"; @@ -120,6 +120,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti .isEmpty()) { // has required fields but JSON element is null throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "The required field(s) %s in GetCredentialsResponse is not found in the empty JSON string", GetCredentialsResponse.openapiRequiredFields.toString())); } @@ -131,8 +132,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (!GetCredentialsResponse.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 `GetCredentialsResponse` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + entry.getKey(), + jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); diff --git a/services/loadbalancer/src/main/java/cloud/stackit/sdk/loadbalancer/model/GetQuotaResponse.java b/services/loadbalancer/src/main/java/cloud/stackit/sdk/loadbalancer/model/GetQuotaResponse.java index ef94563..36915ea 100644 --- a/services/loadbalancer/src/main/java/cloud/stackit/sdk/loadbalancer/model/GetQuotaResponse.java +++ b/services/loadbalancer/src/main/java/cloud/stackit/sdk/loadbalancer/model/GetQuotaResponse.java @@ -33,8 +33,13 @@ /** GetQuotaResponse */ @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.15.0") + comments = "Generator version: 7.19.0") public class GetQuotaResponse { + public static final String SERIALIZED_NAME_MAX_CREDENTIALS = "maxCredentials"; + + @SerializedName(SERIALIZED_NAME_MAX_CREDENTIALS) + @javax.annotation.Nullable private Integer maxCredentials; + public static final String SERIALIZED_NAME_MAX_LOAD_BALANCERS = "maxLoadBalancers"; @SerializedName(SERIALIZED_NAME_MAX_LOAD_BALANCERS) @@ -50,6 +55,16 @@ public class GetQuotaResponse { @SerializedName(SERIALIZED_NAME_REGION) @javax.annotation.Nullable private String region; + public static final String SERIALIZED_NAME_USED_CREDENTIALS = "usedCredentials"; + + @SerializedName(SERIALIZED_NAME_USED_CREDENTIALS) + @javax.annotation.Nullable private Integer usedCredentials; + + public static final String SERIALIZED_NAME_USED_LOAD_BALANCERS = "usedLoadBalancers"; + + @SerializedName(SERIALIZED_NAME_USED_LOAD_BALANCERS) + @javax.annotation.Nullable private Integer usedLoadBalancers; + public GetQuotaResponse() {} public GetQuotaResponse(UUID projectId, String region) { @@ -58,6 +73,25 @@ public GetQuotaResponse(UUID projectId, String region) { this.region = region; } + public GetQuotaResponse maxCredentials(@javax.annotation.Nullable Integer maxCredentials) { + this.maxCredentials = maxCredentials; + return this; + } + + /** + * The maximum number of observability credentials that can be stored in this project. minimum: + * -1 maximum: 999 + * + * @return maxCredentials + */ + @javax.annotation.Nullable public Integer getMaxCredentials() { + return maxCredentials; + } + + public void setMaxCredentials(@javax.annotation.Nullable Integer maxCredentials) { + this.maxCredentials = maxCredentials; + } + public GetQuotaResponse maxLoadBalancers(@javax.annotation.Nullable Integer maxLoadBalancers) { this.maxLoadBalancers = maxLoadBalancers; return this; @@ -95,6 +129,45 @@ public void setMaxLoadBalancers(@javax.annotation.Nullable Integer maxLoadBalanc return region; } + public GetQuotaResponse usedCredentials(@javax.annotation.Nullable Integer usedCredentials) { + this.usedCredentials = usedCredentials; + return this; + } + + /** + * The number of observability credentials that are currently existing in this project. minimum: + * -1 maximum: 1000000 + * + * @return usedCredentials + */ + @javax.annotation.Nullable public Integer getUsedCredentials() { + return usedCredentials; + } + + public void setUsedCredentials(@javax.annotation.Nullable Integer usedCredentials) { + this.usedCredentials = usedCredentials; + } + + public GetQuotaResponse usedLoadBalancers( + @javax.annotation.Nullable Integer usedLoadBalancers) { + this.usedLoadBalancers = usedLoadBalancers; + return this; + } + + /** + * The number of load balancing servers that are currently existing in this project. minimum: -1 + * maximum: 1000000 + * + * @return usedLoadBalancers + */ + @javax.annotation.Nullable public Integer getUsedLoadBalancers() { + return usedLoadBalancers; + } + + public void setUsedLoadBalancers(@javax.annotation.Nullable Integer usedLoadBalancers) { + this.usedLoadBalancers = usedLoadBalancers; + } + @Override public boolean equals(Object o) { if (this == o) { @@ -104,23 +177,37 @@ public boolean equals(Object o) { return false; } GetQuotaResponse getQuotaResponse = (GetQuotaResponse) o; - return Objects.equals(this.maxLoadBalancers, getQuotaResponse.maxLoadBalancers) + return Objects.equals(this.maxCredentials, getQuotaResponse.maxCredentials) + && Objects.equals(this.maxLoadBalancers, getQuotaResponse.maxLoadBalancers) && Objects.equals(this.projectId, getQuotaResponse.projectId) - && Objects.equals(this.region, getQuotaResponse.region); + && Objects.equals(this.region, getQuotaResponse.region) + && Objects.equals(this.usedCredentials, getQuotaResponse.usedCredentials) + && Objects.equals(this.usedLoadBalancers, getQuotaResponse.usedLoadBalancers); } @Override public int hashCode() { - return Objects.hash(maxLoadBalancers, projectId, region); + return Objects.hash( + maxCredentials, + maxLoadBalancers, + projectId, + region, + usedCredentials, + usedLoadBalancers); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class GetQuotaResponse {\n"); + sb.append(" maxCredentials: ").append(toIndentedString(maxCredentials)).append("\n"); sb.append(" maxLoadBalancers: ").append(toIndentedString(maxLoadBalancers)).append("\n"); sb.append(" projectId: ").append(toIndentedString(projectId)).append("\n"); sb.append(" region: ").append(toIndentedString(region)).append("\n"); + sb.append(" usedCredentials: ").append(toIndentedString(usedCredentials)).append("\n"); + sb.append(" usedLoadBalancers: ") + .append(toIndentedString(usedLoadBalancers)) + .append("\n"); sb.append("}"); return sb.toString(); } @@ -142,7 +229,14 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) openapiFields = - new HashSet(Arrays.asList("maxLoadBalancers", "projectId", "region")); + new HashSet( + Arrays.asList( + "maxCredentials", + "maxLoadBalancers", + "projectId", + "region", + "usedCredentials", + "usedLoadBalancers")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -160,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 GetQuotaResponse is not found in the empty JSON string", GetQuotaResponse.openapiRequiredFields.toString())); } @@ -171,8 +266,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (!GetQuotaResponse.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 `GetQuotaResponse` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + entry.getKey(), + jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -180,6 +277,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti && !jsonObj.get("projectId").isJsonPrimitive()) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "Expected the field `projectId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("projectId").toString())); } @@ -187,6 +285,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti && !jsonObj.get("region").isJsonPrimitive()) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "Expected the field `region` to be a primitive type in the JSON string but got `%s`", jsonObj.get("region").toString())); } diff --git a/services/loadbalancer/src/main/java/cloud/stackit/sdk/loadbalancer/model/GoogleProtobufAny.java b/services/loadbalancer/src/main/java/cloud/stackit/sdk/loadbalancer/model/GoogleProtobufAny.java index ff92134..2c6844f 100644 --- a/services/loadbalancer/src/main/java/cloud/stackit/sdk/loadbalancer/model/GoogleProtobufAny.java +++ b/services/loadbalancer/src/main/java/cloud/stackit/sdk/loadbalancer/model/GoogleProtobufAny.java @@ -36,7 +36,7 @@ */ @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.15.0") + comments = "Generator version: 7.19.0") public class GoogleProtobufAny { public static final String SERIALIZED_NAME_AT_TYPE = "@type"; @@ -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 GoogleProtobufAny is not found in the empty JSON string", GoogleProtobufAny.openapiRequiredFields.toString())); } @@ -181,6 +182,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti && !jsonObj.get("@type").isJsonPrimitive()) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "Expected the field `@type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("@type").toString())); } @@ -253,6 +255,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/loadbalancer/src/main/java/cloud/stackit/sdk/loadbalancer/model/ListCredentialsResponse.java b/services/loadbalancer/src/main/java/cloud/stackit/sdk/loadbalancer/model/ListCredentialsResponse.java index e1d1374..c49bb4a 100644 --- a/services/loadbalancer/src/main/java/cloud/stackit/sdk/loadbalancer/model/ListCredentialsResponse.java +++ b/services/loadbalancer/src/main/java/cloud/stackit/sdk/loadbalancer/model/ListCredentialsResponse.java @@ -35,7 +35,7 @@ /** ListCredentialsResponse */ @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.15.0") + comments = "Generator version: 7.19.0") public class ListCredentialsResponse { public static final String SERIALIZED_NAME_CREDENTIALS = "credentials"; @@ -131,6 +131,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 ListCredentialsResponse is not found in the empty JSON string", ListCredentialsResponse.openapiRequiredFields.toString())); } @@ -142,8 +143,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (!ListCredentialsResponse.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 `ListCredentialsResponse` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + entry.getKey(), + jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -154,6 +157,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (!jsonObj.get("credentials").isJsonArray()) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "Expected the field `credentials` to be an array in the JSON string but got `%s`", jsonObj.get("credentials").toString())); } diff --git a/services/loadbalancer/src/main/java/cloud/stackit/sdk/loadbalancer/model/ListLoadBalancersResponse.java b/services/loadbalancer/src/main/java/cloud/stackit/sdk/loadbalancer/model/ListLoadBalancersResponse.java index 4c53bfc..f4a627e 100644 --- a/services/loadbalancer/src/main/java/cloud/stackit/sdk/loadbalancer/model/ListLoadBalancersResponse.java +++ b/services/loadbalancer/src/main/java/cloud/stackit/sdk/loadbalancer/model/ListLoadBalancersResponse.java @@ -35,7 +35,7 @@ /** ListLoadBalancersResponse */ @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.15.0") + comments = "Generator version: 7.19.0") public class ListLoadBalancersResponse { public static final String SERIALIZED_NAME_LOAD_BALANCERS = "loadBalancers"; @@ -156,6 +156,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 ListLoadBalancersResponse is not found in the empty JSON string", ListLoadBalancersResponse.openapiRequiredFields.toString())); } @@ -167,8 +168,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (!ListLoadBalancersResponse.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 `ListLoadBalancersResponse` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + entry.getKey(), + jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -179,6 +182,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (!jsonObj.get("loadBalancers").isJsonArray()) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "Expected the field `loadBalancers` to be an array in the JSON string but got `%s`", jsonObj.get("loadBalancers").toString())); } @@ -194,6 +198,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti && !jsonObj.get("nextPageId").isJsonPrimitive()) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "Expected the field `nextPageId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("nextPageId").toString())); } diff --git a/services/loadbalancer/src/main/java/cloud/stackit/sdk/loadbalancer/model/ListPlansResponse.java b/services/loadbalancer/src/main/java/cloud/stackit/sdk/loadbalancer/model/ListPlansResponse.java index 1719a7e..bd02580 100644 --- a/services/loadbalancer/src/main/java/cloud/stackit/sdk/loadbalancer/model/ListPlansResponse.java +++ b/services/loadbalancer/src/main/java/cloud/stackit/sdk/loadbalancer/model/ListPlansResponse.java @@ -35,7 +35,7 @@ /** ListPlansResponse */ @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.15.0") + comments = "Generator version: 7.19.0") public class ListPlansResponse { public static final String SERIALIZED_NAME_VALID_PLANS = "validPlans"; @@ -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 ListPlansResponse is not found in the empty JSON string", ListPlansResponse.openapiRequiredFields.toString())); } @@ -141,8 +142,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (!ListPlansResponse.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 `ListPlansResponse` 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("validPlans").isJsonArray()) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "Expected the field `validPlans` to be an array in the JSON string but got `%s`", jsonObj.get("validPlans").toString())); } diff --git a/services/loadbalancer/src/main/java/cloud/stackit/sdk/loadbalancer/model/Listener.java b/services/loadbalancer/src/main/java/cloud/stackit/sdk/loadbalancer/model/Listener.java index 396bc3b..333b2aa 100644 --- a/services/loadbalancer/src/main/java/cloud/stackit/sdk/loadbalancer/model/Listener.java +++ b/services/loadbalancer/src/main/java/cloud/stackit/sdk/loadbalancer/model/Listener.java @@ -36,7 +36,7 @@ /** Listener */ @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.15.0") + comments = "Generator version: 7.19.0") public class Listener { public static final String SERIALIZED_NAME_DISPLAY_NAME = "displayName"; @@ -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 Listener is not found in the empty JSON string", Listener.openapiRequiredFields.toString())); } @@ -393,8 +394,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (!Listener.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 `Listener` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + entry.getKey(), + jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -402,6 +405,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti && !jsonObj.get("displayName").isJsonPrimitive()) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "Expected the field `displayName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("displayName").toString())); } @@ -409,6 +413,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())); } @@ -416,6 +421,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti && !jsonObj.get("protocol").isJsonPrimitive()) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "Expected the field `protocol` to be a primitive type in the JSON string but got `%s`", jsonObj.get("protocol").toString())); } @@ -432,6 +438,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (!jsonObj.get("serverNameIndicators").isJsonArray()) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "Expected the field `serverNameIndicators` to be an array in the JSON string but got `%s`", jsonObj.get("serverNameIndicators").toString())); } @@ -447,6 +454,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti && !jsonObj.get("targetPool").isJsonPrimitive()) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "Expected the field `targetPool` to be a primitive type in the JSON string but got `%s`", jsonObj.get("targetPool").toString())); } diff --git a/services/loadbalancer/src/main/java/cloud/stackit/sdk/loadbalancer/model/LoadBalancer.java b/services/loadbalancer/src/main/java/cloud/stackit/sdk/loadbalancer/model/LoadBalancer.java index 890abb9..08d8da3 100644 --- a/services/loadbalancer/src/main/java/cloud/stackit/sdk/loadbalancer/model/LoadBalancer.java +++ b/services/loadbalancer/src/main/java/cloud/stackit/sdk/loadbalancer/model/LoadBalancer.java @@ -37,7 +37,7 @@ /** LoadBalancer */ @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.15.0") + comments = "Generator version: 7.19.0") public class LoadBalancer { public static final String SERIALIZED_NAME_DISABLE_TARGET_SECURITY_GROUP_ASSIGNMENT = "disableTargetSecurityGroupAssignment"; @@ -632,6 +632,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 LoadBalancer is not found in the empty JSON string", LoadBalancer.openapiRequiredFields.toString())); } @@ -643,8 +644,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (!LoadBalancer.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 `LoadBalancer` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + entry.getKey(), + jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -655,6 +658,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (!jsonObj.get("errors").isJsonArray()) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "Expected the field `errors` to be an array in the JSON string but got `%s`", jsonObj.get("errors").toString())); } @@ -670,6 +674,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti && !jsonObj.get("externalAddress").isJsonPrimitive()) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "Expected the field `externalAddress` to be a primitive type in the JSON string but got `%s`", jsonObj.get("externalAddress").toString())); } @@ -680,6 +685,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (!jsonObj.get("listeners").isJsonArray()) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "Expected the field `listeners` to be an array in the JSON string but got `%s`", jsonObj.get("listeners").toString())); } @@ -700,6 +706,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())); } @@ -710,6 +717,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (!jsonObj.get("networks").isJsonArray()) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "Expected the field `networks` to be an array in the JSON string but got `%s`", jsonObj.get("networks").toString())); } @@ -729,6 +737,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti && !jsonObj.get("planId").isJsonPrimitive()) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "Expected the field `planId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("planId").toString())); } @@ -736,6 +745,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti && !jsonObj.get("privateAddress").isJsonPrimitive()) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "Expected the field `privateAddress` to be a primitive type in the JSON string but got `%s`", jsonObj.get("privateAddress").toString())); } @@ -743,6 +753,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti && !jsonObj.get("region").isJsonPrimitive()) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "Expected the field `region` to be a primitive type in the JSON string but got `%s`", jsonObj.get("region").toString())); } @@ -750,6 +761,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())); } @@ -764,6 +776,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (!jsonObj.get("targetPools").isJsonArray()) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "Expected the field `targetPools` to be an array in the JSON string but got `%s`", jsonObj.get("targetPools").toString())); } @@ -784,6 +797,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti && !jsonObj.get("version").isJsonPrimitive()) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "Expected the field `version` to be a primitive type in the JSON string but got `%s`", jsonObj.get("version").toString())); } diff --git a/services/loadbalancer/src/main/java/cloud/stackit/sdk/loadbalancer/model/LoadBalancerError.java b/services/loadbalancer/src/main/java/cloud/stackit/sdk/loadbalancer/model/LoadBalancerError.java index cd56fc6..34b5396 100644 --- a/services/loadbalancer/src/main/java/cloud/stackit/sdk/loadbalancer/model/LoadBalancerError.java +++ b/services/loadbalancer/src/main/java/cloud/stackit/sdk/loadbalancer/model/LoadBalancerError.java @@ -33,7 +33,7 @@ /** LoadBalancerError */ @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.15.0") + comments = "Generator version: 7.19.0") public class LoadBalancerError { public static final String SERIALIZED_NAME_DESCRIPTION = "description"; @@ -225,6 +225,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 LoadBalancerError is not found in the empty JSON string", LoadBalancerError.openapiRequiredFields.toString())); } @@ -236,8 +237,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (!LoadBalancerError.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 `LoadBalancerError` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + entry.getKey(), + jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -245,6 +248,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())); } @@ -252,6 +256,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti && !jsonObj.get("type").isJsonPrimitive()) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); } diff --git a/services/loadbalancer/src/main/java/cloud/stackit/sdk/loadbalancer/model/LoadBalancerOptions.java b/services/loadbalancer/src/main/java/cloud/stackit/sdk/loadbalancer/model/LoadBalancerOptions.java index 4c38316..490cc3f 100644 --- a/services/loadbalancer/src/main/java/cloud/stackit/sdk/loadbalancer/model/LoadBalancerOptions.java +++ b/services/loadbalancer/src/main/java/cloud/stackit/sdk/loadbalancer/model/LoadBalancerOptions.java @@ -32,7 +32,7 @@ /** Defines any optional functionality you want to have enabled on your load balancer. */ @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.15.0") + comments = "Generator version: 7.19.0") public class LoadBalancerOptions { public static final String SERIALIZED_NAME_ACCESS_CONTROL = "accessControl"; @@ -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 LoadBalancerOptions is not found in the empty JSON string", LoadBalancerOptions.openapiRequiredFields.toString())); } @@ -220,8 +221,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (!LoadBalancerOptions.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 `LoadBalancerOptions` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + entry.getKey(), + jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); diff --git a/services/loadbalancer/src/main/java/cloud/stackit/sdk/loadbalancer/model/LoadbalancerOptionAccessControl.java b/services/loadbalancer/src/main/java/cloud/stackit/sdk/loadbalancer/model/LoadbalancerOptionAccessControl.java index ee781f9..7319137 100644 --- a/services/loadbalancer/src/main/java/cloud/stackit/sdk/loadbalancer/model/LoadbalancerOptionAccessControl.java +++ b/services/loadbalancer/src/main/java/cloud/stackit/sdk/loadbalancer/model/LoadbalancerOptionAccessControl.java @@ -34,7 +34,7 @@ /** Use this option to limit the IP ranges that can use the load balancer. */ @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.15.0") + comments = "Generator version: 7.19.0") public class LoadbalancerOptionAccessControl { public static final String SERIALIZED_NAME_ALLOWED_SOURCE_RANGES = "allowedSourceRanges"; @@ -137,6 +137,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 LoadbalancerOptionAccessControl is not found in the empty JSON string", LoadbalancerOptionAccessControl.openapiRequiredFields.toString())); } @@ -148,8 +149,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (!LoadbalancerOptionAccessControl.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 `LoadbalancerOptionAccessControl` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + entry.getKey(), + jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -159,6 +162,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti && !jsonObj.get("allowedSourceRanges").isJsonArray()) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "Expected the field `allowedSourceRanges` to be an array in the JSON string but got `%s`", jsonObj.get("allowedSourceRanges").toString())); } diff --git a/services/loadbalancer/src/main/java/cloud/stackit/sdk/loadbalancer/model/LoadbalancerOptionLogs.java b/services/loadbalancer/src/main/java/cloud/stackit/sdk/loadbalancer/model/LoadbalancerOptionLogs.java index e94271d..bd57751 100644 --- a/services/loadbalancer/src/main/java/cloud/stackit/sdk/loadbalancer/model/LoadbalancerOptionLogs.java +++ b/services/loadbalancer/src/main/java/cloud/stackit/sdk/loadbalancer/model/LoadbalancerOptionLogs.java @@ -32,7 +32,7 @@ /** LoadbalancerOptionLogs */ @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.15.0") + comments = "Generator version: 7.19.0") public class LoadbalancerOptionLogs { public static final String SERIALIZED_NAME_CREDENTIALS_REF = "credentialsRef"; @@ -147,6 +147,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 LoadbalancerOptionLogs is not found in the empty JSON string", LoadbalancerOptionLogs.openapiRequiredFields.toString())); } @@ -158,8 +159,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (!LoadbalancerOptionLogs.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 `LoadbalancerOptionLogs` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + entry.getKey(), + jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -167,6 +170,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti && !jsonObj.get("credentialsRef").isJsonPrimitive()) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "Expected the field `credentialsRef` to be a primitive type in the JSON string but got `%s`", jsonObj.get("credentialsRef").toString())); } @@ -174,6 +178,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti && !jsonObj.get("pushUrl").isJsonPrimitive()) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "Expected the field `pushUrl` to be a primitive type in the JSON string but got `%s`", jsonObj.get("pushUrl").toString())); } diff --git a/services/loadbalancer/src/main/java/cloud/stackit/sdk/loadbalancer/model/LoadbalancerOptionMetrics.java b/services/loadbalancer/src/main/java/cloud/stackit/sdk/loadbalancer/model/LoadbalancerOptionMetrics.java index 38a158c..04163bd 100644 --- a/services/loadbalancer/src/main/java/cloud/stackit/sdk/loadbalancer/model/LoadbalancerOptionMetrics.java +++ b/services/loadbalancer/src/main/java/cloud/stackit/sdk/loadbalancer/model/LoadbalancerOptionMetrics.java @@ -32,7 +32,7 @@ /** LoadbalancerOptionMetrics */ @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.15.0") + comments = "Generator version: 7.19.0") public class LoadbalancerOptionMetrics { public static final String SERIALIZED_NAME_CREDENTIALS_REF = "credentialsRef"; @@ -149,6 +149,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 LoadbalancerOptionMetrics is not found in the empty JSON string", LoadbalancerOptionMetrics.openapiRequiredFields.toString())); } @@ -160,8 +161,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (!LoadbalancerOptionMetrics.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 `LoadbalancerOptionMetrics` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + entry.getKey(), + jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -169,6 +172,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti && !jsonObj.get("credentialsRef").isJsonPrimitive()) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "Expected the field `credentialsRef` to be a primitive type in the JSON string but got `%s`", jsonObj.get("credentialsRef").toString())); } @@ -176,6 +180,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti && !jsonObj.get("pushUrl").isJsonPrimitive()) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "Expected the field `pushUrl` to be a primitive type in the JSON string but got `%s`", jsonObj.get("pushUrl").toString())); } diff --git a/services/loadbalancer/src/main/java/cloud/stackit/sdk/loadbalancer/model/LoadbalancerOptionObservability.java b/services/loadbalancer/src/main/java/cloud/stackit/sdk/loadbalancer/model/LoadbalancerOptionObservability.java index 4ea873e..2e771bd 100644 --- a/services/loadbalancer/src/main/java/cloud/stackit/sdk/loadbalancer/model/LoadbalancerOptionObservability.java +++ b/services/loadbalancer/src/main/java/cloud/stackit/sdk/loadbalancer/model/LoadbalancerOptionObservability.java @@ -32,7 +32,7 @@ /** We offer Load Balancer observability via STACKIT Observability or external solutions. */ @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.15.0") + comments = "Generator version: 7.19.0") public class LoadbalancerOptionObservability { public static final String SERIALIZED_NAME_LOGS = "logs"; @@ -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 LoadbalancerOptionObservability is not found in the empty JSON string", LoadbalancerOptionObservability.openapiRequiredFields.toString())); } @@ -159,8 +160,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (!LoadbalancerOptionObservability.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 `LoadbalancerOptionObservability` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + entry.getKey(), + jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); diff --git a/services/loadbalancer/src/main/java/cloud/stackit/sdk/loadbalancer/model/Network.java b/services/loadbalancer/src/main/java/cloud/stackit/sdk/loadbalancer/model/Network.java index 43739d8..a994fa3 100644 --- a/services/loadbalancer/src/main/java/cloud/stackit/sdk/loadbalancer/model/Network.java +++ b/services/loadbalancer/src/main/java/cloud/stackit/sdk/loadbalancer/model/Network.java @@ -34,7 +34,7 @@ /** Network */ @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.15.0") + comments = "Generator version: 7.19.0") public class Network { public static final String SERIALIZED_NAME_NETWORK_ID = "networkId"; @@ -207,6 +207,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 Network is not found in the empty JSON string", Network.openapiRequiredFields.toString())); } @@ -218,8 +219,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (!Network.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 `Network` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + entry.getKey(), + jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -227,6 +230,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti && !jsonObj.get("networkId").isJsonPrimitive()) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "Expected the field `networkId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("networkId").toString())); } @@ -234,6 +238,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti && !jsonObj.get("role").isJsonPrimitive()) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "Expected the field `role` to be a primitive type in the JSON string but got `%s`", jsonObj.get("role").toString())); } diff --git a/services/loadbalancer/src/main/java/cloud/stackit/sdk/loadbalancer/model/OptionsTCP.java b/services/loadbalancer/src/main/java/cloud/stackit/sdk/loadbalancer/model/OptionsTCP.java index 1b55cff..f7f99e8 100644 --- a/services/loadbalancer/src/main/java/cloud/stackit/sdk/loadbalancer/model/OptionsTCP.java +++ b/services/loadbalancer/src/main/java/cloud/stackit/sdk/loadbalancer/model/OptionsTCP.java @@ -36,7 +36,7 @@ */ @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.15.0") + comments = "Generator version: 7.19.0") public class OptionsTCP { public static final String SERIALIZED_NAME_IDLE_TIMEOUT = "idleTimeout"; @@ -124,6 +124,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 OptionsTCP is not found in the empty JSON string", OptionsTCP.openapiRequiredFields.toString())); } @@ -135,8 +136,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (!OptionsTCP.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 `OptionsTCP` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + entry.getKey(), + jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -144,6 +147,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti && !jsonObj.get("idleTimeout").isJsonPrimitive()) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "Expected the field `idleTimeout` to be a primitive type in the JSON string but got `%s`", jsonObj.get("idleTimeout").toString())); } diff --git a/services/loadbalancer/src/main/java/cloud/stackit/sdk/loadbalancer/model/OptionsUDP.java b/services/loadbalancer/src/main/java/cloud/stackit/sdk/loadbalancer/model/OptionsUDP.java index c2a4d14..5515d38 100644 --- a/services/loadbalancer/src/main/java/cloud/stackit/sdk/loadbalancer/model/OptionsUDP.java +++ b/services/loadbalancer/src/main/java/cloud/stackit/sdk/loadbalancer/model/OptionsUDP.java @@ -32,7 +32,7 @@ /** ProtocolOptionsUDP options to be configured for the PROTOCOL_UDP protocol. */ @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.15.0") + comments = "Generator version: 7.19.0") public class OptionsUDP { public static final String SERIALIZED_NAME_IDLE_TIMEOUT = "idleTimeout"; @@ -120,6 +120,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti .isEmpty()) { // has required fields but JSON element is null throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "The required field(s) %s in OptionsUDP is not found in the empty JSON string", OptionsUDP.openapiRequiredFields.toString())); } @@ -131,8 +132,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (!OptionsUDP.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 `OptionsUDP` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + entry.getKey(), + jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -140,6 +143,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti && !jsonObj.get("idleTimeout").isJsonPrimitive()) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "Expected the field `idleTimeout` to be a primitive type in the JSON string but got `%s`", jsonObj.get("idleTimeout").toString())); } diff --git a/services/loadbalancer/src/main/java/cloud/stackit/sdk/loadbalancer/model/PlanDetails.java b/services/loadbalancer/src/main/java/cloud/stackit/sdk/loadbalancer/model/PlanDetails.java index 5440c59..afbc565 100644 --- a/services/loadbalancer/src/main/java/cloud/stackit/sdk/loadbalancer/model/PlanDetails.java +++ b/services/loadbalancer/src/main/java/cloud/stackit/sdk/loadbalancer/model/PlanDetails.java @@ -32,7 +32,7 @@ /** PlanDetails */ @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.15.0") + comments = "Generator version: 7.19.0") public class PlanDetails { public static final String SERIALIZED_NAME_DESCRIPTION = "description"; @@ -252,6 +252,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 PlanDetails is not found in the empty JSON string", PlanDetails.openapiRequiredFields.toString())); } @@ -263,8 +264,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (!PlanDetails.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 `PlanDetails` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + entry.getKey(), + jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -272,6 +275,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())); } @@ -279,6 +283,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti && !jsonObj.get("flavorName").isJsonPrimitive()) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "Expected the field `flavorName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("flavorName").toString())); } @@ -286,6 +291,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())); } @@ -293,6 +299,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti && !jsonObj.get("planId").isJsonPrimitive()) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "Expected the field `planId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("planId").toString())); } @@ -300,6 +307,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti && !jsonObj.get("region").isJsonPrimitive()) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "Expected the field `region` to be a primitive type in the JSON string but got `%s`", jsonObj.get("region").toString())); } diff --git a/services/loadbalancer/src/main/java/cloud/stackit/sdk/loadbalancer/model/SecurityGroup.java b/services/loadbalancer/src/main/java/cloud/stackit/sdk/loadbalancer/model/SecurityGroup.java index 5c00119..7c1ff5d 100644 --- a/services/loadbalancer/src/main/java/cloud/stackit/sdk/loadbalancer/model/SecurityGroup.java +++ b/services/loadbalancer/src/main/java/cloud/stackit/sdk/loadbalancer/model/SecurityGroup.java @@ -32,7 +32,7 @@ /** SecurityGroup */ @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.15.0") + comments = "Generator version: 7.19.0") public class SecurityGroup { public static final String SERIALIZED_NAME_ID = "id"; @@ -144,6 +144,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 SecurityGroup is not found in the empty JSON string", SecurityGroup.openapiRequiredFields.toString())); } @@ -155,8 +156,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (!SecurityGroup.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 `SecurityGroup` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + entry.getKey(), + jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -164,6 +167,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())); } @@ -171,6 +175,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())); } diff --git a/services/loadbalancer/src/main/java/cloud/stackit/sdk/loadbalancer/model/ServerNameIndicator.java b/services/loadbalancer/src/main/java/cloud/stackit/sdk/loadbalancer/model/ServerNameIndicator.java index b9ccfe1..f6ed97e 100644 --- a/services/loadbalancer/src/main/java/cloud/stackit/sdk/loadbalancer/model/ServerNameIndicator.java +++ b/services/loadbalancer/src/main/java/cloud/stackit/sdk/loadbalancer/model/ServerNameIndicator.java @@ -32,7 +32,7 @@ /** ServerNameIndicator */ @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.15.0") + comments = "Generator version: 7.19.0") public class ServerNameIndicator { public static final String SERIALIZED_NAME_NAME = "name"; @@ -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 ServerNameIndicator is not found in the empty JSON string", ServerNameIndicator.openapiRequiredFields.toString())); } @@ -130,8 +131,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (!ServerNameIndicator.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 `ServerNameIndicator` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + entry.getKey(), + jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -139,6 +142,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())); } diff --git a/services/loadbalancer/src/main/java/cloud/stackit/sdk/loadbalancer/model/SessionPersistence.java b/services/loadbalancer/src/main/java/cloud/stackit/sdk/loadbalancer/model/SessionPersistence.java index 98ffcab..10cb881 100644 --- a/services/loadbalancer/src/main/java/cloud/stackit/sdk/loadbalancer/model/SessionPersistence.java +++ b/services/loadbalancer/src/main/java/cloud/stackit/sdk/loadbalancer/model/SessionPersistence.java @@ -32,7 +32,7 @@ /** SessionPersistence */ @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.15.0") + comments = "Generator version: 7.19.0") public class SessionPersistence { public static final String SERIALIZED_NAME_USE_SOURCE_IP_ADDRESS = "useSourceIpAddress"; @@ -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 SessionPersistence is not found in the empty JSON string", SessionPersistence.openapiRequiredFields.toString())); } @@ -134,8 +135,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (!SessionPersistence.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 `SessionPersistence` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + entry.getKey(), + jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); diff --git a/services/loadbalancer/src/main/java/cloud/stackit/sdk/loadbalancer/model/Status.java b/services/loadbalancer/src/main/java/cloud/stackit/sdk/loadbalancer/model/Status.java index 98375a9..a519265 100644 --- a/services/loadbalancer/src/main/java/cloud/stackit/sdk/loadbalancer/model/Status.java +++ b/services/loadbalancer/src/main/java/cloud/stackit/sdk/loadbalancer/model/Status.java @@ -40,7 +40,7 @@ */ @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.15.0") + comments = "Generator version: 7.19.0") public class Status { public static final String SERIALIZED_NAME_CODE = "code"; @@ -188,6 +188,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 Status is not found in the empty JSON string", Status.openapiRequiredFields.toString())); } @@ -199,8 +200,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (!Status.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 `Status` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + entry.getKey(), + jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -210,6 +213,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti && !jsonObj.get("details").isJsonArray()) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "Expected the field `details` to be an array in the JSON string but got `%s`", jsonObj.get("details").toString())); } @@ -217,6 +221,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti && !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())); } diff --git a/services/loadbalancer/src/main/java/cloud/stackit/sdk/loadbalancer/model/Target.java b/services/loadbalancer/src/main/java/cloud/stackit/sdk/loadbalancer/model/Target.java index 73099eb..5fff094 100644 --- a/services/loadbalancer/src/main/java/cloud/stackit/sdk/loadbalancer/model/Target.java +++ b/services/loadbalancer/src/main/java/cloud/stackit/sdk/loadbalancer/model/Target.java @@ -32,7 +32,7 @@ /** Target */ @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.15.0") + comments = "Generator version: 7.19.0") public class Target { public static final String SERIALIZED_NAME_DISPLAY_NAME = "displayName"; @@ -144,6 +144,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 Target is not found in the empty JSON string", Target.openapiRequiredFields.toString())); } @@ -155,8 +156,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (!Target.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 `Target` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + entry.getKey(), + jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -164,6 +167,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti && !jsonObj.get("displayName").isJsonPrimitive()) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "Expected the field `displayName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("displayName").toString())); } @@ -171,6 +175,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti && !jsonObj.get("ip").isJsonPrimitive()) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "Expected the field `ip` to be a primitive type in the JSON string but got `%s`", jsonObj.get("ip").toString())); } diff --git a/services/loadbalancer/src/main/java/cloud/stackit/sdk/loadbalancer/model/TargetPool.java b/services/loadbalancer/src/main/java/cloud/stackit/sdk/loadbalancer/model/TargetPool.java index a56a553..6c18714 100644 --- a/services/loadbalancer/src/main/java/cloud/stackit/sdk/loadbalancer/model/TargetPool.java +++ b/services/loadbalancer/src/main/java/cloud/stackit/sdk/loadbalancer/model/TargetPool.java @@ -35,7 +35,7 @@ /** TargetPool */ @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.15.0") + comments = "Generator version: 7.19.0") public class TargetPool { public static final String SERIALIZED_NAME_ACTIVE_HEALTH_CHECK = "activeHealthCheck"; @@ -246,6 +246,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 TargetPool is not found in the empty JSON string", TargetPool.openapiRequiredFields.toString())); } @@ -257,8 +258,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (!TargetPool.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 `TargetPool` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + entry.getKey(), + jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -271,6 +274,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())); } @@ -286,6 +290,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (!jsonObj.get("targets").isJsonArray()) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "Expected the field `targets` to be an array in the JSON string but got `%s`", jsonObj.get("targets").toString())); } diff --git a/services/loadbalancer/src/main/java/cloud/stackit/sdk/loadbalancer/model/UpdateCredentialsPayload.java b/services/loadbalancer/src/main/java/cloud/stackit/sdk/loadbalancer/model/UpdateCredentialsPayload.java index 6bc8575..3fa145e 100644 --- a/services/loadbalancer/src/main/java/cloud/stackit/sdk/loadbalancer/model/UpdateCredentialsPayload.java +++ b/services/loadbalancer/src/main/java/cloud/stackit/sdk/loadbalancer/model/UpdateCredentialsPayload.java @@ -32,7 +32,7 @@ /** UpdateCredentialsPayload */ @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.15.0") + comments = "Generator version: 7.19.0") public class UpdateCredentialsPayload { public static final String SERIALIZED_NAME_DISPLAY_NAME = "displayName"; @@ -171,6 +171,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 UpdateCredentialsPayload is not found in the empty JSON string", UpdateCredentialsPayload.openapiRequiredFields.toString())); } @@ -182,8 +183,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (!UpdateCredentialsPayload.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 `UpdateCredentialsPayload` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + entry.getKey(), + jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -191,6 +194,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti && !jsonObj.get("displayName").isJsonPrimitive()) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "Expected the field `displayName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("displayName").toString())); } @@ -198,6 +202,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti && !jsonObj.get("password").isJsonPrimitive()) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "Expected the field `password` to be a primitive type in the JSON string but got `%s`", jsonObj.get("password").toString())); } @@ -205,6 +210,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti && !jsonObj.get("username").isJsonPrimitive()) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "Expected the field `username` to be a primitive type in the JSON string but got `%s`", jsonObj.get("username").toString())); } diff --git a/services/loadbalancer/src/main/java/cloud/stackit/sdk/loadbalancer/model/UpdateCredentialsResponse.java b/services/loadbalancer/src/main/java/cloud/stackit/sdk/loadbalancer/model/UpdateCredentialsResponse.java index 5a89d3a..2336508 100644 --- a/services/loadbalancer/src/main/java/cloud/stackit/sdk/loadbalancer/model/UpdateCredentialsResponse.java +++ b/services/loadbalancer/src/main/java/cloud/stackit/sdk/loadbalancer/model/UpdateCredentialsResponse.java @@ -32,7 +32,7 @@ /** UpdateCredentialsResponse */ @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.15.0") + comments = "Generator version: 7.19.0") public class UpdateCredentialsResponse { public static final String SERIALIZED_NAME_CREDENTIAL = "credential"; @@ -120,6 +120,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti .isEmpty()) { // has required fields but JSON element is null throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "The required field(s) %s in UpdateCredentialsResponse is not found in the empty JSON string", UpdateCredentialsResponse.openapiRequiredFields.toString())); } @@ -131,8 +132,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (!UpdateCredentialsResponse.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 `UpdateCredentialsResponse` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + entry.getKey(), + jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); diff --git a/services/loadbalancer/src/main/java/cloud/stackit/sdk/loadbalancer/model/UpdateLoadBalancerPayload.java b/services/loadbalancer/src/main/java/cloud/stackit/sdk/loadbalancer/model/UpdateLoadBalancerPayload.java index e1de86f..51cc4c3 100644 --- a/services/loadbalancer/src/main/java/cloud/stackit/sdk/loadbalancer/model/UpdateLoadBalancerPayload.java +++ b/services/loadbalancer/src/main/java/cloud/stackit/sdk/loadbalancer/model/UpdateLoadBalancerPayload.java @@ -37,7 +37,7 @@ /** UpdateLoadBalancerPayload */ @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.15.0") + comments = "Generator version: 7.19.0") public class UpdateLoadBalancerPayload { public static final String SERIALIZED_NAME_DISABLE_TARGET_SECURITY_GROUP_ASSIGNMENT = "disableTargetSecurityGroupAssignment"; @@ -638,6 +638,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 UpdateLoadBalancerPayload is not found in the empty JSON string", UpdateLoadBalancerPayload.openapiRequiredFields.toString())); } @@ -649,8 +650,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (!UpdateLoadBalancerPayload.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 `UpdateLoadBalancerPayload` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + entry.getKey(), + jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -661,6 +664,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (!jsonObj.get("errors").isJsonArray()) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "Expected the field `errors` to be an array in the JSON string but got `%s`", jsonObj.get("errors").toString())); } @@ -676,6 +680,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti && !jsonObj.get("externalAddress").isJsonPrimitive()) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "Expected the field `externalAddress` to be a primitive type in the JSON string but got `%s`", jsonObj.get("externalAddress").toString())); } @@ -686,6 +691,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (!jsonObj.get("listeners").isJsonArray()) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "Expected the field `listeners` to be an array in the JSON string but got `%s`", jsonObj.get("listeners").toString())); } @@ -706,6 +712,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())); } @@ -716,6 +723,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (!jsonObj.get("networks").isJsonArray()) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "Expected the field `networks` to be an array in the JSON string but got `%s`", jsonObj.get("networks").toString())); } @@ -735,6 +743,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti && !jsonObj.get("planId").isJsonPrimitive()) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "Expected the field `planId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("planId").toString())); } @@ -742,6 +751,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti && !jsonObj.get("privateAddress").isJsonPrimitive()) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "Expected the field `privateAddress` to be a primitive type in the JSON string but got `%s`", jsonObj.get("privateAddress").toString())); } @@ -749,6 +759,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti && !jsonObj.get("region").isJsonPrimitive()) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "Expected the field `region` to be a primitive type in the JSON string but got `%s`", jsonObj.get("region").toString())); } @@ -756,6 +767,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())); } @@ -770,6 +782,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (!jsonObj.get("targetPools").isJsonArray()) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "Expected the field `targetPools` to be an array in the JSON string but got `%s`", jsonObj.get("targetPools").toString())); } @@ -790,6 +803,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti && !jsonObj.get("version").isJsonPrimitive()) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "Expected the field `version` to be a primitive type in the JSON string but got `%s`", jsonObj.get("version").toString())); } diff --git a/services/loadbalancer/src/main/java/cloud/stackit/sdk/loadbalancer/model/UpdateTargetPoolPayload.java b/services/loadbalancer/src/main/java/cloud/stackit/sdk/loadbalancer/model/UpdateTargetPoolPayload.java index a364bdf..dff87f7 100644 --- a/services/loadbalancer/src/main/java/cloud/stackit/sdk/loadbalancer/model/UpdateTargetPoolPayload.java +++ b/services/loadbalancer/src/main/java/cloud/stackit/sdk/loadbalancer/model/UpdateTargetPoolPayload.java @@ -35,7 +35,7 @@ /** UpdateTargetPoolPayload */ @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", - comments = "Generator version: 7.15.0") + comments = "Generator version: 7.19.0") public class UpdateTargetPoolPayload { public static final String SERIALIZED_NAME_ACTIVE_HEALTH_CHECK = "activeHealthCheck"; @@ -247,6 +247,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 UpdateTargetPoolPayload is not found in the empty JSON string", UpdateTargetPoolPayload.openapiRequiredFields.toString())); } @@ -258,8 +259,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (!UpdateTargetPoolPayload.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 `UpdateTargetPoolPayload` properties. JSON: %s", - entry.getKey(), jsonElement.toString())); + entry.getKey(), + jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -272,6 +275,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())); } @@ -287,6 +291,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (!jsonObj.get("targets").isJsonArray()) { throw new IllegalArgumentException( String.format( + java.util.Locale.ROOT, "Expected the field `targets` to be an array in the JSON string but got `%s`", jsonObj.get("targets").toString())); }