Skip to content

Commit 5ab329d

Browse files
Generate iaas
1 parent 85f5a02 commit 5ab329d

100 files changed

Lines changed: 19903 additions & 1705 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

services/iaas/oas_commit

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

services/iaas/src/main/java/cloud/stackit/sdk/iaas/v1api/JSON.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -341,6 +341,8 @@ private static Class getClassByDiscriminator(
341341
new cloud.stackit.sdk.iaas.v1api.model.ServerNetwork.CustomTypeAdapterFactory());
342342
gsonBuilder.registerTypeAdapterFactory(
343343
new cloud.stackit.sdk.iaas.v1api.model.ServerNetworking.CustomTypeAdapterFactory());
344+
gsonBuilder.registerTypeAdapterFactory(
345+
new cloud.stackit.sdk.iaas.v1api.model.ServerVTPM.CustomTypeAdapterFactory());
344346
gsonBuilder.registerTypeAdapterFactory(
345347
new cloud.stackit.sdk.iaas.v1api.model.ServiceAccountMailListResponse
346348
.CustomTypeAdapterFactory());

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

Lines changed: 20 additions & 422 deletions
Large diffs are not rendered by default.

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

Lines changed: 32 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,11 @@ public class CreateServerPayload {
166166
@SerializedName(SERIALIZED_NAME_VOLUMES)
167167
@javax.annotation.Nullable private List<UUID> volumes;
168168

169+
public static final String SERIALIZED_NAME_VTPM = "vtpm";
170+
171+
@SerializedName(SERIALIZED_NAME_VTPM)
172+
@javax.annotation.Nullable private ServerVTPM vtpm;
173+
169174
public CreateServerPayload() {}
170175

171176
public CreateServerPayload(
@@ -608,6 +613,24 @@ public void setVolumes(@javax.annotation.Nullable List<UUID> volumes) {
608613
this.volumes = volumes;
609614
}
610615

616+
public CreateServerPayload vtpm(@javax.annotation.Nullable ServerVTPM vtpm) {
617+
this.vtpm = vtpm;
618+
return this;
619+
}
620+
621+
/**
622+
* Get vtpm
623+
*
624+
* @return vtpm
625+
*/
626+
@javax.annotation.Nullable public ServerVTPM getVtpm() {
627+
return vtpm;
628+
}
629+
630+
public void setVtpm(@javax.annotation.Nullable ServerVTPM vtpm) {
631+
this.vtpm = vtpm;
632+
}
633+
611634
/**
612635
* A container for additional, undeclared properties. This is a holder for any undeclared
613636
* properties as specified with the 'additionalProperties' keyword in the OAS document.
@@ -686,6 +709,7 @@ public boolean equals(Object o) {
686709
&& Objects.equals(this.updatedAt, createServerPayload.updatedAt)
687710
&& Arrays.equals(this.userData, createServerPayload.userData)
688711
&& Objects.equals(this.volumes, createServerPayload.volumes)
712+
&& Objects.equals(this.vtpm, createServerPayload.vtpm)
689713
&& Objects.equals(
690714
this.additionalProperties, createServerPayload.additionalProperties);
691715
}
@@ -718,6 +742,7 @@ public int hashCode() {
718742
updatedAt,
719743
Arrays.hashCode(userData),
720744
volumes,
745+
vtpm,
721746
additionalProperties);
722747
}
723748

@@ -754,6 +779,7 @@ public String toString() {
754779
sb.append(" updatedAt: ").append(toIndentedString(updatedAt)).append("\n");
755780
sb.append(" userData: ").append(toIndentedString(userData)).append("\n");
756781
sb.append(" volumes: ").append(toIndentedString(volumes)).append("\n");
782+
sb.append(" vtpm: ").append(toIndentedString(vtpm)).append("\n");
757783
sb.append(" additionalProperties: ")
758784
.append(toIndentedString(additionalProperties))
759785
.append("\n");
@@ -804,7 +830,8 @@ private String toIndentedString(Object o) {
804830
"status",
805831
"updatedAt",
806832
"userData",
807-
"volumes"));
833+
"volumes",
834+
"vtpm"));
808835

809836
// a set of required properties/fields (JSON key names)
810837
openapiRequiredFields = new HashSet<String>(Arrays.asList("machineType", "name"));
@@ -985,6 +1012,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
9851012
"Expected the field `volumes` to be an array in the JSON string but got `%s`",
9861013
jsonObj.get("volumes").toString()));
9871014
}
1015+
// validate the optional field `vtpm`
1016+
if (jsonObj.get("vtpm") != null && !jsonObj.get("vtpm").isJsonNull()) {
1017+
ServerVTPM.validateJsonElement(jsonObj.get("vtpm"));
1018+
}
9881019
}
9891020

9901021
public static class CustomTypeAdapterFactory implements TypeAdapterFactory {

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/CreateVolumePayload.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -361,8 +361,9 @@ public void setSource(@javax.annotation.Nullable VolumeSource source) {
361361
* &#x60;CREATING&#x60;, &#x60;DELETED&#x60;, &#x60;DELETING&#x60;, &#x60;DETACHING&#x60;,
362362
* &#x60;DOWNLOADING&#x60;, &#x60;ERROR&#x60;, &#x60;ERROR_BACKING-UP&#x60;,
363363
* &#x60;ERROR_DELETING&#x60;, &#x60;ERROR_RESIZING&#x60;, &#x60;ERROR_RESTORING-BACKUP&#x60;,
364-
* &#x60;MAINTENANCE&#x60;, &#x60;RESERVED&#x60;, &#x60;RESIZING&#x60;,
365-
* &#x60;RESTORING-BACKUP&#x60;, &#x60;RETYPING&#x60;, &#x60;UPLOADING&#x60;.
364+
* &#x60;ERROR_KMS-ENCRYPTION-PARAMS&#x60;, &#x60;MAINTENANCE&#x60;, &#x60;RESERVED&#x60;,
365+
* &#x60;RESIZING&#x60;, &#x60;RESTORING-BACKUP&#x60;, &#x60;RETYPING&#x60;,
366+
* &#x60;UPLOADING&#x60;.
366367
*
367368
* @return status
368369
*/

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,8 @@ public Request requestType(@javax.annotation.Nonnull String requestType) {
140140
* Object that represents a resource type. Possible values: &#x60;BACKUP&#x60;,
141141
* &#x60;IMAGE&#x60;, &#x60;NETWORK&#x60;, &#x60;NETWORKAREA&#x60;, &#x60;NIC&#x60;,
142142
* &#x60;PROJECT&#x60;, &#x60;ROUTE&#x60;, &#x60;SERVER&#x60;, &#x60;SERVICEACCOUNT&#x60;,
143-
* &#x60;SNAPSHOT&#x60;, &#x60;VIRTUALIP&#x60;, &#x60;VOLUME&#x60;.
143+
* &#x60;SNAPSHOT&#x60;, &#x60;VIRTUALIP&#x60;, &#x60;VOLUME&#x60;, &#x60;VPC&#x60;,
144+
* &#x60;VPCNETWORKRANGE&#x60;.
144145
*
145146
* @return requestType
146147
*/

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,8 @@ public RequestResource type(@javax.annotation.Nonnull String type) {
105105
* Object that represents a resource type. Possible values: &#x60;BACKUP&#x60;,
106106
* &#x60;IMAGE&#x60;, &#x60;NETWORK&#x60;, &#x60;NETWORKAREA&#x60;, &#x60;NIC&#x60;,
107107
* &#x60;PROJECT&#x60;, &#x60;ROUTE&#x60;, &#x60;SERVER&#x60;, &#x60;SERVICEACCOUNT&#x60;,
108-
* &#x60;SNAPSHOT&#x60;, &#x60;VIRTUALIP&#x60;, &#x60;VOLUME&#x60;.
108+
* &#x60;SNAPSHOT&#x60;, &#x60;VIRTUALIP&#x60;, &#x60;VOLUME&#x60;, &#x60;VPC&#x60;,
109+
* &#x60;VPCNETWORKRANGE&#x60;.
109110
*
110111
* @return type
111112
*/

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

Lines changed: 32 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,11 @@ public class Server {
166166
@SerializedName(SERIALIZED_NAME_VOLUMES)
167167
@javax.annotation.Nullable private List<UUID> volumes;
168168

169+
public static final String SERIALIZED_NAME_VTPM = "vtpm";
170+
171+
@SerializedName(SERIALIZED_NAME_VTPM)
172+
@javax.annotation.Nullable private ServerVTPM vtpm;
173+
169174
public Server() {}
170175

171176
public Server(
@@ -604,6 +609,24 @@ public void setVolumes(@javax.annotation.Nullable List<UUID> volumes) {
604609
this.volumes = volumes;
605610
}
606611

612+
public Server vtpm(@javax.annotation.Nullable ServerVTPM vtpm) {
613+
this.vtpm = vtpm;
614+
return this;
615+
}
616+
617+
/**
618+
* Get vtpm
619+
*
620+
* @return vtpm
621+
*/
622+
@javax.annotation.Nullable public ServerVTPM getVtpm() {
623+
return vtpm;
624+
}
625+
626+
public void setVtpm(@javax.annotation.Nullable ServerVTPM vtpm) {
627+
this.vtpm = vtpm;
628+
}
629+
607630
/**
608631
* A container for additional, undeclared properties. This is a holder for any undeclared
609632
* properties as specified with the 'additionalProperties' keyword in the OAS document.
@@ -682,6 +705,7 @@ public boolean equals(Object o) {
682705
&& Objects.equals(this.updatedAt, server.updatedAt)
683706
&& Arrays.equals(this.userData, server.userData)
684707
&& Objects.equals(this.volumes, server.volumes)
708+
&& Objects.equals(this.vtpm, server.vtpm)
685709
&& Objects.equals(this.additionalProperties, server.additionalProperties);
686710
}
687711

@@ -713,6 +737,7 @@ public int hashCode() {
713737
updatedAt,
714738
Arrays.hashCode(userData),
715739
volumes,
740+
vtpm,
716741
additionalProperties);
717742
}
718743

@@ -749,6 +774,7 @@ public String toString() {
749774
sb.append(" updatedAt: ").append(toIndentedString(updatedAt)).append("\n");
750775
sb.append(" userData: ").append(toIndentedString(userData)).append("\n");
751776
sb.append(" volumes: ").append(toIndentedString(volumes)).append("\n");
777+
sb.append(" vtpm: ").append(toIndentedString(vtpm)).append("\n");
752778
sb.append(" additionalProperties: ")
753779
.append(toIndentedString(additionalProperties))
754780
.append("\n");
@@ -799,7 +825,8 @@ private String toIndentedString(Object o) {
799825
"status",
800826
"updatedAt",
801827
"userData",
802-
"volumes"));
828+
"volumes",
829+
"vtpm"));
803830

804831
// a set of required properties/fields (JSON key names)
805832
openapiRequiredFields = new HashSet<String>(Arrays.asList("machineType", "name"));
@@ -980,6 +1007,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
9801007
"Expected the field `volumes` to be an array in the JSON string but got `%s`",
9811008
jsonObj.get("volumes").toString()));
9821009
}
1010+
// validate the optional field `vtpm`
1011+
if (jsonObj.get("vtpm") != null && !jsonObj.get("vtpm").isJsonNull()) {
1012+
ServerVTPM.validateJsonElement(jsonObj.get("vtpm"));
1013+
}
9831014
}
9841015

9851016
public static class CustomTypeAdapterFactory implements TypeAdapterFactory {

0 commit comments

Comments
 (0)