diff --git a/services/iaas/src/main/java/cloud/stackit/sdk/iaas/JSON.java b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/JSON.java index 210e683..5d780a5 100644 --- a/services/iaas/src/main/java/cloud/stackit/sdk/iaas/JSON.java +++ b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/JSON.java @@ -299,6 +299,8 @@ private static Class getClassByDiscriminator( .CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory( new cloud.stackit.sdk.iaas.model.Server.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory( + new cloud.stackit.sdk.iaas.model.ServerAgent.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory( new cloud.stackit.sdk.iaas.model.ServerConsoleUrl.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory( diff --git a/services/iaas/src/main/java/cloud/stackit/sdk/iaas/model/Backup.java b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/model/Backup.java index 7e43613..20a1f0f 100644 --- a/services/iaas/src/main/java/cloud/stackit/sdk/iaas/model/Backup.java +++ b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/model/Backup.java @@ -142,9 +142,9 @@ public Backup labels(@javax.annotation.Nullable Object labels) { /** * Object that represents the labels of an object. Regex for keys: - * `^[a-z]((-|_|[a-z0-9])){0,62}$`. Regex for values: - * `^(-|_|[a-z0-9]){0,63}$`. Providing a `null` value for a key will remove - * that key. + * `^(?=.{1,63}$)([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]$`. Regex for values: + * `^(?=.{0,63}$)(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])*$`. Providing a + * `null` value for a key will remove that key. * * @return labels */ diff --git a/services/iaas/src/main/java/cloud/stackit/sdk/iaas/model/BaseSecurityGroupRule.java b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/model/BaseSecurityGroupRule.java index af9fd7b..b140f15 100644 --- a/services/iaas/src/main/java/cloud/stackit/sdk/iaas/model/BaseSecurityGroupRule.java +++ b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/model/BaseSecurityGroupRule.java @@ -23,6 +23,7 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import java.io.IOException; +import java.time.OffsetDateTime; import java.util.Arrays; import java.util.HashSet; import java.util.Map; @@ -35,6 +36,11 @@ value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.15.0") public class BaseSecurityGroupRule { + public static final String SERIALIZED_NAME_CREATED_AT = "createdAt"; + + @SerializedName(SERIALIZED_NAME_CREATED_AT) + @javax.annotation.Nullable private OffsetDateTime createdAt; + public static final String SERIALIZED_NAME_DESCRIPTION = "description"; @SerializedName(SERIALIZED_NAME_DESCRIPTION) @@ -81,12 +87,29 @@ public class BaseSecurityGroupRule { @SerializedName(SERIALIZED_NAME_SECURITY_GROUP_ID) @javax.annotation.Nullable private UUID securityGroupId; + public static final String SERIALIZED_NAME_UPDATED_AT = "updatedAt"; + + @SerializedName(SERIALIZED_NAME_UPDATED_AT) + @javax.annotation.Nullable private OffsetDateTime updatedAt; + public BaseSecurityGroupRule() {} - public BaseSecurityGroupRule(UUID id, UUID securityGroupId) { + public BaseSecurityGroupRule( + OffsetDateTime createdAt, UUID id, UUID securityGroupId, OffsetDateTime updatedAt) { this(); + this.createdAt = createdAt; this.id = id; this.securityGroupId = securityGroupId; + this.updatedAt = updatedAt; + } + + /** + * Date-time when resource was created. + * + * @return createdAt + */ + @javax.annotation.Nullable public OffsetDateTime getCreatedAt() { + return createdAt; } public BaseSecurityGroupRule description(@javax.annotation.Nullable String description) { @@ -238,6 +261,15 @@ public void setRemoteSecurityGroupId(@javax.annotation.Nullable UUID remoteSecur return securityGroupId; } + /** + * Date-time when resource was last updated. + * + * @return updatedAt + */ + @javax.annotation.Nullable public OffsetDateTime getUpdatedAt() { + return updatedAt; + } + @Override public boolean equals(Object o) { if (this == o) { @@ -247,7 +279,8 @@ public boolean equals(Object o) { return false; } BaseSecurityGroupRule baseSecurityGroupRule = (BaseSecurityGroupRule) o; - return Objects.equals(this.description, baseSecurityGroupRule.description) + return Objects.equals(this.createdAt, baseSecurityGroupRule.createdAt) + && Objects.equals(this.description, baseSecurityGroupRule.description) && Objects.equals(this.direction, baseSecurityGroupRule.direction) && Objects.equals(this.ethertype, baseSecurityGroupRule.ethertype) && Objects.equals(this.icmpParameters, baseSecurityGroupRule.icmpParameters) @@ -256,12 +289,14 @@ public boolean equals(Object o) { && Objects.equals(this.portRange, baseSecurityGroupRule.portRange) && Objects.equals( this.remoteSecurityGroupId, baseSecurityGroupRule.remoteSecurityGroupId) - && Objects.equals(this.securityGroupId, baseSecurityGroupRule.securityGroupId); + && Objects.equals(this.securityGroupId, baseSecurityGroupRule.securityGroupId) + && Objects.equals(this.updatedAt, baseSecurityGroupRule.updatedAt); } @Override public int hashCode() { return Objects.hash( + createdAt, description, direction, ethertype, @@ -270,13 +305,15 @@ public int hashCode() { ipRange, portRange, remoteSecurityGroupId, - securityGroupId); + securityGroupId, + updatedAt); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class BaseSecurityGroupRule {\n"); + sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" direction: ").append(toIndentedString(direction)).append("\n"); sb.append(" ethertype: ").append(toIndentedString(ethertype)).append("\n"); @@ -288,6 +325,7 @@ public String toString() { .append(toIndentedString(remoteSecurityGroupId)) .append("\n"); sb.append(" securityGroupId: ").append(toIndentedString(securityGroupId)).append("\n"); + sb.append(" updatedAt: ").append(toIndentedString(updatedAt)).append("\n"); sb.append("}"); return sb.toString(); } @@ -311,6 +349,7 @@ private String toIndentedString(Object o) { openapiFields = new HashSet( Arrays.asList( + "createdAt", "description", "direction", "ethertype", @@ -319,7 +358,8 @@ private String toIndentedString(Object o) { "ipRange", "portRange", "remoteSecurityGroupId", - "securityGroupId")); + "securityGroupId", + "updatedAt")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(Arrays.asList("direction")); diff --git a/services/iaas/src/main/java/cloud/stackit/sdk/iaas/model/CreateBackupPayload.java b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/model/CreateBackupPayload.java index 14de2d1..519b557 100644 --- a/services/iaas/src/main/java/cloud/stackit/sdk/iaas/model/CreateBackupPayload.java +++ b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/model/CreateBackupPayload.java @@ -59,9 +59,9 @@ public CreateBackupPayload labels(@javax.annotation.Nullable Object labels) { /** * Object that represents the labels of an object. Regex for keys: - * `^[a-z]((-|_|[a-z0-9])){0,62}$`. Regex for values: - * `^(-|_|[a-z0-9]){0,63}$`. Providing a `null` value for a key will remove - * that key. + * `^(?=.{1,63}$)([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]$`. Regex for values: + * `^(?=.{0,63}$)(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])*$`. Providing a + * `null` value for a key will remove that key. * * @return labels */ diff --git a/services/iaas/src/main/java/cloud/stackit/sdk/iaas/model/CreateImagePayload.java b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/model/CreateImagePayload.java index be293f5..b065977 100644 --- a/services/iaas/src/main/java/cloud/stackit/sdk/iaas/model/CreateImagePayload.java +++ b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/model/CreateImagePayload.java @@ -232,9 +232,9 @@ public CreateImagePayload labels(@javax.annotation.Nullable Object labels) { /** * Object that represents the labels of an object. Regex for keys: - * `^[a-z]((-|_|[a-z0-9])){0,62}$`. Regex for values: - * `^(-|_|[a-z0-9]){0,63}$`. Providing a `null` value for a key will remove - * that key. + * `^(?=.{1,63}$)([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]$`. Regex for values: + * `^(?=.{0,63}$)(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])*$`. Providing a + * `null` value for a key will remove that key. * * @return labels */ diff --git a/services/iaas/src/main/java/cloud/stackit/sdk/iaas/model/CreateKeyPairPayload.java b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/model/CreateKeyPairPayload.java index d31476a..d708081 100644 --- a/services/iaas/src/main/java/cloud/stackit/sdk/iaas/model/CreateKeyPairPayload.java +++ b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/model/CreateKeyPairPayload.java @@ -101,9 +101,9 @@ public CreateKeyPairPayload labels(@javax.annotation.Nullable Object labels) { /** * Object that represents the labels of an object. Regex for keys: - * `^[a-z]((-|_|[a-z0-9])){0,62}$`. Regex for values: - * `^(-|_|[a-z0-9]){0,63}$`. Providing a `null` value for a key will remove - * that key. + * `^(?=.{1,63}$)([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]$`. Regex for values: + * `^(?=.{0,63}$)(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])*$`. Providing a + * `null` value for a key will remove that key. * * @return labels */ diff --git a/services/iaas/src/main/java/cloud/stackit/sdk/iaas/model/CreateNetworkAreaPayload.java b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/model/CreateNetworkAreaPayload.java index cf2f31a..532224c 100644 --- a/services/iaas/src/main/java/cloud/stackit/sdk/iaas/model/CreateNetworkAreaPayload.java +++ b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/model/CreateNetworkAreaPayload.java @@ -80,9 +80,9 @@ public CreateNetworkAreaPayload labels(@javax.annotation.Nullable Object labels) /** * Object that represents the labels of an object. Regex for keys: - * `^[a-z]((-|_|[a-z0-9])){0,62}$`. Regex for values: - * `^(-|_|[a-z0-9]){0,63}$`. Providing a `null` value for a key will remove - * that key. + * `^(?=.{1,63}$)([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]$`. Regex for values: + * `^(?=.{0,63}$)(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])*$`. Providing a + * `null` value for a key will remove that key. * * @return labels */ diff --git a/services/iaas/src/main/java/cloud/stackit/sdk/iaas/model/CreateNetworkPayload.java b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/model/CreateNetworkPayload.java index 59123ff..101ffb2 100644 --- a/services/iaas/src/main/java/cloud/stackit/sdk/iaas/model/CreateNetworkPayload.java +++ b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/model/CreateNetworkPayload.java @@ -107,9 +107,9 @@ public CreateNetworkPayload labels(@javax.annotation.Nullable Object labels) { /** * Object that represents the labels of an object. Regex for keys: - * `^[a-z]((-|_|[a-z0-9])){0,62}$`. Regex for values: - * `^(-|_|[a-z0-9]){0,63}$`. Providing a `null` value for a key will remove - * that key. + * `^(?=.{1,63}$)([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]$`. Regex for values: + * `^(?=.{0,63}$)(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])*$`. Providing a + * `null` value for a key will remove that key. * * @return labels */ diff --git a/services/iaas/src/main/java/cloud/stackit/sdk/iaas/model/CreateNicPayload.java b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/model/CreateNicPayload.java index 4b41a84..f6ad734 100644 --- a/services/iaas/src/main/java/cloud/stackit/sdk/iaas/model/CreateNicPayload.java +++ b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/model/CreateNicPayload.java @@ -43,6 +43,11 @@ public class CreateNicPayload { @SerializedName(SERIALIZED_NAME_ALLOWED_ADDRESSES) @javax.annotation.Nullable private List allowedAddresses = new ArrayList<>(); + public static final String SERIALIZED_NAME_DESCRIPTION = "description"; + + @SerializedName(SERIALIZED_NAME_DESCRIPTION) + @javax.annotation.Nullable private String description; + public static final String SERIALIZED_NAME_DEVICE = "device"; @SerializedName(SERIALIZED_NAME_DEVICE) @@ -144,6 +149,24 @@ public void setAllowedAddresses( this.allowedAddresses = allowedAddresses; } + public CreateNicPayload description(@javax.annotation.Nullable String description) { + this.description = description; + return this; + } + + /** + * Description Object. Allows string up to 255 Characters. + * + * @return description + */ + @javax.annotation.Nullable public String getDescription() { + return description; + } + + public void setDescription(@javax.annotation.Nullable String description) { + this.description = description; + } + /** * Universally Unique Identifier (UUID). * @@ -205,9 +228,9 @@ public CreateNicPayload labels(@javax.annotation.Nullable Object labels) { /** * Object that represents the labels of an object. Regex for keys: - * `^[a-z]((-|_|[a-z0-9])){0,62}$`. Regex for values: - * `^(-|_|[a-z0-9]){0,63}$`. Providing a `null` value for a key will remove - * that key. + * `^(?=.{1,63}$)([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]$`. Regex for values: + * `^(?=.{0,63}$)(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])*$`. Providing a + * `null` value for a key will remove that key. * * @return labels */ @@ -328,6 +351,7 @@ public boolean equals(Object o) { } CreateNicPayload createNicPayload = (CreateNicPayload) o; return Objects.equals(this.allowedAddresses, createNicPayload.allowedAddresses) + && Objects.equals(this.description, createNicPayload.description) && Objects.equals(this.device, createNicPayload.device) && Objects.equals(this.id, createNicPayload.id) && Objects.equals(this.ipv4, createNicPayload.ipv4) @@ -346,6 +370,7 @@ public boolean equals(Object o) { public int hashCode() { return Objects.hash( allowedAddresses, + description, device, id, ipv4, @@ -365,6 +390,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CreateNicPayload {\n"); sb.append(" allowedAddresses: ").append(toIndentedString(allowedAddresses)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" device: ").append(toIndentedString(device)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" ipv4: ").append(toIndentedString(ipv4)).append("\n"); @@ -401,6 +427,7 @@ private String toIndentedString(Object o) { new HashSet( Arrays.asList( "allowedAddresses", + "description", "device", "id", "ipv4", @@ -465,6 +492,13 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti ; } } + if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull()) + && !jsonObj.get("description").isJsonPrimitive()) { + throw new IllegalArgumentException( + String.format( + "Expected the field `description` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("description").toString())); + } if ((jsonObj.get("device") != null && !jsonObj.get("device").isJsonNull()) && !jsonObj.get("device").isJsonPrimitive()) { throw new IllegalArgumentException( diff --git a/services/iaas/src/main/java/cloud/stackit/sdk/iaas/model/CreatePublicIPPayload.java b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/model/CreatePublicIPPayload.java index e61574b..f22974b 100644 --- a/services/iaas/src/main/java/cloud/stackit/sdk/iaas/model/CreatePublicIPPayload.java +++ b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/model/CreatePublicIPPayload.java @@ -89,9 +89,9 @@ public CreatePublicIPPayload labels(@javax.annotation.Nullable Object labels) { /** * Object that represents the labels of an object. Regex for keys: - * `^[a-z]((-|_|[a-z0-9])){0,62}$`. Regex for values: - * `^(-|_|[a-z0-9]){0,63}$`. Providing a `null` value for a key will remove - * that key. + * `^(?=.{1,63}$)([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]$`. Regex for values: + * `^(?=.{0,63}$)(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])*$`. Providing a + * `null` value for a key will remove that key. * * @return labels */ diff --git a/services/iaas/src/main/java/cloud/stackit/sdk/iaas/model/CreateSecurityGroupPayload.java b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/model/CreateSecurityGroupPayload.java index be9904e..e90e150 100644 --- a/services/iaas/src/main/java/cloud/stackit/sdk/iaas/model/CreateSecurityGroupPayload.java +++ b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/model/CreateSecurityGroupPayload.java @@ -136,9 +136,9 @@ public CreateSecurityGroupPayload labels(@javax.annotation.Nullable Object label /** * Object that represents the labels of an object. Regex for keys: - * `^[a-z]((-|_|[a-z0-9])){0,62}$`. Regex for values: - * `^(-|_|[a-z0-9]){0,63}$`. Providing a `null` value for a key will remove - * that key. + * `^(?=.{1,63}$)([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]$`. Regex for values: + * `^(?=.{0,63}$)(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])*$`. Providing a + * `null` value for a key will remove that key. * * @return labels */ diff --git a/services/iaas/src/main/java/cloud/stackit/sdk/iaas/model/CreateSecurityGroupRulePayload.java b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/model/CreateSecurityGroupRulePayload.java index 13bfe00..2d36b20 100644 --- a/services/iaas/src/main/java/cloud/stackit/sdk/iaas/model/CreateSecurityGroupRulePayload.java +++ b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/model/CreateSecurityGroupRulePayload.java @@ -23,6 +23,7 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import java.io.IOException; +import java.time.OffsetDateTime; import java.util.Arrays; import java.util.HashSet; import java.util.Map; @@ -35,6 +36,11 @@ value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.15.0") public class CreateSecurityGroupRulePayload { + public static final String SERIALIZED_NAME_CREATED_AT = "createdAt"; + + @SerializedName(SERIALIZED_NAME_CREATED_AT) + @javax.annotation.Nullable private OffsetDateTime createdAt; + public static final String SERIALIZED_NAME_DESCRIPTION = "description"; @SerializedName(SERIALIZED_NAME_DESCRIPTION) @@ -81,6 +87,11 @@ public class CreateSecurityGroupRulePayload { @SerializedName(SERIALIZED_NAME_SECURITY_GROUP_ID) @javax.annotation.Nullable private UUID securityGroupId; + public static final String SERIALIZED_NAME_UPDATED_AT = "updatedAt"; + + @SerializedName(SERIALIZED_NAME_UPDATED_AT) + @javax.annotation.Nullable private OffsetDateTime updatedAt; + public static final String SERIALIZED_NAME_PROTOCOL = "protocol"; @SerializedName(SERIALIZED_NAME_PROTOCOL) @@ -88,10 +99,22 @@ public class CreateSecurityGroupRulePayload { public CreateSecurityGroupRulePayload() {} - public CreateSecurityGroupRulePayload(UUID id, UUID securityGroupId) { + public CreateSecurityGroupRulePayload( + OffsetDateTime createdAt, UUID id, UUID securityGroupId, OffsetDateTime updatedAt) { this(); + this.createdAt = createdAt; this.id = id; this.securityGroupId = securityGroupId; + this.updatedAt = updatedAt; + } + + /** + * Date-time when resource was created. + * + * @return createdAt + */ + @javax.annotation.Nullable public OffsetDateTime getCreatedAt() { + return createdAt; } public CreateSecurityGroupRulePayload description( @@ -245,6 +268,15 @@ public void setRemoteSecurityGroupId(@javax.annotation.Nullable UUID remoteSecur return securityGroupId; } + /** + * Date-time when resource was last updated. + * + * @return updatedAt + */ + @javax.annotation.Nullable public OffsetDateTime getUpdatedAt() { + return updatedAt; + } + public CreateSecurityGroupRulePayload protocol( @javax.annotation.Nullable CreateProtocol protocol) { this.protocol = protocol; @@ -274,7 +306,8 @@ public boolean equals(Object o) { } CreateSecurityGroupRulePayload createSecurityGroupRulePayload = (CreateSecurityGroupRulePayload) o; - return Objects.equals(this.description, createSecurityGroupRulePayload.description) + return Objects.equals(this.createdAt, createSecurityGroupRulePayload.createdAt) + && Objects.equals(this.description, createSecurityGroupRulePayload.description) && Objects.equals(this.direction, createSecurityGroupRulePayload.direction) && Objects.equals(this.ethertype, createSecurityGroupRulePayload.ethertype) && Objects.equals( @@ -287,12 +320,14 @@ public boolean equals(Object o) { createSecurityGroupRulePayload.remoteSecurityGroupId) && Objects.equals( this.securityGroupId, createSecurityGroupRulePayload.securityGroupId) + && Objects.equals(this.updatedAt, createSecurityGroupRulePayload.updatedAt) && Objects.equals(this.protocol, createSecurityGroupRulePayload.protocol); } @Override public int hashCode() { return Objects.hash( + createdAt, description, direction, ethertype, @@ -302,6 +337,7 @@ public int hashCode() { portRange, remoteSecurityGroupId, securityGroupId, + updatedAt, protocol); } @@ -309,6 +345,7 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CreateSecurityGroupRulePayload {\n"); + sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" direction: ").append(toIndentedString(direction)).append("\n"); sb.append(" ethertype: ").append(toIndentedString(ethertype)).append("\n"); @@ -320,6 +357,7 @@ public String toString() { .append(toIndentedString(remoteSecurityGroupId)) .append("\n"); sb.append(" securityGroupId: ").append(toIndentedString(securityGroupId)).append("\n"); + sb.append(" updatedAt: ").append(toIndentedString(updatedAt)).append("\n"); sb.append(" protocol: ").append(toIndentedString(protocol)).append("\n"); sb.append("}"); return sb.toString(); @@ -344,6 +382,7 @@ private String toIndentedString(Object o) { openapiFields = new HashSet( Arrays.asList( + "createdAt", "description", "direction", "ethertype", @@ -353,6 +392,7 @@ private String toIndentedString(Object o) { "portRange", "remoteSecurityGroupId", "securityGroupId", + "updatedAt", "protocol")); // a set of required properties/fields (JSON key names) diff --git a/services/iaas/src/main/java/cloud/stackit/sdk/iaas/model/CreateServerPayload.java b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/model/CreateServerPayload.java index 3a4740f..f2b2518 100644 --- a/services/iaas/src/main/java/cloud/stackit/sdk/iaas/model/CreateServerPayload.java +++ b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/model/CreateServerPayload.java @@ -44,6 +44,11 @@ public class CreateServerPayload { @SerializedName(SERIALIZED_NAME_AFFINITY_GROUP) @javax.annotation.Nullable private UUID affinityGroup; + public static final String SERIALIZED_NAME_AGENT = "agent"; + + @SerializedName(SERIALIZED_NAME_AGENT) + @javax.annotation.Nullable private ServerAgent agent; + public static final String SERIALIZED_NAME_AVAILABILITY_ZONE = "availabilityZone"; @SerializedName(SERIALIZED_NAME_AVAILABILITY_ZONE) @@ -198,6 +203,24 @@ public void setAffinityGroup(@javax.annotation.Nullable UUID affinityGroup) { this.affinityGroup = affinityGroup; } + public CreateServerPayload agent(@javax.annotation.Nullable ServerAgent agent) { + this.agent = agent; + return this; + } + + /** + * Get agent + * + * @return agent + */ + @javax.annotation.Nullable public ServerAgent getAgent() { + return agent; + } + + public void setAgent(@javax.annotation.Nullable ServerAgent agent) { + this.agent = agent; + } + public CreateServerPayload availabilityZone( @javax.annotation.Nullable String availabilityZone) { this.availabilityZone = availabilityZone; @@ -308,9 +331,9 @@ public CreateServerPayload labels(@javax.annotation.Nullable Object labels) { /** * Object that represents the labels of an object. Regex for keys: - * `^[a-z]((-|_|[a-z0-9])){0,62}$`. Regex for values: - * `^(-|_|[a-z0-9]){0,63}$`. Providing a `null` value for a key will remove - * that key. + * `^(?=.{1,63}$)([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]$`. Regex for values: + * `^(?=.{0,63}$)(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])*$`. Providing a + * `null` value for a key will remove that key. * * @return labels */ @@ -571,6 +594,7 @@ public boolean equals(Object o) { } CreateServerPayload createServerPayload = (CreateServerPayload) o; return Objects.equals(this.affinityGroup, createServerPayload.affinityGroup) + && Objects.equals(this.agent, createServerPayload.agent) && Objects.equals(this.availabilityZone, createServerPayload.availabilityZone) && Objects.equals(this.bootVolume, createServerPayload.bootVolume) && Objects.equals(this.createdAt, createServerPayload.createdAt) @@ -599,6 +623,7 @@ public boolean equals(Object o) { public int hashCode() { return Objects.hash( affinityGroup, + agent, availabilityZone, bootVolume, createdAt, @@ -628,6 +653,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CreateServerPayload {\n"); sb.append(" affinityGroup: ").append(toIndentedString(affinityGroup)).append("\n"); + sb.append(" agent: ").append(toIndentedString(agent)).append("\n"); sb.append(" availabilityZone: ").append(toIndentedString(availabilityZone)).append("\n"); sb.append(" bootVolume: ").append(toIndentedString(bootVolume)).append("\n"); sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); @@ -678,6 +704,7 @@ private String toIndentedString(Object o) { new HashSet( Arrays.asList( "affinityGroup", + "agent", "availabilityZone", "bootVolume", "createdAt", @@ -750,6 +777,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti "Expected the field `affinityGroup` to be a primitive type in the JSON string but got `%s`", jsonObj.get("affinityGroup").toString())); } + // validate the optional field `agent` + if (jsonObj.get("agent") != null && !jsonObj.get("agent").isJsonNull()) { + ServerAgent.validateJsonElement(jsonObj.get("agent")); + } if ((jsonObj.get("availabilityZone") != null && !jsonObj.get("availabilityZone").isJsonNull()) && !jsonObj.get("availabilityZone").isJsonPrimitive()) { diff --git a/services/iaas/src/main/java/cloud/stackit/sdk/iaas/model/CreateSnapshotPayload.java b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/model/CreateSnapshotPayload.java index 4cef0a0..1245468 100644 --- a/services/iaas/src/main/java/cloud/stackit/sdk/iaas/model/CreateSnapshotPayload.java +++ b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/model/CreateSnapshotPayload.java @@ -114,9 +114,9 @@ public CreateSnapshotPayload labels(@javax.annotation.Nullable Object labels) { /** * Object that represents the labels of an object. Regex for keys: - * `^[a-z]((-|_|[a-z0-9])){0,62}$`. Regex for values: - * `^(-|_|[a-z0-9]){0,63}$`. Providing a `null` value for a key will remove - * that key. + * `^(?=.{1,63}$)([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]$`. Regex for values: + * `^(?=.{0,63}$)(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])*$`. Providing a + * `null` value for a key will remove that key. * * @return labels */ diff --git a/services/iaas/src/main/java/cloud/stackit/sdk/iaas/model/CreateVolumePayload.java b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/model/CreateVolumePayload.java index 1d2f993..0ccef69 100644 --- a/services/iaas/src/main/java/cloud/stackit/sdk/iaas/model/CreateVolumePayload.java +++ b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/model/CreateVolumePayload.java @@ -257,9 +257,9 @@ public CreateVolumePayload labels(@javax.annotation.Nullable Object labels) { /** * Object that represents the labels of an object. Regex for keys: - * `^[a-z]((-|_|[a-z0-9])){0,62}$`. Regex for values: - * `^(-|_|[a-z0-9]){0,63}$`. Providing a `null` value for a key will remove - * that key. + * `^(?=.{1,63}$)([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]$`. Regex for values: + * `^(?=.{0,63}$)(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])*$`. Providing a + * `null` value for a key will remove that key. * * @return labels */ diff --git a/services/iaas/src/main/java/cloud/stackit/sdk/iaas/model/Image.java b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/model/Image.java index 3c794dd..f51617d 100644 --- a/services/iaas/src/main/java/cloud/stackit/sdk/iaas/model/Image.java +++ b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/model/Image.java @@ -232,9 +232,9 @@ public Image labels(@javax.annotation.Nullable Object labels) { /** * Object that represents the labels of an object. Regex for keys: - * `^[a-z]((-|_|[a-z0-9])){0,62}$`. Regex for values: - * `^(-|_|[a-z0-9]){0,63}$`. Providing a `null` value for a key will remove - * that key. + * `^(?=.{1,63}$)([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]$`. Regex for values: + * `^(?=.{0,63}$)(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])*$`. Providing a + * `null` value for a key will remove that key. * * @return labels */ diff --git a/services/iaas/src/main/java/cloud/stackit/sdk/iaas/model/Keypair.java b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/model/Keypair.java index f8da10e..f918230 100644 --- a/services/iaas/src/main/java/cloud/stackit/sdk/iaas/model/Keypair.java +++ b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/model/Keypair.java @@ -100,9 +100,9 @@ public Keypair labels(@javax.annotation.Nullable Object labels) { /** * Object that represents the labels of an object. Regex for keys: - * `^[a-z]((-|_|[a-z0-9])){0,62}$`. Regex for values: - * `^(-|_|[a-z0-9]){0,63}$`. Providing a `null` value for a key will remove - * that key. + * `^(?=.{1,63}$)([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]$`. Regex for values: + * `^(?=.{0,63}$)(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])*$`. Providing a + * `null` value for a key will remove that key. * * @return labels */ diff --git a/services/iaas/src/main/java/cloud/stackit/sdk/iaas/model/NIC.java b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/model/NIC.java index d5871f3..9742df4 100644 --- a/services/iaas/src/main/java/cloud/stackit/sdk/iaas/model/NIC.java +++ b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/model/NIC.java @@ -43,6 +43,11 @@ public class NIC { @SerializedName(SERIALIZED_NAME_ALLOWED_ADDRESSES) @javax.annotation.Nullable private List allowedAddresses = new ArrayList<>(); + public static final String SERIALIZED_NAME_DESCRIPTION = "description"; + + @SerializedName(SERIALIZED_NAME_DESCRIPTION) + @javax.annotation.Nullable private String description; + public static final String SERIALIZED_NAME_DEVICE = "device"; @SerializedName(SERIALIZED_NAME_DEVICE) @@ -143,6 +148,24 @@ public void setAllowedAddresses( this.allowedAddresses = allowedAddresses; } + public NIC description(@javax.annotation.Nullable String description) { + this.description = description; + return this; + } + + /** + * Description Object. Allows string up to 255 Characters. + * + * @return description + */ + @javax.annotation.Nullable public String getDescription() { + return description; + } + + public void setDescription(@javax.annotation.Nullable String description) { + this.description = description; + } + /** * Universally Unique Identifier (UUID). * @@ -204,9 +227,9 @@ public NIC labels(@javax.annotation.Nullable Object labels) { /** * Object that represents the labels of an object. Regex for keys: - * `^[a-z]((-|_|[a-z0-9])){0,62}$`. Regex for values: - * `^(-|_|[a-z0-9]){0,63}$`. Providing a `null` value for a key will remove - * that key. + * `^(?=.{1,63}$)([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]$`. Regex for values: + * `^(?=.{0,63}$)(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])*$`. Providing a + * `null` value for a key will remove that key. * * @return labels */ @@ -327,6 +350,7 @@ public boolean equals(Object o) { } NIC NIC = (NIC) o; return Objects.equals(this.allowedAddresses, NIC.allowedAddresses) + && Objects.equals(this.description, NIC.description) && Objects.equals(this.device, NIC.device) && Objects.equals(this.id, NIC.id) && Objects.equals(this.ipv4, NIC.ipv4) @@ -345,6 +369,7 @@ public boolean equals(Object o) { public int hashCode() { return Objects.hash( allowedAddresses, + description, device, id, ipv4, @@ -364,6 +389,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class NIC {\n"); sb.append(" allowedAddresses: ").append(toIndentedString(allowedAddresses)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" device: ").append(toIndentedString(device)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" ipv4: ").append(toIndentedString(ipv4)).append("\n"); @@ -400,6 +426,7 @@ private String toIndentedString(Object o) { new HashSet( Arrays.asList( "allowedAddresses", + "description", "device", "id", "ipv4", @@ -464,6 +491,13 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti ; } } + if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull()) + && !jsonObj.get("description").isJsonPrimitive()) { + throw new IllegalArgumentException( + String.format( + "Expected the field `description` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("description").toString())); + } if ((jsonObj.get("device") != null && !jsonObj.get("device").isJsonNull()) && !jsonObj.get("device").isJsonPrimitive()) { throw new IllegalArgumentException( diff --git a/services/iaas/src/main/java/cloud/stackit/sdk/iaas/model/Network.java b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/model/Network.java index 921c01e..5ce1955 100644 --- a/services/iaas/src/main/java/cloud/stackit/sdk/iaas/model/Network.java +++ b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/model/Network.java @@ -197,9 +197,9 @@ public Network labels(@javax.annotation.Nullable Object labels) { /** * Object that represents the labels of an object. Regex for keys: - * `^[a-z]((-|_|[a-z0-9])){0,62}$`. Regex for values: - * `^(-|_|[a-z0-9]){0,63}$`. Providing a `null` value for a key will remove - * that key. + * `^(?=.{1,63}$)([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]$`. Regex for values: + * `^(?=.{0,63}$)(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])*$`. Providing a + * `null` value for a key will remove that key. * * @return labels */ diff --git a/services/iaas/src/main/java/cloud/stackit/sdk/iaas/model/NetworkArea.java b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/model/NetworkArea.java index 4535d73..113b83f 100644 --- a/services/iaas/src/main/java/cloud/stackit/sdk/iaas/model/NetworkArea.java +++ b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/model/NetworkArea.java @@ -141,9 +141,9 @@ public NetworkArea labels(@javax.annotation.Nullable Object labels) { /** * Object that represents the labels of an object. Regex for keys: - * `^[a-z]((-|_|[a-z0-9])){0,62}$`. Regex for values: - * `^(-|_|[a-z0-9]){0,63}$`. Providing a `null` value for a key will remove - * that key. + * `^(?=.{1,63}$)([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]$`. Regex for values: + * `^(?=.{0,63}$)(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])*$`. Providing a + * `null` value for a key will remove that key. * * @return labels */ diff --git a/services/iaas/src/main/java/cloud/stackit/sdk/iaas/model/PartialUpdateNetworkAreaPayload.java b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/model/PartialUpdateNetworkAreaPayload.java index 5e0ccb3..914ef5e 100644 --- a/services/iaas/src/main/java/cloud/stackit/sdk/iaas/model/PartialUpdateNetworkAreaPayload.java +++ b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/model/PartialUpdateNetworkAreaPayload.java @@ -77,9 +77,9 @@ public PartialUpdateNetworkAreaPayload labels(@javax.annotation.Nullable Object /** * Object that represents the labels of an object. Regex for keys: - * `^[a-z]((-|_|[a-z0-9])){0,62}$`. Regex for values: - * `^(-|_|[a-z0-9]){0,63}$`. Providing a `null` value for a key will remove - * that key. + * `^(?=.{1,63}$)([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]$`. Regex for values: + * `^(?=.{0,63}$)(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])*$`. Providing a + * `null` value for a key will remove that key. * * @return labels */ diff --git a/services/iaas/src/main/java/cloud/stackit/sdk/iaas/model/PartialUpdateNetworkPayload.java b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/model/PartialUpdateNetworkPayload.java index 1d20674..2f76594 100644 --- a/services/iaas/src/main/java/cloud/stackit/sdk/iaas/model/PartialUpdateNetworkPayload.java +++ b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/model/PartialUpdateNetworkPayload.java @@ -106,9 +106,9 @@ public PartialUpdateNetworkPayload labels(@javax.annotation.Nullable Object labe /** * Object that represents the labels of an object. Regex for keys: - * `^[a-z]((-|_|[a-z0-9])){0,62}$`. Regex for values: - * `^(-|_|[a-z0-9]){0,63}$`. Providing a `null` value for a key will remove - * that key. + * `^(?=.{1,63}$)([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]$`. Regex for values: + * `^(?=.{0,63}$)(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])*$`. Providing a + * `null` value for a key will remove that key. * * @return labels */ diff --git a/services/iaas/src/main/java/cloud/stackit/sdk/iaas/model/PublicIp.java b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/model/PublicIp.java index 02b6599..f0ab0d1 100644 --- a/services/iaas/src/main/java/cloud/stackit/sdk/iaas/model/PublicIp.java +++ b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/model/PublicIp.java @@ -89,9 +89,9 @@ public PublicIp labels(@javax.annotation.Nullable Object labels) { /** * Object that represents the labels of an object. Regex for keys: - * `^[a-z]((-|_|[a-z0-9])){0,62}$`. Regex for values: - * `^(-|_|[a-z0-9]){0,63}$`. Providing a `null` value for a key will remove - * that key. + * `^(?=.{1,63}$)([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]$`. Regex for values: + * `^(?=.{0,63}$)(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])*$`. Providing a + * `null` value for a key will remove that key. * * @return labels */ diff --git a/services/iaas/src/main/java/cloud/stackit/sdk/iaas/model/Route.java b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/model/Route.java index b3a6aa1..cbc4d07 100644 --- a/services/iaas/src/main/java/cloud/stackit/sdk/iaas/model/Route.java +++ b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/model/Route.java @@ -93,9 +93,9 @@ public Route labels(@javax.annotation.Nullable Object labels) { /** * Object that represents the labels of an object. Regex for keys: - * `^[a-z]((-|_|[a-z0-9])){0,62}$`. Regex for values: - * `^(-|_|[a-z0-9]){0,63}$`. Providing a `null` value for a key will remove - * that key. + * `^(?=.{1,63}$)([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]$`. Regex for values: + * `^(?=.{0,63}$)(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])*$`. Providing a + * `null` value for a key will remove that key. * * @return labels */ diff --git a/services/iaas/src/main/java/cloud/stackit/sdk/iaas/model/SecurityGroup.java b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/model/SecurityGroup.java index 2afb081..958ca93 100644 --- a/services/iaas/src/main/java/cloud/stackit/sdk/iaas/model/SecurityGroup.java +++ b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/model/SecurityGroup.java @@ -136,9 +136,9 @@ public SecurityGroup labels(@javax.annotation.Nullable Object labels) { /** * Object that represents the labels of an object. Regex for keys: - * `^[a-z]((-|_|[a-z0-9])){0,62}$`. Regex for values: - * `^(-|_|[a-z0-9]){0,63}$`. Providing a `null` value for a key will remove - * that key. + * `^(?=.{1,63}$)([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]$`. Regex for values: + * `^(?=.{0,63}$)(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])*$`. Providing a + * `null` value for a key will remove that key. * * @return labels */ diff --git a/services/iaas/src/main/java/cloud/stackit/sdk/iaas/model/SecurityGroupRule.java b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/model/SecurityGroupRule.java index 63900cc..562f0dc 100644 --- a/services/iaas/src/main/java/cloud/stackit/sdk/iaas/model/SecurityGroupRule.java +++ b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/model/SecurityGroupRule.java @@ -23,6 +23,7 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import java.io.IOException; +import java.time.OffsetDateTime; import java.util.Arrays; import java.util.HashSet; import java.util.Map; @@ -35,6 +36,11 @@ value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.15.0") public class SecurityGroupRule { + public static final String SERIALIZED_NAME_CREATED_AT = "createdAt"; + + @SerializedName(SERIALIZED_NAME_CREATED_AT) + @javax.annotation.Nullable private OffsetDateTime createdAt; + public static final String SERIALIZED_NAME_DESCRIPTION = "description"; @SerializedName(SERIALIZED_NAME_DESCRIPTION) @@ -81,6 +87,11 @@ public class SecurityGroupRule { @SerializedName(SERIALIZED_NAME_SECURITY_GROUP_ID) @javax.annotation.Nullable private UUID securityGroupId; + public static final String SERIALIZED_NAME_UPDATED_AT = "updatedAt"; + + @SerializedName(SERIALIZED_NAME_UPDATED_AT) + @javax.annotation.Nullable private OffsetDateTime updatedAt; + public static final String SERIALIZED_NAME_PROTOCOL = "protocol"; @SerializedName(SERIALIZED_NAME_PROTOCOL) @@ -88,10 +99,22 @@ public class SecurityGroupRule { public SecurityGroupRule() {} - public SecurityGroupRule(UUID id, UUID securityGroupId) { + public SecurityGroupRule( + OffsetDateTime createdAt, UUID id, UUID securityGroupId, OffsetDateTime updatedAt) { this(); + this.createdAt = createdAt; this.id = id; this.securityGroupId = securityGroupId; + this.updatedAt = updatedAt; + } + + /** + * Date-time when resource was created. + * + * @return createdAt + */ + @javax.annotation.Nullable public OffsetDateTime getCreatedAt() { + return createdAt; } public SecurityGroupRule description(@javax.annotation.Nullable String description) { @@ -243,6 +266,15 @@ public void setRemoteSecurityGroupId(@javax.annotation.Nullable UUID remoteSecur return securityGroupId; } + /** + * Date-time when resource was last updated. + * + * @return updatedAt + */ + @javax.annotation.Nullable public OffsetDateTime getUpdatedAt() { + return updatedAt; + } + public SecurityGroupRule protocol(@javax.annotation.Nullable Protocol protocol) { this.protocol = protocol; return this; @@ -270,7 +302,8 @@ public boolean equals(Object o) { return false; } SecurityGroupRule securityGroupRule = (SecurityGroupRule) o; - return Objects.equals(this.description, securityGroupRule.description) + return Objects.equals(this.createdAt, securityGroupRule.createdAt) + && Objects.equals(this.description, securityGroupRule.description) && Objects.equals(this.direction, securityGroupRule.direction) && Objects.equals(this.ethertype, securityGroupRule.ethertype) && Objects.equals(this.icmpParameters, securityGroupRule.icmpParameters) @@ -280,12 +313,14 @@ public boolean equals(Object o) { && Objects.equals( this.remoteSecurityGroupId, securityGroupRule.remoteSecurityGroupId) && Objects.equals(this.securityGroupId, securityGroupRule.securityGroupId) + && Objects.equals(this.updatedAt, securityGroupRule.updatedAt) && Objects.equals(this.protocol, securityGroupRule.protocol); } @Override public int hashCode() { return Objects.hash( + createdAt, description, direction, ethertype, @@ -295,6 +330,7 @@ public int hashCode() { portRange, remoteSecurityGroupId, securityGroupId, + updatedAt, protocol); } @@ -302,6 +338,7 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class SecurityGroupRule {\n"); + sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" direction: ").append(toIndentedString(direction)).append("\n"); sb.append(" ethertype: ").append(toIndentedString(ethertype)).append("\n"); @@ -313,6 +350,7 @@ public String toString() { .append(toIndentedString(remoteSecurityGroupId)) .append("\n"); sb.append(" securityGroupId: ").append(toIndentedString(securityGroupId)).append("\n"); + sb.append(" updatedAt: ").append(toIndentedString(updatedAt)).append("\n"); sb.append(" protocol: ").append(toIndentedString(protocol)).append("\n"); sb.append("}"); return sb.toString(); @@ -337,6 +375,7 @@ private String toIndentedString(Object o) { openapiFields = new HashSet( Arrays.asList( + "createdAt", "description", "direction", "ethertype", @@ -346,6 +385,7 @@ private String toIndentedString(Object o) { "portRange", "remoteSecurityGroupId", "securityGroupId", + "updatedAt", "protocol")); // a set of required properties/fields (JSON key names) diff --git a/services/iaas/src/main/java/cloud/stackit/sdk/iaas/model/Server.java b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/model/Server.java index 851df3e..dec5cf9 100644 --- a/services/iaas/src/main/java/cloud/stackit/sdk/iaas/model/Server.java +++ b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/model/Server.java @@ -44,6 +44,11 @@ public class Server { @SerializedName(SERIALIZED_NAME_AFFINITY_GROUP) @javax.annotation.Nullable private UUID affinityGroup; + public static final String SERIALIZED_NAME_AGENT = "agent"; + + @SerializedName(SERIALIZED_NAME_AGENT) + @javax.annotation.Nullable private ServerAgent agent; + public static final String SERIALIZED_NAME_AVAILABILITY_ZONE = "availabilityZone"; @SerializedName(SERIALIZED_NAME_AVAILABILITY_ZONE) @@ -198,6 +203,24 @@ public void setAffinityGroup(@javax.annotation.Nullable UUID affinityGroup) { this.affinityGroup = affinityGroup; } + public Server agent(@javax.annotation.Nullable ServerAgent agent) { + this.agent = agent; + return this; + } + + /** + * Get agent + * + * @return agent + */ + @javax.annotation.Nullable public ServerAgent getAgent() { + return agent; + } + + public void setAgent(@javax.annotation.Nullable ServerAgent agent) { + this.agent = agent; + } + public Server availabilityZone(@javax.annotation.Nullable String availabilityZone) { this.availabilityZone = availabilityZone; return this; @@ -307,9 +330,9 @@ public Server labels(@javax.annotation.Nullable Object labels) { /** * Object that represents the labels of an object. Regex for keys: - * `^[a-z]((-|_|[a-z0-9])){0,62}$`. Regex for values: - * `^(-|_|[a-z0-9]){0,63}$`. Providing a `null` value for a key will remove - * that key. + * `^(?=.{1,63}$)([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]$`. Regex for values: + * `^(?=.{0,63}$)(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])*$`. Providing a + * `null` value for a key will remove that key. * * @return labels */ @@ -567,6 +590,7 @@ public boolean equals(Object o) { } Server server = (Server) o; return Objects.equals(this.affinityGroup, server.affinityGroup) + && Objects.equals(this.agent, server.agent) && Objects.equals(this.availabilityZone, server.availabilityZone) && Objects.equals(this.bootVolume, server.bootVolume) && Objects.equals(this.createdAt, server.createdAt) @@ -595,6 +619,7 @@ public boolean equals(Object o) { public int hashCode() { return Objects.hash( affinityGroup, + agent, availabilityZone, bootVolume, createdAt, @@ -624,6 +649,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class Server {\n"); sb.append(" affinityGroup: ").append(toIndentedString(affinityGroup)).append("\n"); + sb.append(" agent: ").append(toIndentedString(agent)).append("\n"); sb.append(" availabilityZone: ").append(toIndentedString(availabilityZone)).append("\n"); sb.append(" bootVolume: ").append(toIndentedString(bootVolume)).append("\n"); sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); @@ -674,6 +700,7 @@ private String toIndentedString(Object o) { new HashSet( Arrays.asList( "affinityGroup", + "agent", "availabilityZone", "bootVolume", "createdAt", @@ -746,6 +773,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti "Expected the field `affinityGroup` to be a primitive type in the JSON string but got `%s`", jsonObj.get("affinityGroup").toString())); } + // validate the optional field `agent` + if (jsonObj.get("agent") != null && !jsonObj.get("agent").isJsonNull()) { + ServerAgent.validateJsonElement(jsonObj.get("agent")); + } if ((jsonObj.get("availabilityZone") != null && !jsonObj.get("availabilityZone").isJsonNull()) && !jsonObj.get("availabilityZone").isJsonPrimitive()) { diff --git a/services/iaas/src/main/java/cloud/stackit/sdk/iaas/model/ServerAgent.java b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/model/ServerAgent.java new file mode 100644 index 0000000..37d77c6 --- /dev/null +++ b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/model/ServerAgent.java @@ -0,0 +1,191 @@ +/* + * IaaS-API + * This API allows you to create and modify IaaS resources. + * + * The version of the OpenAPI document: 1 + * Contact: stackit-iaas@mail.schwarz + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package cloud.stackit.sdk.iaas.model; + +import cloud.stackit.sdk.iaas.JSON; +import com.google.gson.Gson; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.TypeAdapter; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.annotations.SerializedName; +import com.google.gson.reflect.TypeToken; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.Arrays; +import java.util.HashSet; +import java.util.Map; +import java.util.Objects; +import java.util.Set; + +/** STACKIT server agent options for a server. */ +@javax.annotation.Generated( + value = "org.openapitools.codegen.languages.JavaClientCodegen", + comments = "Generator version: 7.15.0") +public class ServerAgent { + public static final String SERIALIZED_NAME_PROVISIONED = "provisioned"; + + @SerializedName(SERIALIZED_NAME_PROVISIONED) + @javax.annotation.Nullable private Boolean provisioned; + + public ServerAgent() {} + + public ServerAgent provisioned(@javax.annotation.Nullable Boolean provisioned) { + this.provisioned = provisioned; + return this; + } + + /** + * Configure the STACKIT server agent provisioning during the first boot of the server. Only + * works when booting from an images that supports the STACKIT server agent. When + * `false` the agent IS NOT installed. When `true` the agent IS installed. + * When its not set the result depend on the used image and its default provisioning setting. + * + * @return provisioned + */ + @javax.annotation.Nullable public Boolean getProvisioned() { + return provisioned; + } + + public void setProvisioned(@javax.annotation.Nullable Boolean provisioned) { + this.provisioned = provisioned; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ServerAgent serverAgent = (ServerAgent) o; + return Objects.equals(this.provisioned, serverAgent.provisioned); + } + + @Override + public int hashCode() { + return Objects.hash(provisioned); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ServerAgent {\n"); + sb.append(" provisioned: ").append(toIndentedString(provisioned)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first + * line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(Arrays.asList("provisioned")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(0); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to ServerAgent + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!ServerAgent.openapiRequiredFields + .isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException( + String.format( + "The required field(s) %s in ServerAgent is not found in the empty JSON string", + ServerAgent.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!ServerAgent.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException( + String.format( + "The field `%s` in the JSON string is not defined in the `ServerAgent` properties. JSON: %s", + entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!ServerAgent.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'ServerAgent' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter = + gson.getDelegateAdapter(this, TypeToken.get(ServerAgent.class)); + + return (TypeAdapter) + new TypeAdapter() { + @Override + public void write(JsonWriter out, ServerAgent value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public ServerAgent read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + }.nullSafe(); + } + } + + /** + * Create an instance of ServerAgent given an JSON string + * + * @param jsonString JSON string + * @return An instance of ServerAgent + * @throws IOException if the JSON string is invalid with respect to ServerAgent + */ + public static ServerAgent fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, ServerAgent.class); + } + + /** + * Convert an instance of ServerAgent to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} diff --git a/services/iaas/src/main/java/cloud/stackit/sdk/iaas/model/Snapshot.java b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/model/Snapshot.java index 76df689..ec58bc1 100644 --- a/services/iaas/src/main/java/cloud/stackit/sdk/iaas/model/Snapshot.java +++ b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/model/Snapshot.java @@ -114,9 +114,9 @@ public Snapshot labels(@javax.annotation.Nullable Object labels) { /** * Object that represents the labels of an object. Regex for keys: - * `^[a-z]((-|_|[a-z0-9])){0,62}$`. Regex for values: - * `^(-|_|[a-z0-9]){0,63}$`. Providing a `null` value for a key will remove - * that key. + * `^(?=.{1,63}$)([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]$`. Regex for values: + * `^(?=.{0,63}$)(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])*$`. Providing a + * `null` value for a key will remove that key. * * @return labels */ diff --git a/services/iaas/src/main/java/cloud/stackit/sdk/iaas/model/UpdateBackupPayload.java b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/model/UpdateBackupPayload.java index ffef387..813cff1 100644 --- a/services/iaas/src/main/java/cloud/stackit/sdk/iaas/model/UpdateBackupPayload.java +++ b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/model/UpdateBackupPayload.java @@ -142,9 +142,9 @@ public UpdateBackupPayload labels(@javax.annotation.Nullable Object labels) { /** * Object that represents the labels of an object. Regex for keys: - * `^[a-z]((-|_|[a-z0-9])){0,62}$`. Regex for values: - * `^(-|_|[a-z0-9]){0,63}$`. Providing a `null` value for a key will remove - * that key. + * `^(?=.{1,63}$)([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]$`. Regex for values: + * `^(?=.{0,63}$)(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])*$`. Providing a + * `null` value for a key will remove that key. * * @return labels */ diff --git a/services/iaas/src/main/java/cloud/stackit/sdk/iaas/model/UpdateImagePayload.java b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/model/UpdateImagePayload.java index 58c6d83..1cd1c2f 100644 --- a/services/iaas/src/main/java/cloud/stackit/sdk/iaas/model/UpdateImagePayload.java +++ b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/model/UpdateImagePayload.java @@ -138,9 +138,9 @@ public UpdateImagePayload labels(@javax.annotation.Nullable Object labels) { /** * Object that represents the labels of an object. Regex for keys: - * `^[a-z]((-|_|[a-z0-9])){0,62}$`. Regex for values: - * `^(-|_|[a-z0-9]){0,63}$`. Providing a `null` value for a key will remove - * that key. + * `^(?=.{1,63}$)([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]$`. Regex for values: + * `^(?=.{0,63}$)(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])*$`. Providing a + * `null` value for a key will remove that key. * * @return labels */ diff --git a/services/iaas/src/main/java/cloud/stackit/sdk/iaas/model/UpdateKeyPairPayload.java b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/model/UpdateKeyPairPayload.java index fbab69c..d287e09 100644 --- a/services/iaas/src/main/java/cloud/stackit/sdk/iaas/model/UpdateKeyPairPayload.java +++ b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/model/UpdateKeyPairPayload.java @@ -48,9 +48,9 @@ public UpdateKeyPairPayload labels(@javax.annotation.Nullable Object labels) { /** * Object that represents the labels of an object. Regex for keys: - * `^[a-z]((-|_|[a-z0-9])){0,62}$`. Regex for values: - * `^(-|_|[a-z0-9]){0,63}$`. Providing a `null` value for a key will remove - * that key. + * `^(?=.{1,63}$)([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]$`. Regex for values: + * `^(?=.{0,63}$)(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])*$`. Providing a + * `null` value for a key will remove that key. * * @return labels */ diff --git a/services/iaas/src/main/java/cloud/stackit/sdk/iaas/model/UpdateNetworkAreaRoutePayload.java b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/model/UpdateNetworkAreaRoutePayload.java index 4cdd430..772af00 100644 --- a/services/iaas/src/main/java/cloud/stackit/sdk/iaas/model/UpdateNetworkAreaRoutePayload.java +++ b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/model/UpdateNetworkAreaRoutePayload.java @@ -48,9 +48,9 @@ public UpdateNetworkAreaRoutePayload labels(@javax.annotation.Nullable Object la /** * Object that represents the labels of an object. Regex for keys: - * `^[a-z]((-|_|[a-z0-9])){0,62}$`. Regex for values: - * `^(-|_|[a-z0-9]){0,63}$`. Providing a `null` value for a key will remove - * that key. + * `^(?=.{1,63}$)([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]$`. Regex for values: + * `^(?=.{0,63}$)(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])*$`. Providing a + * `null` value for a key will remove that key. * * @return labels */ diff --git a/services/iaas/src/main/java/cloud/stackit/sdk/iaas/model/UpdateNicPayload.java b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/model/UpdateNicPayload.java index a97b192..d0f7ff5 100644 --- a/services/iaas/src/main/java/cloud/stackit/sdk/iaas/model/UpdateNicPayload.java +++ b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/model/UpdateNicPayload.java @@ -43,6 +43,11 @@ public class UpdateNicPayload { @SerializedName(SERIALIZED_NAME_ALLOWED_ADDRESSES) @javax.annotation.Nullable private List allowedAddresses = new ArrayList<>(); + public static final String SERIALIZED_NAME_DESCRIPTION = "description"; + + @SerializedName(SERIALIZED_NAME_DESCRIPTION) + @javax.annotation.Nullable private String description; + public static final String SERIALIZED_NAME_LABELS = "labels"; @SerializedName(SERIALIZED_NAME_LABELS) @@ -93,6 +98,24 @@ public void setAllowedAddresses( this.allowedAddresses = allowedAddresses; } + public UpdateNicPayload description(@javax.annotation.Nullable String description) { + this.description = description; + return this; + } + + /** + * Description Object. Allows string up to 255 Characters. + * + * @return description + */ + @javax.annotation.Nullable public String getDescription() { + return description; + } + + public void setDescription(@javax.annotation.Nullable String description) { + this.description = description; + } + public UpdateNicPayload labels(@javax.annotation.Nullable Object labels) { this.labels = labels; return this; @@ -100,9 +123,9 @@ public UpdateNicPayload labels(@javax.annotation.Nullable Object labels) { /** * Object that represents the labels of an object. Regex for keys: - * `^[a-z]((-|_|[a-z0-9])){0,62}$`. Regex for values: - * `^(-|_|[a-z0-9]){0,63}$`. Providing a `null` value for a key will remove - * that key. + * `^(?=.{1,63}$)([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]$`. Regex for values: + * `^(?=.{0,63}$)(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])*$`. Providing a + * `null` value for a key will remove that key. * * @return labels */ @@ -186,6 +209,7 @@ public boolean equals(Object o) { } UpdateNicPayload updateNicPayload = (UpdateNicPayload) o; return Objects.equals(this.allowedAddresses, updateNicPayload.allowedAddresses) + && Objects.equals(this.description, updateNicPayload.description) && Objects.equals(this.labels, updateNicPayload.labels) && Objects.equals(this.name, updateNicPayload.name) && Objects.equals(this.nicSecurity, updateNicPayload.nicSecurity) @@ -194,7 +218,8 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(allowedAddresses, labels, name, nicSecurity, securityGroups); + return Objects.hash( + allowedAddresses, description, labels, name, nicSecurity, securityGroups); } @Override @@ -202,6 +227,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class UpdateNicPayload {\n"); sb.append(" allowedAddresses: ").append(toIndentedString(allowedAddresses)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" labels: ").append(toIndentedString(labels)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" nicSecurity: ").append(toIndentedString(nicSecurity)).append("\n"); @@ -230,6 +256,7 @@ private String toIndentedString(Object o) { new HashSet( Arrays.asList( "allowedAddresses", + "description", "labels", "name", "nicSecurity", @@ -286,6 +313,13 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti ; } } + if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull()) + && !jsonObj.get("description").isJsonPrimitive()) { + throw new IllegalArgumentException( + String.format( + "Expected the field `description` to be a primitive type in the JSON string but got `%s`", + jsonObj.get("description").toString())); + } if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { throw new IllegalArgumentException( diff --git a/services/iaas/src/main/java/cloud/stackit/sdk/iaas/model/UpdatePublicIPPayload.java b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/model/UpdatePublicIPPayload.java index 09a4d02..96523e1 100644 --- a/services/iaas/src/main/java/cloud/stackit/sdk/iaas/model/UpdatePublicIPPayload.java +++ b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/model/UpdatePublicIPPayload.java @@ -89,9 +89,9 @@ public UpdatePublicIPPayload labels(@javax.annotation.Nullable Object labels) { /** * Object that represents the labels of an object. Regex for keys: - * `^[a-z]((-|_|[a-z0-9])){0,62}$`. Regex for values: - * `^(-|_|[a-z0-9]){0,63}$`. Providing a `null` value for a key will remove - * that key. + * `^(?=.{1,63}$)([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]$`. Regex for values: + * `^(?=.{0,63}$)(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])*$`. Providing a + * `null` value for a key will remove that key. * * @return labels */ diff --git a/services/iaas/src/main/java/cloud/stackit/sdk/iaas/model/UpdateSecurityGroupPayload.java b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/model/UpdateSecurityGroupPayload.java index 44225c1..7fa4308 100644 --- a/services/iaas/src/main/java/cloud/stackit/sdk/iaas/model/UpdateSecurityGroupPayload.java +++ b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/model/UpdateSecurityGroupPayload.java @@ -76,9 +76,9 @@ public UpdateSecurityGroupPayload labels(@javax.annotation.Nullable Object label /** * Object that represents the labels of an object. Regex for keys: - * `^[a-z]((-|_|[a-z0-9])){0,62}$`. Regex for values: - * `^(-|_|[a-z0-9]){0,63}$`. Providing a `null` value for a key will remove - * that key. + * `^(?=.{1,63}$)([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]$`. Regex for values: + * `^(?=.{0,63}$)(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])*$`. Providing a + * `null` value for a key will remove that key. * * @return labels */ diff --git a/services/iaas/src/main/java/cloud/stackit/sdk/iaas/model/UpdateServerPayload.java b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/model/UpdateServerPayload.java index a6eeeb7..5e519ab 100644 --- a/services/iaas/src/main/java/cloud/stackit/sdk/iaas/model/UpdateServerPayload.java +++ b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/model/UpdateServerPayload.java @@ -58,9 +58,9 @@ public UpdateServerPayload labels(@javax.annotation.Nullable Object labels) { /** * Object that represents the labels of an object. Regex for keys: - * `^[a-z]((-|_|[a-z0-9])){0,62}$`. Regex for values: - * `^(-|_|[a-z0-9]){0,63}$`. Providing a `null` value for a key will remove - * that key. + * `^(?=.{1,63}$)([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]$`. Regex for values: + * `^(?=.{0,63}$)(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])*$`. Providing a + * `null` value for a key will remove that key. * * @return labels */ diff --git a/services/iaas/src/main/java/cloud/stackit/sdk/iaas/model/UpdateSnapshotPayload.java b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/model/UpdateSnapshotPayload.java index bcf993c..17d78db 100644 --- a/services/iaas/src/main/java/cloud/stackit/sdk/iaas/model/UpdateSnapshotPayload.java +++ b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/model/UpdateSnapshotPayload.java @@ -53,9 +53,9 @@ public UpdateSnapshotPayload labels(@javax.annotation.Nullable Object labels) { /** * Object that represents the labels of an object. Regex for keys: - * `^[a-z]((-|_|[a-z0-9])){0,62}$`. Regex for values: - * `^(-|_|[a-z0-9]){0,63}$`. Providing a `null` value for a key will remove - * that key. + * `^(?=.{1,63}$)([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]$`. Regex for values: + * `^(?=.{0,63}$)(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])*$`. Providing a + * `null` value for a key will remove that key. * * @return labels */ diff --git a/services/iaas/src/main/java/cloud/stackit/sdk/iaas/model/UpdateVolumePayload.java b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/model/UpdateVolumePayload.java index 55a937f..ca3ee76 100644 --- a/services/iaas/src/main/java/cloud/stackit/sdk/iaas/model/UpdateVolumePayload.java +++ b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/model/UpdateVolumePayload.java @@ -122,9 +122,9 @@ public UpdateVolumePayload labels(@javax.annotation.Nullable Object labels) { /** * Object that represents the labels of an object. Regex for keys: - * `^[a-z]((-|_|[a-z0-9])){0,62}$`. Regex for values: - * `^(-|_|[a-z0-9]){0,63}$`. Providing a `null` value for a key will remove - * that key. + * `^(?=.{1,63}$)([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]$`. Regex for values: + * `^(?=.{0,63}$)(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])*$`. Providing a + * `null` value for a key will remove that key. * * @return labels */ diff --git a/services/iaas/src/main/java/cloud/stackit/sdk/iaas/model/Volume.java b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/model/Volume.java index 019bda9..64e0865 100644 --- a/services/iaas/src/main/java/cloud/stackit/sdk/iaas/model/Volume.java +++ b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/model/Volume.java @@ -257,9 +257,9 @@ public Volume labels(@javax.annotation.Nullable Object labels) { /** * Object that represents the labels of an object. Regex for keys: - * `^[a-z]((-|_|[a-z0-9])){0,62}$`. Regex for values: - * `^(-|_|[a-z0-9]){0,63}$`. Providing a `null` value for a key will remove - * that key. + * `^(?=.{1,63}$)([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]$`. Regex for values: + * `^(?=.{0,63}$)(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])*$`. Providing a + * `null` value for a key will remove that key. * * @return labels */ diff --git a/services/iaas/src/main/java/cloud/stackit/sdk/iaas/model/VolumePerformanceClass.java b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/model/VolumePerformanceClass.java index 4ca998b..055e63c 100644 --- a/services/iaas/src/main/java/cloud/stackit/sdk/iaas/model/VolumePerformanceClass.java +++ b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/model/VolumePerformanceClass.java @@ -105,9 +105,9 @@ public VolumePerformanceClass labels(@javax.annotation.Nullable Object labels) { /** * Object that represents the labels of an object. Regex for keys: - * `^[a-z]((-|_|[a-z0-9])){0,62}$`. Regex for values: - * `^(-|_|[a-z0-9]){0,63}$`. Providing a `null` value for a key will remove - * that key. + * `^(?=.{1,63}$)([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]$`. Regex for values: + * `^(?=.{0,63}$)(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])*$`. Providing a + * `null` value for a key will remove that key. * * @return labels */