diff --git a/CHANGELOG.md b/CHANGELOG.md
index 3ec8835..3d4ed06 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,10 +1,18 @@
-## Release (2026-MM-DD)
+## Release (2026-04-08)
- `iaas`:
- [v1.0.1](services/iaas/CHANGELOG.md#v101)
- **Docs:** Extend docs of class `PortRange`
- [v1.1.0](services/iaas/CHANGELOG.md#v110)
- **Feature:** Add `cascade` parameter to `deleteVolume` methods in `DefaultApi` / `IaasApi` class
- **Feature:** Add methods for new attribute `configDrive` in `CreateServerPayload` and `Server` class
+- `sfs`: [v0.3.0](services/sfs/CHANGELOG.md#v030)
+ - **Feature:** Add `disableLock`, `enableLock`, `getLock`, `getSchedule`, `listSchedules`, `getSnapshotPolicy`, `listSnapshotPolicies`, methods to `DefaultApi` / `SfsApi` class
+ - **Feature:** New model classes: `EnableLockResponse`, `GetLockResponse`, `GetScheduleResponse`, `GetSnapshotPolicyResponse`, `ListSchedulesResponse`, `ListSnapshotPoliciesResponse`, `ResourcePoolSnapshotPolicy`, `Schedule`, `SnapshotPolicy`, `SnapshotPolicySchedule`, `UpdateResourcePoolSnapshotPayload`, `UpdateResourcePoolSnapshotResponse`
+ - **Feature:** Add methods for new attribute `snapshotPolicyId` in model class `UpdateResourcePoolPayload` and `CreateResourcePoolPayload`
+ - **Feature:** Add methods for new attribute `usedBySnapshotsGigabytes` in model class `ResourcePoolSpace`
+ - **Feature:** Add methods for new attribute `snaplockExpiryTime` in model class `ResourcePoolSnapshot`
+ - **Feature:** Add methods for new attribute `snapshotPolicy` in model class `ResourcePool`
+ - **Feature:** Add methods for new attribute `snaplockRetentionHours` in model class `CreateResourcePoolSnapshotPayload`
## Release (2026-03-24)
- `alb`:
diff --git a/services/sfs/CHANGELOG.md b/services/sfs/CHANGELOG.md
index 201a391..bdc074c 100644
--- a/services/sfs/CHANGELOG.md
+++ b/services/sfs/CHANGELOG.md
@@ -1,5 +1,14 @@
+## v0.3.0
+- **Feature:** Add `disableLock`, `enableLock`, `getLock`, `getSchedule`, `listSchedules`, `getSnapshotPolicy`, `listSnapshotPolicies`, methods to `DefaultApi` / `SfsApi` class
+- **Feature:** New model classes: `EnableLockResponse`, `GetLockResponse`, `GetScheduleResponse`, `GetSnapshotPolicyResponse`, `ListSchedulesResponse`, `ListSnapshotPoliciesResponse`, `ResourcePoolSnapshotPolicy`, `Schedule`, `SnapshotPolicy`, `SnapshotPolicySchedule`, `UpdateResourcePoolSnapshotPayload`, `UpdateResourcePoolSnapshotResponse`
+- **Feature:** Add methods for new attribute `snapshotPolicyId` in model class `UpdateResourcePoolPayload` and `CreateResourcePoolPayload`
+- **Feature:** Add methods for new attribute `usedBySnapshotsGigabytes` in model class `ResourcePoolSpace`
+- **Feature:** Add methods for new attribute `snaplockExpiryTime` in model class `ResourcePoolSnapshot`
+- **Feature:** Add methods for new attribute `snapshotPolicy` in model class `ResourcePool`
+- **Feature:** Add methods for new attribute `snaplockRetentionHours` in model class `CreateResourcePoolSnapshotPayload`
+
## v0.2.0
- **Breaking change:** The `name` and `spaceHardLimitGigabytes` fields are now marked as required for `ShareExportPayload`, `SharePayload`.
## v0.1.0
-- Initial onboarding of STACKIT Java SDK for STACKIT File Storage (SFS) service
\ No newline at end of file
+- Initial onboarding of STACKIT Java SDK for STACKIT File Storage (SFS) service
diff --git a/services/sfs/VERSION b/services/sfs/VERSION
index 341cf11..0d91a54 100644
--- a/services/sfs/VERSION
+++ b/services/sfs/VERSION
@@ -1 +1 @@
-0.2.0
\ No newline at end of file
+0.3.0
diff --git a/services/sfs/oas_commit b/services/sfs/oas_commit
index 5c20c20..2753762 100644
--- a/services/sfs/oas_commit
+++ b/services/sfs/oas_commit
@@ -1 +1 @@
-fe212a12ec79a23b81cb53d9a7728f5706bddc23
+1c36f3781c31a0e21c4588c7c4ec835d477d2f21
diff --git a/services/sfs/src/main/java/cloud/stackit/sdk/sfs/JSON.java b/services/sfs/src/main/java/cloud/stackit/sdk/sfs/JSON.java
index 07f8f3d..6140179 100644
--- a/services/sfs/src/main/java/cloud/stackit/sdk/sfs/JSON.java
+++ b/services/sfs/src/main/java/cloud/stackit/sdk/sfs/JSON.java
@@ -120,18 +120,27 @@ private static Class getClassByDiscriminator(
new cloud.stackit.sdk.sfs.model.CreateSharePayload.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(
new cloud.stackit.sdk.sfs.model.CreateShareResponse.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new cloud.stackit.sdk.sfs.model.EnableLockResponse.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(
new cloud.stackit.sdk.sfs.model.Error.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new cloud.stackit.sdk.sfs.model.GetLockResponse.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(
new cloud.stackit.sdk.sfs.model.GetResourcePoolResponse.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(
new cloud.stackit.sdk.sfs.model.GetResourcePoolSnapshotResponse
.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new cloud.stackit.sdk.sfs.model.GetScheduleResponse.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(
new cloud.stackit.sdk.sfs.model.GetShareExportPolicyResponse
.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(
new cloud.stackit.sdk.sfs.model.GetShareResponse.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new cloud.stackit.sdk.sfs.model.GetSnapshotPolicyResponse
+ .CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(
new cloud.stackit.sdk.sfs.model.GoogleProtobufAny.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(
@@ -143,11 +152,16 @@ private static Class getClassByDiscriminator(
gsonBuilder.registerTypeAdapterFactory(
new cloud.stackit.sdk.sfs.model.ListResourcePoolsResponse
.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new cloud.stackit.sdk.sfs.model.ListSchedulesResponse.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(
new cloud.stackit.sdk.sfs.model.ListShareExportPoliciesResponse
.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(
new cloud.stackit.sdk.sfs.model.ListSharesResponse.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new cloud.stackit.sdk.sfs.model.ListSnapshotPoliciesResponse
+ .CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(
new cloud.stackit.sdk.sfs.model.PerformanceClass.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(
@@ -157,14 +171,23 @@ private static Class getClassByDiscriminator(
.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(
new cloud.stackit.sdk.sfs.model.ResourcePoolSnapshot.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new cloud.stackit.sdk.sfs.model.ResourcePoolSnapshotPolicy
+ .CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(
new cloud.stackit.sdk.sfs.model.ResourcePoolSpace.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new cloud.stackit.sdk.sfs.model.Schedule.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(
new cloud.stackit.sdk.sfs.model.Share.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(
new cloud.stackit.sdk.sfs.model.ShareExportPolicy.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(
new cloud.stackit.sdk.sfs.model.ShareExportPolicyRule.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new cloud.stackit.sdk.sfs.model.SnapshotPolicy.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new cloud.stackit.sdk.sfs.model.SnapshotPolicySchedule.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(
new cloud.stackit.sdk.sfs.model.Status.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(
@@ -173,6 +196,12 @@ private static Class getClassByDiscriminator(
gsonBuilder.registerTypeAdapterFactory(
new cloud.stackit.sdk.sfs.model.UpdateResourcePoolResponse
.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new cloud.stackit.sdk.sfs.model.UpdateResourcePoolSnapshotPayload
+ .CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new cloud.stackit.sdk.sfs.model.UpdateResourcePoolSnapshotResponse
+ .CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(
new cloud.stackit.sdk.sfs.model.UpdateShareExportPolicyBodyRule
.CustomTypeAdapterFactory());
diff --git a/services/sfs/src/main/java/cloud/stackit/sdk/sfs/api/DefaultApi.java b/services/sfs/src/main/java/cloud/stackit/sdk/sfs/api/DefaultApi.java
index 12c1ed1..59dc076 100644
--- a/services/sfs/src/main/java/cloud/stackit/sdk/sfs/api/DefaultApi.java
+++ b/services/sfs/src/main/java/cloud/stackit/sdk/sfs/api/DefaultApi.java
@@ -26,17 +26,25 @@
import cloud.stackit.sdk.sfs.model.CreateShareExportPolicyResponse;
import cloud.stackit.sdk.sfs.model.CreateSharePayload;
import cloud.stackit.sdk.sfs.model.CreateShareResponse;
+import cloud.stackit.sdk.sfs.model.EnableLockResponse;
+import cloud.stackit.sdk.sfs.model.GetLockResponse;
import cloud.stackit.sdk.sfs.model.GetResourcePoolResponse;
import cloud.stackit.sdk.sfs.model.GetResourcePoolSnapshotResponse;
+import cloud.stackit.sdk.sfs.model.GetScheduleResponse;
import cloud.stackit.sdk.sfs.model.GetShareExportPolicyResponse;
import cloud.stackit.sdk.sfs.model.GetShareResponse;
+import cloud.stackit.sdk.sfs.model.GetSnapshotPolicyResponse;
import cloud.stackit.sdk.sfs.model.ListPerformanceClassesResponse;
import cloud.stackit.sdk.sfs.model.ListResourcePoolSnapshotsResponse;
import cloud.stackit.sdk.sfs.model.ListResourcePoolsResponse;
+import cloud.stackit.sdk.sfs.model.ListSchedulesResponse;
import cloud.stackit.sdk.sfs.model.ListShareExportPoliciesResponse;
import cloud.stackit.sdk.sfs.model.ListSharesResponse;
+import cloud.stackit.sdk.sfs.model.ListSnapshotPoliciesResponse;
import cloud.stackit.sdk.sfs.model.UpdateResourcePoolPayload;
import cloud.stackit.sdk.sfs.model.UpdateResourcePoolResponse;
+import cloud.stackit.sdk.sfs.model.UpdateResourcePoolSnapshotPayload;
+import cloud.stackit.sdk.sfs.model.UpdateResourcePoolSnapshotResponse;
import cloud.stackit.sdk.sfs.model.UpdateShareExportPolicyPayload;
import cloud.stackit.sdk.sfs.model.UpdateShareExportPolicyResponse;
import cloud.stackit.sdk.sfs.model.UpdateSharePayload;
@@ -1897,12 +1905,1598 @@ public okhttp3.Call deleteShareExportPolicyAsync(
return localVarCall;
}
+ /**
+ * Build call for disableLock
+ *
+ * @param region (required)
+ * @param projectId (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 OK -
+ * 0 Default error response -
+ *
+ */
+ public okhttp3.Call disableLockCall(
+ @javax.annotation.Nonnull String region,
+ @javax.annotation.Nonnull String projectId,
+ 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/regions/{region}/project/{projectId}/locks"
+ .replace(
+ "{" + "region" + "}",
+ localVarApiClient.escapeString(region.toString()))
+ .replace(
+ "{" + "projectId" + "}",
+ localVarApiClient.escapeString(projectId.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 disableLockValidateBeforeCall(
+ @javax.annotation.Nonnull String region,
+ @javax.annotation.Nonnull String projectId,
+ final ApiCallback _callback)
+ throws ApiException {
+ // verify the required parameter 'region' is set
+ if (region == null) {
+ throw new ApiException(
+ "Missing the required parameter 'region' when calling disableLock(Async)");
+ }
+
+ // verify the required parameter 'projectId' is set
+ if (projectId == null) {
+ throw new ApiException(
+ "Missing the required parameter 'projectId' when calling disableLock(Async)");
+ }
+
+ return disableLockCall(region, projectId, _callback);
+ }
+
+ /**
+ * Clean up locks for a project so that it can be deleted successfully.
+ *
+ * @param region (required)
+ * @param projectId (required)
+ * @return Object
+ * @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 OK -
+ * 0 Default error response -
+ *
+ */
+ public Object disableLock(
+ @javax.annotation.Nonnull String region, @javax.annotation.Nonnull String projectId)
+ throws ApiException {
+ ApiResponse localVarResp = disableLockWithHttpInfo(region, projectId);
+ return localVarResp.getData();
+ }
+
+ /**
+ * Clean up locks for a project so that it can be deleted successfully.
+ *
+ * @param region (required)
+ * @param projectId (required)
+ * @return ApiResponse<Object>
+ * @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 OK -
+ * 0 Default error response -
+ *
+ */
+ public ApiResponse disableLockWithHttpInfo(
+ @javax.annotation.Nonnull String region, @javax.annotation.Nonnull String projectId)
+ throws ApiException {
+ okhttp3.Call localVarCall = disableLockValidateBeforeCall(region, projectId, null);
+ Type localVarReturnType = new TypeToken() {}.getType();
+ return localVarApiClient.execute(localVarCall, localVarReturnType);
+ }
+
+ /**
+ * (asynchronously) Clean up locks for a project so that it can be deleted successfully.
+ *
+ * @param region (required)
+ * @param projectId (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 OK -
+ * 0 Default error response -
+ *
+ */
+ public okhttp3.Call disableLockAsync(
+ @javax.annotation.Nonnull String region,
+ @javax.annotation.Nonnull String projectId,
+ final ApiCallback _callback)
+ throws ApiException {
+
+ okhttp3.Call localVarCall = disableLockValidateBeforeCall(region, projectId, _callback);
+ Type localVarReturnType = new TypeToken() {}.getType();
+ localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
+ return localVarCall;
+ }
+
+ /**
+ * Build call for enableLock
+ *
+ * @param region (required)
+ * @param projectId (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 OK -
+ * 0 Default error response -
+ *
+ */
+ public okhttp3.Call enableLockCall(
+ @javax.annotation.Nonnull String region,
+ @javax.annotation.Nonnull String projectId,
+ 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/regions/{region}/project/{projectId}/locks"
+ .replace(
+ "{" + "region" + "}",
+ localVarApiClient.escapeString(region.toString()))
+ .replace(
+ "{" + "projectId" + "}",
+ localVarApiClient.escapeString(projectId.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,
+ "POST",
+ localVarQueryParams,
+ localVarCollectionQueryParams,
+ localVarPostBody,
+ localVarHeaderParams,
+ localVarCookieParams,
+ localVarFormParams,
+ localVarAuthNames,
+ _callback);
+ }
+
+ @SuppressWarnings("rawtypes")
+ private okhttp3.Call enableLockValidateBeforeCall(
+ @javax.annotation.Nonnull String region,
+ @javax.annotation.Nonnull String projectId,
+ final ApiCallback _callback)
+ throws ApiException {
+ // verify the required parameter 'region' is set
+ if (region == null) {
+ throw new ApiException(
+ "Missing the required parameter 'region' when calling enableLock(Async)");
+ }
+
+ // verify the required parameter 'projectId' is set
+ if (projectId == null) {
+ throw new ApiException(
+ "Missing the required parameter 'projectId' when calling enableLock(Async)");
+ }
+
+ return enableLockCall(region, projectId, _callback);
+ }
+
+ /**
+ * Enable Lock for a project. Necessary for immutable snapshots and to prevent accidental
+ * deletion of resources.
+ *
+ * @param region (required)
+ * @param projectId (required)
+ * @return EnableLockResponse
+ * @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 OK -
+ * 0 Default error response -
+ *
+ */
+ public EnableLockResponse enableLock(
+ @javax.annotation.Nonnull String region, @javax.annotation.Nonnull String projectId)
+ throws ApiException {
+ ApiResponse localVarResp = enableLockWithHttpInfo(region, projectId);
+ return localVarResp.getData();
+ }
+
+ /**
+ * Enable Lock for a project. Necessary for immutable snapshots and to prevent accidental
+ * deletion of resources.
+ *
+ * @param region (required)
+ * @param projectId (required)
+ * @return ApiResponse<EnableLockResponse>
+ * @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 OK -
+ * 0 Default error response -
+ *
+ */
+ public ApiResponse enableLockWithHttpInfo(
+ @javax.annotation.Nonnull String region, @javax.annotation.Nonnull String projectId)
+ throws ApiException {
+ okhttp3.Call localVarCall = enableLockValidateBeforeCall(region, projectId, null);
+ Type localVarReturnType = new TypeToken() {}.getType();
+ return localVarApiClient.execute(localVarCall, localVarReturnType);
+ }
+
+ /**
+ * (asynchronously) Enable Lock for a project. Necessary for immutable snapshots and to prevent
+ * accidental deletion of resources.
+ *
+ * @param region (required)
+ * @param projectId (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 OK -
+ * 0 Default error response -
+ *
+ */
+ public okhttp3.Call enableLockAsync(
+ @javax.annotation.Nonnull String region,
+ @javax.annotation.Nonnull String projectId,
+ final ApiCallback _callback)
+ throws ApiException {
+
+ okhttp3.Call localVarCall = enableLockValidateBeforeCall(region, projectId, _callback);
+ Type localVarReturnType = new TypeToken() {}.getType();
+ localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
+ return localVarCall;
+ }
+
+ /**
+ * Build call for getLock
+ *
+ * @param region (required)
+ * @param projectId (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 OK -
+ *
+ */
+ public okhttp3.Call getLockCall(
+ @javax.annotation.Nonnull String region,
+ @javax.annotation.Nonnull String projectId,
+ 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/regions/{region}/project/{projectId}/locks"
+ .replace(
+ "{" + "region" + "}",
+ localVarApiClient.escapeString(region.toString()))
+ .replace(
+ "{" + "projectId" + "}",
+ localVarApiClient.escapeString(projectId.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 getLockValidateBeforeCall(
+ @javax.annotation.Nonnull String region,
+ @javax.annotation.Nonnull String projectId,
+ final ApiCallback _callback)
+ throws ApiException {
+ // verify the required parameter 'region' is set
+ if (region == null) {
+ throw new ApiException(
+ "Missing the required parameter 'region' when calling getLock(Async)");
+ }
+
+ // verify the required parameter 'projectId' is set
+ if (projectId == null) {
+ throw new ApiException(
+ "Missing the required parameter 'projectId' when calling getLock(Async)");
+ }
+
+ return getLockCall(region, projectId, _callback);
+ }
+
+ /**
+ * Get lock status for a project.
+ *
+ * @param region (required)
+ * @param projectId (required)
+ * @return GetLockResponse
+ * @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 OK -
+ *
+ */
+ public GetLockResponse getLock(
+ @javax.annotation.Nonnull String region, @javax.annotation.Nonnull String projectId)
+ throws ApiException {
+ ApiResponse localVarResp = getLockWithHttpInfo(region, projectId);
+ return localVarResp.getData();
+ }
+
+ /**
+ * Get lock status for a project.
+ *
+ * @param region (required)
+ * @param projectId (required)
+ * @return ApiResponse<GetLockResponse>
+ * @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 OK -
+ *
+ */
+ public ApiResponse getLockWithHttpInfo(
+ @javax.annotation.Nonnull String region, @javax.annotation.Nonnull String projectId)
+ throws ApiException {
+ okhttp3.Call localVarCall = getLockValidateBeforeCall(region, projectId, null);
+ Type localVarReturnType = new TypeToken() {}.getType();
+ return localVarApiClient.execute(localVarCall, localVarReturnType);
+ }
+
+ /**
+ * (asynchronously) Get lock status for a project.
+ *
+ * @param region (required)
+ * @param projectId (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 OK -
+ *
+ */
+ public okhttp3.Call getLockAsync(
+ @javax.annotation.Nonnull String region,
+ @javax.annotation.Nonnull String projectId,
+ final ApiCallback _callback)
+ throws ApiException {
+
+ okhttp3.Call localVarCall = getLockValidateBeforeCall(region, projectId, _callback);
+ Type localVarReturnType = new TypeToken() {}.getType();
+ localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
+ return localVarCall;
+ }
+
/**
* Build call for getResourcePool
*
* @param projectId (required)
- * @param region (required)
- * @param resourcePoolId (required)
+ * @param region (required)
+ * @param resourcePoolId (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 OK -
+ * 400 Some fields of the request have failed the validation procedure. -
+ * 401 Please make sure the Authorization Header is set and uses correct credentials -
+ * 500 Please retry again later or contact support if the issue persists -
+ *
+ */
+ public okhttp3.Call getResourcePoolCall(
+ @javax.annotation.Nonnull String projectId,
+ @javax.annotation.Nonnull String region,
+ @javax.annotation.Nonnull String resourcePoolId,
+ 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}/regions/{region}/resourcePools/{resourcePoolId}"
+ .replace(
+ "{" + "projectId" + "}",
+ localVarApiClient.escapeString(projectId.toString()))
+ .replace(
+ "{" + "region" + "}",
+ localVarApiClient.escapeString(region.toString()))
+ .replace(
+ "{" + "resourcePoolId" + "}",
+ localVarApiClient.escapeString(resourcePoolId.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", "application/problem+json", "text/plain"
+ };
+ 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 getResourcePoolValidateBeforeCall(
+ @javax.annotation.Nonnull String projectId,
+ @javax.annotation.Nonnull String region,
+ @javax.annotation.Nonnull String resourcePoolId,
+ 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 getResourcePool(Async)");
+ }
+
+ // verify the required parameter 'region' is set
+ if (region == null) {
+ throw new ApiException(
+ "Missing the required parameter 'region' when calling getResourcePool(Async)");
+ }
+
+ // verify the required parameter 'resourcePoolId' is set
+ if (resourcePoolId == null) {
+ throw new ApiException(
+ "Missing the required parameter 'resourcePoolId' when calling getResourcePool(Async)");
+ }
+
+ return getResourcePoolCall(projectId, region, resourcePoolId, _callback);
+ }
+
+ /**
+ * Get Resource Pool Retrieves a Resource Pool in a project.
+ *
+ * @param projectId (required)
+ * @param region (required)
+ * @param resourcePoolId (required)
+ * @return GetResourcePoolResponse
+ * @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 OK -
+ * 400 Some fields of the request have failed the validation procedure. -
+ * 401 Please make sure the Authorization Header is set and uses correct credentials -
+ * 500 Please retry again later or contact support if the issue persists -
+ *
+ */
+ public GetResourcePoolResponse getResourcePool(
+ @javax.annotation.Nonnull String projectId,
+ @javax.annotation.Nonnull String region,
+ @javax.annotation.Nonnull String resourcePoolId)
+ throws ApiException {
+ ApiResponse localVarResp =
+ getResourcePoolWithHttpInfo(projectId, region, resourcePoolId);
+ return localVarResp.getData();
+ }
+
+ /**
+ * Get Resource Pool Retrieves a Resource Pool in a project.
+ *
+ * @param projectId (required)
+ * @param region (required)
+ * @param resourcePoolId (required)
+ * @return ApiResponse<GetResourcePoolResponse>
+ * @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 OK -
+ * 400 Some fields of the request have failed the validation procedure. -
+ * 401 Please make sure the Authorization Header is set and uses correct credentials -
+ * 500 Please retry again later or contact support if the issue persists -
+ *
+ */
+ public ApiResponse getResourcePoolWithHttpInfo(
+ @javax.annotation.Nonnull String projectId,
+ @javax.annotation.Nonnull String region,
+ @javax.annotation.Nonnull String resourcePoolId)
+ throws ApiException {
+ okhttp3.Call localVarCall =
+ getResourcePoolValidateBeforeCall(projectId, region, resourcePoolId, null);
+ Type localVarReturnType = new TypeToken() {}.getType();
+ return localVarApiClient.execute(localVarCall, localVarReturnType);
+ }
+
+ /**
+ * Get Resource Pool (asynchronously) Retrieves a Resource Pool in a project.
+ *
+ * @param projectId (required)
+ * @param region (required)
+ * @param resourcePoolId (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 OK -
+ * 400 Some fields of the request have failed the validation procedure. -
+ * 401 Please make sure the Authorization Header is set and uses correct credentials -
+ * 500 Please retry again later or contact support if the issue persists -
+ *
+ */
+ public okhttp3.Call getResourcePoolAsync(
+ @javax.annotation.Nonnull String projectId,
+ @javax.annotation.Nonnull String region,
+ @javax.annotation.Nonnull String resourcePoolId,
+ final ApiCallback _callback)
+ throws ApiException {
+
+ okhttp3.Call localVarCall =
+ getResourcePoolValidateBeforeCall(projectId, region, resourcePoolId, _callback);
+ Type localVarReturnType = new TypeToken() {}.getType();
+ localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
+ return localVarCall;
+ }
+
+ /**
+ * Build call for getResourcePoolSnapshot
+ *
+ * @param projectId (required)
+ * @param region (required)
+ * @param resourcePoolId (required)
+ * @param snapshotName (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 OK -
+ * 400 Some fields of the request have failed the validation procedure. -
+ * 401 Please make sure the Authorization Header is set and uses correct credentials -
+ * 500 Please retry again later or contact support if the issue persists -
+ *
+ */
+ public okhttp3.Call getResourcePoolSnapshotCall(
+ @javax.annotation.Nonnull String projectId,
+ @javax.annotation.Nonnull String region,
+ @javax.annotation.Nonnull String resourcePoolId,
+ @javax.annotation.Nonnull String snapshotName,
+ 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}/regions/{region}/resourcePools/{resourcePoolId}/snapshots/{snapshotName}"
+ .replace(
+ "{" + "projectId" + "}",
+ localVarApiClient.escapeString(projectId.toString()))
+ .replace(
+ "{" + "region" + "}",
+ localVarApiClient.escapeString(region.toString()))
+ .replace(
+ "{" + "resourcePoolId" + "}",
+ localVarApiClient.escapeString(resourcePoolId.toString()))
+ .replace(
+ "{" + "snapshotName" + "}",
+ localVarApiClient.escapeString(snapshotName.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", "application/problem+json", "text/plain"
+ };
+ 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 getResourcePoolSnapshotValidateBeforeCall(
+ @javax.annotation.Nonnull String projectId,
+ @javax.annotation.Nonnull String region,
+ @javax.annotation.Nonnull String resourcePoolId,
+ @javax.annotation.Nonnull String snapshotName,
+ 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 getResourcePoolSnapshot(Async)");
+ }
+
+ // verify the required parameter 'region' is set
+ if (region == null) {
+ throw new ApiException(
+ "Missing the required parameter 'region' when calling getResourcePoolSnapshot(Async)");
+ }
+
+ // verify the required parameter 'resourcePoolId' is set
+ if (resourcePoolId == null) {
+ throw new ApiException(
+ "Missing the required parameter 'resourcePoolId' when calling getResourcePoolSnapshot(Async)");
+ }
+
+ // verify the required parameter 'snapshotName' is set
+ if (snapshotName == null) {
+ throw new ApiException(
+ "Missing the required parameter 'snapshotName' when calling getResourcePoolSnapshot(Async)");
+ }
+
+ return getResourcePoolSnapshotCall(
+ projectId, region, resourcePoolId, snapshotName, _callback);
+ }
+
+ /**
+ * Get Resource Pool Snapshot Retrieves a Snapshot from a Resource Pool in a project.
+ *
+ * @param projectId (required)
+ * @param region (required)
+ * @param resourcePoolId (required)
+ * @param snapshotName (required)
+ * @return GetResourcePoolSnapshotResponse
+ * @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 OK -
+ * 400 Some fields of the request have failed the validation procedure. -
+ * 401 Please make sure the Authorization Header is set and uses correct credentials -
+ * 500 Please retry again later or contact support if the issue persists -
+ *
+ */
+ public GetResourcePoolSnapshotResponse getResourcePoolSnapshot(
+ @javax.annotation.Nonnull String projectId,
+ @javax.annotation.Nonnull String region,
+ @javax.annotation.Nonnull String resourcePoolId,
+ @javax.annotation.Nonnull String snapshotName)
+ throws ApiException {
+ ApiResponse localVarResp =
+ getResourcePoolSnapshotWithHttpInfo(
+ projectId, region, resourcePoolId, snapshotName);
+ return localVarResp.getData();
+ }
+
+ /**
+ * Get Resource Pool Snapshot Retrieves a Snapshot from a Resource Pool in a project.
+ *
+ * @param projectId (required)
+ * @param region (required)
+ * @param resourcePoolId (required)
+ * @param snapshotName (required)
+ * @return ApiResponse<GetResourcePoolSnapshotResponse>
+ * @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 OK -
+ * 400 Some fields of the request have failed the validation procedure. -
+ * 401 Please make sure the Authorization Header is set and uses correct credentials -
+ * 500 Please retry again later or contact support if the issue persists -
+ *
+ */
+ public ApiResponse getResourcePoolSnapshotWithHttpInfo(
+ @javax.annotation.Nonnull String projectId,
+ @javax.annotation.Nonnull String region,
+ @javax.annotation.Nonnull String resourcePoolId,
+ @javax.annotation.Nonnull String snapshotName)
+ throws ApiException {
+ okhttp3.Call localVarCall =
+ getResourcePoolSnapshotValidateBeforeCall(
+ projectId, region, resourcePoolId, snapshotName, null);
+ Type localVarReturnType = new TypeToken() {}.getType();
+ return localVarApiClient.execute(localVarCall, localVarReturnType);
+ }
+
+ /**
+ * Get Resource Pool Snapshot (asynchronously) Retrieves a Snapshot from a Resource Pool in a
+ * project.
+ *
+ * @param projectId (required)
+ * @param region (required)
+ * @param resourcePoolId (required)
+ * @param snapshotName (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 OK -
+ * 400 Some fields of the request have failed the validation procedure. -
+ * 401 Please make sure the Authorization Header is set and uses correct credentials -
+ * 500 Please retry again later or contact support if the issue persists -
+ *
+ */
+ public okhttp3.Call getResourcePoolSnapshotAsync(
+ @javax.annotation.Nonnull String projectId,
+ @javax.annotation.Nonnull String region,
+ @javax.annotation.Nonnull String resourcePoolId,
+ @javax.annotation.Nonnull String snapshotName,
+ final ApiCallback _callback)
+ throws ApiException {
+
+ okhttp3.Call localVarCall =
+ getResourcePoolSnapshotValidateBeforeCall(
+ projectId, region, resourcePoolId, snapshotName, _callback);
+ Type localVarReturnType = new TypeToken() {}.getType();
+ localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
+ return localVarCall;
+ }
+
+ /**
+ * Build call for getSchedule
+ *
+ * @param projectId (required)
+ * @param id (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 OK -
+ * 0 Default error response -
+ *
+ */
+ public okhttp3.Call getScheduleCall(
+ @javax.annotation.Nonnull String projectId,
+ @javax.annotation.Nonnull String id,
+ 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}/schedules/{id}"
+ .replace(
+ "{" + "projectId" + "}",
+ localVarApiClient.escapeString(projectId.toString()))
+ .replace("{" + "id" + "}", localVarApiClient.escapeString(id.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 getScheduleValidateBeforeCall(
+ @javax.annotation.Nonnull String projectId,
+ @javax.annotation.Nonnull String id,
+ 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 getSchedule(Async)");
+ }
+
+ // verify the required parameter 'id' is set
+ if (id == null) {
+ throw new ApiException(
+ "Missing the required parameter 'id' when calling getSchedule(Async)");
+ }
+
+ return getScheduleCall(projectId, id, _callback);
+ }
+
+ /**
+ * Get Schedule
+ *
+ * @param projectId (required)
+ * @param id (required)
+ * @return GetScheduleResponse
+ * @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 OK -
+ * 0 Default error response -
+ *
+ */
+ public GetScheduleResponse getSchedule(
+ @javax.annotation.Nonnull String projectId, @javax.annotation.Nonnull String id)
+ throws ApiException {
+ ApiResponse localVarResp = getScheduleWithHttpInfo(projectId, id);
+ return localVarResp.getData();
+ }
+
+ /**
+ * Get Schedule
+ *
+ * @param projectId (required)
+ * @param id (required)
+ * @return ApiResponse<GetScheduleResponse>
+ * @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 OK -
+ * 0 Default error response -
+ *
+ */
+ public ApiResponse getScheduleWithHttpInfo(
+ @javax.annotation.Nonnull String projectId, @javax.annotation.Nonnull String id)
+ throws ApiException {
+ okhttp3.Call localVarCall = getScheduleValidateBeforeCall(projectId, id, null);
+ Type localVarReturnType = new TypeToken() {}.getType();
+ return localVarApiClient.execute(localVarCall, localVarReturnType);
+ }
+
+ /**
+ * (asynchronously) Get Schedule
+ *
+ * @param projectId (required)
+ * @param id (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 OK -
+ * 0 Default error response -
+ *
+ */
+ public okhttp3.Call getScheduleAsync(
+ @javax.annotation.Nonnull String projectId,
+ @javax.annotation.Nonnull String id,
+ final ApiCallback _callback)
+ throws ApiException {
+
+ okhttp3.Call localVarCall = getScheduleValidateBeforeCall(projectId, id, _callback);
+ Type localVarReturnType = new TypeToken() {}.getType();
+ localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
+ return localVarCall;
+ }
+
+ /**
+ * Build call for getShare
+ *
+ * @param projectId (required)
+ * @param region (required)
+ * @param resourcePoolId (required)
+ * @param shareId (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 OK -
+ * 400 Some fields of the request have failed the validation procedure. -
+ * 401 Please make sure the Authorization Header is set and uses correct credentials -
+ * 500 Please retry again later or contact support if the issue persists -
+ *
+ */
+ public okhttp3.Call getShareCall(
+ @javax.annotation.Nonnull String projectId,
+ @javax.annotation.Nonnull String region,
+ @javax.annotation.Nonnull String resourcePoolId,
+ @javax.annotation.Nonnull String shareId,
+ 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}/regions/{region}/resourcePools/{resourcePoolId}/shares/{shareId}"
+ .replace(
+ "{" + "projectId" + "}",
+ localVarApiClient.escapeString(projectId.toString()))
+ .replace(
+ "{" + "region" + "}",
+ localVarApiClient.escapeString(region.toString()))
+ .replace(
+ "{" + "resourcePoolId" + "}",
+ localVarApiClient.escapeString(resourcePoolId.toString()))
+ .replace(
+ "{" + "shareId" + "}",
+ localVarApiClient.escapeString(shareId.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", "application/problem+json", "text/plain"
+ };
+ 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 getShareValidateBeforeCall(
+ @javax.annotation.Nonnull String projectId,
+ @javax.annotation.Nonnull String region,
+ @javax.annotation.Nonnull String resourcePoolId,
+ @javax.annotation.Nonnull String shareId,
+ 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 getShare(Async)");
+ }
+
+ // verify the required parameter 'region' is set
+ if (region == null) {
+ throw new ApiException(
+ "Missing the required parameter 'region' when calling getShare(Async)");
+ }
+
+ // verify the required parameter 'resourcePoolId' is set
+ if (resourcePoolId == null) {
+ throw new ApiException(
+ "Missing the required parameter 'resourcePoolId' when calling getShare(Async)");
+ }
+
+ // verify the required parameter 'shareId' is set
+ if (shareId == null) {
+ throw new ApiException(
+ "Missing the required parameter 'shareId' when calling getShare(Async)");
+ }
+
+ return getShareCall(projectId, region, resourcePoolId, shareId, _callback);
+ }
+
+ /**
+ * Get Share Retrieves a Shares in a Resource Pool in a project.
+ *
+ * @param projectId (required)
+ * @param region (required)
+ * @param resourcePoolId (required)
+ * @param shareId (required)
+ * @return GetShareResponse
+ * @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 OK -
+ * 400 Some fields of the request have failed the validation procedure. -
+ * 401 Please make sure the Authorization Header is set and uses correct credentials -
+ * 500 Please retry again later or contact support if the issue persists -
+ *
+ */
+ public GetShareResponse getShare(
+ @javax.annotation.Nonnull String projectId,
+ @javax.annotation.Nonnull String region,
+ @javax.annotation.Nonnull String resourcePoolId,
+ @javax.annotation.Nonnull String shareId)
+ throws ApiException {
+ ApiResponse localVarResp =
+ getShareWithHttpInfo(projectId, region, resourcePoolId, shareId);
+ return localVarResp.getData();
+ }
+
+ /**
+ * Get Share Retrieves a Shares in a Resource Pool in a project.
+ *
+ * @param projectId (required)
+ * @param region (required)
+ * @param resourcePoolId (required)
+ * @param shareId (required)
+ * @return ApiResponse<GetShareResponse>
+ * @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 OK -
+ * 400 Some fields of the request have failed the validation procedure. -
+ * 401 Please make sure the Authorization Header is set and uses correct credentials -
+ * 500 Please retry again later or contact support if the issue persists -
+ *
+ */
+ public ApiResponse getShareWithHttpInfo(
+ @javax.annotation.Nonnull String projectId,
+ @javax.annotation.Nonnull String region,
+ @javax.annotation.Nonnull String resourcePoolId,
+ @javax.annotation.Nonnull String shareId)
+ throws ApiException {
+ okhttp3.Call localVarCall =
+ getShareValidateBeforeCall(projectId, region, resourcePoolId, shareId, null);
+ Type localVarReturnType = new TypeToken() {}.getType();
+ return localVarApiClient.execute(localVarCall, localVarReturnType);
+ }
+
+ /**
+ * Get Share (asynchronously) Retrieves a Shares in a Resource Pool in a project.
+ *
+ * @param projectId (required)
+ * @param region (required)
+ * @param resourcePoolId (required)
+ * @param shareId (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 OK -
+ * 400 Some fields of the request have failed the validation procedure. -
+ * 401 Please make sure the Authorization Header is set and uses correct credentials -
+ * 500 Please retry again later or contact support if the issue persists -
+ *
+ */
+ public okhttp3.Call getShareAsync(
+ @javax.annotation.Nonnull String projectId,
+ @javax.annotation.Nonnull String region,
+ @javax.annotation.Nonnull String resourcePoolId,
+ @javax.annotation.Nonnull String shareId,
+ final ApiCallback _callback)
+ throws ApiException {
+
+ okhttp3.Call localVarCall =
+ getShareValidateBeforeCall(projectId, region, resourcePoolId, shareId, _callback);
+ Type localVarReturnType = new TypeToken() {}.getType();
+ localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
+ return localVarCall;
+ }
+
+ /**
+ * Build call for getShareExportPolicy
+ *
+ * @param projectId (required)
+ * @param region (required)
+ * @param policyId (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 OK -
+ * 400 Some fields of the request have failed the validation procedure. -
+ * 401 Please make sure the Authorization Header is set and uses correct credentials -
+ * 500 Please retry again later or contact support if the issue persists -
+ *
+ */
+ public okhttp3.Call getShareExportPolicyCall(
+ @javax.annotation.Nonnull String projectId,
+ @javax.annotation.Nonnull String region,
+ @javax.annotation.Nonnull String policyId,
+ 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}/regions/{region}/shareExportPolicies/{policyId}"
+ .replace(
+ "{" + "projectId" + "}",
+ localVarApiClient.escapeString(projectId.toString()))
+ .replace(
+ "{" + "region" + "}",
+ localVarApiClient.escapeString(region.toString()))
+ .replace(
+ "{" + "policyId" + "}",
+ localVarApiClient.escapeString(policyId.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", "application/problem+json", "text/plain"
+ };
+ 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 getShareExportPolicyValidateBeforeCall(
+ @javax.annotation.Nonnull String projectId,
+ @javax.annotation.Nonnull String region,
+ @javax.annotation.Nonnull String policyId,
+ 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 getShareExportPolicy(Async)");
+ }
+
+ // verify the required parameter 'region' is set
+ if (region == null) {
+ throw new ApiException(
+ "Missing the required parameter 'region' when calling getShareExportPolicy(Async)");
+ }
+
+ // verify the required parameter 'policyId' is set
+ if (policyId == null) {
+ throw new ApiException(
+ "Missing the required parameter 'policyId' when calling getShareExportPolicy(Async)");
+ }
+
+ return getShareExportPolicyCall(projectId, region, policyId, _callback);
+ }
+
+ /**
+ * Get Share Export Policy Retrieves a ShareExportPolicies in a Resource Pool in a project.
+ *
+ * @param projectId (required)
+ * @param region (required)
+ * @param policyId (required)
+ * @return GetShareExportPolicyResponse
+ * @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 OK -
+ * 400 Some fields of the request have failed the validation procedure. -
+ * 401 Please make sure the Authorization Header is set and uses correct credentials -
+ * 500 Please retry again later or contact support if the issue persists -
+ *
+ */
+ public GetShareExportPolicyResponse getShareExportPolicy(
+ @javax.annotation.Nonnull String projectId,
+ @javax.annotation.Nonnull String region,
+ @javax.annotation.Nonnull String policyId)
+ throws ApiException {
+ ApiResponse localVarResp =
+ getShareExportPolicyWithHttpInfo(projectId, region, policyId);
+ return localVarResp.getData();
+ }
+
+ /**
+ * Get Share Export Policy Retrieves a ShareExportPolicies in a Resource Pool in a project.
+ *
+ * @param projectId (required)
+ * @param region (required)
+ * @param policyId (required)
+ * @return ApiResponse<GetShareExportPolicyResponse>
+ * @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 OK -
+ * 400 Some fields of the request have failed the validation procedure. -
+ * 401 Please make sure the Authorization Header is set and uses correct credentials -
+ * 500 Please retry again later or contact support if the issue persists -
+ *
+ */
+ public ApiResponse getShareExportPolicyWithHttpInfo(
+ @javax.annotation.Nonnull String projectId,
+ @javax.annotation.Nonnull String region,
+ @javax.annotation.Nonnull String policyId)
+ throws ApiException {
+ okhttp3.Call localVarCall =
+ getShareExportPolicyValidateBeforeCall(projectId, region, policyId, null);
+ Type localVarReturnType = new TypeToken() {}.getType();
+ return localVarApiClient.execute(localVarCall, localVarReturnType);
+ }
+
+ /**
+ * Get Share Export Policy (asynchronously) Retrieves a ShareExportPolicies in a Resource Pool
+ * in a project.
+ *
+ * @param projectId (required)
+ * @param region (required)
+ * @param policyId (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 OK -
+ * 400 Some fields of the request have failed the validation procedure. -
+ * 401 Please make sure the Authorization Header is set and uses correct credentials -
+ * 500 Please retry again later or contact support if the issue persists -
+ *
+ */
+ public okhttp3.Call getShareExportPolicyAsync(
+ @javax.annotation.Nonnull String projectId,
+ @javax.annotation.Nonnull String region,
+ @javax.annotation.Nonnull String policyId,
+ final ApiCallback _callback)
+ throws ApiException {
+
+ okhttp3.Call localVarCall =
+ getShareExportPolicyValidateBeforeCall(projectId, region, policyId, _callback);
+ Type localVarReturnType = new TypeToken() {}.getType();
+ localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
+ return localVarCall;
+ }
+
+ /**
+ * Build call for getSnapshotPolicy
+ *
+ * @param projectId (required)
+ * @param id (required)
* @param _callback Callback for upload/download progress
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
@@ -1911,15 +3505,12 @@ public okhttp3.Call deleteShareExportPolicyAsync(
* Response Details
* Status Code Description Response Headers
* 200 OK -
- * 400 Some fields of the request have failed the validation procedure. -
- * 401 Please make sure the Authorization Header is set and uses correct credentials -
- * 500 Please retry again later or contact support if the issue persists -
+ * 0 Default error response -
*
*/
- public okhttp3.Call getResourcePoolCall(
+ public okhttp3.Call getSnapshotPolicyCall(
@javax.annotation.Nonnull String projectId,
- @javax.annotation.Nonnull String region,
- @javax.annotation.Nonnull String resourcePoolId,
+ @javax.annotation.Nonnull String id,
final ApiCallback _callback)
throws ApiException {
String basePath = null;
@@ -1939,16 +3530,11 @@ public okhttp3.Call getResourcePoolCall(
// create path and map variables
String localVarPath =
- "/v1/projects/{projectId}/regions/{region}/resourcePools/{resourcePoolId}"
+ "/v1/projects/{projectId}/snapshotPolicies/{id}"
.replace(
"{" + "projectId" + "}",
localVarApiClient.escapeString(projectId.toString()))
- .replace(
- "{" + "region" + "}",
- localVarApiClient.escapeString(region.toString()))
- .replace(
- "{" + "resourcePoolId" + "}",
- localVarApiClient.escapeString(resourcePoolId.toString()));
+ .replace("{" + "id" + "}", localVarApiClient.escapeString(id.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
@@ -1956,9 +3542,7 @@ public okhttp3.Call getResourcePoolCall(
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
- final String[] localVarAccepts = {
- "application/json", "application/problem+json", "text/plain"
- };
+ final String[] localVarAccepts = {"application/json"};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
if (localVarAccept != null) {
localVarHeaderParams.put("Accept", localVarAccept);
@@ -1987,40 +3571,32 @@ public okhttp3.Call getResourcePoolCall(
}
@SuppressWarnings("rawtypes")
- private okhttp3.Call getResourcePoolValidateBeforeCall(
+ private okhttp3.Call getSnapshotPolicyValidateBeforeCall(
@javax.annotation.Nonnull String projectId,
- @javax.annotation.Nonnull String region,
- @javax.annotation.Nonnull String resourcePoolId,
+ @javax.annotation.Nonnull String id,
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 getResourcePool(Async)");
- }
-
- // verify the required parameter 'region' is set
- if (region == null) {
- throw new ApiException(
- "Missing the required parameter 'region' when calling getResourcePool(Async)");
+ "Missing the required parameter 'projectId' when calling getSnapshotPolicy(Async)");
}
- // verify the required parameter 'resourcePoolId' is set
- if (resourcePoolId == null) {
+ // verify the required parameter 'id' is set
+ if (id == null) {
throw new ApiException(
- "Missing the required parameter 'resourcePoolId' when calling getResourcePool(Async)");
+ "Missing the required parameter 'id' when calling getSnapshotPolicy(Async)");
}
- return getResourcePoolCall(projectId, region, resourcePoolId, _callback);
+ return getSnapshotPolicyCall(projectId, id, _callback);
}
/**
- * Get Resource Pool Retrieves a Resource Pool in a project.
+ * Get Snapshot Policy
*
* @param projectId (required)
- * @param region (required)
- * @param resourcePoolId (required)
- * @return GetResourcePoolResponse
+ * @param id (required)
+ * @return GetSnapshotPolicyResponse
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the
* response body
* @http.response.details
@@ -2028,28 +3604,23 @@ private okhttp3.Call getResourcePoolValidateBeforeCall(
* Response Details
* Status Code Description Response Headers
* 200 OK -
- * 400 Some fields of the request have failed the validation procedure. -
- * 401 Please make sure the Authorization Header is set and uses correct credentials -
- * 500 Please retry again later or contact support if the issue persists -
+ * 0 Default error response -
*
*/
- public GetResourcePoolResponse getResourcePool(
- @javax.annotation.Nonnull String projectId,
- @javax.annotation.Nonnull String region,
- @javax.annotation.Nonnull String resourcePoolId)
+ public GetSnapshotPolicyResponse getSnapshotPolicy(
+ @javax.annotation.Nonnull String projectId, @javax.annotation.Nonnull String id)
throws ApiException {
- ApiResponse localVarResp =
- getResourcePoolWithHttpInfo(projectId, region, resourcePoolId);
+ ApiResponse localVarResp =
+ getSnapshotPolicyWithHttpInfo(projectId, id);
return localVarResp.getData();
}
/**
- * Get Resource Pool Retrieves a Resource Pool in a project.
+ * Get Snapshot Policy
*
* @param projectId (required)
- * @param region (required)
- * @param resourcePoolId (required)
- * @return ApiResponse<GetResourcePoolResponse>
+ * @param id (required)
+ * @return ApiResponse<GetSnapshotPolicyResponse>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the
* response body
* @http.response.details
@@ -2057,28 +3628,22 @@ public GetResourcePoolResponse getResourcePool(
* Response Details
* Status Code Description Response Headers
* 200 OK -
- * 400 Some fields of the request have failed the validation procedure. -
- * 401 Please make sure the Authorization Header is set and uses correct credentials -
- * 500 Please retry again later or contact support if the issue persists -
+ * 0 Default error response -
*
*/
- public ApiResponse getResourcePoolWithHttpInfo(
- @javax.annotation.Nonnull String projectId,
- @javax.annotation.Nonnull String region,
- @javax.annotation.Nonnull String resourcePoolId)
+ public ApiResponse getSnapshotPolicyWithHttpInfo(
+ @javax.annotation.Nonnull String projectId, @javax.annotation.Nonnull String id)
throws ApiException {
- okhttp3.Call localVarCall =
- getResourcePoolValidateBeforeCall(projectId, region, resourcePoolId, null);
- Type localVarReturnType = new TypeToken() {}.getType();
+ okhttp3.Call localVarCall = getSnapshotPolicyValidateBeforeCall(projectId, id, null);
+ Type localVarReturnType = new TypeToken() {}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
/**
- * Get Resource Pool (asynchronously) Retrieves a Resource Pool in a project.
+ * (asynchronously) Get Snapshot Policy
*
* @param projectId (required)
- * @param region (required)
- * @param resourcePoolId (required)
+ * @param id (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
@@ -2088,32 +3653,24 @@ public ApiResponse getResourcePoolWithHttpInfo(
* Response Details
* Status Code Description Response Headers
* 200 OK -
- * 400 Some fields of the request have failed the validation procedure. -
- * 401 Please make sure the Authorization Header is set and uses correct credentials -
- * 500 Please retry again later or contact support if the issue persists -
+ * 0 Default error response -
*
*/
- public okhttp3.Call getResourcePoolAsync(
+ public okhttp3.Call getSnapshotPolicyAsync(
@javax.annotation.Nonnull String projectId,
- @javax.annotation.Nonnull String region,
- @javax.annotation.Nonnull String resourcePoolId,
- final ApiCallback _callback)
+ @javax.annotation.Nonnull String id,
+ final ApiCallback _callback)
throws ApiException {
- okhttp3.Call localVarCall =
- getResourcePoolValidateBeforeCall(projectId, region, resourcePoolId, _callback);
- Type localVarReturnType = new TypeToken() {}.getType();
+ okhttp3.Call localVarCall = getSnapshotPolicyValidateBeforeCall(projectId, id, _callback);
+ Type localVarReturnType = new TypeToken() {}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
/**
- * Build call for getResourcePoolSnapshot
+ * Build call for listPerformanceClasses
*
- * @param projectId (required)
- * @param region (required)
- * @param resourcePoolId (required)
- * @param snapshotName (required)
* @param _callback Callback for upload/download progress
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
@@ -2127,12 +3684,7 @@ public okhttp3.Call getResourcePoolAsync(
* 500 Please retry again later or contact support if the issue persists -
*
*/
- public okhttp3.Call getResourcePoolSnapshotCall(
- @javax.annotation.Nonnull String projectId,
- @javax.annotation.Nonnull String region,
- @javax.annotation.Nonnull String resourcePoolId,
- @javax.annotation.Nonnull String snapshotName,
- final ApiCallback _callback)
+ public okhttp3.Call listPerformanceClassesCall(final ApiCallback _callback)
throws ApiException {
String basePath = null;
// Operation Servers
@@ -2150,20 +3702,7 @@ public okhttp3.Call getResourcePoolSnapshotCall(
Object localVarPostBody = null;
// create path and map variables
- String localVarPath =
- "/v1/projects/{projectId}/regions/{region}/resourcePools/{resourcePoolId}/snapshots/{snapshotName}"
- .replace(
- "{" + "projectId" + "}",
- localVarApiClient.escapeString(projectId.toString()))
- .replace(
- "{" + "region" + "}",
- localVarApiClient.escapeString(region.toString()))
- .replace(
- "{" + "resourcePoolId" + "}",
- localVarApiClient.escapeString(resourcePoolId.toString()))
- .replace(
- "{" + "snapshotName" + "}",
- localVarApiClient.escapeString(snapshotName.toString()));
+ String localVarPath = "/v1/resourcePoolPerformanceClasses";
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
@@ -2202,49 +3741,15 @@ public okhttp3.Call getResourcePoolSnapshotCall(
}
@SuppressWarnings("rawtypes")
- private okhttp3.Call getResourcePoolSnapshotValidateBeforeCall(
- @javax.annotation.Nonnull String projectId,
- @javax.annotation.Nonnull String region,
- @javax.annotation.Nonnull String resourcePoolId,
- @javax.annotation.Nonnull String snapshotName,
- final ApiCallback _callback)
+ private okhttp3.Call listPerformanceClassesValidateBeforeCall(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 getResourcePoolSnapshot(Async)");
- }
-
- // verify the required parameter 'region' is set
- if (region == null) {
- throw new ApiException(
- "Missing the required parameter 'region' when calling getResourcePoolSnapshot(Async)");
- }
-
- // verify the required parameter 'resourcePoolId' is set
- if (resourcePoolId == null) {
- throw new ApiException(
- "Missing the required parameter 'resourcePoolId' when calling getResourcePoolSnapshot(Async)");
- }
-
- // verify the required parameter 'snapshotName' is set
- if (snapshotName == null) {
- throw new ApiException(
- "Missing the required parameter 'snapshotName' when calling getResourcePoolSnapshot(Async)");
- }
-
- return getResourcePoolSnapshotCall(
- projectId, region, resourcePoolId, snapshotName, _callback);
+ return listPerformanceClassesCall(_callback);
}
/**
- * Get Resource Pool Snapshot Retrieves a Snapshot from a Resource Pool in a project.
+ * List Resource Performance Classes Lists all performances classes available
*
- * @param projectId (required)
- * @param region (required)
- * @param resourcePoolId (required)
- * @param snapshotName (required)
- * @return GetResourcePoolSnapshotResponse
+ * @return ListPerformanceClassesResponse
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the
* response body
* @http.response.details
@@ -2257,26 +3762,16 @@ private okhttp3.Call getResourcePoolSnapshotValidateBeforeCall(
* 500 Please retry again later or contact support if the issue persists -
*
*/
- public GetResourcePoolSnapshotResponse getResourcePoolSnapshot(
- @javax.annotation.Nonnull String projectId,
- @javax.annotation.Nonnull String region,
- @javax.annotation.Nonnull String resourcePoolId,
- @javax.annotation.Nonnull String snapshotName)
- throws ApiException {
- ApiResponse localVarResp =
- getResourcePoolSnapshotWithHttpInfo(
- projectId, region, resourcePoolId, snapshotName);
+ public ListPerformanceClassesResponse listPerformanceClasses() throws ApiException {
+ ApiResponse localVarResp =
+ listPerformanceClassesWithHttpInfo();
return localVarResp.getData();
}
/**
- * Get Resource Pool Snapshot Retrieves a Snapshot from a Resource Pool in a project.
+ * List Resource Performance Classes Lists all performances classes available
*
- * @param projectId (required)
- * @param region (required)
- * @param resourcePoolId (required)
- * @param snapshotName (required)
- * @return ApiResponse<GetResourcePoolSnapshotResponse>
+ * @return ApiResponse<ListPerformanceClassesResponse>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the
* response body
* @http.response.details
@@ -2289,27 +3784,16 @@ public GetResourcePoolSnapshotResponse getResourcePoolSnapshot(
* 500 Please retry again later or contact support if the issue persists -
*
*/
- public ApiResponse getResourcePoolSnapshotWithHttpInfo(
- @javax.annotation.Nonnull String projectId,
- @javax.annotation.Nonnull String region,
- @javax.annotation.Nonnull String resourcePoolId,
- @javax.annotation.Nonnull String snapshotName)
+ public ApiResponse listPerformanceClassesWithHttpInfo()
throws ApiException {
- okhttp3.Call localVarCall =
- getResourcePoolSnapshotValidateBeforeCall(
- projectId, region, resourcePoolId, snapshotName, null);
- Type localVarReturnType = new TypeToken() {}.getType();
+ okhttp3.Call localVarCall = listPerformanceClassesValidateBeforeCall(null);
+ Type localVarReturnType = new TypeToken() {}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
/**
- * Get Resource Pool Snapshot (asynchronously) Retrieves a Snapshot from a Resource Pool in a
- * project.
+ * List Resource Performance Classes (asynchronously) Lists all performances classes available
*
- * @param projectId (required)
- * @param region (required)
- * @param resourcePoolId (required)
- * @param snapshotName (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
@@ -2324,29 +3808,21 @@ public ApiResponse getResourcePoolSnapshotWithH
* 500 Please retry again later or contact support if the issue persists -
*
*/
- public okhttp3.Call getResourcePoolSnapshotAsync(
- @javax.annotation.Nonnull String projectId,
- @javax.annotation.Nonnull String region,
- @javax.annotation.Nonnull String resourcePoolId,
- @javax.annotation.Nonnull String snapshotName,
- final ApiCallback _callback)
- throws ApiException {
+ public okhttp3.Call listPerformanceClassesAsync(
+ final ApiCallback _callback) throws ApiException {
- okhttp3.Call localVarCall =
- getResourcePoolSnapshotValidateBeforeCall(
- projectId, region, resourcePoolId, snapshotName, _callback);
- Type localVarReturnType = new TypeToken() {}.getType();
+ okhttp3.Call localVarCall = listPerformanceClassesValidateBeforeCall(_callback);
+ Type localVarReturnType = new TypeToken() {}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
/**
- * Build call for getShare
+ * Build call for listResourcePoolSnapshots
*
* @param projectId (required)
* @param region (required)
* @param resourcePoolId (required)
- * @param shareId (required)
* @param _callback Callback for upload/download progress
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
@@ -2360,11 +3836,10 @@ public okhttp3.Call getResourcePoolSnapshotAsync(
* 500 Please retry again later or contact support if the issue persists -
*
*/
- public okhttp3.Call getShareCall(
+ public okhttp3.Call listResourcePoolSnapshotsCall(
@javax.annotation.Nonnull String projectId,
@javax.annotation.Nonnull String region,
@javax.annotation.Nonnull String resourcePoolId,
- @javax.annotation.Nonnull String shareId,
final ApiCallback _callback)
throws ApiException {
String basePath = null;
@@ -2384,7 +3859,7 @@ public okhttp3.Call getShareCall(
// create path and map variables
String localVarPath =
- "/v1/projects/{projectId}/regions/{region}/resourcePools/{resourcePoolId}/shares/{shareId}"
+ "/v1/projects/{projectId}/regions/{region}/resourcePools/{resourcePoolId}/snapshots"
.replace(
"{" + "projectId" + "}",
localVarApiClient.escapeString(projectId.toString()))
@@ -2393,10 +3868,7 @@ public okhttp3.Call getShareCall(
localVarApiClient.escapeString(region.toString()))
.replace(
"{" + "resourcePoolId" + "}",
- localVarApiClient.escapeString(resourcePoolId.toString()))
- .replace(
- "{" + "shareId" + "}",
- localVarApiClient.escapeString(shareId.toString()));
+ localVarApiClient.escapeString(resourcePoolId.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
@@ -2435,48 +3907,40 @@ public okhttp3.Call getShareCall(
}
@SuppressWarnings("rawtypes")
- private okhttp3.Call getShareValidateBeforeCall(
+ private okhttp3.Call listResourcePoolSnapshotsValidateBeforeCall(
@javax.annotation.Nonnull String projectId,
@javax.annotation.Nonnull String region,
@javax.annotation.Nonnull String resourcePoolId,
- @javax.annotation.Nonnull String shareId,
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 getShare(Async)");
+ "Missing the required parameter 'projectId' when calling listResourcePoolSnapshots(Async)");
}
// verify the required parameter 'region' is set
if (region == null) {
throw new ApiException(
- "Missing the required parameter 'region' when calling getShare(Async)");
+ "Missing the required parameter 'region' when calling listResourcePoolSnapshots(Async)");
}
// verify the required parameter 'resourcePoolId' is set
if (resourcePoolId == null) {
throw new ApiException(
- "Missing the required parameter 'resourcePoolId' when calling getShare(Async)");
- }
-
- // verify the required parameter 'shareId' is set
- if (shareId == null) {
- throw new ApiException(
- "Missing the required parameter 'shareId' when calling getShare(Async)");
+ "Missing the required parameter 'resourcePoolId' when calling listResourcePoolSnapshots(Async)");
}
- return getShareCall(projectId, region, resourcePoolId, shareId, _callback);
+ return listResourcePoolSnapshotsCall(projectId, region, resourcePoolId, _callback);
}
/**
- * Get Share Retrieves a Shares in a Resource Pool in a project.
+ * List Resource Pool Snapshots Lists the Snapshots of a Resource Pool in a project.
*
* @param projectId (required)
* @param region (required)
* @param resourcePoolId (required)
- * @param shareId (required)
- * @return GetShareResponse
+ * @return ListResourcePoolSnapshotsResponse
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the
* response body
* @http.response.details
@@ -2489,25 +3953,23 @@ private okhttp3.Call getShareValidateBeforeCall(
* 500 Please retry again later or contact support if the issue persists -
*
*/
- public GetShareResponse getShare(
+ public ListResourcePoolSnapshotsResponse listResourcePoolSnapshots(
@javax.annotation.Nonnull String projectId,
@javax.annotation.Nonnull String region,
- @javax.annotation.Nonnull String resourcePoolId,
- @javax.annotation.Nonnull String shareId)
+ @javax.annotation.Nonnull String resourcePoolId)
throws ApiException {
- ApiResponse localVarResp =
- getShareWithHttpInfo(projectId, region, resourcePoolId, shareId);
+ ApiResponse localVarResp =
+ listResourcePoolSnapshotsWithHttpInfo(projectId, region, resourcePoolId);
return localVarResp.getData();
}
/**
- * Get Share Retrieves a Shares in a Resource Pool in a project.
+ * List Resource Pool Snapshots Lists the Snapshots of a Resource Pool in a project.
*
* @param projectId (required)
* @param region (required)
* @param resourcePoolId (required)
- * @param shareId (required)
- * @return ApiResponse<GetShareResponse>
+ * @return ApiResponse<ListResourcePoolSnapshotsResponse>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the
* response body
* @http.response.details
@@ -2520,25 +3982,25 @@ public GetShareResponse getShare(
* 500 Please retry again later or contact support if the issue persists -
*
*/
- public ApiResponse getShareWithHttpInfo(
+ public ApiResponse listResourcePoolSnapshotsWithHttpInfo(
@javax.annotation.Nonnull String projectId,
@javax.annotation.Nonnull String region,
- @javax.annotation.Nonnull String resourcePoolId,
- @javax.annotation.Nonnull String shareId)
+ @javax.annotation.Nonnull String resourcePoolId)
throws ApiException {
okhttp3.Call localVarCall =
- getShareValidateBeforeCall(projectId, region, resourcePoolId, shareId, null);
- Type localVarReturnType = new TypeToken() {}.getType();
+ listResourcePoolSnapshotsValidateBeforeCall(
+ projectId, region, resourcePoolId, null);
+ Type localVarReturnType = new TypeToken() {}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
/**
- * Get Share (asynchronously) Retrieves a Shares in a Resource Pool in a project.
+ * List Resource Pool Snapshots (asynchronously) Lists the Snapshots of a Resource Pool in a
+ * project.
*
* @param projectId (required)
* @param region (required)
* @param resourcePoolId (required)
- * @param shareId (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
@@ -2553,27 +4015,26 @@ public ApiResponse getShareWithHttpInfo(
* 500 Please retry again later or contact support if the issue persists -
*
*/
- public okhttp3.Call getShareAsync(
+ public okhttp3.Call listResourcePoolSnapshotsAsync(
@javax.annotation.Nonnull String projectId,
@javax.annotation.Nonnull String region,
@javax.annotation.Nonnull String resourcePoolId,
- @javax.annotation.Nonnull String shareId,
- final ApiCallback _callback)
+ final ApiCallback _callback)
throws ApiException {
okhttp3.Call localVarCall =
- getShareValidateBeforeCall(projectId, region, resourcePoolId, shareId, _callback);
- Type localVarReturnType = new TypeToken() {}.getType();
+ listResourcePoolSnapshotsValidateBeforeCall(
+ projectId, region, resourcePoolId, _callback);
+ Type localVarReturnType = new TypeToken() {}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
/**
- * Build call for getShareExportPolicy
+ * Build call for listResourcePools
*
* @param projectId (required)
* @param region (required)
- * @param policyId (required)
* @param _callback Callback for upload/download progress
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
@@ -2587,10 +4048,9 @@ public okhttp3.Call getShareAsync(
* 500 Please retry again later or contact support if the issue persists -
*
*/
- public okhttp3.Call getShareExportPolicyCall(
+ public okhttp3.Call listResourcePoolsCall(
@javax.annotation.Nonnull String projectId,
@javax.annotation.Nonnull String region,
- @javax.annotation.Nonnull String policyId,
final ApiCallback _callback)
throws ApiException {
String basePath = null;
@@ -2610,16 +4070,13 @@ public okhttp3.Call getShareExportPolicyCall(
// create path and map variables
String localVarPath =
- "/v1/projects/{projectId}/regions/{region}/shareExportPolicies/{policyId}"
+ "/v1/projects/{projectId}/regions/{region}/resourcePools"
.replace(
"{" + "projectId" + "}",
localVarApiClient.escapeString(projectId.toString()))
.replace(
"{" + "region" + "}",
- localVarApiClient.escapeString(region.toString()))
- .replace(
- "{" + "policyId" + "}",
- localVarApiClient.escapeString(policyId.toString()));
+ localVarApiClient.escapeString(region.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
@@ -2658,40 +4115,32 @@ public okhttp3.Call getShareExportPolicyCall(
}
@SuppressWarnings("rawtypes")
- private okhttp3.Call getShareExportPolicyValidateBeforeCall(
+ private okhttp3.Call listResourcePoolsValidateBeforeCall(
@javax.annotation.Nonnull String projectId,
@javax.annotation.Nonnull String region,
- @javax.annotation.Nonnull String policyId,
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 getShareExportPolicy(Async)");
+ "Missing the required parameter 'projectId' when calling listResourcePools(Async)");
}
// verify the required parameter 'region' is set
if (region == null) {
throw new ApiException(
- "Missing the required parameter 'region' when calling getShareExportPolicy(Async)");
- }
-
- // verify the required parameter 'policyId' is set
- if (policyId == null) {
- throw new ApiException(
- "Missing the required parameter 'policyId' when calling getShareExportPolicy(Async)");
+ "Missing the required parameter 'region' when calling listResourcePools(Async)");
}
- return getShareExportPolicyCall(projectId, region, policyId, _callback);
+ return listResourcePoolsCall(projectId, region, _callback);
}
/**
- * Get Share Export Policy Retrieves a ShareExportPolicies in a Resource Pool in a project.
+ * List Resource Pools Lists Resource Pools in a project.
*
* @param projectId (required)
* @param region (required)
- * @param policyId (required)
- * @return GetShareExportPolicyResponse
+ * @return ListResourcePoolsResponse
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the
* response body
* @http.response.details
@@ -2704,23 +4153,20 @@ private okhttp3.Call getShareExportPolicyValidateBeforeCall(
* 500 Please retry again later or contact support if the issue persists -
*
*/
- public GetShareExportPolicyResponse getShareExportPolicy(
- @javax.annotation.Nonnull String projectId,
- @javax.annotation.Nonnull String region,
- @javax.annotation.Nonnull String policyId)
+ public ListResourcePoolsResponse listResourcePools(
+ @javax.annotation.Nonnull String projectId, @javax.annotation.Nonnull String region)
throws ApiException {
- ApiResponse localVarResp =
- getShareExportPolicyWithHttpInfo(projectId, region, policyId);
+ ApiResponse localVarResp =
+ listResourcePoolsWithHttpInfo(projectId, region);
return localVarResp.getData();
}
/**
- * Get Share Export Policy Retrieves a ShareExportPolicies in a Resource Pool in a project.
+ * List Resource Pools Lists Resource Pools in a project.
*
* @param projectId (required)
* @param region (required)
- * @param policyId (required)
- * @return ApiResponse<GetShareExportPolicyResponse>
+ * @return ApiResponse<ListResourcePoolsResponse>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the
* response body
* @http.response.details
@@ -2733,24 +4179,19 @@ public GetShareExportPolicyResponse getShareExportPolicy(
* 500 Please retry again later or contact support if the issue persists -
*
*/
- public ApiResponse getShareExportPolicyWithHttpInfo(
- @javax.annotation.Nonnull String projectId,
- @javax.annotation.Nonnull String region,
- @javax.annotation.Nonnull String policyId)
+ public ApiResponse listResourcePoolsWithHttpInfo(
+ @javax.annotation.Nonnull String projectId, @javax.annotation.Nonnull String region)
throws ApiException {
- okhttp3.Call localVarCall =
- getShareExportPolicyValidateBeforeCall(projectId, region, policyId, null);
- Type localVarReturnType = new TypeToken() {}.getType();
+ okhttp3.Call localVarCall = listResourcePoolsValidateBeforeCall(projectId, region, null);
+ Type localVarReturnType = new TypeToken() {}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
/**
- * Get Share Export Policy (asynchronously) Retrieves a ShareExportPolicies in a Resource Pool
- * in a project.
+ * List Resource Pools (asynchronously) Lists Resource Pools in a project.
*
* @param projectId (required)
* @param region (required)
- * @param policyId (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
@@ -2765,23 +4206,23 @@ public ApiResponse getShareExportPolicyWithHttpInf
* 500 Please retry again later or contact support if the issue persists -
*
*/
- public okhttp3.Call getShareExportPolicyAsync(
+ public okhttp3.Call listResourcePoolsAsync(
@javax.annotation.Nonnull String projectId,
@javax.annotation.Nonnull String region,
- @javax.annotation.Nonnull String policyId,
- final ApiCallback _callback)
+ final ApiCallback _callback)
throws ApiException {
okhttp3.Call localVarCall =
- getShareExportPolicyValidateBeforeCall(projectId, region, policyId, _callback);
- Type localVarReturnType = new TypeToken() {}.getType();
+ listResourcePoolsValidateBeforeCall(projectId, region, _callback);
+ Type localVarReturnType = new TypeToken() {}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
/**
- * Build call for listPerformanceClasses
+ * Build call for listSchedules
*
+ * @param projectId (required)
* @param _callback Callback for upload/download progress
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
@@ -2790,12 +4231,11 @@ public okhttp3.Call getShareExportPolicyAsync(
* Response Details
* Status Code Description Response Headers
* 200 OK -
- * 400 Some fields of the request have failed the validation procedure. -
- * 401 Please make sure the Authorization Header is set and uses correct credentials -
- * 500 Please retry again later or contact support if the issue persists -
+ * 0 Default error response -
*
*/
- public okhttp3.Call listPerformanceClassesCall(final ApiCallback _callback)
+ public okhttp3.Call listSchedulesCall(
+ @javax.annotation.Nonnull String projectId, final ApiCallback _callback)
throws ApiException {
String basePath = null;
// Operation Servers
@@ -2813,7 +4253,11 @@ public okhttp3.Call listPerformanceClassesCall(final ApiCallback _callback)
Object localVarPostBody = null;
// create path and map variables
- String localVarPath = "/v1/resourcePoolPerformanceClasses";
+ String localVarPath =
+ "/v1/projects/{projectId}/schedules"
+ .replace(
+ "{" + "projectId" + "}",
+ localVarApiClient.escapeString(projectId.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
@@ -2821,9 +4265,7 @@ public okhttp3.Call listPerformanceClassesCall(final ApiCallback _callback)
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
- final String[] localVarAccepts = {
- "application/json", "application/problem+json", "text/plain"
- };
+ final String[] localVarAccepts = {"application/json"};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
if (localVarAccept != null) {
localVarHeaderParams.put("Accept", localVarAccept);
@@ -2852,15 +4294,23 @@ public okhttp3.Call listPerformanceClassesCall(final ApiCallback _callback)
}
@SuppressWarnings("rawtypes")
- private okhttp3.Call listPerformanceClassesValidateBeforeCall(final ApiCallback _callback)
+ private okhttp3.Call listSchedulesValidateBeforeCall(
+ @javax.annotation.Nonnull String projectId, final ApiCallback _callback)
throws ApiException {
- return listPerformanceClassesCall(_callback);
+ // verify the required parameter 'projectId' is set
+ if (projectId == null) {
+ throw new ApiException(
+ "Missing the required parameter 'projectId' when calling listSchedules(Async)");
+ }
+
+ return listSchedulesCall(projectId, _callback);
}
/**
- * List Resource Pool Performance Classes Lists all performances classes available
+ * List Schedules
*
- * @return ListPerformanceClassesResponse
+ * @param projectId (required)
+ * @return ListSchedulesResponse
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the
* response body
* @http.response.details
@@ -2868,21 +4318,20 @@ private okhttp3.Call listPerformanceClassesValidateBeforeCall(final ApiCallback
* Response Details
* Status Code Description Response Headers
* 200 OK -
- * 400 Some fields of the request have failed the validation procedure. -
- * 401 Please make sure the Authorization Header is set and uses correct credentials -
- * 500 Please retry again later or contact support if the issue persists -
+ * 0 Default error response -
*
*/
- public ListPerformanceClassesResponse listPerformanceClasses() throws ApiException {
- ApiResponse localVarResp =
- listPerformanceClassesWithHttpInfo();
+ public ListSchedulesResponse listSchedules(@javax.annotation.Nonnull String projectId)
+ throws ApiException {
+ ApiResponse localVarResp = listSchedulesWithHttpInfo(projectId);
return localVarResp.getData();
}
/**
- * List Resource Pool Performance Classes Lists all performances classes available
+ * List Schedules
*
- * @return ApiResponse<ListPerformanceClassesResponse>
+ * @param projectId (required)
+ * @return ApiResponse<ListSchedulesResponse>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the
* response body
* @http.response.details
@@ -2890,22 +4339,20 @@ public ListPerformanceClassesResponse listPerformanceClasses() throws ApiExcepti
* Response Details
* Status Code Description Response Headers
* 200 OK -
- * 400 Some fields of the request have failed the validation procedure. -
- * 401 Please make sure the Authorization Header is set and uses correct credentials -
- * 500 Please retry again later or contact support if the issue persists -
+ * 0 Default error response -
*
*/
- public ApiResponse listPerformanceClassesWithHttpInfo()
- throws ApiException {
- okhttp3.Call localVarCall = listPerformanceClassesValidateBeforeCall(null);
- Type localVarReturnType = new TypeToken() {}.getType();
+ public ApiResponse listSchedulesWithHttpInfo(
+ @javax.annotation.Nonnull String projectId) throws ApiException {
+ okhttp3.Call localVarCall = listSchedulesValidateBeforeCall(projectId, null);
+ Type localVarReturnType = new TypeToken() {}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
/**
- * List Resource Pool Performance Classes (asynchronously) Lists all performances classes
- * available
+ * (asynchronously) List Schedules
*
+ * @param projectId (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
@@ -2915,26 +4362,25 @@ public ApiResponse listPerformanceClassesWithHtt
* Response Details
* Status Code Description Response Headers
* 200 OK -
- * 400 Some fields of the request have failed the validation procedure. -
- * 401 Please make sure the Authorization Header is set and uses correct credentials -
- * 500 Please retry again later or contact support if the issue persists -
+ * 0 Default error response -
*
*/
- public okhttp3.Call listPerformanceClassesAsync(
- final ApiCallback _callback) throws ApiException {
+ public okhttp3.Call listSchedulesAsync(
+ @javax.annotation.Nonnull String projectId,
+ final ApiCallback _callback)
+ throws ApiException {
- okhttp3.Call localVarCall = listPerformanceClassesValidateBeforeCall(_callback);
- Type localVarReturnType = new TypeToken() {}.getType();
+ okhttp3.Call localVarCall = listSchedulesValidateBeforeCall(projectId, _callback);
+ Type localVarReturnType = new TypeToken() {}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
/**
- * Build call for listResourcePoolSnapshots
+ * Build call for listShareExportPolicies
*
* @param projectId (required)
* @param region (required)
- * @param resourcePoolId (required)
* @param _callback Callback for upload/download progress
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
@@ -2948,10 +4394,9 @@ public okhttp3.Call listPerformanceClassesAsync(
* 500 Please retry again later or contact support if the issue persists -
*
*/
- public okhttp3.Call listResourcePoolSnapshotsCall(
+ public okhttp3.Call listShareExportPoliciesCall(
@javax.annotation.Nonnull String projectId,
@javax.annotation.Nonnull String region,
- @javax.annotation.Nonnull String resourcePoolId,
final ApiCallback _callback)
throws ApiException {
String basePath = null;
@@ -2971,16 +4416,13 @@ public okhttp3.Call listResourcePoolSnapshotsCall(
// create path and map variables
String localVarPath =
- "/v1/projects/{projectId}/regions/{region}/resourcePools/{resourcePoolId}/snapshots"
+ "/v1/projects/{projectId}/regions/{region}/shareExportPolicies"
.replace(
"{" + "projectId" + "}",
localVarApiClient.escapeString(projectId.toString()))
.replace(
"{" + "region" + "}",
- localVarApiClient.escapeString(region.toString()))
- .replace(
- "{" + "resourcePoolId" + "}",
- localVarApiClient.escapeString(resourcePoolId.toString()));
+ localVarApiClient.escapeString(region.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
@@ -3019,40 +4461,32 @@ public okhttp3.Call listResourcePoolSnapshotsCall(
}
@SuppressWarnings("rawtypes")
- private okhttp3.Call listResourcePoolSnapshotsValidateBeforeCall(
+ private okhttp3.Call listShareExportPoliciesValidateBeforeCall(
@javax.annotation.Nonnull String projectId,
@javax.annotation.Nonnull String region,
- @javax.annotation.Nonnull String resourcePoolId,
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 listResourcePoolSnapshots(Async)");
+ "Missing the required parameter 'projectId' when calling listShareExportPolicies(Async)");
}
// verify the required parameter 'region' is set
if (region == null) {
throw new ApiException(
- "Missing the required parameter 'region' when calling listResourcePoolSnapshots(Async)");
- }
-
- // verify the required parameter 'resourcePoolId' is set
- if (resourcePoolId == null) {
- throw new ApiException(
- "Missing the required parameter 'resourcePoolId' when calling listResourcePoolSnapshots(Async)");
+ "Missing the required parameter 'region' when calling listShareExportPolicies(Async)");
}
- return listResourcePoolSnapshotsCall(projectId, region, resourcePoolId, _callback);
+ return listShareExportPoliciesCall(projectId, region, _callback);
}
/**
- * List Resource Pool Snapshots Lists the Snapshots of a Resource Pool in a project.
+ * List Share Export Policies Lists ShareExportPolicies in a Resource Pool in a project.
*
* @param projectId (required)
* @param region (required)
- * @param resourcePoolId (required)
- * @return ListResourcePoolSnapshotsResponse
+ * @return ListShareExportPoliciesResponse
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the
* response body
* @http.response.details
@@ -3065,23 +4499,20 @@ private okhttp3.Call listResourcePoolSnapshotsValidateBeforeCall(
* 500 Please retry again later or contact support if the issue persists -
*
*/
- public ListResourcePoolSnapshotsResponse listResourcePoolSnapshots(
- @javax.annotation.Nonnull String projectId,
- @javax.annotation.Nonnull String region,
- @javax.annotation.Nonnull String resourcePoolId)
+ public ListShareExportPoliciesResponse listShareExportPolicies(
+ @javax.annotation.Nonnull String projectId, @javax.annotation.Nonnull String region)
throws ApiException {
- ApiResponse localVarResp =
- listResourcePoolSnapshotsWithHttpInfo(projectId, region, resourcePoolId);
+ ApiResponse localVarResp =
+ listShareExportPoliciesWithHttpInfo(projectId, region);
return localVarResp.getData();
}
/**
- * List Resource Pool Snapshots Lists the Snapshots of a Resource Pool in a project.
+ * List Share Export Policies Lists ShareExportPolicies in a Resource Pool in a project.
*
* @param projectId (required)
* @param region (required)
- * @param resourcePoolId (required)
- * @return ApiResponse<ListResourcePoolSnapshotsResponse>
+ * @return ApiResponse<ListShareExportPoliciesResponse>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the
* response body
* @http.response.details
@@ -3094,25 +4525,21 @@ public ListResourcePoolSnapshotsResponse listResourcePoolSnapshots(
* 500 Please retry again later or contact support if the issue persists -
*
*/
- public ApiResponse listResourcePoolSnapshotsWithHttpInfo(
- @javax.annotation.Nonnull String projectId,
- @javax.annotation.Nonnull String region,
- @javax.annotation.Nonnull String resourcePoolId)
+ public ApiResponse listShareExportPoliciesWithHttpInfo(
+ @javax.annotation.Nonnull String projectId, @javax.annotation.Nonnull String region)
throws ApiException {
okhttp3.Call localVarCall =
- listResourcePoolSnapshotsValidateBeforeCall(
- projectId, region, resourcePoolId, null);
- Type localVarReturnType = new TypeToken() {}.getType();
+ listShareExportPoliciesValidateBeforeCall(projectId, region, null);
+ Type localVarReturnType = new TypeToken() {}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
/**
- * List Resource Pool Snapshots (asynchronously) Lists the Snapshots of a Resource Pool in a
+ * List Share Export Policies (asynchronously) Lists ShareExportPolicies in a Resource Pool in a
* project.
*
* @param projectId (required)
* @param region (required)
- * @param resourcePoolId (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
@@ -3127,26 +4554,25 @@ public ApiResponse listResourcePoolSnapshotsW
* 500 Please retry again later or contact support if the issue persists -
*
*/
- public okhttp3.Call listResourcePoolSnapshotsAsync(
+ public okhttp3.Call listShareExportPoliciesAsync(
@javax.annotation.Nonnull String projectId,
@javax.annotation.Nonnull String region,
- @javax.annotation.Nonnull String resourcePoolId,
- final ApiCallback _callback)
+ final ApiCallback _callback)
throws ApiException {
okhttp3.Call localVarCall =
- listResourcePoolSnapshotsValidateBeforeCall(
- projectId, region, resourcePoolId, _callback);
- Type localVarReturnType = new TypeToken() {}.getType();
+ listShareExportPoliciesValidateBeforeCall(projectId, region, _callback);
+ Type localVarReturnType = new TypeToken() {}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
/**
- * Build call for listResourcePools
+ * Build call for listShares
*
* @param projectId (required)
* @param region (required)
+ * @param resourcePoolId (required)
* @param _callback Callback for upload/download progress
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
@@ -3160,9 +4586,10 @@ public okhttp3.Call listResourcePoolSnapshotsAsync(
* 500 Please retry again later or contact support if the issue persists -
*
*/
- public okhttp3.Call listResourcePoolsCall(
+ public okhttp3.Call listSharesCall(
@javax.annotation.Nonnull String projectId,
@javax.annotation.Nonnull String region,
+ @javax.annotation.Nonnull String resourcePoolId,
final ApiCallback _callback)
throws ApiException {
String basePath = null;
@@ -3182,13 +4609,16 @@ public okhttp3.Call listResourcePoolsCall(
// create path and map variables
String localVarPath =
- "/v1/projects/{projectId}/regions/{region}/resourcePools"
+ "/v1/projects/{projectId}/regions/{region}/resourcePools/{resourcePoolId}/shares"
.replace(
"{" + "projectId" + "}",
localVarApiClient.escapeString(projectId.toString()))
.replace(
"{" + "region" + "}",
- localVarApiClient.escapeString(region.toString()));
+ localVarApiClient.escapeString(region.toString()))
+ .replace(
+ "{" + "resourcePoolId" + "}",
+ localVarApiClient.escapeString(resourcePoolId.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
@@ -3227,32 +4657,40 @@ public okhttp3.Call listResourcePoolsCall(
}
@SuppressWarnings("rawtypes")
- private okhttp3.Call listResourcePoolsValidateBeforeCall(
+ private okhttp3.Call listSharesValidateBeforeCall(
@javax.annotation.Nonnull String projectId,
@javax.annotation.Nonnull String region,
+ @javax.annotation.Nonnull String resourcePoolId,
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 listResourcePools(Async)");
+ "Missing the required parameter 'projectId' when calling listShares(Async)");
}
// verify the required parameter 'region' is set
if (region == null) {
throw new ApiException(
- "Missing the required parameter 'region' when calling listResourcePools(Async)");
+ "Missing the required parameter 'region' when calling listShares(Async)");
}
- return listResourcePoolsCall(projectId, region, _callback);
+ // verify the required parameter 'resourcePoolId' is set
+ if (resourcePoolId == null) {
+ throw new ApiException(
+ "Missing the required parameter 'resourcePoolId' when calling listShares(Async)");
+ }
+
+ return listSharesCall(projectId, region, resourcePoolId, _callback);
}
/**
- * List Resource Pools Lists Resource Pools in a project.
+ * List Shares Lists Shares in a Resource Pool in a project.
*
* @param projectId (required)
* @param region (required)
- * @return ListResourcePoolsResponse
+ * @param resourcePoolId (required)
+ * @return ListSharesResponse
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the
* response body
* @http.response.details
@@ -3265,20 +4703,23 @@ private okhttp3.Call listResourcePoolsValidateBeforeCall(
* 500 Please retry again later or contact support if the issue persists -
*
*/
- public ListResourcePoolsResponse listResourcePools(
- @javax.annotation.Nonnull String projectId, @javax.annotation.Nonnull String region)
+ public ListSharesResponse listShares(
+ @javax.annotation.Nonnull String projectId,
+ @javax.annotation.Nonnull String region,
+ @javax.annotation.Nonnull String resourcePoolId)
throws ApiException {
- ApiResponse localVarResp =
- listResourcePoolsWithHttpInfo(projectId, region);
+ ApiResponse localVarResp =
+ listSharesWithHttpInfo(projectId, region, resourcePoolId);
return localVarResp.getData();
}
/**
- * List Resource Pools Lists Resource Pools in a project.
+ * List Shares Lists Shares in a Resource Pool in a project.
*
* @param projectId (required)
* @param region (required)
- * @return ApiResponse<ListResourcePoolsResponse>
+ * @param resourcePoolId (required)
+ * @return ApiResponse<ListSharesResponse>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the
* response body
* @http.response.details
@@ -3291,19 +4732,23 @@ public ListResourcePoolsResponse listResourcePools(
* 500 Please retry again later or contact support if the issue persists -
*
*/
- public ApiResponse listResourcePoolsWithHttpInfo(
- @javax.annotation.Nonnull String projectId, @javax.annotation.Nonnull String region)
+ public ApiResponse listSharesWithHttpInfo(
+ @javax.annotation.Nonnull String projectId,
+ @javax.annotation.Nonnull String region,
+ @javax.annotation.Nonnull String resourcePoolId)
throws ApiException {
- okhttp3.Call localVarCall = listResourcePoolsValidateBeforeCall(projectId, region, null);
- Type localVarReturnType = new TypeToken() {}.getType();
+ okhttp3.Call localVarCall =
+ listSharesValidateBeforeCall(projectId, region, resourcePoolId, null);
+ Type localVarReturnType = new TypeToken() {}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
/**
- * List Resource Pools (asynchronously) Lists Resource Pools in a project.
+ * List Shares (asynchronously) Lists Shares in a Resource Pool in a project.
*
* @param projectId (required)
* @param region (required)
+ * @param resourcePoolId (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
@@ -3318,24 +4763,25 @@ public ApiResponse listResourcePoolsWithHttpInfo(
* 500 Please retry again later or contact support if the issue persists -
*
*/
- public okhttp3.Call listResourcePoolsAsync(
+ public okhttp3.Call listSharesAsync(
@javax.annotation.Nonnull String projectId,
@javax.annotation.Nonnull String region,
- final ApiCallback _callback)
+ @javax.annotation.Nonnull String resourcePoolId,
+ final ApiCallback _callback)
throws ApiException {
okhttp3.Call localVarCall =
- listResourcePoolsValidateBeforeCall(projectId, region, _callback);
- Type localVarReturnType = new TypeToken() {}.getType();
+ listSharesValidateBeforeCall(projectId, region, resourcePoolId, _callback);
+ Type localVarReturnType = new TypeToken() {}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
/**
- * Build call for listShareExportPolicies
+ * Build call for listSnapshotPolicies
*
* @param projectId (required)
- * @param region (required)
+ * @param immutable (optional)
* @param _callback Callback for upload/download progress
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
@@ -3344,14 +4790,12 @@ public okhttp3.Call listResourcePoolsAsync(
* Response Details
* Status Code Description Response Headers
* 200 OK -
- * 400 Some fields of the request have failed the validation procedure. -
- * 401 Please make sure the Authorization Header is set and uses correct credentials -
- * 500 Please retry again later or contact support if the issue persists -
+ * 0 Default error response -
*
*/
- public okhttp3.Call listShareExportPoliciesCall(
+ public okhttp3.Call listSnapshotPoliciesCall(
@javax.annotation.Nonnull String projectId,
- @javax.annotation.Nonnull String region,
+ @javax.annotation.Nullable Boolean immutable,
final ApiCallback _callback)
throws ApiException {
String basePath = null;
@@ -3371,13 +4815,10 @@ public okhttp3.Call listShareExportPoliciesCall(
// create path and map variables
String localVarPath =
- "/v1/projects/{projectId}/regions/{region}/shareExportPolicies"
+ "/v1/projects/{projectId}/snapshotPolicies"
.replace(
"{" + "projectId" + "}",
- localVarApiClient.escapeString(projectId.toString()))
- .replace(
- "{" + "region" + "}",
- localVarApiClient.escapeString(region.toString()));
+ localVarApiClient.escapeString(projectId.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
@@ -3385,9 +4826,11 @@ public okhttp3.Call listShareExportPoliciesCall(
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
- final String[] localVarAccepts = {
- "application/json", "application/problem+json", "text/plain"
- };
+ if (immutable != null) {
+ localVarQueryParams.addAll(localVarApiClient.parameterToPair("immutable", immutable));
+ }
+
+ final String[] localVarAccepts = {"application/json"};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
if (localVarAccept != null) {
localVarHeaderParams.put("Accept", localVarAccept);
@@ -3416,32 +4859,26 @@ public okhttp3.Call listShareExportPoliciesCall(
}
@SuppressWarnings("rawtypes")
- private okhttp3.Call listShareExportPoliciesValidateBeforeCall(
+ private okhttp3.Call listSnapshotPoliciesValidateBeforeCall(
@javax.annotation.Nonnull String projectId,
- @javax.annotation.Nonnull String region,
+ @javax.annotation.Nullable Boolean immutable,
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 listShareExportPolicies(Async)");
- }
-
- // verify the required parameter 'region' is set
- if (region == null) {
- throw new ApiException(
- "Missing the required parameter 'region' when calling listShareExportPolicies(Async)");
+ "Missing the required parameter 'projectId' when calling listSnapshotPolicies(Async)");
}
- return listShareExportPoliciesCall(projectId, region, _callback);
+ return listSnapshotPoliciesCall(projectId, immutable, _callback);
}
/**
- * List Share Export Policies Lists ShareExportPolicies in a Resource Pool in a project.
+ * List Snapshot Policies
*
* @param projectId (required)
- * @param region (required)
- * @return ListShareExportPoliciesResponse
+ * @param immutable (optional)
+ * @return ListSnapshotPoliciesResponse
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the
* response body
* @http.response.details
@@ -3449,25 +4886,24 @@ private okhttp3.Call listShareExportPoliciesValidateBeforeCall(
* Response Details
* Status Code Description Response Headers
* 200 OK -
- * 400 Some fields of the request have failed the validation procedure. -
- * 401 Please make sure the Authorization Header is set and uses correct credentials -
- * 500 Please retry again later or contact support if the issue persists -
+ * 0 Default error response -
*
*/
- public ListShareExportPoliciesResponse listShareExportPolicies(
- @javax.annotation.Nonnull String projectId, @javax.annotation.Nonnull String region)
+ public ListSnapshotPoliciesResponse listSnapshotPolicies(
+ @javax.annotation.Nonnull String projectId,
+ @javax.annotation.Nullable Boolean immutable)
throws ApiException {
- ApiResponse localVarResp =
- listShareExportPoliciesWithHttpInfo(projectId, region);
+ ApiResponse localVarResp =
+ listSnapshotPoliciesWithHttpInfo(projectId, immutable);
return localVarResp.getData();
}
/**
- * List Share Export Policies Lists ShareExportPolicies in a Resource Pool in a project.
+ * List Snapshot Policies
*
* @param projectId (required)
- * @param region (required)
- * @return ApiResponse<ListShareExportPoliciesResponse>
+ * @param immutable (optional)
+ * @return ApiResponse<ListSnapshotPoliciesResponse>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the
* response body
* @http.response.details
@@ -3475,26 +4911,24 @@ public ListShareExportPoliciesResponse listShareExportPolicies(
* Response Details
* Status Code Description Response Headers
* 200 OK -
- * 400 Some fields of the request have failed the validation procedure. -
- * 401 Please make sure the Authorization Header is set and uses correct credentials -
- * 500 Please retry again later or contact support if the issue persists -
+ * 0 Default error response -
*
*/
- public ApiResponse listShareExportPoliciesWithHttpInfo(
- @javax.annotation.Nonnull String projectId, @javax.annotation.Nonnull String region)
+ public ApiResponse listSnapshotPoliciesWithHttpInfo(
+ @javax.annotation.Nonnull String projectId,
+ @javax.annotation.Nullable Boolean immutable)
throws ApiException {
okhttp3.Call localVarCall =
- listShareExportPoliciesValidateBeforeCall(projectId, region, null);
- Type localVarReturnType = new TypeToken() {}.getType();
+ listSnapshotPoliciesValidateBeforeCall(projectId, immutable, null);
+ Type localVarReturnType = new TypeToken() {}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
/**
- * List Share Export Policies (asynchronously) Lists ShareExportPolicies in a Resource Pool in a
- * project.
+ * (asynchronously) List Snapshot Policies
*
* @param projectId (required)
- * @param region (required)
+ * @param immutable (optional)
* @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
@@ -3504,30 +4938,29 @@ public ApiResponse listShareExportPoliciesWithH
* Response Details
* Status Code Description Response Headers
* 200 OK -
- * 400 Some fields of the request have failed the validation procedure. -
- * 401 Please make sure the Authorization Header is set and uses correct credentials -
- * 500 Please retry again later or contact support if the issue persists -
+ * 0 Default error response -
*
*/
- public okhttp3.Call listShareExportPoliciesAsync(
+ public okhttp3.Call listSnapshotPoliciesAsync(
@javax.annotation.Nonnull String projectId,
- @javax.annotation.Nonnull String region,
- final ApiCallback _callback)
+ @javax.annotation.Nullable Boolean immutable,
+ final ApiCallback _callback)
throws ApiException {
okhttp3.Call localVarCall =
- listShareExportPoliciesValidateBeforeCall(projectId, region, _callback);
- Type localVarReturnType = new TypeToken() {}.getType();
+ listSnapshotPoliciesValidateBeforeCall(projectId, immutable, _callback);
+ Type localVarReturnType = new TypeToken() {}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
/**
- * Build call for listShares
+ * Build call for updateResourcePool
*
* @param projectId (required)
* @param region (required)
* @param resourcePoolId (required)
+ * @param updateResourcePoolPayload (required)
* @param _callback Callback for upload/download progress
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
@@ -3541,10 +4974,11 @@ public okhttp3.Call listShareExportPoliciesAsync(
*