From b746aee6a5de7ea37c53f24966fcb27d4502328d Mon Sep 17 00:00:00 2001 From: SDK Generator Bot Date: Wed, 10 Jun 2026 08:57:17 +0000 Subject: [PATCH] Generate iaas --- services/iaas/oas_commit | 2 +- .../v1api/model/CreateSnapshotPayload.java | 37 +- .../sdk/iaas/v1api/model/Snapshot.java | 37 +- .../sdk/iaas/v2alpha1api/api/DefaultApi.java | 48 +- .../sdk/iaas/v2api/api/DefaultApi.java | 469 ++++++++++++- .../model/CreateNetworkAreaRangePayload.java | 2 +- .../v2api/model/CreateSnapshotPayload.java | 37 +- .../sdk/iaas/v2api/model/NetworkRange.java | 2 +- .../v2api/model/NetworkRangeListResponse.java | 4 +- .../iaas/v2api/model/RegionalAreaIPv4.java | 2 +- .../sdk/iaas/v2api/model/Snapshot.java | 37 +- .../stackit/sdk/iaas/v2beta1api/JSON.java | 4 +- .../sdk/iaas/v2beta1api/api/DefaultApi.java | 654 +++++++++++++++--- .../model/CreateNetworkAreaRangePayload.java | 2 +- .../iaas/v2beta1api/model/NetworkRange.java | 2 +- .../model/NetworkRangeListResponse.java | 4 +- .../v2beta1api/model/RegionalAreaIPv4.java | 2 +- .../sdk/iaas/v2beta1api/model/Snapshot.java | 37 +- ...2beta1CreateNetworkAreaRegionPayload.java} | 64 +- .../model/V2beta1CreateSnapshotPayload.java | 37 +- ...V2beta1UpdateNetworkAreaRoutePayload.java} | 61 +- 21 files changed, 1311 insertions(+), 233 deletions(-) rename services/iaas/src/main/java/cloud/stackit/sdk/iaas/v2beta1api/model/{V2beta1ConfigureNetworkAreaRegionPayload.java => V2beta1CreateNetworkAreaRegionPayload.java} (80%) rename services/iaas/src/main/java/cloud/stackit/sdk/iaas/v2beta1api/model/{V2beta1UpdateRouteOfAreaPayload.java => V2beta1UpdateNetworkAreaRoutePayload.java} (79%) diff --git a/services/iaas/oas_commit b/services/iaas/oas_commit index 27537628..0c0e97d6 100644 --- a/services/iaas/oas_commit +++ b/services/iaas/oas_commit @@ -1 +1 @@ -1c36f3781c31a0e21c4588c7c4ec835d477d2f21 +327e1a89405f6b4994afaee72ecc7e5a24c9c42d diff --git a/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v1api/model/CreateSnapshotPayload.java b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v1api/model/CreateSnapshotPayload.java index 7becdec3..b134c01c 100644 --- a/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v1api/model/CreateSnapshotPayload.java +++ b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v1api/model/CreateSnapshotPayload.java @@ -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) @@ -86,8 +91,14 @@ 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; @@ -95,6 +106,15 @@ public CreateSnapshotPayload( 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. * @@ -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) @@ -288,6 +309,7 @@ public boolean equals(Object o) { @Override public int hashCode() { return Objects.hash( + availabilityZone, createdAt, description, id, @@ -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"); @@ -339,6 +362,7 @@ private String toIndentedString(Object o) { openapiFields = new HashSet( Arrays.asList( + "availabilityZone", "createdAt", "description", "id", @@ -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( diff --git a/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v1api/model/Snapshot.java b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v1api/model/Snapshot.java index fe70f530..d2160ea2 100644 --- a/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v1api/model/Snapshot.java +++ b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v1api/model/Snapshot.java @@ -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) @@ -86,8 +91,14 @@ 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; @@ -95,6 +106,15 @@ public Snapshot( 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. * @@ -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) @@ -287,6 +308,7 @@ public boolean equals(Object o) { @Override public int hashCode() { return Objects.hash( + availabilityZone, createdAt, description, id, @@ -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"); @@ -338,6 +361,7 @@ private String toIndentedString(Object o) { openapiFields = new HashSet( Arrays.asList( + "availabilityZone", "createdAt", "description", "id", @@ -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( diff --git a/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v2alpha1api/api/DefaultApi.java b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v2alpha1api/api/DefaultApi.java index 31d30b90..56cf1993 100644 --- a/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v2alpha1api/api/DefaultApi.java +++ b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v2alpha1api/api/DefaultApi.java @@ -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) @@ -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) @@ -351,7 +353,7 @@ public ApiResponse 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) @@ -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) @@ -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) @@ -1299,7 +1303,7 @@ public ApiResponse 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) @@ -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) @@ -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) @@ -2004,7 +2008,7 @@ public ApiResponse 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) @@ -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) @@ -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) @@ -2697,7 +2703,7 @@ public ApiResponse 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) @@ -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) @@ -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) @@ -2948,7 +2956,7 @@ public ApiResponse 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) @@ -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) @@ -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) @@ -3706,8 +3716,8 @@ public ApiResponse 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) diff --git a/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v2api/api/DefaultApi.java b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v2api/api/DefaultApi.java index eb68ad37..e3b9aea9 100644 --- a/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v2api/api/DefaultApi.java +++ b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v2api/api/DefaultApi.java @@ -1797,7 +1797,7 @@ private okhttp3.Call addServiceAccountToServerValidateBeforeCall( } /** - * Attach service account to a server. Attach an additional service account to the server. + * Attach service account to a server. Attach a service account to the server. * * @param projectId The identifier (ID) of a STACKIT Project. (required) * @param region The STACKIT Region of the resources. (required) @@ -1832,7 +1832,7 @@ public ServiceAccountMailListResponse addServiceAccountToServer( } /** - * Attach service account to a server. Attach an additional service account to the server. + * Attach service account to a server. Attach a service account to the server. * * @param projectId The identifier (ID) of a STACKIT Project. (required) * @param region The STACKIT Region of the resources. (required) @@ -1868,8 +1868,7 @@ public ApiResponse addServiceAccountToServerWith } /** - * Attach service account to a server. (asynchronously) Attach an additional service account to - * the server. + * Attach service account to a server. (asynchronously) Attach a service account to the server. * * @param projectId The identifier (ID) of a STACKIT Project. (required) * @param region The STACKIT Region of the resources. (required) @@ -22005,7 +22004,7 @@ public okhttp3.Call listServerNICsAsync( * * * - * + * * * * @@ -22110,7 +22109,7 @@ private okhttp3.Call listServerServiceAccountsValidateBeforeCall( } /** - * List all service accounts of the Server. Get the list of the service accounts of the server. + * List the service account of the Server. Get service account of the server in a list. * * @param projectId The identifier (ID) of a STACKIT Project. (required) * @param region The STACKIT Region of the resources. (required) @@ -22122,7 +22121,7 @@ private okhttp3.Call listServerServiceAccountsValidateBeforeCall( *
Response Details
Status Code Description Response Headers
200 List service accounts. -
200 List service account. -
400 A bad request. -
401 A request which was not authorized. -
403 A request which was forbidden. -
* * - * + * * * * @@ -22141,7 +22140,7 @@ public ServiceAccountMailListResponse listServerServiceAccounts( } /** - * List all service accounts of the Server. Get the list of the service accounts of the server. + * List the service account of the Server. Get service account of the server in a list. * * @param projectId The identifier (ID) of a STACKIT Project. (required) * @param region The STACKIT Region of the resources. (required) @@ -22153,7 +22152,7 @@ public ServiceAccountMailListResponse listServerServiceAccounts( *
Response Details
Status Code Description Response Headers
200 List service accounts. -
200 List service account. -
400 A bad request. -
401 A request which was not authorized. -
403 A request which was forbidden. -
* * - * + * * * * @@ -22173,8 +22172,8 @@ public ApiResponse listServerServiceAccountsWith } /** - * List all service accounts of the Server. (asynchronously) Get the list of the service - * accounts of the server. + * List the service account of the Server. (asynchronously) Get service account of the server in + * a list. * * @param projectId The identifier (ID) of a STACKIT Project. (required) * @param region The STACKIT Region of the resources. (required) @@ -22187,7 +22186,7 @@ public ApiResponse listServerServiceAccountsWith *
Response Details
Status Code Description Response Headers
200 List service accounts. -
200 List service account. -
400 A bad request. -
401 A request which was not authorized. -
403 A request which was forbidden. -
* * - * + * * * * @@ -24835,7 +24834,7 @@ private okhttp3.Call removeServiceAccountFromServerValidateBeforeCall( } /** - * Detach a service account from a server. Detach an additional service account from the server. + * Detach a service account from a server. Detach a service account from the server. * * @param projectId The identifier (ID) of a STACKIT Project. (required) * @param region The STACKIT Region of the resources. (required) @@ -24870,7 +24869,7 @@ public ServiceAccountMailListResponse removeServiceAccountFromServer( } /** - * Detach a service account from a server. Detach an additional service account from the server. + * Detach a service account from a server. Detach a service account from the server. * * @param projectId The identifier (ID) of a STACKIT Project. (required) * @param region The STACKIT Region of the resources. (required) @@ -24906,8 +24905,8 @@ public ApiResponse removeServiceAccountFromServe } /** - * Detach a service account from a server. (asynchronously) Detach an additional service account - * from the server. + * Detach a service account from a server. (asynchronously) Detach a service account from the + * server. * * @param projectId The identifier (ID) of a STACKIT Project. (required) * @param region The STACKIT Region of the resources. (required) @@ -27712,6 +27711,444 @@ public okhttp3.Call updateImageAsync( return localVarCall; } + /** + * Build call for updateImageScopeLocal + * + * @param projectId The identifier (ID) of a STACKIT Project. (required) + * @param region The STACKIT Region of the resources. (required) + * @param imageId The identifier (ID) of a STACKIT Image. (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + *
Response Details
Status Code Description Response Headers
200 List service accounts. -
200 List service account. -
400 A bad request. -
401 A request which was not authorized. -
403 A request which was forbidden. -
+ * + * + * + * + * + * + * + * + *
Response Details
Status Code Description Response Headers
200 Response to update image-scope to local. Provide the updated image object. -
400 A bad request. -
401 A request which was not authorized. -
403 A request which was forbidden. -
404 The object was not found. -
500 Internal Server Error, returns a 500 if something is broken on IaaS API Side. -
+ */ + public okhttp3.Call updateImageScopeLocalCall( + @javax.annotation.Nonnull UUID projectId, + @javax.annotation.Nonnull String region, + @javax.annotation.Nonnull UUID imageId, + final ApiCallback _callback) + throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = + "/v2/projects/{projectId}/regions/{region}/images/{imageId}/publish" + .replace( + "{" + "projectId" + "}", + localVarApiClient.escapeString(projectId.toString())) + .replace( + "{" + "region" + "}", + localVarApiClient.escapeString(region.toString())) + .replace( + "{" + "imageId" + "}", + localVarApiClient.escapeString(imageId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = {}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] {}; + return localVarApiClient.buildCall( + basePath, + localVarPath, + "DELETE", + localVarQueryParams, + localVarCollectionQueryParams, + localVarPostBody, + localVarHeaderParams, + localVarCookieParams, + localVarFormParams, + localVarAuthNames, + _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call updateImageScopeLocalValidateBeforeCall( + @javax.annotation.Nonnull UUID projectId, + @javax.annotation.Nonnull String region, + @javax.annotation.Nonnull UUID imageId, + final ApiCallback _callback) + throws ApiException { + // verify the required parameter 'projectId' is set + if (projectId == null) { + throw new ApiException( + "Missing the required parameter 'projectId' when calling updateImageScopeLocal(Async)"); + } + + // verify the required parameter 'region' is set + if (region == null) { + throw new ApiException( + "Missing the required parameter 'region' when calling updateImageScopeLocal(Async)"); + } + + // verify the required parameter 'imageId' is set + if (imageId == null) { + throw new ApiException( + "Missing the required parameter 'imageId' when calling updateImageScopeLocal(Async)"); + } + + return updateImageScopeLocalCall(projectId, region, imageId, _callback); + } + + /** + * Update Image Scope to Local. Update the scope property of an existing Image inside a project + * to local. + * + * @param projectId The identifier (ID) of a STACKIT Project. (required) + * @param region The STACKIT Region of the resources. (required) + * @param imageId The identifier (ID) of a STACKIT Image. (required) + * @return Image + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + *
Response Details
Status Code Description Response Headers
200 Response to update image-scope to local. Provide the updated image object. -
400 A bad request. -
401 A request which was not authorized. -
403 A request which was forbidden. -
404 The object was not found. -
500 Internal Server Error, returns a 500 if something is broken on IaaS API Side. -
+ */ + public Image updateImageScopeLocal( + @javax.annotation.Nonnull UUID projectId, + @javax.annotation.Nonnull String region, + @javax.annotation.Nonnull UUID imageId) + throws ApiException { + ApiResponse localVarResp = + updateImageScopeLocalWithHttpInfo(projectId, region, imageId); + return localVarResp.getData(); + } + + /** + * Update Image Scope to Local. Update the scope property of an existing Image inside a project + * to local. + * + * @param projectId The identifier (ID) of a STACKIT Project. (required) + * @param region The STACKIT Region of the resources. (required) + * @param imageId The identifier (ID) of a STACKIT Image. (required) + * @return ApiResponse<Image> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + *
Response Details
Status Code Description Response Headers
200 Response to update image-scope to local. Provide the updated image object. -
400 A bad request. -
401 A request which was not authorized. -
403 A request which was forbidden. -
404 The object was not found. -
500 Internal Server Error, returns a 500 if something is broken on IaaS API Side. -
+ */ + public ApiResponse updateImageScopeLocalWithHttpInfo( + @javax.annotation.Nonnull UUID projectId, + @javax.annotation.Nonnull String region, + @javax.annotation.Nonnull UUID imageId) + throws ApiException { + okhttp3.Call localVarCall = + updateImageScopeLocalValidateBeforeCall(projectId, region, imageId, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Update Image Scope to Local. (asynchronously) Update the scope property of an existing Image + * inside a project to local. + * + * @param projectId The identifier (ID) of a STACKIT Project. (required) + * @param region The STACKIT Region of the resources. (required) + * @param imageId The identifier (ID) of a STACKIT Image. (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body + * object + * @http.response.details + * + * + * + * + * + * + * + * + * + *
Response Details
Status Code Description Response Headers
200 Response to update image-scope to local. Provide the updated image object. -
400 A bad request. -
401 A request which was not authorized. -
403 A request which was forbidden. -
404 The object was not found. -
500 Internal Server Error, returns a 500 if something is broken on IaaS API Side. -
+ */ + public okhttp3.Call updateImageScopeLocalAsync( + @javax.annotation.Nonnull UUID projectId, + @javax.annotation.Nonnull String region, + @javax.annotation.Nonnull UUID imageId, + final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = + updateImageScopeLocalValidateBeforeCall(projectId, region, imageId, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for updateImageScopePublic + * + * @param projectId The identifier (ID) of a STACKIT Project. (required) + * @param region The STACKIT Region of the resources. (required) + * @param imageId The identifier (ID) of a STACKIT Image. (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + *
Response Details
Status Code Description Response Headers
200 Response to update image-scope to public. Provide the updated image object. -
400 A bad request. -
401 A request which was not authorized. -
403 A request which was forbidden. -
404 The object was not found. -
500 Internal Server Error, returns a 500 if something is broken on IaaS API Side. -
+ */ + public okhttp3.Call updateImageScopePublicCall( + @javax.annotation.Nonnull UUID projectId, + @javax.annotation.Nonnull String region, + @javax.annotation.Nonnull UUID imageId, + final ApiCallback _callback) + throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = + "/v2/projects/{projectId}/regions/{region}/images/{imageId}/publish" + .replace( + "{" + "projectId" + "}", + localVarApiClient.escapeString(projectId.toString())) + .replace( + "{" + "region" + "}", + localVarApiClient.escapeString(region.toString())) + .replace( + "{" + "imageId" + "}", + localVarApiClient.escapeString(imageId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = {}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] {}; + return localVarApiClient.buildCall( + basePath, + localVarPath, + "PUT", + localVarQueryParams, + localVarCollectionQueryParams, + localVarPostBody, + localVarHeaderParams, + localVarCookieParams, + localVarFormParams, + localVarAuthNames, + _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call updateImageScopePublicValidateBeforeCall( + @javax.annotation.Nonnull UUID projectId, + @javax.annotation.Nonnull String region, + @javax.annotation.Nonnull UUID imageId, + final ApiCallback _callback) + throws ApiException { + // verify the required parameter 'projectId' is set + if (projectId == null) { + throw new ApiException( + "Missing the required parameter 'projectId' when calling updateImageScopePublic(Async)"); + } + + // verify the required parameter 'region' is set + if (region == null) { + throw new ApiException( + "Missing the required parameter 'region' when calling updateImageScopePublic(Async)"); + } + + // verify the required parameter 'imageId' is set + if (imageId == null) { + throw new ApiException( + "Missing the required parameter 'imageId' when calling updateImageScopePublic(Async)"); + } + + return updateImageScopePublicCall(projectId, region, imageId, _callback); + } + + /** + * Update Image Scope to Public. Update the scope property of an existing Image inside a project + * to public. + * + * @param projectId The identifier (ID) of a STACKIT Project. (required) + * @param region The STACKIT Region of the resources. (required) + * @param imageId The identifier (ID) of a STACKIT Image. (required) + * @return Image + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + *
Response Details
Status Code Description Response Headers
200 Response to update image-scope to public. Provide the updated image object. -
400 A bad request. -
401 A request which was not authorized. -
403 A request which was forbidden. -
404 The object was not found. -
500 Internal Server Error, returns a 500 if something is broken on IaaS API Side. -
+ */ + public Image updateImageScopePublic( + @javax.annotation.Nonnull UUID projectId, + @javax.annotation.Nonnull String region, + @javax.annotation.Nonnull UUID imageId) + throws ApiException { + ApiResponse localVarResp = + updateImageScopePublicWithHttpInfo(projectId, region, imageId); + return localVarResp.getData(); + } + + /** + * Update Image Scope to Public. Update the scope property of an existing Image inside a project + * to public. + * + * @param projectId The identifier (ID) of a STACKIT Project. (required) + * @param region The STACKIT Region of the resources. (required) + * @param imageId The identifier (ID) of a STACKIT Image. (required) + * @return ApiResponse<Image> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + *
Response Details
Status Code Description Response Headers
200 Response to update image-scope to public. Provide the updated image object. -
400 A bad request. -
401 A request which was not authorized. -
403 A request which was forbidden. -
404 The object was not found. -
500 Internal Server Error, returns a 500 if something is broken on IaaS API Side. -
+ */ + public ApiResponse updateImageScopePublicWithHttpInfo( + @javax.annotation.Nonnull UUID projectId, + @javax.annotation.Nonnull String region, + @javax.annotation.Nonnull UUID imageId) + throws ApiException { + okhttp3.Call localVarCall = + updateImageScopePublicValidateBeforeCall(projectId, region, imageId, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Update Image Scope to Public. (asynchronously) Update the scope property of an existing Image + * inside a project to public. + * + * @param projectId The identifier (ID) of a STACKIT Project. (required) + * @param region The STACKIT Region of the resources. (required) + * @param imageId The identifier (ID) of a STACKIT Image. (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body + * object + * @http.response.details + * + * + * + * + * + * + * + * + * + *
Response Details
Status Code Description Response Headers
200 Response to update image-scope to public. Provide the updated image object. -
400 A bad request. -
401 A request which was not authorized. -
403 A request which was forbidden. -
404 The object was not found. -
500 Internal Server Error, returns a 500 if something is broken on IaaS API Side. -
+ */ + public okhttp3.Call updateImageScopePublicAsync( + @javax.annotation.Nonnull UUID projectId, + @javax.annotation.Nonnull String region, + @javax.annotation.Nonnull UUID imageId, + final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = + updateImageScopePublicValidateBeforeCall(projectId, region, imageId, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** * Build call for updateImageShare * diff --git a/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v2api/model/CreateNetworkAreaRangePayload.java b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v2api/model/CreateNetworkAreaRangePayload.java index 71f7c5bd..433ae5a6 100644 --- a/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v2api/model/CreateNetworkAreaRangePayload.java +++ b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v2api/model/CreateNetworkAreaRangePayload.java @@ -58,7 +58,7 @@ public CreateNetworkAreaRangePayload addIpv4Item(NetworkRange ipv4Item) { } /** - * A list of network ranges. + * A list of network area network ranges. * * @return ipv4 */ diff --git a/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v2api/model/CreateSnapshotPayload.java b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v2api/model/CreateSnapshotPayload.java index d939e1e2..4eba4814 100644 --- a/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v2api/model/CreateSnapshotPayload.java +++ b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v2api/model/CreateSnapshotPayload.java @@ -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) @@ -86,8 +91,14 @@ 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; @@ -95,6 +106,15 @@ public CreateSnapshotPayload( 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. * @@ -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) @@ -288,6 +309,7 @@ public boolean equals(Object o) { @Override public int hashCode() { return Objects.hash( + availabilityZone, createdAt, description, id, @@ -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"); @@ -339,6 +362,7 @@ private String toIndentedString(Object o) { openapiFields = new HashSet( Arrays.asList( + "availabilityZone", "createdAt", "description", "id", @@ -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( diff --git a/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v2api/model/NetworkRange.java b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v2api/model/NetworkRange.java index 39d9dcef..166283e8 100644 --- a/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v2api/model/NetworkRange.java +++ b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v2api/model/NetworkRange.java @@ -32,7 +32,7 @@ import java.util.Objects; import java.util.UUID; -/** Object that represents a network range. */ +/** Object that represents a network range of a network area. */ @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0") diff --git a/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v2api/model/NetworkRangeListResponse.java b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v2api/model/NetworkRangeListResponse.java index ff561579..0a54fd05 100644 --- a/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v2api/model/NetworkRangeListResponse.java +++ b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v2api/model/NetworkRangeListResponse.java @@ -32,7 +32,7 @@ import java.util.Map; import java.util.Objects; -/** Network Range list response. */ +/** Network Range list response of a network area. */ @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0") @@ -59,7 +59,7 @@ public NetworkRangeListResponse addItemsItem(NetworkRange itemsItem) { } /** - * A list of network ranges. + * A list of network area network ranges. * * @return items */ diff --git a/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v2api/model/RegionalAreaIPv4.java b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v2api/model/RegionalAreaIPv4.java index 753b053e..c3138495 100644 --- a/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v2api/model/RegionalAreaIPv4.java +++ b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v2api/model/RegionalAreaIPv4.java @@ -173,7 +173,7 @@ public RegionalAreaIPv4 addNetworkRangesItem(NetworkRange networkRangesItem) { } /** - * A list of network ranges. + * A list of network area network ranges. * * @return networkRanges */ diff --git a/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v2api/model/Snapshot.java b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v2api/model/Snapshot.java index 06cf654f..594c68be 100644 --- a/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v2api/model/Snapshot.java +++ b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v2api/model/Snapshot.java @@ -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) @@ -86,8 +91,14 @@ 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; @@ -95,6 +106,15 @@ public Snapshot( 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. * @@ -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) @@ -287,6 +308,7 @@ public boolean equals(Object o) { @Override public int hashCode() { return Objects.hash( + availabilityZone, createdAt, description, id, @@ -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"); @@ -338,6 +361,7 @@ private String toIndentedString(Object o) { openapiFields = new HashSet( Arrays.asList( + "availabilityZone", "createdAt", "description", "id", @@ -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( diff --git a/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v2beta1api/JSON.java b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v2beta1api/JSON.java index c1cd69e2..6edbb0c8 100644 --- a/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v2beta1api/JSON.java +++ b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v2beta1api/JSON.java @@ -519,7 +519,7 @@ private static Class getClassByDiscriminator( new cloud.stackit.sdk.iaas.v2beta1api.model.UpdateVolumePayload .CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory( - new cloud.stackit.sdk.iaas.v2beta1api.model.V2beta1ConfigureNetworkAreaRegionPayload + new cloud.stackit.sdk.iaas.v2beta1api.model.V2beta1CreateNetworkAreaRegionPayload .CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory( new cloud.stackit.sdk.iaas.v2beta1api.model.V2beta1CreateSnapshotPayload @@ -531,7 +531,7 @@ private static Class getClassByDiscriminator( new cloud.stackit.sdk.iaas.v2beta1api.model.V2beta1UpdateNetworkAreaRegionPayload .CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory( - new cloud.stackit.sdk.iaas.v2beta1api.model.V2beta1UpdateRouteOfAreaPayload + new cloud.stackit.sdk.iaas.v2beta1api.model.V2beta1UpdateNetworkAreaRoutePayload .CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory( new cloud.stackit.sdk.iaas.v2beta1api.model.V2beta1UpdateSecurityGroupPayload diff --git a/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v2beta1api/api/DefaultApi.java b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v2beta1api/api/DefaultApi.java index 7f9378eb..dbf95fd4 100644 --- a/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v2beta1api/api/DefaultApi.java +++ b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v2beta1api/api/DefaultApi.java @@ -98,11 +98,11 @@ import cloud.stackit.sdk.iaas.v2beta1api.model.UpdateRoutingTableOfAreaPayload; import cloud.stackit.sdk.iaas.v2beta1api.model.UpdateServerPayload; import cloud.stackit.sdk.iaas.v2beta1api.model.UpdateVolumePayload; -import cloud.stackit.sdk.iaas.v2beta1api.model.V2beta1ConfigureNetworkAreaRegionPayload; +import cloud.stackit.sdk.iaas.v2beta1api.model.V2beta1CreateNetworkAreaRegionPayload; import cloud.stackit.sdk.iaas.v2beta1api.model.V2beta1CreateSnapshotPayload; import cloud.stackit.sdk.iaas.v2beta1api.model.V2beta1UpdateBackupPayload; import cloud.stackit.sdk.iaas.v2beta1api.model.V2beta1UpdateNetworkAreaRegionPayload; -import cloud.stackit.sdk.iaas.v2beta1api.model.V2beta1UpdateRouteOfAreaPayload; +import cloud.stackit.sdk.iaas.v2beta1api.model.V2beta1UpdateNetworkAreaRoutePayload; import cloud.stackit.sdk.iaas.v2beta1api.model.V2beta1UpdateSecurityGroupPayload; import cloud.stackit.sdk.iaas.v2beta1api.model.V2beta1UpdateSnapshotPayload; import cloud.stackit.sdk.iaas.v2beta1api.model.Volume; @@ -25506,6 +25506,444 @@ public okhttp3.Call updateImageAsync( return localVarCall; } + /** + * Build call for updateImageScopeLocal + * + * @param projectId The identifier (ID) of a STACKIT Project. (required) + * @param region The STACKIT Region of the resources. (required) + * @param imageId The identifier (ID) of a STACKIT Image. (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + *
Response Details
Status Code Description Response Headers
200 Response to update image-scope to local. Provide the updated image object. -
400 A bad request. -
401 A request which was not authorized. -
403 A request which was forbidden. -
404 The object was not found. -
500 Internal Server Error, returns a 500 if something is broken on IaaS API Side. -
+ */ + public okhttp3.Call updateImageScopeLocalCall( + @javax.annotation.Nonnull UUID projectId, + @javax.annotation.Nonnull String region, + @javax.annotation.Nonnull UUID imageId, + final ApiCallback _callback) + throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = + "/v2beta1/projects/{projectId}/regions/{region}/images/{imageId}/publish" + .replace( + "{" + "projectId" + "}", + localVarApiClient.escapeString(projectId.toString())) + .replace( + "{" + "region" + "}", + localVarApiClient.escapeString(region.toString())) + .replace( + "{" + "imageId" + "}", + localVarApiClient.escapeString(imageId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = {}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] {}; + return localVarApiClient.buildCall( + basePath, + localVarPath, + "DELETE", + localVarQueryParams, + localVarCollectionQueryParams, + localVarPostBody, + localVarHeaderParams, + localVarCookieParams, + localVarFormParams, + localVarAuthNames, + _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call updateImageScopeLocalValidateBeforeCall( + @javax.annotation.Nonnull UUID projectId, + @javax.annotation.Nonnull String region, + @javax.annotation.Nonnull UUID imageId, + final ApiCallback _callback) + throws ApiException { + // verify the required parameter 'projectId' is set + if (projectId == null) { + throw new ApiException( + "Missing the required parameter 'projectId' when calling updateImageScopeLocal(Async)"); + } + + // verify the required parameter 'region' is set + if (region == null) { + throw new ApiException( + "Missing the required parameter 'region' when calling updateImageScopeLocal(Async)"); + } + + // verify the required parameter 'imageId' is set + if (imageId == null) { + throw new ApiException( + "Missing the required parameter 'imageId' when calling updateImageScopeLocal(Async)"); + } + + return updateImageScopeLocalCall(projectId, region, imageId, _callback); + } + + /** + * Update Image Scope to Local. Update the scope property of an existing Image inside a project + * to local. + * + * @param projectId The identifier (ID) of a STACKIT Project. (required) + * @param region The STACKIT Region of the resources. (required) + * @param imageId The identifier (ID) of a STACKIT Image. (required) + * @return Image + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + *
Response Details
Status Code Description Response Headers
200 Response to update image-scope to local. Provide the updated image object. -
400 A bad request. -
401 A request which was not authorized. -
403 A request which was forbidden. -
404 The object was not found. -
500 Internal Server Error, returns a 500 if something is broken on IaaS API Side. -
+ */ + public Image updateImageScopeLocal( + @javax.annotation.Nonnull UUID projectId, + @javax.annotation.Nonnull String region, + @javax.annotation.Nonnull UUID imageId) + throws ApiException { + ApiResponse localVarResp = + updateImageScopeLocalWithHttpInfo(projectId, region, imageId); + return localVarResp.getData(); + } + + /** + * Update Image Scope to Local. Update the scope property of an existing Image inside a project + * to local. + * + * @param projectId The identifier (ID) of a STACKIT Project. (required) + * @param region The STACKIT Region of the resources. (required) + * @param imageId The identifier (ID) of a STACKIT Image. (required) + * @return ApiResponse<Image> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + *
Response Details
Status Code Description Response Headers
200 Response to update image-scope to local. Provide the updated image object. -
400 A bad request. -
401 A request which was not authorized. -
403 A request which was forbidden. -
404 The object was not found. -
500 Internal Server Error, returns a 500 if something is broken on IaaS API Side. -
+ */ + public ApiResponse updateImageScopeLocalWithHttpInfo( + @javax.annotation.Nonnull UUID projectId, + @javax.annotation.Nonnull String region, + @javax.annotation.Nonnull UUID imageId) + throws ApiException { + okhttp3.Call localVarCall = + updateImageScopeLocalValidateBeforeCall(projectId, region, imageId, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Update Image Scope to Local. (asynchronously) Update the scope property of an existing Image + * inside a project to local. + * + * @param projectId The identifier (ID) of a STACKIT Project. (required) + * @param region The STACKIT Region of the resources. (required) + * @param imageId The identifier (ID) of a STACKIT Image. (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body + * object + * @http.response.details + * + * + * + * + * + * + * + * + * + *
Response Details
Status Code Description Response Headers
200 Response to update image-scope to local. Provide the updated image object. -
400 A bad request. -
401 A request which was not authorized. -
403 A request which was forbidden. -
404 The object was not found. -
500 Internal Server Error, returns a 500 if something is broken on IaaS API Side. -
+ */ + public okhttp3.Call updateImageScopeLocalAsync( + @javax.annotation.Nonnull UUID projectId, + @javax.annotation.Nonnull String region, + @javax.annotation.Nonnull UUID imageId, + final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = + updateImageScopeLocalValidateBeforeCall(projectId, region, imageId, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for updateImageScopePublic + * + * @param projectId The identifier (ID) of a STACKIT Project. (required) + * @param region The STACKIT Region of the resources. (required) + * @param imageId The identifier (ID) of a STACKIT Image. (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + * + * + * + * + * + * + *
Response Details
Status Code Description Response Headers
200 Response to update image-scope to public. Provide the updated image object. -
400 A bad request. -
401 A request which was not authorized. -
403 A request which was forbidden. -
404 The object was not found. -
500 Internal Server Error, returns a 500 if something is broken on IaaS API Side. -
+ */ + public okhttp3.Call updateImageScopePublicCall( + @javax.annotation.Nonnull UUID projectId, + @javax.annotation.Nonnull String region, + @javax.annotation.Nonnull UUID imageId, + final ApiCallback _callback) + throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = + "/v2beta1/projects/{projectId}/regions/{region}/images/{imageId}/publish" + .replace( + "{" + "projectId" + "}", + localVarApiClient.escapeString(projectId.toString())) + .replace( + "{" + "region" + "}", + localVarApiClient.escapeString(region.toString())) + .replace( + "{" + "imageId" + "}", + localVarApiClient.escapeString(imageId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = {}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] {}; + return localVarApiClient.buildCall( + basePath, + localVarPath, + "PUT", + localVarQueryParams, + localVarCollectionQueryParams, + localVarPostBody, + localVarHeaderParams, + localVarCookieParams, + localVarFormParams, + localVarAuthNames, + _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call updateImageScopePublicValidateBeforeCall( + @javax.annotation.Nonnull UUID projectId, + @javax.annotation.Nonnull String region, + @javax.annotation.Nonnull UUID imageId, + final ApiCallback _callback) + throws ApiException { + // verify the required parameter 'projectId' is set + if (projectId == null) { + throw new ApiException( + "Missing the required parameter 'projectId' when calling updateImageScopePublic(Async)"); + } + + // verify the required parameter 'region' is set + if (region == null) { + throw new ApiException( + "Missing the required parameter 'region' when calling updateImageScopePublic(Async)"); + } + + // verify the required parameter 'imageId' is set + if (imageId == null) { + throw new ApiException( + "Missing the required parameter 'imageId' when calling updateImageScopePublic(Async)"); + } + + return updateImageScopePublicCall(projectId, region, imageId, _callback); + } + + /** + * Update Image Scope to Public. Update the scope property of an existing Image inside a project + * to public. + * + * @param projectId The identifier (ID) of a STACKIT Project. (required) + * @param region The STACKIT Region of the resources. (required) + * @param imageId The identifier (ID) of a STACKIT Image. (required) + * @return Image + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + *
Response Details
Status Code Description Response Headers
200 Response to update image-scope to public. Provide the updated image object. -
400 A bad request. -
401 A request which was not authorized. -
403 A request which was forbidden. -
404 The object was not found. -
500 Internal Server Error, returns a 500 if something is broken on IaaS API Side. -
+ */ + public Image updateImageScopePublic( + @javax.annotation.Nonnull UUID projectId, + @javax.annotation.Nonnull String region, + @javax.annotation.Nonnull UUID imageId) + throws ApiException { + ApiResponse localVarResp = + updateImageScopePublicWithHttpInfo(projectId, region, imageId); + return localVarResp.getData(); + } + + /** + * Update Image Scope to Public. Update the scope property of an existing Image inside a project + * to public. + * + * @param projectId The identifier (ID) of a STACKIT Project. (required) + * @param region The STACKIT Region of the resources. (required) + * @param imageId The identifier (ID) of a STACKIT Image. (required) + * @return ApiResponse<Image> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + * + * + * + * + * + * + *
Response Details
Status Code Description Response Headers
200 Response to update image-scope to public. Provide the updated image object. -
400 A bad request. -
401 A request which was not authorized. -
403 A request which was forbidden. -
404 The object was not found. -
500 Internal Server Error, returns a 500 if something is broken on IaaS API Side. -
+ */ + public ApiResponse updateImageScopePublicWithHttpInfo( + @javax.annotation.Nonnull UUID projectId, + @javax.annotation.Nonnull String region, + @javax.annotation.Nonnull UUID imageId) + throws ApiException { + okhttp3.Call localVarCall = + updateImageScopePublicValidateBeforeCall(projectId, region, imageId, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Update Image Scope to Public. (asynchronously) Update the scope property of an existing Image + * inside a project to public. + * + * @param projectId The identifier (ID) of a STACKIT Project. (required) + * @param region The STACKIT Region of the resources. (required) + * @param imageId The identifier (ID) of a STACKIT Image. (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body + * object + * @http.response.details + * + * + * + * + * + * + * + * + * + *
Response Details
Status Code Description Response Headers
200 Response to update image-scope to public. Provide the updated image object. -
400 A bad request. -
401 A request which was not authorized. -
403 A request which was forbidden. -
404 The object was not found. -
500 Internal Server Error, returns a 500 if something is broken on IaaS API Side. -
+ */ + public okhttp3.Call updateImageScopePublicAsync( + @javax.annotation.Nonnull UUID projectId, + @javax.annotation.Nonnull String region, + @javax.annotation.Nonnull UUID imageId, + final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = + updateImageScopePublicValidateBeforeCall(projectId, region, imageId, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** * Build call for updateImageShare * @@ -27476,12 +27914,12 @@ public okhttp3.Call updateVolumeAsync( } /** - * Build call for v2beta1ConfigureNetworkAreaRegion + * Build call for v2beta1CreateNetworkAreaRegion * * @param organizationId The identifier (ID) of a STACKIT Organization. (required) * @param areaId The identifier (ID) of a STACKIT Network Area. (required) * @param region The STACKIT Region of the resources. (required) - * @param v2beta1ConfigureNetworkAreaRegionPayload Request to add a new regional network area + * @param v2beta1CreateNetworkAreaRegionPayload Request to add a new regional network area * configuration. (required) * @param _callback Callback for upload/download progress * @return Call to execute @@ -27499,13 +27937,12 @@ public okhttp3.Call updateVolumeAsync( * 500 Internal Server Error, returns a 500 if something is broken on IaaS API Side. - * */ - public okhttp3.Call v2beta1ConfigureNetworkAreaRegionCall( + public okhttp3.Call v2beta1CreateNetworkAreaRegionCall( @javax.annotation.Nonnull UUID organizationId, @javax.annotation.Nonnull UUID areaId, @javax.annotation.Nonnull String region, @javax.annotation.Nonnull - V2beta1ConfigureNetworkAreaRegionPayload - v2beta1ConfigureNetworkAreaRegionPayload, + V2beta1CreateNetworkAreaRegionPayload v2beta1CreateNetworkAreaRegionPayload, final ApiCallback _callback) throws ApiException { String basePath = null; @@ -27521,7 +27958,7 @@ public okhttp3.Call v2beta1ConfigureNetworkAreaRegionCall( basePath = null; } - Object localVarPostBody = v2beta1ConfigureNetworkAreaRegionPayload; + Object localVarPostBody = v2beta1CreateNetworkAreaRegionPayload; // create path and map variables String localVarPath = @@ -27571,45 +28008,40 @@ public okhttp3.Call v2beta1ConfigureNetworkAreaRegionCall( } @SuppressWarnings("rawtypes") - private okhttp3.Call v2beta1ConfigureNetworkAreaRegionValidateBeforeCall( + private okhttp3.Call v2beta1CreateNetworkAreaRegionValidateBeforeCall( @javax.annotation.Nonnull UUID organizationId, @javax.annotation.Nonnull UUID areaId, @javax.annotation.Nonnull String region, @javax.annotation.Nonnull - V2beta1ConfigureNetworkAreaRegionPayload - v2beta1ConfigureNetworkAreaRegionPayload, + V2beta1CreateNetworkAreaRegionPayload v2beta1CreateNetworkAreaRegionPayload, final ApiCallback _callback) throws ApiException { // verify the required parameter 'organizationId' is set if (organizationId == null) { throw new ApiException( - "Missing the required parameter 'organizationId' when calling v2beta1ConfigureNetworkAreaRegion(Async)"); + "Missing the required parameter 'organizationId' when calling v2beta1CreateNetworkAreaRegion(Async)"); } // verify the required parameter 'areaId' is set if (areaId == null) { throw new ApiException( - "Missing the required parameter 'areaId' when calling v2beta1ConfigureNetworkAreaRegion(Async)"); + "Missing the required parameter 'areaId' when calling v2beta1CreateNetworkAreaRegion(Async)"); } // verify the required parameter 'region' is set if (region == null) { throw new ApiException( - "Missing the required parameter 'region' when calling v2beta1ConfigureNetworkAreaRegion(Async)"); + "Missing the required parameter 'region' when calling v2beta1CreateNetworkAreaRegion(Async)"); } - // verify the required parameter 'v2beta1ConfigureNetworkAreaRegionPayload' is set - if (v2beta1ConfigureNetworkAreaRegionPayload == null) { + // verify the required parameter 'v2beta1CreateNetworkAreaRegionPayload' is set + if (v2beta1CreateNetworkAreaRegionPayload == null) { throw new ApiException( - "Missing the required parameter 'v2beta1ConfigureNetworkAreaRegionPayload' when calling v2beta1ConfigureNetworkAreaRegion(Async)"); + "Missing the required parameter 'v2beta1CreateNetworkAreaRegionPayload' when calling v2beta1CreateNetworkAreaRegion(Async)"); } - return v2beta1ConfigureNetworkAreaRegionCall( - organizationId, - areaId, - region, - v2beta1ConfigureNetworkAreaRegionPayload, - _callback); + return v2beta1CreateNetworkAreaRegionCall( + organizationId, areaId, region, v2beta1CreateNetworkAreaRegionPayload, _callback); } /** @@ -27618,7 +28050,7 @@ private okhttp3.Call v2beta1ConfigureNetworkAreaRegionValidateBeforeCall( * @param organizationId The identifier (ID) of a STACKIT Organization. (required) * @param areaId The identifier (ID) of a STACKIT Network Area. (required) * @param region The STACKIT Region of the resources. (required) - * @param v2beta1ConfigureNetworkAreaRegionPayload Request to add a new regional network area + * @param v2beta1CreateNetworkAreaRegionPayload Request to add a new regional network area * configuration. (required) * @return RegionalArea * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the @@ -27636,17 +28068,16 @@ private okhttp3.Call v2beta1ConfigureNetworkAreaRegionValidateBeforeCall( * 500 Internal Server Error, returns a 500 if something is broken on IaaS API Side. - * */ - public RegionalArea v2beta1ConfigureNetworkAreaRegion( + public RegionalArea v2beta1CreateNetworkAreaRegion( @javax.annotation.Nonnull UUID organizationId, @javax.annotation.Nonnull UUID areaId, @javax.annotation.Nonnull String region, @javax.annotation.Nonnull - V2beta1ConfigureNetworkAreaRegionPayload - v2beta1ConfigureNetworkAreaRegionPayload) + V2beta1CreateNetworkAreaRegionPayload v2beta1CreateNetworkAreaRegionPayload) throws ApiException { ApiResponse localVarResp = - v2beta1ConfigureNetworkAreaRegionWithHttpInfo( - organizationId, areaId, region, v2beta1ConfigureNetworkAreaRegionPayload); + v2beta1CreateNetworkAreaRegionWithHttpInfo( + organizationId, areaId, region, v2beta1CreateNetworkAreaRegionPayload); return localVarResp.getData(); } @@ -27656,7 +28087,7 @@ public RegionalArea v2beta1ConfigureNetworkAreaRegion( * @param organizationId The identifier (ID) of a STACKIT Organization. (required) * @param areaId The identifier (ID) of a STACKIT Network Area. (required) * @param region The STACKIT Region of the resources. (required) - * @param v2beta1ConfigureNetworkAreaRegionPayload Request to add a new regional network area + * @param v2beta1CreateNetworkAreaRegionPayload Request to add a new regional network area * configuration. (required) * @return ApiResponse<RegionalArea> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the @@ -27674,20 +28105,19 @@ public RegionalArea v2beta1ConfigureNetworkAreaRegion( * 500 Internal Server Error, returns a 500 if something is broken on IaaS API Side. - * */ - public ApiResponse v2beta1ConfigureNetworkAreaRegionWithHttpInfo( + public ApiResponse v2beta1CreateNetworkAreaRegionWithHttpInfo( @javax.annotation.Nonnull UUID organizationId, @javax.annotation.Nonnull UUID areaId, @javax.annotation.Nonnull String region, @javax.annotation.Nonnull - V2beta1ConfigureNetworkAreaRegionPayload - v2beta1ConfigureNetworkAreaRegionPayload) + V2beta1CreateNetworkAreaRegionPayload v2beta1CreateNetworkAreaRegionPayload) throws ApiException { okhttp3.Call localVarCall = - v2beta1ConfigureNetworkAreaRegionValidateBeforeCall( + v2beta1CreateNetworkAreaRegionValidateBeforeCall( organizationId, areaId, region, - v2beta1ConfigureNetworkAreaRegionPayload, + v2beta1CreateNetworkAreaRegionPayload, null); Type localVarReturnType = new TypeToken() {}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -27700,7 +28130,7 @@ public ApiResponse v2beta1ConfigureNetworkAreaRegionWithHttpInfo( * @param organizationId The identifier (ID) of a STACKIT Organization. (required) * @param areaId The identifier (ID) of a STACKIT Network Area. (required) * @param region The STACKIT Region of the resources. (required) - * @param v2beta1ConfigureNetworkAreaRegionPayload Request to add a new regional network area + * @param v2beta1CreateNetworkAreaRegionPayload Request to add a new regional network area * configuration. (required) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -27719,22 +28149,21 @@ public ApiResponse v2beta1ConfigureNetworkAreaRegionWithHttpInfo( * 500 Internal Server Error, returns a 500 if something is broken on IaaS API Side. - * */ - public okhttp3.Call v2beta1ConfigureNetworkAreaRegionAsync( + public okhttp3.Call v2beta1CreateNetworkAreaRegionAsync( @javax.annotation.Nonnull UUID organizationId, @javax.annotation.Nonnull UUID areaId, @javax.annotation.Nonnull String region, @javax.annotation.Nonnull - V2beta1ConfigureNetworkAreaRegionPayload - v2beta1ConfigureNetworkAreaRegionPayload, + V2beta1CreateNetworkAreaRegionPayload v2beta1CreateNetworkAreaRegionPayload, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = - v2beta1ConfigureNetworkAreaRegionValidateBeforeCall( + v2beta1CreateNetworkAreaRegionValidateBeforeCall( organizationId, areaId, region, - v2beta1ConfigureNetworkAreaRegionPayload, + v2beta1CreateNetworkAreaRegionPayload, _callback); Type localVarReturnType = new TypeToken() {}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); @@ -28389,7 +28818,7 @@ public okhttp3.Call v2beta1DeleteSnapshotAsync( } /** - * Build call for v2beta1GetAreaRegion + * Build call for v2beta1GetNetworkAreaRegion * * @param organizationId The identifier (ID) of a STACKIT Organization. (required) * @param areaId The identifier (ID) of a STACKIT Network Area. (required) @@ -28409,7 +28838,7 @@ public okhttp3.Call v2beta1DeleteSnapshotAsync( * 500 Internal Server Error, returns a 500 if something is broken on IaaS API Side. - * */ - public okhttp3.Call v2beta1GetAreaRegionCall( + public okhttp3.Call v2beta1GetNetworkAreaRegionCall( @javax.annotation.Nonnull UUID organizationId, @javax.annotation.Nonnull UUID areaId, @javax.annotation.Nonnull String region, @@ -28478,7 +28907,7 @@ public okhttp3.Call v2beta1GetAreaRegionCall( } @SuppressWarnings("rawtypes") - private okhttp3.Call v2beta1GetAreaRegionValidateBeforeCall( + private okhttp3.Call v2beta1GetNetworkAreaRegionValidateBeforeCall( @javax.annotation.Nonnull UUID organizationId, @javax.annotation.Nonnull UUID areaId, @javax.annotation.Nonnull String region, @@ -28487,22 +28916,22 @@ private okhttp3.Call v2beta1GetAreaRegionValidateBeforeCall( // verify the required parameter 'organizationId' is set if (organizationId == null) { throw new ApiException( - "Missing the required parameter 'organizationId' when calling v2beta1GetAreaRegion(Async)"); + "Missing the required parameter 'organizationId' when calling v2beta1GetNetworkAreaRegion(Async)"); } // verify the required parameter 'areaId' is set if (areaId == null) { throw new ApiException( - "Missing the required parameter 'areaId' when calling v2beta1GetAreaRegion(Async)"); + "Missing the required parameter 'areaId' when calling v2beta1GetNetworkAreaRegion(Async)"); } // verify the required parameter 'region' is set if (region == null) { throw new ApiException( - "Missing the required parameter 'region' when calling v2beta1GetAreaRegion(Async)"); + "Missing the required parameter 'region' when calling v2beta1GetNetworkAreaRegion(Async)"); } - return v2beta1GetAreaRegionCall(organizationId, areaId, region, _callback); + return v2beta1GetNetworkAreaRegionCall(organizationId, areaId, region, _callback); } /** @@ -28527,13 +28956,13 @@ private okhttp3.Call v2beta1GetAreaRegionValidateBeforeCall( * 500 Internal Server Error, returns a 500 if something is broken on IaaS API Side. - * */ - public RegionalArea v2beta1GetAreaRegion( + public RegionalArea v2beta1GetNetworkAreaRegion( @javax.annotation.Nonnull UUID organizationId, @javax.annotation.Nonnull UUID areaId, @javax.annotation.Nonnull String region) throws ApiException { ApiResponse localVarResp = - v2beta1GetAreaRegionWithHttpInfo(organizationId, areaId, region); + v2beta1GetNetworkAreaRegionWithHttpInfo(organizationId, areaId, region); return localVarResp.getData(); } @@ -28559,13 +28988,13 @@ public RegionalArea v2beta1GetAreaRegion( * 500 Internal Server Error, returns a 500 if something is broken on IaaS API Side. - * */ - public ApiResponse v2beta1GetAreaRegionWithHttpInfo( + public ApiResponse v2beta1GetNetworkAreaRegionWithHttpInfo( @javax.annotation.Nonnull UUID organizationId, @javax.annotation.Nonnull UUID areaId, @javax.annotation.Nonnull String region) throws ApiException { okhttp3.Call localVarCall = - v2beta1GetAreaRegionValidateBeforeCall(organizationId, areaId, region, null); + v2beta1GetNetworkAreaRegionValidateBeforeCall(organizationId, areaId, region, null); Type localVarReturnType = new TypeToken() {}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -28593,7 +29022,7 @@ public ApiResponse v2beta1GetAreaRegionWithHttpInfo( * 500 Internal Server Error, returns a 500 if something is broken on IaaS API Side. - * */ - public okhttp3.Call v2beta1GetAreaRegionAsync( + public okhttp3.Call v2beta1GetNetworkAreaRegionAsync( @javax.annotation.Nonnull UUID organizationId, @javax.annotation.Nonnull UUID areaId, @javax.annotation.Nonnull String region, @@ -28601,7 +29030,8 @@ public okhttp3.Call v2beta1GetAreaRegionAsync( throws ApiException { okhttp3.Call localVarCall = - v2beta1GetAreaRegionValidateBeforeCall(organizationId, areaId, region, _callback); + v2beta1GetNetworkAreaRegionValidateBeforeCall( + organizationId, areaId, region, _callback); Type localVarReturnType = new TypeToken() {}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -28824,7 +29254,7 @@ public okhttp3.Call v2beta1GetSnapshotAsync( } /** - * Build call for v2beta1ListAreaRegions + * Build call for v2beta1ListNetworkAreaRegions * * @param organizationId The identifier (ID) of a STACKIT Organization. (required) * @param areaId The identifier (ID) of a STACKIT Network Area. (required) @@ -28843,7 +29273,7 @@ public okhttp3.Call v2beta1GetSnapshotAsync( * 500 Internal Server Error, returns a 500 if something is broken on IaaS API Side. - * */ - public okhttp3.Call v2beta1ListAreaRegionsCall( + public okhttp3.Call v2beta1ListNetworkAreaRegionsCall( @javax.annotation.Nonnull UUID organizationId, @javax.annotation.Nonnull UUID areaId, final ApiCallback _callback) @@ -28908,7 +29338,7 @@ public okhttp3.Call v2beta1ListAreaRegionsCall( } @SuppressWarnings("rawtypes") - private okhttp3.Call v2beta1ListAreaRegionsValidateBeforeCall( + private okhttp3.Call v2beta1ListNetworkAreaRegionsValidateBeforeCall( @javax.annotation.Nonnull UUID organizationId, @javax.annotation.Nonnull UUID areaId, final ApiCallback _callback) @@ -28916,16 +29346,16 @@ private okhttp3.Call v2beta1ListAreaRegionsValidateBeforeCall( // verify the required parameter 'organizationId' is set if (organizationId == null) { throw new ApiException( - "Missing the required parameter 'organizationId' when calling v2beta1ListAreaRegions(Async)"); + "Missing the required parameter 'organizationId' when calling v2beta1ListNetworkAreaRegions(Async)"); } // verify the required parameter 'areaId' is set if (areaId == null) { throw new ApiException( - "Missing the required parameter 'areaId' when calling v2beta1ListAreaRegions(Async)"); + "Missing the required parameter 'areaId' when calling v2beta1ListNetworkAreaRegions(Async)"); } - return v2beta1ListAreaRegionsCall(organizationId, areaId, _callback); + return v2beta1ListNetworkAreaRegionsCall(organizationId, areaId, _callback); } /** @@ -28948,11 +29378,11 @@ private okhttp3.Call v2beta1ListAreaRegionsValidateBeforeCall( * 500 Internal Server Error, returns a 500 if something is broken on IaaS API Side. - * */ - public RegionalAreaListResponse v2beta1ListAreaRegions( + public RegionalAreaListResponse v2beta1ListNetworkAreaRegions( @javax.annotation.Nonnull UUID organizationId, @javax.annotation.Nonnull UUID areaId) throws ApiException { ApiResponse localVarResp = - v2beta1ListAreaRegionsWithHttpInfo(organizationId, areaId); + v2beta1ListNetworkAreaRegionsWithHttpInfo(organizationId, areaId); return localVarResp.getData(); } @@ -28976,11 +29406,11 @@ public RegionalAreaListResponse v2beta1ListAreaRegions( * 500 Internal Server Error, returns a 500 if something is broken on IaaS API Side. - * */ - public ApiResponse v2beta1ListAreaRegionsWithHttpInfo( + public ApiResponse v2beta1ListNetworkAreaRegionsWithHttpInfo( @javax.annotation.Nonnull UUID organizationId, @javax.annotation.Nonnull UUID areaId) throws ApiException { okhttp3.Call localVarCall = - v2beta1ListAreaRegionsValidateBeforeCall(organizationId, areaId, null); + v2beta1ListNetworkAreaRegionsValidateBeforeCall(organizationId, areaId, null); Type localVarReturnType = new TypeToken() {}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -29007,21 +29437,21 @@ public ApiResponse v2beta1ListAreaRegionsWithHttpInfo( * 500 Internal Server Error, returns a 500 if something is broken on IaaS API Side. - * */ - public okhttp3.Call v2beta1ListAreaRegionsAsync( + public okhttp3.Call v2beta1ListNetworkAreaRegionsAsync( @javax.annotation.Nonnull UUID organizationId, @javax.annotation.Nonnull UUID areaId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = - v2beta1ListAreaRegionsValidateBeforeCall(organizationId, areaId, _callback); + v2beta1ListNetworkAreaRegionsValidateBeforeCall(organizationId, areaId, _callback); Type localVarReturnType = new TypeToken() {}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** - * Build call for v2beta1ListSnapshotsInProject + * Build call for v2beta1ListSnapshots * * @param projectId The identifier (ID) of a STACKIT Project. (required) * @param region The STACKIT Region of the resources. (required) @@ -29041,7 +29471,7 @@ public okhttp3.Call v2beta1ListAreaRegionsAsync( * 500 Internal Server Error, returns a 500 if something is broken on IaaS API Side. - * */ - public okhttp3.Call v2beta1ListSnapshotsInProjectCall( + public okhttp3.Call v2beta1ListSnapshotsCall( @javax.annotation.Nonnull UUID projectId, @javax.annotation.Nonnull String region, @javax.annotation.Nullable String labelSelector, @@ -29112,7 +29542,7 @@ public okhttp3.Call v2beta1ListSnapshotsInProjectCall( } @SuppressWarnings("rawtypes") - private okhttp3.Call v2beta1ListSnapshotsInProjectValidateBeforeCall( + private okhttp3.Call v2beta1ListSnapshotsValidateBeforeCall( @javax.annotation.Nonnull UUID projectId, @javax.annotation.Nonnull String region, @javax.annotation.Nullable String labelSelector, @@ -29121,16 +29551,16 @@ private okhttp3.Call v2beta1ListSnapshotsInProjectValidateBeforeCall( // verify the required parameter 'projectId' is set if (projectId == null) { throw new ApiException( - "Missing the required parameter 'projectId' when calling v2beta1ListSnapshotsInProject(Async)"); + "Missing the required parameter 'projectId' when calling v2beta1ListSnapshots(Async)"); } // verify the required parameter 'region' is set if (region == null) { throw new ApiException( - "Missing the required parameter 'region' when calling v2beta1ListSnapshotsInProject(Async)"); + "Missing the required parameter 'region' when calling v2beta1ListSnapshots(Async)"); } - return v2beta1ListSnapshotsInProjectCall(projectId, region, labelSelector, _callback); + return v2beta1ListSnapshotsCall(projectId, region, labelSelector, _callback); } /** @@ -29154,13 +29584,13 @@ private okhttp3.Call v2beta1ListSnapshotsInProjectValidateBeforeCall( * 500 Internal Server Error, returns a 500 if something is broken on IaaS API Side. - * */ - public SnapshotListResponse v2beta1ListSnapshotsInProject( + public SnapshotListResponse v2beta1ListSnapshots( @javax.annotation.Nonnull UUID projectId, @javax.annotation.Nonnull String region, @javax.annotation.Nullable String labelSelector) throws ApiException { ApiResponse localVarResp = - v2beta1ListSnapshotsInProjectWithHttpInfo(projectId, region, labelSelector); + v2beta1ListSnapshotsWithHttpInfo(projectId, region, labelSelector); return localVarResp.getData(); } @@ -29185,14 +29615,13 @@ public SnapshotListResponse v2beta1ListSnapshotsInProject( * 500 Internal Server Error, returns a 500 if something is broken on IaaS API Side. - * */ - public ApiResponse v2beta1ListSnapshotsInProjectWithHttpInfo( + public ApiResponse v2beta1ListSnapshotsWithHttpInfo( @javax.annotation.Nonnull UUID projectId, @javax.annotation.Nonnull String region, @javax.annotation.Nullable String labelSelector) throws ApiException { okhttp3.Call localVarCall = - v2beta1ListSnapshotsInProjectValidateBeforeCall( - projectId, region, labelSelector, null); + v2beta1ListSnapshotsValidateBeforeCall(projectId, region, labelSelector, null); Type localVarReturnType = new TypeToken() {}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -29220,7 +29649,7 @@ public ApiResponse v2beta1ListSnapshotsInProjectWithHttpIn * 500 Internal Server Error, returns a 500 if something is broken on IaaS API Side. - * */ - public okhttp3.Call v2beta1ListSnapshotsInProjectAsync( + public okhttp3.Call v2beta1ListSnapshotsAsync( @javax.annotation.Nonnull UUID projectId, @javax.annotation.Nonnull String region, @javax.annotation.Nullable String labelSelector, @@ -29228,8 +29657,7 @@ public okhttp3.Call v2beta1ListSnapshotsInProjectAsync( throws ApiException { okhttp3.Call localVarCall = - v2beta1ListSnapshotsInProjectValidateBeforeCall( - projectId, region, labelSelector, _callback); + v2beta1ListSnapshotsValidateBeforeCall(projectId, region, labelSelector, _callback); Type localVarReturnType = new TypeToken() {}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -29727,13 +30155,13 @@ public okhttp3.Call v2beta1UpdateNetworkAreaRegionAsync( } /** - * Build call for v2beta1UpdateRouteOfArea + * Build call for v2beta1UpdateNetworkAreaRoute * * @param organizationId The identifier (ID) of a STACKIT Organization. (required) * @param areaId The identifier (ID) of a STACKIT Network Area. (required) * @param region The STACKIT Region of the resources. (required) * @param routeId The identifier (ID) of a STACKIT Route. (required) - * @param v2beta1UpdateRouteOfAreaPayload Request an update of a network route. (required) + * @param v2beta1UpdateNetworkAreaRoutePayload Request an update of a network route. (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -29749,13 +30177,13 @@ public okhttp3.Call v2beta1UpdateNetworkAreaRegionAsync( * 500 Internal Server Error, returns a 500 if something is broken on IaaS API Side. - * */ - public okhttp3.Call v2beta1UpdateRouteOfAreaCall( + public okhttp3.Call v2beta1UpdateNetworkAreaRouteCall( @javax.annotation.Nonnull UUID organizationId, @javax.annotation.Nonnull UUID areaId, @javax.annotation.Nonnull String region, @javax.annotation.Nonnull UUID routeId, @javax.annotation.Nonnull - V2beta1UpdateRouteOfAreaPayload v2beta1UpdateRouteOfAreaPayload, + V2beta1UpdateNetworkAreaRoutePayload v2beta1UpdateNetworkAreaRoutePayload, final ApiCallback _callback) throws ApiException { String basePath = null; @@ -29771,7 +30199,7 @@ public okhttp3.Call v2beta1UpdateRouteOfAreaCall( basePath = null; } - Object localVarPostBody = v2beta1UpdateRouteOfAreaPayload; + Object localVarPostBody = v2beta1UpdateNetworkAreaRoutePayload; // create path and map variables String localVarPath = @@ -29824,51 +30252,51 @@ public okhttp3.Call v2beta1UpdateRouteOfAreaCall( } @SuppressWarnings("rawtypes") - private okhttp3.Call v2beta1UpdateRouteOfAreaValidateBeforeCall( + private okhttp3.Call v2beta1UpdateNetworkAreaRouteValidateBeforeCall( @javax.annotation.Nonnull UUID organizationId, @javax.annotation.Nonnull UUID areaId, @javax.annotation.Nonnull String region, @javax.annotation.Nonnull UUID routeId, @javax.annotation.Nonnull - V2beta1UpdateRouteOfAreaPayload v2beta1UpdateRouteOfAreaPayload, + V2beta1UpdateNetworkAreaRoutePayload v2beta1UpdateNetworkAreaRoutePayload, final ApiCallback _callback) throws ApiException { // verify the required parameter 'organizationId' is set if (organizationId == null) { throw new ApiException( - "Missing the required parameter 'organizationId' when calling v2beta1UpdateRouteOfArea(Async)"); + "Missing the required parameter 'organizationId' when calling v2beta1UpdateNetworkAreaRoute(Async)"); } // verify the required parameter 'areaId' is set if (areaId == null) { throw new ApiException( - "Missing the required parameter 'areaId' when calling v2beta1UpdateRouteOfArea(Async)"); + "Missing the required parameter 'areaId' when calling v2beta1UpdateNetworkAreaRoute(Async)"); } // verify the required parameter 'region' is set if (region == null) { throw new ApiException( - "Missing the required parameter 'region' when calling v2beta1UpdateRouteOfArea(Async)"); + "Missing the required parameter 'region' when calling v2beta1UpdateNetworkAreaRoute(Async)"); } // verify the required parameter 'routeId' is set if (routeId == null) { throw new ApiException( - "Missing the required parameter 'routeId' when calling v2beta1UpdateRouteOfArea(Async)"); + "Missing the required parameter 'routeId' when calling v2beta1UpdateNetworkAreaRoute(Async)"); } - // verify the required parameter 'v2beta1UpdateRouteOfAreaPayload' is set - if (v2beta1UpdateRouteOfAreaPayload == null) { + // verify the required parameter 'v2beta1UpdateNetworkAreaRoutePayload' is set + if (v2beta1UpdateNetworkAreaRoutePayload == null) { throw new ApiException( - "Missing the required parameter 'v2beta1UpdateRouteOfAreaPayload' when calling v2beta1UpdateRouteOfArea(Async)"); + "Missing the required parameter 'v2beta1UpdateNetworkAreaRoutePayload' when calling v2beta1UpdateNetworkAreaRoute(Async)"); } - return v2beta1UpdateRouteOfAreaCall( + return v2beta1UpdateNetworkAreaRouteCall( organizationId, areaId, region, routeId, - v2beta1UpdateRouteOfAreaPayload, + v2beta1UpdateNetworkAreaRoutePayload, _callback); } @@ -29879,7 +30307,7 @@ private okhttp3.Call v2beta1UpdateRouteOfAreaValidateBeforeCall( * @param areaId The identifier (ID) of a STACKIT Network Area. (required) * @param region The STACKIT Region of the resources. (required) * @param routeId The identifier (ID) of a STACKIT Route. (required) - * @param v2beta1UpdateRouteOfAreaPayload Request an update of a network route. (required) + * @param v2beta1UpdateNetworkAreaRoutePayload Request an update of a network route. (required) * @return Route * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the * response body @@ -29895,17 +30323,21 @@ private okhttp3.Call v2beta1UpdateRouteOfAreaValidateBeforeCall( * 500 Internal Server Error, returns a 500 if something is broken on IaaS API Side. - * */ - public Route v2beta1UpdateRouteOfArea( + public Route v2beta1UpdateNetworkAreaRoute( @javax.annotation.Nonnull UUID organizationId, @javax.annotation.Nonnull UUID areaId, @javax.annotation.Nonnull String region, @javax.annotation.Nonnull UUID routeId, @javax.annotation.Nonnull - V2beta1UpdateRouteOfAreaPayload v2beta1UpdateRouteOfAreaPayload) + V2beta1UpdateNetworkAreaRoutePayload v2beta1UpdateNetworkAreaRoutePayload) throws ApiException { ApiResponse localVarResp = - v2beta1UpdateRouteOfAreaWithHttpInfo( - organizationId, areaId, region, routeId, v2beta1UpdateRouteOfAreaPayload); + v2beta1UpdateNetworkAreaRouteWithHttpInfo( + organizationId, + areaId, + region, + routeId, + v2beta1UpdateNetworkAreaRoutePayload); return localVarResp.getData(); } @@ -29916,7 +30348,7 @@ public Route v2beta1UpdateRouteOfArea( * @param areaId The identifier (ID) of a STACKIT Network Area. (required) * @param region The STACKIT Region of the resources. (required) * @param routeId The identifier (ID) of a STACKIT Route. (required) - * @param v2beta1UpdateRouteOfAreaPayload Request an update of a network route. (required) + * @param v2beta1UpdateNetworkAreaRoutePayload Request an update of a network route. (required) * @return ApiResponse<Route> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the * response body @@ -29932,21 +30364,21 @@ public Route v2beta1UpdateRouteOfArea( * 500 Internal Server Error, returns a 500 if something is broken on IaaS API Side. - * */ - public ApiResponse v2beta1UpdateRouteOfAreaWithHttpInfo( + public ApiResponse v2beta1UpdateNetworkAreaRouteWithHttpInfo( @javax.annotation.Nonnull UUID organizationId, @javax.annotation.Nonnull UUID areaId, @javax.annotation.Nonnull String region, @javax.annotation.Nonnull UUID routeId, @javax.annotation.Nonnull - V2beta1UpdateRouteOfAreaPayload v2beta1UpdateRouteOfAreaPayload) + V2beta1UpdateNetworkAreaRoutePayload v2beta1UpdateNetworkAreaRoutePayload) throws ApiException { okhttp3.Call localVarCall = - v2beta1UpdateRouteOfAreaValidateBeforeCall( + v2beta1UpdateNetworkAreaRouteValidateBeforeCall( organizationId, areaId, region, routeId, - v2beta1UpdateRouteOfAreaPayload, + v2beta1UpdateNetworkAreaRoutePayload, null); Type localVarReturnType = new TypeToken() {}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -29959,7 +30391,7 @@ public ApiResponse v2beta1UpdateRouteOfAreaWithHttpInfo( * @param areaId The identifier (ID) of a STACKIT Network Area. (required) * @param region The STACKIT Region of the resources. (required) * @param routeId The identifier (ID) of a STACKIT Route. (required) - * @param v2beta1UpdateRouteOfAreaPayload Request an update of a network route. (required) + * @param v2beta1UpdateNetworkAreaRoutePayload Request an update of a network route. (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body @@ -29976,23 +30408,23 @@ public ApiResponse v2beta1UpdateRouteOfAreaWithHttpInfo( * 500 Internal Server Error, returns a 500 if something is broken on IaaS API Side. - * */ - public okhttp3.Call v2beta1UpdateRouteOfAreaAsync( + public okhttp3.Call v2beta1UpdateNetworkAreaRouteAsync( @javax.annotation.Nonnull UUID organizationId, @javax.annotation.Nonnull UUID areaId, @javax.annotation.Nonnull String region, @javax.annotation.Nonnull UUID routeId, @javax.annotation.Nonnull - V2beta1UpdateRouteOfAreaPayload v2beta1UpdateRouteOfAreaPayload, + V2beta1UpdateNetworkAreaRoutePayload v2beta1UpdateNetworkAreaRoutePayload, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = - v2beta1UpdateRouteOfAreaValidateBeforeCall( + v2beta1UpdateNetworkAreaRouteValidateBeforeCall( organizationId, areaId, region, routeId, - v2beta1UpdateRouteOfAreaPayload, + v2beta1UpdateNetworkAreaRoutePayload, _callback); Type localVarReturnType = new TypeToken() {}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); diff --git a/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v2beta1api/model/CreateNetworkAreaRangePayload.java b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v2beta1api/model/CreateNetworkAreaRangePayload.java index 64f7aec4..ff289778 100644 --- a/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v2beta1api/model/CreateNetworkAreaRangePayload.java +++ b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v2beta1api/model/CreateNetworkAreaRangePayload.java @@ -58,7 +58,7 @@ public CreateNetworkAreaRangePayload addIpv4Item(NetworkRange ipv4Item) { } /** - * A list of network ranges. + * A list of network area network ranges. * * @return ipv4 */ diff --git a/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v2beta1api/model/NetworkRange.java b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v2beta1api/model/NetworkRange.java index 5624dd5d..93bfee5f 100644 --- a/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v2beta1api/model/NetworkRange.java +++ b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v2beta1api/model/NetworkRange.java @@ -32,7 +32,7 @@ import java.util.Objects; import java.util.UUID; -/** Object that represents a network range. */ +/** Object that represents a network range of a network area. */ @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0") diff --git a/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v2beta1api/model/NetworkRangeListResponse.java b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v2beta1api/model/NetworkRangeListResponse.java index c6ee9f40..a33ebc96 100644 --- a/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v2beta1api/model/NetworkRangeListResponse.java +++ b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v2beta1api/model/NetworkRangeListResponse.java @@ -32,7 +32,7 @@ import java.util.Map; import java.util.Objects; -/** Network Range list response. */ +/** Network Range list response of a network area. */ @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0") @@ -59,7 +59,7 @@ public NetworkRangeListResponse addItemsItem(NetworkRange itemsItem) { } /** - * A list of network ranges. + * A list of network area network ranges. * * @return items */ diff --git a/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v2beta1api/model/RegionalAreaIPv4.java b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v2beta1api/model/RegionalAreaIPv4.java index cc71c3a6..e7f9b929 100644 --- a/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v2beta1api/model/RegionalAreaIPv4.java +++ b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v2beta1api/model/RegionalAreaIPv4.java @@ -173,7 +173,7 @@ public RegionalAreaIPv4 addNetworkRangesItem(NetworkRange networkRangesItem) { } /** - * A list of network ranges. + * A list of network area network ranges. * * @return networkRanges */ diff --git a/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v2beta1api/model/Snapshot.java b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v2beta1api/model/Snapshot.java index ad31102e..d8f10fee 100644 --- a/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v2beta1api/model/Snapshot.java +++ b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v2beta1api/model/Snapshot.java @@ -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) @@ -86,8 +91,14 @@ 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; @@ -95,6 +106,15 @@ public Snapshot( 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. * @@ -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) @@ -287,6 +308,7 @@ public boolean equals(Object o) { @Override public int hashCode() { return Objects.hash( + availabilityZone, createdAt, description, id, @@ -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"); @@ -338,6 +361,7 @@ private String toIndentedString(Object o) { openapiFields = new HashSet( Arrays.asList( + "availabilityZone", "createdAt", "description", "id", @@ -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( diff --git a/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v2beta1api/model/V2beta1ConfigureNetworkAreaRegionPayload.java b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v2beta1api/model/V2beta1CreateNetworkAreaRegionPayload.java similarity index 80% rename from services/iaas/src/main/java/cloud/stackit/sdk/iaas/v2beta1api/model/V2beta1ConfigureNetworkAreaRegionPayload.java rename to services/iaas/src/main/java/cloud/stackit/sdk/iaas/v2beta1api/model/V2beta1CreateNetworkAreaRegionPayload.java index e460f167..194d7253 100644 --- a/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v2beta1api/model/V2beta1ConfigureNetworkAreaRegionPayload.java +++ b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v2beta1api/model/V2beta1CreateNetworkAreaRegionPayload.java @@ -34,7 +34,7 @@ @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0") -public class V2beta1ConfigureNetworkAreaRegionPayload { +public class V2beta1CreateNetworkAreaRegionPayload { public static final String SERIALIZED_NAME_IPV4 = "ipv4"; @SerializedName(SERIALIZED_NAME_IPV4) @@ -45,14 +45,14 @@ public class V2beta1ConfigureNetworkAreaRegionPayload { @SerializedName(SERIALIZED_NAME_STATUS) @javax.annotation.Nullable private String status; - public V2beta1ConfigureNetworkAreaRegionPayload() {} + public V2beta1CreateNetworkAreaRegionPayload() {} - public V2beta1ConfigureNetworkAreaRegionPayload(String status) { + public V2beta1CreateNetworkAreaRegionPayload(String status) { this(); this.status = status; } - public V2beta1ConfigureNetworkAreaRegionPayload ipv4( + public V2beta1CreateNetworkAreaRegionPayload ipv4( @javax.annotation.Nullable RegionalAreaIPv4 ipv4) { this.ipv4 = ipv4; return this; @@ -94,10 +94,9 @@ public void setIpv4(@javax.annotation.Nullable RegionalAreaIPv4 ipv4) { * * @param key name of the property * @param value value of the property - * @return the V2beta1ConfigureNetworkAreaRegionPayload instance itself + * @return the V2beta1CreateNetworkAreaRegionPayload instance itself */ - public V2beta1ConfigureNetworkAreaRegionPayload putAdditionalProperty( - String key, Object value) { + public V2beta1CreateNetworkAreaRegionPayload putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { this.additionalProperties = new HashMap(); } @@ -135,13 +134,13 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - V2beta1ConfigureNetworkAreaRegionPayload v2beta1ConfigureNetworkAreaRegionPayload = - (V2beta1ConfigureNetworkAreaRegionPayload) o; - return Objects.equals(this.ipv4, v2beta1ConfigureNetworkAreaRegionPayload.ipv4) - && Objects.equals(this.status, v2beta1ConfigureNetworkAreaRegionPayload.status) + V2beta1CreateNetworkAreaRegionPayload v2beta1CreateNetworkAreaRegionPayload = + (V2beta1CreateNetworkAreaRegionPayload) o; + return Objects.equals(this.ipv4, v2beta1CreateNetworkAreaRegionPayload.ipv4) + && Objects.equals(this.status, v2beta1CreateNetworkAreaRegionPayload.status) && Objects.equals( this.additionalProperties, - v2beta1ConfigureNetworkAreaRegionPayload.additionalProperties); + v2beta1CreateNetworkAreaRegionPayload.additionalProperties); } @Override @@ -152,7 +151,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class V2beta1ConfigureNetworkAreaRegionPayload {\n"); + sb.append("class V2beta1CreateNetworkAreaRegionPayload {\n"); sb.append(" ipv4: ").append(toIndentedString(ipv4)).append("\n"); sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" additionalProperties: ") @@ -189,17 +188,17 @@ private String toIndentedString(Object o) { * * @param jsonElement JSON Element * @throws IOException if the JSON Element is invalid with respect to - * V2beta1ConfigureNetworkAreaRegionPayload + * V2beta1CreateNetworkAreaRegionPayload */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { - if (!V2beta1ConfigureNetworkAreaRegionPayload.openapiRequiredFields + if (!V2beta1CreateNetworkAreaRegionPayload.openapiRequiredFields .isEmpty()) { // has required fields but JSON element is null throw new IllegalArgumentException( String.format( java.util.Locale.ROOT, - "The required field(s) %s in V2beta1ConfigureNetworkAreaRegionPayload is not found in the empty JSON string", - V2beta1ConfigureNetworkAreaRegionPayload.openapiRequiredFields + "The required field(s) %s in V2beta1CreateNetworkAreaRegionPayload is not found in the empty JSON string", + V2beta1CreateNetworkAreaRegionPayload.openapiRequiredFields .toString())); } } @@ -222,21 +221,20 @@ public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!V2beta1ConfigureNetworkAreaRegionPayload.class.isAssignableFrom( - type.getRawType())) { - return null; // this class only serializes - // 'V2beta1ConfigureNetworkAreaRegionPayload' and its subtypes + if (!V2beta1CreateNetworkAreaRegionPayload.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V2beta1CreateNetworkAreaRegionPayload' + // and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = + final TypeAdapter thisAdapter = gson.getDelegateAdapter( - this, TypeToken.get(V2beta1ConfigureNetworkAreaRegionPayload.class)); + this, TypeToken.get(V2beta1CreateNetworkAreaRegionPayload.class)); return (TypeAdapter) - new TypeAdapter() { + new TypeAdapter() { @Override public void write( - JsonWriter out, V2beta1ConfigureNetworkAreaRegionPayload value) + JsonWriter out, V2beta1CreateNetworkAreaRegionPayload value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); @@ -267,13 +265,13 @@ else if (entry.getValue() instanceof Character) } @Override - public V2beta1ConfigureNetworkAreaRegionPayload read(JsonReader in) + public V2beta1CreateNetworkAreaRegionPayload read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); JsonObject jsonObj = jsonElement.getAsJsonObject(); // store additional fields in the deserialized instance - V2beta1ConfigureNetworkAreaRegionPayload instance = + V2beta1CreateNetworkAreaRegionPayload instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { if (!openapiFields.contains(entry.getKey())) { @@ -313,20 +311,20 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } /** - * Create an instance of V2beta1ConfigureNetworkAreaRegionPayload given an JSON string + * Create an instance of V2beta1CreateNetworkAreaRegionPayload given an JSON string * * @param jsonString JSON string - * @return An instance of V2beta1ConfigureNetworkAreaRegionPayload + * @return An instance of V2beta1CreateNetworkAreaRegionPayload * @throws IOException if the JSON string is invalid with respect to - * V2beta1ConfigureNetworkAreaRegionPayload + * V2beta1CreateNetworkAreaRegionPayload */ - public static V2beta1ConfigureNetworkAreaRegionPayload fromJson(String jsonString) + public static V2beta1CreateNetworkAreaRegionPayload fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, V2beta1ConfigureNetworkAreaRegionPayload.class); + return JSON.getGson().fromJson(jsonString, V2beta1CreateNetworkAreaRegionPayload.class); } /** - * Convert an instance of V2beta1ConfigureNetworkAreaRegionPayload to an JSON string + * Convert an instance of V2beta1CreateNetworkAreaRegionPayload to an JSON string * * @return JSON string */ diff --git a/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v2beta1api/model/V2beta1CreateSnapshotPayload.java b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v2beta1api/model/V2beta1CreateSnapshotPayload.java index 0ba32807..ed09e332 100644 --- a/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v2beta1api/model/V2beta1CreateSnapshotPayload.java +++ b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v2beta1api/model/V2beta1CreateSnapshotPayload.java @@ -37,6 +37,11 @@ value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0") public class V2beta1CreateSnapshotPayload { + 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) @@ -86,8 +91,14 @@ public class V2beta1CreateSnapshotPayload { public V2beta1CreateSnapshotPayload() {} public V2beta1CreateSnapshotPayload( - 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; @@ -95,6 +106,15 @@ public V2beta1CreateSnapshotPayload( 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. * @@ -273,7 +293,8 @@ public boolean equals(Object o) { } V2beta1CreateSnapshotPayload v2beta1CreateSnapshotPayload = (V2beta1CreateSnapshotPayload) o; - return Objects.equals(this.createdAt, v2beta1CreateSnapshotPayload.createdAt) + return Objects.equals(this.availabilityZone, v2beta1CreateSnapshotPayload.availabilityZone) + && Objects.equals(this.createdAt, v2beta1CreateSnapshotPayload.createdAt) && Objects.equals(this.description, v2beta1CreateSnapshotPayload.description) && Objects.equals(this.id, v2beta1CreateSnapshotPayload.id) && Objects.equals(this.labels, v2beta1CreateSnapshotPayload.labels) @@ -290,6 +311,7 @@ public boolean equals(Object o) { @Override public int hashCode() { return Objects.hash( + availabilityZone, createdAt, description, id, @@ -306,6 +328,7 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V2beta1CreateSnapshotPayload {\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"); @@ -341,6 +364,7 @@ private String toIndentedString(Object o) { openapiFields = new HashSet( Arrays.asList( + "availabilityZone", "createdAt", "description", "id", @@ -386,6 +410,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( diff --git a/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v2beta1api/model/V2beta1UpdateRouteOfAreaPayload.java b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v2beta1api/model/V2beta1UpdateNetworkAreaRoutePayload.java similarity index 79% rename from services/iaas/src/main/java/cloud/stackit/sdk/iaas/v2beta1api/model/V2beta1UpdateRouteOfAreaPayload.java rename to services/iaas/src/main/java/cloud/stackit/sdk/iaas/v2beta1api/model/V2beta1UpdateNetworkAreaRoutePayload.java index 29932990..88203e29 100644 --- a/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v2beta1api/model/V2beta1UpdateRouteOfAreaPayload.java +++ b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v2beta1api/model/V2beta1UpdateNetworkAreaRoutePayload.java @@ -34,15 +34,15 @@ @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0") -public class V2beta1UpdateRouteOfAreaPayload { +public class V2beta1UpdateNetworkAreaRoutePayload { public static final String SERIALIZED_NAME_LABELS = "labels"; @SerializedName(SERIALIZED_NAME_LABELS) @javax.annotation.Nullable private Object labels; - public V2beta1UpdateRouteOfAreaPayload() {} + public V2beta1UpdateNetworkAreaRoutePayload() {} - public V2beta1UpdateRouteOfAreaPayload labels(@javax.annotation.Nullable Object labels) { + public V2beta1UpdateNetworkAreaRoutePayload labels(@javax.annotation.Nullable Object labels) { this.labels = labels; return this; } @@ -76,9 +76,9 @@ public void setLabels(@javax.annotation.Nullable Object labels) { * * @param key name of the property * @param value value of the property - * @return the V2beta1UpdateRouteOfAreaPayload instance itself + * @return the V2beta1UpdateNetworkAreaRoutePayload instance itself */ - public V2beta1UpdateRouteOfAreaPayload putAdditionalProperty(String key, Object value) { + public V2beta1UpdateNetworkAreaRoutePayload putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { this.additionalProperties = new HashMap(); } @@ -116,12 +116,12 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - V2beta1UpdateRouteOfAreaPayload v2beta1UpdateRouteOfAreaPayload = - (V2beta1UpdateRouteOfAreaPayload) o; - return Objects.equals(this.labels, v2beta1UpdateRouteOfAreaPayload.labels) + V2beta1UpdateNetworkAreaRoutePayload v2beta1UpdateNetworkAreaRoutePayload = + (V2beta1UpdateNetworkAreaRoutePayload) o; + return Objects.equals(this.labels, v2beta1UpdateNetworkAreaRoutePayload.labels) && Objects.equals( this.additionalProperties, - v2beta1UpdateRouteOfAreaPayload.additionalProperties); + v2beta1UpdateNetworkAreaRoutePayload.additionalProperties); } @Override @@ -132,7 +132,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class V2beta1UpdateRouteOfAreaPayload {\n"); + sb.append("class V2beta1UpdateNetworkAreaRoutePayload {\n"); sb.append(" labels: ").append(toIndentedString(labels)).append("\n"); sb.append(" additionalProperties: ") .append(toIndentedString(additionalProperties)) @@ -168,17 +168,18 @@ private String toIndentedString(Object o) { * * @param jsonElement JSON Element * @throws IOException if the JSON Element is invalid with respect to - * V2beta1UpdateRouteOfAreaPayload + * V2beta1UpdateNetworkAreaRoutePayload */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { - if (!V2beta1UpdateRouteOfAreaPayload.openapiRequiredFields + if (!V2beta1UpdateNetworkAreaRoutePayload.openapiRequiredFields .isEmpty()) { // has required fields but JSON element is null throw new IllegalArgumentException( String.format( java.util.Locale.ROOT, - "The required field(s) %s in V2beta1UpdateRouteOfAreaPayload is not found in the empty JSON string", - V2beta1UpdateRouteOfAreaPayload.openapiRequiredFields.toString())); + "The required field(s) %s in V2beta1UpdateNetworkAreaRoutePayload is not found in the empty JSON string", + V2beta1UpdateNetworkAreaRoutePayload.openapiRequiredFields + .toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); @@ -188,19 +189,20 @@ public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!V2beta1UpdateRouteOfAreaPayload.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'V2beta1UpdateRouteOfAreaPayload' and its - // subtypes + if (!V2beta1UpdateNetworkAreaRoutePayload.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V2beta1UpdateNetworkAreaRoutePayload' + // and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter = + final TypeAdapter thisAdapter = gson.getDelegateAdapter( - this, TypeToken.get(V2beta1UpdateRouteOfAreaPayload.class)); + this, TypeToken.get(V2beta1UpdateNetworkAreaRoutePayload.class)); return (TypeAdapter) - new TypeAdapter() { + new TypeAdapter() { @Override - public void write(JsonWriter out, V2beta1UpdateRouteOfAreaPayload value) + public void write( + JsonWriter out, V2beta1UpdateNetworkAreaRoutePayload value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); @@ -231,13 +233,13 @@ else if (entry.getValue() instanceof Character) } @Override - public V2beta1UpdateRouteOfAreaPayload read(JsonReader in) + public V2beta1UpdateNetworkAreaRoutePayload read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); JsonObject jsonObj = jsonElement.getAsJsonObject(); // store additional fields in the deserialized instance - V2beta1UpdateRouteOfAreaPayload instance = + V2beta1UpdateNetworkAreaRoutePayload instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { if (!openapiFields.contains(entry.getKey())) { @@ -277,19 +279,20 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } /** - * Create an instance of V2beta1UpdateRouteOfAreaPayload given an JSON string + * Create an instance of V2beta1UpdateNetworkAreaRoutePayload given an JSON string * * @param jsonString JSON string - * @return An instance of V2beta1UpdateRouteOfAreaPayload + * @return An instance of V2beta1UpdateNetworkAreaRoutePayload * @throws IOException if the JSON string is invalid with respect to - * V2beta1UpdateRouteOfAreaPayload + * V2beta1UpdateNetworkAreaRoutePayload */ - public static V2beta1UpdateRouteOfAreaPayload fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, V2beta1UpdateRouteOfAreaPayload.class); + public static V2beta1UpdateNetworkAreaRoutePayload fromJson(String jsonString) + throws IOException { + return JSON.getGson().fromJson(jsonString, V2beta1UpdateNetworkAreaRoutePayload.class); } /** - * Convert an instance of V2beta1UpdateRouteOfAreaPayload to an JSON string + * Convert an instance of V2beta1UpdateNetworkAreaRoutePayload to an JSON string * * @return JSON string */