Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion services/iaas/oas_commit
Original file line number Diff line number Diff line change
@@ -1 +1 @@
43a874547d9e5b23655d0f351c47b32b46d4a19e
9c3cc6179a147347a21ffbffaa7c9436020fa529
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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;
Expand All @@ -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
*/
Expand Down Expand Up @@ -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)
Expand All @@ -222,14 +256,16 @@ 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
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");
Expand Down Expand Up @@ -259,7 +295,13 @@ private String toIndentedString(Object o) {
// a set of all properties/fields (JSON key names)
openapiFields =
new HashSet<String>(
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<String>(Arrays.asList("name"));
Expand Down Expand Up @@ -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(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -225,11 +225,21 @@ public CreateNicPayload labels(@javax.annotation.Nullable Object labels) {
}

/**
* Object that represents the labels of an object. Regex for keys:
* &#x60;^(?&#x3D;.{1,63}$)([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]$&#x60;. Regex for values:
* &#x60;^(?&#x3D;.{0,63}$)(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])*$&#x60;. Providing a
* &#x60;null&#x60; value for a key will remove that key. The &#x60;stackit-&#x60; 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 (&#x60;/&#x60;). - Domain prefix must
* be less than or equal to 250 characters. - Domain prefix must ba a valid DNS subdomain
* containing only lowercase alphanumerics (&#x60;[a-z0-9]&#x60;) and dashes (&#x60;-&#x60;),
* separated by dots (&#x60;.&#x60;). - Length (excluding the domain prefix) must be between 1
* and 63 characters. - Must begin and end with an alphanumerical character
* (&#x60;[a-z0-9A-Z]&#x60;). - May contain dashes (&#x60;-&#x60;), underscores (&#x60;_&#x60;),
* dots (&#x60;.&#x60;), and alphanumerics in between. - Keys starting with the prefix
* &#x60;stackit-&#x60; or having a domain prefix of &#x60;stackit.cloud&#x60; (including its
* subdomains, e.g., &#x60;*.stackit.cloud/&#x60;) 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 (&#x60;[a-z0-9A-Z]&#x60;). - May
* contain dashes (&#x60;-&#x60;), underscores (&#x60;_&#x60;), dots (&#x60;.&#x60;), and
* alphanumerics in between. A resource can have a maximum of 64 labels. Reserved labels are
* excluded from this count. Providing a &#x60;null&#x60; value for a key will remove that key.
*
* @return labels
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,21 @@ public CreatePublicIPPayload labels(@javax.annotation.Nullable Object labels) {
}

/**
* Object that represents the labels of an object. Regex for keys:
* &#x60;^(?&#x3D;.{1,63}$)([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]$&#x60;. Regex for values:
* &#x60;^(?&#x3D;.{0,63}$)(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])*$&#x60;. Providing a
* &#x60;null&#x60; value for a key will remove that key. The &#x60;stackit-&#x60; 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 (&#x60;/&#x60;). - Domain prefix must
* be less than or equal to 250 characters. - Domain prefix must ba a valid DNS subdomain
* containing only lowercase alphanumerics (&#x60;[a-z0-9]&#x60;) and dashes (&#x60;-&#x60;),
* separated by dots (&#x60;.&#x60;). - Length (excluding the domain prefix) must be between 1
* and 63 characters. - Must begin and end with an alphanumerical character
* (&#x60;[a-z0-9A-Z]&#x60;). - May contain dashes (&#x60;-&#x60;), underscores (&#x60;_&#x60;),
* dots (&#x60;.&#x60;), and alphanumerics in between. - Keys starting with the prefix
* &#x60;stackit-&#x60; or having a domain prefix of &#x60;stackit.cloud&#x60; (including its
* subdomains, e.g., &#x60;*.stackit.cloud/&#x60;) 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 (&#x60;[a-z0-9A-Z]&#x60;). - May
* contain dashes (&#x60;-&#x60;), underscores (&#x60;_&#x60;), dots (&#x60;.&#x60;), and
* alphanumerics in between. A resource can have a maximum of 64 labels. Reserved labels are
* excluded from this count. Providing a &#x60;null&#x60; value for a key will remove that key.
*
* @return labels
*/
Expand Down
Loading
Loading