Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion services/sfs/oas_commit
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1c36f3781c31a0e21c4588c7c4ec835d477d2f21
d272f56ef0626e62c4f2e77985406a18fda765b7
6 changes: 0 additions & 6 deletions services/sfs/src/main/java/cloud/stackit/sdk/sfs/JSON.java
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,6 @@ 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());
Expand All @@ -152,8 +150,6 @@ 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());
Expand All @@ -176,8 +172,6 @@ private static Class getClassByDiscriminator(
.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(
Expand Down
334 changes: 0 additions & 334 deletions services/sfs/src/main/java/cloud/stackit/sdk/sfs/api/DefaultApi.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,12 @@
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;
Expand Down Expand Up @@ -2878,181 +2876,6 @@ public okhttp3.Call getResourcePoolSnapshotAsync(
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
* <table border="1">
* <caption>Response Details</caption>
* <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
* <tr><td> 200 </td><td> OK </td><td> - </td></tr>
* <tr><td> 0 </td><td> Default error response </td><td> - </td></tr>
* </table>
*/
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<Pair> localVarQueryParams = new ArrayList<Pair>();
List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
Map<String, String> localVarCookieParams = new HashMap<String, String>();
Map<String, Object> localVarFormParams = new HashMap<String, Object>();

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
* <table border="1">
* <caption>Response Details</caption>
* <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
* <tr><td> 200 </td><td> OK </td><td> - </td></tr>
* <tr><td> 0 </td><td> Default error response </td><td> - </td></tr>
* </table>
*/
public GetScheduleResponse getSchedule(
@javax.annotation.Nonnull String projectId, @javax.annotation.Nonnull String id)
throws ApiException {
ApiResponse<GetScheduleResponse> localVarResp = getScheduleWithHttpInfo(projectId, id);
return localVarResp.getData();
}

/**
* Get Schedule
*
* @param projectId (required)
* @param id (required)
* @return ApiResponse&lt;GetScheduleResponse&gt;
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the
* response body
* @http.response.details
* <table border="1">
* <caption>Response Details</caption>
* <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
* <tr><td> 200 </td><td> OK </td><td> - </td></tr>
* <tr><td> 0 </td><td> Default error response </td><td> - </td></tr>
* </table>
*/
public ApiResponse<GetScheduleResponse> getScheduleWithHttpInfo(
@javax.annotation.Nonnull String projectId, @javax.annotation.Nonnull String id)
throws ApiException {
okhttp3.Call localVarCall = getScheduleValidateBeforeCall(projectId, id, null);
Type localVarReturnType = new TypeToken<GetScheduleResponse>() {}.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
* <table border="1">
* <caption>Response Details</caption>
* <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
* <tr><td> 200 </td><td> OK </td><td> - </td></tr>
* <tr><td> 0 </td><td> Default error response </td><td> - </td></tr>
* </table>
*/
public okhttp3.Call getScheduleAsync(
@javax.annotation.Nonnull String projectId,
@javax.annotation.Nonnull String id,
final ApiCallback<GetScheduleResponse> _callback)
throws ApiException {

okhttp3.Call localVarCall = getScheduleValidateBeforeCall(projectId, id, _callback);
Type localVarReturnType = new TypeToken<GetScheduleResponse>() {}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}

/**
* Build call for getShare
*
Expand Down Expand Up @@ -4219,163 +4042,6 @@ public okhttp3.Call listResourcePoolsAsync(
return localVarCall;
}

/**
* 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
* @http.response.details
* <table border="1">
* <caption>Response Details</caption>
* <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
* <tr><td> 200 </td><td> OK </td><td> - </td></tr>
* <tr><td> 0 </td><td> Default error response </td><td> - </td></tr>
* </table>
*/
public okhttp3.Call listSchedulesCall(
@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/projects/{projectId}/schedules"
.replace(
"{" + "projectId" + "}",
localVarApiClient.escapeString(projectId.toString()));

List<Pair> localVarQueryParams = new ArrayList<Pair>();
List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
Map<String, String> localVarCookieParams = new HashMap<String, String>();
Map<String, Object> localVarFormParams = new HashMap<String, Object>();

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 listSchedulesValidateBeforeCall(
@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 listSchedules(Async)");
}

return listSchedulesCall(projectId, _callback);
}

/**
* List Schedules
*
* @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
* <table border="1">
* <caption>Response Details</caption>
* <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
* <tr><td> 200 </td><td> OK </td><td> - </td></tr>
* <tr><td> 0 </td><td> Default error response </td><td> - </td></tr>
* </table>
*/
public ListSchedulesResponse listSchedules(@javax.annotation.Nonnull String projectId)
throws ApiException {
ApiResponse<ListSchedulesResponse> localVarResp = listSchedulesWithHttpInfo(projectId);
return localVarResp.getData();
}

/**
* List Schedules
*
* @param projectId (required)
* @return ApiResponse&lt;ListSchedulesResponse&gt;
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the
* response body
* @http.response.details
* <table border="1">
* <caption>Response Details</caption>
* <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
* <tr><td> 200 </td><td> OK </td><td> - </td></tr>
* <tr><td> 0 </td><td> Default error response </td><td> - </td></tr>
* </table>
*/
public ApiResponse<ListSchedulesResponse> listSchedulesWithHttpInfo(
@javax.annotation.Nonnull String projectId) throws ApiException {
okhttp3.Call localVarCall = listSchedulesValidateBeforeCall(projectId, null);
Type localVarReturnType = new TypeToken<ListSchedulesResponse>() {}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}

/**
* (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
* object
* @http.response.details
* <table border="1">
* <caption>Response Details</caption>
* <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
* <tr><td> 200 </td><td> OK </td><td> - </td></tr>
* <tr><td> 0 </td><td> Default error response </td><td> - </td></tr>
* </table>
*/
public okhttp3.Call listSchedulesAsync(
@javax.annotation.Nonnull String projectId,
final ApiCallback<ListSchedulesResponse> _callback)
throws ApiException {

okhttp3.Call localVarCall = listSchedulesValidateBeforeCall(projectId, _callback);
Type localVarReturnType = new TypeToken<ListSchedulesResponse>() {}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}

/**
* Build call for listShareExportPolicies
*
Expand Down
Loading