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
2ca895969382a07a0a7e4aa9dd66ecfc19e058b3
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
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,8 @@ private okhttp3.Call addRoutesToRoutingTableValidateBeforeCall(
}

/**
* Create new routes in a routing table. Create new routes in an existing routing table.
* Create new routes in a routing table. Create new routes in an existing routing table of a
* network area.
*
* @param organizationId The identifier (ID) of a STACKIT Organization. (required)
* @param areaId The identifier (ID) of a STACKIT Network Area. (required)
Expand Down Expand Up @@ -306,7 +307,8 @@ public RouteListResponse addRoutesToRoutingTable(
}

/**
* Create new routes in a routing table. Create new routes in an existing routing table.
* Create new routes in a routing table. Create new routes in an existing routing table of a
* network area.
*
* @param organizationId The identifier (ID) of a STACKIT Organization. (required)
* @param areaId The identifier (ID) of a STACKIT Network Area. (required)
Expand Down Expand Up @@ -351,7 +353,7 @@ public ApiResponse<RouteListResponse> addRoutesToRoutingTableWithHttpInfo(

/**
* Create new routes in a routing table. (asynchronously) Create new routes in an existing
* routing table.
* routing table of a network area.
*
* @param organizationId The identifier (ID) of a STACKIT Organization. (required)
* @param areaId The identifier (ID) of a STACKIT Network Area. (required)
Expand Down Expand Up @@ -1229,7 +1231,8 @@ private okhttp3.Call deleteRouteFromRoutingTableValidateBeforeCall(
}

/**
* Delete a route in a routing table. Delete a route in an existing routing table.
* Delete a route in a routing table. Delete a route in an existing routing table of a network
* area.
*
* @param organizationId The identifier (ID) of a STACKIT Organization. (required)
* @param areaId The identifier (ID) of a STACKIT Network Area. (required)
Expand Down Expand Up @@ -1262,7 +1265,8 @@ public void deleteRouteFromRoutingTable(
}

/**
* Delete a route in a routing table. Delete a route in an existing routing table.
* Delete a route in a routing table. Delete a route in an existing routing table of a network
* area.
*
* @param organizationId The identifier (ID) of a STACKIT Organization. (required)
* @param areaId The identifier (ID) of a STACKIT Network Area. (required)
Expand Down Expand Up @@ -1299,7 +1303,7 @@ public ApiResponse<Void> deleteRouteFromRoutingTableWithHttpInfo(

/**
* Delete a route in a routing table. (asynchronously) Delete a route in an existing routing
* table.
* table of a network area.
*
* @param organizationId The identifier (ID) of a STACKIT Organization. (required)
* @param areaId The identifier (ID) of a STACKIT Network Area. (required)
Expand Down Expand Up @@ -1929,7 +1933,7 @@ private okhttp3.Call getRouteOfRoutingTableValidateBeforeCall(

/**
* Get details about a route of a routing table. Get details about a route defined in a routing
* table.
* table of a network area.
*
* @param organizationId The identifier (ID) of a STACKIT Organization. (required)
* @param areaId The identifier (ID) of a STACKIT Network Area. (required)
Expand Down Expand Up @@ -1966,7 +1970,7 @@ public Route getRouteOfRoutingTable(

/**
* Get details about a route of a routing table. Get details about a route defined in a routing
* table.
* table of a network area.
*
* @param organizationId The identifier (ID) of a STACKIT Organization. (required)
* @param areaId The identifier (ID) of a STACKIT Network Area. (required)
Expand Down Expand Up @@ -2004,7 +2008,7 @@ public ApiResponse<Route> getRouteOfRoutingTableWithHttpInfo(

/**
* Get details about a route of a routing table. (asynchronously) Get details about a route
* defined in a routing table.
* defined in a routing table of a network area.
*
* @param organizationId The identifier (ID) of a STACKIT Organization. (required)
* @param areaId The identifier (ID) of a STACKIT Network Area. (required)
Expand Down Expand Up @@ -2627,7 +2631,8 @@ private okhttp3.Call listNetworksOfRoutingTableValidateBeforeCall(
}

/**
* List all networks in a routing table. Get a list of all networks in a routing table.
* List all networks in a routing table. Get a list of all networks in a routing table of a
* network area.
*
* @param organizationId The identifier (ID) of a STACKIT Organization. (required)
* @param areaId The identifier (ID) of a STACKIT Network Area. (required)
Expand Down Expand Up @@ -2661,7 +2666,8 @@ public NetworkListResponse listNetworksOfRoutingTable(
}

/**
* List all networks in a routing table. Get a list of all networks in a routing table.
* List all networks in a routing table. Get a list of all networks in a routing table of a
* network area.
*
* @param organizationId The identifier (ID) of a STACKIT Organization. (required)
* @param areaId The identifier (ID) of a STACKIT Network Area. (required)
Expand Down Expand Up @@ -2697,7 +2703,7 @@ public ApiResponse<NetworkListResponse> listNetworksOfRoutingTableWithHttpInfo(

/**
* List all networks in a routing table. (asynchronously) Get a list of all networks in a
* routing table.
* routing table of a network area.
*
* @param organizationId The identifier (ID) of a STACKIT Organization. (required)
* @param areaId The identifier (ID) of a STACKIT Network Area. (required)
Expand Down Expand Up @@ -2874,7 +2880,8 @@ private okhttp3.Call listRoutesOfRoutingTableValidateBeforeCall(
}

/**
* List all routes in a routing table. Get a list of all routes in a routing table.
* List all routes in a routing table. Get a list of all routes in a routing table of a network
* area.
*
* @param organizationId The identifier (ID) of a STACKIT Organization. (required)
* @param areaId The identifier (ID) of a STACKIT Network Area. (required)
Expand Down Expand Up @@ -2910,7 +2917,8 @@ public RouteListResponse listRoutesOfRoutingTable(
}

/**
* List all routes in a routing table. Get a list of all routes in a routing table.
* List all routes in a routing table. Get a list of all routes in a routing table of a network
* area.
*
* @param organizationId The identifier (ID) of a STACKIT Organization. (required)
* @param areaId The identifier (ID) of a STACKIT Network Area. (required)
Expand Down Expand Up @@ -2948,7 +2956,7 @@ public ApiResponse<RouteListResponse> listRoutesOfRoutingTableWithHttpInfo(

/**
* List all routes in a routing table. (asynchronously) Get a list of all routes in a routing
* table.
* table of a network area.
*
* @param organizationId The identifier (ID) of a STACKIT Organization. (required)
* @param areaId The identifier (ID) of a STACKIT Network Area. (required)
Expand Down Expand Up @@ -3614,7 +3622,8 @@ private okhttp3.Call updateRouteOfRoutingTableValidateBeforeCall(
}

/**
* Update a route of a routing table. Update a route defined in a routing table.
* Update a route of a routing table. Update a route defined in a routing table of a network
* area.
*
* @param organizationId The identifier (ID) of a STACKIT Organization. (required)
* @param areaId The identifier (ID) of a STACKIT Network Area. (required)
Expand Down Expand Up @@ -3659,7 +3668,8 @@ public Route updateRouteOfRoutingTable(
}

/**
* Update a route of a routing table. Update a route defined in a routing table.
* Update a route of a routing table. Update a route defined in a routing table of a network
* area.
*
* @param organizationId The identifier (ID) of a STACKIT Organization. (required)
* @param areaId The identifier (ID) of a STACKIT Network Area. (required)
Expand Down Expand Up @@ -3706,8 +3716,8 @@ public ApiResponse<Route> updateRouteOfRoutingTableWithHttpInfo(
}

/**
* Update a route of a routing table. (asynchronously) Update a route defined in a routing
* table.
* Update a route of a routing table. (asynchronously) Update a route defined in a routing table
* of a network area.
*
* @param organizationId The identifier (ID) of a STACKIT Organization. (required)
* @param areaId The identifier (ID) of a STACKIT Network Area. (required)
Expand Down
Loading