Skip to content

Commit 500bbc1

Browse files
committed
update generated iaas code
1 parent 7c45f8b commit 500bbc1

File tree

5 files changed

+889
-0
lines changed

5 files changed

+889
-0
lines changed

services/iaas/src/main/java/cloud/stackit/sdk/iaas/JSON.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,8 @@ private static Class getClassByDiscriminator(
109109
new cloud.stackit.sdk.iaas.model.Area.CustomTypeAdapterFactory());
110110
gsonBuilder.registerTypeAdapterFactory(
111111
new cloud.stackit.sdk.iaas.model.AreaConfig.CustomTypeAdapterFactory());
112+
gsonBuilder.registerTypeAdapterFactory(
113+
new cloud.stackit.sdk.iaas.model.AreaId.CustomTypeAdapterFactory());
112114
gsonBuilder.registerTypeAdapterFactory(
113115
new cloud.stackit.sdk.iaas.model.AreaPrefixConfigIPv4.CustomTypeAdapterFactory());
114116
gsonBuilder.registerTypeAdapterFactory(
@@ -247,6 +249,8 @@ private static Class getClassByDiscriminator(
247249
.CustomTypeAdapterFactory());
248250
gsonBuilder.registerTypeAdapterFactory(
249251
new cloud.stackit.sdk.iaas.model.PortRange.CustomTypeAdapterFactory());
252+
gsonBuilder.registerTypeAdapterFactory(
253+
new cloud.stackit.sdk.iaas.model.Project.CustomTypeAdapterFactory());
250254
gsonBuilder.registerTypeAdapterFactory(
251255
new cloud.stackit.sdk.iaas.model.ProjectListResponse.CustomTypeAdapterFactory());
252256
gsonBuilder.registerTypeAdapterFactory(

services/iaas/src/main/java/cloud/stackit/sdk/iaas/api/DefaultApi.java

Lines changed: 172 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@
5959
import cloud.stackit.sdk.iaas.model.NetworkRangeListResponse;
6060
import cloud.stackit.sdk.iaas.model.PartialUpdateNetworkAreaPayload;
6161
import cloud.stackit.sdk.iaas.model.PartialUpdateNetworkPayload;
62+
import cloud.stackit.sdk.iaas.model.Project;
6263
import cloud.stackit.sdk.iaas.model.ProjectListResponse;
6364
import cloud.stackit.sdk.iaas.model.PublicIp;
6465
import cloud.stackit.sdk.iaas.model.PublicIpListResponse;
@@ -10929,6 +10930,177 @@ public okhttp3.Call getOrganizationRequestAsync(
1092910930
return localVarCall;
1093010931
}
1093110932

10933+
/**
10934+
* Build call for getProjectDetails
10935+
*
10936+
* @param projectId The identifier (ID) of a STACKIT Project. (required)
10937+
* @param _callback Callback for upload/download progress
10938+
* @return Call to execute
10939+
* @throws ApiException If fail to serialize the request body object
10940+
* @http.response.details
10941+
* <table border="1">
10942+
* <caption>Response Details</caption>
10943+
* <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
10944+
* <tr><td> 200 </td><td> Show project details. </td><td> - </td></tr>
10945+
* <tr><td> 400 </td><td> A bad request. </td><td> - </td></tr>
10946+
* <tr><td> 401 </td><td> A request which was not authorized. </td><td> - </td></tr>
10947+
* <tr><td> 403 </td><td> A request which was forbidden. </td><td> - </td></tr>
10948+
* <tr><td> 404 </td><td> The object was not found. </td><td> - </td></tr>
10949+
* <tr><td> 500 </td><td> Internal Server Error, returns a 500 if something is broken on IaaS API Side. </td><td> - </td></tr>
10950+
* </table>
10951+
*/
10952+
public okhttp3.Call getProjectDetailsCall(
10953+
@javax.annotation.Nonnull UUID projectId, final ApiCallback _callback)
10954+
throws ApiException {
10955+
String basePath = null;
10956+
// Operation Servers
10957+
String[] localBasePaths = new String[] {};
10958+
10959+
// Determine Base Path to Use
10960+
if (localCustomBaseUrl != null) {
10961+
basePath = localCustomBaseUrl;
10962+
} else if (localBasePaths.length > 0) {
10963+
basePath = localBasePaths[localHostIndex];
10964+
} else {
10965+
basePath = null;
10966+
}
10967+
10968+
Object localVarPostBody = null;
10969+
10970+
// create path and map variables
10971+
String localVarPath =
10972+
"/v1/projects/{projectId}"
10973+
.replace(
10974+
"{" + "projectId" + "}",
10975+
localVarApiClient.escapeString(projectId.toString()));
10976+
10977+
List<Pair> localVarQueryParams = new ArrayList<Pair>();
10978+
List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();
10979+
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
10980+
Map<String, String> localVarCookieParams = new HashMap<String, String>();
10981+
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
10982+
10983+
final String[] localVarAccepts = {"application/json"};
10984+
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
10985+
if (localVarAccept != null) {
10986+
localVarHeaderParams.put("Accept", localVarAccept);
10987+
}
10988+
10989+
final String[] localVarContentTypes = {};
10990+
final String localVarContentType =
10991+
localVarApiClient.selectHeaderContentType(localVarContentTypes);
10992+
if (localVarContentType != null) {
10993+
localVarHeaderParams.put("Content-Type", localVarContentType);
10994+
}
10995+
10996+
String[] localVarAuthNames = new String[] {};
10997+
return localVarApiClient.buildCall(
10998+
basePath,
10999+
localVarPath,
11000+
"GET",
11001+
localVarQueryParams,
11002+
localVarCollectionQueryParams,
11003+
localVarPostBody,
11004+
localVarHeaderParams,
11005+
localVarCookieParams,
11006+
localVarFormParams,
11007+
localVarAuthNames,
11008+
_callback);
11009+
}
11010+
11011+
@SuppressWarnings("rawtypes")
11012+
private okhttp3.Call getProjectDetailsValidateBeforeCall(
11013+
@javax.annotation.Nonnull UUID projectId, final ApiCallback _callback)
11014+
throws ApiException {
11015+
// verify the required parameter 'projectId' is set
11016+
if (projectId == null) {
11017+
throw new ApiException(
11018+
"Missing the required parameter 'projectId' when calling getProjectDetails(Async)");
11019+
}
11020+
11021+
return getProjectDetailsCall(projectId, _callback);
11022+
}
11023+
11024+
/**
11025+
* Get project details. Get details about a STACKIT project.
11026+
*
11027+
* @param projectId The identifier (ID) of a STACKIT Project. (required)
11028+
* @return Project
11029+
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the
11030+
* response body
11031+
* @http.response.details
11032+
* <table border="1">
11033+
* <caption>Response Details</caption>
11034+
* <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
11035+
* <tr><td> 200 </td><td> Show project details. </td><td> - </td></tr>
11036+
* <tr><td> 400 </td><td> A bad request. </td><td> - </td></tr>
11037+
* <tr><td> 401 </td><td> A request which was not authorized. </td><td> - </td></tr>
11038+
* <tr><td> 403 </td><td> A request which was forbidden. </td><td> - </td></tr>
11039+
* <tr><td> 404 </td><td> The object was not found. </td><td> - </td></tr>
11040+
* <tr><td> 500 </td><td> Internal Server Error, returns a 500 if something is broken on IaaS API Side. </td><td> - </td></tr>
11041+
* </table>
11042+
*/
11043+
public Project getProjectDetails(@javax.annotation.Nonnull UUID projectId) throws ApiException {
11044+
ApiResponse<Project> localVarResp = getProjectDetailsWithHttpInfo(projectId);
11045+
return localVarResp.getData();
11046+
}
11047+
11048+
/**
11049+
* Get project details. Get details about a STACKIT project.
11050+
*
11051+
* @param projectId The identifier (ID) of a STACKIT Project. (required)
11052+
* @return ApiResponse&lt;Project&gt;
11053+
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the
11054+
* response body
11055+
* @http.response.details
11056+
* <table border="1">
11057+
* <caption>Response Details</caption>
11058+
* <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
11059+
* <tr><td> 200 </td><td> Show project details. </td><td> - </td></tr>
11060+
* <tr><td> 400 </td><td> A bad request. </td><td> - </td></tr>
11061+
* <tr><td> 401 </td><td> A request which was not authorized. </td><td> - </td></tr>
11062+
* <tr><td> 403 </td><td> A request which was forbidden. </td><td> - </td></tr>
11063+
* <tr><td> 404 </td><td> The object was not found. </td><td> - </td></tr>
11064+
* <tr><td> 500 </td><td> Internal Server Error, returns a 500 if something is broken on IaaS API Side. </td><td> - </td></tr>
11065+
* </table>
11066+
*/
11067+
public ApiResponse<Project> getProjectDetailsWithHttpInfo(
11068+
@javax.annotation.Nonnull UUID projectId) throws ApiException {
11069+
okhttp3.Call localVarCall = getProjectDetailsValidateBeforeCall(projectId, null);
11070+
Type localVarReturnType = new TypeToken<Project>() {}.getType();
11071+
return localVarApiClient.execute(localVarCall, localVarReturnType);
11072+
}
11073+
11074+
/**
11075+
* Get project details. (asynchronously) Get details about a STACKIT project.
11076+
*
11077+
* @param projectId The identifier (ID) of a STACKIT Project. (required)
11078+
* @param _callback The callback to be executed when the API call finishes
11079+
* @return The request call
11080+
* @throws ApiException If fail to process the API call, e.g. serializing the request body
11081+
* object
11082+
* @http.response.details
11083+
* <table border="1">
11084+
* <caption>Response Details</caption>
11085+
* <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
11086+
* <tr><td> 200 </td><td> Show project details. </td><td> - </td></tr>
11087+
* <tr><td> 400 </td><td> A bad request. </td><td> - </td></tr>
11088+
* <tr><td> 401 </td><td> A request which was not authorized. </td><td> - </td></tr>
11089+
* <tr><td> 403 </td><td> A request which was forbidden. </td><td> - </td></tr>
11090+
* <tr><td> 404 </td><td> The object was not found. </td><td> - </td></tr>
11091+
* <tr><td> 500 </td><td> Internal Server Error, returns a 500 if something is broken on IaaS API Side. </td><td> - </td></tr>
11092+
* </table>
11093+
*/
11094+
public okhttp3.Call getProjectDetailsAsync(
11095+
@javax.annotation.Nonnull UUID projectId, final ApiCallback<Project> _callback)
11096+
throws ApiException {
11097+
11098+
okhttp3.Call localVarCall = getProjectDetailsValidateBeforeCall(projectId, _callback);
11099+
Type localVarReturnType = new TypeToken<Project>() {}.getType();
11100+
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
11101+
return localVarCall;
11102+
}
11103+
1093211104
/**
1093311105
* Build call for getProjectNIC
1093411106
*

0 commit comments

Comments
 (0)