Skip to content

Commit 4cb6a41

Browse files
Generate iaas
1 parent 8dd5d3b commit 4cb6a41

21 files changed

Lines changed: 1311 additions & 233 deletions

services/iaas/oas_commit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1c36f3781c31a0e21c4588c7c4ec835d477d2f21
1+
2ca895969382a07a0a7e4aa9dd66ecfc19e058b3

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

Lines changed: 35 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,11 @@
3737
value = "org.openapitools.codegen.languages.JavaClientCodegen",
3838
comments = "Generator version: 7.19.0")
3939
public class CreateSnapshotPayload {
40+
public static final String SERIALIZED_NAME_AVAILABILITY_ZONE = "availabilityZone";
41+
42+
@SerializedName(SERIALIZED_NAME_AVAILABILITY_ZONE)
43+
@javax.annotation.Nullable private String availabilityZone;
44+
4045
public static final String SERIALIZED_NAME_CREATED_AT = "createdAt";
4146

4247
@SerializedName(SERIALIZED_NAME_CREATED_AT)
@@ -86,15 +91,30 @@ public class CreateSnapshotPayload {
8691
public CreateSnapshotPayload() {}
8792

8893
public CreateSnapshotPayload(
89-
OffsetDateTime createdAt, UUID id, Long size, String status, OffsetDateTime updatedAt) {
94+
String availabilityZone,
95+
OffsetDateTime createdAt,
96+
UUID id,
97+
Long size,
98+
String status,
99+
OffsetDateTime updatedAt) {
90100
this();
101+
this.availabilityZone = availabilityZone;
91102
this.createdAt = createdAt;
92103
this.id = id;
93104
this.size = size;
94105
this.status = status;
95106
this.updatedAt = updatedAt;
96107
}
97108

109+
/**
110+
* Object that represents an availability zone.
111+
*
112+
* @return availabilityZone
113+
*/
114+
@javax.annotation.Nullable public String getAvailabilityZone() {
115+
return availabilityZone;
116+
}
117+
98118
/**
99119
* Date-time when resource was created.
100120
*
@@ -272,7 +292,8 @@ public boolean equals(Object o) {
272292
return false;
273293
}
274294
CreateSnapshotPayload createSnapshotPayload = (CreateSnapshotPayload) o;
275-
return Objects.equals(this.createdAt, createSnapshotPayload.createdAt)
295+
return Objects.equals(this.availabilityZone, createSnapshotPayload.availabilityZone)
296+
&& Objects.equals(this.createdAt, createSnapshotPayload.createdAt)
276297
&& Objects.equals(this.description, createSnapshotPayload.description)
277298
&& Objects.equals(this.id, createSnapshotPayload.id)
278299
&& Objects.equals(this.labels, createSnapshotPayload.labels)
@@ -288,6 +309,7 @@ public boolean equals(Object o) {
288309
@Override
289310
public int hashCode() {
290311
return Objects.hash(
312+
availabilityZone,
291313
createdAt,
292314
description,
293315
id,
@@ -304,6 +326,7 @@ public int hashCode() {
304326
public String toString() {
305327
StringBuilder sb = new StringBuilder();
306328
sb.append("class CreateSnapshotPayload {\n");
329+
sb.append(" availabilityZone: ").append(toIndentedString(availabilityZone)).append("\n");
307330
sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n");
308331
sb.append(" description: ").append(toIndentedString(description)).append("\n");
309332
sb.append(" id: ").append(toIndentedString(id)).append("\n");
@@ -339,6 +362,7 @@ private String toIndentedString(Object o) {
339362
openapiFields =
340363
new HashSet<String>(
341364
Arrays.asList(
365+
"availabilityZone",
342366
"createdAt",
343367
"description",
344368
"id",
@@ -383,6 +407,15 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
383407
}
384408
}
385409
JsonObject jsonObj = jsonElement.getAsJsonObject();
410+
if ((jsonObj.get("availabilityZone") != null
411+
&& !jsonObj.get("availabilityZone").isJsonNull())
412+
&& !jsonObj.get("availabilityZone").isJsonPrimitive()) {
413+
throw new IllegalArgumentException(
414+
String.format(
415+
java.util.Locale.ROOT,
416+
"Expected the field `availabilityZone` to be a primitive type in the JSON string but got `%s`",
417+
jsonObj.get("availabilityZone").toString()));
418+
}
386419
if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull())
387420
&& !jsonObj.get("description").isJsonPrimitive()) {
388421
throw new IllegalArgumentException(

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

Lines changed: 35 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,11 @@
3737
value = "org.openapitools.codegen.languages.JavaClientCodegen",
3838
comments = "Generator version: 7.19.0")
3939
public class Snapshot {
40+
public static final String SERIALIZED_NAME_AVAILABILITY_ZONE = "availabilityZone";
41+
42+
@SerializedName(SERIALIZED_NAME_AVAILABILITY_ZONE)
43+
@javax.annotation.Nullable private String availabilityZone;
44+
4045
public static final String SERIALIZED_NAME_CREATED_AT = "createdAt";
4146

4247
@SerializedName(SERIALIZED_NAME_CREATED_AT)
@@ -86,15 +91,30 @@ public class Snapshot {
8691
public Snapshot() {}
8792

8893
public Snapshot(
89-
OffsetDateTime createdAt, UUID id, Long size, String status, OffsetDateTime updatedAt) {
94+
String availabilityZone,
95+
OffsetDateTime createdAt,
96+
UUID id,
97+
Long size,
98+
String status,
99+
OffsetDateTime updatedAt) {
90100
this();
101+
this.availabilityZone = availabilityZone;
91102
this.createdAt = createdAt;
92103
this.id = id;
93104
this.size = size;
94105
this.status = status;
95106
this.updatedAt = updatedAt;
96107
}
97108

109+
/**
110+
* Object that represents an availability zone.
111+
*
112+
* @return availabilityZone
113+
*/
114+
@javax.annotation.Nullable public String getAvailabilityZone() {
115+
return availabilityZone;
116+
}
117+
98118
/**
99119
* Date-time when resource was created.
100120
*
@@ -272,7 +292,8 @@ public boolean equals(Object o) {
272292
return false;
273293
}
274294
Snapshot snapshot = (Snapshot) o;
275-
return Objects.equals(this.createdAt, snapshot.createdAt)
295+
return Objects.equals(this.availabilityZone, snapshot.availabilityZone)
296+
&& Objects.equals(this.createdAt, snapshot.createdAt)
276297
&& Objects.equals(this.description, snapshot.description)
277298
&& Objects.equals(this.id, snapshot.id)
278299
&& Objects.equals(this.labels, snapshot.labels)
@@ -287,6 +308,7 @@ public boolean equals(Object o) {
287308
@Override
288309
public int hashCode() {
289310
return Objects.hash(
311+
availabilityZone,
290312
createdAt,
291313
description,
292314
id,
@@ -303,6 +325,7 @@ public int hashCode() {
303325
public String toString() {
304326
StringBuilder sb = new StringBuilder();
305327
sb.append("class Snapshot {\n");
328+
sb.append(" availabilityZone: ").append(toIndentedString(availabilityZone)).append("\n");
306329
sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n");
307330
sb.append(" description: ").append(toIndentedString(description)).append("\n");
308331
sb.append(" id: ").append(toIndentedString(id)).append("\n");
@@ -338,6 +361,7 @@ private String toIndentedString(Object o) {
338361
openapiFields =
339362
new HashSet<String>(
340363
Arrays.asList(
364+
"availabilityZone",
341365
"createdAt",
342366
"description",
343367
"id",
@@ -382,6 +406,15 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
382406
}
383407
}
384408
JsonObject jsonObj = jsonElement.getAsJsonObject();
409+
if ((jsonObj.get("availabilityZone") != null
410+
&& !jsonObj.get("availabilityZone").isJsonNull())
411+
&& !jsonObj.get("availabilityZone").isJsonPrimitive()) {
412+
throw new IllegalArgumentException(
413+
String.format(
414+
java.util.Locale.ROOT,
415+
"Expected the field `availabilityZone` to be a primitive type in the JSON string but got `%s`",
416+
jsonObj.get("availabilityZone").toString()));
417+
}
385418
if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull())
386419
&& !jsonObj.get("description").isJsonPrimitive()) {
387420
throw new IllegalArgumentException(

services/iaas/src/main/java/cloud/stackit/sdk/iaas/v2alpha1api/api/DefaultApi.java

Lines changed: 29 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,8 @@ private okhttp3.Call addRoutesToRoutingTableValidateBeforeCall(
264264
}
265265

266266
/**
267-
* Create new routes in a routing table. Create new routes in an existing routing table.
267+
* Create new routes in a routing table. Create new routes in an existing routing table of a
268+
* network area.
268269
*
269270
* @param organizationId The identifier (ID) of a STACKIT Organization. (required)
270271
* @param areaId The identifier (ID) of a STACKIT Network Area. (required)
@@ -306,7 +307,8 @@ public RouteListResponse addRoutesToRoutingTable(
306307
}
307308

308309
/**
309-
* Create new routes in a routing table. Create new routes in an existing routing table.
310+
* Create new routes in a routing table. Create new routes in an existing routing table of a
311+
* network area.
310312
*
311313
* @param organizationId The identifier (ID) of a STACKIT Organization. (required)
312314
* @param areaId The identifier (ID) of a STACKIT Network Area. (required)
@@ -351,7 +353,7 @@ public ApiResponse<RouteListResponse> addRoutesToRoutingTableWithHttpInfo(
351353

352354
/**
353355
* Create new routes in a routing table. (asynchronously) Create new routes in an existing
354-
* routing table.
356+
* routing table of a network area.
355357
*
356358
* @param organizationId The identifier (ID) of a STACKIT Organization. (required)
357359
* @param areaId The identifier (ID) of a STACKIT Network Area. (required)
@@ -1229,7 +1231,8 @@ private okhttp3.Call deleteRouteFromRoutingTableValidateBeforeCall(
12291231
}
12301232

12311233
/**
1232-
* Delete a route in a routing table. Delete a route in an existing routing table.
1234+
* Delete a route in a routing table. Delete a route in an existing routing table of a network
1235+
* area.
12331236
*
12341237
* @param organizationId The identifier (ID) of a STACKIT Organization. (required)
12351238
* @param areaId The identifier (ID) of a STACKIT Network Area. (required)
@@ -1262,7 +1265,8 @@ public void deleteRouteFromRoutingTable(
12621265
}
12631266

12641267
/**
1265-
* Delete a route in a routing table. Delete a route in an existing routing table.
1268+
* Delete a route in a routing table. Delete a route in an existing routing table of a network
1269+
* area.
12661270
*
12671271
* @param organizationId The identifier (ID) of a STACKIT Organization. (required)
12681272
* @param areaId The identifier (ID) of a STACKIT Network Area. (required)
@@ -1299,7 +1303,7 @@ public ApiResponse<Void> deleteRouteFromRoutingTableWithHttpInfo(
12991303

13001304
/**
13011305
* Delete a route in a routing table. (asynchronously) Delete a route in an existing routing
1302-
* table.
1306+
* table of a network area.
13031307
*
13041308
* @param organizationId The identifier (ID) of a STACKIT Organization. (required)
13051309
* @param areaId The identifier (ID) of a STACKIT Network Area. (required)
@@ -1929,7 +1933,7 @@ private okhttp3.Call getRouteOfRoutingTableValidateBeforeCall(
19291933

19301934
/**
19311935
* Get details about a route of a routing table. Get details about a route defined in a routing
1932-
* table.
1936+
* table of a network area.
19331937
*
19341938
* @param organizationId The identifier (ID) of a STACKIT Organization. (required)
19351939
* @param areaId The identifier (ID) of a STACKIT Network Area. (required)
@@ -1966,7 +1970,7 @@ public Route getRouteOfRoutingTable(
19661970

19671971
/**
19681972
* Get details about a route of a routing table. Get details about a route defined in a routing
1969-
* table.
1973+
* table of a network area.
19701974
*
19711975
* @param organizationId The identifier (ID) of a STACKIT Organization. (required)
19721976
* @param areaId The identifier (ID) of a STACKIT Network Area. (required)
@@ -2004,7 +2008,7 @@ public ApiResponse<Route> getRouteOfRoutingTableWithHttpInfo(
20042008

20052009
/**
20062010
* Get details about a route of a routing table. (asynchronously) Get details about a route
2007-
* defined in a routing table.
2011+
* defined in a routing table of a network area.
20082012
*
20092013
* @param organizationId The identifier (ID) of a STACKIT Organization. (required)
20102014
* @param areaId The identifier (ID) of a STACKIT Network Area. (required)
@@ -2627,7 +2631,8 @@ private okhttp3.Call listNetworksOfRoutingTableValidateBeforeCall(
26272631
}
26282632

26292633
/**
2630-
* List all networks in a routing table. Get a list of all networks in a routing table.
2634+
* List all networks in a routing table. Get a list of all networks in a routing table of a
2635+
* network area.
26312636
*
26322637
* @param organizationId The identifier (ID) of a STACKIT Organization. (required)
26332638
* @param areaId The identifier (ID) of a STACKIT Network Area. (required)
@@ -2661,7 +2666,8 @@ public NetworkListResponse listNetworksOfRoutingTable(
26612666
}
26622667

26632668
/**
2664-
* List all networks in a routing table. Get a list of all networks in a routing table.
2669+
* List all networks in a routing table. Get a list of all networks in a routing table of a
2670+
* network area.
26652671
*
26662672
* @param organizationId The identifier (ID) of a STACKIT Organization. (required)
26672673
* @param areaId The identifier (ID) of a STACKIT Network Area. (required)
@@ -2697,7 +2703,7 @@ public ApiResponse<NetworkListResponse> listNetworksOfRoutingTableWithHttpInfo(
26972703

26982704
/**
26992705
* List all networks in a routing table. (asynchronously) Get a list of all networks in a
2700-
* routing table.
2706+
* routing table of a network area.
27012707
*
27022708
* @param organizationId The identifier (ID) of a STACKIT Organization. (required)
27032709
* @param areaId The identifier (ID) of a STACKIT Network Area. (required)
@@ -2874,7 +2880,8 @@ private okhttp3.Call listRoutesOfRoutingTableValidateBeforeCall(
28742880
}
28752881

28762882
/**
2877-
* List all routes in a routing table. Get a list of all routes in a routing table.
2883+
* List all routes in a routing table. Get a list of all routes in a routing table of a network
2884+
* area.
28782885
*
28792886
* @param organizationId The identifier (ID) of a STACKIT Organization. (required)
28802887
* @param areaId The identifier (ID) of a STACKIT Network Area. (required)
@@ -2910,7 +2917,8 @@ public RouteListResponse listRoutesOfRoutingTable(
29102917
}
29112918

29122919
/**
2913-
* List all routes in a routing table. Get a list of all routes in a routing table.
2920+
* List all routes in a routing table. Get a list of all routes in a routing table of a network
2921+
* area.
29142922
*
29152923
* @param organizationId The identifier (ID) of a STACKIT Organization. (required)
29162924
* @param areaId The identifier (ID) of a STACKIT Network Area. (required)
@@ -2948,7 +2956,7 @@ public ApiResponse<RouteListResponse> listRoutesOfRoutingTableWithHttpInfo(
29482956

29492957
/**
29502958
* List all routes in a routing table. (asynchronously) Get a list of all routes in a routing
2951-
* table.
2959+
* table of a network area.
29522960
*
29532961
* @param organizationId The identifier (ID) of a STACKIT Organization. (required)
29542962
* @param areaId The identifier (ID) of a STACKIT Network Area. (required)
@@ -3614,7 +3622,8 @@ private okhttp3.Call updateRouteOfRoutingTableValidateBeforeCall(
36143622
}
36153623

36163624
/**
3617-
* Update a route of a routing table. Update a route defined in a routing table.
3625+
* Update a route of a routing table. Update a route defined in a routing table of a network
3626+
* area.
36183627
*
36193628
* @param organizationId The identifier (ID) of a STACKIT Organization. (required)
36203629
* @param areaId The identifier (ID) of a STACKIT Network Area. (required)
@@ -3659,7 +3668,8 @@ public Route updateRouteOfRoutingTable(
36593668
}
36603669

36613670
/**
3662-
* Update a route of a routing table. Update a route defined in a routing table.
3671+
* Update a route of a routing table. Update a route defined in a routing table of a network
3672+
* area.
36633673
*
36643674
* @param organizationId The identifier (ID) of a STACKIT Organization. (required)
36653675
* @param areaId The identifier (ID) of a STACKIT Network Area. (required)
@@ -3706,8 +3716,8 @@ public ApiResponse<Route> updateRouteOfRoutingTableWithHttpInfo(
37063716
}
37073717

37083718
/**
3709-
* Update a route of a routing table. (asynchronously) Update a route defined in a routing
3710-
* table.
3719+
* Update a route of a routing table. (asynchronously) Update a route defined in a routing table
3720+
* of a network area.
37113721
*
37123722
* @param organizationId The identifier (ID) of a STACKIT Organization. (required)
37133723
* @param areaId The identifier (ID) of a STACKIT Network Area. (required)

0 commit comments

Comments
 (0)