Skip to content

Commit f46a438

Browse files
Generate iaas
1 parent 11732bf commit f46a438

13 files changed

Lines changed: 7 additions & 1090 deletions

File tree

services/iaas/oas_commit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
d5bd75f47f4b364fa6f71663efb4ba41ec703ac8
1+
ac0a79e26b445e0308f38d7e2c95bcab2f4748ef

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -341,8 +341,6 @@ 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());
346344
gsonBuilder.registerTypeAdapterFactory(
347345
new cloud.stackit.sdk.iaas.v1api.model.ServiceAccountMailListResponse
348346
.CustomTypeAdapterFactory());

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

Lines changed: 1 addition & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -164,11 +164,6 @@ public class CreateServerPayload {
164164
@SerializedName(SERIALIZED_NAME_VOLUMES)
165165
@javax.annotation.Nullable private List<UUID> volumes;
166166

167-
public static final String SERIALIZED_NAME_VTPM = "vtpm";
168-
169-
@SerializedName(SERIALIZED_NAME_VTPM)
170-
@javax.annotation.Nullable private ServerVTPM vtpm;
171-
172167
public CreateServerPayload() {}
173168

174169
public CreateServerPayload(
@@ -611,24 +606,6 @@ public void setVolumes(@javax.annotation.Nullable List<UUID> volumes) {
611606
this.volumes = volumes;
612607
}
613608

614-
public CreateServerPayload vtpm(@javax.annotation.Nullable ServerVTPM vtpm) {
615-
this.vtpm = vtpm;
616-
return this;
617-
}
618-
619-
/**
620-
* Get vtpm
621-
*
622-
* @return vtpm
623-
*/
624-
@javax.annotation.Nullable public ServerVTPM getVtpm() {
625-
return vtpm;
626-
}
627-
628-
public void setVtpm(@javax.annotation.Nullable ServerVTPM vtpm) {
629-
this.vtpm = vtpm;
630-
}
631-
632609
/**
633610
* A container for additional, undeclared properties. This is a holder for any undeclared
634611
* properties as specified with the 'additionalProperties' keyword in the OAS document.
@@ -707,7 +684,6 @@ public boolean equals(Object o) {
707684
&& Objects.equals(this.updatedAt, createServerPayload.updatedAt)
708685
&& Arrays.equals(this.userData, createServerPayload.userData)
709686
&& Objects.equals(this.volumes, createServerPayload.volumes)
710-
&& Objects.equals(this.vtpm, createServerPayload.vtpm)
711687
&& Objects.equals(
712688
this.additionalProperties, createServerPayload.additionalProperties);
713689
}
@@ -740,7 +716,6 @@ public int hashCode() {
740716
updatedAt,
741717
Arrays.hashCode(userData),
742718
volumes,
743-
vtpm,
744719
additionalProperties);
745720
}
746721

@@ -777,7 +752,6 @@ public String toString() {
777752
sb.append(" updatedAt: ").append(toIndentedString(updatedAt)).append("\n");
778753
sb.append(" userData: ").append(toIndentedString(userData)).append("\n");
779754
sb.append(" volumes: ").append(toIndentedString(volumes)).append("\n");
780-
sb.append(" vtpm: ").append(toIndentedString(vtpm)).append("\n");
781755
sb.append(" additionalProperties: ")
782756
.append(toIndentedString(additionalProperties))
783757
.append("\n");
@@ -828,8 +802,7 @@ private String toIndentedString(Object o) {
828802
"status",
829803
"updatedAt",
830804
"userData",
831-
"volumes",
832-
"vtpm"));
805+
"volumes"));
833806

834807
// a set of required properties/fields (JSON key names)
835808
openapiRequiredFields = new HashSet<String>(Arrays.asList("machineType", "name"));
@@ -1010,10 +983,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
1010983
"Expected the field `volumes` to be an array in the JSON string but got `%s`",
1011984
jsonObj.get("volumes").toString()));
1012985
}
1013-
// validate the optional field `vtpm`
1014-
if (jsonObj.get("vtpm") != null && !jsonObj.get("vtpm").isJsonNull()) {
1015-
ServerVTPM.validateJsonElement(jsonObj.get("vtpm"));
1016-
}
1017986
}
1018987

1019988
public static class CustomTypeAdapterFactory implements TypeAdapterFactory {

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

Lines changed: 1 addition & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -164,11 +164,6 @@ public class Server {
164164
@SerializedName(SERIALIZED_NAME_VOLUMES)
165165
@javax.annotation.Nullable private List<UUID> volumes;
166166

167-
public static final String SERIALIZED_NAME_VTPM = "vtpm";
168-
169-
@SerializedName(SERIALIZED_NAME_VTPM)
170-
@javax.annotation.Nullable private ServerVTPM vtpm;
171-
172167
public Server() {}
173168

174169
public Server(
@@ -607,24 +602,6 @@ public void setVolumes(@javax.annotation.Nullable List<UUID> volumes) {
607602
this.volumes = volumes;
608603
}
609604

610-
public Server vtpm(@javax.annotation.Nullable ServerVTPM vtpm) {
611-
this.vtpm = vtpm;
612-
return this;
613-
}
614-
615-
/**
616-
* Get vtpm
617-
*
618-
* @return vtpm
619-
*/
620-
@javax.annotation.Nullable public ServerVTPM getVtpm() {
621-
return vtpm;
622-
}
623-
624-
public void setVtpm(@javax.annotation.Nullable ServerVTPM vtpm) {
625-
this.vtpm = vtpm;
626-
}
627-
628605
/**
629606
* A container for additional, undeclared properties. This is a holder for any undeclared
630607
* properties as specified with the 'additionalProperties' keyword in the OAS document.
@@ -703,7 +680,6 @@ public boolean equals(Object o) {
703680
&& Objects.equals(this.updatedAt, server.updatedAt)
704681
&& Arrays.equals(this.userData, server.userData)
705682
&& Objects.equals(this.volumes, server.volumes)
706-
&& Objects.equals(this.vtpm, server.vtpm)
707683
&& Objects.equals(this.additionalProperties, server.additionalProperties);
708684
}
709685

@@ -735,7 +711,6 @@ public int hashCode() {
735711
updatedAt,
736712
Arrays.hashCode(userData),
737713
volumes,
738-
vtpm,
739714
additionalProperties);
740715
}
741716

@@ -772,7 +747,6 @@ public String toString() {
772747
sb.append(" updatedAt: ").append(toIndentedString(updatedAt)).append("\n");
773748
sb.append(" userData: ").append(toIndentedString(userData)).append("\n");
774749
sb.append(" volumes: ").append(toIndentedString(volumes)).append("\n");
775-
sb.append(" vtpm: ").append(toIndentedString(vtpm)).append("\n");
776750
sb.append(" additionalProperties: ")
777751
.append(toIndentedString(additionalProperties))
778752
.append("\n");
@@ -823,8 +797,7 @@ private String toIndentedString(Object o) {
823797
"status",
824798
"updatedAt",
825799
"userData",
826-
"volumes",
827-
"vtpm"));
800+
"volumes"));
828801

829802
// a set of required properties/fields (JSON key names)
830803
openapiRequiredFields = new HashSet<String>(Arrays.asList("machineType", "name"));
@@ -1005,10 +978,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
1005978
"Expected the field `volumes` to be an array in the JSON string but got `%s`",
1006979
jsonObj.get("volumes").toString()));
1007980
}
1008-
// validate the optional field `vtpm`
1009-
if (jsonObj.get("vtpm") != null && !jsonObj.get("vtpm").isJsonNull()) {
1010-
ServerVTPM.validateJsonElement(jsonObj.get("vtpm"));
1011-
}
1012981
}
1013982

1014983
public static class CustomTypeAdapterFactory implements TypeAdapterFactory {

0 commit comments

Comments
 (0)