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
efae0a126dee165f0b9c67f12dc73b658af6306c
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 @@ -37,6 +37,11 @@
value = "org.openapitools.codegen.languages.JavaClientCodegen",
comments = "Generator version: 7.19.0")
public class Snapshot {
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 Snapshot {
public Snapshot() {}

public Snapshot(
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;
}
Snapshot snapshot = (Snapshot) o;
return Objects.equals(this.createdAt, snapshot.createdAt)
return Objects.equals(this.availabilityZone, snapshot.availabilityZone)
&& Objects.equals(this.createdAt, snapshot.createdAt)
&& Objects.equals(this.description, snapshot.description)
&& Objects.equals(this.id, snapshot.id)
&& Objects.equals(this.labels, snapshot.labels)
Expand All @@ -287,6 +308,7 @@ public boolean equals(Object o) {
@Override
public int hashCode() {
return Objects.hash(
availabilityZone,
createdAt,
description,
id,
Expand All @@ -303,6 +325,7 @@ public int hashCode() {
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class Snapshot {\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 @@ -338,6 +361,7 @@ private String toIndentedString(Object o) {
openapiFields =
new HashSet<String>(
Arrays.asList(
"availabilityZone",
"createdAt",
"description",
"id",
Expand Down Expand Up @@ -382,6 +406,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
Loading
Loading