diff --git a/services/sfs/oas_commit b/services/sfs/oas_commit
index 5c20c20..908a685 100644
--- a/services/sfs/oas_commit
+++ b/services/sfs/oas_commit
@@ -1 +1 @@
-fe212a12ec79a23b81cb53d9a7728f5706bddc23
+984d08b0e688e90debe8b4e6ed710dfe033f670c
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..ab28bb6 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
@@ -95,6 +95,8 @@ private static Class getClassByDiscriminator(
gsonBuilder.registerTypeAdapter(OffsetDateTime.class, offsetDateTimeTypeAdapter);
gsonBuilder.registerTypeAdapter(LocalDate.class, localDateTypeAdapter);
gsonBuilder.registerTypeAdapter(byte[].class, byteArrayAdapter);
+ gsonBuilder.registerTypeAdapterFactory(
+ new cloud.stackit.sdk.sfs.model.CreateLockResponse.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(
new cloud.stackit.sdk.sfs.model.CreateResourcePoolPayload
.CustomTypeAdapterFactory());
@@ -127,11 +129,16 @@ private static Class getClassByDiscriminator(
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 +150,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 +169,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(
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..ce8f4aa 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
@@ -18,6 +18,7 @@
import cloud.stackit.sdk.sfs.ApiClient;
import cloud.stackit.sdk.sfs.ApiResponse;
import cloud.stackit.sdk.sfs.Pair;
+import cloud.stackit.sdk.sfs.model.CreateLockResponse;
import cloud.stackit.sdk.sfs.model.CreateResourcePoolPayload;
import cloud.stackit.sdk.sfs.model.CreateResourcePoolResponse;
import cloud.stackit.sdk.sfs.model.CreateResourcePoolSnapshotPayload;
@@ -28,13 +29,17 @@
import cloud.stackit.sdk.sfs.model.CreateShareResponse;
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.UpdateShareExportPolicyPayload;
@@ -127,6 +132,183 @@ public void setCustomBaseUrl(String customBaseUrl) {
this.localCustomBaseUrl = customBaseUrl;
}
+ /**
+ * Build call for createLock
+ *
+ * @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 createLockCall(
+ @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 createLockValidateBeforeCall(
+ @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 createLock(Async)");
+ }
+
+ // verify the required parameter 'projectId' is set
+ if (projectId == null) {
+ throw new ApiException(
+ "Missing the required parameter 'projectId' when calling createLock(Async)");
+ }
+
+ return createLockCall(region, projectId, _callback);
+ }
+
+ /**
+ * Create Lock
+ *
+ * @param region (required)
+ * @param projectId (required)
+ * @return CreateLockResponse
+ * @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 CreateLockResponse createLock(
+ @javax.annotation.Nonnull String region, @javax.annotation.Nonnull String projectId)
+ throws ApiException {
+ ApiResponse localVarResp = createLockWithHttpInfo(region, projectId);
+ return localVarResp.getData();
+ }
+
+ /**
+ * Create Lock
+ *
+ * @param region (required)
+ * @param projectId (required)
+ * @return ApiResponse<CreateLockResponse>
+ * @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 createLockWithHttpInfo(
+ @javax.annotation.Nonnull String region, @javax.annotation.Nonnull String projectId)
+ throws ApiException {
+ okhttp3.Call localVarCall = createLockValidateBeforeCall(region, projectId, null);
+ Type localVarReturnType = new TypeToken() {}.getType();
+ return localVarApiClient.execute(localVarCall, localVarReturnType);
+ }
+
+ /**
+ * (asynchronously) Create Lock
+ *
+ * @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 createLockAsync(
+ @javax.annotation.Nonnull String region,
+ @javax.annotation.Nonnull String projectId,
+ final ApiCallback _callback)
+ throws ApiException {
+
+ okhttp3.Call localVarCall = createLockValidateBeforeCall(region, projectId, _callback);
+ Type localVarReturnType = new TypeToken() {}.getType();
+ localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
+ return localVarCall;
+ }
+
/**
* Build call for createResourcePool
*
@@ -1015,11 +1197,10 @@ public okhttp3.Call createShareExportPolicyAsync(
}
/**
- * Build call for deleteResourcePool
+ * Build call for deleteLock
*
- * @param projectId (required)
* @param region (required)
- * @param resourcePoolId (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
@@ -1028,15 +1209,12 @@ public okhttp3.Call createShareExportPolicyAsync(
* 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 deleteResourcePoolCall(
- @javax.annotation.Nonnull String projectId,
+ public okhttp3.Call deleteLockCall(
@javax.annotation.Nonnull String region,
- @javax.annotation.Nonnull String resourcePoolId,
+ @javax.annotation.Nonnull String projectId,
final ApiCallback _callback)
throws ApiException {
String basePath = null;
@@ -1056,16 +1234,13 @@ public okhttp3.Call deleteResourcePoolCall(
// create path and map variables
String localVarPath =
- "/v1/projects/{projectId}/regions/{region}/resourcePools/{resourcePoolId}"
- .replace(
- "{" + "projectId" + "}",
- localVarApiClient.escapeString(projectId.toString()))
+ "/v1/regions/{region}/project/{projectId}/locks"
.replace(
"{" + "region" + "}",
localVarApiClient.escapeString(region.toString()))
.replace(
- "{" + "resourcePoolId" + "}",
- localVarApiClient.escapeString(resourcePoolId.toString()));
+ "{" + "projectId" + "}",
+ localVarApiClient.escapeString(projectId.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
@@ -1073,9 +1248,7 @@ public okhttp3.Call deleteResourcePoolCall(
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);
@@ -1104,39 +1277,31 @@ public okhttp3.Call deleteResourcePoolCall(
}
@SuppressWarnings("rawtypes")
- private okhttp3.Call deleteResourcePoolValidateBeforeCall(
- @javax.annotation.Nonnull String projectId,
+ private okhttp3.Call deleteLockValidateBeforeCall(
@javax.annotation.Nonnull String region,
- @javax.annotation.Nonnull String resourcePoolId,
+ @javax.annotation.Nonnull String projectId,
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 deleteResourcePool(Async)");
- }
-
// verify the required parameter 'region' is set
if (region == null) {
throw new ApiException(
- "Missing the required parameter 'region' when calling deleteResourcePool(Async)");
+ "Missing the required parameter 'region' when calling deleteLock(Async)");
}
- // verify the required parameter 'resourcePoolId' is set
- if (resourcePoolId == null) {
+ // verify the required parameter 'projectId' is set
+ if (projectId == null) {
throw new ApiException(
- "Missing the required parameter 'resourcePoolId' when calling deleteResourcePool(Async)");
+ "Missing the required parameter 'projectId' when calling deleteLock(Async)");
}
- return deleteResourcePoolCall(projectId, region, resourcePoolId, _callback);
+ return deleteLockCall(region, projectId, _callback);
}
/**
- * Delete Resource Pool Deletes a Resource Pool in a project.
+ * Delete Lock
*
- * @param projectId (required)
* @param region (required)
- * @param resourcePoolId (required)
+ * @param projectId (required)
* @return Object
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the
* response body
@@ -1145,27 +1310,21 @@ private okhttp3.Call deleteResourcePoolValidateBeforeCall(
* 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 Object deleteResourcePool(
- @javax.annotation.Nonnull String projectId,
- @javax.annotation.Nonnull String region,
- @javax.annotation.Nonnull String resourcePoolId)
+ public Object deleteLock(
+ @javax.annotation.Nonnull String region, @javax.annotation.Nonnull String projectId)
throws ApiException {
- ApiResponse