diff --git a/services/iaas/oas_commit b/services/iaas/oas_commit
index 27537628..15fd855d 100644
--- a/services/iaas/oas_commit
+++ b/services/iaas/oas_commit
@@ -1 +1 @@
-1c36f3781c31a0e21c4588c7c4ec835d477d2f21
+c6966ee81faf4ce115a9dcdc4e0e00165099de8f
diff --git a/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v1api/JSON.java b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v1api/JSON.java
index 17b81fd9..b561a217 100644
--- a/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v1api/JSON.java
+++ b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v1api/JSON.java
@@ -341,6 +341,8 @@ private static Class getClassByDiscriminator(
new cloud.stackit.sdk.iaas.v1api.model.ServerNetwork.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(
new cloud.stackit.sdk.iaas.v1api.model.ServerNetworking.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new cloud.stackit.sdk.iaas.v1api.model.ServerVTPM.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(
new cloud.stackit.sdk.iaas.v1api.model.ServiceAccountMailListResponse
.CustomTypeAdapterFactory());
diff --git a/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v1api/api/DefaultApi.java b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v1api/api/DefaultApi.java
index 2d6ca8c9..752ea8c9 100644
--- a/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v1api/api/DefaultApi.java
+++ b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v1api/api/DefaultApi.java
@@ -1814,6 +1814,7 @@ public okhttp3.Call createAffinityGroupAsync(
*
| 401 | A request which was not authorized. | - |
* | 403 | A request which was forbidden. | - |
* | 404 | The object was not found. | - |
+ * | 413 | The request entity is too large. | - |
* | 500 | Internal Server Error, returns a 500 if something is broken on IaaS API Side. | - |
*
*
@@ -1921,6 +1922,7 @@ private okhttp3.Call createBackupValidateBeforeCall(
* | 401 | A request which was not authorized. | - |
* | 403 | A request which was forbidden. | - |
* | 404 | The object was not found. | - |
+ * | 413 | The request entity is too large. | - |
* | 500 | Internal Server Error, returns a 500 if something is broken on IaaS API Side. | - |
*
*
@@ -1953,6 +1955,7 @@ public Backup createBackup(
* | 401 | A request which was not authorized. | - |
* | 403 | A request which was forbidden. | - |
* | 404 | The object was not found. | - |
+ * | 413 | The request entity is too large. | - |
* | 500 | Internal Server Error, returns a 500 if something is broken on IaaS API Side. | - |
*
*
@@ -1988,6 +1991,7 @@ public ApiResponse createBackupWithHttpInfo(
* | 401 | A request which was not authorized. | - |
* | 403 | A request which was forbidden. | - |
* | 404 | The object was not found. | - |
+ * | 413 | The request entity is too large. | - |
* | 500 | Internal Server Error, returns a 500 if something is broken on IaaS API Side. | - |
*
*
@@ -2024,6 +2028,7 @@ public okhttp3.Call createBackupAsync(
* | 401 | A request which was not authorized. | - |
* | 403 | A request which was forbidden. | - |
* | 404 | The object was not found. | - |
+ * | 413 | The request entity is too large. | - |
* | 429 | Too Many Requests. | - |
* | 500 | Internal Server Error, returns a 500 if something is broken on IaaS API Side. | - |
*
@@ -2132,6 +2137,7 @@ private okhttp3.Call createImageValidateBeforeCall(
* | 401 | A request which was not authorized. | - |
* | 403 | A request which was forbidden. | - |
* | 404 | The object was not found. | - |
+ * | 413 | The request entity is too large. | - |
* | 429 | Too Many Requests. | - |
* | 500 | Internal Server Error, returns a 500 if something is broken on IaaS API Side. | - |
*
@@ -2166,6 +2172,7 @@ public ImageCreateResponse createImage(
* | 401 | A request which was not authorized. | - |
* | 403 | A request which was forbidden. | - |
* | 404 | The object was not found. | - |
+ * | 413 | The request entity is too large. | - |
* | 429 | Too Many Requests. | - |
* | 500 | Internal Server Error, returns a 500 if something is broken on IaaS API Side. | - |
*
@@ -2202,6 +2209,7 @@ public ApiResponse createImageWithHttpInfo(
* | 401 | A request which was not authorized. | - |
* | 403 | A request which was forbidden. | - |
* | 404 | The object was not found. | - |
+ * | 413 | The request entity is too large. | - |
* | 429 | Too Many Requests. | - |
* | 500 | Internal Server Error, returns a 500 if something is broken on IaaS API Side. | - |
*
@@ -4443,6 +4451,8 @@ public okhttp3.Call createServerAsync(
* | 401 | A request which was not authorized. | - |
* | 403 | A request which was forbidden. | - |
* | 404 | The object was not found. | - |
+ * | 409 | A conflict has occurred. | - |
+ * | 413 | The request entity is too large. | - |
* | 500 | Internal Server Error, returns a 500 if something is broken on IaaS API Side. | - |
*
*
@@ -4549,6 +4559,8 @@ private okhttp3.Call createSnapshotValidateBeforeCall(
* | 401 | A request which was not authorized. | - |
* | 403 | A request which was forbidden. | - |
* | 404 | The object was not found. | - |
+ * | 409 | A conflict has occurred. | - |
+ * | 413 | The request entity is too large. | - |
* | 500 | Internal Server Error, returns a 500 if something is broken on IaaS API Side. | - |
*
*
@@ -4581,6 +4593,8 @@ public Snapshot createSnapshot(
* | 401 | A request which was not authorized. | - |
* | 403 | A request which was forbidden. | - |
* | 404 | The object was not found. | - |
+ * | 409 | A conflict has occurred. | - |
+ * | 413 | The request entity is too large. | - |
* | 500 | Internal Server Error, returns a 500 if something is broken on IaaS API Side. | - |
*
*
@@ -4615,6 +4629,8 @@ public ApiResponse createSnapshotWithHttpInfo(
* | 401 | A request which was not authorized. | - |
* | 403 | A request which was forbidden. | - |
* | 404 | The object was not found. | - |
+ * | 409 | A conflict has occurred. | - |
+ * | 413 | The request entity is too large. | - |
* | 500 | Internal Server Error, returns a 500 if something is broken on IaaS API Side. | - |
*
*
@@ -4651,6 +4667,7 @@ public okhttp3.Call createSnapshotAsync(
* | 401 | A request which was not authorized. | - |
* | 403 | A request which was forbidden. | - |
* | 404 | The object was not found. | - |
+ * | 413 | The request entity is too large. | - |
* | 500 | Internal Server Error, returns a 500 if something is broken on IaaS API Side. | - |
*
*
@@ -4759,6 +4776,7 @@ private okhttp3.Call createVolumeValidateBeforeCall(
* | 401 | A request which was not authorized. | - |
* | 403 | A request which was forbidden. | - |
* | 404 | The object was not found. | - |
+ * | 413 | The request entity is too large. | - |
* | 500 | Internal Server Error, returns a 500 if something is broken on IaaS API Side. | - |
*
*
@@ -4792,6 +4810,7 @@ public Volume createVolume(
* | 401 | A request which was not authorized. | - |
* | 403 | A request which was forbidden. | - |
* | 404 | The object was not found. | - |
+ * | 413 | The request entity is too large. | - |
* | 500 | Internal Server Error, returns a 500 if something is broken on IaaS API Side. | - |
*
*
@@ -4828,6 +4847,7 @@ public ApiResponse createVolumeWithHttpInfo(
* | 401 | A request which was not authorized. | - |
* | 403 | A request which was forbidden. | - |
* | 404 | The object was not found. | - |
+ * | 413 | The request entity is too large. | - |
* | 500 | Internal Server Error, returns a 500 if something is broken on IaaS API Side. | - |
*
*
@@ -23882,428 +23902,6 @@ public okhttp3.Call updateImageAsync(
return localVarCall;
}
- /**
- * Build call for updateImageScopeLocal
- *
- * @param projectId The identifier (ID) of a STACKIT Project. (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. | - |
- *
- *
- * @deprecated
- */
- @Deprecated
- public okhttp3.Call updateImageScopeLocalCall(
- @javax.annotation.Nonnull UUID projectId,
- @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 =
- "/v1/projects/{projectId}/images/{imageId}/publish"
- .replace(
- "{" + "projectId" + "}",
- localVarApiClient.escapeString(projectId.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);
- }
-
- @Deprecated
- @SuppressWarnings("rawtypes")
- private okhttp3.Call updateImageScopeLocalValidateBeforeCall(
- @javax.annotation.Nonnull UUID projectId,
- @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 'imageId' is set
- if (imageId == null) {
- throw new ApiException(
- "Missing the required parameter 'imageId' when calling updateImageScopeLocal(Async)");
- }
-
- return updateImageScopeLocalCall(projectId, 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 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. | - |
- *
- *
- * @deprecated
- */
- @Deprecated
- public Image updateImageScopeLocal(
- @javax.annotation.Nonnull UUID projectId, @javax.annotation.Nonnull UUID imageId)
- throws ApiException {
- ApiResponse localVarResp = updateImageScopeLocalWithHttpInfo(projectId, 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 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. | - |
- *
- *
- * @deprecated
- */
- @Deprecated
- public ApiResponse updateImageScopeLocalWithHttpInfo(
- @javax.annotation.Nonnull UUID projectId, @javax.annotation.Nonnull UUID imageId)
- throws ApiException {
- okhttp3.Call localVarCall =
- updateImageScopeLocalValidateBeforeCall(projectId, 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 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. | - |
- *
- *
- * @deprecated
- */
- @Deprecated
- public okhttp3.Call updateImageScopeLocalAsync(
- @javax.annotation.Nonnull UUID projectId,
- @javax.annotation.Nonnull UUID imageId,
- final ApiCallback _callback)
- throws ApiException {
-
- okhttp3.Call localVarCall =
- updateImageScopeLocalValidateBeforeCall(projectId, 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 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. | - |
- *
- *
- * @deprecated
- */
- @Deprecated
- public okhttp3.Call updateImageScopePublicCall(
- @javax.annotation.Nonnull UUID projectId,
- @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 =
- "/v1/projects/{projectId}/images/{imageId}/publish"
- .replace(
- "{" + "projectId" + "}",
- localVarApiClient.escapeString(projectId.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);
- }
-
- @Deprecated
- @SuppressWarnings("rawtypes")
- private okhttp3.Call updateImageScopePublicValidateBeforeCall(
- @javax.annotation.Nonnull UUID projectId,
- @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 'imageId' is set
- if (imageId == null) {
- throw new ApiException(
- "Missing the required parameter 'imageId' when calling updateImageScopePublic(Async)");
- }
-
- return updateImageScopePublicCall(projectId, 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 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. | - |
- *
- *
- * @deprecated
- */
- @Deprecated
- public Image updateImageScopePublic(
- @javax.annotation.Nonnull UUID projectId, @javax.annotation.Nonnull UUID imageId)
- throws ApiException {
- ApiResponse localVarResp = updateImageScopePublicWithHttpInfo(projectId, 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 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. | - |
- *
- *
- * @deprecated
- */
- @Deprecated
- public ApiResponse updateImageScopePublicWithHttpInfo(
- @javax.annotation.Nonnull UUID projectId, @javax.annotation.Nonnull UUID imageId)
- throws ApiException {
- okhttp3.Call localVarCall =
- updateImageScopePublicValidateBeforeCall(projectId, 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 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. | - |
- *
- *
- * @deprecated
- */
- @Deprecated
- public okhttp3.Call updateImageScopePublicAsync(
- @javax.annotation.Nonnull UUID projectId,
- @javax.annotation.Nonnull UUID imageId,
- final ApiCallback _callback)
- throws ApiException {
-
- okhttp3.Call localVarCall =
- updateImageScopePublicValidateBeforeCall(projectId, 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/v1api/model/CreateServerPayload.java b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v1api/model/CreateServerPayload.java
index 3f9c93fa..27a1877d 100644
--- a/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v1api/model/CreateServerPayload.java
+++ b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v1api/model/CreateServerPayload.java
@@ -166,6 +166,11 @@ public class CreateServerPayload {
@SerializedName(SERIALIZED_NAME_VOLUMES)
@javax.annotation.Nullable private List volumes;
+ public static final String SERIALIZED_NAME_VTPM = "vtpm";
+
+ @SerializedName(SERIALIZED_NAME_VTPM)
+ @javax.annotation.Nullable private ServerVTPM vtpm;
+
public CreateServerPayload() {}
public CreateServerPayload(
@@ -608,6 +613,24 @@ public void setVolumes(@javax.annotation.Nullable List volumes) {
this.volumes = volumes;
}
+ public CreateServerPayload vtpm(@javax.annotation.Nullable ServerVTPM vtpm) {
+ this.vtpm = vtpm;
+ return this;
+ }
+
+ /**
+ * Get vtpm
+ *
+ * @return vtpm
+ */
+ @javax.annotation.Nullable public ServerVTPM getVtpm() {
+ return vtpm;
+ }
+
+ public void setVtpm(@javax.annotation.Nullable ServerVTPM vtpm) {
+ this.vtpm = vtpm;
+ }
+
/**
* A container for additional, undeclared properties. This is a holder for any undeclared
* properties as specified with the 'additionalProperties' keyword in the OAS document.
@@ -686,6 +709,7 @@ public boolean equals(Object o) {
&& Objects.equals(this.updatedAt, createServerPayload.updatedAt)
&& Arrays.equals(this.userData, createServerPayload.userData)
&& Objects.equals(this.volumes, createServerPayload.volumes)
+ && Objects.equals(this.vtpm, createServerPayload.vtpm)
&& Objects.equals(
this.additionalProperties, createServerPayload.additionalProperties);
}
@@ -718,6 +742,7 @@ public int hashCode() {
updatedAt,
Arrays.hashCode(userData),
volumes,
+ vtpm,
additionalProperties);
}
@@ -754,6 +779,7 @@ public String toString() {
sb.append(" updatedAt: ").append(toIndentedString(updatedAt)).append("\n");
sb.append(" userData: ").append(toIndentedString(userData)).append("\n");
sb.append(" volumes: ").append(toIndentedString(volumes)).append("\n");
+ sb.append(" vtpm: ").append(toIndentedString(vtpm)).append("\n");
sb.append(" additionalProperties: ")
.append(toIndentedString(additionalProperties))
.append("\n");
@@ -804,7 +830,8 @@ private String toIndentedString(Object o) {
"status",
"updatedAt",
"userData",
- "volumes"));
+ "volumes",
+ "vtpm"));
// a set of required properties/fields (JSON key names)
openapiRequiredFields = new HashSet(Arrays.asList("machineType", "name"));
@@ -985,6 +1012,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
"Expected the field `volumes` to be an array in the JSON string but got `%s`",
jsonObj.get("volumes").toString()));
}
+ // validate the optional field `vtpm`
+ if (jsonObj.get("vtpm") != null && !jsonObj.get("vtpm").isJsonNull()) {
+ ServerVTPM.validateJsonElement(jsonObj.get("vtpm"));
+ }
}
public static class CustomTypeAdapterFactory implements TypeAdapterFactory {
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/CreateVolumePayload.java b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v1api/model/CreateVolumePayload.java
index 234f46b6..d6ea5eaf 100644
--- a/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v1api/model/CreateVolumePayload.java
+++ b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v1api/model/CreateVolumePayload.java
@@ -361,8 +361,9 @@ public void setSource(@javax.annotation.Nullable VolumeSource source) {
* `CREATING`, `DELETED`, `DELETING`, `DETACHING`,
* `DOWNLOADING`, `ERROR`, `ERROR_BACKING-UP`,
* `ERROR_DELETING`, `ERROR_RESIZING`, `ERROR_RESTORING-BACKUP`,
- * `MAINTENANCE`, `RESERVED`, `RESIZING`,
- * `RESTORING-BACKUP`, `RETYPING`, `UPLOADING`.
+ * `ERROR_KMS-ENCRYPTION-PARAMS`, `MAINTENANCE`, `RESERVED`,
+ * `RESIZING`, `RESTORING-BACKUP`, `RETYPING`,
+ * `UPLOADING`.
*
* @return status
*/
diff --git a/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v1api/model/Request.java b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v1api/model/Request.java
index 02ef51ef..a3eb89a3 100644
--- a/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v1api/model/Request.java
+++ b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v1api/model/Request.java
@@ -140,7 +140,8 @@ public Request requestType(@javax.annotation.Nonnull String requestType) {
* Object that represents a resource type. Possible values: `BACKUP`,
* `IMAGE`, `NETWORK`, `NETWORKAREA`, `NIC`,
* `PROJECT`, `ROUTE`, `SERVER`, `SERVICEACCOUNT`,
- * `SNAPSHOT`, `VIRTUALIP`, `VOLUME`.
+ * `SNAPSHOT`, `VIRTUALIP`, `VOLUME`, `VPC`,
+ * `VPCNETWORKRANGE`.
*
* @return requestType
*/
diff --git a/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v1api/model/RequestResource.java b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v1api/model/RequestResource.java
index b41135a5..81d21c52 100644
--- a/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v1api/model/RequestResource.java
+++ b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v1api/model/RequestResource.java
@@ -105,7 +105,8 @@ public RequestResource type(@javax.annotation.Nonnull String type) {
* Object that represents a resource type. Possible values: `BACKUP`,
* `IMAGE`, `NETWORK`, `NETWORKAREA`, `NIC`,
* `PROJECT`, `ROUTE`, `SERVER`, `SERVICEACCOUNT`,
- * `SNAPSHOT`, `VIRTUALIP`, `VOLUME`.
+ * `SNAPSHOT`, `VIRTUALIP`, `VOLUME`, `VPC`,
+ * `VPCNETWORKRANGE`.
*
* @return type
*/
diff --git a/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v1api/model/Server.java b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v1api/model/Server.java
index 04eddbad..2637c9e6 100644
--- a/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v1api/model/Server.java
+++ b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v1api/model/Server.java
@@ -166,6 +166,11 @@ public class Server {
@SerializedName(SERIALIZED_NAME_VOLUMES)
@javax.annotation.Nullable private List volumes;
+ public static final String SERIALIZED_NAME_VTPM = "vtpm";
+
+ @SerializedName(SERIALIZED_NAME_VTPM)
+ @javax.annotation.Nullable private ServerVTPM vtpm;
+
public Server() {}
public Server(
@@ -604,6 +609,24 @@ public void setVolumes(@javax.annotation.Nullable List volumes) {
this.volumes = volumes;
}
+ public Server vtpm(@javax.annotation.Nullable ServerVTPM vtpm) {
+ this.vtpm = vtpm;
+ return this;
+ }
+
+ /**
+ * Get vtpm
+ *
+ * @return vtpm
+ */
+ @javax.annotation.Nullable public ServerVTPM getVtpm() {
+ return vtpm;
+ }
+
+ public void setVtpm(@javax.annotation.Nullable ServerVTPM vtpm) {
+ this.vtpm = vtpm;
+ }
+
/**
* A container for additional, undeclared properties. This is a holder for any undeclared
* properties as specified with the 'additionalProperties' keyword in the OAS document.
@@ -682,6 +705,7 @@ public boolean equals(Object o) {
&& Objects.equals(this.updatedAt, server.updatedAt)
&& Arrays.equals(this.userData, server.userData)
&& Objects.equals(this.volumes, server.volumes)
+ && Objects.equals(this.vtpm, server.vtpm)
&& Objects.equals(this.additionalProperties, server.additionalProperties);
}
@@ -713,6 +737,7 @@ public int hashCode() {
updatedAt,
Arrays.hashCode(userData),
volumes,
+ vtpm,
additionalProperties);
}
@@ -749,6 +774,7 @@ public String toString() {
sb.append(" updatedAt: ").append(toIndentedString(updatedAt)).append("\n");
sb.append(" userData: ").append(toIndentedString(userData)).append("\n");
sb.append(" volumes: ").append(toIndentedString(volumes)).append("\n");
+ sb.append(" vtpm: ").append(toIndentedString(vtpm)).append("\n");
sb.append(" additionalProperties: ")
.append(toIndentedString(additionalProperties))
.append("\n");
@@ -799,7 +825,8 @@ private String toIndentedString(Object o) {
"status",
"updatedAt",
"userData",
- "volumes"));
+ "volumes",
+ "vtpm"));
// a set of required properties/fields (JSON key names)
openapiRequiredFields = new HashSet(Arrays.asList("machineType", "name"));
@@ -980,6 +1007,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
"Expected the field `volumes` to be an array in the JSON string but got `%s`",
jsonObj.get("volumes").toString()));
}
+ // validate the optional field `vtpm`
+ if (jsonObj.get("vtpm") != null && !jsonObj.get("vtpm").isJsonNull()) {
+ ServerVTPM.validateJsonElement(jsonObj.get("vtpm"));
+ }
}
public static class CustomTypeAdapterFactory implements TypeAdapterFactory {
diff --git a/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v1api/model/ServerVTPM.java b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v1api/model/ServerVTPM.java
new file mode 100644
index 00000000..573c978f
--- /dev/null
+++ b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v1api/model/ServerVTPM.java
@@ -0,0 +1,299 @@
+/*
+ * STACKIT IaaS API
+ * This API is deprecated. It will be retired on 01.03.2027. Please use the STACKIT IaaS API V2 instead.
+ *
+ * The version of the OpenAPI document: 1
+ * Contact: stackit-iaas@mail.schwarz
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ */
+
+package cloud.stackit.sdk.iaas.v1api.model;
+
+import cloud.stackit.sdk.iaas.v1api.JSON;
+import com.google.gson.Gson;
+import com.google.gson.JsonElement;
+import com.google.gson.JsonObject;
+import com.google.gson.TypeAdapter;
+import com.google.gson.TypeAdapterFactory;
+import com.google.gson.annotations.SerializedName;
+import com.google.gson.reflect.TypeToken;
+import com.google.gson.stream.JsonReader;
+import com.google.gson.stream.JsonWriter;
+import java.io.IOException;
+import java.util.Arrays;
+import java.util.HashMap;
+import java.util.HashSet;
+import java.util.List;
+import java.util.Map;
+import java.util.Objects;
+
+/** Configuration for the Virtual Trusted Platform Module (vTPM). */
+@javax.annotation.Generated(
+ value = "org.openapitools.codegen.languages.JavaClientCodegen",
+ comments = "Generator version: 7.19.0")
+public class ServerVTPM {
+ public static final String SERIALIZED_NAME_ENABLED = "enabled";
+
+ @SerializedName(SERIALIZED_NAME_ENABLED)
+ @javax.annotation.Nonnull
+ private Boolean enabled = false;
+
+ public ServerVTPM() {}
+
+ public ServerVTPM enabled(@javax.annotation.Nonnull Boolean enabled) {
+ this.enabled = enabled;
+ return this;
+ }
+
+ /**
+ * Defines whether the server instance has the Virtual Trusted Platform Module (vTPM) enabled.
+ *
+ * @return enabled
+ */
+ @javax.annotation.Nonnull
+ public Boolean getEnabled() {
+ return enabled;
+ }
+
+ public void setEnabled(@javax.annotation.Nonnull Boolean enabled) {
+ this.enabled = enabled;
+ }
+
+ /**
+ * A container for additional, undeclared properties. This is a holder for any undeclared
+ * properties as specified with the 'additionalProperties' keyword in the OAS document.
+ */
+ private Map additionalProperties;
+
+ /**
+ * Set the additional (undeclared) property with the specified name and value. If the property
+ * does not already exist, create it otherwise replace it.
+ *
+ * @param key name of the property
+ * @param value value of the property
+ * @return the ServerVTPM instance itself
+ */
+ public ServerVTPM putAdditionalProperty(String key, Object value) {
+ if (this.additionalProperties == null) {
+ this.additionalProperties = new HashMap();
+ }
+ this.additionalProperties.put(key, value);
+ return this;
+ }
+
+ /**
+ * Return the additional (undeclared) property.
+ *
+ * @return a map of objects
+ */
+ public Map getAdditionalProperties() {
+ return additionalProperties;
+ }
+
+ /**
+ * Return the additional (undeclared) property with the specified name.
+ *
+ * @param key name of the property
+ * @return an object
+ */
+ public Object getAdditionalProperty(String key) {
+ if (this.additionalProperties == null) {
+ return null;
+ }
+ return this.additionalProperties.get(key);
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ ServerVTPM serverVTPM = (ServerVTPM) o;
+ return Objects.equals(this.enabled, serverVTPM.enabled)
+ && Objects.equals(this.additionalProperties, serverVTPM.additionalProperties);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(enabled, additionalProperties);
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class ServerVTPM {\n");
+ sb.append(" enabled: ").append(toIndentedString(enabled)).append("\n");
+ sb.append(" additionalProperties: ")
+ .append(toIndentedString(additionalProperties))
+ .append("\n");
+ sb.append("}");
+ return sb.toString();
+ }
+
+ /**
+ * Convert the given object to string with each line indented by 4 spaces (except the first
+ * line).
+ */
+ private String toIndentedString(Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+
+ public static HashSet openapiFields;
+ public static HashSet openapiRequiredFields;
+
+ static {
+ // a set of all properties/fields (JSON key names)
+ openapiFields = new HashSet(Arrays.asList("enabled"));
+
+ // a set of required properties/fields (JSON key names)
+ openapiRequiredFields = new HashSet(Arrays.asList("enabled"));
+ }
+
+ /**
+ * Validates the JSON Element and throws an exception if issues found
+ *
+ * @param jsonElement JSON Element
+ * @throws IOException if the JSON Element is invalid with respect to ServerVTPM
+ */
+ public static void validateJsonElement(JsonElement jsonElement) throws IOException {
+ if (jsonElement == null) {
+ if (!ServerVTPM.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 ServerVTPM is not found in the empty JSON string",
+ ServerVTPM.openapiRequiredFields.toString()));
+ }
+ }
+
+ // check to make sure all required properties/fields are present in the JSON string
+ for (String requiredField : ServerVTPM.openapiRequiredFields) {
+ if (jsonElement.getAsJsonObject().get(requiredField) == null) {
+ throw new IllegalArgumentException(
+ String.format(
+ java.util.Locale.ROOT,
+ "The required field `%s` is not found in the JSON string: %s",
+ requiredField,
+ jsonElement.toString()));
+ }
+ }
+ JsonObject jsonObj = jsonElement.getAsJsonObject();
+ }
+
+ public static class CustomTypeAdapterFactory implements TypeAdapterFactory {
+ @SuppressWarnings("unchecked")
+ @Override
+ public TypeAdapter create(Gson gson, TypeToken type) {
+ if (!ServerVTPM.class.isAssignableFrom(type.getRawType())) {
+ return null; // this class only serializes 'ServerVTPM' and its subtypes
+ }
+ final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class);
+ final TypeAdapter thisAdapter =
+ gson.getDelegateAdapter(this, TypeToken.get(ServerVTPM.class));
+
+ return (TypeAdapter)
+ new TypeAdapter() {
+ @Override
+ public void write(JsonWriter out, ServerVTPM value) throws IOException {
+ JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject();
+ obj.remove("additionalProperties");
+ // serialize additional properties
+ if (value.getAdditionalProperties() != null) {
+ for (Map.Entry entry :
+ value.getAdditionalProperties().entrySet()) {
+ if (entry.getValue() instanceof String)
+ obj.addProperty(entry.getKey(), (String) entry.getValue());
+ else if (entry.getValue() instanceof Number)
+ obj.addProperty(entry.getKey(), (Number) entry.getValue());
+ else if (entry.getValue() instanceof Boolean)
+ obj.addProperty(entry.getKey(), (Boolean) entry.getValue());
+ else if (entry.getValue() instanceof Character)
+ obj.addProperty(
+ entry.getKey(), (Character) entry.getValue());
+ else {
+ JsonElement jsonElement = gson.toJsonTree(entry.getValue());
+ if (jsonElement.isJsonArray()) {
+ obj.add(entry.getKey(), jsonElement.getAsJsonArray());
+ } else {
+ obj.add(entry.getKey(), jsonElement.getAsJsonObject());
+ }
+ }
+ }
+ }
+ elementAdapter.write(out, obj);
+ }
+
+ @Override
+ public ServerVTPM read(JsonReader in) throws IOException {
+ JsonElement jsonElement = elementAdapter.read(in);
+ validateJsonElement(jsonElement);
+ JsonObject jsonObj = jsonElement.getAsJsonObject();
+ // store additional fields in the deserialized instance
+ ServerVTPM instance = thisAdapter.fromJsonTree(jsonObj);
+ for (Map.Entry entry : jsonObj.entrySet()) {
+ if (!openapiFields.contains(entry.getKey())) {
+ if (entry.getValue().isJsonPrimitive()) { // primitive type
+ if (entry.getValue().getAsJsonPrimitive().isString())
+ instance.putAdditionalProperty(
+ entry.getKey(), entry.getValue().getAsString());
+ else if (entry.getValue().getAsJsonPrimitive().isNumber())
+ instance.putAdditionalProperty(
+ entry.getKey(), entry.getValue().getAsNumber());
+ else if (entry.getValue().getAsJsonPrimitive().isBoolean())
+ instance.putAdditionalProperty(
+ entry.getKey(),
+ entry.getValue().getAsBoolean());
+ else
+ throw new IllegalArgumentException(
+ String.format(
+ java.util.Locale.ROOT,
+ "The field `%s` has unknown primitive type. Value: %s",
+ entry.getKey(),
+ entry.getValue().toString()));
+ } else if (entry.getValue().isJsonArray()) {
+ instance.putAdditionalProperty(
+ entry.getKey(),
+ gson.fromJson(entry.getValue(), List.class));
+ } else { // JSON object
+ instance.putAdditionalProperty(
+ entry.getKey(),
+ gson.fromJson(entry.getValue(), HashMap.class));
+ }
+ }
+ }
+ return instance;
+ }
+ }.nullSafe();
+ }
+ }
+
+ /**
+ * Create an instance of ServerVTPM given an JSON string
+ *
+ * @param jsonString JSON string
+ * @return An instance of ServerVTPM
+ * @throws IOException if the JSON string is invalid with respect to ServerVTPM
+ */
+ public static ServerVTPM fromJson(String jsonString) throws IOException {
+ return JSON.getGson().fromJson(jsonString, ServerVTPM.class);
+ }
+
+ /**
+ * Convert an instance of ServerVTPM to an JSON string
+ *
+ * @return JSON string
+ */
+ public String toJson() {
+ return JSON.getGson().toJson(this);
+ }
+}
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/v1api/model/Volume.java b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v1api/model/Volume.java
index 274469e4..f0048790 100644
--- a/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v1api/model/Volume.java
+++ b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v1api/model/Volume.java
@@ -360,8 +360,9 @@ public void setSource(@javax.annotation.Nullable VolumeSource source) {
* `CREATING`, `DELETED`, `DELETING`, `DETACHING`,
* `DOWNLOADING`, `ERROR`, `ERROR_BACKING-UP`,
* `ERROR_DELETING`, `ERROR_RESIZING`, `ERROR_RESTORING-BACKUP`,
- * `MAINTENANCE`, `RESERVED`, `RESIZING`,
- * `RESTORING-BACKUP`, `RETYPING`, `UPLOADING`.
+ * `ERROR_KMS-ENCRYPTION-PARAMS`, `MAINTENANCE`, `RESERVED`,
+ * `RESIZING`, `RESTORING-BACKUP`, `RETYPING`,
+ * `UPLOADING`.
*
* @return status
*/
diff --git a/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v2alpha1api/JSON.java b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v2alpha1api/JSON.java
index cf8b027e..6b1bfa7e 100644
--- a/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v2alpha1api/JSON.java
+++ b/services/iaas/src/main/java/cloud/stackit/sdk/iaas/v2alpha1api/JSON.java
@@ -59,6 +59,76 @@ public class JSON {
public static GsonBuilder createGson() {
GsonFireBuilder fireBuilder =
new GsonFireBuilder()
+ .registerTypeSelector(
+ cloud.stackit.sdk.iaas.v2alpha1api.model
+ .AddVPCStaticRoutePayloadDestination.class,
+ new TypeSelector<
+ cloud.stackit.sdk.iaas.v2alpha1api.model
+ .AddVPCStaticRoutePayloadDestination>() {
+ @Override
+ public Class<
+ ? extends
+ cloud.stackit.sdk.iaas.v2alpha1api.model
+ .AddVPCStaticRoutePayloadDestination>
+ getClassForElement(JsonElement readElement) {
+ Map classByDiscriminatorValue =
+ new HashMap();
+ classByDiscriminatorValue.put(
+ "cidrv4",
+ cloud.stackit.sdk.iaas.v2alpha1api.model
+ .DestinationCIDRv4.class);
+ classByDiscriminatorValue.put(
+ "cidrv6",
+ cloud.stackit.sdk.iaas.v2alpha1api.model
+ .DestinationCIDRv6.class);
+ classByDiscriminatorValue.put(
+ "AddVPCStaticRoutePayload_destination",
+ cloud.stackit.sdk.iaas.v2alpha1api.model
+ .AddVPCStaticRoutePayloadDestination.class);
+ return getClassByDiscriminator(
+ classByDiscriminatorValue,
+ getDiscriminatorValue(readElement, "type"));
+ }
+ })
+ .registerTypeSelector(
+ cloud.stackit.sdk.iaas.v2alpha1api.model
+ .AddVPCStaticRoutePayloadNexthop.class,
+ new TypeSelector<
+ cloud.stackit.sdk.iaas.v2alpha1api.model
+ .AddVPCStaticRoutePayloadNexthop>() {
+ @Override
+ public Class<
+ ? extends
+ cloud.stackit.sdk.iaas.v2alpha1api.model
+ .AddVPCStaticRoutePayloadNexthop>
+ getClassForElement(JsonElement readElement) {
+ Map classByDiscriminatorValue =
+ new HashMap();
+ classByDiscriminatorValue.put(
+ "blackhole",
+ cloud.stackit.sdk.iaas.v2alpha1api.model
+ .NexthopBlackhole.class);
+ classByDiscriminatorValue.put(
+ "internet",
+ cloud.stackit.sdk.iaas.v2alpha1api.model
+ .NexthopInternet.class);
+ classByDiscriminatorValue.put(
+ "ipv4",
+ cloud.stackit.sdk.iaas.v2alpha1api.model.NexthopIPv4
+ .class);
+ classByDiscriminatorValue.put(
+ "ipv6",
+ cloud.stackit.sdk.iaas.v2alpha1api.model.NexthopIPv6
+ .class);
+ classByDiscriminatorValue.put(
+ "AddVPCStaticRoutePayload_nexthop",
+ cloud.stackit.sdk.iaas.v2alpha1api.model
+ .AddVPCStaticRoutePayloadNexthop.class);
+ return getClassByDiscriminator(
+ classByDiscriminatorValue,
+ getDiscriminatorValue(readElement, "type"));
+ }
+ })
.registerTypeSelector(
cloud.stackit.sdk.iaas.v2alpha1api.model.RouteDestination.class,
new TypeSelector<
@@ -125,6 +195,36 @@ public static GsonBuilder createGson() {
classByDiscriminatorValue,
getDiscriminatorValue(readElement, "type"));
}
+ })
+ .registerTypeSelector(
+ cloud.stackit.sdk.iaas.v2alpha1api.model.VPCNetworkRange.class,
+ new TypeSelector<
+ cloud.stackit.sdk.iaas.v2alpha1api.model
+ .VPCNetworkRange>() {
+ @Override
+ public Class<
+ ? extends
+ cloud.stackit.sdk.iaas.v2alpha1api.model
+ .VPCNetworkRange>
+ getClassForElement(JsonElement readElement) {
+ Map classByDiscriminatorValue =
+ new HashMap();
+ classByDiscriminatorValue.put(
+ "ipv4",
+ cloud.stackit.sdk.iaas.v2alpha1api.model
+ .VPCNetworkRangeIPv4.class);
+ classByDiscriminatorValue.put(
+ "ipv6",
+ cloud.stackit.sdk.iaas.v2alpha1api.model
+ .VPCNetworkRangeIPv6.class);
+ classByDiscriminatorValue.put(
+ "VPCNetworkRange",
+ cloud.stackit.sdk.iaas.v2alpha1api.model
+ .VPCNetworkRange.class);
+ return getClassByDiscriminator(
+ classByDiscriminatorValue,
+ getDiscriminatorValue(readElement, "ipVersion"));
+ }
});
GsonBuilder builder = fireBuilder.createGsonBuilder();
return builder;
@@ -171,6 +271,18 @@ private static Class getClassByDiscriminator(
gsonBuilder.registerTypeAdapterFactory(
new cloud.stackit.sdk.iaas.v2alpha1api.model.AddRoutingTableToAreaPayload
.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new cloud.stackit.sdk.iaas.v2alpha1api.model.AddVPCRoutingTablePayload
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new cloud.stackit.sdk.iaas.v2alpha1api.model.AddVPCStaticRoutePayload
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new cloud.stackit.sdk.iaas.v2alpha1api.model.AddVPCStaticRoutePayloadDestination
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new cloud.stackit.sdk.iaas.v2alpha1api.model.AddVPCStaticRoutePayloadNexthop
+ .CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(
new cloud.stackit.sdk.iaas.v2alpha1api.model.CreateNetworkIPv4
.CustomTypeAdapterFactory());
@@ -192,6 +304,12 @@ private static Class getClassByDiscriminator(
gsonBuilder.registerTypeAdapterFactory(
new cloud.stackit.sdk.iaas.v2alpha1api.model.CreateNetworkPayload
.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new cloud.stackit.sdk.iaas.v2alpha1api.model.CreateVPCPayload
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new cloud.stackit.sdk.iaas.v2alpha1api.model.CreateVPCRegionPayload
+ .CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(
new cloud.stackit.sdk.iaas.v2alpha1api.model.DestinationCIDRv4
.CustomTypeAdapterFactory());
@@ -211,6 +329,9 @@ private static Class getClassByDiscriminator(
gsonBuilder.registerTypeAdapterFactory(
new cloud.stackit.sdk.iaas.v2alpha1api.model.NetworkListResponse
.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new cloud.stackit.sdk.iaas.v2alpha1api.model.NetworkRangeIPv4Request
+ .CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(
new cloud.stackit.sdk.iaas.v2alpha1api.model.NexthopBlackhole
.CustomTypeAdapterFactory());
@@ -226,6 +347,18 @@ private static Class getClassByDiscriminator(
gsonBuilder.registerTypeAdapterFactory(
new cloud.stackit.sdk.iaas.v2alpha1api.model.PartialUpdateNetworkPayload
.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new cloud.stackit.sdk.iaas.v2alpha1api.model.PartialUpdateVPCPayload
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new cloud.stackit.sdk.iaas.v2alpha1api.model.RegionalVPC
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new cloud.stackit.sdk.iaas.v2alpha1api.model.RegionalVPCIPv4
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new cloud.stackit.sdk.iaas.v2alpha1api.model.RegionalVPCList
+ .CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(
new cloud.stackit.sdk.iaas.v2alpha1api.model.Route.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(
@@ -255,6 +388,43 @@ private static Class getClassByDiscriminator(
gsonBuilder.registerTypeAdapterFactory(
new cloud.stackit.sdk.iaas.v2alpha1api.model.UpdateRoutingTableOfAreaPayload
.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new cloud.stackit.sdk.iaas.v2alpha1api.model.UpdateVPCRegionPayload
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new cloud.stackit.sdk.iaas.v2alpha1api.model.UpdateVPCRoutingTablePayload
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new cloud.stackit.sdk.iaas.v2alpha1api.model.UpdateVPCStaticRoutePayload
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new cloud.stackit.sdk.iaas.v2alpha1api.model.V1UpdateVPCNetworkRangeIPv4
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new cloud.stackit.sdk.iaas.v2alpha1api.model.VPC.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new cloud.stackit.sdk.iaas.v2alpha1api.model.VPCBaseNetworkRange
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new cloud.stackit.sdk.iaas.v2alpha1api.model.VPCList.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new cloud.stackit.sdk.iaas.v2alpha1api.model.VPCNetworkRange
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new cloud.stackit.sdk.iaas.v2alpha1api.model.VPCNetworkRangeIPv4
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new cloud.stackit.sdk.iaas.v2alpha1api.model.VPCNetworkRangeIPv6
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new cloud.stackit.sdk.iaas.v2alpha1api.model.VPCNetworkRangeList
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new cloud.stackit.sdk.iaas.v2alpha1api.model.VPCRoutingTable
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new cloud.stackit.sdk.iaas.v2alpha1api.model.VPCRoutingTableList
+ .CustomTypeAdapterFactory());
gson = gsonBuilder.create();
}
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..f4ab33b0 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
@@ -20,16 +20,34 @@
import cloud.stackit.sdk.iaas.v2alpha1api.Pair;
import cloud.stackit.sdk.iaas.v2alpha1api.model.AddRoutesToRoutingTablePayload;
import cloud.stackit.sdk.iaas.v2alpha1api.model.AddRoutingTableToAreaPayload;
+import cloud.stackit.sdk.iaas.v2alpha1api.model.AddVPCRoutingTablePayload;
+import cloud.stackit.sdk.iaas.v2alpha1api.model.AddVPCStaticRoutePayload;
import cloud.stackit.sdk.iaas.v2alpha1api.model.CreateNetworkPayload;
+import cloud.stackit.sdk.iaas.v2alpha1api.model.CreateVPCPayload;
+import cloud.stackit.sdk.iaas.v2alpha1api.model.CreateVPCRegionPayload;
import cloud.stackit.sdk.iaas.v2alpha1api.model.Network;
import cloud.stackit.sdk.iaas.v2alpha1api.model.NetworkListResponse;
+import cloud.stackit.sdk.iaas.v2alpha1api.model.NetworkRangeIPv4Request;
import cloud.stackit.sdk.iaas.v2alpha1api.model.PartialUpdateNetworkPayload;
+import cloud.stackit.sdk.iaas.v2alpha1api.model.PartialUpdateVPCPayload;
+import cloud.stackit.sdk.iaas.v2alpha1api.model.RegionalVPC;
+import cloud.stackit.sdk.iaas.v2alpha1api.model.RegionalVPCList;
import cloud.stackit.sdk.iaas.v2alpha1api.model.Route;
import cloud.stackit.sdk.iaas.v2alpha1api.model.RouteListResponse;
import cloud.stackit.sdk.iaas.v2alpha1api.model.RoutingTable;
import cloud.stackit.sdk.iaas.v2alpha1api.model.RoutingTableListResponse;
import cloud.stackit.sdk.iaas.v2alpha1api.model.UpdateRouteOfRoutingTablePayload;
import cloud.stackit.sdk.iaas.v2alpha1api.model.UpdateRoutingTableOfAreaPayload;
+import cloud.stackit.sdk.iaas.v2alpha1api.model.UpdateVPCRegionPayload;
+import cloud.stackit.sdk.iaas.v2alpha1api.model.UpdateVPCRoutingTablePayload;
+import cloud.stackit.sdk.iaas.v2alpha1api.model.UpdateVPCStaticRoutePayload;
+import cloud.stackit.sdk.iaas.v2alpha1api.model.V1UpdateVPCNetworkRangeIPv4;
+import cloud.stackit.sdk.iaas.v2alpha1api.model.VPC;
+import cloud.stackit.sdk.iaas.v2alpha1api.model.VPCList;
+import cloud.stackit.sdk.iaas.v2alpha1api.model.VPCNetworkRange;
+import cloud.stackit.sdk.iaas.v2alpha1api.model.VPCNetworkRangeList;
+import cloud.stackit.sdk.iaas.v2alpha1api.model.VPCRoutingTable;
+import cloud.stackit.sdk.iaas.v2alpha1api.model.VPCRoutingTableList;
import com.google.gson.reflect.TypeToken;
import java.io.IOException;
import java.lang.reflect.Type;
@@ -264,7 +282,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 +325,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 +371,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)
@@ -645,11 +665,13 @@ public okhttp3.Call addRoutingTableToAreaAsync(
}
/**
- * Build call for createNetwork
+ * Build call for addVPCRoutingTable
*
* @param projectId The identifier (ID) of a STACKIT Project. (required)
+ * @param vpcId The unique identifier (ID) of the target STACKIT VPC in the request path.
+ * (required)
* @param region The STACKIT Region of the resources. (required)
- * @param createNetworkPayload Request a network creation. (required)
+ * @param addVPCRoutingTablePayload Request an addition of a routing table to a VPC. (required)
* @param _callback Callback for upload/download progress
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
@@ -657,19 +679,21 @@ public okhttp3.Call addRoutingTableToAreaAsync(
*
* Response Details
* | Status Code | Description | Response Headers |
- * | 202 | Network create has been accepted. | - |
+ * | 201 | Adding routing table was successful. | - |
* | 400 | A bad request. | - |
* | 401 | A request which was not authorized. | - |
* | 403 | A request which was forbidden. | - |
* | 404 | The object was not found. | - |
* | 409 | A conflict has occurred. | - |
+ * | 424 | The region of the vpc is not enabled. | - |
* | 500 | Internal Server Error, returns a 500 if something is broken on IaaS API Side. | - |
*
*/
- public okhttp3.Call createNetworkCall(
+ public okhttp3.Call addVPCRoutingTableCall(
@javax.annotation.Nonnull UUID projectId,
+ @javax.annotation.Nonnull UUID vpcId,
@javax.annotation.Nonnull String region,
- @javax.annotation.Nonnull CreateNetworkPayload createNetworkPayload,
+ @javax.annotation.Nonnull AddVPCRoutingTablePayload addVPCRoutingTablePayload,
final ApiCallback _callback)
throws ApiException {
String basePath = null;
@@ -685,14 +709,17 @@ public okhttp3.Call createNetworkCall(
basePath = null;
}
- Object localVarPostBody = createNetworkPayload;
+ Object localVarPostBody = addVPCRoutingTablePayload;
// create path and map variables
String localVarPath =
- "/v2alpha1/projects/{projectId}/regions/{region}/networks"
+ "/v2alpha1/projects/{projectId}/vpcs/{vpcId}/regions/{region}/routing-tables"
.replace(
"{" + "projectId" + "}",
localVarApiClient.escapeString(projectId.toString()))
+ .replace(
+ "{" + "vpcId" + "}",
+ localVarApiClient.escapeString(vpcId.toString()))
.replace(
"{" + "region" + "}",
localVarApiClient.escapeString(region.toString()));
@@ -732,113 +759,126 @@ public okhttp3.Call createNetworkCall(
}
@SuppressWarnings("rawtypes")
- private okhttp3.Call createNetworkValidateBeforeCall(
+ private okhttp3.Call addVPCRoutingTableValidateBeforeCall(
@javax.annotation.Nonnull UUID projectId,
+ @javax.annotation.Nonnull UUID vpcId,
@javax.annotation.Nonnull String region,
- @javax.annotation.Nonnull CreateNetworkPayload createNetworkPayload,
+ @javax.annotation.Nonnull AddVPCRoutingTablePayload addVPCRoutingTablePayload,
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 createNetwork(Async)");
+ "Missing the required parameter 'projectId' when calling addVPCRoutingTable(Async)");
+ }
+
+ // verify the required parameter 'vpcId' is set
+ if (vpcId == null) {
+ throw new ApiException(
+ "Missing the required parameter 'vpcId' when calling addVPCRoutingTable(Async)");
}
// verify the required parameter 'region' is set
if (region == null) {
throw new ApiException(
- "Missing the required parameter 'region' when calling createNetwork(Async)");
+ "Missing the required parameter 'region' when calling addVPCRoutingTable(Async)");
}
- // verify the required parameter 'createNetworkPayload' is set
- if (createNetworkPayload == null) {
+ // verify the required parameter 'addVPCRoutingTablePayload' is set
+ if (addVPCRoutingTablePayload == null) {
throw new ApiException(
- "Missing the required parameter 'createNetworkPayload' when calling createNetwork(Async)");
+ "Missing the required parameter 'addVPCRoutingTablePayload' when calling addVPCRoutingTable(Async)");
}
- return createNetworkCall(projectId, region, createNetworkPayload, _callback);
+ return addVPCRoutingTableCall(
+ projectId, vpcId, region, addVPCRoutingTablePayload, _callback);
}
/**
- * Create new network. Create a new network in a project. `nameservers` will be filled
- * from `defaultNameservers` of the respective area if not specified. If the project
- * has `internetAccess` enabled and this is the first network in the project this
- * might incur cost.
+ * Create a new regional routing table in a VPC. Create a new routing table in an existing VPC
+ * for this region.
*
* @param projectId The identifier (ID) of a STACKIT Project. (required)
+ * @param vpcId The unique identifier (ID) of the target STACKIT VPC in the request path.
+ * (required)
* @param region The STACKIT Region of the resources. (required)
- * @param createNetworkPayload Request a network creation. (required)
- * @return Network
+ * @param addVPCRoutingTablePayload Request an addition of a routing table to a VPC. (required)
+ * @return VPCRoutingTable
* @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 |
- * | 202 | Network create has been accepted. | - |
+ * | 201 | Adding routing table was successful. | - |
* | 400 | A bad request. | - |
* | 401 | A request which was not authorized. | - |
* | 403 | A request which was forbidden. | - |
* | 404 | The object was not found. | - |
* | 409 | A conflict has occurred. | - |
+ * | 424 | The region of the vpc is not enabled. | - |
* | 500 | Internal Server Error, returns a 500 if something is broken on IaaS API Side. | - |
*
*/
- public Network createNetwork(
+ public VPCRoutingTable addVPCRoutingTable(
@javax.annotation.Nonnull UUID projectId,
+ @javax.annotation.Nonnull UUID vpcId,
@javax.annotation.Nonnull String region,
- @javax.annotation.Nonnull CreateNetworkPayload createNetworkPayload)
+ @javax.annotation.Nonnull AddVPCRoutingTablePayload addVPCRoutingTablePayload)
throws ApiException {
- ApiResponse localVarResp =
- createNetworkWithHttpInfo(projectId, region, createNetworkPayload);
+ ApiResponse localVarResp =
+ addVPCRoutingTableWithHttpInfo(projectId, vpcId, region, addVPCRoutingTablePayload);
return localVarResp.getData();
}
/**
- * Create new network. Create a new network in a project. `nameservers` will be filled
- * from `defaultNameservers` of the respective area if not specified. If the project
- * has `internetAccess` enabled and this is the first network in the project this
- * might incur cost.
+ * Create a new regional routing table in a VPC. Create a new routing table in an existing VPC
+ * for this region.
*
* @param projectId The identifier (ID) of a STACKIT Project. (required)
+ * @param vpcId The unique identifier (ID) of the target STACKIT VPC in the request path.
+ * (required)
* @param region The STACKIT Region of the resources. (required)
- * @param createNetworkPayload Request a network creation. (required)
- * @return ApiResponse<Network>
+ * @param addVPCRoutingTablePayload Request an addition of a routing table to a VPC. (required)
+ * @return ApiResponse<VPCRoutingTable>
* @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 |
- * | 202 | Network create has been accepted. | - |
+ * | 201 | Adding routing table was successful. | - |
* | 400 | A bad request. | - |
* | 401 | A request which was not authorized. | - |
* | 403 | A request which was forbidden. | - |
* | 404 | The object was not found. | - |
* | 409 | A conflict has occurred. | - |
+ * | 424 | The region of the vpc is not enabled. | - |
* | 500 | Internal Server Error, returns a 500 if something is broken on IaaS API Side. | - |
*
*/
- public ApiResponse createNetworkWithHttpInfo(
+ public ApiResponse addVPCRoutingTableWithHttpInfo(
@javax.annotation.Nonnull UUID projectId,
+ @javax.annotation.Nonnull UUID vpcId,
@javax.annotation.Nonnull String region,
- @javax.annotation.Nonnull CreateNetworkPayload createNetworkPayload)
+ @javax.annotation.Nonnull AddVPCRoutingTablePayload addVPCRoutingTablePayload)
throws ApiException {
okhttp3.Call localVarCall =
- createNetworkValidateBeforeCall(projectId, region, createNetworkPayload, null);
- Type localVarReturnType = new TypeToken() {}.getType();
+ addVPCRoutingTableValidateBeforeCall(
+ projectId, vpcId, region, addVPCRoutingTablePayload, null);
+ Type localVarReturnType = new TypeToken() {}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
/**
- * Create new network. (asynchronously) Create a new network in a project.
- * `nameservers` will be filled from `defaultNameservers` of the respective
- * area if not specified. If the project has `internetAccess` enabled and this is the
- * first network in the project this might incur cost.
+ * Create a new regional routing table in a VPC. (asynchronously) Create a new routing table in
+ * an existing VPC for this region.
*
* @param projectId The identifier (ID) of a STACKIT Project. (required)
+ * @param vpcId The unique identifier (ID) of the target STACKIT VPC in the request path.
+ * (required)
* @param region The STACKIT Region of the resources. (required)
- * @param createNetworkPayload Request a network creation. (required)
+ * @param addVPCRoutingTablePayload Request an addition of a routing table to a VPC. (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
@@ -847,35 +887,41 @@ public ApiResponse createNetworkWithHttpInfo(
*
* Response Details
* | Status Code | Description | Response Headers |
- * | 202 | Network create has been accepted. | - |
+ * | 201 | Adding routing table was successful. | - |
* | 400 | A bad request. | - |
* | 401 | A request which was not authorized. | - |
* | 403 | A request which was forbidden. | - |
* | 404 | The object was not found. | - |
* | 409 | A conflict has occurred. | - |
+ * | 424 | The region of the vpc is not enabled. | - |
* | 500 | Internal Server Error, returns a 500 if something is broken on IaaS API Side. | - |
*
*/
- public okhttp3.Call createNetworkAsync(
+ public okhttp3.Call addVPCRoutingTableAsync(
@javax.annotation.Nonnull UUID projectId,
+ @javax.annotation.Nonnull UUID vpcId,
@javax.annotation.Nonnull String region,
- @javax.annotation.Nonnull CreateNetworkPayload createNetworkPayload,
- final ApiCallback _callback)
+ @javax.annotation.Nonnull AddVPCRoutingTablePayload addVPCRoutingTablePayload,
+ final ApiCallback _callback)
throws ApiException {
okhttp3.Call localVarCall =
- createNetworkValidateBeforeCall(projectId, region, createNetworkPayload, _callback);
- Type localVarReturnType = new TypeToken() {}.getType();
+ addVPCRoutingTableValidateBeforeCall(
+ projectId, vpcId, region, addVPCRoutingTablePayload, _callback);
+ Type localVarReturnType = new TypeToken() {}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
/**
- * Build call for deleteNetwork
+ * Build call for addVPCStaticRoute
*
* @param projectId The identifier (ID) of a STACKIT Project. (required)
+ * @param vpcId The unique identifier (ID) of the target STACKIT VPC in the request path.
+ * (required)
* @param region The STACKIT Region of the resources. (required)
- * @param networkId The identifier (ID) of a STACKIT Network. (required)
+ * @param routingTableId The identifier (ID) of a STACKIT Routing Table. (required)
+ * @param addVPCStaticRoutePayload Request to add a static route to a VPC. (required)
* @param _callback Callback for upload/download progress
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
@@ -883,19 +929,22 @@ public okhttp3.Call createNetworkAsync(
*
* Response Details
* | Status Code | Description | Response Headers |
- * | 202 | Delete request for network has been accepted. | - |
+ * | 201 | Adding static route was successful. | - |
* | 400 | A bad request. | - |
* | 401 | A request which was not authorized. | - |
* | 403 | A request which was forbidden. | - |
* | 404 | The object was not found. | - |
* | 409 | A conflict has occurred. | - |
+ * | 424 | The region of the vpc is not enabled. | - |
* | 500 | Internal Server Error, returns a 500 if something is broken on IaaS API Side. | - |
*
*/
- public okhttp3.Call deleteNetworkCall(
+ public okhttp3.Call addVPCStaticRouteCall(
@javax.annotation.Nonnull UUID projectId,
+ @javax.annotation.Nonnull UUID vpcId,
@javax.annotation.Nonnull String region,
- @javax.annotation.Nonnull UUID networkId,
+ @javax.annotation.Nonnull UUID routingTableId,
+ @javax.annotation.Nonnull AddVPCStaticRoutePayload addVPCStaticRoutePayload,
final ApiCallback _callback)
throws ApiException {
String basePath = null;
@@ -911,20 +960,23 @@ public okhttp3.Call deleteNetworkCall(
basePath = null;
}
- Object localVarPostBody = null;
+ Object localVarPostBody = addVPCStaticRoutePayload;
// create path and map variables
String localVarPath =
- "/v2alpha1/projects/{projectId}/regions/{region}/networks/{networkId}"
+ "/v2alpha1/projects/{projectId}/vpcs/{vpcId}/regions/{region}/routing-tables/{routingTableId}/static-routes"
.replace(
"{" + "projectId" + "}",
localVarApiClient.escapeString(projectId.toString()))
+ .replace(
+ "{" + "vpcId" + "}",
+ localVarApiClient.escapeString(vpcId.toString()))
.replace(
"{" + "region" + "}",
localVarApiClient.escapeString(region.toString()))
.replace(
- "{" + "networkId" + "}",
- localVarApiClient.escapeString(networkId.toString()));
+ "{" + "routingTableId" + "}",
+ localVarApiClient.escapeString(routingTableId.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
@@ -938,7 +990,7 @@ public okhttp3.Call deleteNetworkCall(
localVarHeaderParams.put("Accept", localVarAccept);
}
- final String[] localVarContentTypes = {};
+ final String[] localVarContentTypes = {"application/json"};
final String localVarContentType =
localVarApiClient.selectHeaderContentType(localVarContentTypes);
if (localVarContentType != null) {
@@ -949,7 +1001,7 @@ public okhttp3.Call deleteNetworkCall(
return localVarApiClient.buildCall(
basePath,
localVarPath,
- "DELETE",
+ "POST",
localVarQueryParams,
localVarCollectionQueryParams,
localVarPostBody,
@@ -961,101 +1013,137 @@ public okhttp3.Call deleteNetworkCall(
}
@SuppressWarnings("rawtypes")
- private okhttp3.Call deleteNetworkValidateBeforeCall(
+ private okhttp3.Call addVPCStaticRouteValidateBeforeCall(
@javax.annotation.Nonnull UUID projectId,
+ @javax.annotation.Nonnull UUID vpcId,
@javax.annotation.Nonnull String region,
- @javax.annotation.Nonnull UUID networkId,
+ @javax.annotation.Nonnull UUID routingTableId,
+ @javax.annotation.Nonnull AddVPCStaticRoutePayload addVPCStaticRoutePayload,
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 deleteNetwork(Async)");
+ "Missing the required parameter 'projectId' when calling addVPCStaticRoute(Async)");
+ }
+
+ // verify the required parameter 'vpcId' is set
+ if (vpcId == null) {
+ throw new ApiException(
+ "Missing the required parameter 'vpcId' when calling addVPCStaticRoute(Async)");
}
// verify the required parameter 'region' is set
if (region == null) {
throw new ApiException(
- "Missing the required parameter 'region' when calling deleteNetwork(Async)");
+ "Missing the required parameter 'region' when calling addVPCStaticRoute(Async)");
}
- // verify the required parameter 'networkId' is set
- if (networkId == null) {
+ // verify the required parameter 'routingTableId' is set
+ if (routingTableId == null) {
throw new ApiException(
- "Missing the required parameter 'networkId' when calling deleteNetwork(Async)");
+ "Missing the required parameter 'routingTableId' when calling addVPCStaticRoute(Async)");
}
- return deleteNetworkCall(projectId, region, networkId, _callback);
+ // verify the required parameter 'addVPCStaticRoutePayload' is set
+ if (addVPCStaticRoutePayload == null) {
+ throw new ApiException(
+ "Missing the required parameter 'addVPCStaticRoutePayload' when calling addVPCStaticRoute(Async)");
+ }
+
+ return addVPCStaticRouteCall(
+ projectId, vpcId, region, routingTableId, addVPCStaticRoutePayload, _callback);
}
/**
- * Delete network. Delete a network. If the network is still in use, the deletion will fail.
+ * Create new regional static route. Create a new static route in the VPC for this region.
*
* @param projectId The identifier (ID) of a STACKIT Project. (required)
+ * @param vpcId The unique identifier (ID) of the target STACKIT VPC in the request path.
+ * (required)
* @param region The STACKIT Region of the resources. (required)
- * @param networkId The identifier (ID) of a STACKIT Network. (required)
+ * @param routingTableId The identifier (ID) of a STACKIT Routing Table. (required)
+ * @param addVPCStaticRoutePayload Request to add a static route to a VPC. (required)
+ * @return Route
* @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 |
- * | 202 | Delete request for network has been accepted. | - |
+ * | 201 | Adding static route was successful. | - |
* | 400 | A bad request. | - |
* | 401 | A request which was not authorized. | - |
* | 403 | A request which was forbidden. | - |
* | 404 | The object was not found. | - |
* | 409 | A conflict has occurred. | - |
+ * | 424 | The region of the vpc is not enabled. | - |
* | 500 | Internal Server Error, returns a 500 if something is broken on IaaS API Side. | - |
*
*/
- public void deleteNetwork(
+ public Route addVPCStaticRoute(
@javax.annotation.Nonnull UUID projectId,
+ @javax.annotation.Nonnull UUID vpcId,
@javax.annotation.Nonnull String region,
- @javax.annotation.Nonnull UUID networkId)
+ @javax.annotation.Nonnull UUID routingTableId,
+ @javax.annotation.Nonnull AddVPCStaticRoutePayload addVPCStaticRoutePayload)
throws ApiException {
- deleteNetworkWithHttpInfo(projectId, region, networkId);
+ ApiResponse localVarResp =
+ addVPCStaticRouteWithHttpInfo(
+ projectId, vpcId, region, routingTableId, addVPCStaticRoutePayload);
+ return localVarResp.getData();
}
/**
- * Delete network. Delete a network. If the network is still in use, the deletion will fail.
+ * Create new regional static route. Create a new static route in the VPC for this region.
*
* @param projectId The identifier (ID) of a STACKIT Project. (required)
+ * @param vpcId The unique identifier (ID) of the target STACKIT VPC in the request path.
+ * (required)
* @param region The STACKIT Region of the resources. (required)
- * @param networkId The identifier (ID) of a STACKIT Network. (required)
- * @return ApiResponse<Void>
+ * @param routingTableId The identifier (ID) of a STACKIT Routing Table. (required)
+ * @param addVPCStaticRoutePayload Request to add a static route to a VPC. (required)
+ * @return ApiResponse<Route>
* @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 |
- * | 202 | Delete request for network has been accepted. | - |
+ * | 201 | Adding static route was successful. | - |
* | 400 | A bad request. | - |
* | 401 | A request which was not authorized. | - |
* | 403 | A request which was forbidden. | - |
* | 404 | The object was not found. | - |
* | 409 | A conflict has occurred. | - |
+ * | 424 | The region of the vpc is not enabled. | - |
* | 500 | Internal Server Error, returns a 500 if something is broken on IaaS API Side. | - |
*
*/
- public ApiResponse deleteNetworkWithHttpInfo(
+ public ApiResponse addVPCStaticRouteWithHttpInfo(
@javax.annotation.Nonnull UUID projectId,
+ @javax.annotation.Nonnull UUID vpcId,
@javax.annotation.Nonnull String region,
- @javax.annotation.Nonnull UUID networkId)
+ @javax.annotation.Nonnull UUID routingTableId,
+ @javax.annotation.Nonnull AddVPCStaticRoutePayload addVPCStaticRoutePayload)
throws ApiException {
okhttp3.Call localVarCall =
- deleteNetworkValidateBeforeCall(projectId, region, networkId, null);
- return localVarApiClient.execute(localVarCall);
+ addVPCStaticRouteValidateBeforeCall(
+ projectId, vpcId, region, routingTableId, addVPCStaticRoutePayload, null);
+ Type localVarReturnType = new TypeToken() {}.getType();
+ return localVarApiClient.execute(localVarCall, localVarReturnType);
}
/**
- * Delete network. (asynchronously) Delete a network. If the network is still in use, the
- * deletion will fail.
+ * Create new regional static route. (asynchronously) Create a new static route in the VPC for
+ * this region.
*
* @param projectId The identifier (ID) of a STACKIT Project. (required)
+ * @param vpcId The unique identifier (ID) of the target STACKIT VPC in the request path.
+ * (required)
* @param region The STACKIT Region of the resources. (required)
- * @param networkId The identifier (ID) of a STACKIT Network. (required)
+ * @param routingTableId The identifier (ID) of a STACKIT Routing Table. (required)
+ * @param addVPCStaticRoutePayload Request to add a static route to a VPC. (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
@@ -1064,36 +1152,44 @@ public ApiResponse deleteNetworkWithHttpInfo(
*
* Response Details
* | Status Code | Description | Response Headers |
- * | 202 | Delete request for network has been accepted. | - |
+ * | 201 | Adding static route was successful. | - |
* | 400 | A bad request. | - |
* | 401 | A request which was not authorized. | - |
* | 403 | A request which was forbidden. | - |
* | 404 | The object was not found. | - |
* | 409 | A conflict has occurred. | - |
+ * | 424 | The region of the vpc is not enabled. | - |
* | 500 | Internal Server Error, returns a 500 if something is broken on IaaS API Side. | - |
*
*/
- public okhttp3.Call deleteNetworkAsync(
+ public okhttp3.Call addVPCStaticRouteAsync(
@javax.annotation.Nonnull UUID projectId,
+ @javax.annotation.Nonnull UUID vpcId,
@javax.annotation.Nonnull String region,
- @javax.annotation.Nonnull UUID networkId,
- final ApiCallback _callback)
+ @javax.annotation.Nonnull UUID routingTableId,
+ @javax.annotation.Nonnull AddVPCStaticRoutePayload addVPCStaticRoutePayload,
+ final ApiCallback _callback)
throws ApiException {
okhttp3.Call localVarCall =
- deleteNetworkValidateBeforeCall(projectId, region, networkId, _callback);
- localVarApiClient.executeAsync(localVarCall, _callback);
+ addVPCStaticRouteValidateBeforeCall(
+ projectId,
+ vpcId,
+ region,
+ routingTableId,
+ addVPCStaticRoutePayload,
+ _callback);
+ Type localVarReturnType = new TypeToken() {}.getType();
+ localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
/**
- * Build call for deleteRouteFromRoutingTable
+ * Build call for createNetwork
*
- * @param organizationId The identifier (ID) of a STACKIT Organization. (required)
- * @param areaId The identifier (ID) of a STACKIT Network Area. (required)
+ * @param projectId The identifier (ID) of a STACKIT Project. (required)
* @param region The STACKIT Region of the resources. (required)
- * @param routingTableId The identifier (ID) of a STACKIT Routing Table. (required)
- * @param routeId The identifier (ID) of a STACKIT Route. (required)
+ * @param createNetworkPayload Request a network creation. (required)
* @param _callback Callback for upload/download progress
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
@@ -1101,20 +1197,19 @@ public okhttp3.Call deleteNetworkAsync(
*
* Response Details
* | Status Code | Description | Response Headers |
- * | 204 | Delete request for the route has been accepted. | - |
+ * | 202 | Network create has been accepted. | - |
* | 400 | A bad request. | - |
* | 401 | A request which was not authorized. | - |
* | 403 | A request which was forbidden. | - |
* | 404 | The object was not found. | - |
+ * | 409 | A conflict has occurred. | - |
* | 500 | Internal Server Error, returns a 500 if something is broken on IaaS API Side. | - |
*
*/
- public okhttp3.Call deleteRouteFromRoutingTableCall(
- @javax.annotation.Nonnull UUID organizationId,
- @javax.annotation.Nonnull UUID areaId,
+ public okhttp3.Call createNetworkCall(
+ @javax.annotation.Nonnull UUID projectId,
@javax.annotation.Nonnull String region,
- @javax.annotation.Nonnull UUID routingTableId,
- @javax.annotation.Nonnull UUID routeId,
+ @javax.annotation.Nonnull CreateNetworkPayload createNetworkPayload,
final ApiCallback _callback)
throws ApiException {
String basePath = null;
@@ -1130,26 +1225,17 @@ public okhttp3.Call deleteRouteFromRoutingTableCall(
basePath = null;
}
- Object localVarPostBody = null;
+ Object localVarPostBody = createNetworkPayload;
// create path and map variables
String localVarPath =
- "/v2alpha1/organizations/{organizationId}/network-areas/{areaId}/regions/{region}/routing-tables/{routingTableId}/routes/{routeId}"
- .replace(
- "{" + "organizationId" + "}",
- localVarApiClient.escapeString(organizationId.toString()))
+ "/v2alpha1/projects/{projectId}/regions/{region}/networks"
.replace(
- "{" + "areaId" + "}",
- localVarApiClient.escapeString(areaId.toString()))
+ "{" + "projectId" + "}",
+ localVarApiClient.escapeString(projectId.toString()))
.replace(
"{" + "region" + "}",
- localVarApiClient.escapeString(region.toString()))
- .replace(
- "{" + "routingTableId" + "}",
- localVarApiClient.escapeString(routingTableId.toString()))
- .replace(
- "{" + "routeId" + "}",
- localVarApiClient.escapeString(routeId.toString()));
+ localVarApiClient.escapeString(region.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
@@ -1163,7 +1249,7 @@ public okhttp3.Call deleteRouteFromRoutingTableCall(
localVarHeaderParams.put("Accept", localVarAccept);
}
- final String[] localVarContentTypes = {};
+ final String[] localVarContentTypes = {"application/json"};
final String localVarContentType =
localVarApiClient.selectHeaderContentType(localVarContentTypes);
if (localVarContentType != null) {
@@ -1174,7 +1260,7 @@ public okhttp3.Call deleteRouteFromRoutingTableCall(
return localVarApiClient.buildCall(
basePath,
localVarPath,
- "DELETE",
+ "POST",
localVarQueryParams,
localVarCollectionQueryParams,
localVarPostBody,
@@ -1186,126 +1272,113 @@ public okhttp3.Call deleteRouteFromRoutingTableCall(
}
@SuppressWarnings("rawtypes")
- private okhttp3.Call deleteRouteFromRoutingTableValidateBeforeCall(
- @javax.annotation.Nonnull UUID organizationId,
- @javax.annotation.Nonnull UUID areaId,
+ private okhttp3.Call createNetworkValidateBeforeCall(
+ @javax.annotation.Nonnull UUID projectId,
@javax.annotation.Nonnull String region,
- @javax.annotation.Nonnull UUID routingTableId,
- @javax.annotation.Nonnull UUID routeId,
+ @javax.annotation.Nonnull CreateNetworkPayload createNetworkPayload,
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 deleteRouteFromRoutingTable(Async)");
- }
-
- // verify the required parameter 'areaId' is set
- if (areaId == null) {
+ // verify the required parameter 'projectId' is set
+ if (projectId == null) {
throw new ApiException(
- "Missing the required parameter 'areaId' when calling deleteRouteFromRoutingTable(Async)");
+ "Missing the required parameter 'projectId' when calling createNetwork(Async)");
}
// verify the required parameter 'region' is set
if (region == null) {
throw new ApiException(
- "Missing the required parameter 'region' when calling deleteRouteFromRoutingTable(Async)");
- }
-
- // verify the required parameter 'routingTableId' is set
- if (routingTableId == null) {
- throw new ApiException(
- "Missing the required parameter 'routingTableId' when calling deleteRouteFromRoutingTable(Async)");
+ "Missing the required parameter 'region' when calling createNetwork(Async)");
}
- // verify the required parameter 'routeId' is set
- if (routeId == null) {
+ // verify the required parameter 'createNetworkPayload' is set
+ if (createNetworkPayload == null) {
throw new ApiException(
- "Missing the required parameter 'routeId' when calling deleteRouteFromRoutingTable(Async)");
+ "Missing the required parameter 'createNetworkPayload' when calling createNetwork(Async)");
}
- return deleteRouteFromRoutingTableCall(
- organizationId, areaId, region, routingTableId, routeId, _callback);
+ return createNetworkCall(projectId, region, createNetworkPayload, _callback);
}
/**
- * Delete a route in a routing table. Delete a route in an existing routing table.
+ * Create new network. Create a new network in a project. `nameservers` will be filled
+ * from `defaultNameservers` of the respective area if not specified. If the project
+ * has `internetAccess` enabled and this is the first network in the project this
+ * might incur cost.
*
- * @param organizationId The identifier (ID) of a STACKIT Organization. (required)
- * @param areaId The identifier (ID) of a STACKIT Network Area. (required)
+ * @param projectId The identifier (ID) of a STACKIT Project. (required)
* @param region The STACKIT Region of the resources. (required)
- * @param routingTableId The identifier (ID) of a STACKIT Routing Table. (required)
- * @param routeId The identifier (ID) of a STACKIT Route. (required)
+ * @param createNetworkPayload Request a network creation. (required)
+ * @return Network
* @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 |
- * | 204 | Delete request for the route has been accepted. | - |
+ * | 202 | Network create has been accepted. | - |
* | 400 | A bad request. | - |
* | 401 | A request which was not authorized. | - |
* | 403 | A request which was forbidden. | - |
* | 404 | The object was not found. | - |
+ * | 409 | A conflict has occurred. | - |
* | 500 | Internal Server Error, returns a 500 if something is broken on IaaS API Side. | - |
*
*/
- public void deleteRouteFromRoutingTable(
- @javax.annotation.Nonnull UUID organizationId,
- @javax.annotation.Nonnull UUID areaId,
+ public Network createNetwork(
+ @javax.annotation.Nonnull UUID projectId,
@javax.annotation.Nonnull String region,
- @javax.annotation.Nonnull UUID routingTableId,
- @javax.annotation.Nonnull UUID routeId)
+ @javax.annotation.Nonnull CreateNetworkPayload createNetworkPayload)
throws ApiException {
- deleteRouteFromRoutingTableWithHttpInfo(
- organizationId, areaId, region, routingTableId, routeId);
+ ApiResponse localVarResp =
+ createNetworkWithHttpInfo(projectId, region, createNetworkPayload);
+ return localVarResp.getData();
}
/**
- * Delete a route in a routing table. Delete a route in an existing routing table.
+ * Create new network. Create a new network in a project. `nameservers` will be filled
+ * from `defaultNameservers` of the respective area if not specified. If the project
+ * has `internetAccess` enabled and this is the first network in the project this
+ * might incur cost.
*
- * @param organizationId The identifier (ID) of a STACKIT Organization. (required)
- * @param areaId The identifier (ID) of a STACKIT Network Area. (required)
+ * @param projectId The identifier (ID) of a STACKIT Project. (required)
* @param region The STACKIT Region of the resources. (required)
- * @param routingTableId The identifier (ID) of a STACKIT Routing Table. (required)
- * @param routeId The identifier (ID) of a STACKIT Route. (required)
- * @return ApiResponse<Void>
+ * @param createNetworkPayload Request a network creation. (required)
+ * @return ApiResponse<Network>
* @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 |
- * | 204 | Delete request for the route has been accepted. | - |
+ * | 202 | Network create has been accepted. | - |
* | 400 | A bad request. | - |
* | 401 | A request which was not authorized. | - |
* | 403 | A request which was forbidden. | - |
* | 404 | The object was not found. | - |
+ * | 409 | A conflict has occurred. | - |
* | 500 | Internal Server Error, returns a 500 if something is broken on IaaS API Side. | - |
*
*/
- public ApiResponse deleteRouteFromRoutingTableWithHttpInfo(
- @javax.annotation.Nonnull UUID organizationId,
- @javax.annotation.Nonnull UUID areaId,
+ public ApiResponse createNetworkWithHttpInfo(
+ @javax.annotation.Nonnull UUID projectId,
@javax.annotation.Nonnull String region,
- @javax.annotation.Nonnull UUID routingTableId,
- @javax.annotation.Nonnull UUID routeId)
+ @javax.annotation.Nonnull CreateNetworkPayload createNetworkPayload)
throws ApiException {
okhttp3.Call localVarCall =
- deleteRouteFromRoutingTableValidateBeforeCall(
- organizationId, areaId, region, routingTableId, routeId, null);
- return localVarApiClient.execute(localVarCall);
+ createNetworkValidateBeforeCall(projectId, region, createNetworkPayload, null);
+ Type localVarReturnType = new TypeToken() {}.getType();
+ return localVarApiClient.execute(localVarCall, localVarReturnType);
}
/**
- * Delete a route in a routing table. (asynchronously) Delete a route in an existing routing
- * table.
+ * Create new network. (asynchronously) Create a new network in a project.
+ * `nameservers` will be filled from `defaultNameservers` of the respective
+ * area if not specified. If the project has `internetAccess` enabled and this is the
+ * first network in the project this might incur cost.
*
- * @param organizationId The identifier (ID) of a STACKIT Organization. (required)
- * @param areaId The identifier (ID) of a STACKIT Network Area. (required)
+ * @param projectId The identifier (ID) of a STACKIT Project. (required)
* @param region The STACKIT Region of the resources. (required)
- * @param routingTableId The identifier (ID) of a STACKIT Routing Table. (required)
- * @param routeId The identifier (ID) of a STACKIT Route. (required)
+ * @param createNetworkPayload Request a network creation. (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
@@ -1314,37 +1387,34 @@ public ApiResponse deleteRouteFromRoutingTableWithHttpInfo(
*
* Response Details
* | Status Code | Description | Response Headers |
- * | 204 | Delete request for the route has been accepted. | - |
+ * | 202 | Network create has been accepted. | - |
* | 400 | A bad request. | - |
* | 401 | A request which was not authorized. | - |
* | 403 | A request which was forbidden. | - |
* | 404 | The object was not found. | - |
+ * | 409 | A conflict has occurred. | - |
* | 500 | Internal Server Error, returns a 500 if something is broken on IaaS API Side. | - |
*
*/
- public okhttp3.Call deleteRouteFromRoutingTableAsync(
- @javax.annotation.Nonnull UUID organizationId,
- @javax.annotation.Nonnull UUID areaId,
+ public okhttp3.Call createNetworkAsync(
+ @javax.annotation.Nonnull UUID projectId,
@javax.annotation.Nonnull String region,
- @javax.annotation.Nonnull UUID routingTableId,
- @javax.annotation.Nonnull UUID routeId,
- final ApiCallback _callback)
+ @javax.annotation.Nonnull CreateNetworkPayload createNetworkPayload,
+ final ApiCallback _callback)
throws ApiException {
okhttp3.Call localVarCall =
- deleteRouteFromRoutingTableValidateBeforeCall(
- organizationId, areaId, region, routingTableId, routeId, _callback);
- localVarApiClient.executeAsync(localVarCall, _callback);
+ createNetworkValidateBeforeCall(projectId, region, createNetworkPayload, _callback);
+ Type localVarReturnType = new TypeToken() {}.getType();
+ localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
/**
- * Build call for deleteRoutingTableFromArea
+ * Build call for createVPC
*
- * @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 routingTableId The identifier (ID) of a STACKIT Routing Table. (required)
+ * @param projectId The identifier (ID) of a STACKIT Project. (required)
+ * @param createVPCPayload Request a VPC creation. (required)
* @param _callback Callback for upload/download progress
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
@@ -1352,7 +1422,7 @@ public okhttp3.Call deleteRouteFromRoutingTableAsync(
*
* Response Details
* | Status Code | Description | Response Headers |
- * | 204 | Delete request for the routing table has been accepted. | - |
+ * | 201 | VPC has been successfully created. | - |
* | 400 | A bad request. | - |
* | 401 | A request which was not authorized. | - |
* | 403 | A request which was forbidden. | - |
@@ -1360,11 +1430,9 @@ public okhttp3.Call deleteRouteFromRoutingTableAsync(
* | 500 | Internal Server Error, returns a 500 if something is broken on IaaS API Side. | - |
*
*/
- public okhttp3.Call deleteRoutingTableFromAreaCall(
- @javax.annotation.Nonnull UUID organizationId,
- @javax.annotation.Nonnull UUID areaId,
- @javax.annotation.Nonnull String region,
- @javax.annotation.Nonnull UUID routingTableId,
+ public okhttp3.Call createVPCCall(
+ @javax.annotation.Nonnull UUID projectId,
+ @javax.annotation.Nonnull CreateVPCPayload createVPCPayload,
final ApiCallback _callback)
throws ApiException {
String basePath = null;
@@ -1380,23 +1448,14 @@ public okhttp3.Call deleteRoutingTableFromAreaCall(
basePath = null;
}
- Object localVarPostBody = null;
+ Object localVarPostBody = createVPCPayload;
// create path and map variables
String localVarPath =
- "/v2alpha1/organizations/{organizationId}/network-areas/{areaId}/regions/{region}/routing-tables/{routingTableId}"
+ "/v2alpha1/projects/{projectId}/vpcs"
.replace(
- "{" + "organizationId" + "}",
- localVarApiClient.escapeString(organizationId.toString()))
- .replace(
- "{" + "areaId" + "}",
- localVarApiClient.escapeString(areaId.toString()))
- .replace(
- "{" + "region" + "}",
- localVarApiClient.escapeString(region.toString()))
- .replace(
- "{" + "routingTableId" + "}",
- localVarApiClient.escapeString(routingTableId.toString()));
+ "{" + "projectId" + "}",
+ localVarApiClient.escapeString(projectId.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
@@ -1410,7 +1469,7 @@ public okhttp3.Call deleteRoutingTableFromAreaCall(
localVarHeaderParams.put("Accept", localVarAccept);
}
- final String[] localVarContentTypes = {};
+ final String[] localVarContentTypes = {"application/json"};
final String localVarContentType =
localVarApiClient.selectHeaderContentType(localVarContentTypes);
if (localVarContentType != null) {
@@ -1421,7 +1480,7 @@ public okhttp3.Call deleteRoutingTableFromAreaCall(
return localVarApiClient.buildCall(
basePath,
localVarPath,
- "DELETE",
+ "POST",
localVarQueryParams,
localVarCollectionQueryParams,
localVarPostBody,
@@ -1433,55 +1492,39 @@ public okhttp3.Call deleteRoutingTableFromAreaCall(
}
@SuppressWarnings("rawtypes")
- private okhttp3.Call deleteRoutingTableFromAreaValidateBeforeCall(
- @javax.annotation.Nonnull UUID organizationId,
- @javax.annotation.Nonnull UUID areaId,
- @javax.annotation.Nonnull String region,
- @javax.annotation.Nonnull UUID routingTableId,
+ private okhttp3.Call createVPCValidateBeforeCall(
+ @javax.annotation.Nonnull UUID projectId,
+ @javax.annotation.Nonnull CreateVPCPayload createVPCPayload,
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 deleteRoutingTableFromArea(Async)");
- }
-
- // verify the required parameter 'areaId' is set
- if (areaId == null) {
- throw new ApiException(
- "Missing the required parameter 'areaId' when calling deleteRoutingTableFromArea(Async)");
- }
-
- // verify the required parameter 'region' is set
- if (region == null) {
+ // verify the required parameter 'projectId' is set
+ if (projectId == null) {
throw new ApiException(
- "Missing the required parameter 'region' when calling deleteRoutingTableFromArea(Async)");
+ "Missing the required parameter 'projectId' when calling createVPC(Async)");
}
- // verify the required parameter 'routingTableId' is set
- if (routingTableId == null) {
+ // verify the required parameter 'createVPCPayload' is set
+ if (createVPCPayload == null) {
throw new ApiException(
- "Missing the required parameter 'routingTableId' when calling deleteRoutingTableFromArea(Async)");
+ "Missing the required parameter 'createVPCPayload' when calling createVPC(Async)");
}
- return deleteRoutingTableFromAreaCall(
- organizationId, areaId, region, routingTableId, _callback);
+ return createVPCCall(projectId, createVPCPayload, _callback);
}
/**
- * Delete a routing table. Delete a routing table of a network area.
+ * Create a new VPC. Create a new VPC in a project.
*
- * @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 routingTableId The identifier (ID) of a STACKIT Routing Table. (required)
+ * @param projectId The identifier (ID) of a STACKIT Project. (required)
+ * @param createVPCPayload Request a VPC creation. (required)
+ * @return VPC
* @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 |
- * | 204 | Delete request for the routing table has been accepted. | - |
+ * | 201 | VPC has been successfully created. | - |
* | 400 | A bad request. | - |
* | 401 | A request which was not authorized. | - |
* | 403 | A request which was forbidden. | - |
@@ -1489,30 +1532,27 @@ private okhttp3.Call deleteRoutingTableFromAreaValidateBeforeCall(
* | 500 | Internal Server Error, returns a 500 if something is broken on IaaS API Side. | - |
*
*/
- public void deleteRoutingTableFromArea(
- @javax.annotation.Nonnull UUID organizationId,
- @javax.annotation.Nonnull UUID areaId,
- @javax.annotation.Nonnull String region,
- @javax.annotation.Nonnull UUID routingTableId)
+ public VPC createVPC(
+ @javax.annotation.Nonnull UUID projectId,
+ @javax.annotation.Nonnull CreateVPCPayload createVPCPayload)
throws ApiException {
- deleteRoutingTableFromAreaWithHttpInfo(organizationId, areaId, region, routingTableId);
+ ApiResponse localVarResp = createVPCWithHttpInfo(projectId, createVPCPayload);
+ return localVarResp.getData();
}
/**
- * Delete a routing table. Delete a routing table of a network area.
+ * Create a new VPC. Create a new VPC in a project.
*
- * @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 routingTableId The identifier (ID) of a STACKIT Routing Table. (required)
- * @return ApiResponse<Void>
+ * @param projectId The identifier (ID) of a STACKIT Project. (required)
+ * @param createVPCPayload Request a VPC creation. (required)
+ * @return ApiResponse<VPC>
* @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 |
- * | 204 | Delete request for the routing table has been accepted. | - |
+ * | 201 | VPC has been successfully created. | - |
* | 400 | A bad request. | - |
* | 401 | A request which was not authorized. | - |
* | 403 | A request which was forbidden. | - |
@@ -1520,25 +1560,20 @@ public void deleteRoutingTableFromArea(
* | 500 | Internal Server Error, returns a 500 if something is broken on IaaS API Side. | - |
*
*/
- public ApiResponse deleteRoutingTableFromAreaWithHttpInfo(
- @javax.annotation.Nonnull UUID organizationId,
- @javax.annotation.Nonnull UUID areaId,
- @javax.annotation.Nonnull String region,
- @javax.annotation.Nonnull UUID routingTableId)
+ public ApiResponse createVPCWithHttpInfo(
+ @javax.annotation.Nonnull UUID projectId,
+ @javax.annotation.Nonnull CreateVPCPayload createVPCPayload)
throws ApiException {
- okhttp3.Call localVarCall =
- deleteRoutingTableFromAreaValidateBeforeCall(
- organizationId, areaId, region, routingTableId, null);
- return localVarApiClient.execute(localVarCall);
+ okhttp3.Call localVarCall = createVPCValidateBeforeCall(projectId, createVPCPayload, null);
+ Type localVarReturnType = new TypeToken() {}.getType();
+ return localVarApiClient.execute(localVarCall, localVarReturnType);
}
/**
- * Delete a routing table. (asynchronously) Delete a routing table of a network area.
+ * Create a new VPC. (asynchronously) Create a new VPC in a project.
*
- * @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 routingTableId The identifier (ID) of a STACKIT Routing Table. (required)
+ * @param projectId The identifier (ID) of a STACKIT Project. (required)
+ * @param createVPCPayload Request a VPC creation. (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
@@ -1547,7 +1582,7 @@ public ApiResponse deleteRoutingTableFromAreaWithHttpInfo(
*
* Response Details
* | Status Code | Description | Response Headers |
- * | 204 | Delete request for the routing table has been accepted. | - |
+ * | 201 | VPC has been successfully created. | - |
* | 400 | A bad request. | - |
* | 401 | A request which was not authorized. | - |
* | 403 | A request which was forbidden. | - |
@@ -1555,27 +1590,27 @@ public ApiResponse deleteRoutingTableFromAreaWithHttpInfo(
* | 500 | Internal Server Error, returns a 500 if something is broken on IaaS API Side. | - |
*
*/
- public okhttp3.Call deleteRoutingTableFromAreaAsync(
- @javax.annotation.Nonnull UUID organizationId,
- @javax.annotation.Nonnull UUID areaId,
- @javax.annotation.Nonnull String region,
- @javax.annotation.Nonnull UUID routingTableId,
- final ApiCallback _callback)
+ public okhttp3.Call createVPCAsync(
+ @javax.annotation.Nonnull UUID projectId,
+ @javax.annotation.Nonnull CreateVPCPayload createVPCPayload,
+ final ApiCallback _callback)
throws ApiException {
okhttp3.Call localVarCall =
- deleteRoutingTableFromAreaValidateBeforeCall(
- organizationId, areaId, region, routingTableId, _callback);
- localVarApiClient.executeAsync(localVarCall, _callback);
+ createVPCValidateBeforeCall(projectId, createVPCPayload, _callback);
+ Type localVarReturnType = new TypeToken() {}.getType();
+ localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
/**
- * Build call for getNetwork
+ * Build call for createVPCNetworkRange
*
* @param projectId The identifier (ID) of a STACKIT Project. (required)
+ * @param vpcId The unique identifier (ID) of the target STACKIT VPC in the request path.
+ * (required)
* @param region The STACKIT Region of the resources. (required)
- * @param networkId The identifier (ID) of a STACKIT Network. (required)
+ * @param body Request to add an additional network range to a VPC. (required)
* @param _callback Callback for upload/download progress
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
@@ -1583,18 +1618,21 @@ public okhttp3.Call deleteRoutingTableFromAreaAsync(
*
* Response Details
* | Status Code | Description | Response Headers |
- * | 200 | Show network details. | - |
+ * | 202 | Create request for a network range has been accepted. | - |
* | 400 | A bad request. | - |
* | 401 | A request which was not authorized. | - |
* | 403 | A request which was forbidden. | - |
* | 404 | The object was not found. | - |
+ * | 409 | A conflict has occurred. | - |
+ * | 424 | The region of the vpc is not enabled. | - |
* | 500 | Internal Server Error, returns a 500 if something is broken on IaaS API Side. | - |
*
*/
- public okhttp3.Call getNetworkCall(
+ public okhttp3.Call createVPCNetworkRangeCall(
@javax.annotation.Nonnull UUID projectId,
+ @javax.annotation.Nonnull UUID vpcId,
@javax.annotation.Nonnull String region,
- @javax.annotation.Nonnull UUID networkId,
+ @javax.annotation.Nonnull NetworkRangeIPv4Request body,
final ApiCallback _callback)
throws ApiException {
String basePath = null;
@@ -1610,20 +1648,20 @@ public okhttp3.Call getNetworkCall(
basePath = null;
}
- Object localVarPostBody = null;
+ Object localVarPostBody = body;
// create path and map variables
String localVarPath =
- "/v2alpha1/projects/{projectId}/regions/{region}/networks/{networkId}"
+ "/v2alpha1/projects/{projectId}/vpcs/{vpcId}/regions/{region}/network-ranges"
.replace(
"{" + "projectId" + "}",
localVarApiClient.escapeString(projectId.toString()))
.replace(
- "{" + "region" + "}",
- localVarApiClient.escapeString(region.toString()))
+ "{" + "vpcId" + "}",
+ localVarApiClient.escapeString(vpcId.toString()))
.replace(
- "{" + "networkId" + "}",
- localVarApiClient.escapeString(networkId.toString()));
+ "{" + "region" + "}",
+ localVarApiClient.escapeString(region.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
@@ -1637,7 +1675,7 @@ public okhttp3.Call getNetworkCall(
localVarHeaderParams.put("Accept", localVarAccept);
}
- final String[] localVarContentTypes = {};
+ final String[] localVarContentTypes = {"application/json"};
final String localVarContentType =
localVarApiClient.selectHeaderContentType(localVarContentTypes);
if (localVarContentType != null) {
@@ -1648,7 +1686,7 @@ public okhttp3.Call getNetworkCall(
return localVarApiClient.buildCall(
basePath,
localVarPath,
- "GET",
+ "POST",
localVarQueryParams,
localVarCollectionQueryParams,
localVarPostBody,
@@ -1660,101 +1698,124 @@ public okhttp3.Call getNetworkCall(
}
@SuppressWarnings("rawtypes")
- private okhttp3.Call getNetworkValidateBeforeCall(
+ private okhttp3.Call createVPCNetworkRangeValidateBeforeCall(
@javax.annotation.Nonnull UUID projectId,
+ @javax.annotation.Nonnull UUID vpcId,
@javax.annotation.Nonnull String region,
- @javax.annotation.Nonnull UUID networkId,
+ @javax.annotation.Nonnull NetworkRangeIPv4Request body,
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 getNetwork(Async)");
+ "Missing the required parameter 'projectId' when calling createVPCNetworkRange(Async)");
+ }
+
+ // verify the required parameter 'vpcId' is set
+ if (vpcId == null) {
+ throw new ApiException(
+ "Missing the required parameter 'vpcId' when calling createVPCNetworkRange(Async)");
}
// verify the required parameter 'region' is set
if (region == null) {
throw new ApiException(
- "Missing the required parameter 'region' when calling getNetwork(Async)");
+ "Missing the required parameter 'region' when calling createVPCNetworkRange(Async)");
}
- // verify the required parameter 'networkId' is set
- if (networkId == null) {
+ // verify the required parameter 'body' is set
+ if (body == null) {
throw new ApiException(
- "Missing the required parameter 'networkId' when calling getNetwork(Async)");
+ "Missing the required parameter 'body' when calling createVPCNetworkRange(Async)");
}
- return getNetworkCall(projectId, region, networkId, _callback);
+ return createVPCNetworkRangeCall(projectId, vpcId, region, body, _callback);
}
/**
- * Get network details. Get details about a network of a project.
+ * Create new regional network ranges in a VPC. Create a new network range in an existing VPC
+ * for this region.
*
* @param projectId The identifier (ID) of a STACKIT Project. (required)
+ * @param vpcId The unique identifier (ID) of the target STACKIT VPC in the request path.
+ * (required)
* @param region The STACKIT Region of the resources. (required)
- * @param networkId The identifier (ID) of a STACKIT Network. (required)
- * @return Network
+ * @param body Request to add an additional network range to a VPC. (required)
+ * @return VPCNetworkRange
* @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 | Show network details. | - |
+ * | 202 | Create request for a network range has been accepted. | - |
* | 400 | A bad request. | - |
* | 401 | A request which was not authorized. | - |
* | 403 | A request which was forbidden. | - |
* | 404 | The object was not found. | - |
+ * | 409 | A conflict has occurred. | - |
+ * | 424 | The region of the vpc is not enabled. | - |
* | 500 | Internal Server Error, returns a 500 if something is broken on IaaS API Side. | - |
*
*/
- public Network getNetwork(
+ public VPCNetworkRange createVPCNetworkRange(
@javax.annotation.Nonnull UUID projectId,
+ @javax.annotation.Nonnull UUID vpcId,
@javax.annotation.Nonnull String region,
- @javax.annotation.Nonnull UUID networkId)
+ @javax.annotation.Nonnull NetworkRangeIPv4Request body)
throws ApiException {
- ApiResponse localVarResp = getNetworkWithHttpInfo(projectId, region, networkId);
+ ApiResponse localVarResp =
+ createVPCNetworkRangeWithHttpInfo(projectId, vpcId, region, body);
return localVarResp.getData();
}
/**
- * Get network details. Get details about a network of a project.
+ * Create new regional network ranges in a VPC. Create a new network range in an existing VPC
+ * for this region.
*
* @param projectId The identifier (ID) of a STACKIT Project. (required)
+ * @param vpcId The unique identifier (ID) of the target STACKIT VPC in the request path.
+ * (required)
* @param region The STACKIT Region of the resources. (required)
- * @param networkId The identifier (ID) of a STACKIT Network. (required)
- * @return ApiResponse<Network>
+ * @param body Request to add an additional network range to a VPC. (required)
+ * @return ApiResponse<VPCNetworkRange>
* @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 | Show network details. | - |
+ * | 202 | Create request for a network range has been accepted. | - |
* | 400 | A bad request. | - |
* | 401 | A request which was not authorized. | - |
* | 403 | A request which was forbidden. | - |
* | 404 | The object was not found. | - |
+ * | 409 | A conflict has occurred. | - |
+ * | 424 | The region of the vpc is not enabled. | - |
* | 500 | Internal Server Error, returns a 500 if something is broken on IaaS API Side. | - |
*
*/
- public ApiResponse getNetworkWithHttpInfo(
+ public ApiResponse createVPCNetworkRangeWithHttpInfo(
@javax.annotation.Nonnull UUID projectId,
+ @javax.annotation.Nonnull UUID vpcId,
@javax.annotation.Nonnull String region,
- @javax.annotation.Nonnull UUID networkId)
+ @javax.annotation.Nonnull NetworkRangeIPv4Request body)
throws ApiException {
okhttp3.Call localVarCall =
- getNetworkValidateBeforeCall(projectId, region, networkId, null);
- Type localVarReturnType = new TypeToken() {}.getType();
+ createVPCNetworkRangeValidateBeforeCall(projectId, vpcId, region, body, null);
+ Type localVarReturnType = new TypeToken() {}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
/**
- * Get network details. (asynchronously) Get details about a network of a project.
+ * Create new regional network ranges in a VPC. (asynchronously) Create a new network range in
+ * an existing VPC for this region.
*
* @param projectId The identifier (ID) of a STACKIT Project. (required)
+ * @param vpcId The unique identifier (ID) of the target STACKIT VPC in the request path.
+ * (required)
* @param region The STACKIT Region of the resources. (required)
- * @param networkId The identifier (ID) of a STACKIT Network. (required)
+ * @param body Request to add an additional network range to a VPC. (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
@@ -1763,36 +1824,39 @@ public ApiResponse getNetworkWithHttpInfo(
*
* Response Details
* | Status Code | Description | Response Headers |
- * | 200 | Show network details. | - |
+ * | 202 | Create request for a network range has been accepted. | - |
* | 400 | A bad request. | - |
* | 401 | A request which was not authorized. | - |
* | 403 | A request which was forbidden. | - |
* | 404 | The object was not found. | - |
+ * | 409 | A conflict has occurred. | - |
+ * | 424 | The region of the vpc is not enabled. | - |
* | 500 | Internal Server Error, returns a 500 if something is broken on IaaS API Side. | - |
*
*/
- public okhttp3.Call getNetworkAsync(
+ public okhttp3.Call createVPCNetworkRangeAsync(
@javax.annotation.Nonnull UUID projectId,
+ @javax.annotation.Nonnull UUID vpcId,
@javax.annotation.Nonnull String region,
- @javax.annotation.Nonnull UUID networkId,
- final ApiCallback _callback)
+ @javax.annotation.Nonnull NetworkRangeIPv4Request body,
+ final ApiCallback _callback)
throws ApiException {
okhttp3.Call localVarCall =
- getNetworkValidateBeforeCall(projectId, region, networkId, _callback);
- Type localVarReturnType = new TypeToken() {}.getType();
+ createVPCNetworkRangeValidateBeforeCall(projectId, vpcId, region, body, _callback);
+ Type localVarReturnType = new TypeToken() {}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
/**
- * Build call for getRouteOfRoutingTable
+ * Build call for createVPCRegion
*
- * @param organizationId The identifier (ID) of a STACKIT Organization. (required)
- * @param areaId The identifier (ID) of a STACKIT Network Area. (required)
+ * @param projectId The identifier (ID) of a STACKIT Project. (required)
+ * @param vpcId The unique identifier (ID) of the target STACKIT VPC in the request path.
+ * (required)
* @param region The STACKIT Region of the resources. (required)
- * @param routingTableId The identifier (ID) of a STACKIT Routing Table. (required)
- * @param routeId The identifier (ID) of a STACKIT Route. (required)
+ * @param createVPCRegionPayload Request to add a new regional VPC configuration. (required)
* @param _callback Callback for upload/download progress
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
@@ -1800,20 +1864,21 @@ public okhttp3.Call getNetworkAsync(
*
* Response Details
* | Status Code | Description | Response Headers |
- * | 200 | Show the details of a route in a routing table. | - |
+ * | 202 | Configure VPC in a new region was accepted. | - |
* | 400 | A bad request. | - |
* | 401 | A request which was not authorized. | - |
* | 403 | A request which was forbidden. | - |
* | 404 | The object was not found. | - |
+ * | 409 | A conflict has occurred. | - |
+ * | 424 | The region of the vpc is not enabled. | - |
* | 500 | Internal Server Error, returns a 500 if something is broken on IaaS API Side. | - |
*
*/
- public okhttp3.Call getRouteOfRoutingTableCall(
- @javax.annotation.Nonnull UUID organizationId,
- @javax.annotation.Nonnull UUID areaId,
+ public okhttp3.Call createVPCRegionCall(
+ @javax.annotation.Nonnull UUID projectId,
+ @javax.annotation.Nonnull UUID vpcId,
@javax.annotation.Nonnull String region,
- @javax.annotation.Nonnull UUID routingTableId,
- @javax.annotation.Nonnull UUID routeId,
+ @javax.annotation.Nonnull CreateVPCRegionPayload createVPCRegionPayload,
final ApiCallback _callback)
throws ApiException {
String basePath = null;
@@ -1829,26 +1894,20 @@ public okhttp3.Call getRouteOfRoutingTableCall(
basePath = null;
}
- Object localVarPostBody = null;
+ Object localVarPostBody = createVPCRegionPayload;
// create path and map variables
String localVarPath =
- "/v2alpha1/organizations/{organizationId}/network-areas/{areaId}/regions/{region}/routing-tables/{routingTableId}/routes/{routeId}"
+ "/v2alpha1/projects/{projectId}/vpcs/{vpcId}/regions/{region}"
.replace(
- "{" + "organizationId" + "}",
- localVarApiClient.escapeString(organizationId.toString()))
+ "{" + "projectId" + "}",
+ localVarApiClient.escapeString(projectId.toString()))
.replace(
- "{" + "areaId" + "}",
- localVarApiClient.escapeString(areaId.toString()))
+ "{" + "vpcId" + "}",
+ localVarApiClient.escapeString(vpcId.toString()))
.replace(
"{" + "region" + "}",
- localVarApiClient.escapeString(region.toString()))
- .replace(
- "{" + "routingTableId" + "}",
- localVarApiClient.escapeString(routingTableId.toString()))
- .replace(
- "{" + "routeId" + "}",
- localVarApiClient.escapeString(routeId.toString()));
+ localVarApiClient.escapeString(region.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
@@ -1862,7 +1921,7 @@ public okhttp3.Call getRouteOfRoutingTableCall(
localVarHeaderParams.put("Accept", localVarAccept);
}
- final String[] localVarContentTypes = {};
+ final String[] localVarContentTypes = {"application/json"};
final String localVarContentType =
localVarApiClient.selectHeaderContentType(localVarContentTypes);
if (localVarContentType != null) {
@@ -1873,7 +1932,7 @@ public okhttp3.Call getRouteOfRoutingTableCall(
return localVarApiClient.buildCall(
basePath,
localVarPath,
- "GET",
+ "PUT",
localVarQueryParams,
localVarCollectionQueryParams,
localVarPostBody,
@@ -1885,132 +1944,123 @@ public okhttp3.Call getRouteOfRoutingTableCall(
}
@SuppressWarnings("rawtypes")
- private okhttp3.Call getRouteOfRoutingTableValidateBeforeCall(
- @javax.annotation.Nonnull UUID organizationId,
- @javax.annotation.Nonnull UUID areaId,
+ private okhttp3.Call createVPCRegionValidateBeforeCall(
+ @javax.annotation.Nonnull UUID projectId,
+ @javax.annotation.Nonnull UUID vpcId,
@javax.annotation.Nonnull String region,
- @javax.annotation.Nonnull UUID routingTableId,
- @javax.annotation.Nonnull UUID routeId,
+ @javax.annotation.Nonnull CreateVPCRegionPayload createVPCRegionPayload,
final ApiCallback _callback)
throws ApiException {
- // verify the required parameter 'organizationId' is set
- if (organizationId == null) {
+ // verify the required parameter 'projectId' is set
+ if (projectId == null) {
throw new ApiException(
- "Missing the required parameter 'organizationId' when calling getRouteOfRoutingTable(Async)");
+ "Missing the required parameter 'projectId' when calling createVPCRegion(Async)");
}
- // verify the required parameter 'areaId' is set
- if (areaId == null) {
+ // verify the required parameter 'vpcId' is set
+ if (vpcId == null) {
throw new ApiException(
- "Missing the required parameter 'areaId' when calling getRouteOfRoutingTable(Async)");
+ "Missing the required parameter 'vpcId' when calling createVPCRegion(Async)");
}
// verify the required parameter 'region' is set
if (region == null) {
throw new ApiException(
- "Missing the required parameter 'region' when calling getRouteOfRoutingTable(Async)");
- }
-
- // verify the required parameter 'routingTableId' is set
- if (routingTableId == null) {
- throw new ApiException(
- "Missing the required parameter 'routingTableId' when calling getRouteOfRoutingTable(Async)");
+ "Missing the required parameter 'region' when calling createVPCRegion(Async)");
}
- // verify the required parameter 'routeId' is set
- if (routeId == null) {
+ // verify the required parameter 'createVPCRegionPayload' is set
+ if (createVPCRegionPayload == null) {
throw new ApiException(
- "Missing the required parameter 'routeId' when calling getRouteOfRoutingTable(Async)");
+ "Missing the required parameter 'createVPCRegionPayload' when calling createVPCRegion(Async)");
}
- return getRouteOfRoutingTableCall(
- organizationId, areaId, region, routingTableId, routeId, _callback);
+ return createVPCRegionCall(projectId, vpcId, region, createVPCRegionPayload, _callback);
}
/**
- * Get details about a route of a routing table. Get details about a route defined in a routing
- * table.
+ * Create the regional configuration of a VPC. Create the configuration of a region for a VPC.
*
- * @param organizationId The identifier (ID) of a STACKIT Organization. (required)
- * @param areaId The identifier (ID) of a STACKIT Network Area. (required)
+ * @param projectId The identifier (ID) of a STACKIT Project. (required)
+ * @param vpcId The unique identifier (ID) of the target STACKIT VPC in the request path.
+ * (required)
* @param region The STACKIT Region of the resources. (required)
- * @param routingTableId The identifier (ID) of a STACKIT Routing Table. (required)
- * @param routeId The identifier (ID) of a STACKIT Route. (required)
- * @return Route
+ * @param createVPCRegionPayload Request to add a new regional VPC configuration. (required)
+ * @return RegionalVPC
* @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 | Show the details of a route in a routing table. | - |
+ * | 202 | Configure VPC in a new region was accepted. | - |
* | 400 | A bad request. | - |
* | 401 | A request which was not authorized. | - |
* | 403 | A request which was forbidden. | - |
* | 404 | The object was not found. | - |
+ * | 409 | A conflict has occurred. | - |
+ * | 424 | The region of the vpc is not enabled. | - |
* | 500 | Internal Server Error, returns a 500 if something is broken on IaaS API Side. | - |
*
*/
- public Route getRouteOfRoutingTable(
- @javax.annotation.Nonnull UUID organizationId,
- @javax.annotation.Nonnull UUID areaId,
+ public RegionalVPC createVPCRegion(
+ @javax.annotation.Nonnull UUID projectId,
+ @javax.annotation.Nonnull UUID vpcId,
@javax.annotation.Nonnull String region,
- @javax.annotation.Nonnull UUID routingTableId,
- @javax.annotation.Nonnull UUID routeId)
+ @javax.annotation.Nonnull CreateVPCRegionPayload createVPCRegionPayload)
throws ApiException {
- ApiResponse localVarResp =
- getRouteOfRoutingTableWithHttpInfo(
- organizationId, areaId, region, routingTableId, routeId);
+ ApiResponse localVarResp =
+ createVPCRegionWithHttpInfo(projectId, vpcId, region, createVPCRegionPayload);
return localVarResp.getData();
}
/**
- * Get details about a route of a routing table. Get details about a route defined in a routing
- * table.
+ * Create the regional configuration of a VPC. Create the configuration of a region for a VPC.
*
- * @param organizationId The identifier (ID) of a STACKIT Organization. (required)
- * @param areaId The identifier (ID) of a STACKIT Network Area. (required)
+ * @param projectId The identifier (ID) of a STACKIT Project. (required)
+ * @param vpcId The unique identifier (ID) of the target STACKIT VPC in the request path.
+ * (required)
* @param region The STACKIT Region of the resources. (required)
- * @param routingTableId The identifier (ID) of a STACKIT Routing Table. (required)
- * @param routeId The identifier (ID) of a STACKIT Route. (required)
- * @return ApiResponse<Route>
+ * @param createVPCRegionPayload Request to add a new regional VPC configuration. (required)
+ * @return ApiResponse<RegionalVPC>
* @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 | Show the details of a route in a routing table. | - |
+ * | 202 | Configure VPC in a new region was accepted. | - |
* | 400 | A bad request. | - |
* | 401 | A request which was not authorized. | - |
* | 403 | A request which was forbidden. | - |
* | 404 | The object was not found. | - |
+ * | 409 | A conflict has occurred. | - |
+ * | 424 | The region of the vpc is not enabled. | - |
* | 500 | Internal Server Error, returns a 500 if something is broken on IaaS API Side. | - |
*
*/
- public ApiResponse getRouteOfRoutingTableWithHttpInfo(
- @javax.annotation.Nonnull UUID organizationId,
- @javax.annotation.Nonnull UUID areaId,
+ public ApiResponse createVPCRegionWithHttpInfo(
+ @javax.annotation.Nonnull UUID projectId,
+ @javax.annotation.Nonnull UUID vpcId,
@javax.annotation.Nonnull String region,
- @javax.annotation.Nonnull UUID routingTableId,
- @javax.annotation.Nonnull UUID routeId)
+ @javax.annotation.Nonnull CreateVPCRegionPayload createVPCRegionPayload)
throws ApiException {
okhttp3.Call localVarCall =
- getRouteOfRoutingTableValidateBeforeCall(
- organizationId, areaId, region, routingTableId, routeId, null);
- Type localVarReturnType = new TypeToken() {}.getType();
+ createVPCRegionValidateBeforeCall(
+ projectId, vpcId, region, createVPCRegionPayload, null);
+ Type localVarReturnType = new TypeToken() {}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
/**
- * Get details about a route of a routing table. (asynchronously) Get details about a route
- * defined in a routing table.
+ * Create the regional configuration of a VPC. (asynchronously) Create the configuration of a
+ * region for a VPC.
*
- * @param organizationId The identifier (ID) of a STACKIT Organization. (required)
- * @param areaId The identifier (ID) of a STACKIT Network Area. (required)
+ * @param projectId The identifier (ID) of a STACKIT Project. (required)
+ * @param vpcId The unique identifier (ID) of the target STACKIT VPC in the request path.
+ * (required)
* @param region The STACKIT Region of the resources. (required)
- * @param routingTableId The identifier (ID) of a STACKIT Routing Table. (required)
- * @param routeId The identifier (ID) of a STACKIT Route. (required)
+ * @param createVPCRegionPayload Request to add a new regional VPC configuration. (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
@@ -2019,38 +2069,38 @@ public ApiResponse getRouteOfRoutingTableWithHttpInfo(
*
* Response Details
* | Status Code | Description | Response Headers |
- * | 200 | Show the details of a route in a routing table. | - |
+ * | 202 | Configure VPC in a new region was accepted. | - |
* | 400 | A bad request. | - |
* | 401 | A request which was not authorized. | - |
* | 403 | A request which was forbidden. | - |
* | 404 | The object was not found. | - |
+ * | 409 | A conflict has occurred. | - |
+ * | 424 | The region of the vpc is not enabled. | - |
* | 500 | Internal Server Error, returns a 500 if something is broken on IaaS API Side. | - |
*
*/
- public okhttp3.Call getRouteOfRoutingTableAsync(
- @javax.annotation.Nonnull UUID organizationId,
- @javax.annotation.Nonnull UUID areaId,
+ public okhttp3.Call createVPCRegionAsync(
+ @javax.annotation.Nonnull UUID projectId,
+ @javax.annotation.Nonnull UUID vpcId,
@javax.annotation.Nonnull String region,
- @javax.annotation.Nonnull UUID routingTableId,
- @javax.annotation.Nonnull UUID routeId,
- final ApiCallback _callback)
+ @javax.annotation.Nonnull CreateVPCRegionPayload createVPCRegionPayload,
+ final ApiCallback _callback)
throws ApiException {
okhttp3.Call localVarCall =
- getRouteOfRoutingTableValidateBeforeCall(
- organizationId, areaId, region, routingTableId, routeId, _callback);
- Type localVarReturnType = new TypeToken() {}.getType();
+ createVPCRegionValidateBeforeCall(
+ projectId, vpcId, region, createVPCRegionPayload, _callback);
+ Type localVarReturnType = new TypeToken() {}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
/**
- * Build call for getRoutingTableOfArea
+ * Build call for deleteNetwork
*
- * @param organizationId The identifier (ID) of a STACKIT Organization. (required)
- * @param areaId The identifier (ID) of a STACKIT Network Area. (required)
+ * @param projectId The identifier (ID) of a STACKIT Project. (required)
* @param region The STACKIT Region of the resources. (required)
- * @param routingTableId The identifier (ID) of a STACKIT Routing Table. (required)
+ * @param networkId The identifier (ID) of a STACKIT Network. (required)
* @param _callback Callback for upload/download progress
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
@@ -2058,19 +2108,19 @@ public okhttp3.Call getRouteOfRoutingTableAsync(
*
* Response Details
* | Status Code | Description | Response Headers |
- * | 200 | Show routing table details. | - |
+ * | 202 | Delete request for network has been accepted. | - |
* | 400 | A bad request. | - |
* | 401 | A request which was not authorized. | - |
* | 403 | A request which was forbidden. | - |
* | 404 | The object was not found. | - |
+ * | 409 | A conflict has occurred. | - |
* | 500 | Internal Server Error, returns a 500 if something is broken on IaaS API Side. | - |
*
*/
- public okhttp3.Call getRoutingTableOfAreaCall(
- @javax.annotation.Nonnull UUID organizationId,
- @javax.annotation.Nonnull UUID areaId,
+ public okhttp3.Call deleteNetworkCall(
+ @javax.annotation.Nonnull UUID projectId,
@javax.annotation.Nonnull String region,
- @javax.annotation.Nonnull UUID routingTableId,
+ @javax.annotation.Nonnull UUID networkId,
final ApiCallback _callback)
throws ApiException {
String basePath = null;
@@ -2090,19 +2140,16 @@ public okhttp3.Call getRoutingTableOfAreaCall(
// create path and map variables
String localVarPath =
- "/v2alpha1/organizations/{organizationId}/network-areas/{areaId}/regions/{region}/routing-tables/{routingTableId}"
- .replace(
- "{" + "organizationId" + "}",
- localVarApiClient.escapeString(organizationId.toString()))
+ "/v2alpha1/projects/{projectId}/regions/{region}/networks/{networkId}"
.replace(
- "{" + "areaId" + "}",
- localVarApiClient.escapeString(areaId.toString()))
+ "{" + "projectId" + "}",
+ localVarApiClient.escapeString(projectId.toString()))
.replace(
"{" + "region" + "}",
localVarApiClient.escapeString(region.toString()))
.replace(
- "{" + "routingTableId" + "}",
- localVarApiClient.escapeString(routingTableId.toString()));
+ "{" + "networkId" + "}",
+ localVarApiClient.escapeString(networkId.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
@@ -2127,7 +2174,7 @@ public okhttp3.Call getRoutingTableOfAreaCall(
return localVarApiClient.buildCall(
basePath,
localVarPath,
- "GET",
+ "DELETE",
localVarQueryParams,
localVarCollectionQueryParams,
localVarPostBody,
@@ -2139,118 +2186,101 @@ public okhttp3.Call getRoutingTableOfAreaCall(
}
@SuppressWarnings("rawtypes")
- private okhttp3.Call getRoutingTableOfAreaValidateBeforeCall(
- @javax.annotation.Nonnull UUID organizationId,
- @javax.annotation.Nonnull UUID areaId,
+ private okhttp3.Call deleteNetworkValidateBeforeCall(
+ @javax.annotation.Nonnull UUID projectId,
@javax.annotation.Nonnull String region,
- @javax.annotation.Nonnull UUID routingTableId,
+ @javax.annotation.Nonnull UUID networkId,
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 getRoutingTableOfArea(Async)");
- }
-
- // verify the required parameter 'areaId' is set
- if (areaId == null) {
+ // verify the required parameter 'projectId' is set
+ if (projectId == null) {
throw new ApiException(
- "Missing the required parameter 'areaId' when calling getRoutingTableOfArea(Async)");
+ "Missing the required parameter 'projectId' when calling deleteNetwork(Async)");
}
// verify the required parameter 'region' is set
if (region == null) {
throw new ApiException(
- "Missing the required parameter 'region' when calling getRoutingTableOfArea(Async)");
+ "Missing the required parameter 'region' when calling deleteNetwork(Async)");
}
- // verify the required parameter 'routingTableId' is set
- if (routingTableId == null) {
+ // verify the required parameter 'networkId' is set
+ if (networkId == null) {
throw new ApiException(
- "Missing the required parameter 'routingTableId' when calling getRoutingTableOfArea(Async)");
+ "Missing the required parameter 'networkId' when calling deleteNetwork(Async)");
}
- return getRoutingTableOfAreaCall(organizationId, areaId, region, routingTableId, _callback);
+ return deleteNetworkCall(projectId, region, networkId, _callback);
}
/**
- * Get details about a routing table. Get details about a routing table defined in a network
- * area.
+ * Delete network. Delete a network. If the network is still in use, the deletion will fail.
*
- * @param organizationId The identifier (ID) of a STACKIT Organization. (required)
- * @param areaId The identifier (ID) of a STACKIT Network Area. (required)
+ * @param projectId The identifier (ID) of a STACKIT Project. (required)
* @param region The STACKIT Region of the resources. (required)
- * @param routingTableId The identifier (ID) of a STACKIT Routing Table. (required)
- * @return RoutingTable
+ * @param networkId The identifier (ID) of a STACKIT Network. (required)
* @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 | Show routing table details. | - |
+ * | 202 | Delete request for network has been accepted. | - |
* | 400 | A bad request. | - |
* | 401 | A request which was not authorized. | - |
* | 403 | A request which was forbidden. | - |
* | 404 | The object was not found. | - |
+ * | 409 | A conflict has occurred. | - |
* | 500 | Internal Server Error, returns a 500 if something is broken on IaaS API Side. | - |
*
*/
- public RoutingTable getRoutingTableOfArea(
- @javax.annotation.Nonnull UUID organizationId,
- @javax.annotation.Nonnull UUID areaId,
+ public void deleteNetwork(
+ @javax.annotation.Nonnull UUID projectId,
@javax.annotation.Nonnull String region,
- @javax.annotation.Nonnull UUID routingTableId)
+ @javax.annotation.Nonnull UUID networkId)
throws ApiException {
- ApiResponse localVarResp =
- getRoutingTableOfAreaWithHttpInfo(organizationId, areaId, region, routingTableId);
- return localVarResp.getData();
+ deleteNetworkWithHttpInfo(projectId, region, networkId);
}
/**
- * Get details about a routing table. Get details about a routing table defined in a network
- * area.
+ * Delete network. Delete a network. If the network is still in use, the deletion will fail.
*
- * @param organizationId The identifier (ID) of a STACKIT Organization. (required)
- * @param areaId The identifier (ID) of a STACKIT Network Area. (required)
+ * @param projectId The identifier (ID) of a STACKIT Project. (required)
* @param region The STACKIT Region of the resources. (required)
- * @param routingTableId The identifier (ID) of a STACKIT Routing Table. (required)
- * @return ApiResponse<RoutingTable>
+ * @param networkId The identifier (ID) of a STACKIT Network. (required)
+ * @return ApiResponse<Void>
* @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 | Show routing table details. | - |
+ * | 202 | Delete request for network has been accepted. | - |
* | 400 | A bad request. | - |
* | 401 | A request which was not authorized. | - |
* | 403 | A request which was forbidden. | - |
* | 404 | The object was not found. | - |
+ * | 409 | A conflict has occurred. | - |
* | 500 | Internal Server Error, returns a 500 if something is broken on IaaS API Side. | - |
*
*/
- public ApiResponse getRoutingTableOfAreaWithHttpInfo(
- @javax.annotation.Nonnull UUID organizationId,
- @javax.annotation.Nonnull UUID areaId,
+ public ApiResponse deleteNetworkWithHttpInfo(
+ @javax.annotation.Nonnull UUID projectId,
@javax.annotation.Nonnull String region,
- @javax.annotation.Nonnull UUID routingTableId)
+ @javax.annotation.Nonnull UUID networkId)
throws ApiException {
okhttp3.Call localVarCall =
- getRoutingTableOfAreaValidateBeforeCall(
- organizationId, areaId, region, routingTableId, null);
- Type localVarReturnType = new TypeToken() {}.getType();
- return localVarApiClient.execute(localVarCall, localVarReturnType);
+ deleteNetworkValidateBeforeCall(projectId, region, networkId, null);
+ return localVarApiClient.execute(localVarCall);
}
/**
- * Get details about a routing table. (asynchronously) Get details about a routing table defined
- * in a network area.
+ * Delete network. (asynchronously) Delete a network. If the network is still in use, the
+ * deletion will fail.
*
- * @param organizationId The identifier (ID) of a STACKIT Organization. (required)
- * @param areaId The identifier (ID) of a STACKIT Network Area. (required)
+ * @param projectId The identifier (ID) of a STACKIT Project. (required)
* @param region The STACKIT Region of the resources. (required)
- * @param routingTableId The identifier (ID) of a STACKIT Routing Table. (required)
+ * @param networkId The identifier (ID) of a STACKIT Network. (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
@@ -2259,36 +2289,5958 @@ public ApiResponse getRoutingTableOfAreaWithHttpInfo(
*
* Response Details
* | Status Code | Description | Response Headers |
- * | 200 | Show routing table details. | - |
+ * | 202 | Delete request for network has been accepted. | - |
* | 400 | A bad request. | - |
* | 401 | A request which was not authorized. | - |
* | 403 | A request which was forbidden. | - |
* | 404 | The object was not found. | - |
+ * | 409 | A conflict has occurred. | - |
* | 500 | Internal Server Error, returns a 500 if something is broken on IaaS API Side. | - |
*
*/
- public okhttp3.Call getRoutingTableOfAreaAsync(
- @javax.annotation.Nonnull UUID organizationId,
- @javax.annotation.Nonnull UUID areaId,
+ public okhttp3.Call deleteNetworkAsync(
+ @javax.annotation.Nonnull UUID projectId,
@javax.annotation.Nonnull String region,
- @javax.annotation.Nonnull UUID routingTableId,
- final ApiCallback _callback)
+ @javax.annotation.Nonnull UUID networkId,
+ final ApiCallback _callback)
throws ApiException {
okhttp3.Call localVarCall =
- getRoutingTableOfAreaValidateBeforeCall(
- organizationId, areaId, region, routingTableId, _callback);
- Type localVarReturnType = new TypeToken() {}.getType();
- localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
+ deleteNetworkValidateBeforeCall(projectId, region, networkId, _callback);
+ localVarApiClient.executeAsync(localVarCall, _callback);
return localVarCall;
}
/**
- * Build call for listNetworks
+ * Build call for deleteRouteFromRoutingTable
*
- * @param projectId The identifier (ID) of a STACKIT Project. (required)
+ * @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 labelSelector Filter resources by labels. (optional)
+ * @param routingTableId The identifier (ID) of a STACKIT Routing Table. (required)
+ * @param routeId The identifier (ID) of a STACKIT Route. (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 |
+ * | 204 | Delete request for the route has been accepted. | - |
+ * | 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 deleteRouteFromRoutingTableCall(
+ @javax.annotation.Nonnull UUID organizationId,
+ @javax.annotation.Nonnull UUID areaId,
+ @javax.annotation.Nonnull String region,
+ @javax.annotation.Nonnull UUID routingTableId,
+ @javax.annotation.Nonnull UUID routeId,
+ 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 =
+ "/v2alpha1/organizations/{organizationId}/network-areas/{areaId}/regions/{region}/routing-tables/{routingTableId}/routes/{routeId}"
+ .replace(
+ "{" + "organizationId" + "}",
+ localVarApiClient.escapeString(organizationId.toString()))
+ .replace(
+ "{" + "areaId" + "}",
+ localVarApiClient.escapeString(areaId.toString()))
+ .replace(
+ "{" + "region" + "}",
+ localVarApiClient.escapeString(region.toString()))
+ .replace(
+ "{" + "routingTableId" + "}",
+ localVarApiClient.escapeString(routingTableId.toString()))
+ .replace(
+ "{" + "routeId" + "}",
+ localVarApiClient.escapeString(routeId.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 deleteRouteFromRoutingTableValidateBeforeCall(
+ @javax.annotation.Nonnull UUID organizationId,
+ @javax.annotation.Nonnull UUID areaId,
+ @javax.annotation.Nonnull String region,
+ @javax.annotation.Nonnull UUID routingTableId,
+ @javax.annotation.Nonnull UUID routeId,
+ 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 deleteRouteFromRoutingTable(Async)");
+ }
+
+ // verify the required parameter 'areaId' is set
+ if (areaId == null) {
+ throw new ApiException(
+ "Missing the required parameter 'areaId' when calling deleteRouteFromRoutingTable(Async)");
+ }
+
+ // verify the required parameter 'region' is set
+ if (region == null) {
+ throw new ApiException(
+ "Missing the required parameter 'region' when calling deleteRouteFromRoutingTable(Async)");
+ }
+
+ // verify the required parameter 'routingTableId' is set
+ if (routingTableId == null) {
+ throw new ApiException(
+ "Missing the required parameter 'routingTableId' when calling deleteRouteFromRoutingTable(Async)");
+ }
+
+ // verify the required parameter 'routeId' is set
+ if (routeId == null) {
+ throw new ApiException(
+ "Missing the required parameter 'routeId' when calling deleteRouteFromRoutingTable(Async)");
+ }
+
+ return deleteRouteFromRoutingTableCall(
+ organizationId, areaId, region, routingTableId, routeId, _callback);
+ }
+
+ /**
+ * 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)
+ * @param region The STACKIT Region of the resources. (required)
+ * @param routingTableId The identifier (ID) of a STACKIT Routing Table. (required)
+ * @param routeId The identifier (ID) of a STACKIT Route. (required)
+ * @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 |
+ * | 204 | Delete request for the route has been accepted. | - |
+ * | 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 void deleteRouteFromRoutingTable(
+ @javax.annotation.Nonnull UUID organizationId,
+ @javax.annotation.Nonnull UUID areaId,
+ @javax.annotation.Nonnull String region,
+ @javax.annotation.Nonnull UUID routingTableId,
+ @javax.annotation.Nonnull UUID routeId)
+ throws ApiException {
+ deleteRouteFromRoutingTableWithHttpInfo(
+ organizationId, areaId, region, routingTableId, routeId);
+ }
+
+ /**
+ * 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)
+ * @param region The STACKIT Region of the resources. (required)
+ * @param routingTableId The identifier (ID) of a STACKIT Routing Table. (required)
+ * @param routeId The identifier (ID) of a STACKIT Route. (required)
+ * @return ApiResponse<Void>
+ * @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 |
+ * | 204 | Delete request for the route has been accepted. | - |
+ * | 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 deleteRouteFromRoutingTableWithHttpInfo(
+ @javax.annotation.Nonnull UUID organizationId,
+ @javax.annotation.Nonnull UUID areaId,
+ @javax.annotation.Nonnull String region,
+ @javax.annotation.Nonnull UUID routingTableId,
+ @javax.annotation.Nonnull UUID routeId)
+ throws ApiException {
+ okhttp3.Call localVarCall =
+ deleteRouteFromRoutingTableValidateBeforeCall(
+ organizationId, areaId, region, routingTableId, routeId, null);
+ return localVarApiClient.execute(localVarCall);
+ }
+
+ /**
+ * Delete a route in a routing table. (asynchronously) 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)
+ * @param region The STACKIT Region of the resources. (required)
+ * @param routingTableId The identifier (ID) of a STACKIT Routing Table. (required)
+ * @param routeId The identifier (ID) of a STACKIT 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
+ * object
+ * @http.response.details
+ *
+ * Response Details
+ * | Status Code | Description | Response Headers |
+ * | 204 | Delete request for the route has been accepted. | - |
+ * | 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 deleteRouteFromRoutingTableAsync(
+ @javax.annotation.Nonnull UUID organizationId,
+ @javax.annotation.Nonnull UUID areaId,
+ @javax.annotation.Nonnull String region,
+ @javax.annotation.Nonnull UUID routingTableId,
+ @javax.annotation.Nonnull UUID routeId,
+ final ApiCallback _callback)
+ throws ApiException {
+
+ okhttp3.Call localVarCall =
+ deleteRouteFromRoutingTableValidateBeforeCall(
+ organizationId, areaId, region, routingTableId, routeId, _callback);
+ localVarApiClient.executeAsync(localVarCall, _callback);
+ return localVarCall;
+ }
+
+ /**
+ * Build call for deleteRoutingTableFromArea
+ *
+ * @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 routingTableId The identifier (ID) of a STACKIT Routing Table. (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 |
+ * | 204 | Delete request for the routing table has been accepted. | - |
+ * | 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 deleteRoutingTableFromAreaCall(
+ @javax.annotation.Nonnull UUID organizationId,
+ @javax.annotation.Nonnull UUID areaId,
+ @javax.annotation.Nonnull String region,
+ @javax.annotation.Nonnull UUID routingTableId,
+ 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 =
+ "/v2alpha1/organizations/{organizationId}/network-areas/{areaId}/regions/{region}/routing-tables/{routingTableId}"
+ .replace(
+ "{" + "organizationId" + "}",
+ localVarApiClient.escapeString(organizationId.toString()))
+ .replace(
+ "{" + "areaId" + "}",
+ localVarApiClient.escapeString(areaId.toString()))
+ .replace(
+ "{" + "region" + "}",
+ localVarApiClient.escapeString(region.toString()))
+ .replace(
+ "{" + "routingTableId" + "}",
+ localVarApiClient.escapeString(routingTableId.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 deleteRoutingTableFromAreaValidateBeforeCall(
+ @javax.annotation.Nonnull UUID organizationId,
+ @javax.annotation.Nonnull UUID areaId,
+ @javax.annotation.Nonnull String region,
+ @javax.annotation.Nonnull UUID routingTableId,
+ 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 deleteRoutingTableFromArea(Async)");
+ }
+
+ // verify the required parameter 'areaId' is set
+ if (areaId == null) {
+ throw new ApiException(
+ "Missing the required parameter 'areaId' when calling deleteRoutingTableFromArea(Async)");
+ }
+
+ // verify the required parameter 'region' is set
+ if (region == null) {
+ throw new ApiException(
+ "Missing the required parameter 'region' when calling deleteRoutingTableFromArea(Async)");
+ }
+
+ // verify the required parameter 'routingTableId' is set
+ if (routingTableId == null) {
+ throw new ApiException(
+ "Missing the required parameter 'routingTableId' when calling deleteRoutingTableFromArea(Async)");
+ }
+
+ return deleteRoutingTableFromAreaCall(
+ organizationId, areaId, region, routingTableId, _callback);
+ }
+
+ /**
+ * Delete a routing table. Delete 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)
+ * @param region The STACKIT Region of the resources. (required)
+ * @param routingTableId The identifier (ID) of a STACKIT Routing Table. (required)
+ * @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 |
+ * | 204 | Delete request for the routing table has been accepted. | - |
+ * | 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 void deleteRoutingTableFromArea(
+ @javax.annotation.Nonnull UUID organizationId,
+ @javax.annotation.Nonnull UUID areaId,
+ @javax.annotation.Nonnull String region,
+ @javax.annotation.Nonnull UUID routingTableId)
+ throws ApiException {
+ deleteRoutingTableFromAreaWithHttpInfo(organizationId, areaId, region, routingTableId);
+ }
+
+ /**
+ * Delete a routing table. Delete 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)
+ * @param region The STACKIT Region of the resources. (required)
+ * @param routingTableId The identifier (ID) of a STACKIT Routing Table. (required)
+ * @return ApiResponse<Void>
+ * @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 |
+ * | 204 | Delete request for the routing table has been accepted. | - |
+ * | 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 deleteRoutingTableFromAreaWithHttpInfo(
+ @javax.annotation.Nonnull UUID organizationId,
+ @javax.annotation.Nonnull UUID areaId,
+ @javax.annotation.Nonnull String region,
+ @javax.annotation.Nonnull UUID routingTableId)
+ throws ApiException {
+ okhttp3.Call localVarCall =
+ deleteRoutingTableFromAreaValidateBeforeCall(
+ organizationId, areaId, region, routingTableId, null);
+ return localVarApiClient.execute(localVarCall);
+ }
+
+ /**
+ * Delete a routing table. (asynchronously) Delete 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)
+ * @param region The STACKIT Region of the resources. (required)
+ * @param routingTableId The identifier (ID) of a STACKIT Routing Table. (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 |
+ * | 204 | Delete request for the routing table has been accepted. | - |
+ * | 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 deleteRoutingTableFromAreaAsync(
+ @javax.annotation.Nonnull UUID organizationId,
+ @javax.annotation.Nonnull UUID areaId,
+ @javax.annotation.Nonnull String region,
+ @javax.annotation.Nonnull UUID routingTableId,
+ final ApiCallback _callback)
+ throws ApiException {
+
+ okhttp3.Call localVarCall =
+ deleteRoutingTableFromAreaValidateBeforeCall(
+ organizationId, areaId, region, routingTableId, _callback);
+ localVarApiClient.executeAsync(localVarCall, _callback);
+ return localVarCall;
+ }
+
+ /**
+ * Build call for deleteVPC
+ *
+ * @param projectId The identifier (ID) of a STACKIT Project. (required)
+ * @param vpcId The unique identifier (ID) of the target STACKIT VPC in the request path.
+ * (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 |
+ * | 204 | VPC has been deleted. | - |
+ * | 400 | A bad request. | - |
+ * | 401 | A request which was not authorized. | - |
+ * | 403 | A request which was forbidden. | - |
+ * | 404 | The object was not found. | - |
+ * | 409 | A conflict has occurred. | - |
+ * | 424 | The region of the vpc is not enabled. | - |
+ * | 500 | Internal Server Error, returns a 500 if something is broken on IaaS API Side. | - |
+ *
+ */
+ public okhttp3.Call deleteVPCCall(
+ @javax.annotation.Nonnull UUID projectId,
+ @javax.annotation.Nonnull UUID vpcId,
+ 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 =
+ "/v2alpha1/projects/{projectId}/vpcs/{vpcId}"
+ .replace(
+ "{" + "projectId" + "}",
+ localVarApiClient.escapeString(projectId.toString()))
+ .replace(
+ "{" + "vpcId" + "}",
+ localVarApiClient.escapeString(vpcId.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 deleteVPCValidateBeforeCall(
+ @javax.annotation.Nonnull UUID projectId,
+ @javax.annotation.Nonnull UUID vpcId,
+ 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 deleteVPC(Async)");
+ }
+
+ // verify the required parameter 'vpcId' is set
+ if (vpcId == null) {
+ throw new ApiException(
+ "Missing the required parameter 'vpcId' when calling deleteVPC(Async)");
+ }
+
+ return deleteVPCCall(projectId, vpcId, _callback);
+ }
+
+ /**
+ * Delete a VPC. Delete an existing VPC in a project.
+ *
+ * @param projectId The identifier (ID) of a STACKIT Project. (required)
+ * @param vpcId The unique identifier (ID) of the target STACKIT VPC in the request path.
+ * (required)
+ * @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 |
+ * | 204 | VPC has been deleted. | - |
+ * | 400 | A bad request. | - |
+ * | 401 | A request which was not authorized. | - |
+ * | 403 | A request which was forbidden. | - |
+ * | 404 | The object was not found. | - |
+ * | 409 | A conflict has occurred. | - |
+ * | 424 | The region of the vpc is not enabled. | - |
+ * | 500 | Internal Server Error, returns a 500 if something is broken on IaaS API Side. | - |
+ *
+ */
+ public void deleteVPC(
+ @javax.annotation.Nonnull UUID projectId, @javax.annotation.Nonnull UUID vpcId)
+ throws ApiException {
+ deleteVPCWithHttpInfo(projectId, vpcId);
+ }
+
+ /**
+ * Delete a VPC. Delete an existing VPC in a project.
+ *
+ * @param projectId The identifier (ID) of a STACKIT Project. (required)
+ * @param vpcId The unique identifier (ID) of the target STACKIT VPC in the request path.
+ * (required)
+ * @return ApiResponse<Void>
+ * @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 |
+ * | 204 | VPC has been deleted. | - |
+ * | 400 | A bad request. | - |
+ * | 401 | A request which was not authorized. | - |
+ * | 403 | A request which was forbidden. | - |
+ * | 404 | The object was not found. | - |
+ * | 409 | A conflict has occurred. | - |
+ * | 424 | The region of the vpc is not enabled. | - |
+ * | 500 | Internal Server Error, returns a 500 if something is broken on IaaS API Side. | - |
+ *
+ */
+ public ApiResponse deleteVPCWithHttpInfo(
+ @javax.annotation.Nonnull UUID projectId, @javax.annotation.Nonnull UUID vpcId)
+ throws ApiException {
+ okhttp3.Call localVarCall = deleteVPCValidateBeforeCall(projectId, vpcId, null);
+ return localVarApiClient.execute(localVarCall);
+ }
+
+ /**
+ * Delete a VPC. (asynchronously) Delete an existing VPC in a project.
+ *
+ * @param projectId The identifier (ID) of a STACKIT Project. (required)
+ * @param vpcId The unique identifier (ID) of the target STACKIT VPC in the request path.
+ * (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 |
+ * | 204 | VPC has been deleted. | - |
+ * | 400 | A bad request. | - |
+ * | 401 | A request which was not authorized. | - |
+ * | 403 | A request which was forbidden. | - |
+ * | 404 | The object was not found. | - |
+ * | 409 | A conflict has occurred. | - |
+ * | 424 | The region of the vpc is not enabled. | - |
+ * | 500 | Internal Server Error, returns a 500 if something is broken on IaaS API Side. | - |
+ *
+ */
+ public okhttp3.Call deleteVPCAsync(
+ @javax.annotation.Nonnull UUID projectId,
+ @javax.annotation.Nonnull UUID vpcId,
+ final ApiCallback _callback)
+ throws ApiException {
+
+ okhttp3.Call localVarCall = deleteVPCValidateBeforeCall(projectId, vpcId, _callback);
+ localVarApiClient.executeAsync(localVarCall, _callback);
+ return localVarCall;
+ }
+
+ /**
+ * Build call for deleteVPCNetworkRange
+ *
+ * @param projectId The identifier (ID) of a STACKIT Project. (required)
+ * @param vpcId The unique identifier (ID) of the target STACKIT VPC in the request path.
+ * (required)
+ * @param region The STACKIT Region of the resources. (required)
+ * @param networkRangeId The identifier (ID) of a STACKIT Network Range. (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 |
+ * | 202 | Delete request for network range has been accepted. | - |
+ * | 400 | A bad request. | - |
+ * | 401 | A request which was not authorized. | - |
+ * | 403 | A request which was forbidden. | - |
+ * | 404 | The object was not found. | - |
+ * | 409 | A conflict has occurred. | - |
+ * | 424 | The region of the vpc is not enabled. | - |
+ * | 500 | Internal Server Error, returns a 500 if something is broken on IaaS API Side. | - |
+ *
+ */
+ public okhttp3.Call deleteVPCNetworkRangeCall(
+ @javax.annotation.Nonnull UUID projectId,
+ @javax.annotation.Nonnull UUID vpcId,
+ @javax.annotation.Nonnull String region,
+ @javax.annotation.Nonnull UUID networkRangeId,
+ 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 =
+ "/v2alpha1/projects/{projectId}/vpcs/{vpcId}/regions/{region}/network-ranges/{networkRangeId}"
+ .replace(
+ "{" + "projectId" + "}",
+ localVarApiClient.escapeString(projectId.toString()))
+ .replace(
+ "{" + "vpcId" + "}",
+ localVarApiClient.escapeString(vpcId.toString()))
+ .replace(
+ "{" + "region" + "}",
+ localVarApiClient.escapeString(region.toString()))
+ .replace(
+ "{" + "networkRangeId" + "}",
+ localVarApiClient.escapeString(networkRangeId.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 deleteVPCNetworkRangeValidateBeforeCall(
+ @javax.annotation.Nonnull UUID projectId,
+ @javax.annotation.Nonnull UUID vpcId,
+ @javax.annotation.Nonnull String region,
+ @javax.annotation.Nonnull UUID networkRangeId,
+ 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 deleteVPCNetworkRange(Async)");
+ }
+
+ // verify the required parameter 'vpcId' is set
+ if (vpcId == null) {
+ throw new ApiException(
+ "Missing the required parameter 'vpcId' when calling deleteVPCNetworkRange(Async)");
+ }
+
+ // verify the required parameter 'region' is set
+ if (region == null) {
+ throw new ApiException(
+ "Missing the required parameter 'region' when calling deleteVPCNetworkRange(Async)");
+ }
+
+ // verify the required parameter 'networkRangeId' is set
+ if (networkRangeId == null) {
+ throw new ApiException(
+ "Missing the required parameter 'networkRangeId' when calling deleteVPCNetworkRange(Async)");
+ }
+
+ return deleteVPCNetworkRangeCall(projectId, vpcId, region, networkRangeId, _callback);
+ }
+
+ /**
+ * Delete a regional network range. Delete a network range of a VPC for this region, if the
+ * network range is not used anymore.
+ *
+ * @param projectId The identifier (ID) of a STACKIT Project. (required)
+ * @param vpcId The unique identifier (ID) of the target STACKIT VPC in the request path.
+ * (required)
+ * @param region The STACKIT Region of the resources. (required)
+ * @param networkRangeId The identifier (ID) of a STACKIT Network Range. (required)
+ * @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 |
+ * | 202 | Delete request for network range has been accepted. | - |
+ * | 400 | A bad request. | - |
+ * | 401 | A request which was not authorized. | - |
+ * | 403 | A request which was forbidden. | - |
+ * | 404 | The object was not found. | - |
+ * | 409 | A conflict has occurred. | - |
+ * | 424 | The region of the vpc is not enabled. | - |
+ * | 500 | Internal Server Error, returns a 500 if something is broken on IaaS API Side. | - |
+ *
+ */
+ public void deleteVPCNetworkRange(
+ @javax.annotation.Nonnull UUID projectId,
+ @javax.annotation.Nonnull UUID vpcId,
+ @javax.annotation.Nonnull String region,
+ @javax.annotation.Nonnull UUID networkRangeId)
+ throws ApiException {
+ deleteVPCNetworkRangeWithHttpInfo(projectId, vpcId, region, networkRangeId);
+ }
+
+ /**
+ * Delete a regional network range. Delete a network range of a VPC for this region, if the
+ * network range is not used anymore.
+ *
+ * @param projectId The identifier (ID) of a STACKIT Project. (required)
+ * @param vpcId The unique identifier (ID) of the target STACKIT VPC in the request path.
+ * (required)
+ * @param region The STACKIT Region of the resources. (required)
+ * @param networkRangeId The identifier (ID) of a STACKIT Network Range. (required)
+ * @return ApiResponse<Void>
+ * @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 |
+ * | 202 | Delete request for network range has been accepted. | - |
+ * | 400 | A bad request. | - |
+ * | 401 | A request which was not authorized. | - |
+ * | 403 | A request which was forbidden. | - |
+ * | 404 | The object was not found. | - |
+ * | 409 | A conflict has occurred. | - |
+ * | 424 | The region of the vpc is not enabled. | - |
+ * | 500 | Internal Server Error, returns a 500 if something is broken on IaaS API Side. | - |
+ *
+ */
+ public ApiResponse deleteVPCNetworkRangeWithHttpInfo(
+ @javax.annotation.Nonnull UUID projectId,
+ @javax.annotation.Nonnull UUID vpcId,
+ @javax.annotation.Nonnull String region,
+ @javax.annotation.Nonnull UUID networkRangeId)
+ throws ApiException {
+ okhttp3.Call localVarCall =
+ deleteVPCNetworkRangeValidateBeforeCall(
+ projectId, vpcId, region, networkRangeId, null);
+ return localVarApiClient.execute(localVarCall);
+ }
+
+ /**
+ * Delete a regional network range. (asynchronously) Delete a network range of a VPC for this
+ * region, if the network range is not used anymore.
+ *
+ * @param projectId The identifier (ID) of a STACKIT Project. (required)
+ * @param vpcId The unique identifier (ID) of the target STACKIT VPC in the request path.
+ * (required)
+ * @param region The STACKIT Region of the resources. (required)
+ * @param networkRangeId The identifier (ID) of a STACKIT Network Range. (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 |
+ * | 202 | Delete request for network range has been accepted. | - |
+ * | 400 | A bad request. | - |
+ * | 401 | A request which was not authorized. | - |
+ * | 403 | A request which was forbidden. | - |
+ * | 404 | The object was not found. | - |
+ * | 409 | A conflict has occurred. | - |
+ * | 424 | The region of the vpc is not enabled. | - |
+ * | 500 | Internal Server Error, returns a 500 if something is broken on IaaS API Side. | - |
+ *
+ */
+ public okhttp3.Call deleteVPCNetworkRangeAsync(
+ @javax.annotation.Nonnull UUID projectId,
+ @javax.annotation.Nonnull UUID vpcId,
+ @javax.annotation.Nonnull String region,
+ @javax.annotation.Nonnull UUID networkRangeId,
+ final ApiCallback _callback)
+ throws ApiException {
+
+ okhttp3.Call localVarCall =
+ deleteVPCNetworkRangeValidateBeforeCall(
+ projectId, vpcId, region, networkRangeId, _callback);
+ localVarApiClient.executeAsync(localVarCall, _callback);
+ return localVarCall;
+ }
+
+ /**
+ * Build call for deleteVPCRegion
+ *
+ * @param projectId The identifier (ID) of a STACKIT Project. (required)
+ * @param vpcId The unique identifier (ID) of the target STACKIT VPC in the request path.
+ * (required)
+ * @param region The STACKIT Region of the resources. (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 |
+ * | 202 | Delete request for the regional VPC has been accepted. | - |
+ * | 400 | A bad request. | - |
+ * | 401 | A request which was not authorized. | - |
+ * | 403 | A request which was forbidden. | - |
+ * | 404 | The object was not found. | - |
+ * | 409 | A conflict has occurred. | - |
+ * | 424 | The region of the vpc is not enabled. | - |
+ * | 500 | Internal Server Error, returns a 500 if something is broken on IaaS API Side. | - |
+ *
+ */
+ public okhttp3.Call deleteVPCRegionCall(
+ @javax.annotation.Nonnull UUID projectId,
+ @javax.annotation.Nonnull UUID vpcId,
+ @javax.annotation.Nonnull String region,
+ 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 =
+ "/v2alpha1/projects/{projectId}/vpcs/{vpcId}/regions/{region}"
+ .replace(
+ "{" + "projectId" + "}",
+ localVarApiClient.escapeString(projectId.toString()))
+ .replace(
+ "{" + "vpcId" + "}",
+ localVarApiClient.escapeString(vpcId.toString()))
+ .replace(
+ "{" + "region" + "}",
+ localVarApiClient.escapeString(region.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 deleteVPCRegionValidateBeforeCall(
+ @javax.annotation.Nonnull UUID projectId,
+ @javax.annotation.Nonnull UUID vpcId,
+ @javax.annotation.Nonnull String region,
+ 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 deleteVPCRegion(Async)");
+ }
+
+ // verify the required parameter 'vpcId' is set
+ if (vpcId == null) {
+ throw new ApiException(
+ "Missing the required parameter 'vpcId' when calling deleteVPCRegion(Async)");
+ }
+
+ // verify the required parameter 'region' is set
+ if (region == null) {
+ throw new ApiException(
+ "Missing the required parameter 'region' when calling deleteVPCRegion(Async)");
+ }
+
+ return deleteVPCRegionCall(projectId, vpcId, region, _callback);
+ }
+
+ /**
+ * Delete the regional configuration of a VPC. Delete the current configuration of a region for
+ * a VPC.
+ *
+ * @param projectId The identifier (ID) of a STACKIT Project. (required)
+ * @param vpcId The unique identifier (ID) of the target STACKIT VPC in the request path.
+ * (required)
+ * @param region The STACKIT Region of the resources. (required)
+ * @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 |
+ * | 202 | Delete request for the regional VPC has been accepted. | - |
+ * | 400 | A bad request. | - |
+ * | 401 | A request which was not authorized. | - |
+ * | 403 | A request which was forbidden. | - |
+ * | 404 | The object was not found. | - |
+ * | 409 | A conflict has occurred. | - |
+ * | 424 | The region of the vpc is not enabled. | - |
+ * | 500 | Internal Server Error, returns a 500 if something is broken on IaaS API Side. | - |
+ *
+ */
+ public void deleteVPCRegion(
+ @javax.annotation.Nonnull UUID projectId,
+ @javax.annotation.Nonnull UUID vpcId,
+ @javax.annotation.Nonnull String region)
+ throws ApiException {
+ deleteVPCRegionWithHttpInfo(projectId, vpcId, region);
+ }
+
+ /**
+ * Delete the regional configuration of a VPC. Delete the current configuration of a region for
+ * a VPC.
+ *
+ * @param projectId The identifier (ID) of a STACKIT Project. (required)
+ * @param vpcId The unique identifier (ID) of the target STACKIT VPC in the request path.
+ * (required)
+ * @param region The STACKIT Region of the resources. (required)
+ * @return ApiResponse<Void>
+ * @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 |
+ * | 202 | Delete request for the regional VPC has been accepted. | - |
+ * | 400 | A bad request. | - |
+ * | 401 | A request which was not authorized. | - |
+ * | 403 | A request which was forbidden. | - |
+ * | 404 | The object was not found. | - |
+ * | 409 | A conflict has occurred. | - |
+ * | 424 | The region of the vpc is not enabled. | - |
+ * | 500 | Internal Server Error, returns a 500 if something is broken on IaaS API Side. | - |
+ *
+ */
+ public ApiResponse deleteVPCRegionWithHttpInfo(
+ @javax.annotation.Nonnull UUID projectId,
+ @javax.annotation.Nonnull UUID vpcId,
+ @javax.annotation.Nonnull String region)
+ throws ApiException {
+ okhttp3.Call localVarCall =
+ deleteVPCRegionValidateBeforeCall(projectId, vpcId, region, null);
+ return localVarApiClient.execute(localVarCall);
+ }
+
+ /**
+ * Delete the regional configuration of a VPC. (asynchronously) Delete the current configuration
+ * of a region for a VPC.
+ *
+ * @param projectId The identifier (ID) of a STACKIT Project. (required)
+ * @param vpcId The unique identifier (ID) of the target STACKIT VPC in the request path.
+ * (required)
+ * @param region The STACKIT Region of the resources. (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 |
+ * | 202 | Delete request for the regional VPC has been accepted. | - |
+ * | 400 | A bad request. | - |
+ * | 401 | A request which was not authorized. | - |
+ * | 403 | A request which was forbidden. | - |
+ * | 404 | The object was not found. | - |
+ * | 409 | A conflict has occurred. | - |
+ * | 424 | The region of the vpc is not enabled. | - |
+ * | 500 | Internal Server Error, returns a 500 if something is broken on IaaS API Side. | - |
+ *
+ */
+ public okhttp3.Call deleteVPCRegionAsync(
+ @javax.annotation.Nonnull UUID projectId,
+ @javax.annotation.Nonnull UUID vpcId,
+ @javax.annotation.Nonnull String region,
+ final ApiCallback _callback)
+ throws ApiException {
+
+ okhttp3.Call localVarCall =
+ deleteVPCRegionValidateBeforeCall(projectId, vpcId, region, _callback);
+ localVarApiClient.executeAsync(localVarCall, _callback);
+ return localVarCall;
+ }
+
+ /**
+ * Build call for deleteVPCRoutingTable
+ *
+ * @param projectId The identifier (ID) of a STACKIT Project. (required)
+ * @param vpcId The unique identifier (ID) of the target STACKIT VPC in the request path.
+ * (required)
+ * @param region The STACKIT Region of the resources. (required)
+ * @param routingTableId The identifier (ID) of a STACKIT Routing Table. (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 |
+ * | 204 | Routingtable has been deleted. | - |
+ * | 400 | A bad request. | - |
+ * | 401 | A request which was not authorized. | - |
+ * | 403 | A request which was forbidden. | - |
+ * | 404 | The object was not found. | - |
+ * | 424 | The region of the vpc is not enabled. | - |
+ * | 500 | Internal Server Error, returns a 500 if something is broken on IaaS API Side. | - |
+ *
+ */
+ public okhttp3.Call deleteVPCRoutingTableCall(
+ @javax.annotation.Nonnull UUID projectId,
+ @javax.annotation.Nonnull UUID vpcId,
+ @javax.annotation.Nonnull String region,
+ @javax.annotation.Nonnull UUID routingTableId,
+ 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 =
+ "/v2alpha1/projects/{projectId}/vpcs/{vpcId}/regions/{region}/routing-tables/{routingTableId}"
+ .replace(
+ "{" + "projectId" + "}",
+ localVarApiClient.escapeString(projectId.toString()))
+ .replace(
+ "{" + "vpcId" + "}",
+ localVarApiClient.escapeString(vpcId.toString()))
+ .replace(
+ "{" + "region" + "}",
+ localVarApiClient.escapeString(region.toString()))
+ .replace(
+ "{" + "routingTableId" + "}",
+ localVarApiClient.escapeString(routingTableId.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 deleteVPCRoutingTableValidateBeforeCall(
+ @javax.annotation.Nonnull UUID projectId,
+ @javax.annotation.Nonnull UUID vpcId,
+ @javax.annotation.Nonnull String region,
+ @javax.annotation.Nonnull UUID routingTableId,
+ 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 deleteVPCRoutingTable(Async)");
+ }
+
+ // verify the required parameter 'vpcId' is set
+ if (vpcId == null) {
+ throw new ApiException(
+ "Missing the required parameter 'vpcId' when calling deleteVPCRoutingTable(Async)");
+ }
+
+ // verify the required parameter 'region' is set
+ if (region == null) {
+ throw new ApiException(
+ "Missing the required parameter 'region' when calling deleteVPCRoutingTable(Async)");
+ }
+
+ // verify the required parameter 'routingTableId' is set
+ if (routingTableId == null) {
+ throw new ApiException(
+ "Missing the required parameter 'routingTableId' when calling deleteVPCRoutingTable(Async)");
+ }
+
+ return deleteVPCRoutingTableCall(projectId, vpcId, region, routingTableId, _callback);
+ }
+
+ /**
+ * Delete a regional routing table. Delete a routing table of a VPC for this region.
+ *
+ * @param projectId The identifier (ID) of a STACKIT Project. (required)
+ * @param vpcId The unique identifier (ID) of the target STACKIT VPC in the request path.
+ * (required)
+ * @param region The STACKIT Region of the resources. (required)
+ * @param routingTableId The identifier (ID) of a STACKIT Routing Table. (required)
+ * @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 |
+ * | 204 | Routingtable has been deleted. | - |
+ * | 400 | A bad request. | - |
+ * | 401 | A request which was not authorized. | - |
+ * | 403 | A request which was forbidden. | - |
+ * | 404 | The object was not found. | - |
+ * | 424 | The region of the vpc is not enabled. | - |
+ * | 500 | Internal Server Error, returns a 500 if something is broken on IaaS API Side. | - |
+ *
+ */
+ public void deleteVPCRoutingTable(
+ @javax.annotation.Nonnull UUID projectId,
+ @javax.annotation.Nonnull UUID vpcId,
+ @javax.annotation.Nonnull String region,
+ @javax.annotation.Nonnull UUID routingTableId)
+ throws ApiException {
+ deleteVPCRoutingTableWithHttpInfo(projectId, vpcId, region, routingTableId);
+ }
+
+ /**
+ * Delete a regional routing table. Delete a routing table of a VPC for this region.
+ *
+ * @param projectId The identifier (ID) of a STACKIT Project. (required)
+ * @param vpcId The unique identifier (ID) of the target STACKIT VPC in the request path.
+ * (required)
+ * @param region The STACKIT Region of the resources. (required)
+ * @param routingTableId The identifier (ID) of a STACKIT Routing Table. (required)
+ * @return ApiResponse<Void>
+ * @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 |
+ * | 204 | Routingtable has been deleted. | - |
+ * | 400 | A bad request. | - |
+ * | 401 | A request which was not authorized. | - |
+ * | 403 | A request which was forbidden. | - |
+ * | 404 | The object was not found. | - |
+ * | 424 | The region of the vpc is not enabled. | - |
+ * | 500 | Internal Server Error, returns a 500 if something is broken on IaaS API Side. | - |
+ *
+ */
+ public ApiResponse deleteVPCRoutingTableWithHttpInfo(
+ @javax.annotation.Nonnull UUID projectId,
+ @javax.annotation.Nonnull UUID vpcId,
+ @javax.annotation.Nonnull String region,
+ @javax.annotation.Nonnull UUID routingTableId)
+ throws ApiException {
+ okhttp3.Call localVarCall =
+ deleteVPCRoutingTableValidateBeforeCall(
+ projectId, vpcId, region, routingTableId, null);
+ return localVarApiClient.execute(localVarCall);
+ }
+
+ /**
+ * Delete a regional routing table. (asynchronously) Delete a routing table of a VPC for this
+ * region.
+ *
+ * @param projectId The identifier (ID) of a STACKIT Project. (required)
+ * @param vpcId The unique identifier (ID) of the target STACKIT VPC in the request path.
+ * (required)
+ * @param region The STACKIT Region of the resources. (required)
+ * @param routingTableId The identifier (ID) of a STACKIT Routing Table. (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 |
+ * | 204 | Routingtable has been deleted. | - |
+ * | 400 | A bad request. | - |
+ * | 401 | A request which was not authorized. | - |
+ * | 403 | A request which was forbidden. | - |
+ * | 404 | The object was not found. | - |
+ * | 424 | The region of the vpc is not enabled. | - |
+ * | 500 | Internal Server Error, returns a 500 if something is broken on IaaS API Side. | - |
+ *
+ */
+ public okhttp3.Call deleteVPCRoutingTableAsync(
+ @javax.annotation.Nonnull UUID projectId,
+ @javax.annotation.Nonnull UUID vpcId,
+ @javax.annotation.Nonnull String region,
+ @javax.annotation.Nonnull UUID routingTableId,
+ final ApiCallback _callback)
+ throws ApiException {
+
+ okhttp3.Call localVarCall =
+ deleteVPCRoutingTableValidateBeforeCall(
+ projectId, vpcId, region, routingTableId, _callback);
+ localVarApiClient.executeAsync(localVarCall, _callback);
+ return localVarCall;
+ }
+
+ /**
+ * Build call for deleteVPCStaticRoute
+ *
+ * @param projectId The identifier (ID) of a STACKIT Project. (required)
+ * @param vpcId The unique identifier (ID) of the target STACKIT VPC in the request path.
+ * (required)
+ * @param region The STACKIT Region of the resources. (required)
+ * @param routingTableId The identifier (ID) of a STACKIT Routing Table. (required)
+ * @param routeId The identifier (ID) of a STACKIT Route. (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 |
+ * | 204 | Delete request for the static route has been accepted. | - |
+ * | 400 | A bad request. | - |
+ * | 401 | A request which was not authorized. | - |
+ * | 403 | A request which was forbidden. | - |
+ * | 404 | The object was not found. | - |
+ * | 424 | The region of the vpc is not enabled. | - |
+ * | 500 | Internal Server Error, returns a 500 if something is broken on IaaS API Side. | - |
+ *
+ */
+ public okhttp3.Call deleteVPCStaticRouteCall(
+ @javax.annotation.Nonnull UUID projectId,
+ @javax.annotation.Nonnull UUID vpcId,
+ @javax.annotation.Nonnull String region,
+ @javax.annotation.Nonnull UUID routingTableId,
+ @javax.annotation.Nonnull UUID routeId,
+ 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 =
+ "/v2alpha1/projects/{projectId}/vpcs/{vpcId}/regions/{region}/routing-tables/{routingTableId}/static-routes/{routeId}"
+ .replace(
+ "{" + "projectId" + "}",
+ localVarApiClient.escapeString(projectId.toString()))
+ .replace(
+ "{" + "vpcId" + "}",
+ localVarApiClient.escapeString(vpcId.toString()))
+ .replace(
+ "{" + "region" + "}",
+ localVarApiClient.escapeString(region.toString()))
+ .replace(
+ "{" + "routingTableId" + "}",
+ localVarApiClient.escapeString(routingTableId.toString()))
+ .replace(
+ "{" + "routeId" + "}",
+ localVarApiClient.escapeString(routeId.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 deleteVPCStaticRouteValidateBeforeCall(
+ @javax.annotation.Nonnull UUID projectId,
+ @javax.annotation.Nonnull UUID vpcId,
+ @javax.annotation.Nonnull String region,
+ @javax.annotation.Nonnull UUID routingTableId,
+ @javax.annotation.Nonnull UUID routeId,
+ 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 deleteVPCStaticRoute(Async)");
+ }
+
+ // verify the required parameter 'vpcId' is set
+ if (vpcId == null) {
+ throw new ApiException(
+ "Missing the required parameter 'vpcId' when calling deleteVPCStaticRoute(Async)");
+ }
+
+ // verify the required parameter 'region' is set
+ if (region == null) {
+ throw new ApiException(
+ "Missing the required parameter 'region' when calling deleteVPCStaticRoute(Async)");
+ }
+
+ // verify the required parameter 'routingTableId' is set
+ if (routingTableId == null) {
+ throw new ApiException(
+ "Missing the required parameter 'routingTableId' when calling deleteVPCStaticRoute(Async)");
+ }
+
+ // verify the required parameter 'routeId' is set
+ if (routeId == null) {
+ throw new ApiException(
+ "Missing the required parameter 'routeId' when calling deleteVPCStaticRoute(Async)");
+ }
+
+ return deleteVPCStaticRouteCall(
+ projectId, vpcId, region, routingTableId, routeId, _callback);
+ }
+
+ /**
+ * Delete a regional static route. Delete a static route of a VPC for this region.
+ *
+ * @param projectId The identifier (ID) of a STACKIT Project. (required)
+ * @param vpcId The unique identifier (ID) of the target STACKIT VPC in the request path.
+ * (required)
+ * @param region The STACKIT Region of the resources. (required)
+ * @param routingTableId The identifier (ID) of a STACKIT Routing Table. (required)
+ * @param routeId The identifier (ID) of a STACKIT Route. (required)
+ * @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 |
+ * | 204 | Delete request for the static route has been accepted. | - |
+ * | 400 | A bad request. | - |
+ * | 401 | A request which was not authorized. | - |
+ * | 403 | A request which was forbidden. | - |
+ * | 404 | The object was not found. | - |
+ * | 424 | The region of the vpc is not enabled. | - |
+ * | 500 | Internal Server Error, returns a 500 if something is broken on IaaS API Side. | - |
+ *
+ */
+ public void deleteVPCStaticRoute(
+ @javax.annotation.Nonnull UUID projectId,
+ @javax.annotation.Nonnull UUID vpcId,
+ @javax.annotation.Nonnull String region,
+ @javax.annotation.Nonnull UUID routingTableId,
+ @javax.annotation.Nonnull UUID routeId)
+ throws ApiException {
+ deleteVPCStaticRouteWithHttpInfo(projectId, vpcId, region, routingTableId, routeId);
+ }
+
+ /**
+ * Delete a regional static route. Delete a static route of a VPC for this region.
+ *
+ * @param projectId The identifier (ID) of a STACKIT Project. (required)
+ * @param vpcId The unique identifier (ID) of the target STACKIT VPC in the request path.
+ * (required)
+ * @param region The STACKIT Region of the resources. (required)
+ * @param routingTableId The identifier (ID) of a STACKIT Routing Table. (required)
+ * @param routeId The identifier (ID) of a STACKIT Route. (required)
+ * @return ApiResponse<Void>
+ * @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 |
+ * | 204 | Delete request for the static route has been accepted. | - |
+ * | 400 | A bad request. | - |
+ * | 401 | A request which was not authorized. | - |
+ * | 403 | A request which was forbidden. | - |
+ * | 404 | The object was not found. | - |
+ * | 424 | The region of the vpc is not enabled. | - |
+ * | 500 | Internal Server Error, returns a 500 if something is broken on IaaS API Side. | - |
+ *
+ */
+ public ApiResponse deleteVPCStaticRouteWithHttpInfo(
+ @javax.annotation.Nonnull UUID projectId,
+ @javax.annotation.Nonnull UUID vpcId,
+ @javax.annotation.Nonnull String region,
+ @javax.annotation.Nonnull UUID routingTableId,
+ @javax.annotation.Nonnull UUID routeId)
+ throws ApiException {
+ okhttp3.Call localVarCall =
+ deleteVPCStaticRouteValidateBeforeCall(
+ projectId, vpcId, region, routingTableId, routeId, null);
+ return localVarApiClient.execute(localVarCall);
+ }
+
+ /**
+ * Delete a regional static route. (asynchronously) Delete a static route of a VPC for this
+ * region.
+ *
+ * @param projectId The identifier (ID) of a STACKIT Project. (required)
+ * @param vpcId The unique identifier (ID) of the target STACKIT VPC in the request path.
+ * (required)
+ * @param region The STACKIT Region of the resources. (required)
+ * @param routingTableId The identifier (ID) of a STACKIT Routing Table. (required)
+ * @param routeId The identifier (ID) of a STACKIT 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
+ * object
+ * @http.response.details
+ *
+ * Response Details
+ * | Status Code | Description | Response Headers |
+ * | 204 | Delete request for the static route has been accepted. | - |
+ * | 400 | A bad request. | - |
+ * | 401 | A request which was not authorized. | - |
+ * | 403 | A request which was forbidden. | - |
+ * | 404 | The object was not found. | - |
+ * | 424 | The region of the vpc is not enabled. | - |
+ * | 500 | Internal Server Error, returns a 500 if something is broken on IaaS API Side. | - |
+ *
+ */
+ public okhttp3.Call deleteVPCStaticRouteAsync(
+ @javax.annotation.Nonnull UUID projectId,
+ @javax.annotation.Nonnull UUID vpcId,
+ @javax.annotation.Nonnull String region,
+ @javax.annotation.Nonnull UUID routingTableId,
+ @javax.annotation.Nonnull UUID routeId,
+ final ApiCallback _callback)
+ throws ApiException {
+
+ okhttp3.Call localVarCall =
+ deleteVPCStaticRouteValidateBeforeCall(
+ projectId, vpcId, region, routingTableId, routeId, _callback);
+ localVarApiClient.executeAsync(localVarCall, _callback);
+ return localVarCall;
+ }
+
+ /**
+ * Build call for getNetwork
+ *
+ * @param projectId The identifier (ID) of a STACKIT Project. (required)
+ * @param region The STACKIT Region of the resources. (required)
+ * @param networkId The identifier (ID) of a STACKIT Network. (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 | Show network details. | - |
+ * | 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 getNetworkCall(
+ @javax.annotation.Nonnull UUID projectId,
+ @javax.annotation.Nonnull String region,
+ @javax.annotation.Nonnull UUID networkId,
+ 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 =
+ "/v2alpha1/projects/{projectId}/regions/{region}/networks/{networkId}"
+ .replace(
+ "{" + "projectId" + "}",
+ localVarApiClient.escapeString(projectId.toString()))
+ .replace(
+ "{" + "region" + "}",
+ localVarApiClient.escapeString(region.toString()))
+ .replace(
+ "{" + "networkId" + "}",
+ localVarApiClient.escapeString(networkId.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,
+ "GET",
+ localVarQueryParams,
+ localVarCollectionQueryParams,
+ localVarPostBody,
+ localVarHeaderParams,
+ localVarCookieParams,
+ localVarFormParams,
+ localVarAuthNames,
+ _callback);
+ }
+
+ @SuppressWarnings("rawtypes")
+ private okhttp3.Call getNetworkValidateBeforeCall(
+ @javax.annotation.Nonnull UUID projectId,
+ @javax.annotation.Nonnull String region,
+ @javax.annotation.Nonnull UUID networkId,
+ 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 getNetwork(Async)");
+ }
+
+ // verify the required parameter 'region' is set
+ if (region == null) {
+ throw new ApiException(
+ "Missing the required parameter 'region' when calling getNetwork(Async)");
+ }
+
+ // verify the required parameter 'networkId' is set
+ if (networkId == null) {
+ throw new ApiException(
+ "Missing the required parameter 'networkId' when calling getNetwork(Async)");
+ }
+
+ return getNetworkCall(projectId, region, networkId, _callback);
+ }
+
+ /**
+ * Get network details. Get details about a network of a project.
+ *
+ * @param projectId The identifier (ID) of a STACKIT Project. (required)
+ * @param region The STACKIT Region of the resources. (required)
+ * @param networkId The identifier (ID) of a STACKIT Network. (required)
+ * @return Network
+ * @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 | Show network details. | - |
+ * | 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 Network getNetwork(
+ @javax.annotation.Nonnull UUID projectId,
+ @javax.annotation.Nonnull String region,
+ @javax.annotation.Nonnull UUID networkId)
+ throws ApiException {
+ ApiResponse localVarResp = getNetworkWithHttpInfo(projectId, region, networkId);
+ return localVarResp.getData();
+ }
+
+ /**
+ * Get network details. Get details about a network of a project.
+ *
+ * @param projectId The identifier (ID) of a STACKIT Project. (required)
+ * @param region The STACKIT Region of the resources. (required)
+ * @param networkId The identifier (ID) of a STACKIT Network. (required)
+ * @return ApiResponse<Network>
+ * @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 | Show network details. | - |
+ * | 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 getNetworkWithHttpInfo(
+ @javax.annotation.Nonnull UUID projectId,
+ @javax.annotation.Nonnull String region,
+ @javax.annotation.Nonnull UUID networkId)
+ throws ApiException {
+ okhttp3.Call localVarCall =
+ getNetworkValidateBeforeCall(projectId, region, networkId, null);
+ Type localVarReturnType = new TypeToken() {}.getType();
+ return localVarApiClient.execute(localVarCall, localVarReturnType);
+ }
+
+ /**
+ * Get network details. (asynchronously) Get details about a network of a project.
+ *
+ * @param projectId The identifier (ID) of a STACKIT Project. (required)
+ * @param region The STACKIT Region of the resources. (required)
+ * @param networkId The identifier (ID) of a STACKIT Network. (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
+ * |