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 @@
1c36f3781c31a0e21c4588c7c4ec835d477d2f21
4e680c509d0ddb434092ee608bdb3f1f42728b62
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,8 @@ private static Class getClassByDiscriminator(
new cloud.stackit.sdk.iaas.v1api.model.ServerNetwork.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(
new cloud.stackit.sdk.iaas.v1api.model.ServerNetworking.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(
new cloud.stackit.sdk.iaas.v1api.model.ServerVTPM.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(
new cloud.stackit.sdk.iaas.v1api.model.ServiceAccountMailListResponse
.CustomTypeAdapterFactory());
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,11 @@ public class CreateServerPayload {
@SerializedName(SERIALIZED_NAME_VOLUMES)
@javax.annotation.Nullable private List<UUID> volumes;

public static final String SERIALIZED_NAME_VTPM = "vtpm";

@SerializedName(SERIALIZED_NAME_VTPM)
@javax.annotation.Nullable private ServerVTPM vtpm;

public CreateServerPayload() {}

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

public CreateServerPayload vtpm(@javax.annotation.Nullable ServerVTPM vtpm) {
this.vtpm = vtpm;
return this;
}

/**
* Get vtpm
*
* @return vtpm
*/
@javax.annotation.Nullable public ServerVTPM getVtpm() {
return vtpm;
}

public void setVtpm(@javax.annotation.Nullable ServerVTPM vtpm) {
this.vtpm = vtpm;
}

/**
* A container for additional, undeclared properties. This is a holder for any undeclared
* properties as specified with the 'additionalProperties' keyword in the OAS document.
Expand Down Expand Up @@ -686,6 +709,7 @@ public boolean equals(Object o) {
&& Objects.equals(this.updatedAt, createServerPayload.updatedAt)
&& Arrays.equals(this.userData, createServerPayload.userData)
&& Objects.equals(this.volumes, createServerPayload.volumes)
&& Objects.equals(this.vtpm, createServerPayload.vtpm)
&& Objects.equals(
this.additionalProperties, createServerPayload.additionalProperties);
}
Expand Down Expand Up @@ -718,6 +742,7 @@ public int hashCode() {
updatedAt,
Arrays.hashCode(userData),
volumes,
vtpm,
additionalProperties);
}

Expand Down Expand Up @@ -754,6 +779,7 @@ public String toString() {
sb.append(" updatedAt: ").append(toIndentedString(updatedAt)).append("\n");
sb.append(" userData: ").append(toIndentedString(userData)).append("\n");
sb.append(" volumes: ").append(toIndentedString(volumes)).append("\n");
sb.append(" vtpm: ").append(toIndentedString(vtpm)).append("\n");
sb.append(" additionalProperties: ")
.append(toIndentedString(additionalProperties))
.append("\n");
Expand Down Expand Up @@ -804,7 +830,8 @@ private String toIndentedString(Object o) {
"status",
"updatedAt",
"userData",
"volumes"));
"volumes",
"vtpm"));

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

public static class CustomTypeAdapterFactory implements TypeAdapterFactory {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@
value = "org.openapitools.codegen.languages.JavaClientCodegen",
comments = "Generator version: 7.19.0")
public class CreateSnapshotPayload {
public static final String SERIALIZED_NAME_AVAILABILITY_ZONE = "availabilityZone";

@SerializedName(SERIALIZED_NAME_AVAILABILITY_ZONE)
@javax.annotation.Nullable private String availabilityZone;

public static final String SERIALIZED_NAME_CREATED_AT = "createdAt";

@SerializedName(SERIALIZED_NAME_CREATED_AT)
Expand Down Expand Up @@ -86,15 +91,30 @@ public class CreateSnapshotPayload {
public CreateSnapshotPayload() {}

public CreateSnapshotPayload(
OffsetDateTime createdAt, UUID id, Long size, String status, OffsetDateTime updatedAt) {
String availabilityZone,
OffsetDateTime createdAt,
UUID id,
Long size,
String status,
OffsetDateTime updatedAt) {
this();
this.availabilityZone = availabilityZone;
this.createdAt = createdAt;
this.id = id;
this.size = size;
this.status = status;
this.updatedAt = updatedAt;
}

/**
* Object that represents an availability zone.
*
* @return availabilityZone
*/
@javax.annotation.Nullable public String getAvailabilityZone() {
return availabilityZone;
}

/**
* Date-time when resource was created.
*
Expand Down Expand Up @@ -272,7 +292,8 @@ public boolean equals(Object o) {
return false;
}
CreateSnapshotPayload createSnapshotPayload = (CreateSnapshotPayload) o;
return Objects.equals(this.createdAt, createSnapshotPayload.createdAt)
return Objects.equals(this.availabilityZone, createSnapshotPayload.availabilityZone)
&& Objects.equals(this.createdAt, createSnapshotPayload.createdAt)
&& Objects.equals(this.description, createSnapshotPayload.description)
&& Objects.equals(this.id, createSnapshotPayload.id)
&& Objects.equals(this.labels, createSnapshotPayload.labels)
Expand All @@ -288,6 +309,7 @@ public boolean equals(Object o) {
@Override
public int hashCode() {
return Objects.hash(
availabilityZone,
createdAt,
description,
id,
Expand All @@ -304,6 +326,7 @@ public int hashCode() {
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class CreateSnapshotPayload {\n");
sb.append(" availabilityZone: ").append(toIndentedString(availabilityZone)).append("\n");
sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n");
sb.append(" description: ").append(toIndentedString(description)).append("\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
Expand Down Expand Up @@ -339,6 +362,7 @@ private String toIndentedString(Object o) {
openapiFields =
new HashSet<String>(
Arrays.asList(
"availabilityZone",
"createdAt",
"description",
"id",
Expand Down Expand Up @@ -383,6 +407,15 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
}
}
JsonObject jsonObj = jsonElement.getAsJsonObject();
if ((jsonObj.get("availabilityZone") != null
&& !jsonObj.get("availabilityZone").isJsonNull())
&& !jsonObj.get("availabilityZone").isJsonPrimitive()) {
throw new IllegalArgumentException(
String.format(
java.util.Locale.ROOT,
"Expected the field `availabilityZone` to be a primitive type in the JSON string but got `%s`",
jsonObj.get("availabilityZone").toString()));
}
if ((jsonObj.get("description") != null && !jsonObj.get("description").isJsonNull())
&& !jsonObj.get("description").isJsonPrimitive()) {
throw new IllegalArgumentException(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -361,8 +361,9 @@ public void setSource(@javax.annotation.Nullable VolumeSource source) {
* &#x60;CREATING&#x60;, &#x60;DELETED&#x60;, &#x60;DELETING&#x60;, &#x60;DETACHING&#x60;,
* &#x60;DOWNLOADING&#x60;, &#x60;ERROR&#x60;, &#x60;ERROR_BACKING-UP&#x60;,
* &#x60;ERROR_DELETING&#x60;, &#x60;ERROR_RESIZING&#x60;, &#x60;ERROR_RESTORING-BACKUP&#x60;,
* &#x60;MAINTENANCE&#x60;, &#x60;RESERVED&#x60;, &#x60;RESIZING&#x60;,
* &#x60;RESTORING-BACKUP&#x60;, &#x60;RETYPING&#x60;, &#x60;UPLOADING&#x60;.
* &#x60;ERROR_KMS-ENCRYPTION-PARAMS&#x60;, &#x60;MAINTENANCE&#x60;, &#x60;RESERVED&#x60;,
* &#x60;RESIZING&#x60;, &#x60;RESTORING-BACKUP&#x60;, &#x60;RETYPING&#x60;,
* &#x60;UPLOADING&#x60;.
*
* @return status
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,8 @@ public Request requestType(@javax.annotation.Nonnull String requestType) {
* Object that represents a resource type. Possible values: &#x60;BACKUP&#x60;,
* &#x60;IMAGE&#x60;, &#x60;NETWORK&#x60;, &#x60;NETWORKAREA&#x60;, &#x60;NIC&#x60;,
* &#x60;PROJECT&#x60;, &#x60;ROUTE&#x60;, &#x60;SERVER&#x60;, &#x60;SERVICEACCOUNT&#x60;,
* &#x60;SNAPSHOT&#x60;, &#x60;VIRTUALIP&#x60;, &#x60;VOLUME&#x60;.
* &#x60;SNAPSHOT&#x60;, &#x60;VIRTUALIP&#x60;, &#x60;VOLUME&#x60;, &#x60;VPC&#x60;,
* &#x60;VPCNETWORKRANGE&#x60;.
*
* @return requestType
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,8 @@ public RequestResource type(@javax.annotation.Nonnull String type) {
* Object that represents a resource type. Possible values: &#x60;BACKUP&#x60;,
* &#x60;IMAGE&#x60;, &#x60;NETWORK&#x60;, &#x60;NETWORKAREA&#x60;, &#x60;NIC&#x60;,
* &#x60;PROJECT&#x60;, &#x60;ROUTE&#x60;, &#x60;SERVER&#x60;, &#x60;SERVICEACCOUNT&#x60;,
* &#x60;SNAPSHOT&#x60;, &#x60;VIRTUALIP&#x60;, &#x60;VOLUME&#x60;.
* &#x60;SNAPSHOT&#x60;, &#x60;VIRTUALIP&#x60;, &#x60;VOLUME&#x60;, &#x60;VPC&#x60;,
* &#x60;VPCNETWORKRANGE&#x60;.
*
* @return type
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,11 @@ public class Server {
@SerializedName(SERIALIZED_NAME_VOLUMES)
@javax.annotation.Nullable private List<UUID> volumes;

public static final String SERIALIZED_NAME_VTPM = "vtpm";

@SerializedName(SERIALIZED_NAME_VTPM)
@javax.annotation.Nullable private ServerVTPM vtpm;

public Server() {}

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

public Server vtpm(@javax.annotation.Nullable ServerVTPM vtpm) {
this.vtpm = vtpm;
return this;
}

/**
* Get vtpm
*
* @return vtpm
*/
@javax.annotation.Nullable public ServerVTPM getVtpm() {
return vtpm;
}

public void setVtpm(@javax.annotation.Nullable ServerVTPM vtpm) {
this.vtpm = vtpm;
}

/**
* A container for additional, undeclared properties. This is a holder for any undeclared
* properties as specified with the 'additionalProperties' keyword in the OAS document.
Expand Down Expand Up @@ -682,6 +705,7 @@ public boolean equals(Object o) {
&& Objects.equals(this.updatedAt, server.updatedAt)
&& Arrays.equals(this.userData, server.userData)
&& Objects.equals(this.volumes, server.volumes)
&& Objects.equals(this.vtpm, server.vtpm)
&& Objects.equals(this.additionalProperties, server.additionalProperties);
}

Expand Down Expand Up @@ -713,6 +737,7 @@ public int hashCode() {
updatedAt,
Arrays.hashCode(userData),
volumes,
vtpm,
additionalProperties);
}

Expand Down Expand Up @@ -749,6 +774,7 @@ public String toString() {
sb.append(" updatedAt: ").append(toIndentedString(updatedAt)).append("\n");
sb.append(" userData: ").append(toIndentedString(userData)).append("\n");
sb.append(" volumes: ").append(toIndentedString(volumes)).append("\n");
sb.append(" vtpm: ").append(toIndentedString(vtpm)).append("\n");
sb.append(" additionalProperties: ")
.append(toIndentedString(additionalProperties))
.append("\n");
Expand Down Expand Up @@ -799,7 +825,8 @@ private String toIndentedString(Object o) {
"status",
"updatedAt",
"userData",
"volumes"));
"volumes",
"vtpm"));

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

public static class CustomTypeAdapterFactory implements TypeAdapterFactory {
Expand Down
Loading
Loading