Skip to content

Commit 6096531

Browse files
Generate iaas
1 parent 736cf2e commit 6096531

37 files changed

Lines changed: 660 additions & 185 deletions

‎services/iaas/oas_commit‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
43a874547d9e5b23655d0f351c47b32b46d4a19e
1+
a6d3cb87dff1ff59ec42fbec133834475d3d6a3c

‎services/iaas/src/main/java/cloud/stackit/sdk/iaas/v1api/model/Backup.java‎

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -179,11 +179,21 @@ public Backup labels(@javax.annotation.Nullable Object labels) {
179179
}
180180

181181
/**
182-
* Object that represents the labels of an object. Regex for keys:
183-
* `^(?=.{1,63}$)([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]$`. Regex for values:
184-
* `^(?=.{0,63}$)(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])*$`. Providing a
185-
* `null` value for a key will remove that key. The `stackit-` prefix is
186-
* reserved and cannot be used for Keys.
182+
* Object that represents the labels as key-value pairs of a resource. Key constraints: - May
183+
* contain an optional domain prefix separated by a slash (`/`). - Domain prefix must
184+
* be less than or equal to 250 characters. - Domain prefix must ba a valid DNS subdomain
185+
* containing only lowercase alphanumerics (`[a-z0-9]`) and dashes (`-`),
186+
* separated by dots (`.`). - Length (excluding the domain prefix) must be between 1
187+
* and 63 characters. - Must begin and end with an alphanumerical character
188+
* (`[a-z0-9A-Z]`). - May contain dashes (`-`), underscores (`_`),
189+
* dots (`.`), and alphanumerics in between. - Keys starting with the prefix
190+
* `stackit-` or having a domain prefix of `stackit.cloud` (including its
191+
* subdomains, e.g., `*.stackit.cloud/`) are reserved for system use. Value
192+
* constraints: - Must be less than or equal to 63 characters long (can be empty). - If not
193+
* empty it must begin and end with an alphanumeric character (`[a-z0-9A-Z]`). - May
194+
* contain dashes (`-`), underscores (`_`), dots (`.`), and
195+
* alphanumerics in between. A resource can have a maximum of 64 labels. Reserved labels are
196+
* excluded from this count. Providing a `null` value for a key will remove that key.
187197
*
188198
* @return labels
189199
*/

‎services/iaas/src/main/java/cloud/stackit/sdk/iaas/v1api/model/CreateBackupPayload.java‎

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -80,11 +80,21 @@ public CreateBackupPayload labels(@javax.annotation.Nullable Object labels) {
8080
}
8181

8282
/**
83-
* Object that represents the labels of an object. Regex for keys:
84-
* `^(?=.{1,63}$)([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]$`. Regex for values:
85-
* `^(?=.{0,63}$)(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])*$`. Providing a
86-
* `null` value for a key will remove that key. The `stackit-` prefix is
87-
* reserved and cannot be used for Keys.
83+
* Object that represents the labels as key-value pairs of a resource. Key constraints: - May
84+
* contain an optional domain prefix separated by a slash (`/`). - Domain prefix must
85+
* be less than or equal to 250 characters. - Domain prefix must ba a valid DNS subdomain
86+
* containing only lowercase alphanumerics (`[a-z0-9]`) and dashes (`-`),
87+
* separated by dots (`.`). - Length (excluding the domain prefix) must be between 1
88+
* and 63 characters. - Must begin and end with an alphanumerical character
89+
* (`[a-z0-9A-Z]`). - May contain dashes (`-`), underscores (`_`),
90+
* dots (`.`), and alphanumerics in between. - Keys starting with the prefix
91+
* `stackit-` or having a domain prefix of `stackit.cloud` (including its
92+
* subdomains, e.g., `*.stackit.cloud/`) are reserved for system use. Value
93+
* constraints: - Must be less than or equal to 63 characters long (can be empty). - If not
94+
* empty it must begin and end with an alphanumeric character (`[a-z0-9A-Z]`). - May
95+
* contain dashes (`-`), underscores (`_`), dots (`.`), and
96+
* alphanumerics in between. A resource can have a maximum of 64 labels. Reserved labels are
97+
* excluded from this count. Providing a `null` value for a key will remove that key.
8898
*
8999
* @return labels
90100
*/

‎services/iaas/src/main/java/cloud/stackit/sdk/iaas/v1api/model/CreateImagePayload.java‎

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -246,11 +246,21 @@ public CreateImagePayload labels(@javax.annotation.Nullable Object labels) {
246246
}
247247

248248
/**
249-
* Object that represents the labels of an object. Regex for keys:
250-
* `^(?=.{1,63}$)([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]$`. Regex for values:
251-
* `^(?=.{0,63}$)(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])*$`. Providing a
252-
* `null` value for a key will remove that key. The `stackit-` prefix is
253-
* reserved and cannot be used for Keys.
249+
* Object that represents the labels as key-value pairs of a resource. Key constraints: - May
250+
* contain an optional domain prefix separated by a slash (`/`). - Domain prefix must
251+
* be less than or equal to 250 characters. - Domain prefix must ba a valid DNS subdomain
252+
* containing only lowercase alphanumerics (`[a-z0-9]`) and dashes (`-`),
253+
* separated by dots (`.`). - Length (excluding the domain prefix) must be between 1
254+
* and 63 characters. - Must begin and end with an alphanumerical character
255+
* (`[a-z0-9A-Z]`). - May contain dashes (`-`), underscores (`_`),
256+
* dots (`.`), and alphanumerics in between. - Keys starting with the prefix
257+
* `stackit-` or having a domain prefix of `stackit.cloud` (including its
258+
* subdomains, e.g., `*.stackit.cloud/`) are reserved for system use. Value
259+
* constraints: - Must be less than or equal to 63 characters long (can be empty). - If not
260+
* empty it must begin and end with an alphanumeric character (`[a-z0-9A-Z]`). - May
261+
* contain dashes (`-`), underscores (`_`), dots (`.`), and
262+
* alphanumerics in between. A resource can have a maximum of 64 labels. Reserved labels are
263+
* excluded from this count. Providing a `null` value for a key will remove that key.
254264
*
255265
* @return labels
256266
*/

‎services/iaas/src/main/java/cloud/stackit/sdk/iaas/v1api/model/CreateKeyPairPayload.java‎

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -99,11 +99,21 @@ public CreateKeyPairPayload labels(@javax.annotation.Nullable Object labels) {
9999
}
100100

101101
/**
102-
* Object that represents the labels of an object. Regex for keys:
103-
* `^(?=.{1,63}$)([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]$`. Regex for values:
104-
* `^(?=.{0,63}$)(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])*$`. Providing a
105-
* `null` value for a key will remove that key. The `stackit-` prefix is
106-
* reserved and cannot be used for Keys.
102+
* Object that represents the labels as key-value pairs of a resource. Key constraints: - May
103+
* contain an optional domain prefix separated by a slash (`/`). - Domain prefix must
104+
* be less than or equal to 250 characters. - Domain prefix must ba a valid DNS subdomain
105+
* containing only lowercase alphanumerics (`[a-z0-9]`) and dashes (`-`),
106+
* separated by dots (`.`). - Length (excluding the domain prefix) must be between 1
107+
* and 63 characters. - Must begin and end with an alphanumerical character
108+
* (`[a-z0-9A-Z]`). - May contain dashes (`-`), underscores (`_`),
109+
* dots (`.`), and alphanumerics in between. - Keys starting with the prefix
110+
* `stackit-` or having a domain prefix of `stackit.cloud` (including its
111+
* subdomains, e.g., `*.stackit.cloud/`) are reserved for system use. Value
112+
* constraints: - Must be less than or equal to 63 characters long (can be empty). - If not
113+
* empty it must begin and end with an alphanumeric character (`[a-z0-9A-Z]`). - May
114+
* contain dashes (`-`), underscores (`_`), dots (`.`), and
115+
* alphanumerics in between. A resource can have a maximum of 64 labels. Reserved labels are
116+
* excluded from this count. Providing a `null` value for a key will remove that key.
107117
*
108118
* @return labels
109119
*/

‎services/iaas/src/main/java/cloud/stackit/sdk/iaas/v1api/model/CreateNetworkAreaPayload.java‎

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -78,11 +78,21 @@ public CreateNetworkAreaPayload labels(@javax.annotation.Nullable Object labels)
7878
}
7979

8080
/**
81-
* Object that represents the labels of an object. Regex for keys:
82-
* `^(?=.{1,63}$)([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]$`. Regex for values:
83-
* `^(?=.{0,63}$)(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])*$`. Providing a
84-
* `null` value for a key will remove that key. The `stackit-` prefix is
85-
* reserved and cannot be used for Keys.
81+
* Object that represents the labels as key-value pairs of a resource. Key constraints: - May
82+
* contain an optional domain prefix separated by a slash (`/`). - Domain prefix must
83+
* be less than or equal to 250 characters. - Domain prefix must ba a valid DNS subdomain
84+
* containing only lowercase alphanumerics (`[a-z0-9]`) and dashes (`-`),
85+
* separated by dots (`.`). - Length (excluding the domain prefix) must be between 1
86+
* and 63 characters. - Must begin and end with an alphanumerical character
87+
* (`[a-z0-9A-Z]`). - May contain dashes (`-`), underscores (`_`),
88+
* dots (`.`), and alphanumerics in between. - Keys starting with the prefix
89+
* `stackit-` or having a domain prefix of `stackit.cloud` (including its
90+
* subdomains, e.g., `*.stackit.cloud/`) are reserved for system use. Value
91+
* constraints: - Must be less than or equal to 63 characters long (can be empty). - If not
92+
* empty it must begin and end with an alphanumeric character (`[a-z0-9A-Z]`). - May
93+
* contain dashes (`-`), underscores (`_`), dots (`.`), and
94+
* alphanumerics in between. A resource can have a maximum of 64 labels. Reserved labels are
95+
* excluded from this count. Providing a `null` value for a key will remove that key.
8696
*
8797
* @return labels
8898
*/

‎services/iaas/src/main/java/cloud/stackit/sdk/iaas/v1api/model/CreateNetworkPayload.java‎

Lines changed: 57 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,11 @@ public class CreateNetworkPayload {
3838
@SerializedName(SERIALIZED_NAME_ADDRESS_FAMILY)
3939
@javax.annotation.Nullable private CreateNetworkAddressFamily addressFamily;
4040

41+
public static final String SERIALIZED_NAME_DESCRIPTION = "description";
42+
43+
@SerializedName(SERIALIZED_NAME_DESCRIPTION)
44+
@javax.annotation.Nullable private String description;
45+
4146
public static final String SERIALIZED_NAME_DHCP = "dhcp";
4247

4348
@SerializedName(SERIALIZED_NAME_DHCP)
@@ -81,6 +86,24 @@ public void setAddressFamily(
8186
this.addressFamily = addressFamily;
8287
}
8388

89+
public CreateNetworkPayload description(@javax.annotation.Nullable String description) {
90+
this.description = description;
91+
return this;
92+
}
93+
94+
/**
95+
* Description Object. Allows string up to 255 Characters.
96+
*
97+
* @return description
98+
*/
99+
@javax.annotation.Nullable public String getDescription() {
100+
return description;
101+
}
102+
103+
public void setDescription(@javax.annotation.Nullable String description) {
104+
this.description = description;
105+
}
106+
84107
public CreateNetworkPayload dhcp(@javax.annotation.Nullable Boolean dhcp) {
85108
this.dhcp = dhcp;
86109
return this;
@@ -105,11 +128,21 @@ public CreateNetworkPayload labels(@javax.annotation.Nullable Object labels) {
105128
}
106129

107130
/**
108-
* Object that represents the labels of an object. Regex for keys:
109-
* `^(?=.{1,63}$)([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]$`. Regex for values:
110-
* `^(?=.{0,63}$)(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])*$`. Providing a
111-
* `null` value for a key will remove that key. The `stackit-` prefix is
112-
* reserved and cannot be used for Keys.
131+
* Object that represents the labels as key-value pairs of a resource. Key constraints: - May
132+
* contain an optional domain prefix separated by a slash (`/`). - Domain prefix must
133+
* be less than or equal to 250 characters. - Domain prefix must ba a valid DNS subdomain
134+
* containing only lowercase alphanumerics (`[a-z0-9]`) and dashes (`-`),
135+
* separated by dots (`.`). - Length (excluding the domain prefix) must be between 1
136+
* and 63 characters. - Must begin and end with an alphanumerical character
137+
* (`[a-z0-9A-Z]`). - May contain dashes (`-`), underscores (`_`),
138+
* dots (`.`), and alphanumerics in between. - Keys starting with the prefix
139+
* `stackit-` or having a domain prefix of `stackit.cloud` (including its
140+
* subdomains, e.g., `*.stackit.cloud/`) are reserved for system use. Value
141+
* constraints: - Must be less than or equal to 63 characters long (can be empty). - If not
142+
* empty it must begin and end with an alphanumeric character (`[a-z0-9A-Z]`). - May
143+
* contain dashes (`-`), underscores (`_`), dots (`.`), and
144+
* alphanumerics in between. A resource can have a maximum of 64 labels. Reserved labels are
145+
* excluded from this count. Providing a `null` value for a key will remove that key.
113146
*
114147
* @return labels
115148
*/
@@ -212,6 +245,7 @@ public boolean equals(Object o) {
212245
}
213246
CreateNetworkPayload createNetworkPayload = (CreateNetworkPayload) o;
214247
return Objects.equals(this.addressFamily, createNetworkPayload.addressFamily)
248+
&& Objects.equals(this.description, createNetworkPayload.description)
215249
&& Objects.equals(this.dhcp, createNetworkPayload.dhcp)
216250
&& Objects.equals(this.labels, createNetworkPayload.labels)
217251
&& Objects.equals(this.name, createNetworkPayload.name)
@@ -222,14 +256,16 @@ public boolean equals(Object o) {
222256

223257
@Override
224258
public int hashCode() {
225-
return Objects.hash(addressFamily, dhcp, labels, name, routed, additionalProperties);
259+
return Objects.hash(
260+
addressFamily, description, dhcp, labels, name, routed, additionalProperties);
226261
}
227262

228263
@Override
229264
public String toString() {
230265
StringBuilder sb = new StringBuilder();
231266
sb.append("class CreateNetworkPayload {\n");
232267
sb.append(" addressFamily: ").append(toIndentedString(addressFamily)).append("\n");
268+
sb.append(" description: ").append(toIndentedString(description)).append("\n");
233269
sb.append(" dhcp: ").append(toIndentedString(dhcp)).append("\n");
234270
sb.append(" labels: ").append(toIndentedString(labels)).append("\n");
235271
sb.append(" name: ").append(toIndentedString(name)).append("\n");
@@ -259,7 +295,13 @@ private String toIndentedString(Object o) {
259295
// a set of all properties/fields (JSON key names)
260296
openapiFields =
261297
new HashSet<String>(
262-
Arrays.asList("addressFamily", "dhcp", "labels", "name", "routed"));
298+
Arrays.asList(
299+
"addressFamily",
300+
"description",
301+
"dhcp",
302+
"labels",
303+
"name",
304+
"routed"));
263305

264306
// a set of required properties/fields (JSON key names)
265307
openapiRequiredFields = new HashSet<String>(Arrays.asList("name"));
@@ -299,6 +341,14 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
299341
if (jsonObj.get("addressFamily") != null && !jsonObj.get("addressFamily").isJsonNull()) {
300342
CreateNetworkAddressFamily.validateJsonElement(jsonObj.get("addressFamily"));
301343
}
344+
if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull())
345+
&& !jsonObj.get("description").isJsonPrimitive()) {
346+
throw new IllegalArgumentException(
347+
String.format(
348+
java.util.Locale.ROOT,
349+
"Expected the field `description` to be a primitive type in the JSON string but got `%s`",
350+
jsonObj.get("description").toString()));
351+
}
302352
if (!jsonObj.get("name").isJsonPrimitive()) {
303353
throw new IllegalArgumentException(
304354
String.format(

‎services/iaas/src/main/java/cloud/stackit/sdk/iaas/v1api/model/CreateNicPayload.java‎

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -225,11 +225,21 @@ public CreateNicPayload labels(@javax.annotation.Nullable Object labels) {
225225
}
226226

227227
/**
228-
* Object that represents the labels of an object. Regex for keys:
229-
* &#x60;^(?&#x3D;.{1,63}$)([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]$&#x60;. Regex for values:
230-
* &#x60;^(?&#x3D;.{0,63}$)(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])*$&#x60;. Providing a
231-
* &#x60;null&#x60; value for a key will remove that key. The &#x60;stackit-&#x60; prefix is
232-
* reserved and cannot be used for Keys.
228+
* Object that represents the labels as key-value pairs of a resource. Key constraints: - May
229+
* contain an optional domain prefix separated by a slash (&#x60;/&#x60;). - Domain prefix must
230+
* be less than or equal to 250 characters. - Domain prefix must ba a valid DNS subdomain
231+
* containing only lowercase alphanumerics (&#x60;[a-z0-9]&#x60;) and dashes (&#x60;-&#x60;),
232+
* separated by dots (&#x60;.&#x60;). - Length (excluding the domain prefix) must be between 1
233+
* and 63 characters. - Must begin and end with an alphanumerical character
234+
* (&#x60;[a-z0-9A-Z]&#x60;). - May contain dashes (&#x60;-&#x60;), underscores (&#x60;_&#x60;),
235+
* dots (&#x60;.&#x60;), and alphanumerics in between. - Keys starting with the prefix
236+
* &#x60;stackit-&#x60; or having a domain prefix of &#x60;stackit.cloud&#x60; (including its
237+
* subdomains, e.g., &#x60;*.stackit.cloud/&#x60;) are reserved for system use. Value
238+
* constraints: - Must be less than or equal to 63 characters long (can be empty). - If not
239+
* empty it must begin and end with an alphanumeric character (&#x60;[a-z0-9A-Z]&#x60;). - May
240+
* contain dashes (&#x60;-&#x60;), underscores (&#x60;_&#x60;), dots (&#x60;.&#x60;), and
241+
* alphanumerics in between. A resource can have a maximum of 64 labels. Reserved labels are
242+
* excluded from this count. Providing a &#x60;null&#x60; value for a key will remove that key.
233243
*
234244
* @return labels
235245
*/

‎services/iaas/src/main/java/cloud/stackit/sdk/iaas/v1api/model/CreatePublicIPPayload.java‎

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -87,11 +87,21 @@ public CreatePublicIPPayload labels(@javax.annotation.Nullable Object labels) {
8787
}
8888

8989
/**
90-
* Object that represents the labels of an object. Regex for keys:
91-
* &#x60;^(?&#x3D;.{1,63}$)([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]$&#x60;. Regex for values:
92-
* &#x60;^(?&#x3D;.{0,63}$)(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])*$&#x60;. Providing a
93-
* &#x60;null&#x60; value for a key will remove that key. The &#x60;stackit-&#x60; prefix is
94-
* reserved and cannot be used for Keys.
90+
* Object that represents the labels as key-value pairs of a resource. Key constraints: - May
91+
* contain an optional domain prefix separated by a slash (&#x60;/&#x60;). - Domain prefix must
92+
* be less than or equal to 250 characters. - Domain prefix must ba a valid DNS subdomain
93+
* containing only lowercase alphanumerics (&#x60;[a-z0-9]&#x60;) and dashes (&#x60;-&#x60;),
94+
* separated by dots (&#x60;.&#x60;). - Length (excluding the domain prefix) must be between 1
95+
* and 63 characters. - Must begin and end with an alphanumerical character
96+
* (&#x60;[a-z0-9A-Z]&#x60;). - May contain dashes (&#x60;-&#x60;), underscores (&#x60;_&#x60;),
97+
* dots (&#x60;.&#x60;), and alphanumerics in between. - Keys starting with the prefix
98+
* &#x60;stackit-&#x60; or having a domain prefix of &#x60;stackit.cloud&#x60; (including its
99+
* subdomains, e.g., &#x60;*.stackit.cloud/&#x60;) are reserved for system use. Value
100+
* constraints: - Must be less than or equal to 63 characters long (can be empty). - If not
101+
* empty it must begin and end with an alphanumeric character (&#x60;[a-z0-9A-Z]&#x60;). - May
102+
* contain dashes (&#x60;-&#x60;), underscores (&#x60;_&#x60;), dots (&#x60;.&#x60;), and
103+
* alphanumerics in between. A resource can have a maximum of 64 labels. Reserved labels are
104+
* excluded from this count. Providing a &#x60;null&#x60; value for a key will remove that key.
95105
*
96106
* @return labels
97107
*/

0 commit comments

Comments
 (0)