diff --git a/services/iaas/oas_commit b/services/iaas/oas_commit index c0a0c9b8..22688645 100644 --- a/services/iaas/oas_commit +++ b/services/iaas/oas_commit @@ -1 +1 @@ -43a874547d9e5b23655d0f351c47b32b46d4a19e +5cd466983a830b5d96a38431ce25433e769df244 diff --git a/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v1api/model/Backup.java b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v1api/model/Backup.java index 41619f84..f9fe2ad5 100644 --- a/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v1api/model/Backup.java +++ b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v1api/model/Backup.java @@ -179,11 +179,21 @@ public Backup labels(@javax.annotation.Nullable Object labels) { } /** - * Object that represents the labels of an object. Regex for keys: - * `^(?=.{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. The `stackit-` prefix is - * reserved and cannot be used for Keys. + * Object that represents the labels as key-value pairs of a resource. Key constraints: - May + * contain an optional domain prefix separated by a slash (`/`). - Domain prefix must + * be less than or equal to 250 characters. - Domain prefix must ba a valid DNS subdomain + * containing only lowercase alphanumerics (`[a-z0-9]`) and dashes (`-`), + * separated by dots (`.`). - Length (excluding the domain prefix) must be between 1 + * and 63 characters. - Must begin and end with an alphanumerical character + * (`[a-z0-9A-Z]`). - May contain dashes (`-`), underscores (`_`), + * dots (`.`), and alphanumerics in between. - Keys starting with the prefix + * `stackit-` or having a domain prefix of `stackit.cloud` (including its + * subdomains, e.g., `*.stackit.cloud/`) are reserved for system use. Value + * constraints: - Must be less than or equal to 63 characters long (can be empty). - If not + * empty it must begin and end with an alphanumeric character (`[a-z0-9A-Z]`). - May + * contain dashes (`-`), underscores (`_`), dots (`.`), and + * alphanumerics in between. A resource can have a maximum of 64 labels. Reserved labels are + * excluded from this count. 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/v1api/model/CreateBackupPayload.java b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v1api/model/CreateBackupPayload.java index 6d3e541b..ee9450e9 100644 --- a/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v1api/model/CreateBackupPayload.java +++ b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v1api/model/CreateBackupPayload.java @@ -80,11 +80,21 @@ public CreateBackupPayload labels(@javax.annotation.Nullable Object labels) { } /** - * Object that represents the labels of an object. Regex for keys: - * `^(?=.{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. The `stackit-` prefix is - * reserved and cannot be used for Keys. + * Object that represents the labels as key-value pairs of a resource. Key constraints: - May + * contain an optional domain prefix separated by a slash (`/`). - Domain prefix must + * be less than or equal to 250 characters. - Domain prefix must ba a valid DNS subdomain + * containing only lowercase alphanumerics (`[a-z0-9]`) and dashes (`-`), + * separated by dots (`.`). - Length (excluding the domain prefix) must be between 1 + * and 63 characters. - Must begin and end with an alphanumerical character + * (`[a-z0-9A-Z]`). - May contain dashes (`-`), underscores (`_`), + * dots (`.`), and alphanumerics in between. - Keys starting with the prefix + * `stackit-` or having a domain prefix of `stackit.cloud` (including its + * subdomains, e.g., `*.stackit.cloud/`) are reserved for system use. Value + * constraints: - Must be less than or equal to 63 characters long (can be empty). - If not + * empty it must begin and end with an alphanumeric character (`[a-z0-9A-Z]`). - May + * contain dashes (`-`), underscores (`_`), dots (`.`), and + * alphanumerics in between. A resource can have a maximum of 64 labels. Reserved labels are + * excluded from this count. 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/v1api/model/CreateImagePayload.java b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v1api/model/CreateImagePayload.java index 94a5ec4f..da0d19b2 100644 --- a/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v1api/model/CreateImagePayload.java +++ b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v1api/model/CreateImagePayload.java @@ -246,11 +246,21 @@ public CreateImagePayload labels(@javax.annotation.Nullable Object labels) { } /** - * Object that represents the labels of an object. Regex for keys: - * `^(?=.{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. The `stackit-` prefix is - * reserved and cannot be used for Keys. + * Object that represents the labels as key-value pairs of a resource. Key constraints: - May + * contain an optional domain prefix separated by a slash (`/`). - Domain prefix must + * be less than or equal to 250 characters. - Domain prefix must ba a valid DNS subdomain + * containing only lowercase alphanumerics (`[a-z0-9]`) and dashes (`-`), + * separated by dots (`.`). - Length (excluding the domain prefix) must be between 1 + * and 63 characters. - Must begin and end with an alphanumerical character + * (`[a-z0-9A-Z]`). - May contain dashes (`-`), underscores (`_`), + * dots (`.`), and alphanumerics in between. - Keys starting with the prefix + * `stackit-` or having a domain prefix of `stackit.cloud` (including its + * subdomains, e.g., `*.stackit.cloud/`) are reserved for system use. Value + * constraints: - Must be less than or equal to 63 characters long (can be empty). - If not + * empty it must begin and end with an alphanumeric character (`[a-z0-9A-Z]`). - May + * contain dashes (`-`), underscores (`_`), dots (`.`), and + * alphanumerics in between. A resource can have a maximum of 64 labels. Reserved labels are + * excluded from this count. 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/v1api/model/CreateKeyPairPayload.java b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v1api/model/CreateKeyPairPayload.java index 8060519a..8d41aa27 100644 --- a/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v1api/model/CreateKeyPairPayload.java +++ b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v1api/model/CreateKeyPairPayload.java @@ -99,11 +99,21 @@ public CreateKeyPairPayload labels(@javax.annotation.Nullable Object labels) { } /** - * Object that represents the labels of an object. Regex for keys: - * `^(?=.{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. The `stackit-` prefix is - * reserved and cannot be used for Keys. + * Object that represents the labels as key-value pairs of a resource. Key constraints: - May + * contain an optional domain prefix separated by a slash (`/`). - Domain prefix must + * be less than or equal to 250 characters. - Domain prefix must ba a valid DNS subdomain + * containing only lowercase alphanumerics (`[a-z0-9]`) and dashes (`-`), + * separated by dots (`.`). - Length (excluding the domain prefix) must be between 1 + * and 63 characters. - Must begin and end with an alphanumerical character + * (`[a-z0-9A-Z]`). - May contain dashes (`-`), underscores (`_`), + * dots (`.`), and alphanumerics in between. - Keys starting with the prefix + * `stackit-` or having a domain prefix of `stackit.cloud` (including its + * subdomains, e.g., `*.stackit.cloud/`) are reserved for system use. Value + * constraints: - Must be less than or equal to 63 characters long (can be empty). - If not + * empty it must begin and end with an alphanumeric character (`[a-z0-9A-Z]`). - May + * contain dashes (`-`), underscores (`_`), dots (`.`), and + * alphanumerics in between. A resource can have a maximum of 64 labels. Reserved labels are + * excluded from this count. 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/v1api/model/CreateNetworkAreaPayload.java b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v1api/model/CreateNetworkAreaPayload.java index 12242de7..03d5de50 100644 --- a/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v1api/model/CreateNetworkAreaPayload.java +++ b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v1api/model/CreateNetworkAreaPayload.java @@ -78,11 +78,21 @@ public CreateNetworkAreaPayload labels(@javax.annotation.Nullable Object labels) } /** - * Object that represents the labels of an object. Regex for keys: - * `^(?=.{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. The `stackit-` prefix is - * reserved and cannot be used for Keys. + * Object that represents the labels as key-value pairs of a resource. Key constraints: - May + * contain an optional domain prefix separated by a slash (`/`). - Domain prefix must + * be less than or equal to 250 characters. - Domain prefix must ba a valid DNS subdomain + * containing only lowercase alphanumerics (`[a-z0-9]`) and dashes (`-`), + * separated by dots (`.`). - Length (excluding the domain prefix) must be between 1 + * and 63 characters. - Must begin and end with an alphanumerical character + * (`[a-z0-9A-Z]`). - May contain dashes (`-`), underscores (`_`), + * dots (`.`), and alphanumerics in between. - Keys starting with the prefix + * `stackit-` or having a domain prefix of `stackit.cloud` (including its + * subdomains, e.g., `*.stackit.cloud/`) are reserved for system use. Value + * constraints: - Must be less than or equal to 63 characters long (can be empty). - If not + * empty it must begin and end with an alphanumeric character (`[a-z0-9A-Z]`). - May + * contain dashes (`-`), underscores (`_`), dots (`.`), and + * alphanumerics in between. A resource can have a maximum of 64 labels. Reserved labels are + * excluded from this count. 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/v1api/model/CreateNetworkPayload.java b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v1api/model/CreateNetworkPayload.java index 7db3e4a5..fadd5b24 100644 --- a/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v1api/model/CreateNetworkPayload.java +++ b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v1api/model/CreateNetworkPayload.java @@ -38,6 +38,11 @@ public class CreateNetworkPayload { @SerializedName(SERIALIZED_NAME_ADDRESS_FAMILY) @javax.annotation.Nullable private CreateNetworkAddressFamily addressFamily; + public static final String SERIALIZED_NAME_DESCRIPTION = "description"; + + @SerializedName(SERIALIZED_NAME_DESCRIPTION) + @javax.annotation.Nullable private String description; + public static final String SERIALIZED_NAME_DHCP = "dhcp"; @SerializedName(SERIALIZED_NAME_DHCP) @@ -81,6 +86,24 @@ public void setAddressFamily( this.addressFamily = addressFamily; } + public CreateNetworkPayload 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 CreateNetworkPayload dhcp(@javax.annotation.Nullable Boolean dhcp) { this.dhcp = dhcp; return this; @@ -105,11 +128,21 @@ public CreateNetworkPayload labels(@javax.annotation.Nullable Object labels) { } /** - * Object that represents the labels of an object. Regex for keys: - * `^(?=.{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. The `stackit-` prefix is - * reserved and cannot be used for Keys. + * Object that represents the labels as key-value pairs of a resource. Key constraints: - May + * contain an optional domain prefix separated by a slash (`/`). - Domain prefix must + * be less than or equal to 250 characters. - Domain prefix must ba a valid DNS subdomain + * containing only lowercase alphanumerics (`[a-z0-9]`) and dashes (`-`), + * separated by dots (`.`). - Length (excluding the domain prefix) must be between 1 + * and 63 characters. - Must begin and end with an alphanumerical character + * (`[a-z0-9A-Z]`). - May contain dashes (`-`), underscores (`_`), + * dots (`.`), and alphanumerics in between. - Keys starting with the prefix + * `stackit-` or having a domain prefix of `stackit.cloud` (including its + * subdomains, e.g., `*.stackit.cloud/`) are reserved for system use. Value + * constraints: - Must be less than or equal to 63 characters long (can be empty). - If not + * empty it must begin and end with an alphanumeric character (`[a-z0-9A-Z]`). - May + * contain dashes (`-`), underscores (`_`), dots (`.`), and + * alphanumerics in between. A resource can have a maximum of 64 labels. Reserved labels are + * excluded from this count. Providing a `null` value for a key will remove that key. * * @return labels */ @@ -212,6 +245,7 @@ public boolean equals(Object o) { } CreateNetworkPayload createNetworkPayload = (CreateNetworkPayload) o; return Objects.equals(this.addressFamily, createNetworkPayload.addressFamily) + && Objects.equals(this.description, createNetworkPayload.description) && Objects.equals(this.dhcp, createNetworkPayload.dhcp) && Objects.equals(this.labels, createNetworkPayload.labels) && Objects.equals(this.name, createNetworkPayload.name) @@ -222,7 +256,8 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(addressFamily, dhcp, labels, name, routed, additionalProperties); + return Objects.hash( + addressFamily, description, dhcp, labels, name, routed, additionalProperties); } @Override @@ -230,6 +265,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CreateNetworkPayload {\n"); sb.append(" addressFamily: ").append(toIndentedString(addressFamily)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" dhcp: ").append(toIndentedString(dhcp)).append("\n"); sb.append(" labels: ").append(toIndentedString(labels)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); @@ -259,7 +295,13 @@ private String toIndentedString(Object o) { // a set of all properties/fields (JSON key names) openapiFields = new HashSet( - Arrays.asList("addressFamily", "dhcp", "labels", "name", "routed")); + Arrays.asList( + "addressFamily", + "description", + "dhcp", + "labels", + "name", + "routed")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(Arrays.asList("name")); @@ -299,6 +341,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonObj.get("addressFamily") != null && !jsonObj.get("addressFamily").isJsonNull()) { CreateNetworkAddressFamily.validateJsonElement(jsonObj.get("addressFamily")); } + if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull()) + && !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())); + } if (!jsonObj.get("name").isJsonPrimitive()) { throw new IllegalArgumentException( String.format( diff --git a/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v1api/model/CreateNicPayload.java b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v1api/model/CreateNicPayload.java index abfde85f..fcf7530e 100644 --- a/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v1api/model/CreateNicPayload.java +++ b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v1api/model/CreateNicPayload.java @@ -225,11 +225,21 @@ public CreateNicPayload labels(@javax.annotation.Nullable Object labels) { } /** - * Object that represents the labels of an object. Regex for keys: - * `^(?=.{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. The `stackit-` prefix is - * reserved and cannot be used for Keys. + * Object that represents the labels as key-value pairs of a resource. Key constraints: - May + * contain an optional domain prefix separated by a slash (`/`). - Domain prefix must + * be less than or equal to 250 characters. - Domain prefix must ba a valid DNS subdomain + * containing only lowercase alphanumerics (`[a-z0-9]`) and dashes (`-`), + * separated by dots (`.`). - Length (excluding the domain prefix) must be between 1 + * and 63 characters. - Must begin and end with an alphanumerical character + * (`[a-z0-9A-Z]`). - May contain dashes (`-`), underscores (`_`), + * dots (`.`), and alphanumerics in between. - Keys starting with the prefix + * `stackit-` or having a domain prefix of `stackit.cloud` (including its + * subdomains, e.g., `*.stackit.cloud/`) are reserved for system use. Value + * constraints: - Must be less than or equal to 63 characters long (can be empty). - If not + * empty it must begin and end with an alphanumeric character (`[a-z0-9A-Z]`). - May + * contain dashes (`-`), underscores (`_`), dots (`.`), and + * alphanumerics in between. A resource can have a maximum of 64 labels. Reserved labels are + * excluded from this count. 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/v1api/model/CreatePublicIPPayload.java b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v1api/model/CreatePublicIPPayload.java index 697fa223..3a85230f 100644 --- a/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v1api/model/CreatePublicIPPayload.java +++ b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v1api/model/CreatePublicIPPayload.java @@ -87,11 +87,21 @@ public CreatePublicIPPayload labels(@javax.annotation.Nullable Object labels) { } /** - * Object that represents the labels of an object. Regex for keys: - * `^(?=.{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. The `stackit-` prefix is - * reserved and cannot be used for Keys. + * Object that represents the labels as key-value pairs of a resource. Key constraints: - May + * contain an optional domain prefix separated by a slash (`/`). - Domain prefix must + * be less than or equal to 250 characters. - Domain prefix must ba a valid DNS subdomain + * containing only lowercase alphanumerics (`[a-z0-9]`) and dashes (`-`), + * separated by dots (`.`). - Length (excluding the domain prefix) must be between 1 + * and 63 characters. - Must begin and end with an alphanumerical character + * (`[a-z0-9A-Z]`). - May contain dashes (`-`), underscores (`_`), + * dots (`.`), and alphanumerics in between. - Keys starting with the prefix + * `stackit-` or having a domain prefix of `stackit.cloud` (including its + * subdomains, e.g., `*.stackit.cloud/`) are reserved for system use. Value + * constraints: - Must be less than or equal to 63 characters long (can be empty). - If not + * empty it must begin and end with an alphanumeric character (`[a-z0-9A-Z]`). - May + * contain dashes (`-`), underscores (`_`), dots (`.`), and + * alphanumerics in between. A resource can have a maximum of 64 labels. Reserved labels are + * excluded from this count. 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/v1api/model/CreateSecurityGroupPayload.java b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v1api/model/CreateSecurityGroupPayload.java index 662c4778..82b40274 100644 --- a/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v1api/model/CreateSecurityGroupPayload.java +++ b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v1api/model/CreateSecurityGroupPayload.java @@ -133,11 +133,21 @@ public CreateSecurityGroupPayload labels(@javax.annotation.Nullable Object label } /** - * Object that represents the labels of an object. Regex for keys: - * `^(?=.{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. The `stackit-` prefix is - * reserved and cannot be used for Keys. + * Object that represents the labels as key-value pairs of a resource. Key constraints: - May + * contain an optional domain prefix separated by a slash (`/`). - Domain prefix must + * be less than or equal to 250 characters. - Domain prefix must ba a valid DNS subdomain + * containing only lowercase alphanumerics (`[a-z0-9]`) and dashes (`-`), + * separated by dots (`.`). - Length (excluding the domain prefix) must be between 1 + * and 63 characters. - Must begin and end with an alphanumerical character + * (`[a-z0-9A-Z]`). - May contain dashes (`-`), underscores (`_`), + * dots (`.`), and alphanumerics in between. - Keys starting with the prefix + * `stackit-` or having a domain prefix of `stackit.cloud` (including its + * subdomains, e.g., `*.stackit.cloud/`) are reserved for system use. Value + * constraints: - Must be less than or equal to 63 characters long (can be empty). - If not + * empty it must begin and end with an alphanumeric character (`[a-z0-9A-Z]`). - May + * contain dashes (`-`), underscores (`_`), dots (`.`), and + * alphanumerics in between. A resource can have a maximum of 64 labels. Reserved labels are + * excluded from this count. 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/v1api/model/CreateServerPayload.java b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v1api/model/CreateServerPayload.java index f1248325..b10b7f4f 100644 --- a/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v1api/model/CreateServerPayload.java +++ b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v1api/model/CreateServerPayload.java @@ -351,11 +351,21 @@ public CreateServerPayload labels(@javax.annotation.Nullable Object labels) { } /** - * Object that represents the labels of an object. Regex for keys: - * `^(?=.{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. The `stackit-` prefix is - * reserved and cannot be used for Keys. + * Object that represents the labels as key-value pairs of a resource. Key constraints: - May + * contain an optional domain prefix separated by a slash (`/`). - Domain prefix must + * be less than or equal to 250 characters. - Domain prefix must ba a valid DNS subdomain + * containing only lowercase alphanumerics (`[a-z0-9]`) and dashes (`-`), + * separated by dots (`.`). - Length (excluding the domain prefix) must be between 1 + * and 63 characters. - Must begin and end with an alphanumerical character + * (`[a-z0-9A-Z]`). - May contain dashes (`-`), underscores (`_`), + * dots (`.`), and alphanumerics in between. - Keys starting with the prefix + * `stackit-` or having a domain prefix of `stackit.cloud` (including its + * subdomains, e.g., `*.stackit.cloud/`) are reserved for system use. Value + * constraints: - Must be less than or equal to 63 characters long (can be empty). - If not + * empty it must begin and end with an alphanumeric character (`[a-z0-9A-Z]`). - May + * contain dashes (`-`), underscores (`_`), dots (`.`), and + * alphanumerics in between. A resource can have a maximum of 64 labels. Reserved labels are + * excluded from this count. 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/v1api/model/CreateSnapshotPayload.java b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v1api/model/CreateSnapshotPayload.java index ab75445a..03c68bf5 100644 --- a/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v1api/model/CreateSnapshotPayload.java +++ b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v1api/model/CreateSnapshotPayload.java @@ -155,11 +155,21 @@ public CreateSnapshotPayload labels(@javax.annotation.Nullable Object labels) { } /** - * Object that represents the labels of an object. Regex for keys: - * `^(?=.{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. The `stackit-` prefix is - * reserved and cannot be used for Keys. + * Object that represents the labels as key-value pairs of a resource. Key constraints: - May + * contain an optional domain prefix separated by a slash (`/`). - Domain prefix must + * be less than or equal to 250 characters. - Domain prefix must ba a valid DNS subdomain + * containing only lowercase alphanumerics (`[a-z0-9]`) and dashes (`-`), + * separated by dots (`.`). - Length (excluding the domain prefix) must be between 1 + * and 63 characters. - Must begin and end with an alphanumerical character + * (`[a-z0-9A-Z]`). - May contain dashes (`-`), underscores (`_`), + * dots (`.`), and alphanumerics in between. - Keys starting with the prefix + * `stackit-` or having a domain prefix of `stackit.cloud` (including its + * subdomains, e.g., `*.stackit.cloud/`) are reserved for system use. Value + * constraints: - Must be less than or equal to 63 characters long (can be empty). - If not + * empty it must begin and end with an alphanumeric character (`[a-z0-9A-Z]`). - May + * contain dashes (`-`), underscores (`_`), dots (`.`), and + * alphanumerics in between. A resource can have a maximum of 64 labels. Reserved labels are + * excluded from this count. 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/v1api/model/CreateVolumePayload.java b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v1api/model/CreateVolumePayload.java index 6fac28e5..7ad4e64f 100644 --- a/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v1api/model/CreateVolumePayload.java +++ b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v1api/model/CreateVolumePayload.java @@ -255,11 +255,21 @@ public CreateVolumePayload labels(@javax.annotation.Nullable Object labels) { } /** - * Object that represents the labels of an object. Regex for keys: - * `^(?=.{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. The `stackit-` prefix is - * reserved and cannot be used for Keys. + * Object that represents the labels as key-value pairs of a resource. Key constraints: - May + * contain an optional domain prefix separated by a slash (`/`). - Domain prefix must + * be less than or equal to 250 characters. - Domain prefix must ba a valid DNS subdomain + * containing only lowercase alphanumerics (`[a-z0-9]`) and dashes (`-`), + * separated by dots (`.`). - Length (excluding the domain prefix) must be between 1 + * and 63 characters. - Must begin and end with an alphanumerical character + * (`[a-z0-9A-Z]`). - May contain dashes (`-`), underscores (`_`), + * dots (`.`), and alphanumerics in between. - Keys starting with the prefix + * `stackit-` or having a domain prefix of `stackit.cloud` (including its + * subdomains, e.g., `*.stackit.cloud/`) are reserved for system use. Value + * constraints: - Must be less than or equal to 63 characters long (can be empty). - If not + * empty it must begin and end with an alphanumeric character (`[a-z0-9A-Z]`). - May + * contain dashes (`-`), underscores (`_`), dots (`.`), and + * alphanumerics in between. A resource can have a maximum of 64 labels. Reserved labels are + * excluded from this count. 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/v1api/model/Image.java b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v1api/model/Image.java index 604ac770..8ed4d718 100644 --- a/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v1api/model/Image.java +++ b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v1api/model/Image.java @@ -246,11 +246,21 @@ public Image labels(@javax.annotation.Nullable Object labels) { } /** - * Object that represents the labels of an object. Regex for keys: - * `^(?=.{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. The `stackit-` prefix is - * reserved and cannot be used for Keys. + * Object that represents the labels as key-value pairs of a resource. Key constraints: - May + * contain an optional domain prefix separated by a slash (`/`). - Domain prefix must + * be less than or equal to 250 characters. - Domain prefix must ba a valid DNS subdomain + * containing only lowercase alphanumerics (`[a-z0-9]`) and dashes (`-`), + * separated by dots (`.`). - Length (excluding the domain prefix) must be between 1 + * and 63 characters. - Must begin and end with an alphanumerical character + * (`[a-z0-9A-Z]`). - May contain dashes (`-`), underscores (`_`), + * dots (`.`), and alphanumerics in between. - Keys starting with the prefix + * `stackit-` or having a domain prefix of `stackit.cloud` (including its + * subdomains, e.g., `*.stackit.cloud/`) are reserved for system use. Value + * constraints: - Must be less than or equal to 63 characters long (can be empty). - If not + * empty it must begin and end with an alphanumeric character (`[a-z0-9A-Z]`). - May + * contain dashes (`-`), underscores (`_`), dots (`.`), and + * alphanumerics in between. A resource can have a maximum of 64 labels. Reserved labels are + * excluded from this count. 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/v1api/model/Keypair.java b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v1api/model/Keypair.java index 045f6eba..14eeb5f2 100644 --- a/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v1api/model/Keypair.java +++ b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v1api/model/Keypair.java @@ -98,11 +98,21 @@ public Keypair labels(@javax.annotation.Nullable Object labels) { } /** - * Object that represents the labels of an object. Regex for keys: - * `^(?=.{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. The `stackit-` prefix is - * reserved and cannot be used for Keys. + * Object that represents the labels as key-value pairs of a resource. Key constraints: - May + * contain an optional domain prefix separated by a slash (`/`). - Domain prefix must + * be less than or equal to 250 characters. - Domain prefix must ba a valid DNS subdomain + * containing only lowercase alphanumerics (`[a-z0-9]`) and dashes (`-`), + * separated by dots (`.`). - Length (excluding the domain prefix) must be between 1 + * and 63 characters. - Must begin and end with an alphanumerical character + * (`[a-z0-9A-Z]`). - May contain dashes (`-`), underscores (`_`), + * dots (`.`), and alphanumerics in between. - Keys starting with the prefix + * `stackit-` or having a domain prefix of `stackit.cloud` (including its + * subdomains, e.g., `*.stackit.cloud/`) are reserved for system use. Value + * constraints: - Must be less than or equal to 63 characters long (can be empty). - If not + * empty it must begin and end with an alphanumeric character (`[a-z0-9A-Z]`). - May + * contain dashes (`-`), underscores (`_`), dots (`.`), and + * alphanumerics in between. A resource can have a maximum of 64 labels. Reserved labels are + * excluded from this count. 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/v1api/model/NIC.java b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v1api/model/NIC.java index 23833cc8..eaa94e74 100644 --- a/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v1api/model/NIC.java +++ b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v1api/model/NIC.java @@ -224,11 +224,21 @@ public NIC labels(@javax.annotation.Nullable Object labels) { } /** - * Object that represents the labels of an object. Regex for keys: - * `^(?=.{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. The `stackit-` prefix is - * reserved and cannot be used for Keys. + * Object that represents the labels as key-value pairs of a resource. Key constraints: - May + * contain an optional domain prefix separated by a slash (`/`). - Domain prefix must + * be less than or equal to 250 characters. - Domain prefix must ba a valid DNS subdomain + * containing only lowercase alphanumerics (`[a-z0-9]`) and dashes (`-`), + * separated by dots (`.`). - Length (excluding the domain prefix) must be between 1 + * and 63 characters. - Must begin and end with an alphanumerical character + * (`[a-z0-9A-Z]`). - May contain dashes (`-`), underscores (`_`), + * dots (`.`), and alphanumerics in between. - Keys starting with the prefix + * `stackit-` or having a domain prefix of `stackit.cloud` (including its + * subdomains, e.g., `*.stackit.cloud/`) are reserved for system use. Value + * constraints: - Must be less than or equal to 63 characters long (can be empty). - If not + * empty it must begin and end with an alphanumeric character (`[a-z0-9A-Z]`). - May + * contain dashes (`-`), underscores (`_`), dots (`.`), and + * alphanumerics in between. A resource can have a maximum of 64 labels. Reserved labels are + * excluded from this count. 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/v1api/model/Network.java b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v1api/model/Network.java index 6c3a3192..8a9bb5a7 100644 --- a/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v1api/model/Network.java +++ b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v1api/model/Network.java @@ -42,6 +42,11 @@ public class Network { @SerializedName(SERIALIZED_NAME_CREATED_AT) @javax.annotation.Nullable private OffsetDateTime createdAt; + public static final String SERIALIZED_NAME_DESCRIPTION = "description"; + + @SerializedName(SERIALIZED_NAME_DESCRIPTION) + @javax.annotation.Nullable private String description; + public static final String SERIALIZED_NAME_DHCP = "dhcp"; @SerializedName(SERIALIZED_NAME_DHCP) @@ -132,6 +137,24 @@ public Network(OffsetDateTime createdAt, OffsetDateTime updatedAt) { return createdAt; } + public Network 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 Network dhcp(@javax.annotation.Nullable Boolean dhcp) { this.dhcp = dhcp; return this; @@ -194,11 +217,21 @@ public Network labels(@javax.annotation.Nullable Object labels) { } /** - * Object that represents the labels of an object. Regex for keys: - * `^(?=.{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. The `stackit-` prefix is - * reserved and cannot be used for Keys. + * Object that represents the labels as key-value pairs of a resource. Key constraints: - May + * contain an optional domain prefix separated by a slash (`/`). - Domain prefix must + * be less than or equal to 250 characters. - Domain prefix must ba a valid DNS subdomain + * containing only lowercase alphanumerics (`[a-z0-9]`) and dashes (`-`), + * separated by dots (`.`). - Length (excluding the domain prefix) must be between 1 + * and 63 characters. - Must begin and end with an alphanumerical character + * (`[a-z0-9A-Z]`). - May contain dashes (`-`), underscores (`_`), + * dots (`.`), and alphanumerics in between. - Keys starting with the prefix + * `stackit-` or having a domain prefix of `stackit.cloud` (including its + * subdomains, e.g., `*.stackit.cloud/`) are reserved for system use. Value + * constraints: - Must be less than or equal to 63 characters long (can be empty). - If not + * empty it must begin and end with an alphanumeric character (`[a-z0-9A-Z]`). - May + * contain dashes (`-`), underscores (`_`), dots (`.`), and + * alphanumerics in between. A resource can have a maximum of 64 labels. Reserved labels are + * excluded from this count. Providing a `null` value for a key will remove that key. * * @return labels */ @@ -472,6 +505,7 @@ public boolean equals(Object o) { } Network network = (Network) o; return Objects.equals(this.createdAt, network.createdAt) + && Objects.equals(this.description, network.description) && Objects.equals(this.dhcp, network.dhcp) && Objects.equals(this.gateway, network.gateway) && Objects.equals(this.gatewayv6, network.gatewayv6) @@ -502,6 +536,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) public int hashCode() { return Objects.hash( createdAt, + description, dhcp, gateway, gatewayv6, @@ -531,6 +566,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class Network {\n"); sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" dhcp: ").append(toIndentedString(dhcp)).append("\n"); sb.append(" gateway: ").append(toIndentedString(gateway)).append("\n"); sb.append(" gatewayv6: ").append(toIndentedString(gatewayv6)).append("\n"); @@ -572,6 +608,7 @@ private String toIndentedString(Object o) { new HashSet( Arrays.asList( "createdAt", + "description", "dhcp", "gateway", "gatewayv6", @@ -621,6 +658,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull()) + && !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())); + } if ((jsonObj.get("gateway") != null && !jsonObj.get("gateway").isJsonNull()) && !jsonObj.get("gateway").isJsonPrimitive()) { throw new IllegalArgumentException( diff --git a/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v1api/model/NetworkArea.java b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v1api/model/NetworkArea.java index 694ffc38..73c8ac44 100644 --- a/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v1api/model/NetworkArea.java +++ b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v1api/model/NetworkArea.java @@ -139,11 +139,21 @@ public NetworkArea labels(@javax.annotation.Nullable Object labels) { } /** - * Object that represents the labels of an object. Regex for keys: - * `^(?=.{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. The `stackit-` prefix is - * reserved and cannot be used for Keys. + * Object that represents the labels as key-value pairs of a resource. Key constraints: - May + * contain an optional domain prefix separated by a slash (`/`). - Domain prefix must + * be less than or equal to 250 characters. - Domain prefix must ba a valid DNS subdomain + * containing only lowercase alphanumerics (`[a-z0-9]`) and dashes (`-`), + * separated by dots (`.`). - Length (excluding the domain prefix) must be between 1 + * and 63 characters. - Must begin and end with an alphanumerical character + * (`[a-z0-9A-Z]`). - May contain dashes (`-`), underscores (`_`), + * dots (`.`), and alphanumerics in between. - Keys starting with the prefix + * `stackit-` or having a domain prefix of `stackit.cloud` (including its + * subdomains, e.g., `*.stackit.cloud/`) are reserved for system use. Value + * constraints: - Must be less than or equal to 63 characters long (can be empty). - If not + * empty it must begin and end with an alphanumeric character (`[a-z0-9A-Z]`). - May + * contain dashes (`-`), underscores (`_`), dots (`.`), and + * alphanumerics in between. A resource can have a maximum of 64 labels. Reserved labels are + * excluded from this count. 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/v1api/model/PartialUpdateNetworkAreaPayload.java b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v1api/model/PartialUpdateNetworkAreaPayload.java index 36c1f9f0..7b7e114f 100644 --- a/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v1api/model/PartialUpdateNetworkAreaPayload.java +++ b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v1api/model/PartialUpdateNetworkAreaPayload.java @@ -75,11 +75,21 @@ public PartialUpdateNetworkAreaPayload labels(@javax.annotation.Nullable Object } /** - * Object that represents the labels of an object. Regex for keys: - * `^(?=.{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. The `stackit-` prefix is - * reserved and cannot be used for Keys. + * Object that represents the labels as key-value pairs of a resource. Key constraints: - May + * contain an optional domain prefix separated by a slash (`/`). - Domain prefix must + * be less than or equal to 250 characters. - Domain prefix must ba a valid DNS subdomain + * containing only lowercase alphanumerics (`[a-z0-9]`) and dashes (`-`), + * separated by dots (`.`). - Length (excluding the domain prefix) must be between 1 + * and 63 characters. - Must begin and end with an alphanumerical character + * (`[a-z0-9A-Z]`). - May contain dashes (`-`), underscores (`_`), + * dots (`.`), and alphanumerics in between. - Keys starting with the prefix + * `stackit-` or having a domain prefix of `stackit.cloud` (including its + * subdomains, e.g., `*.stackit.cloud/`) are reserved for system use. Value + * constraints: - Must be less than or equal to 63 characters long (can be empty). - If not + * empty it must begin and end with an alphanumeric character (`[a-z0-9A-Z]`). - May + * contain dashes (`-`), underscores (`_`), dots (`.`), and + * alphanumerics in between. A resource can have a maximum of 64 labels. Reserved labels are + * excluded from this count. 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/v1api/model/PartialUpdateNetworkPayload.java b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v1api/model/PartialUpdateNetworkPayload.java index b72e0dd7..e66af204 100644 --- a/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v1api/model/PartialUpdateNetworkPayload.java +++ b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v1api/model/PartialUpdateNetworkPayload.java @@ -38,6 +38,11 @@ public class PartialUpdateNetworkPayload { @SerializedName(SERIALIZED_NAME_ADDRESS_FAMILY) @javax.annotation.Nullable private UpdateNetworkAddressFamily addressFamily; + public static final String SERIALIZED_NAME_DESCRIPTION = "description"; + + @SerializedName(SERIALIZED_NAME_DESCRIPTION) + @javax.annotation.Nullable private String description; + public static final String SERIALIZED_NAME_DHCP = "dhcp"; @SerializedName(SERIALIZED_NAME_DHCP) @@ -80,6 +85,24 @@ public void setAddressFamily( this.addressFamily = addressFamily; } + public PartialUpdateNetworkPayload 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 PartialUpdateNetworkPayload dhcp(@javax.annotation.Nullable Boolean dhcp) { this.dhcp = dhcp; return this; @@ -104,11 +127,21 @@ public PartialUpdateNetworkPayload labels(@javax.annotation.Nullable Object labe } /** - * Object that represents the labels of an object. Regex for keys: - * `^(?=.{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. The `stackit-` prefix is - * reserved and cannot be used for Keys. + * Object that represents the labels as key-value pairs of a resource. Key constraints: - May + * contain an optional domain prefix separated by a slash (`/`). - Domain prefix must + * be less than or equal to 250 characters. - Domain prefix must ba a valid DNS subdomain + * containing only lowercase alphanumerics (`[a-z0-9]`) and dashes (`-`), + * separated by dots (`.`). - Length (excluding the domain prefix) must be between 1 + * and 63 characters. - Must begin and end with an alphanumerical character + * (`[a-z0-9A-Z]`). - May contain dashes (`-`), underscores (`_`), + * dots (`.`), and alphanumerics in between. - Keys starting with the prefix + * `stackit-` or having a domain prefix of `stackit.cloud` (including its + * subdomains, e.g., `*.stackit.cloud/`) are reserved for system use. Value + * constraints: - Must be less than or equal to 63 characters long (can be empty). - If not + * empty it must begin and end with an alphanumeric character (`[a-z0-9A-Z]`). - May + * contain dashes (`-`), underscores (`_`), dots (`.`), and + * alphanumerics in between. A resource can have a maximum of 64 labels. Reserved labels are + * excluded from this count. Providing a `null` value for a key will remove that key. * * @return labels */ @@ -210,6 +243,7 @@ public boolean equals(Object o) { } PartialUpdateNetworkPayload partialUpdateNetworkPayload = (PartialUpdateNetworkPayload) o; return Objects.equals(this.addressFamily, partialUpdateNetworkPayload.addressFamily) + && Objects.equals(this.description, partialUpdateNetworkPayload.description) && Objects.equals(this.dhcp, partialUpdateNetworkPayload.dhcp) && Objects.equals(this.labels, partialUpdateNetworkPayload.labels) && Objects.equals(this.name, partialUpdateNetworkPayload.name) @@ -221,7 +255,8 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(addressFamily, dhcp, labels, name, routed, additionalProperties); + return Objects.hash( + addressFamily, description, dhcp, labels, name, routed, additionalProperties); } @Override @@ -229,6 +264,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class PartialUpdateNetworkPayload {\n"); sb.append(" addressFamily: ").append(toIndentedString(addressFamily)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" dhcp: ").append(toIndentedString(dhcp)).append("\n"); sb.append(" labels: ").append(toIndentedString(labels)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); @@ -258,7 +294,13 @@ private String toIndentedString(Object o) { // a set of all properties/fields (JSON key names) openapiFields = new HashSet( - Arrays.asList("addressFamily", "dhcp", "labels", "name", "routed")); + Arrays.asList( + "addressFamily", + "description", + "dhcp", + "labels", + "name", + "routed")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -287,6 +329,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonObj.get("addressFamily") != null && !jsonObj.get("addressFamily").isJsonNull()) { UpdateNetworkAddressFamily.validateJsonElement(jsonObj.get("addressFamily")); } + if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull()) + && !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())); + } 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/v1api/model/PublicIp.java b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v1api/model/PublicIp.java index c73d44fa..42ae7826 100644 --- a/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v1api/model/PublicIp.java +++ b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v1api/model/PublicIp.java @@ -87,11 +87,21 @@ public PublicIp labels(@javax.annotation.Nullable Object labels) { } /** - * Object that represents the labels of an object. Regex for keys: - * `^(?=.{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. The `stackit-` prefix is - * reserved and cannot be used for Keys. + * Object that represents the labels as key-value pairs of a resource. Key constraints: - May + * contain an optional domain prefix separated by a slash (`/`). - Domain prefix must + * be less than or equal to 250 characters. - Domain prefix must ba a valid DNS subdomain + * containing only lowercase alphanumerics (`[a-z0-9]`) and dashes (`-`), + * separated by dots (`.`). - Length (excluding the domain prefix) must be between 1 + * and 63 characters. - Must begin and end with an alphanumerical character + * (`[a-z0-9A-Z]`). - May contain dashes (`-`), underscores (`_`), + * dots (`.`), and alphanumerics in between. - Keys starting with the prefix + * `stackit-` or having a domain prefix of `stackit.cloud` (including its + * subdomains, e.g., `*.stackit.cloud/`) are reserved for system use. Value + * constraints: - Must be less than or equal to 63 characters long (can be empty). - If not + * empty it must begin and end with an alphanumeric character (`[a-z0-9A-Z]`). - May + * contain dashes (`-`), underscores (`_`), dots (`.`), and + * alphanumerics in between. A resource can have a maximum of 64 labels. Reserved labels are + * excluded from this count. 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/v1api/model/Route.java b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v1api/model/Route.java index e7f89d3b..60c59807 100644 --- a/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v1api/model/Route.java +++ b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v1api/model/Route.java @@ -91,11 +91,21 @@ public Route labels(@javax.annotation.Nullable Object labels) { } /** - * Object that represents the labels of an object. Regex for keys: - * `^(?=.{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. The `stackit-` prefix is - * reserved and cannot be used for Keys. + * Object that represents the labels as key-value pairs of a resource. Key constraints: - May + * contain an optional domain prefix separated by a slash (`/`). - Domain prefix must + * be less than or equal to 250 characters. - Domain prefix must ba a valid DNS subdomain + * containing only lowercase alphanumerics (`[a-z0-9]`) and dashes (`-`), + * separated by dots (`.`). - Length (excluding the domain prefix) must be between 1 + * and 63 characters. - Must begin and end with an alphanumerical character + * (`[a-z0-9A-Z]`). - May contain dashes (`-`), underscores (`_`), + * dots (`.`), and alphanumerics in between. - Keys starting with the prefix + * `stackit-` or having a domain prefix of `stackit.cloud` (including its + * subdomains, e.g., `*.stackit.cloud/`) are reserved for system use. Value + * constraints: - Must be less than or equal to 63 characters long (can be empty). - If not + * empty it must begin and end with an alphanumeric character (`[a-z0-9A-Z]`). - May + * contain dashes (`-`), underscores (`_`), dots (`.`), and + * alphanumerics in between. A resource can have a maximum of 64 labels. Reserved labels are + * excluded from this count. 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/v1api/model/SecurityGroup.java b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v1api/model/SecurityGroup.java index 939310be..67a8014f 100644 --- a/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v1api/model/SecurityGroup.java +++ b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v1api/model/SecurityGroup.java @@ -133,11 +133,21 @@ public SecurityGroup labels(@javax.annotation.Nullable Object labels) { } /** - * Object that represents the labels of an object. Regex for keys: - * `^(?=.{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. The `stackit-` prefix is - * reserved and cannot be used for Keys. + * Object that represents the labels as key-value pairs of a resource. Key constraints: - May + * contain an optional domain prefix separated by a slash (`/`). - Domain prefix must + * be less than or equal to 250 characters. - Domain prefix must ba a valid DNS subdomain + * containing only lowercase alphanumerics (`[a-z0-9]`) and dashes (`-`), + * separated by dots (`.`). - Length (excluding the domain prefix) must be between 1 + * and 63 characters. - Must begin and end with an alphanumerical character + * (`[a-z0-9A-Z]`). - May contain dashes (`-`), underscores (`_`), + * dots (`.`), and alphanumerics in between. - Keys starting with the prefix + * `stackit-` or having a domain prefix of `stackit.cloud` (including its + * subdomains, e.g., `*.stackit.cloud/`) are reserved for system use. Value + * constraints: - Must be less than or equal to 63 characters long (can be empty). - If not + * empty it must begin and end with an alphanumeric character (`[a-z0-9A-Z]`). - May + * contain dashes (`-`), underscores (`_`), dots (`.`), and + * alphanumerics in between. A resource can have a maximum of 64 labels. Reserved labels are + * excluded from this count. 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/v1api/model/Server.java b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v1api/model/Server.java index 925d8eb0..4b999f2f 100644 --- a/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v1api/model/Server.java +++ b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v1api/model/Server.java @@ -350,11 +350,21 @@ public Server labels(@javax.annotation.Nullable Object labels) { } /** - * Object that represents the labels of an object. Regex for keys: - * `^(?=.{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. The `stackit-` prefix is - * reserved and cannot be used for Keys. + * Object that represents the labels as key-value pairs of a resource. Key constraints: - May + * contain an optional domain prefix separated by a slash (`/`). - Domain prefix must + * be less than or equal to 250 characters. - Domain prefix must ba a valid DNS subdomain + * containing only lowercase alphanumerics (`[a-z0-9]`) and dashes (`-`), + * separated by dots (`.`). - Length (excluding the domain prefix) must be between 1 + * and 63 characters. - Must begin and end with an alphanumerical character + * (`[a-z0-9A-Z]`). - May contain dashes (`-`), underscores (`_`), + * dots (`.`), and alphanumerics in between. - Keys starting with the prefix + * `stackit-` or having a domain prefix of `stackit.cloud` (including its + * subdomains, e.g., `*.stackit.cloud/`) are reserved for system use. Value + * constraints: - Must be less than or equal to 63 characters long (can be empty). - If not + * empty it must begin and end with an alphanumeric character (`[a-z0-9A-Z]`). - May + * contain dashes (`-`), underscores (`_`), dots (`.`), and + * alphanumerics in between. A resource can have a maximum of 64 labels. Reserved labels are + * excluded from this count. 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/v1api/model/Snapshot.java b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v1api/model/Snapshot.java index c9f90a9f..3b1684c9 100644 --- a/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v1api/model/Snapshot.java +++ b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v1api/model/Snapshot.java @@ -155,11 +155,21 @@ public Snapshot labels(@javax.annotation.Nullable Object labels) { } /** - * Object that represents the labels of an object. Regex for keys: - * `^(?=.{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. The `stackit-` prefix is - * reserved and cannot be used for Keys. + * Object that represents the labels as key-value pairs of a resource. Key constraints: - May + * contain an optional domain prefix separated by a slash (`/`). - Domain prefix must + * be less than or equal to 250 characters. - Domain prefix must ba a valid DNS subdomain + * containing only lowercase alphanumerics (`[a-z0-9]`) and dashes (`-`), + * separated by dots (`.`). - Length (excluding the domain prefix) must be between 1 + * and 63 characters. - Must begin and end with an alphanumerical character + * (`[a-z0-9A-Z]`). - May contain dashes (`-`), underscores (`_`), + * dots (`.`), and alphanumerics in between. - Keys starting with the prefix + * `stackit-` or having a domain prefix of `stackit.cloud` (including its + * subdomains, e.g., `*.stackit.cloud/`) are reserved for system use. Value + * constraints: - Must be less than or equal to 63 characters long (can be empty). - If not + * empty it must begin and end with an alphanumeric character (`[a-z0-9A-Z]`). - May + * contain dashes (`-`), underscores (`_`), dots (`.`), and + * alphanumerics in between. A resource can have a maximum of 64 labels. Reserved labels are + * excluded from this count. 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/v1api/model/UpdateBackupPayload.java b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v1api/model/UpdateBackupPayload.java index d0541ed2..eb96861a 100644 --- a/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v1api/model/UpdateBackupPayload.java +++ b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v1api/model/UpdateBackupPayload.java @@ -179,11 +179,21 @@ public UpdateBackupPayload labels(@javax.annotation.Nullable Object labels) { } /** - * Object that represents the labels of an object. Regex for keys: - * `^(?=.{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. The `stackit-` prefix is - * reserved and cannot be used for Keys. + * Object that represents the labels as key-value pairs of a resource. Key constraints: - May + * contain an optional domain prefix separated by a slash (`/`). - Domain prefix must + * be less than or equal to 250 characters. - Domain prefix must ba a valid DNS subdomain + * containing only lowercase alphanumerics (`[a-z0-9]`) and dashes (`-`), + * separated by dots (`.`). - Length (excluding the domain prefix) must be between 1 + * and 63 characters. - Must begin and end with an alphanumerical character + * (`[a-z0-9A-Z]`). - May contain dashes (`-`), underscores (`_`), + * dots (`.`), and alphanumerics in between. - Keys starting with the prefix + * `stackit-` or having a domain prefix of `stackit.cloud` (including its + * subdomains, e.g., `*.stackit.cloud/`) are reserved for system use. Value + * constraints: - Must be less than or equal to 63 characters long (can be empty). - If not + * empty it must begin and end with an alphanumeric character (`[a-z0-9A-Z]`). - May + * contain dashes (`-`), underscores (`_`), dots (`.`), and + * alphanumerics in between. A resource can have a maximum of 64 labels. Reserved labels are + * excluded from this count. 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/v1api/model/UpdateImagePayload.java b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v1api/model/UpdateImagePayload.java index 938a11aa..61a6c16a 100644 --- a/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v1api/model/UpdateImagePayload.java +++ b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v1api/model/UpdateImagePayload.java @@ -136,11 +136,21 @@ public UpdateImagePayload labels(@javax.annotation.Nullable Object labels) { } /** - * Object that represents the labels of an object. Regex for keys: - * `^(?=.{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. The `stackit-` prefix is - * reserved and cannot be used for Keys. + * Object that represents the labels as key-value pairs of a resource. Key constraints: - May + * contain an optional domain prefix separated by a slash (`/`). - Domain prefix must + * be less than or equal to 250 characters. - Domain prefix must ba a valid DNS subdomain + * containing only lowercase alphanumerics (`[a-z0-9]`) and dashes (`-`), + * separated by dots (`.`). - Length (excluding the domain prefix) must be between 1 + * and 63 characters. - Must begin and end with an alphanumerical character + * (`[a-z0-9A-Z]`). - May contain dashes (`-`), underscores (`_`), + * dots (`.`), and alphanumerics in between. - Keys starting with the prefix + * `stackit-` or having a domain prefix of `stackit.cloud` (including its + * subdomains, e.g., `*.stackit.cloud/`) are reserved for system use. Value + * constraints: - Must be less than or equal to 63 characters long (can be empty). - If not + * empty it must begin and end with an alphanumeric character (`[a-z0-9A-Z]`). - May + * contain dashes (`-`), underscores (`_`), dots (`.`), and + * alphanumerics in between. A resource can have a maximum of 64 labels. Reserved labels are + * excluded from this count. 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/v1api/model/UpdateKeyPairPayload.java b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v1api/model/UpdateKeyPairPayload.java index b23f84a3..8808ddd4 100644 --- a/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v1api/model/UpdateKeyPairPayload.java +++ b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v1api/model/UpdateKeyPairPayload.java @@ -46,11 +46,21 @@ public UpdateKeyPairPayload labels(@javax.annotation.Nullable Object labels) { } /** - * Object that represents the labels of an object. Regex for keys: - * `^(?=.{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. The `stackit-` prefix is - * reserved and cannot be used for Keys. + * Object that represents the labels as key-value pairs of a resource. Key constraints: - May + * contain an optional domain prefix separated by a slash (`/`). - Domain prefix must + * be less than or equal to 250 characters. - Domain prefix must ba a valid DNS subdomain + * containing only lowercase alphanumerics (`[a-z0-9]`) and dashes (`-`), + * separated by dots (`.`). - Length (excluding the domain prefix) must be between 1 + * and 63 characters. - Must begin and end with an alphanumerical character + * (`[a-z0-9A-Z]`). - May contain dashes (`-`), underscores (`_`), + * dots (`.`), and alphanumerics in between. - Keys starting with the prefix + * `stackit-` or having a domain prefix of `stackit.cloud` (including its + * subdomains, e.g., `*.stackit.cloud/`) are reserved for system use. Value + * constraints: - Must be less than or equal to 63 characters long (can be empty). - If not + * empty it must begin and end with an alphanumeric character (`[a-z0-9A-Z]`). - May + * contain dashes (`-`), underscores (`_`), dots (`.`), and + * alphanumerics in between. A resource can have a maximum of 64 labels. Reserved labels are + * excluded from this count. 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/v1api/model/UpdateNetworkAreaRoutePayload.java b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v1api/model/UpdateNetworkAreaRoutePayload.java index 5d5cd69a..246dcdf9 100644 --- a/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v1api/model/UpdateNetworkAreaRoutePayload.java +++ b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v1api/model/UpdateNetworkAreaRoutePayload.java @@ -46,11 +46,21 @@ public UpdateNetworkAreaRoutePayload labels(@javax.annotation.Nullable Object la } /** - * Object that represents the labels of an object. Regex for keys: - * `^(?=.{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. The `stackit-` prefix is - * reserved and cannot be used for Keys. + * Object that represents the labels as key-value pairs of a resource. Key constraints: - May + * contain an optional domain prefix separated by a slash (`/`). - Domain prefix must + * be less than or equal to 250 characters. - Domain prefix must ba a valid DNS subdomain + * containing only lowercase alphanumerics (`[a-z0-9]`) and dashes (`-`), + * separated by dots (`.`). - Length (excluding the domain prefix) must be between 1 + * and 63 characters. - Must begin and end with an alphanumerical character + * (`[a-z0-9A-Z]`). - May contain dashes (`-`), underscores (`_`), + * dots (`.`), and alphanumerics in between. - Keys starting with the prefix + * `stackit-` or having a domain prefix of `stackit.cloud` (including its + * subdomains, e.g., `*.stackit.cloud/`) are reserved for system use. Value + * constraints: - Must be less than or equal to 63 characters long (can be empty). - If not + * empty it must begin and end with an alphanumeric character (`[a-z0-9A-Z]`). - May + * contain dashes (`-`), underscores (`_`), dots (`.`), and + * alphanumerics in between. A resource can have a maximum of 64 labels. Reserved labels are + * excluded from this count. 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/v1api/model/UpdateNicPayload.java b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v1api/model/UpdateNicPayload.java index 974fd652..a6e40cd5 100644 --- a/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v1api/model/UpdateNicPayload.java +++ b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v1api/model/UpdateNicPayload.java @@ -120,11 +120,21 @@ public UpdateNicPayload labels(@javax.annotation.Nullable Object labels) { } /** - * Object that represents the labels of an object. Regex for keys: - * `^(?=.{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. The `stackit-` prefix is - * reserved and cannot be used for Keys. + * Object that represents the labels as key-value pairs of a resource. Key constraints: - May + * contain an optional domain prefix separated by a slash (`/`). - Domain prefix must + * be less than or equal to 250 characters. - Domain prefix must ba a valid DNS subdomain + * containing only lowercase alphanumerics (`[a-z0-9]`) and dashes (`-`), + * separated by dots (`.`). - Length (excluding the domain prefix) must be between 1 + * and 63 characters. - Must begin and end with an alphanumerical character + * (`[a-z0-9A-Z]`). - May contain dashes (`-`), underscores (`_`), + * dots (`.`), and alphanumerics in between. - Keys starting with the prefix + * `stackit-` or having a domain prefix of `stackit.cloud` (including its + * subdomains, e.g., `*.stackit.cloud/`) are reserved for system use. Value + * constraints: - Must be less than or equal to 63 characters long (can be empty). - If not + * empty it must begin and end with an alphanumeric character (`[a-z0-9A-Z]`). - May + * contain dashes (`-`), underscores (`_`), dots (`.`), and + * alphanumerics in between. A resource can have a maximum of 64 labels. Reserved labels are + * excluded from this count. 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/v1api/model/UpdatePublicIPPayload.java b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v1api/model/UpdatePublicIPPayload.java index 5fdb7c71..f89b9cbc 100644 --- a/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v1api/model/UpdatePublicIPPayload.java +++ b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v1api/model/UpdatePublicIPPayload.java @@ -87,11 +87,21 @@ public UpdatePublicIPPayload labels(@javax.annotation.Nullable Object labels) { } /** - * Object that represents the labels of an object. Regex for keys: - * `^(?=.{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. The `stackit-` prefix is - * reserved and cannot be used for Keys. + * Object that represents the labels as key-value pairs of a resource. Key constraints: - May + * contain an optional domain prefix separated by a slash (`/`). - Domain prefix must + * be less than or equal to 250 characters. - Domain prefix must ba a valid DNS subdomain + * containing only lowercase alphanumerics (`[a-z0-9]`) and dashes (`-`), + * separated by dots (`.`). - Length (excluding the domain prefix) must be between 1 + * and 63 characters. - Must begin and end with an alphanumerical character + * (`[a-z0-9A-Z]`). - May contain dashes (`-`), underscores (`_`), + * dots (`.`), and alphanumerics in between. - Keys starting with the prefix + * `stackit-` or having a domain prefix of `stackit.cloud` (including its + * subdomains, e.g., `*.stackit.cloud/`) are reserved for system use. Value + * constraints: - Must be less than or equal to 63 characters long (can be empty). - If not + * empty it must begin and end with an alphanumeric character (`[a-z0-9A-Z]`). - May + * contain dashes (`-`), underscores (`_`), dots (`.`), and + * alphanumerics in between. A resource can have a maximum of 64 labels. Reserved labels are + * excluded from this count. 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/v1api/model/UpdateSecurityGroupPayload.java b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v1api/model/UpdateSecurityGroupPayload.java index 1ab40acf..f7cec935 100644 --- a/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v1api/model/UpdateSecurityGroupPayload.java +++ b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v1api/model/UpdateSecurityGroupPayload.java @@ -74,11 +74,21 @@ public UpdateSecurityGroupPayload labels(@javax.annotation.Nullable Object label } /** - * Object that represents the labels of an object. Regex for keys: - * `^(?=.{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. The `stackit-` prefix is - * reserved and cannot be used for Keys. + * Object that represents the labels as key-value pairs of a resource. Key constraints: - May + * contain an optional domain prefix separated by a slash (`/`). - Domain prefix must + * be less than or equal to 250 characters. - Domain prefix must ba a valid DNS subdomain + * containing only lowercase alphanumerics (`[a-z0-9]`) and dashes (`-`), + * separated by dots (`.`). - Length (excluding the domain prefix) must be between 1 + * and 63 characters. - Must begin and end with an alphanumerical character + * (`[a-z0-9A-Z]`). - May contain dashes (`-`), underscores (`_`), + * dots (`.`), and alphanumerics in between. - Keys starting with the prefix + * `stackit-` or having a domain prefix of `stackit.cloud` (including its + * subdomains, e.g., `*.stackit.cloud/`) are reserved for system use. Value + * constraints: - Must be less than or equal to 63 characters long (can be empty). - If not + * empty it must begin and end with an alphanumeric character (`[a-z0-9A-Z]`). - May + * contain dashes (`-`), underscores (`_`), dots (`.`), and + * alphanumerics in between. A resource can have a maximum of 64 labels. Reserved labels are + * excluded from this count. 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/v1api/model/UpdateServerPayload.java b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v1api/model/UpdateServerPayload.java index 6393b9d5..e8188609 100644 --- a/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v1api/model/UpdateServerPayload.java +++ b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v1api/model/UpdateServerPayload.java @@ -56,11 +56,21 @@ public UpdateServerPayload labels(@javax.annotation.Nullable Object labels) { } /** - * Object that represents the labels of an object. Regex for keys: - * `^(?=.{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. The `stackit-` prefix is - * reserved and cannot be used for Keys. + * Object that represents the labels as key-value pairs of a resource. Key constraints: - May + * contain an optional domain prefix separated by a slash (`/`). - Domain prefix must + * be less than or equal to 250 characters. - Domain prefix must ba a valid DNS subdomain + * containing only lowercase alphanumerics (`[a-z0-9]`) and dashes (`-`), + * separated by dots (`.`). - Length (excluding the domain prefix) must be between 1 + * and 63 characters. - Must begin and end with an alphanumerical character + * (`[a-z0-9A-Z]`). - May contain dashes (`-`), underscores (`_`), + * dots (`.`), and alphanumerics in between. - Keys starting with the prefix + * `stackit-` or having a domain prefix of `stackit.cloud` (including its + * subdomains, e.g., `*.stackit.cloud/`) are reserved for system use. Value + * constraints: - Must be less than or equal to 63 characters long (can be empty). - If not + * empty it must begin and end with an alphanumeric character (`[a-z0-9A-Z]`). - May + * contain dashes (`-`), underscores (`_`), dots (`.`), and + * alphanumerics in between. A resource can have a maximum of 64 labels. Reserved labels are + * excluded from this count. 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/v1api/model/UpdateSnapshotPayload.java b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v1api/model/UpdateSnapshotPayload.java index 98587294..350c9699 100644 --- a/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v1api/model/UpdateSnapshotPayload.java +++ b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v1api/model/UpdateSnapshotPayload.java @@ -74,11 +74,21 @@ public UpdateSnapshotPayload labels(@javax.annotation.Nullable Object labels) { } /** - * Object that represents the labels of an object. Regex for keys: - * `^(?=.{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. The `stackit-` prefix is - * reserved and cannot be used for Keys. + * Object that represents the labels as key-value pairs of a resource. Key constraints: - May + * contain an optional domain prefix separated by a slash (`/`). - Domain prefix must + * be less than or equal to 250 characters. - Domain prefix must ba a valid DNS subdomain + * containing only lowercase alphanumerics (`[a-z0-9]`) and dashes (`-`), + * separated by dots (`.`). - Length (excluding the domain prefix) must be between 1 + * and 63 characters. - Must begin and end with an alphanumerical character + * (`[a-z0-9A-Z]`). - May contain dashes (`-`), underscores (`_`), + * dots (`.`), and alphanumerics in between. - Keys starting with the prefix + * `stackit-` or having a domain prefix of `stackit.cloud` (including its + * subdomains, e.g., `*.stackit.cloud/`) are reserved for system use. Value + * constraints: - Must be less than or equal to 63 characters long (can be empty). - If not + * empty it must begin and end with an alphanumeric character (`[a-z0-9A-Z]`). - May + * contain dashes (`-`), underscores (`_`), dots (`.`), and + * alphanumerics in between. A resource can have a maximum of 64 labels. Reserved labels are + * excluded from this count. 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/v1api/model/UpdateVolumePayload.java b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v1api/model/UpdateVolumePayload.java index bd6eac7e..203b926d 100644 --- a/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v1api/model/UpdateVolumePayload.java +++ b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v1api/model/UpdateVolumePayload.java @@ -120,11 +120,21 @@ public UpdateVolumePayload labels(@javax.annotation.Nullable Object labels) { } /** - * Object that represents the labels of an object. Regex for keys: - * `^(?=.{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. The `stackit-` prefix is - * reserved and cannot be used for Keys. + * Object that represents the labels as key-value pairs of a resource. Key constraints: - May + * contain an optional domain prefix separated by a slash (`/`). - Domain prefix must + * be less than or equal to 250 characters. - Domain prefix must ba a valid DNS subdomain + * containing only lowercase alphanumerics (`[a-z0-9]`) and dashes (`-`), + * separated by dots (`.`). - Length (excluding the domain prefix) must be between 1 + * and 63 characters. - Must begin and end with an alphanumerical character + * (`[a-z0-9A-Z]`). - May contain dashes (`-`), underscores (`_`), + * dots (`.`), and alphanumerics in between. - Keys starting with the prefix + * `stackit-` or having a domain prefix of `stackit.cloud` (including its + * subdomains, e.g., `*.stackit.cloud/`) are reserved for system use. Value + * constraints: - Must be less than or equal to 63 characters long (can be empty). - If not + * empty it must begin and end with an alphanumeric character (`[a-z0-9A-Z]`). - May + * contain dashes (`-`), underscores (`_`), dots (`.`), and + * alphanumerics in between. A resource can have a maximum of 64 labels. Reserved labels are + * excluded from this count. 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/v1api/model/Volume.java b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v1api/model/Volume.java index 71dad1b9..4278b578 100644 --- a/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v1api/model/Volume.java +++ b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v1api/model/Volume.java @@ -255,11 +255,21 @@ public Volume labels(@javax.annotation.Nullable Object labels) { } /** - * Object that represents the labels of an object. Regex for keys: - * `^(?=.{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. The `stackit-` prefix is - * reserved and cannot be used for Keys. + * Object that represents the labels as key-value pairs of a resource. Key constraints: - May + * contain an optional domain prefix separated by a slash (`/`). - Domain prefix must + * be less than or equal to 250 characters. - Domain prefix must ba a valid DNS subdomain + * containing only lowercase alphanumerics (`[a-z0-9]`) and dashes (`-`), + * separated by dots (`.`). - Length (excluding the domain prefix) must be between 1 + * and 63 characters. - Must begin and end with an alphanumerical character + * (`[a-z0-9A-Z]`). - May contain dashes (`-`), underscores (`_`), + * dots (`.`), and alphanumerics in between. - Keys starting with the prefix + * `stackit-` or having a domain prefix of `stackit.cloud` (including its + * subdomains, e.g., `*.stackit.cloud/`) are reserved for system use. Value + * constraints: - Must be less than or equal to 63 characters long (can be empty). - If not + * empty it must begin and end with an alphanumeric character (`[a-z0-9A-Z]`). - May + * contain dashes (`-`), underscores (`_`), dots (`.`), and + * alphanumerics in between. A resource can have a maximum of 64 labels. Reserved labels are + * excluded from this count. 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/v1api/model/VolumePerformanceClass.java b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v1api/model/VolumePerformanceClass.java index 2c6de20b..ba6cc7df 100644 --- a/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v1api/model/VolumePerformanceClass.java +++ b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v1api/model/VolumePerformanceClass.java @@ -103,11 +103,21 @@ public VolumePerformanceClass labels(@javax.annotation.Nullable Object labels) { } /** - * Object that represents the labels of an object. Regex for keys: - * `^(?=.{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. The `stackit-` prefix is - * reserved and cannot be used for Keys. + * Object that represents the labels as key-value pairs of a resource. Key constraints: - May + * contain an optional domain prefix separated by a slash (`/`). - Domain prefix must + * be less than or equal to 250 characters. - Domain prefix must ba a valid DNS subdomain + * containing only lowercase alphanumerics (`[a-z0-9]`) and dashes (`-`), + * separated by dots (`.`). - Length (excluding the domain prefix) must be between 1 + * and 63 characters. - Must begin and end with an alphanumerical character + * (`[a-z0-9A-Z]`). - May contain dashes (`-`), underscores (`_`), + * dots (`.`), and alphanumerics in between. - Keys starting with the prefix + * `stackit-` or having a domain prefix of `stackit.cloud` (including its + * subdomains, e.g., `*.stackit.cloud/`) are reserved for system use. Value + * constraints: - Must be less than or equal to 63 characters long (can be empty). - If not + * empty it must begin and end with an alphanumeric character (`[a-z0-9A-Z]`). - May + * contain dashes (`-`), underscores (`_`), dots (`.`), and + * alphanumerics in between. A resource can have a maximum of 64 labels. Reserved labels are + * excluded from this count. 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/v2alpha1api/api/DefaultApi.java b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v2alpha1api/api/DefaultApi.java index 26957163..97a5d718 100644 --- a/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v2alpha1api/api/DefaultApi.java +++ b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v2alpha1api/api/DefaultApi.java @@ -7708,6 +7708,268 @@ public okhttp3.Call listRoutesOfRoutingTableAsync( return localVarCall; } + /** + * Build call for listRoutesOfRoutingTableVPC + * + * @param projectId The identifier (ID) of a STACKIT Project. (required) + * @param vpcId The unique identifier (ID) of the target STACKIT VPC in the request path. + * (required) + * @param region The STACKIT Region of the resources. (required) + * @param routingTableId The identifier (ID) of a STACKIT Routing Table. (required) + * @param filter Filter resources by fields. A subset of expr-lang is supported. See + * https://expr-lang.org/docs/language-definition for usage details. (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + *
Response Details
Status Code Description Response Headers
200 List routes of a VPC routing table including system, dynamic, service and static routes. -
400 A bad request. -
401 A request which was not authorized. -
403 A request which was forbidden. -
404 The object was not found. -
500 Internal Server Error, returns a 500 if something is broken on IaaS API Side. -
+ */ + public okhttp3.Call listRoutesOfRoutingTableVPCCall( + @javax.annotation.Nonnull UUID projectId, + @javax.annotation.Nonnull UUID vpcId, + @javax.annotation.Nonnull String region, + @javax.annotation.Nonnull UUID routingTableId, + @javax.annotation.Nullable String filter, + final ApiCallback _callback) + throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = + "/v2alpha1/projects/{projectId}/vpcs/{vpcId}/regions/{region}/routing-tables/{routingTableId}/routes" + .replace( + "{" + "projectId" + "}", + localVarApiClient.escapeString(projectId.toString())) + .replace( + "{" + "vpcId" + "}", + localVarApiClient.escapeString(vpcId.toString())) + .replace( + "{" + "region" + "}", + localVarApiClient.escapeString(region.toString())) + .replace( + "{" + "routingTableId" + "}", + localVarApiClient.escapeString(routingTableId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (filter != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("filter", filter)); + } + + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = {}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] {}; + return localVarApiClient.buildCall( + basePath, + localVarPath, + "GET", + localVarQueryParams, + localVarCollectionQueryParams, + localVarPostBody, + localVarHeaderParams, + localVarCookieParams, + localVarFormParams, + localVarAuthNames, + _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call listRoutesOfRoutingTableVPCValidateBeforeCall( + @javax.annotation.Nonnull UUID projectId, + @javax.annotation.Nonnull UUID vpcId, + @javax.annotation.Nonnull String region, + @javax.annotation.Nonnull UUID routingTableId, + @javax.annotation.Nullable String filter, + final ApiCallback _callback) + throws ApiException { + // verify the required parameter 'projectId' is set + if (projectId == null) { + throw new ApiException( + "Missing the required parameter 'projectId' when calling listRoutesOfRoutingTableVPC(Async)"); + } + + // verify the required parameter 'vpcId' is set + if (vpcId == null) { + throw new ApiException( + "Missing the required parameter 'vpcId' when calling listRoutesOfRoutingTableVPC(Async)"); + } + + // verify the required parameter 'region' is set + if (region == null) { + throw new ApiException( + "Missing the required parameter 'region' when calling listRoutesOfRoutingTableVPC(Async)"); + } + + // verify the required parameter 'routingTableId' is set + if (routingTableId == null) { + throw new ApiException( + "Missing the required parameter 'routingTableId' when calling listRoutesOfRoutingTableVPC(Async)"); + } + + return listRoutesOfRoutingTableVPCCall( + projectId, vpcId, region, routingTableId, filter, _callback); + } + + /** + * List routes of a routing table of a VPC. Get a list of routes in a VPC routing table + * including system, dynamic, service and static routes. + * + * @param projectId The identifier (ID) of a STACKIT Project. (required) + * @param vpcId The unique identifier (ID) of the target STACKIT VPC in the request path. + * (required) + * @param region The STACKIT Region of the resources. (required) + * @param routingTableId The identifier (ID) of a STACKIT Routing Table. (required) + * @param filter Filter resources by fields. A subset of expr-lang is supported. See + * https://expr-lang.org/docs/language-definition for usage details. (optional) + * @return AllRouteListResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + *
Response Details
Status Code Description Response Headers
200 List routes of a VPC routing table including system, dynamic, service and static routes. -
400 A bad request. -
401 A request which was not authorized. -
403 A request which was forbidden. -
404 The object was not found. -
500 Internal Server Error, returns a 500 if something is broken on IaaS API Side. -
+ */ + public AllRouteListResponse listRoutesOfRoutingTableVPC( + @javax.annotation.Nonnull UUID projectId, + @javax.annotation.Nonnull UUID vpcId, + @javax.annotation.Nonnull String region, + @javax.annotation.Nonnull UUID routingTableId, + @javax.annotation.Nullable String filter) + throws ApiException { + ApiResponse localVarResp = + listRoutesOfRoutingTableVPCWithHttpInfo( + projectId, vpcId, region, routingTableId, filter); + return localVarResp.getData(); + } + + /** + * List routes of a routing table of a VPC. Get a list of routes in a VPC routing table + * including system, dynamic, service and static routes. + * + * @param projectId The identifier (ID) of a STACKIT Project. (required) + * @param vpcId The unique identifier (ID) of the target STACKIT VPC in the request path. + * (required) + * @param region The STACKIT Region of the resources. (required) + * @param routingTableId The identifier (ID) of a STACKIT Routing Table. (required) + * @param filter Filter resources by fields. A subset of expr-lang is supported. See + * https://expr-lang.org/docs/language-definition for usage details. (optional) + * @return ApiResponse<AllRouteListResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + *
Response Details
Status Code Description Response Headers
200 List routes of a VPC routing table including system, dynamic, service and static routes. -
400 A bad request. -
401 A request which was not authorized. -
403 A request which was forbidden. -
404 The object was not found. -
500 Internal Server Error, returns a 500 if something is broken on IaaS API Side. -
+ */ + public ApiResponse listRoutesOfRoutingTableVPCWithHttpInfo( + @javax.annotation.Nonnull UUID projectId, + @javax.annotation.Nonnull UUID vpcId, + @javax.annotation.Nonnull String region, + @javax.annotation.Nonnull UUID routingTableId, + @javax.annotation.Nullable String filter) + throws ApiException { + okhttp3.Call localVarCall = + listRoutesOfRoutingTableVPCValidateBeforeCall( + projectId, vpcId, region, routingTableId, filter, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * List routes of a routing table of a VPC. (asynchronously) Get a list of routes in a VPC + * routing table including system, dynamic, service and static routes. + * + * @param projectId The identifier (ID) of a STACKIT Project. (required) + * @param vpcId The unique identifier (ID) of the target STACKIT VPC in the request path. + * (required) + * @param region The STACKIT Region of the resources. (required) + * @param routingTableId The identifier (ID) of a STACKIT Routing Table. (required) + * @param filter Filter resources by fields. A subset of expr-lang is supported. See + * https://expr-lang.org/docs/language-definition for usage details. (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body + * object + * @http.response.details + * + * + * + * + * + * + * + * + * + *
Response Details
Status Code Description Response Headers
200 List routes of a VPC routing table including system, dynamic, service and static routes. -
400 A bad request. -
401 A request which was not authorized. -
403 A request which was forbidden. -
404 The object was not found. -
500 Internal Server Error, returns a 500 if something is broken on IaaS API Side. -
+ */ + public okhttp3.Call listRoutesOfRoutingTableVPCAsync( + @javax.annotation.Nonnull UUID projectId, + @javax.annotation.Nonnull UUID vpcId, + @javax.annotation.Nonnull String region, + @javax.annotation.Nonnull UUID routingTableId, + @javax.annotation.Nullable String filter, + final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = + listRoutesOfRoutingTableVPCValidateBeforeCall( + projectId, vpcId, region, routingTableId, filter, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** * Build call for listRoutingTablesOfArea *