curl -X GET \"http://localhost:8070/openapi/v1/apps\" \\ -H \"Authorization: your_token_here\"
+ *
+ * The version of the OpenAPI document: 1.0.0
+ *
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ */
+
+
+package org.openapitools.client.api;
+
+import org.openapitools.client.ApiCallback;
+import org.openapitools.client.ApiClient;
+import org.openapitools.client.ApiException;
+import org.openapitools.client.ApiResponse;
+import org.openapitools.client.Configuration;
+import org.openapitools.client.Pair;
+import org.openapitools.client.ProgressRequestBody;
+import org.openapitools.client.ProgressResponseBody;
+
+import com.google.gson.reflect.TypeToken;
+
+import java.io.IOException;
+
+
+import org.openapitools.client.model.ExceptionResponse;
+import org.openapitools.client.model.OpenAppNamespaceDTO;
+import org.openapitools.client.model.OpenNamespaceDTO;
+import org.openapitools.client.model.OpenNamespaceUsageDTO;
+
+import java.lang.reflect.Type;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+import javax.ws.rs.core.GenericType;
+
+public class AppNamespaceManagementApi {
+ private ApiClient localVarApiClient;
+ private int localHostIndex;
+ private String localCustomBaseUrl;
+
+ public AppNamespaceManagementApi() {
+ this(Configuration.getDefaultApiClient());
+ }
+
+ public AppNamespaceManagementApi(ApiClient apiClient) {
+ this.localVarApiClient = apiClient;
+ }
+
+ public ApiClient getApiClient() {
+ return localVarApiClient;
+ }
+
+ public void setApiClient(ApiClient apiClient) {
+ this.localVarApiClient = apiClient;
+ }
+
+ public int getHostIndex() {
+ return localHostIndex;
+ }
+
+ public void setHostIndex(int hostIndex) {
+ this.localHostIndex = hostIndex;
+ }
+
+ public String getCustomBaseUrl() {
+ return localCustomBaseUrl;
+ }
+
+ public void setCustomBaseUrl(String customBaseUrl) {
+ this.localCustomBaseUrl = customBaseUrl;
+ }
+
+ /**
+ * Build call for createAppNamespace
+ * @param appId (required)
+ * @param openAppNamespaceDTO (required)
+ * @param operator 操作人用户名 (optional)
+ * @param _callback Callback for upload/download progress
+ * @return Call to execute
+ * @throws ApiException If fail to serialize the request body object
+ * @http.response.details
+
+
Status Code
Description
Response Headers
+
200
AppNamespace创建成功
-
+
400
请求参数错误
-
+
403
权限不足
-
+
+ */
+ public okhttp3.Call createAppNamespaceCall(String appId, OpenAppNamespaceDTO openAppNamespaceDTO, String operator, 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 = openAppNamespaceDTO;
+
+ // create path and map variables
+ String localVarPath = "/openapi/v1/apps/{appId}/appnamespaces"
+ .replace("{" + "appId" + "}", localVarApiClient.escapeString(appId.toString()));
+
+ List localVarQueryParams = new ArrayList();
+ List localVarCollectionQueryParams = new ArrayList();
+ Map localVarHeaderParams = new HashMap();
+ Map localVarCookieParams = new HashMap();
+ Map localVarFormParams = new HashMap();
+
+ if (operator != null) {
+ localVarQueryParams.addAll(localVarApiClient.parameterToPair("operator", operator));
+ }
+
+ final String[] localVarAccepts = {
+ "application/json"
+ };
+ final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
+ if (localVarAccept != null) {
+ localVarHeaderParams.put("Accept", localVarAccept);
+ }
+
+ final String[] localVarContentTypes = {
+ "application/json"
+ };
+ final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
+ if (localVarContentType != null) {
+ localVarHeaderParams.put("Content-Type", localVarContentType);
+ }
+
+ String[] localVarAuthNames = new String[] { "ApiKeyAuth" };
+ return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
+ }
+
+ @SuppressWarnings("rawtypes")
+ private okhttp3.Call createAppNamespaceValidateBeforeCall(String appId, OpenAppNamespaceDTO openAppNamespaceDTO, String operator, final ApiCallback _callback) throws ApiException {
+ // verify the required parameter 'appId' is set
+ if (appId == null) {
+ throw new ApiException("Missing the required parameter 'appId' when calling createAppNamespace(Async)");
+ }
+
+ // verify the required parameter 'openAppNamespaceDTO' is set
+ if (openAppNamespaceDTO == null) {
+ throw new ApiException("Missing the required parameter 'openAppNamespaceDTO' when calling createAppNamespace(Async)");
+ }
+
+ return createAppNamespaceCall(appId, openAppNamespaceDTO, operator, _callback);
+
+ }
+
+ /**
+ * 创建AppNamespace (original openapi)
+ * POST /openapi/v1/apps/{appId}/appnamespaces
+ * @param appId (required)
+ * @param openAppNamespaceDTO (required)
+ * @param operator 操作人用户名 (optional)
+ * @return OpenAppNamespaceDTO
+ * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ * @http.response.details
+
+
Status Code
Description
Response Headers
+
200
AppNamespace创建成功
-
+
400
请求参数错误
-
+
403
权限不足
-
+
+ */
+ public OpenAppNamespaceDTO createAppNamespace(String appId, OpenAppNamespaceDTO openAppNamespaceDTO, String operator) throws ApiException {
+ ApiResponse localVarResp = createAppNamespaceWithHttpInfo(appId, openAppNamespaceDTO, operator);
+ return localVarResp.getData();
+ }
+
+ /**
+ * 创建AppNamespace (original openapi)
+ * POST /openapi/v1/apps/{appId}/appnamespaces
+ * @param appId (required)
+ * @param openAppNamespaceDTO (required)
+ * @param operator 操作人用户名 (optional)
+ * @return ApiResponse<OpenAppNamespaceDTO>
+ * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ * @http.response.details
+
+
Status Code
Description
Response Headers
+
200
AppNamespace创建成功
-
+
400
请求参数错误
-
+
403
权限不足
-
+
+ */
+ public ApiResponse createAppNamespaceWithHttpInfo(String appId, OpenAppNamespaceDTO openAppNamespaceDTO, String operator) throws ApiException {
+ okhttp3.Call localVarCall = createAppNamespaceValidateBeforeCall(appId, openAppNamespaceDTO, operator, null);
+ Type localVarReturnType = new TypeToken(){}.getType();
+ return localVarApiClient.execute(localVarCall, localVarReturnType);
+ }
+
+ /**
+ * 创建AppNamespace (original openapi) (asynchronously)
+ * POST /openapi/v1/apps/{appId}/appnamespaces
+ * @param appId (required)
+ * @param openAppNamespaceDTO (required)
+ * @param operator 操作人用户名 (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 object
+ * @http.response.details
+
+
Status Code
Description
Response Headers
+
200
AppNamespace创建成功
-
+
400
请求参数错误
-
+
403
权限不足
-
+
+ */
+ public okhttp3.Call createAppNamespaceAsync(String appId, OpenAppNamespaceDTO openAppNamespaceDTO, String operator, final ApiCallback _callback) throws ApiException {
+
+ okhttp3.Call localVarCall = createAppNamespaceValidateBeforeCall(appId, openAppNamespaceDTO, operator, _callback);
+ Type localVarReturnType = new TypeToken(){}.getType();
+ localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
+ return localVarCall;
+ }
+ /**
+ * Build call for deleteAppNamespace
+ * @param appId 应用ID (required)
+ * @param namespaceName 命名空间名称 (required)
+ * @param operator 操作人用户名 (optional)
+ * @param _callback Callback for upload/download progress
+ * @return Call to execute
+ * @throws ApiException If fail to serialize the request body object
+ * @http.response.details
+
+
Status Code
Description
Response Headers
+
200
AppNamespace删除成功
-
+
+ */
+ public okhttp3.Call deleteAppNamespaceCall(String appId, String namespaceName, String operator, 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 = "/openapi/v1/apps/{appId}/appnamespaces/{namespaceName}"
+ .replace("{" + "appId" + "}", localVarApiClient.escapeString(appId.toString()))
+ .replace("{" + "namespaceName" + "}", localVarApiClient.escapeString(namespaceName.toString()));
+
+ List localVarQueryParams = new ArrayList();
+ List localVarCollectionQueryParams = new ArrayList();
+ Map localVarHeaderParams = new HashMap();
+ Map localVarCookieParams = new HashMap();
+ Map localVarFormParams = new HashMap();
+
+ if (operator != null) {
+ localVarQueryParams.addAll(localVarApiClient.parameterToPair("operator", operator));
+ }
+
+ final String[] localVarAccepts = {
+ };
+ 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[] { "ApiKeyAuth" };
+ return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
+ }
+
+ @SuppressWarnings("rawtypes")
+ private okhttp3.Call deleteAppNamespaceValidateBeforeCall(String appId, String namespaceName, String operator, final ApiCallback _callback) throws ApiException {
+ // verify the required parameter 'appId' is set
+ if (appId == null) {
+ throw new ApiException("Missing the required parameter 'appId' when calling deleteAppNamespace(Async)");
+ }
+
+ // verify the required parameter 'namespaceName' is set
+ if (namespaceName == null) {
+ throw new ApiException("Missing the required parameter 'namespaceName' when calling deleteAppNamespace(Async)");
+ }
+
+ return deleteAppNamespaceCall(appId, namespaceName, operator, _callback);
+
+ }
+
+ /**
+ * 删除AppNamespace (new added)
+ * DELETE /openapi/v1/apps/{appId}/appnamespaces/{namespaceName}
+ * @param appId 应用ID (required)
+ * @param namespaceName 命名空间名称 (required)
+ * @param operator 操作人用户名 (optional)
+ * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ * @http.response.details
+
+
Status Code
Description
Response Headers
+
200
AppNamespace删除成功
-
+
+ */
+ public void deleteAppNamespace(String appId, String namespaceName, String operator) throws ApiException {
+ deleteAppNamespaceWithHttpInfo(appId, namespaceName, operator);
+ }
+
+ /**
+ * 删除AppNamespace (new added)
+ * DELETE /openapi/v1/apps/{appId}/appnamespaces/{namespaceName}
+ * @param appId 应用ID (required)
+ * @param namespaceName 命名空间名称 (required)
+ * @param operator 操作人用户名 (optional)
+ * @return ApiResponse<Void>
+ * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ * @http.response.details
+
+
Status Code
Description
Response Headers
+
200
AppNamespace删除成功
-
+
+ */
+ public ApiResponse deleteAppNamespaceWithHttpInfo(String appId, String namespaceName, String operator) throws ApiException {
+ okhttp3.Call localVarCall = deleteAppNamespaceValidateBeforeCall(appId, namespaceName, operator, null);
+ return localVarApiClient.execute(localVarCall);
+ }
+
+ /**
+ * 删除AppNamespace (new added) (asynchronously)
+ * DELETE /openapi/v1/apps/{appId}/appnamespaces/{namespaceName}
+ * @param appId 应用ID (required)
+ * @param namespaceName 命名空间名称 (required)
+ * @param operator 操作人用户名 (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 object
+ * @http.response.details
+
+
Status Code
Description
Response Headers
+
200
AppNamespace删除成功
-
+
+ */
+ public okhttp3.Call deleteAppNamespaceAsync(String appId, String namespaceName, String operator, final ApiCallback _callback) throws ApiException {
+
+ okhttp3.Call localVarCall = deleteAppNamespaceValidateBeforeCall(appId, namespaceName, operator, _callback);
+ localVarApiClient.executeAsync(localVarCall, _callback);
+ return localVarCall;
+ }
+ /**
+ * Build call for findAppNamespace
+ * @param appId 应用ID (required)
+ * @param namespaceName 命名空间名称 (required)
+ * @param extendInfo (optional, default to false)
+ * @param _callback Callback for upload/download progress
+ * @return Call to execute
+ * @throws ApiException If fail to serialize the request body object
+ * @http.response.details
+
+
Status Code
Description
Response Headers
+
200
成功获取AppNamespace
-
+
+ */
+ public okhttp3.Call findAppNamespaceCall(String appId, String namespaceName, Boolean extendInfo, 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 = "/openapi/v1/apps/{appId}/appnamespaces/{namespaceName}"
+ .replace("{" + "appId" + "}", localVarApiClient.escapeString(appId.toString()))
+ .replace("{" + "namespaceName" + "}", localVarApiClient.escapeString(namespaceName.toString()));
+
+ List localVarQueryParams = new ArrayList();
+ List localVarCollectionQueryParams = new ArrayList();
+ Map localVarHeaderParams = new HashMap();
+ Map localVarCookieParams = new HashMap();
+ Map localVarFormParams = new HashMap();
+
+ if (extendInfo != null) {
+ localVarQueryParams.addAll(localVarApiClient.parameterToPair("extendInfo", extendInfo));
+ }
+
+ 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[] { "ApiKeyAuth" };
+ return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
+ }
+
+ @SuppressWarnings("rawtypes")
+ private okhttp3.Call findAppNamespaceValidateBeforeCall(String appId, String namespaceName, Boolean extendInfo, final ApiCallback _callback) throws ApiException {
+ // verify the required parameter 'appId' is set
+ if (appId == null) {
+ throw new ApiException("Missing the required parameter 'appId' when calling findAppNamespace(Async)");
+ }
+
+ // verify the required parameter 'namespaceName' is set
+ if (namespaceName == null) {
+ throw new ApiException("Missing the required parameter 'namespaceName' when calling findAppNamespace(Async)");
+ }
+
+ return findAppNamespaceCall(appId, namespaceName, extendInfo, _callback);
+
+ }
+
+ /**
+ * 获取指定的AppNamespace (new added)
+ * GET /openapi/v1/apps/{appId}/appnamespaces/{namespaceName}
+ * @param appId 应用ID (required)
+ * @param namespaceName 命名空间名称 (required)
+ * @param extendInfo (optional, default to false)
+ * @return OpenAppNamespaceDTO
+ * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ * @http.response.details
+
+
Status Code
Description
Response Headers
+
200
成功获取AppNamespace
-
+
+ */
+ public OpenAppNamespaceDTO findAppNamespace(String appId, String namespaceName, Boolean extendInfo) throws ApiException {
+ ApiResponse localVarResp = findAppNamespaceWithHttpInfo(appId, namespaceName, extendInfo);
+ return localVarResp.getData();
+ }
+
+ /**
+ * 获取指定的AppNamespace (new added)
+ * GET /openapi/v1/apps/{appId}/appnamespaces/{namespaceName}
+ * @param appId 应用ID (required)
+ * @param namespaceName 命名空间名称 (required)
+ * @param extendInfo (optional, default to false)
+ * @return ApiResponse<OpenAppNamespaceDTO>
+ * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ * @http.response.details
+
+
Status Code
Description
Response Headers
+
200
成功获取AppNamespace
-
+
+ */
+ public ApiResponse findAppNamespaceWithHttpInfo(String appId, String namespaceName, Boolean extendInfo) throws ApiException {
+ okhttp3.Call localVarCall = findAppNamespaceValidateBeforeCall(appId, namespaceName, extendInfo, null);
+ Type localVarReturnType = new TypeToken(){}.getType();
+ return localVarApiClient.execute(localVarCall, localVarReturnType);
+ }
+
+ /**
+ * 获取指定的AppNamespace (new added) (asynchronously)
+ * GET /openapi/v1/apps/{appId}/appnamespaces/{namespaceName}
+ * @param appId 应用ID (required)
+ * @param namespaceName 命名空间名称 (required)
+ * @param extendInfo (optional, default to false)
+ * @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
+
+
Status Code
Description
Response Headers
+
200
成功获取AppNamespace
-
+
+ */
+ public okhttp3.Call findAppNamespaceAsync(String appId, String namespaceName, Boolean extendInfo, final ApiCallback _callback) throws ApiException {
+
+ okhttp3.Call localVarCall = findAppNamespaceValidateBeforeCall(appId, namespaceName, extendInfo, _callback);
+ Type localVarReturnType = new TypeToken(){}.getType();
+ localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
+ return localVarCall;
+ }
+ /**
+ * Build call for findAppNamespaceUsage
+ * @param appId 应用ID (required)
+ * @param namespaceName 命名空间名称 (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
+
+
Status Code
Description
Response Headers
+
200
AppNamespaceUsage查询成功
-
+
+ */
+ public okhttp3.Call findAppNamespaceUsageCall(String appId, String namespaceName, 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 = "/openapi/v1/apps/{appId}/appnamespaces/{namespaceName}/usage"
+ .replace("{" + "appId" + "}", localVarApiClient.escapeString(appId.toString()))
+ .replace("{" + "namespaceName" + "}", localVarApiClient.escapeString(namespaceName.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[] { "ApiKeyAuth" };
+ return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
+ }
+
+ @SuppressWarnings("rawtypes")
+ private okhttp3.Call findAppNamespaceUsageValidateBeforeCall(String appId, String namespaceName, final ApiCallback _callback) throws ApiException {
+ // verify the required parameter 'appId' is set
+ if (appId == null) {
+ throw new ApiException("Missing the required parameter 'appId' when calling findAppNamespaceUsage(Async)");
+ }
+
+ // verify the required parameter 'namespaceName' is set
+ if (namespaceName == null) {
+ throw new ApiException("Missing the required parameter 'namespaceName' when calling findAppNamespaceUsage(Async)");
+ }
+
+ return findAppNamespaceUsageCall(appId, namespaceName, _callback);
+
+ }
+
+ /**
+ * 查询appnamespace使用情况(new added)
+ * GET /openapi/v1/apps/{appId}/appnamespaces/{namespaceName}/usage
+ * @param appId 应用ID (required)
+ * @param namespaceName 命名空间名称 (required)
+ * @return List<OpenNamespaceUsageDTO>
+ * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ * @http.response.details
+
+
Status Code
Description
Response Headers
+
200
AppNamespaceUsage查询成功
-
+
+ */
+ public List findAppNamespaceUsage(String appId, String namespaceName) throws ApiException {
+ ApiResponse> localVarResp = findAppNamespaceUsageWithHttpInfo(appId, namespaceName);
+ return localVarResp.getData();
+ }
+
+ /**
+ * 查询appnamespace使用情况(new added)
+ * GET /openapi/v1/apps/{appId}/appnamespaces/{namespaceName}/usage
+ * @param appId 应用ID (required)
+ * @param namespaceName 命名空间名称 (required)
+ * @return ApiResponse<List<OpenNamespaceUsageDTO>>
+ * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ * @http.response.details
+
+
Status Code
Description
Response Headers
+
200
AppNamespaceUsage查询成功
-
+
+ */
+ public ApiResponse> findAppNamespaceUsageWithHttpInfo(String appId, String namespaceName) throws ApiException {
+ okhttp3.Call localVarCall = findAppNamespaceUsageValidateBeforeCall(appId, namespaceName, null);
+ Type localVarReturnType = new TypeToken>(){}.getType();
+ return localVarApiClient.execute(localVarCall, localVarReturnType);
+ }
+
+ /**
+ * 查询appnamespace使用情况(new added) (asynchronously)
+ * GET /openapi/v1/apps/{appId}/appnamespaces/{namespaceName}/usage
+ * @param appId 应用ID (required)
+ * @param namespaceName 命名空间名称 (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
+
+
Status Code
Description
Response Headers
+
200
AppNamespaceUsage查询成功
-
+
+ */
+ public okhttp3.Call findAppNamespaceUsageAsync(String appId, String namespaceName, final ApiCallback> _callback) throws ApiException {
+
+ okhttp3.Call localVarCall = findAppNamespaceUsageValidateBeforeCall(appId, namespaceName, _callback);
+ Type localVarReturnType = new TypeToken>(){}.getType();
+ localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
+ return localVarCall;
+ }
+ /**
+ * Build call for getAppNamespaces
+ * @param _callback Callback for upload/download progress
+ * @return Call to execute
+ * @throws ApiException If fail to serialize the request body object
+ * @http.response.details
+
+
Status Code
Description
Response Headers
+
200
-
+
+ */
+ public okhttp3.Call getAppNamespacesCall(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 = "/openapi/v1/appnamespaces";
+
+ 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[] { "ApiKeyAuth" };
+ return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
+ }
+
+ @SuppressWarnings("rawtypes")
+ private okhttp3.Call getAppNamespacesValidateBeforeCall(final ApiCallback _callback) throws ApiException {
+ return getAppNamespacesCall(_callback);
+
+ }
+
+ /**
+ * 获取所有公共AppNamespace (new added)
+ * GET /openapi/v1/appnamespaces/public
+ * @return List<OpenAppNamespaceDTO>
+ * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ * @http.response.details
+
+
Status Code
Description
Response Headers
+
200
-
+
+ */
+ public List getAppNamespaces() throws ApiException {
+ ApiResponse> localVarResp = getAppNamespacesWithHttpInfo();
+ return localVarResp.getData();
+ }
+
+ /**
+ * 获取所有公共AppNamespace (new added)
+ * GET /openapi/v1/appnamespaces/public
+ * @return ApiResponse<List<OpenAppNamespaceDTO>>
+ * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ * @http.response.details
+
+
Status Code
Description
Response Headers
+
200
-
+
+ */
+ public ApiResponse> getAppNamespacesWithHttpInfo() throws ApiException {
+ okhttp3.Call localVarCall = getAppNamespacesValidateBeforeCall(null);
+ Type localVarReturnType = new TypeToken>(){}.getType();
+ return localVarApiClient.execute(localVarCall, localVarReturnType);
+ }
+
+ /**
+ * 获取所有公共AppNamespace (new added) (asynchronously)
+ * GET /openapi/v1/appnamespaces/public
+ * @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
+
+
Status Code
Description
Response Headers
+
200
-
+
+ */
+ public okhttp3.Call getAppNamespacesAsync(final ApiCallback> _callback) throws ApiException {
+
+ okhttp3.Call localVarCall = getAppNamespacesValidateBeforeCall(_callback);
+ Type localVarReturnType = new TypeToken>(){}.getType();
+ localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
+ return localVarCall;
+ }
+ /**
+ * Build call for getAppNamespacesByAppId
+ * @param appId (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
+
+
Status Code
Description
Response Headers
+
200
-
+
+ */
+ public okhttp3.Call getAppNamespacesByAppIdCall(String appId, 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 = "/openapi/v1/apps/{appId}/appnamespaces"
+ .replace("{" + "appId" + "}", localVarApiClient.escapeString(appId.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[] { "ApiKeyAuth" };
+ return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
+ }
+
+ @SuppressWarnings("rawtypes")
+ private okhttp3.Call getAppNamespacesByAppIdValidateBeforeCall(String appId, final ApiCallback _callback) throws ApiException {
+ // verify the required parameter 'appId' is set
+ if (appId == null) {
+ throw new ApiException("Missing the required parameter 'appId' when calling getAppNamespacesByAppId(Async)");
+ }
+
+ return getAppNamespacesByAppIdCall(appId, _callback);
+
+ }
+
+ /**
+ * 获取指定应用的AppNamespace (new added)
+ * GET /openapi/v1/apps/{appId}/appnamespaces
+ * @param appId (required)
+ * @return List<OpenAppNamespaceDTO>
+ * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ * @http.response.details
+
+
Status Code
Description
Response Headers
+
200
-
+
+ */
+ public List getAppNamespacesByAppId(String appId) throws ApiException {
+ ApiResponse> localVarResp = getAppNamespacesByAppIdWithHttpInfo(appId);
+ return localVarResp.getData();
+ }
+
+ /**
+ * 获取指定应用的AppNamespace (new added)
+ * GET /openapi/v1/apps/{appId}/appnamespaces
+ * @param appId (required)
+ * @return ApiResponse<List<OpenAppNamespaceDTO>>
+ * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ * @http.response.details
+
+
Status Code
Description
Response Headers
+
200
-
+
+ */
+ public ApiResponse> getAppNamespacesByAppIdWithHttpInfo(String appId) throws ApiException {
+ okhttp3.Call localVarCall = getAppNamespacesByAppIdValidateBeforeCall(appId, null);
+ Type localVarReturnType = new TypeToken>(){}.getType();
+ return localVarApiClient.execute(localVarCall, localVarReturnType);
+ }
+
+ /**
+ * 获取指定应用的AppNamespace (new added) (asynchronously)
+ * GET /openapi/v1/apps/{appId}/appnamespaces
+ * @param appId (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
+
+
Status Code
Description
Response Headers
+
200
-
+
+ */
+ public okhttp3.Call getAppNamespacesByAppIdAsync(String appId, final ApiCallback> _callback) throws ApiException {
+
+ okhttp3.Call localVarCall = getAppNamespacesByAppIdValidateBeforeCall(appId, _callback);
+ Type localVarReturnType = new TypeToken>(){}.getType();
+ localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
+ return localVarCall;
+ }
+ /**
+ * Build call for getPublicAppNamespaceInstances
+ * @param env 环境标识 (required)
+ * @param publicNamespaceName 公共命名空间名称 (required)
+ * @param page 页码,从0开始 (required)
+ * @param size 每页数量 (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
+
+
Status Code
Description
Response Headers
+
200
成功获取实例列表
-
+
+ */
+ public okhttp3.Call getPublicAppNamespaceInstancesCall(String env, String publicNamespaceName, Integer page, Integer size, 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 = "/openapi/v1/envs/{env}/appnamespaces/{publicNamespaceName}/instances"
+ .replace("{" + "env" + "}", localVarApiClient.escapeString(env.toString()))
+ .replace("{" + "publicNamespaceName" + "}", localVarApiClient.escapeString(publicNamespaceName.toString()));
+
+ List localVarQueryParams = new ArrayList();
+ List localVarCollectionQueryParams = new ArrayList();
+ Map localVarHeaderParams = new HashMap();
+ Map localVarCookieParams = new HashMap();
+ Map localVarFormParams = new HashMap();
+
+ if (page != null) {
+ localVarQueryParams.addAll(localVarApiClient.parameterToPair("page", page));
+ }
+
+ if (size != null) {
+ localVarQueryParams.addAll(localVarApiClient.parameterToPair("size", size));
+ }
+
+ 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[] { "ApiKeyAuth" };
+ return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
+ }
+
+ @SuppressWarnings("rawtypes")
+ private okhttp3.Call getPublicAppNamespaceInstancesValidateBeforeCall(String env, String publicNamespaceName, Integer page, Integer size, final ApiCallback _callback) throws ApiException {
+ // verify the required parameter 'env' is set
+ if (env == null) {
+ throw new ApiException("Missing the required parameter 'env' when calling getPublicAppNamespaceInstances(Async)");
+ }
+
+ // verify the required parameter 'publicNamespaceName' is set
+ if (publicNamespaceName == null) {
+ throw new ApiException("Missing the required parameter 'publicNamespaceName' when calling getPublicAppNamespaceInstances(Async)");
+ }
+
+ // verify the required parameter 'page' is set
+ if (page == null) {
+ throw new ApiException("Missing the required parameter 'page' when calling getPublicAppNamespaceInstances(Async)");
+ }
+
+ // verify the required parameter 'size' is set
+ if (size == null) {
+ throw new ApiException("Missing the required parameter 'size' when calling getPublicAppNamespaceInstances(Async)");
+ }
+
+ return getPublicAppNamespaceInstancesCall(env, publicNamespaceName, page, size, _callback);
+
+ }
+
+ /**
+ * 获取公共AppNamespace的所有实例 (new added)
+ * GET /openapi/v1/envs/{env}/appnamespaces/{publicNamespaceName}/instances
+ * @param env 环境标识 (required)
+ * @param publicNamespaceName 公共命名空间名称 (required)
+ * @param page 页码,从0开始 (required)
+ * @param size 每页数量 (required)
+ * @return List<OpenNamespaceDTO>
+ * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ * @http.response.details
+
+
Status Code
Description
Response Headers
+
200
成功获取实例列表
-
+
+ */
+ public List getPublicAppNamespaceInstances(String env, String publicNamespaceName, Integer page, Integer size) throws ApiException {
+ ApiResponse> localVarResp = getPublicAppNamespaceInstancesWithHttpInfo(env, publicNamespaceName, page, size);
+ return localVarResp.getData();
+ }
+
+ /**
+ * 获取公共AppNamespace的所有实例 (new added)
+ * GET /openapi/v1/envs/{env}/appnamespaces/{publicNamespaceName}/instances
+ * @param env 环境标识 (required)
+ * @param publicNamespaceName 公共命名空间名称 (required)
+ * @param page 页码,从0开始 (required)
+ * @param size 每页数量 (required)
+ * @return ApiResponse<List<OpenNamespaceDTO>>
+ * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ * @http.response.details
+
+
Status Code
Description
Response Headers
+
200
成功获取实例列表
-
+
+ */
+ public ApiResponse> getPublicAppNamespaceInstancesWithHttpInfo(String env, String publicNamespaceName, Integer page, Integer size) throws ApiException {
+ okhttp3.Call localVarCall = getPublicAppNamespaceInstancesValidateBeforeCall(env, publicNamespaceName, page, size, null);
+ Type localVarReturnType = new TypeToken>(){}.getType();
+ return localVarApiClient.execute(localVarCall, localVarReturnType);
+ }
+
+ /**
+ * 获取公共AppNamespace的所有实例 (new added) (asynchronously)
+ * GET /openapi/v1/envs/{env}/appnamespaces/{publicNamespaceName}/instances
+ * @param env 环境标识 (required)
+ * @param publicNamespaceName 公共命名空间名称 (required)
+ * @param page 页码,从0开始 (required)
+ * @param size 每页数量 (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
+