|
59 | 59 | import cloud.stackit.sdk.iaas.model.NetworkRangeListResponse; |
60 | 60 | import cloud.stackit.sdk.iaas.model.PartialUpdateNetworkAreaPayload; |
61 | 61 | import cloud.stackit.sdk.iaas.model.PartialUpdateNetworkPayload; |
| 62 | +import cloud.stackit.sdk.iaas.model.Project; |
62 | 63 | import cloud.stackit.sdk.iaas.model.ProjectListResponse; |
63 | 64 | import cloud.stackit.sdk.iaas.model.PublicIp; |
64 | 65 | import cloud.stackit.sdk.iaas.model.PublicIpListResponse; |
@@ -10929,6 +10930,177 @@ public okhttp3.Call getOrganizationRequestAsync( |
10929 | 10930 | return localVarCall; |
10930 | 10931 | } |
10931 | 10932 |
|
| 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<Project> |
| 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 | + |
10932 | 11104 | /** |
10933 | 11105 | * Build call for getProjectNIC |
10934 | 11106 | * |
|
0 commit comments