diff --git a/README.md b/README.md index 4c0109fc0..0662e5ad5 100644 --- a/README.md +++ b/README.md @@ -54,7 +54,7 @@ com.volcengine volcengine-java-sdk-bom - 0.1.94 + 0.1.95 pom import @@ -70,12 +70,12 @@ com.volcengine volcengine-java-sdk-vpc - 0.1.94 + 0.1.95 com.volcengine volcengine-java-sdk-ecs - 0.1.94 + 0.1.95 ``` diff --git a/meta.json b/meta.json index be15ea5b0..72fcaff1f 100755 --- a/meta.json +++ b/meta.json @@ -1,4 +1,4 @@ { - "lasted": "0.1.94", - "meta_commit": "7dd06057d68e0272514bd45a8c8d0ec1d750c2b0" + "lasted": "0.1.95", + "meta_commit": "7648d21abf0a28a44b386cc400d5d541d740863b" } diff --git a/pom.xml b/pom.xml index ae174aa6f..2f261ae1f 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.volcengine volcengine-java-sdk pom - 0.1.94 + 0.1.95 volcengine-java-sdk https://open.volcengineapi.com The Java SDK For Volcengine diff --git a/volcengine-java-sdk-alb/pom.xml b/volcengine-java-sdk-alb/pom.xml index d30418cbe..01e4905f4 100644 --- a/volcengine-java-sdk-alb/pom.xml +++ b/volcengine-java-sdk-alb/pom.xml @@ -3,7 +3,7 @@ volcengine-java-sdk com.volcengine - 0.1.94 + 0.1.95 ../pom.xml 4.0.0 diff --git a/volcengine-java-sdk-autoscaling/pom.xml b/volcengine-java-sdk-autoscaling/pom.xml index 4867e831e..2c0758a6e 100644 --- a/volcengine-java-sdk-autoscaling/pom.xml +++ b/volcengine-java-sdk-autoscaling/pom.xml @@ -3,7 +3,7 @@ volcengine-java-sdk com.volcengine - 0.1.94 + 0.1.95 ../pom.xml 4.0.0 diff --git a/volcengine-java-sdk-billing/pom.xml b/volcengine-java-sdk-billing/pom.xml index 768fbdac2..be009077e 100644 --- a/volcengine-java-sdk-billing/pom.xml +++ b/volcengine-java-sdk-billing/pom.xml @@ -3,7 +3,7 @@ volcengine-java-sdk com.volcengine - 0.1.94 + 0.1.95 ../pom.xml 4.0.0 diff --git a/volcengine-java-sdk-bom/pom.xml b/volcengine-java-sdk-bom/pom.xml index c158099f6..586392b26 100644 --- a/volcengine-java-sdk-bom/pom.xml +++ b/volcengine-java-sdk-bom/pom.xml @@ -3,7 +3,7 @@ volcengine-java-sdk com.volcengine - 0.1.94 + 0.1.95 ../pom.xml 4.0.0 diff --git a/volcengine-java-sdk-cen/pom.xml b/volcengine-java-sdk-cen/pom.xml index 0b194539a..03bc19ab2 100644 --- a/volcengine-java-sdk-cen/pom.xml +++ b/volcengine-java-sdk-cen/pom.xml @@ -3,7 +3,7 @@ volcengine-java-sdk com.volcengine - 0.1.94 + 0.1.95 ../pom.xml 4.0.0 diff --git a/volcengine-java-sdk-clb/pom.xml b/volcengine-java-sdk-clb/pom.xml index 24ceae99a..b7dcacdfe 100644 --- a/volcengine-java-sdk-clb/pom.xml +++ b/volcengine-java-sdk-clb/pom.xml @@ -3,7 +3,7 @@ volcengine-java-sdk com.volcengine - 0.1.94 + 0.1.95 ../pom.xml 4.0.0 diff --git a/volcengine-java-sdk-core/pom.xml b/volcengine-java-sdk-core/pom.xml index 7583e0af0..63889bd03 100644 --- a/volcengine-java-sdk-core/pom.xml +++ b/volcengine-java-sdk-core/pom.xml @@ -3,7 +3,7 @@ com.volcengine volcengine-java-sdk - 0.1.94 + 0.1.95 ../pom.xml 4.0.0 diff --git a/volcengine-java-sdk-core/src/main/java/com/volcengine/version/Version.java b/volcengine-java-sdk-core/src/main/java/com/volcengine/version/Version.java index 2b7d4219e..4b4d3ea67 100644 --- a/volcengine-java-sdk-core/src/main/java/com/volcengine/version/Version.java +++ b/volcengine-java-sdk-core/src/main/java/com/volcengine/version/Version.java @@ -1,6 +1,6 @@ package com.volcengine.version; public class Version { - public final static String SDK_VERSION = "0.1.94"; + public final static String SDK_VERSION = "0.1.95"; public final static String SDK_NAME = "volcengine-java-sdk"; } \ No newline at end of file diff --git a/volcengine-java-sdk-cr/pom.xml b/volcengine-java-sdk-cr/pom.xml index bb4a1c68a..928ad9d0f 100644 --- a/volcengine-java-sdk-cr/pom.xml +++ b/volcengine-java-sdk-cr/pom.xml @@ -3,7 +3,7 @@ volcengine-java-sdk com.volcengine - 0.1.94 + 0.1.95 ../pom.xml 4.0.0 diff --git a/volcengine-java-sdk-directconnect/pom.xml b/volcengine-java-sdk-directconnect/pom.xml index 16767c343..e11cc2004 100644 --- a/volcengine-java-sdk-directconnect/pom.xml +++ b/volcengine-java-sdk-directconnect/pom.xml @@ -3,7 +3,7 @@ volcengine-java-sdk com.volcengine - 0.1.94 + 0.1.95 ../pom.xml 4.0.0 diff --git a/volcengine-java-sdk-ecs/pom.xml b/volcengine-java-sdk-ecs/pom.xml index b114ca11b..3b60b48d3 100644 --- a/volcengine-java-sdk-ecs/pom.xml +++ b/volcengine-java-sdk-ecs/pom.xml @@ -3,7 +3,7 @@ volcengine-java-sdk com.volcengine - 0.1.94 + 0.1.95 ../pom.xml 4.0.0 diff --git a/volcengine-java-sdk-filenas/pom.xml b/volcengine-java-sdk-filenas/pom.xml index 68d88cd28..e330f3a7a 100644 --- a/volcengine-java-sdk-filenas/pom.xml +++ b/volcengine-java-sdk-filenas/pom.xml @@ -3,7 +3,7 @@ volcengine-java-sdk com.volcengine - 0.1.94 + 0.1.95 ../pom.xml 4.0.0 diff --git a/volcengine-java-sdk-iam/pom.xml b/volcengine-java-sdk-iam/pom.xml index 273f500cf..40866f92d 100644 --- a/volcengine-java-sdk-iam/pom.xml +++ b/volcengine-java-sdk-iam/pom.xml @@ -3,7 +3,7 @@ volcengine-java-sdk com.volcengine - 0.1.94 + 0.1.95 ../pom.xml 4.0.0 diff --git a/volcengine-java-sdk-iam/src/main/java/com/volcengine/iam/IamApi.java b/volcengine-java-sdk-iam/src/main/java/com/volcengine/iam/IamApi.java index 4692bd504..edead8b31 100644 --- a/volcengine-java-sdk-iam/src/main/java/com/volcengine/iam/IamApi.java +++ b/volcengine-java-sdk-iam/src/main/java/com/volcengine/iam/IamApi.java @@ -27,102 +27,7 @@ import javax.validation.constraints.*; -import com.volcengine.iam.model.AddUserToGroupRequest; -import com.volcengine.iam.model.AddUserToGroupResponse; -import com.volcengine.iam.model.AttachRolePolicyRequest; -import com.volcengine.iam.model.AttachRolePolicyResponse; -import com.volcengine.iam.model.AttachUserGroupPolicyRequest; -import com.volcengine.iam.model.AttachUserGroupPolicyResponse; -import com.volcengine.iam.model.AttachUserPolicyRequest; -import com.volcengine.iam.model.AttachUserPolicyResponse; -import com.volcengine.iam.model.CreateAccessKeyRequest; -import com.volcengine.iam.model.CreateAccessKeyResponse; -import com.volcengine.iam.model.CreateGroupRequest; -import com.volcengine.iam.model.CreateGroupResponse; -import com.volcengine.iam.model.CreateLoginProfileRequest; -import com.volcengine.iam.model.CreateLoginProfileResponse; -import com.volcengine.iam.model.CreatePolicyRequest; -import com.volcengine.iam.model.CreatePolicyResponse; -import com.volcengine.iam.model.CreateRoleRequest; -import com.volcengine.iam.model.CreateRoleResponse; -import com.volcengine.iam.model.CreateSAMLProviderRequest; -import com.volcengine.iam.model.CreateSAMLProviderResponse; -import com.volcengine.iam.model.CreateServiceLinkedRoleRequest; -import com.volcengine.iam.model.CreateServiceLinkedRoleResponse; -import com.volcengine.iam.model.CreateUserRequest; -import com.volcengine.iam.model.CreateUserResponse; -import com.volcengine.iam.model.DeleteAccessKeyRequest; -import com.volcengine.iam.model.DeleteAccessKeyResponse; -import com.volcengine.iam.model.DeleteGroupRequest; -import com.volcengine.iam.model.DeleteGroupResponse; -import com.volcengine.iam.model.DeleteLoginProfileRequest; -import com.volcengine.iam.model.DeleteLoginProfileResponse; -import com.volcengine.iam.model.DeletePolicyRequest; -import com.volcengine.iam.model.DeletePolicyResponse; -import com.volcengine.iam.model.DeleteRoleRequest; -import com.volcengine.iam.model.DeleteRoleResponse; -import com.volcengine.iam.model.DeleteSAMLProviderRequest; -import com.volcengine.iam.model.DeleteSAMLProviderResponse; -import com.volcengine.iam.model.DeleteUserRequest; -import com.volcengine.iam.model.DeleteUserResponse; -import com.volcengine.iam.model.DetachRolePolicyRequest; -import com.volcengine.iam.model.DetachRolePolicyResponse; -import com.volcengine.iam.model.DetachUserGroupPolicyRequest; -import com.volcengine.iam.model.DetachUserGroupPolicyResponse; -import com.volcengine.iam.model.DetachUserPolicyRequest; -import com.volcengine.iam.model.DetachUserPolicyResponse; -import com.volcengine.iam.model.GetGroupRequest; -import com.volcengine.iam.model.GetGroupResponse; -import com.volcengine.iam.model.GetLoginProfileRequest; -import com.volcengine.iam.model.GetLoginProfileResponse; -import com.volcengine.iam.model.GetPolicyRequest; -import com.volcengine.iam.model.GetPolicyResponse; -import com.volcengine.iam.model.GetRoleRequest; -import com.volcengine.iam.model.GetRoleResponse; -import com.volcengine.iam.model.GetSAMLProviderRequest; -import com.volcengine.iam.model.GetSAMLProviderResponse; -import com.volcengine.iam.model.GetUserRequest; -import com.volcengine.iam.model.GetUserResponse; -import com.volcengine.iam.model.ListAccessKeysRequest; -import com.volcengine.iam.model.ListAccessKeysResponse; -import com.volcengine.iam.model.ListAttachedRolePoliciesRequest; -import com.volcengine.iam.model.ListAttachedRolePoliciesResponse; -import com.volcengine.iam.model.ListAttachedUserGroupPoliciesRequest; -import com.volcengine.iam.model.ListAttachedUserGroupPoliciesResponse; -import com.volcengine.iam.model.ListAttachedUserPoliciesRequest; -import com.volcengine.iam.model.ListAttachedUserPoliciesResponse; -import com.volcengine.iam.model.ListEntitiesForPolicyRequest; -import com.volcengine.iam.model.ListEntitiesForPolicyResponse; -import com.volcengine.iam.model.ListGroupsForUserRequest; -import com.volcengine.iam.model.ListGroupsForUserResponse; -import com.volcengine.iam.model.ListGroupsRequest; -import com.volcengine.iam.model.ListGroupsResponse; -import com.volcengine.iam.model.ListPoliciesRequest; -import com.volcengine.iam.model.ListPoliciesResponse; -import com.volcengine.iam.model.ListRolesRequest; -import com.volcengine.iam.model.ListRolesResponse; -import com.volcengine.iam.model.ListSAMLProvidersRequest; -import com.volcengine.iam.model.ListSAMLProvidersResponse; -import com.volcengine.iam.model.ListUsersForGroupRequest; -import com.volcengine.iam.model.ListUsersForGroupResponse; -import com.volcengine.iam.model.ListUsersRequest; -import com.volcengine.iam.model.ListUsersResponse; -import com.volcengine.iam.model.RemoveUserFromGroupRequest; -import com.volcengine.iam.model.RemoveUserFromGroupResponse; -import com.volcengine.iam.model.UpdateAccessKeyRequest; -import com.volcengine.iam.model.UpdateAccessKeyResponse; -import com.volcengine.iam.model.UpdateGroupRequest; -import com.volcengine.iam.model.UpdateGroupResponse; -import com.volcengine.iam.model.UpdateLoginProfileRequest; -import com.volcengine.iam.model.UpdateLoginProfileResponse; -import com.volcengine.iam.model.UpdatePolicyRequest; -import com.volcengine.iam.model.UpdatePolicyResponse; -import com.volcengine.iam.model.UpdateRoleRequest; -import com.volcengine.iam.model.UpdateRoleResponse; -import com.volcengine.iam.model.UpdateSAMLProviderRequest; -import com.volcengine.iam.model.UpdateSAMLProviderResponse; -import com.volcengine.iam.model.UpdateUserRequest; -import com.volcengine.iam.model.UpdateUserResponse; +import com.volcengine.iam.model.*; import java.lang.reflect.Type; import java.util.ArrayList; @@ -273,6 +178,132 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don apiClient.executeAsync(call, localVarReturnType, callback); return call; } + + /** + * Build call for attachPolicyInProject + * @param body (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call attachPolicyInProjectCall(AttachPolicyInProjectRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/AttachPolicyInProject/2021-08-01/iam/get/"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "text/plain" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "volcengineSign" }; + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call attachPolicyInProjectValidateBeforeCall(AttachPolicyInProjectRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling attachPolicyInProject(Async)"); + } + + com.squareup.okhttp.Call call = attachPolicyInProjectCall(body, progressListener, progressRequestListener); + return call; + + + + + + } + + /** + * + * + * @param body (required) + * @return AttachPolicyInProjectResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public AttachPolicyInProjectResponse attachPolicyInProject(AttachPolicyInProjectRequest body) throws ApiException { + ApiResponse resp = attachPolicyInProjectWithHttpInfo(body); + return resp.getData(); + } + + /** + * + * + * @param body (required) + * @return ApiResponse<AttachPolicyInProjectResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse attachPolicyInProjectWithHttpInfo( @NotNull AttachPolicyInProjectRequest body) throws ApiException { + com.squareup.okhttp.Call call = attachPolicyInProjectValidateBeforeCall(body, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * (asynchronously) + * + * @param body (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 + */ + public com.squareup.okhttp.Call attachPolicyInProjectAsync(AttachPolicyInProjectRequest body, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = attachPolicyInProjectValidateBeforeCall(body, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** * Build call for attachRolePolicy * @param body (required) @@ -1141,6 +1172,126 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don apiClient.executeAsync(call, localVarReturnType, callback); return call; } + + /** + * Build call for createProject + * + * @param body (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call createProjectCall(CreateProjectRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/CreateProject/2021-08-01/iam/get/"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + final String[] localVarContentTypes = { + "text/plain" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if (progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[]{"volcengineSign"}; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call createProjectValidateBeforeCall(CreateProjectRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling createProject(Async)"); + } + + return createProjectCall(body, progressListener, progressRequestListener); + } + + /** + * @param body (required) + * @return CreateProjectResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public CreateProjectResponse createProject(CreateProjectRequest body) throws ApiException { + ApiResponse resp = createProjectWithHttpInfo(body); + return resp.getData(); + } + + /** + * @param body (required) + * @return ApiResponse<CreateProjectResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse createProjectWithHttpInfo(@NotNull CreateProjectRequest body) throws ApiException { + com.squareup.okhttp.Call call = createProjectValidateBeforeCall(body, null, null); + Type localVarReturnType = new TypeToken() { + }.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * (asynchronously) + * + * @param body (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 + */ + public com.squareup.okhttp.Call createProjectAsync(CreateProjectRequest body, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = createProjectValidateBeforeCall(body, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken() { + }.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** * Build call for createRole * @param body (required) @@ -2275,19 +2426,20 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don apiClient.executeAsync(call, localVarReturnType, callback); return call; } + /** - * Build call for deleteRole + * Build call for deleteProject * @param body (required) * @param progressListener Progress listener * @param progressRequestListener Progress request listener * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call deleteRoleCall(DeleteRoleRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call deleteProjectCall(DeleteProjectRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = body; - + // create path and map variables - String localVarPath = "/DeleteRole/2018-01-01/iam/get/"; + String localVarPath = "/DeleteProject/2021-08-01/iam/get/"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -2297,13 +2449,13 @@ public com.squareup.okhttp.Call deleteRoleCall(DeleteRoleRequest body, final Pro Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json" }; final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); final String[] localVarContentTypes = { - "text/plain" + "text/plain" }; final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); @@ -2314,8 +2466,8 @@ public com.squareup.okhttp.Call deleteRoleCall(DeleteRoleRequest body, final Pro public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); } }); } @@ -2323,57 +2475,52 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch String[] localVarAuthNames = new String[] { "volcengineSign" }; return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call deleteRoleValidateBeforeCall(DeleteRoleRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call deleteProjectValidateBeforeCall(DeleteProjectRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { // verify the required parameter 'body' is set if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling deleteRole(Async)"); + throw new ApiException("Missing the required parameter 'body' when calling deleteProject(Async)"); } - - com.squareup.okhttp.Call call = deleteRoleCall(body, progressListener, progressRequestListener); - return call; - - - - + com.squareup.okhttp.Call call = deleteProjectCall(body, progressListener, progressRequestListener); + return call; } /** - * - * + * + * * @param body (required) - * @return DeleteRoleResponse + * @return DeleteProjectResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public DeleteRoleResponse deleteRole(DeleteRoleRequest body) throws ApiException { - ApiResponse resp = deleteRoleWithHttpInfo(body); + public DeleteProjectResponse deleteProject(DeleteProjectRequest body) throws ApiException { + ApiResponse resp = deleteProjectWithHttpInfo(body); return resp.getData(); } /** - * - * + * + * * @param body (required) - * @return ApiResponse<DeleteRoleResponse> + * @return ApiResponse<DeleteProjectResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse deleteRoleWithHttpInfo( @NotNull DeleteRoleRequest body) throws ApiException { - com.squareup.okhttp.Call call = deleteRoleValidateBeforeCall(body, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse deleteProjectWithHttpInfo( @NotNull DeleteProjectRequest body) throws ApiException { + com.squareup.okhttp.Call call = deleteProjectValidateBeforeCall(body, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** * (asynchronously) - * + * * @param body (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 */ - public com.squareup.okhttp.Call deleteRoleAsync(DeleteRoleRequest body, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call deleteProjectAsync(DeleteProjectRequest body, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -2394,24 +2541,25 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = deleteRoleValidateBeforeCall(body, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = deleteProjectValidateBeforeCall(body, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } + /** - * Build call for deleteSAMLProvider + * Build call for deleteRole * @param body (required) * @param progressListener Progress listener * @param progressRequestListener Progress request listener * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call deleteSAMLProviderCall(DeleteSAMLProviderRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call deleteRoleCall(DeleteRoleRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = body; // create path and map variables - String localVarPath = "/DeleteSAMLProvider/2018-01-01/iam/get/"; + String localVarPath = "/DeleteRole/2018-01-01/iam/get/"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -2449,13 +2597,13 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call deleteSAMLProviderValidateBeforeCall(DeleteSAMLProviderRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call deleteRoleValidateBeforeCall(DeleteRoleRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { // verify the required parameter 'body' is set if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling deleteSAMLProvider(Async)"); + throw new ApiException("Missing the required parameter 'body' when calling deleteRole(Async)"); } - com.squareup.okhttp.Call call = deleteSAMLProviderCall(body, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = deleteRoleCall(body, progressListener, progressRequestListener); return call; @@ -2468,11 +2616,11 @@ private com.squareup.okhttp.Call deleteSAMLProviderValidateBeforeCall(DeleteSAML * * * @param body (required) - * @return DeleteSAMLProviderResponse + * @return DeleteRoleResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public DeleteSAMLProviderResponse deleteSAMLProvider(DeleteSAMLProviderRequest body) throws ApiException { - ApiResponse resp = deleteSAMLProviderWithHttpInfo(body); + public DeleteRoleResponse deleteRole(DeleteRoleRequest body) throws ApiException { + ApiResponse resp = deleteRoleWithHttpInfo(body); return resp.getData(); } @@ -2480,12 +2628,12 @@ public DeleteSAMLProviderResponse deleteSAMLProvider(DeleteSAMLProviderRequest b * * * @param body (required) - * @return ApiResponse<DeleteSAMLProviderResponse> + * @return ApiResponse<DeleteRoleResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse deleteSAMLProviderWithHttpInfo( @NotNull DeleteSAMLProviderRequest body) throws ApiException { - com.squareup.okhttp.Call call = deleteSAMLProviderValidateBeforeCall(body, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse deleteRoleWithHttpInfo( @NotNull DeleteRoleRequest body) throws ApiException { + com.squareup.okhttp.Call call = deleteRoleValidateBeforeCall(body, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } @@ -2497,7 +2645,7 @@ public ApiResponse deleteSAMLProviderWithHttpInfo( @ * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ - public com.squareup.okhttp.Call deleteSAMLProviderAsync(DeleteSAMLProviderRequest body, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call deleteRoleAsync(DeleteRoleRequest body, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -2518,9 +2666,133 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = deleteSAMLProviderValidateBeforeCall(body, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); + com.squareup.okhttp.Call call = deleteRoleValidateBeforeCall(body, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for deleteSAMLProvider + * @param body (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call deleteSAMLProviderCall(DeleteSAMLProviderRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/DeleteSAMLProvider/2018-01-01/iam/get/"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "text/plain" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "volcengineSign" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call deleteSAMLProviderValidateBeforeCall(DeleteSAMLProviderRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling deleteSAMLProvider(Async)"); + } + + com.squareup.okhttp.Call call = deleteSAMLProviderCall(body, progressListener, progressRequestListener); + return call; + + + + + + } + + /** + * + * + * @param body (required) + * @return DeleteSAMLProviderResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public DeleteSAMLProviderResponse deleteSAMLProvider(DeleteSAMLProviderRequest body) throws ApiException { + ApiResponse resp = deleteSAMLProviderWithHttpInfo(body); + return resp.getData(); + } + + /** + * + * + * @param body (required) + * @return ApiResponse<DeleteSAMLProviderResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse deleteSAMLProviderWithHttpInfo( @NotNull DeleteSAMLProviderRequest body) throws ApiException { + com.squareup.okhttp.Call call = deleteSAMLProviderValidateBeforeCall(body, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * (asynchronously) + * + * @param body (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 + */ + public com.squareup.okhttp.Call deleteSAMLProviderAsync(DeleteSAMLProviderRequest body, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = deleteSAMLProviderValidateBeforeCall(body, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** @@ -2647,6 +2919,132 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don apiClient.executeAsync(call, localVarReturnType, callback); return call; } + + /** + * Build call for detachPolicyInProject + * @param body (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call detachPolicyInProjectCall(DetachPolicyInProjectRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/DetachPolicyInProject/2021-08-01/iam/get/"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "text/plain" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "volcengineSign" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call detachPolicyInProjectValidateBeforeCall(DetachPolicyInProjectRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling detachPolicyInProject(Async)"); + } + + com.squareup.okhttp.Call call = detachPolicyInProjectCall(body, progressListener, progressRequestListener); + return call; + + + + + + } + + /** + * + * + * @param body (required) + * @return DetachPolicyInProjectResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public DetachPolicyInProjectResponse detachPolicyInProject(DetachPolicyInProjectRequest body) throws ApiException { + ApiResponse resp = detachPolicyInProjectWithHttpInfo(body); + return resp.getData(); + } + + /** + * + * + * @param body (required) + * @return ApiResponse<DetachPolicyInProjectResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse detachPolicyInProjectWithHttpInfo( @NotNull DetachPolicyInProjectRequest body) throws ApiException { + com.squareup.okhttp.Call call = detachPolicyInProjectValidateBeforeCall(body, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * (asynchronously) + * + * @param body (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 + */ + public com.squareup.okhttp.Call detachPolicyInProjectAsync(DetachPolicyInProjectRequest body, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = detachPolicyInProjectValidateBeforeCall(body, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** * Build call for detachRolePolicy * @param body (required) @@ -3391,19 +3789,20 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don apiClient.executeAsync(call, localVarReturnType, callback); return call; } + /** - * Build call for getRole + * Build call for getProject * @param body (required) * @param progressListener Progress listener * @param progressRequestListener Progress request listener * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call getRoleCall(GetRoleRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call getProjectCall(GetProjectRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = body; - + // create path and map variables - String localVarPath = "/GetRole/2018-01-01/iam/get/"; + String localVarPath = "/GetProject/2021-08-01/iam/get/"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -3413,13 +3812,15 @@ public com.squareup.okhttp.Call getRoleCall(GetRoleRequest body, final ProgressR Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json" }; final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "text/plain" + "text/plain" }; final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); @@ -3430,8 +3831,8 @@ public com.squareup.okhttp.Call getRoleCall(GetRoleRequest body, final ProgressR public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); } }); } @@ -3439,32 +3840,151 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch String[] localVarAuthNames = new String[] { "volcengineSign" }; return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getRoleValidateBeforeCall(GetRoleRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call getProjectValidateBeforeCall(GetProjectRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { // verify the required parameter 'body' is set if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling getRole(Async)"); + throw new ApiException("Missing the required parameter 'body' when calling getProject(Async)"); } - - com.squareup.okhttp.Call call = getRoleCall(body, progressListener, progressRequestListener); - return call; - - - - + return getProjectCall(body, progressListener, progressRequestListener); } /** - * - * + * + * * @param body (required) - * @return GetRoleResponse + * @return GetProjectResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public GetRoleResponse getRole(GetRoleRequest body) throws ApiException { - ApiResponse resp = getRoleWithHttpInfo(body); + public GetProjectResponse getProject(GetProjectRequest body) throws ApiException { + ApiResponse resp = getProjectWithHttpInfo(body); + return resp.getData(); + } + + /** + * + * + * @param body (required) + * @return ApiResponse<GetProjectResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse getProjectWithHttpInfo( @NotNull GetProjectRequest body) throws ApiException { + com.squareup.okhttp.Call call = getProjectValidateBeforeCall(body, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * (asynchronously) + * + * @param body (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 + */ + public com.squareup.okhttp.Call getProjectAsync(GetProjectRequest body, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = getProjectValidateBeforeCall(body, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + + /** + * Build call for getRole + * @param body (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call getRoleCall(GetRoleRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/GetRole/2018-01-01/iam/get/"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "text/plain" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "volcengineSign" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call getRoleValidateBeforeCall(GetRoleRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling getRole(Async)"); + } + + com.squareup.okhttp.Call call = getRoleCall(body, progressListener, progressRequestListener); + return call; + + + + + + } + + /** + * + * + * @param body (required) + * @return GetRoleResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public GetRoleResponse getRole(GetRoleRequest body) throws ApiException { + ApiResponse resp = getRoleWithHttpInfo(body); return resp.getData(); } @@ -4588,24 +5108,394 @@ public ListGroupsForUserResponse listGroupsForUser(ListGroupsForUserRequest body * * * @param body (required) - * @return ApiResponse<ListGroupsForUserResponse> + * @return ApiResponse<ListGroupsForUserResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse listGroupsForUserWithHttpInfo( @NotNull ListGroupsForUserRequest body) throws ApiException { + com.squareup.okhttp.Call call = listGroupsForUserValidateBeforeCall(body, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * (asynchronously) + * + * @param body (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 + */ + public com.squareup.okhttp.Call listGroupsForUserAsync(ListGroupsForUserRequest body, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = listGroupsForUserValidateBeforeCall(body, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for listPolicies + * @param body (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call listPoliciesCall(ListPoliciesRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/ListPolicies/2018-01-01/iam/get/"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "text/plain" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "volcengineSign" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call listPoliciesValidateBeforeCall(ListPoliciesRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling listPolicies(Async)"); + } + + com.squareup.okhttp.Call call = listPoliciesCall(body, progressListener, progressRequestListener); + return call; + + + + + + } + + /** + * + * + * @param body (required) + * @return ListPoliciesResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ListPoliciesResponse listPolicies(ListPoliciesRequest body) throws ApiException { + ApiResponse resp = listPoliciesWithHttpInfo(body); + return resp.getData(); + } + + /** + * + * + * @param body (required) + * @return ApiResponse<ListPoliciesResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse listPoliciesWithHttpInfo( @NotNull ListPoliciesRequest body) throws ApiException { + com.squareup.okhttp.Call call = listPoliciesValidateBeforeCall(body, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * (asynchronously) + * + * @param body (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 + */ + public com.squareup.okhttp.Call listPoliciesAsync(ListPoliciesRequest body, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = listPoliciesValidateBeforeCall(body, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + + + /** + * Build call for listProjectIdentities + * @param body (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call listProjectIdentitiesCall(ListProjectIdentitiesRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/ListProjectIdentities/2021-08-01/iam/get/"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "text/plain" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "volcengineSign" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call listProjectIdentitiesValidateBeforeCall(ListProjectIdentitiesRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling listProjectIdentities(Async)"); + } + + com.squareup.okhttp.Call call = listProjectIdentitiesCall(body, progressListener, progressRequestListener); + return call; + + + + + + } + + /** + * + * + * @param body (required) + * @return ListProjectIdentitiesResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ListProjectIdentitiesResponse listProjectIdentities(ListProjectIdentitiesRequest body) throws ApiException { + ApiResponse resp = listProjectIdentitiesWithHttpInfo(body); + return resp.getData(); + } + + /** + * + * + * @param body (required) + * @return ApiResponse<ListProjectIdentitiesResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse listProjectIdentitiesWithHttpInfo( @NotNull ListProjectIdentitiesRequest body) throws ApiException { + com.squareup.okhttp.Call call = listProjectIdentitiesValidateBeforeCall(body, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * (asynchronously) + * + * @param body (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 + */ + public com.squareup.okhttp.Call listProjectIdentitiesAsync(ListProjectIdentitiesRequest body, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = listProjectIdentitiesValidateBeforeCall(body, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + + /** + * Build call for listProjectResources + * @param body (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call listProjectResourcesCall(ListProjectResourcesRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/ListProjectResources/2021-08-01/iam/get/"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "text/plain" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "volcengineSign" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call listProjectResourcesValidateBeforeCall(ListProjectResourcesRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling listProjectResources(Async)"); + } + + com.squareup.okhttp.Call call = listProjectResourcesCall(body, progressListener, progressRequestListener); + return call; + } + + /** + * + * + * @param body (required) + * @return ListProjectResourcesResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ListProjectResourcesResponse listProjectResources(ListProjectResourcesRequest body) throws ApiException { + ApiResponse resp = listProjectResourcesWithHttpInfo(body); + return resp.getData(); + } + + /** + * + * + * @param body (required) + * @return ApiResponse<ListProjectResourcesResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse listGroupsForUserWithHttpInfo( @NotNull ListGroupsForUserRequest body) throws ApiException { - com.squareup.okhttp.Call call = listGroupsForUserValidateBeforeCall(body, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse listProjectResourcesWithHttpInfo( @NotNull ListProjectResourcesRequest body) throws ApiException { + com.squareup.okhttp.Call call = listProjectResourcesValidateBeforeCall(body, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } /** * (asynchronously) - * + * * @param body (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 */ - public com.squareup.okhttp.Call listGroupsForUserAsync(ListGroupsForUserRequest body, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call listProjectResourcesAsync(ListProjectResourcesRequest body, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -4626,24 +5516,27 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = listGroupsForUserValidateBeforeCall(body, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = listProjectResourcesValidateBeforeCall(body, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } + /** - * Build call for listPolicies - * @param body (required) - * @param progressListener Progress listener + * Build call for listProjects + * + * @param body (required) + * @param progressListener Progress listener * @param progressRequestListener Progress request listener * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call listPoliciesCall(ListPoliciesRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call listProjectsCall(ListProjectsRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = body; - + // create path and map variables - String localVarPath = "/ListPolicies/2018-01-01/iam/get/"; + String localVarPath = "/ListProjects/2021-08-01/iam/get/"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -4653,83 +5546,76 @@ public com.squareup.okhttp.Call listPoliciesCall(ListPoliciesRequest body, final Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json" }; final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "text/plain" + "text/plain" }; final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { + if (progressListener != null) { apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { @Override public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); } }); } - String[] localVarAuthNames = new String[] { "volcengineSign" }; + String[] localVarAuthNames = new String[]{"volcengineSign"}; return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); } - - @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call listPoliciesValidateBeforeCall(ListPoliciesRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + private com.squareup.okhttp.Call listProjectsValidateBeforeCall(ListProjectsRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { // verify the required parameter 'body' is set if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling listPolicies(Async)"); + throw new ApiException("Missing the required parameter 'body' when calling listProjects(Async)"); } - - com.squareup.okhttp.Call call = listPoliciesCall(body, progressListener, progressRequestListener); - return call; - - - - - + return listProjectsCall(body, progressListener, progressRequestListener); } /** - * - * - * @param body (required) - * @return ListPoliciesResponse + * @param body (required) + * @return ListProjectResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ListPoliciesResponse listPolicies(ListPoliciesRequest body) throws ApiException { - ApiResponse resp = listPoliciesWithHttpInfo(body); + public ListProjectsResponse listProjects(ListProjectsRequest body) throws ApiException { + ApiResponse resp = listProjectsWithHttpInfo(body); return resp.getData(); } /** - * - * - * @param body (required) - * @return ApiResponse<ListPoliciesResponse> + * listProjectsWithHttpInfo + * + * @param body (required) + * @return ApiResponse<ListProjectResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse listPoliciesWithHttpInfo( @NotNull ListPoliciesRequest body) throws ApiException { - com.squareup.okhttp.Call call = listPoliciesValidateBeforeCall(body, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse listProjectsWithHttpInfo(@NotNull ListProjectsRequest body) throws ApiException { + com.squareup.okhttp.Call call = listProjectsValidateBeforeCall(body, null, null); + Type localVarReturnType = new TypeToken() { + }.getType(); return apiClient.execute(call, localVarReturnType); } /** - * (asynchronously) - * - * @param body (required) + * (asynchronously) + * + * @param body (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 */ - public com.squareup.okhttp.Call listPoliciesAsync(ListPoliciesRequest body, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call listProjectsAsync(ListProjectsRequest body, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -4750,11 +5636,13 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = listPoliciesValidateBeforeCall(body, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = listProjectsValidateBeforeCall(body, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken() { + }.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } + /** * Build call for listRoles * @param body (required) @@ -5127,6 +6015,133 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don apiClient.executeAsync(call, localVarReturnType, callback); return call; } + + + /** + * Build call for moveProjectResource + * @param body (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call moveProjectResourceCall(MoveProjectResourceRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/MoveProjectResource/2021-08-01/iam/get/"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "text/plain" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "volcengineSign" }; + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call moveProjectResourceValidateBeforeCall(MoveProjectResourceRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling moveProjectResource(Async)"); + } + + com.squareup.okhttp.Call call = moveProjectResourceCall(body, progressListener, progressRequestListener); + return call; + + + + + + } + + /** + * + * + * @param body (required) + * @return moveProjectResourceResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public MoveProjectResourceResponse moveProjectResource(MoveProjectResourceRequest body) throws ApiException { + ApiResponse resp = moveProjectResourceWithHttpInfo(body); + return resp.getData(); + } + + /** + * + * + * @param body (required) + * @return ApiResponse<MoveProjectResourceResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse moveProjectResourceWithHttpInfo( @NotNull MoveProjectResourceRequest body) throws ApiException { + com.squareup.okhttp.Call call = moveProjectResourceValidateBeforeCall(body, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * (asynchronously) + * + * @param body (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 + */ + public com.squareup.okhttp.Call moveProjectResourceAsync(MoveProjectResourceRequest body, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = moveProjectResourceValidateBeforeCall(body, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** * Build call for listUsersForGroup * @param body (required) @@ -5871,6 +6886,127 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don apiClient.executeAsync(call, localVarReturnType, callback); return call; } + + /** + * Build call for updateProject + * @param body (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call updateProjectCall(UpdateProjectRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/UpdateProject/2021-08-01/iam/get/"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "text/plain" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "volcengineSign" }; + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call updateProjectValidateBeforeCall(UpdateProjectRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling updateProject(Async)"); + } + + com.squareup.okhttp.Call call = updateProjectCall(body, progressListener, progressRequestListener); + return call; + } + + /** + * + * + * @param body (required) + * @return UpdateProjectResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public UpdateProjectResponse updateProject(UpdateProjectRequest body) throws ApiException { + ApiResponse resp = updateProjectWithHttpInfo(body); + return resp.getData(); + } + + /** + * + * + * @param body (required) + * @return ApiResponse<UpdateProjectResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse updateProjectWithHttpInfo( @NotNull UpdateProjectRequest body) throws ApiException { + com.squareup.okhttp.Call call = updateProjectValidateBeforeCall(body, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * (asynchronously) + * + * @param body (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 + */ + public com.squareup.okhttp.Call updateProjectAsync(UpdateProjectRequest body, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = updateProjectValidateBeforeCall(body, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** * Build call for updateRole * @param body (required) diff --git a/volcengine-java-sdk-iam/src/main/java/com/volcengine/iam/model/AttachPolicyInProjectRequest.java b/volcengine-java-sdk-iam/src/main/java/com/volcengine/iam/model/AttachPolicyInProjectRequest.java new file mode 100644 index 000000000..2fc1c7e89 --- /dev/null +++ b/volcengine-java-sdk-iam/src/main/java/com/volcengine/iam/model/AttachPolicyInProjectRequest.java @@ -0,0 +1,173 @@ +package com.volcengine.iam.model; + +import com.google.gson.annotations.SerializedName; +import io.swagger.v3.oas.annotations.media.Schema; + +import java.util.List; +import java.util.Objects; + +/** + * AttachPolicyInProjectRequest + */ +public class AttachPolicyInProjectRequest { + + @SerializedName("PrincipalType") + private String principalType = null; + + @SerializedName("PrincipalName") + private String principalName = null; + + @SerializedName("PolicyType") + private String policyType = null; + + @SerializedName("PolicyName") + private String policyName = null; + + @SerializedName("ProjectName") + private List projectName = null; + + + public AttachPolicyInProjectRequest principalType(String principalType) { + this.principalType = principalType; + return this; + } + + /** + * Get principalType + * + * @return principalType + */ + @Schema(description = "") + public String getPrincipalType() { + return principalType; + } + + public void setPrincipalType(String principalType) { + this.principalType = principalType; + } + + public AttachPolicyInProjectRequest principalName(String principalName) { + this.principalName = principalName; + return this; + } + + /** + * Get principalName + * + * @return principalName + */ + @Schema(description = "") + public String getPrincipalName() { + return principalName; + } + + public void setPrincipalName(String principalName) { + this.principalName = principalName; + } + + public AttachPolicyInProjectRequest policyType(String policyType) { + this.policyType = policyType; + return this; + } + + /** + * Get policyType + * + * @return policyType + */ + @Schema(description = "") + public String getPolicyType() { + return policyType; + } + + public void setPolicyType(String policyType) { + this.policyType = policyType; + } + + public AttachPolicyInProjectRequest policyName(String policyName) { + this.policyName = policyName; + return this; + } + + /** + * Get policyName + * + * @return policyName + */ + @Schema(description = "") + public String getPolicyName() { + return policyName; + } + + public void setPolicyName(String policyName) { + this.policyName = policyName; + } + + public AttachPolicyInProjectRequest projectName(List projectName) { + this.projectName = projectName; + return this; + } + + /** + * Get projectName + * + * @return projectName + */ + @Schema(description = "") + public List getProjectName() { + return projectName; + } + + public void setProjectName(List projectName) { + this.projectName = projectName; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AttachPolicyInProjectRequest attachPolicyInProjectRequest = (AttachPolicyInProjectRequest) o; + return Objects.equals(this.principalType, attachPolicyInProjectRequest.principalType) && + Objects.equals(this.principalName, attachPolicyInProjectRequest.principalName) && + Objects.equals(this.policyType, attachPolicyInProjectRequest.policyType) && + Objects.equals(this.policyName, attachPolicyInProjectRequest.policyName) && + Objects.equals(this.projectName, attachPolicyInProjectRequest.projectName); + } + + @Override + public int hashCode() { + return Objects.hash(principalType, principalName, policyType, policyName, projectName); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AttachPolicyInProjectRequest {\n"); + + sb.append(" principalType: ").append(toIndentedString(principalType)).append("\n"); + sb.append(" principalName: ").append(toIndentedString(principalName)).append("\n"); + sb.append(" policyType: ").append(toIndentedString(policyType)).append("\n"); + sb.append(" policyName: ").append(toIndentedString(policyName)).append("\n"); + sb.append(" projectName: ").append(toIndentedString(projectName)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/volcengine-java-sdk-iam/src/main/java/com/volcengine/iam/model/AttachPolicyInProjectResponse.java b/volcengine-java-sdk-iam/src/main/java/com/volcengine/iam/model/AttachPolicyInProjectResponse.java new file mode 100644 index 000000000..6add87e5a --- /dev/null +++ b/volcengine-java-sdk-iam/src/main/java/com/volcengine/iam/model/AttachPolicyInProjectResponse.java @@ -0,0 +1,47 @@ +package com.volcengine.iam.model; + +import java.util.Objects; + +/** + * AttachPolicyInProjectResponse + */ +public class AttachPolicyInProjectResponse { + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + return true; + } + + @Override + public int hashCode() { + return Objects.hash(); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AttachPolicyInProjectResponse {\n"); + + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/volcengine-java-sdk-iam/src/main/java/com/volcengine/iam/model/CreateProjectRequest.java b/volcengine-java-sdk-iam/src/main/java/com/volcengine/iam/model/CreateProjectRequest.java new file mode 100644 index 000000000..73538337b --- /dev/null +++ b/volcengine-java-sdk-iam/src/main/java/com/volcengine/iam/model/CreateProjectRequest.java @@ -0,0 +1,141 @@ +package com.volcengine.iam.model; + +import com.google.gson.annotations.SerializedName; + +import java.util.Objects; + +/** + * CreateProjectRequest + */ +public class CreateProjectRequest { + + @SerializedName("DisplayName") + private String displayName = null; + + @SerializedName("ProjectName") + private String projectName = null; + + @SerializedName("Description") + private String description = null; + + @SerializedName("ParentProjectName") + private String parentProjectName = null; + + + public CreateProjectRequest displayName(String displayName) { + this.displayName = displayName; + return this; + } + + /** + * Get displayName + * + * @return displayName + */ + public String getDisplayName() { + return displayName; + } + + public void setDisplayName(String displayName) { + this.displayName = displayName; + } + + public CreateProjectRequest projectName(String projectName) { + this.projectName = projectName; + return this; + } + + /** + * Get projectName + * + * @return projectName + */ + public String getProjectName() { + return projectName; + } + + public void setProjectName(String projectName) { + this.projectName = projectName; + } + + public CreateProjectRequest description(String description) { + this.description = description; + return this; + } + + /** + * Get description + * + * @return description + */ + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public CreateProjectRequest parentProjectName(String parentProjectName) { + this.parentProjectName = parentProjectName; + return this; + } + + /** + * Get parentProjectName + * + * @return parentProjectName + */ + public String getParentProjectName() { + return parentProjectName; + } + + public void setParentProjectName(String parentProjectName) { + this.parentProjectName = parentProjectName; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CreateProjectRequest createProjectRequest = (CreateProjectRequest) o; + return Objects.equals(this.displayName, createProjectRequest.displayName) && + Objects.equals(this.projectName, createProjectRequest.projectName) && + Objects.equals(this.description, createProjectRequest.description) && + Objects.equals(this.parentProjectName, createProjectRequest.parentProjectName); + } + + @Override + public int hashCode() { + return Objects.hash(displayName, projectName, description, parentProjectName); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateUserRequest {\n"); + + sb.append(" displayName: ").append(toIndentedString(displayName)).append("\n"); + sb.append(" projectName: ").append(toIndentedString(projectName)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" parentProjectName: ").append(toIndentedString(parentProjectName)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} diff --git a/volcengine-java-sdk-iam/src/main/java/com/volcengine/iam/model/CreateProjectResponse.java b/volcengine-java-sdk-iam/src/main/java/com/volcengine/iam/model/CreateProjectResponse.java new file mode 100644 index 000000000..223dbe7dd --- /dev/null +++ b/volcengine-java-sdk-iam/src/main/java/com/volcengine/iam/model/CreateProjectResponse.java @@ -0,0 +1,220 @@ +package com.volcengine.iam.model; + +import com.google.gson.annotations.SerializedName; +import io.swagger.v3.oas.annotations.media.Schema; + +import java.util.Objects; + +/** + * CreateProjectResponse + */ +public class CreateProjectResponse { + + @SerializedName("AccountID") + private Long accountId = null; + + @SerializedName("ProjectName") + private String projectName = null; + + @SerializedName("ParentProjectName") + private String parentProjectName = null; + + @SerializedName("Path") + private String path = null; + + @SerializedName("DisplayName") + private String displayName = null; + + @SerializedName("Description") + private String description = null; + + @SerializedName("CreateDate") + private String createDate = null; + + @SerializedName("UpdateDate") + private String updateDate = null; + + @SerializedName("Status") + private String status = null; + + /** + * Get accountId + * + * @return accountId + */ + @Schema(description = "") + public Long getAccountId() { + return accountId; + } + + public void setAccountId(Long accountId) { + this.accountId = accountId; + } + + /** + * Get projectName + * + * @return projectName + */ + @Schema(description = "") + public String getProjectName() { + return projectName; + } + + public void setProjectName(String projectName) { + this.projectName = projectName; + } + + /** + * Get parentProjectName + * + * @return parentProjectName + */ + @Schema(description = "") + public String getParentProjectName() { + return parentProjectName; + } + + public void setParentProjectName(String parentProjectName) { + this.parentProjectName = parentProjectName; + } + + /** + * Get path + * + * @return path + */ + @Schema(description = "") + public String getPath() { + return path; + } + + public void setPath(String path) { + this.path = path; + } + + /** + * Get displayName + * + * @return displayName + */ + @Schema(description = "") + public String getDisplayName() { + return displayName; + } + + public void setDisplayName(String displayName) { + this.displayName = displayName; + } + + /** + * Get description + * + * @return description + */ + @Schema(description = "") + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + /** + * Get createDate + * + * @return createDate + */ + @Schema(description = "") + public String getCreateDate() { + return createDate; + } + + public void setCreateDate(String createDate) { + this.createDate = createDate; + } + + /** + * Get updateDate + * + * @return updateDate + */ + @Schema(description = "") + public String getUpdateDate() { + return updateDate; + } + + public void setUpdateDate(String updateDate) { + this.updateDate = updateDate; + } + + /** + * Get status + * + * @return status + */ + @Schema(description = "") + public String getStatus() { + return status; + } + + public void setStatus(String status) { + this.status = status; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CreateProjectResponse createProjectResponse = (CreateProjectResponse) o; + return Objects.equals(this.accountId, createProjectResponse.accountId) && + Objects.equals(this.projectName, createProjectResponse.projectName) && + Objects.equals(this.parentProjectName, createProjectResponse.parentProjectName) && + Objects.equals(this.path, createProjectResponse.path) && + Objects.equals(this.displayName, createProjectResponse.displayName) && + Objects.equals(this.description, createProjectResponse.description) && + Objects.equals(this.createDate, createProjectResponse.createDate) && + Objects.equals(this.updateDate, createProjectResponse.updateDate) && + Objects.equals(this.status, createProjectResponse.status); + } + + @Override + public int hashCode() { + return Objects.hash(accountId, projectName, parentProjectName, path, displayName, description, createDate, updateDate, status); + } + + @Override + public String toString() { + + StringBuilder sb = new StringBuilder(); + sb.append("class CreateProjectResponse {\n"); + + sb.append(" accountId: ").append(toIndentedString(accountId)).append("\n"); + sb.append(" projectName: ").append(toIndentedString(projectName)).append("\n"); + sb.append(" parentProjectName: ").append(toIndentedString(parentProjectName)).append("\n"); + sb.append(" path: ").append(toIndentedString(path)).append("\n"); + sb.append(" displayName: ").append(toIndentedString(displayName)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" createDate: ").append(toIndentedString(createDate)).append("\n"); + sb.append(" updateDate: ").append(toIndentedString(updateDate)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} diff --git a/volcengine-java-sdk-iam/src/main/java/com/volcengine/iam/model/DeleteProjectRequest.java b/volcengine-java-sdk-iam/src/main/java/com/volcengine/iam/model/DeleteProjectRequest.java new file mode 100644 index 000000000..84e0a524c --- /dev/null +++ b/volcengine-java-sdk-iam/src/main/java/com/volcengine/iam/model/DeleteProjectRequest.java @@ -0,0 +1,74 @@ +package com.volcengine.iam.model; + +import com.google.gson.annotations.SerializedName; +import io.swagger.v3.oas.annotations.media.Schema; + +import javax.validation.constraints.NotNull; +import java.util.Objects; + +/** + * DeleteProjectRequest + */ +public class DeleteProjectRequest { + + @SerializedName("ProjectName") + private String projectName = null; + + public DeleteProjectRequest projectName(String projectName) { + this.projectName = projectName; + return this; + } + + /** + * Get projectName + * + * @return projectName + **/ + @NotNull + @Schema(required = true, description = "") + public String getProjectName() { + return projectName; + } + + public void setProjectName(String projectName) { + this.projectName = projectName; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DeleteProjectRequest deleteProjectRequest = (DeleteProjectRequest) o; + return Objects.equals(this.projectName, deleteProjectRequest.projectName); + } + + @Override + public int hashCode() { + return Objects.hash(projectName); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DeleteProjectRequest {\n"); + sb.append(" projectName: ").append(toIndentedString(projectName)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} diff --git a/volcengine-java-sdk-iam/src/main/java/com/volcengine/iam/model/DeleteProjectResponse.java b/volcengine-java-sdk-iam/src/main/java/com/volcengine/iam/model/DeleteProjectResponse.java new file mode 100644 index 000000000..63ef6dc8d --- /dev/null +++ b/volcengine-java-sdk-iam/src/main/java/com/volcengine/iam/model/DeleteProjectResponse.java @@ -0,0 +1,45 @@ +package com.volcengine.iam.model; + +import java.util.Objects; + +/** + * DeleteProjectResponse + */ +public class DeleteProjectResponse { + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + return true; + } + + @Override + public int hashCode() { + return Objects.hash(); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DeleteProjectResponse {\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} diff --git a/volcengine-java-sdk-iam/src/main/java/com/volcengine/iam/model/DetachPolicyInProjectRequest.java b/volcengine-java-sdk-iam/src/main/java/com/volcengine/iam/model/DetachPolicyInProjectRequest.java new file mode 100644 index 000000000..e3eb589e1 --- /dev/null +++ b/volcengine-java-sdk-iam/src/main/java/com/volcengine/iam/model/DetachPolicyInProjectRequest.java @@ -0,0 +1,173 @@ +package com.volcengine.iam.model; + +import com.google.gson.annotations.SerializedName; +import io.swagger.v3.oas.annotations.media.Schema; + +import java.util.List; +import java.util.Objects; + +/** + * DetachPolicyInProjectRequest + */ +public class DetachPolicyInProjectRequest { + + @SerializedName("PrincipalType") + private String principalType = null; + + @SerializedName("PrincipalName") + private String principalName = null; + + @SerializedName("PolicyType") + private String policyType = null; + + @SerializedName("PolicyName") + private String policyName = null; + + @SerializedName("ProjectName") + private List projectName = null; + + + public DetachPolicyInProjectRequest principalType(String principalType) { + this.principalType = principalType; + return this; + } + + /** + * Get principalType + * + * @return principalType + */ + @Schema(description = "") + public String getPrincipalType() { + return principalType; + } + + public void setPrincipalType(String principalType) { + this.principalType = principalType; + } + + public DetachPolicyInProjectRequest principalName(String principalName) { + this.principalName = principalName; + return this; + } + + /** + * Get principalName + * + * @return principalName + */ + @Schema(description = "") + public String getPrincipalName() { + return principalName; + } + + public void setPrincipalName(String principalName) { + this.principalName = principalName; + } + + public DetachPolicyInProjectRequest policyType(String policyType) { + this.policyType = policyType; + return this; + } + + /** + * Get policyType + * + * @return policyType + */ + @Schema(description = "") + public String getPolicyType() { + return policyType; + } + + public void setPolicyType(String policyType) { + this.policyType = policyType; + } + + public DetachPolicyInProjectRequest policyName(String policyName) { + this.policyName = policyName; + return this; + } + + /** + * Get policyName + * + * @return policyName + */ + @Schema(description = "") + public String getPolicyName() { + return policyName; + } + + public void setPolicyName(String policyName) { + this.policyName = policyName; + } + + public DetachPolicyInProjectRequest projectName(List projectName) { + this.projectName = projectName; + return this; + } + + /** + * Get projectName + * + * @return projectName + */ + @Schema(description = "") + public List getProjectName() { + return projectName; + } + + public void setProjectName(List projectName) { + this.projectName = projectName; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DetachPolicyInProjectRequest detachPolicyInProjectRequest = (DetachPolicyInProjectRequest) o; + return Objects.equals(this.principalType, detachPolicyInProjectRequest.principalType) && + Objects.equals(this.principalName, detachPolicyInProjectRequest.principalName) && + Objects.equals(this.policyType, detachPolicyInProjectRequest.policyType) && + Objects.equals(this.policyName, detachPolicyInProjectRequest.policyName) && + Objects.equals(this.projectName, detachPolicyInProjectRequest.projectName); + } + + @Override + public int hashCode() { + return Objects.hash(principalType, principalName, policyType, policyName, projectName); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DetachPolicyInProjectRequest {\n"); + + sb.append(" principalType: ").append(toIndentedString(principalType)).append("\n"); + sb.append(" principalName: ").append(toIndentedString(principalName)).append("\n"); + sb.append(" policyType: ").append(toIndentedString(policyType)).append("\n"); + sb.append(" policyName: ").append(toIndentedString(policyName)).append("\n"); + sb.append(" projectName: ").append(toIndentedString(projectName)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/volcengine-java-sdk-iam/src/main/java/com/volcengine/iam/model/DetachPolicyInProjectResponse.java b/volcengine-java-sdk-iam/src/main/java/com/volcengine/iam/model/DetachPolicyInProjectResponse.java new file mode 100644 index 000000000..93a40b468 --- /dev/null +++ b/volcengine-java-sdk-iam/src/main/java/com/volcengine/iam/model/DetachPolicyInProjectResponse.java @@ -0,0 +1,47 @@ +package com.volcengine.iam.model; + +import java.util.Objects; + +/** + * DetachPolicyInProjectResponse + */ +public class DetachPolicyInProjectResponse { + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + return true; + } + + @Override + public int hashCode() { + return Objects.hash(); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DetachPolicyInProjectResponse {\n"); + + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/volcengine-java-sdk-iam/src/main/java/com/volcengine/iam/model/GetProjectRequest.java b/volcengine-java-sdk-iam/src/main/java/com/volcengine/iam/model/GetProjectRequest.java new file mode 100644 index 000000000..5cae4300b --- /dev/null +++ b/volcengine-java-sdk-iam/src/main/java/com/volcengine/iam/model/GetProjectRequest.java @@ -0,0 +1,74 @@ +package com.volcengine.iam.model; + +import com.google.gson.annotations.SerializedName; +import io.swagger.v3.oas.annotations.media.Schema; + +import javax.validation.constraints.NotNull; +import java.util.Objects; + +/** + * GetProjectRequest + */ +public class GetProjectRequest { + + @SerializedName("ProjectName") + private String projectName = null; + + public GetProjectRequest projectName(String projectName) { + this.projectName = projectName; + return this; + } + + /** + * Get projectName + * + * @return projectName + **/ + @NotNull + @Schema(required = true, description = "") + public String getProjectName() { + return projectName; + } + + public void setProjectName(String projectName) { + this.projectName = projectName; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GetProjectRequest getProjectRequest = (GetProjectRequest) o; + return Objects.equals(this.projectName, getProjectRequest.projectName); + } + + @Override + public int hashCode() { + return Objects.hash(projectName); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GetProjectRequest {\n"); + sb.append(" projectName: ").append(toIndentedString(projectName)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} diff --git a/volcengine-java-sdk-iam/src/main/java/com/volcengine/iam/model/GetProjectResponse.java b/volcengine-java-sdk-iam/src/main/java/com/volcengine/iam/model/GetProjectResponse.java new file mode 100644 index 000000000..27264e83b --- /dev/null +++ b/volcengine-java-sdk-iam/src/main/java/com/volcengine/iam/model/GetProjectResponse.java @@ -0,0 +1,220 @@ +package com.volcengine.iam.model; + +import com.google.gson.annotations.SerializedName; +import io.swagger.v3.oas.annotations.media.Schema; + +import java.util.Objects; + +/** + * GetProjectResponse + */ +public class GetProjectResponse { + + @SerializedName("AccountID") + private Long accountId = null; + + @SerializedName("ProjectName") + private String projectName = null; + + @SerializedName("ParentProjectName") + private String parentProjectName = null; + + @SerializedName("Path") + private String path = null; + + @SerializedName("DisplayName") + private String displayName = null; + + @SerializedName("Description") + private String description = null; + + @SerializedName("CreateDate") + private String createDate = null; + + @SerializedName("UpdateDate") + private String updateDate = null; + + @SerializedName("Status") + private String status = null; + + /** + * Get accountId + * + * @return accountId + */ + @Schema(description = "") + public Long getAccountId() { + return accountId; + } + + public void setAccountId(Long accountId) { + this.accountId = accountId; + } + + /** + * Get projectName + * + * @return projectName + */ + @Schema(description = "") + public String getProjectName() { + return projectName; + } + + public void setProjectName(String projectName) { + this.projectName = projectName; + } + + /** + * Get parentProjectName + * + * @return parentProjectName + */ + @Schema(description = "") + public String getParentProjectName() { + return parentProjectName; + } + + public void setParentProjectName(String parentProjectName) { + this.parentProjectName = parentProjectName; + } + + /** + * Get path + * + * @return path + */ + @Schema(description = "") + public String getPath() { + return path; + } + + public void setPath(String path) { + this.path = path; + } + + /** + * Get displayName + * + * @return displayName + */ + @Schema(description = "") + public String getDisplayName() { + return displayName; + } + + public void setDisplayName(String displayName) { + this.displayName = displayName; + } + + /** + * Get description + * + * @return description + */ + @Schema(description = "") + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + /** + * Get createDate + * + * @return createDate + */ + @Schema(description = "") + public String getCreateDate() { + return createDate; + } + + public void setCreateDate(String createDate) { + this.createDate = createDate; + } + + /** + * Get updateDate + * + * @return updateDate + */ + @Schema(description = "") + public String getUpdateDate() { + return updateDate; + } + + public void setUpdateDate(String updateDate) { + this.updateDate = updateDate; + } + + /** + * Get status + * + * @return status + */ + @Schema(description = "") + public String getStatus() { + return status; + } + + public void setStatus(String status) { + this.status = status; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GetProjectResponse GetProjectResponse = (GetProjectResponse) o; + return Objects.equals(this.accountId, GetProjectResponse.accountId) && + Objects.equals(this.projectName, GetProjectResponse.projectName) && + Objects.equals(this.parentProjectName, GetProjectResponse.parentProjectName) && + Objects.equals(this.path, GetProjectResponse.path) && + Objects.equals(this.displayName, GetProjectResponse.displayName) && + Objects.equals(this.description, GetProjectResponse.description) && + Objects.equals(this.createDate, GetProjectResponse.createDate) && + Objects.equals(this.updateDate, GetProjectResponse.updateDate) && + Objects.equals(this.status, GetProjectResponse.status); + } + + @Override + public int hashCode() { + return Objects.hash(accountId, projectName, parentProjectName, path, displayName, description, createDate, updateDate, status); + } + + @Override + public String toString() { + + StringBuilder sb = new StringBuilder(); + sb.append("class GetProjectResponse {\n"); + + sb.append(" accountId: ").append(toIndentedString(accountId)).append("\n"); + sb.append(" projectName: ").append(toIndentedString(projectName)).append("\n"); + sb.append(" parentProjectName: ").append(toIndentedString(parentProjectName)).append("\n"); + sb.append(" path: ").append(toIndentedString(path)).append("\n"); + sb.append(" displayName: ").append(toIndentedString(displayName)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" createDate: ").append(toIndentedString(createDate)).append("\n"); + sb.append(" updateDate: ").append(toIndentedString(updateDate)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} diff --git a/volcengine-java-sdk-iam/src/main/java/com/volcengine/iam/model/ListProjectIdentitiesRequest.java b/volcengine-java-sdk-iam/src/main/java/com/volcengine/iam/model/ListProjectIdentitiesRequest.java new file mode 100644 index 000000000..215af0b92 --- /dev/null +++ b/volcengine-java-sdk-iam/src/main/java/com/volcengine/iam/model/ListProjectIdentitiesRequest.java @@ -0,0 +1,144 @@ +package com.volcengine.iam.model; + +import com.google.gson.annotations.SerializedName; +import io.swagger.v3.oas.annotations.media.Schema; + +import java.util.Objects; + +/** + * ListProjectIdentitiesRequest + */ +public class ListProjectIdentitiesRequest { + + @SerializedName("Limit") + private Integer limit = null; + + @SerializedName("Offset") + private Integer offset = null; + + @SerializedName("IdentityType") + private String identityType = null; + + @SerializedName("Query") + private String query = null; + + @SerializedName("ProjectName") + private String projectName = null; + + public ListProjectIdentitiesRequest limit(Integer limit) { + this.limit = limit; + return this; + } + + @Schema(description = "") + public Integer getLimit() { + return limit; + } + + public void setLimit(Integer limit) { + this.limit = limit; + } + + public ListProjectIdentitiesRequest offset(Integer offset) { + this.offset = offset; + return this; + } + + @Schema(description = "") + public Integer getOffset() { + return offset; + } + + public void setOffset(Integer offset) { + this.offset = offset; + } + + public ListProjectIdentitiesRequest identityType(String identityType) { + this.identityType = identityType; + return this; + } + + @Schema(description = "") + public String getIdentityType() { + return identityType; + } + + public void setIdentityType(String identityType) { + this.identityType = identityType; + } + + public ListProjectIdentitiesRequest query(String query) { + this.query = query; + return this; + } + + @Schema(description = "") + public String getQuery() { + return query; + } + + public void setQuery(String query) { + this.query = query; + } + + public ListProjectIdentitiesRequest projectName(String projectName) { + this.projectName = projectName; + return this; + } + + @Schema(description = "") + public String getProjectName() { + return projectName; + } + + public void setProjectName(String projectName) { + this.projectName = projectName; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ListProjectIdentitiesRequest listProjectIdentitiesRequest = (ListProjectIdentitiesRequest) o; + return Objects.equals(this.limit, listProjectIdentitiesRequest.limit) && + Objects.equals(this.offset, listProjectIdentitiesRequest.offset) && + Objects.equals(this.query, listProjectIdentitiesRequest.query); + } + + @Override + public int hashCode() { + return Objects.hash(limit, offset, query); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListProjectIdentitiesRequest {\n"); + + sb.append(" limit: ").append(toIndentedString(limit)).append("\n"); + sb.append(" offset: ").append(toIndentedString(offset)).append("\n"); + sb.append(" identityType: ").append(toIndentedString(identityType)).append("\n"); + sb.append(" query: ").append(toIndentedString(query)).append("\n"); + sb.append(" projectName: ").append(toIndentedString(projectName)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/volcengine-java-sdk-iam/src/main/java/com/volcengine/iam/model/ListProjectIdentitiesResponse.java b/volcengine-java-sdk-iam/src/main/java/com/volcengine/iam/model/ListProjectIdentitiesResponse.java new file mode 100644 index 000000000..ed9c5ca1b --- /dev/null +++ b/volcengine-java-sdk-iam/src/main/java/com/volcengine/iam/model/ListProjectIdentitiesResponse.java @@ -0,0 +1,221 @@ +package com.volcengine.iam.model; + +import com.google.gson.annotations.SerializedName; +import io.swagger.v3.oas.annotations.media.Schema; + +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * ListProjectIdentitiesResponse + */ +public class ListProjectIdentitiesResponse { + @SerializedName("Limit") + private Integer limit = null; + + @SerializedName("Offset") + private Integer offset = null; + + @SerializedName("Total") + private Integer total = null; + + @SerializedName("ProjectUserGroups") + private List projectUserGroups = null; + + @SerializedName("ProjectUsers") + private List projectUsers = null; + + @SerializedName("ProjectRoles") + private List projectRoles = null; + + + public ListProjectIdentitiesResponse limit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * Get limit + * + * @return limit + */ + @Schema(description = "") + public Integer getLimit() { + return limit; + } + + public void setLimit(Integer limit) { + this.limit = limit; + } + + public ListProjectIdentitiesResponse offset(Integer offset) { + this.offset = offset; + return this; + } + + /** + * Get offset + * + * @return offset + */ + @Schema(description = "") + public Integer getOffset() { + return offset; + } + + public void setOffset(Integer offset) { + this.offset = offset; + } + + public ListProjectIdentitiesResponse total(Integer total) { + this.total = total; + return this; + } + + /** + * Get total + * + * @return total + */ + @Schema(description = "") + public Integer getTotal() { + return total; + } + + public void setTotal(Integer total) { + this.total = total; + } + + public ListProjectIdentitiesResponse projectUserGroups(List projectUserGroups) { + this.projectUserGroups = projectUserGroups; + return this; + } + + public ListProjectIdentitiesResponse addProjectUserGroupsItem(ProjectUserGroupsForListProjectIdentitiesOutput projectUserGroupsItem) { + if (this.projectUserGroups == null) { + this.projectUserGroups = new ArrayList(); + } + this.projectUserGroups.add(projectUserGroupsItem); + return this; + } + + /** + * Get projectUserGroups + * + * @return projectUserGroups + */ + @Schema(description = "") + public List getProjectUserGroups() { + return projectUserGroups; + } + + public void setProjectUserGroups(List projectUserGroups) { + this.projectUserGroups = projectUserGroups; + } + + public ListProjectIdentitiesResponse projectUsers(List projectUsers) { + this.projectUsers = projectUsers; + return this; + } + + public ListProjectIdentitiesResponse addProjectUsersItem(ProjectUsersForListProjectIdentitiesOutput projectUsersItem) { + if (this.projectUsers == null) { + this.projectUsers = new ArrayList(); + } + this.projectUsers.add(projectUsersItem); + return this; + } + + /** + * Get projectUsers + * + * @return projectUsers + */ + @Schema(description = "") + public List getProjectUsers() { + return projectUsers; + } + + public void setProjectUsers(List projectUsers) { + this.projectUsers = projectUsers; + } + + public ListProjectIdentitiesResponse projectRoles(List projectRoles) { + this.projectRoles = projectRoles; + return this; + } + + public ListProjectIdentitiesResponse addProjectRolesItem(ProjectRolesForListProjectIdentitiesOutput projectRolesItem) { + if (this.projectRoles == null) { + this.projectRoles = new ArrayList(); + } + this.projectRoles.add(projectRolesItem); + return this; + } + + /** + * Get projectRoles + * + * @return projectRoles + */ + @Schema(description = "") + public List getProjectRoles() { + return projectRoles; + } + + public void setProjectRoles(List projectRoles) { + this.projectRoles = projectRoles; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ListProjectIdentitiesResponse listProjectIdentitiesResponse = (ListProjectIdentitiesResponse) o; + return Objects.equals(this.limit, listProjectIdentitiesResponse.limit) && + Objects.equals(this.offset, listProjectIdentitiesResponse.offset) && + Objects.equals(this.total, listProjectIdentitiesResponse.total) && + Objects.equals(this.projectUserGroups, listProjectIdentitiesResponse.projectUserGroups) && + Objects.equals(this.projectUsers, listProjectIdentitiesResponse.projectUsers) && + Objects.equals(this.projectRoles, listProjectIdentitiesResponse.projectRoles); + } + + @Override + public int hashCode() { + return Objects.hash(limit, offset, total, projectUserGroups, projectUsers, projectRoles); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListProjectIdentitiesResponse {\n"); + + sb.append(" limit: ").append(toIndentedString(limit)).append("\n"); + sb.append(" offset: ").append(toIndentedString(offset)).append("\n"); + sb.append(" total: ").append(toIndentedString(total)).append("\n"); + sb.append(" projectUserGroups: ").append(toIndentedString(projectUserGroups)).append("\n"); + sb.append(" projectUsers: ").append(toIndentedString(projectUsers)).append("\n"); + sb.append(" projectRoles: ").append(toIndentedString(projectRoles)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/volcengine-java-sdk-iam/src/main/java/com/volcengine/iam/model/ListProjectResourcesRequest.java b/volcengine-java-sdk-iam/src/main/java/com/volcengine/iam/model/ListProjectResourcesRequest.java new file mode 100644 index 000000000..69b52a00b --- /dev/null +++ b/volcengine-java-sdk-iam/src/main/java/com/volcengine/iam/model/ListProjectResourcesRequest.java @@ -0,0 +1,288 @@ +package com.volcengine.iam.model; + +import com.google.gson.annotations.SerializedName; +import io.swagger.v3.oas.annotations.media.Schema; + +import java.util.Objects; + +/** + * ListProjectResourcesRequest + */ +public class ListProjectResourcesRequest { + + @SerializedName("Sort") + private Integer sort = null; + + @SerializedName("Limit") + private Integer limit = null; + + @SerializedName("Offset") + private Integer offset = null; + + @SerializedName("WithSubProjectResource") + private Integer withSubProjectResource = null; + + @SerializedName("Query") + private String query = null; + + @SerializedName("ResourceType") + private String resourceType = null; + + @SerializedName("ServiceName") + private String serviceName = null; + + @SerializedName("ResourceRegion") + private String resourceRegion = null; + + @SerializedName("OrderBy") + private String orderBy = null; + + @SerializedName("ProjectName") + private String projectName = null; + + + public ListProjectResourcesRequest sort(Integer sort) { + this.sort = sort; + return this; + } + + /** + * Get sort + * + * @return sort + */ + @Schema(description = "") + public Integer getSort() { + return sort; + } + + public void setSort(Integer sort) { + this.sort = sort; + } + + public ListProjectResourcesRequest limit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * Get limit + * + * @return limit + */ + @Schema(description = "") + public Integer getLimit() { + return limit; + } + + public void setLimit(Integer limit) { + this.limit = limit; + } + + public ListProjectResourcesRequest offset(Integer offset) { + this.offset = offset; + return this; + } + + /** + * Get offset + * + * @return offset + */ + @Schema(description = "") + public Integer getOffset() { + return offset; + } + + public void setOffset(Integer offset) { + this.offset = offset; + } + + public ListProjectResourcesRequest withSubProjectResource(Integer withSubProjectResource) { + this.withSubProjectResource = withSubProjectResource; + return this; + } + + /** + * Get withSubProjectResource + * + * @return withSubProjectResource + */ + @Schema(description = "") + public Integer getWithSubProjectResource() { + return withSubProjectResource; + } + + public void setWithSubProjectResource(Integer withSubProjectResource) { + this.withSubProjectResource = withSubProjectResource; + } + + public ListProjectResourcesRequest query(String query) { + this.query = query; + return this; + } + + /** + * Get query + * + * @return query + */ + @Schema(description = "") + public String getQuery() { + return query; + } + + public void setQuery(String query) { + this.query = query; + } + + public ListProjectResourcesRequest resourceType(String resourceType) { + this.resourceType = resourceType; + return this; + } + + /** + * Get resourceType + * + * @return resourceType + */ + @Schema(description = "") + public String getResourceType() { + return resourceType; + } + + public void setResourceType(String resourceType) { + this.resourceType = resourceType; + } + + public ListProjectResourcesRequest serviceName(String serviceName) { + this.serviceName = serviceName; + return this; + } + + /** + * Get serviceName + * + * @return serviceName + */ + @Schema(description = "") + public String getServiceName() { + return serviceName; + } + + public void setServiceName(String serviceName) { + this.serviceName = serviceName; + } + + public ListProjectResourcesRequest resourceRegion(String resourceRegion) { + this.resourceRegion = resourceRegion; + return this; + } + + /** + * Get resourceRegion + * + * @return resourceRegion + */ + @Schema(description = "") + public String getResourceRegion() { + return resourceRegion; + } + + public void setResourceRegion(String resourceRegion) { + this.resourceRegion = resourceRegion; + } + + public ListProjectResourcesRequest orderBy(String orderBy) { + this.orderBy = orderBy; + return this; + } + + /** + * Get orderBy + * + * @return orderBy + */ + @Schema(description = "") + public String getOrderBy() { + return orderBy; + } + + public void setOrderBy(String orderBy) { + this.orderBy = orderBy; + } + + public ListProjectResourcesRequest projectName(String projectName) { + this.projectName = projectName; + return this; + } + + /** + * Get projectName + * + * @return projectName + */ + @Schema(description = "") + public String getProjectName() { + return projectName; + } + + public void setProjectName(String projectName) { + this.projectName = projectName; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ListProjectResourcesRequest listProjectResourcesRequest = (ListProjectResourcesRequest) o; + return Objects.equals(this.sort, listProjectResourcesRequest.sort) && + Objects.equals(this.limit, listProjectResourcesRequest.limit) && + Objects.equals(this.offset, listProjectResourcesRequest.offset) && + Objects.equals(this.withSubProjectResource, listProjectResourcesRequest.withSubProjectResource) && + Objects.equals(this.query, listProjectResourcesRequest.query) && + Objects.equals(this.resourceType, listProjectResourcesRequest.resourceType) && + Objects.equals(this.serviceName, listProjectResourcesRequest.serviceName) && + Objects.equals(this.resourceRegion, listProjectResourcesRequest.resourceRegion) && + Objects.equals(this.orderBy, listProjectResourcesRequest.orderBy) && + Objects.equals(this.projectName, listProjectResourcesRequest.projectName); + } + + @Override + public int hashCode() { + return Objects.hash(sort, limit, offset, withSubProjectResource, query, resourceType, serviceName, resourceRegion, orderBy, projectName); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListProjectResourcesRequest {\n"); + sb.append(" sort: ").append(toIndentedString(sort)).append("\n"); + sb.append(" limit: ").append(toIndentedString(limit)).append("\n"); + sb.append(" offset: ").append(toIndentedString(offset)).append("\n"); + sb.append(" withSubProjectResource: ").append(toIndentedString(withSubProjectResource)).append("\n"); + sb.append(" query: ").append(toIndentedString(query)).append("\n"); + sb.append(" resourceType: ").append(toIndentedString(resourceType)).append("\n"); + sb.append(" serviceName: ").append(toIndentedString(serviceName)).append("\n"); + sb.append(" resourceRegion: ").append(toIndentedString(resourceRegion)).append("\n"); + sb.append(" projectName: ").append(toIndentedString(projectName)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} diff --git a/volcengine-java-sdk-iam/src/main/java/com/volcengine/iam/model/ListProjectResourcesResponse.java b/volcengine-java-sdk-iam/src/main/java/com/volcengine/iam/model/ListProjectResourcesResponse.java new file mode 100644 index 000000000..b50cab3b6 --- /dev/null +++ b/volcengine-java-sdk-iam/src/main/java/com/volcengine/iam/model/ListProjectResourcesResponse.java @@ -0,0 +1,155 @@ +package com.volcengine.iam.model; + +import com.google.gson.annotations.SerializedName; +import io.swagger.v3.oas.annotations.media.Schema; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * ListProjectResourcesResponse + */ +public class ListProjectResourcesResponse { + + @SerializedName("Limit") + private Integer limit = null; + + @SerializedName("Offset") + private Integer offset = null; + + @SerializedName("ProjectResources") + private List projectResources = null; + + @SerializedName("Total") + private Integer total = null; + + + public ListProjectResourcesResponse limit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * Get limit + * @return limit + **/ + @Schema(description = "") + public Integer getLimit() { + return limit; + } + + public void setLimit(Integer limit) { + this.limit = limit; + } + + public ListProjectResourcesResponse offset(Integer offset) { + this.offset = offset; + return this; + } + + /** + * Get offset + * @return offset + **/ + @Schema(description = "") + public Integer getOffset() { + return offset; + } + + public void setOffset(Integer offset) { + this.offset = offset; + } + + public ListProjectResourcesResponse projectResources(List projectResources) { + this.projectResources= projectResources; + return this; + } + + public ListProjectResourcesResponse addProjectResourcesItem(ProjectResourcesForListProjectResourcesOutput projectResourcesItem) { + if (this.projectResources== null) { + this.projectResources= new ArrayList(); + } + this.projectResources.add(projectResourcesItem); + return this; + } + + /** + * Get projectResources + * @return projectResources + **/ + @Valid + @Schema(description = "") + public List getProjectResources() { + return projectResources; + } + + public void setProjectResources(List projectResources) { + this.projectResources= projectResources; + } + + public ListProjectResourcesResponse total(Integer total) { + this.total = total; + return this; + } + + /** + * Get total + * @return total + **/ + @Schema(description = "") + public Integer getTotal() { + return total; + } + + public void setTotal(Integer total) { + this.total = total; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ListProjectResourcesResponse listProjectResourcesResponse = (ListProjectResourcesResponse) o; + return Objects.equals(this.limit, listProjectResourcesResponse.limit) && + Objects.equals(this.offset, listProjectResourcesResponse.offset) && + Objects.equals(this.projectResources, listProjectResourcesResponse.projectResources) && + Objects.equals(this.total, listProjectResourcesResponse.total); + } + + @Override + public int hashCode() { + return Objects.hash(limit, offset, projectResources, total); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListProjectResourcesResponse {\n"); + + sb.append(" limit: ").append(toIndentedString(limit)).append("\n"); + sb.append(" offset: ").append(toIndentedString(offset)).append("\n"); + sb.append(" projectResources: ").append(toIndentedString(projectResources)).append("\n"); + sb.append(" total: ").append(toIndentedString(total)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} diff --git a/volcengine-java-sdk-iam/src/main/java/com/volcengine/iam/model/ListProjectsRequest.java b/volcengine-java-sdk-iam/src/main/java/com/volcengine/iam/model/ListProjectsRequest.java new file mode 100644 index 000000000..231399194 --- /dev/null +++ b/volcengine-java-sdk-iam/src/main/java/com/volcengine/iam/model/ListProjectsRequest.java @@ -0,0 +1,146 @@ +package com.volcengine.iam.model; + +import com.google.gson.annotations.SerializedName; +import io.swagger.v3.oas.annotations.media.Schema; + +import java.util.Objects; + +/** + * ListProjectRequest + */ +public class ListProjectsRequest { + + @SerializedName("Query") + private String query = null; + + @SerializedName("WithParentProject") + private Integer withParentProject = null; + + @SerializedName("Limit") + private Integer limit = null; + + @SerializedName("Offset") + private String offset = null; + + + public ListProjectsRequest query(String query) { + this.query = query; + return this; + } + + /** + * Get query + * + * @return query + **/ + @Schema(description = "") + public String getQuery() { + return query; + } + + public void setQuery(String query) { + this.query = query; + } + + public ListProjectsRequest withParentProject(Integer withParentProject) { + this.withParentProject = withParentProject; + return this; + } + + /** + * Get withParentProject + * + * @return withParentProject + **/ + @Schema(description = "") + public Integer getWithParentProject() { + return withParentProject; + } + + public void setWithParentProject(Integer withParentProject) { + this.withParentProject = withParentProject; + } + + public ListProjectsRequest limit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * Get limit + * + * @return limit + **/ + @Schema(description = "") + public Integer getLimit() { + return limit; + } + + public void setLimit(Integer limit) { + this.limit = limit; + } + + public ListProjectsRequest offset(String offset) { + this.offset = offset; + return this; + } + + /** + * Get offset + * + * @return offset + **/ + @Schema(description = "") + public String getOffset() { + return offset; + } + + public void setOffset(String offset) { + this.offset = offset; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ListProjectsRequest listProjectsRequest = (ListProjectsRequest) o; + return Objects.equals(this.query, listProjectsRequest.query) && + Objects.equals(this.withParentProject, listProjectsRequest.withParentProject) && + Objects.equals(this.limit, listProjectsRequest.limit) && + Objects.equals(this.offset, listProjectsRequest.offset); + } + + @Override + public int hashCode() { + return Objects.hash(query, withParentProject, limit, offset); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListProjectRequest {\n"); + sb.append(" query: ").append(toIndentedString(query)).append("\n"); + sb.append(" withParentProject: ").append(toIndentedString(withParentProject)).append("\n"); + sb.append(" limit: ").append(toIndentedString(limit)).append("\n"); + sb.append(" offset: ").append(toIndentedString(offset)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} diff --git a/volcengine-java-sdk-iam/src/main/java/com/volcengine/iam/model/ListProjectsResponse.java b/volcengine-java-sdk-iam/src/main/java/com/volcengine/iam/model/ListProjectsResponse.java new file mode 100644 index 000000000..818c69403 --- /dev/null +++ b/volcengine-java-sdk-iam/src/main/java/com/volcengine/iam/model/ListProjectsResponse.java @@ -0,0 +1,158 @@ +package com.volcengine.iam.model; + +import com.google.gson.annotations.SerializedName; +import io.swagger.v3.oas.annotations.media.Schema; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * ListProjectResponse + */ +public class ListProjectsResponse { + + + @SerializedName("Limit") + private Integer limit = null; + + @SerializedName("Offset") + private Integer offset = null; + + @SerializedName("Total") + private Integer total = null; + + @SerializedName("Projects") + private List projects = null; + + + /** + * Get limit + * + * @return limit + **/ + @Schema(description = "") + public Integer getLimit() { + return limit; + } + + public void setLimit(Integer limit) { + this.limit = limit; + } + + public ListProjectsResponse limit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * Get offset + * + * @return offset + **/ + @Schema(description = "") + public Integer getOffset() { + return offset; + } + + public void setOffset(Integer offset) { + this.offset = offset; + } + + public ListProjectsResponse offset(Integer offset) { + this.offset = offset; + return this; + } + + /** + * Get total + * + * @return total + **/ + @Schema(description = "") + public Integer getTotal() { + return total; + } + + public void setTotal(Integer total) { + this.total = total; + } + + public ListProjectsResponse total(Integer total) { + this.total = total; + return this; + } + + public ListProjectsResponse projects(List projects) { + this.projects = projects; + return this; + } + + public ListProjectsResponse addProjects(ProjectForListProjectOutput projectsItem) { + if (this.projects == null) { + this.projects = new ArrayList(); + } + this.projects.add(projectsItem); + return this; + } + + /** + * Get projects + * + * @return + */ + @Valid + @Schema(description = "") + public List getProjects() { + return projects; + } + + public void setProjects(List projects) { + this.projects = projects; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ListProjectsResponse listProjectsResponse = (ListProjectsResponse) o; + return Objects.equals(this.limit, listProjectsResponse.limit) && + Objects.equals(this.offset, listProjectsResponse.offset) && + Objects.equals(this.total, listProjectsResponse.total) && + Objects.equals(this.projects, listProjectsResponse.projects); + } + + @Override + public int hashCode() { + return Objects.hash(limit, offset, total, projects); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListProjectResponse {\n"); + + sb.append(" limit: ").append(toIndentedString(limit)).append("\n"); + sb.append(" offset: ").append(toIndentedString(offset)).append("\n"); + sb.append(" total: ").append(toIndentedString(total)).append("\n"); + sb.append(" projects: ").append(toIndentedString(projects)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} diff --git a/volcengine-java-sdk-iam/src/main/java/com/volcengine/iam/model/MoveProjectResourceRequest.java b/volcengine-java-sdk-iam/src/main/java/com/volcengine/iam/model/MoveProjectResourceRequest.java new file mode 100644 index 000000000..c435d7417 --- /dev/null +++ b/volcengine-java-sdk-iam/src/main/java/com/volcengine/iam/model/MoveProjectResourceRequest.java @@ -0,0 +1,94 @@ +package com.volcengine.iam.model; + +import com.google.gson.annotations.SerializedName; +import io.swagger.v3.oas.annotations.media.Schema; + +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * MoveProjectResourceRequest + */ +public class MoveProjectResourceRequest { + + @SerializedName("ResourceTrn") + private List resourceTrn = null; + + @SerializedName("TargetProjectName") + private String targetProjectName = null; + + public MoveProjectResourceRequest resourceTrn(List resourceTrn) { + this.resourceTrn = resourceTrn; + return this; + } + + public MoveProjectResourceRequest addResourceTrnItem(String resourceTrnItem) { + if (this.resourceTrn == null) { + this.resourceTrn = new ArrayList(); + } + this.resourceTrn.add(resourceTrnItem); + return this; + } + + @Schema(description = "") + public List getResourceTrn() { + return resourceTrn; + } + + public void setResourceTrn(List resourceTrn) { + this.resourceTrn = resourceTrn; + } + + @Schema(description = "") + public String getTargetProjectName() { + return targetProjectName; + } + + public void setTargetProjectName(String targetProjectName) { + this.targetProjectName = targetProjectName; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + MoveProjectResourceRequest moveProjectResourceRequest = (MoveProjectResourceRequest) o; + return Objects.equals(this.resourceTrn, moveProjectResourceRequest.resourceTrn) && + Objects.equals(this.targetProjectName, moveProjectResourceRequest.targetProjectName); + } + + @Override + public int hashCode() { + return Objects.hash(resourceTrn, targetProjectName); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class MoveProjectResourceRequest {\n"); + + sb.append(" clientToken: ").append(toIndentedString(resourceTrn)).append("\n"); + sb.append(" forceStop: ").append(toIndentedString(targetProjectName)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/volcengine-java-sdk-iam/src/main/java/com/volcengine/iam/model/MoveProjectResourceResponse.java b/volcengine-java-sdk-iam/src/main/java/com/volcengine/iam/model/MoveProjectResourceResponse.java new file mode 100644 index 000000000..94e9b2859 --- /dev/null +++ b/volcengine-java-sdk-iam/src/main/java/com/volcengine/iam/model/MoveProjectResourceResponse.java @@ -0,0 +1,46 @@ +package com.volcengine.iam.model; + +import java.util.Objects; + +/** + * MoveProjectResourceResponse + */ +public class MoveProjectResourceResponse { + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + return true; + } + + @Override + public int hashCode() { + return Objects.hash(); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class MoveProjectResourceResponse {\n"); + + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} diff --git a/volcengine-java-sdk-iam/src/main/java/com/volcengine/iam/model/PolicyForListProjectIdentitiesOutput.java b/volcengine-java-sdk-iam/src/main/java/com/volcengine/iam/model/PolicyForListProjectIdentitiesOutput.java new file mode 100644 index 000000000..42229b93f --- /dev/null +++ b/volcengine-java-sdk-iam/src/main/java/com/volcengine/iam/model/PolicyForListProjectIdentitiesOutput.java @@ -0,0 +1,197 @@ +package com.volcengine.iam.model; + +import com.google.gson.annotations.SerializedName; +import io.swagger.v3.oas.annotations.media.Schema; + +import java.util.Objects; + +/** + * PolicyForListProjectIdentitiesOutput + */ +public class PolicyForListProjectIdentitiesOutput { + + @SerializedName("PolicyTrn") + private String policyTrn = null; + + @SerializedName("PolicyName") + private String policyName = null; + + @SerializedName("PolicyType") + private String policyType = null; + + @SerializedName("Description") + private String description = null; + + @SerializedName("AttachDate") + private String attachDate = null; + + @SerializedName("IsServiceRolePolicy") + private String isServiceRolePolicy = null; + + + public PolicyForListProjectIdentitiesOutput policyTrn(String policyTrn) { + this.policyTrn = policyTrn; + return this; + } + + /** + * Get policyTrn + * + * @return policyTrn + */ + @Schema(description = "") + public String getPolicyTrn() { + return policyTrn; + } + + public void setPolicyTrn(String policyTrn) { + this.policyTrn = policyTrn; + } + + public PolicyForListProjectIdentitiesOutput policyName(String policyName) { + this.policyName = policyName; + return this; + } + + /** + * Get policyName + * + * @return policyName + */ + @Schema(description = "") + public String getPolicyName() { + return policyName; + } + + public void setPolicyName(String policyName) { + this.policyName = policyName; + } + + public PolicyForListProjectIdentitiesOutput policyType(String policyType) { + this.policyType = policyType; + return this; + } + + /** + * Get policyType + * + * @return policyType + */ + @Schema(description = "") + public String getPolicyType() { + return policyType; + } + + public void setPolicyType(String policyType) { + this.policyType = policyType; + } + + public PolicyForListProjectIdentitiesOutput description(String description) { + this.description = description; + return this; + } + + /** + * Get description + * + * @return description + */ + @Schema(description = "") + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public PolicyForListProjectIdentitiesOutput attachDate(String attachDate) { + this.attachDate = attachDate; + return this; + } + + /** + * Get attachDate + * + * @return attachDate + */ + @Schema(description = "") + public String getAttachDate() { + return attachDate; + } + + public void setAttachDate(String attachDate) { + this.attachDate = attachDate; + } + + public PolicyForListProjectIdentitiesOutput isServiceRolePolicy(String isServiceRolePolicy) { + this.isServiceRolePolicy = isServiceRolePolicy; + return this; + } + + /** + * Get isServiceRolePolicy + * + * @return isServiceRolePolicy + */ + @Schema(description = "") + public String getIsServiceRolePolicy() { + return isServiceRolePolicy; + } + + public void setIsServiceRolePolicy(String isServiceRolePolicy) { + this.isServiceRolePolicy = isServiceRolePolicy; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PolicyForListProjectIdentitiesOutput policyForListProjectIdentitiesOutput = (PolicyForListProjectIdentitiesOutput) o; + return Objects.equals(this.policyTrn, policyForListProjectIdentitiesOutput.policyTrn) && + Objects.equals(this.policyName, policyForListProjectIdentitiesOutput.policyName) && + Objects.equals(this.policyType, policyForListProjectIdentitiesOutput.policyType) && + Objects.equals(this.description, policyForListProjectIdentitiesOutput.description) && + Objects.equals(this.attachDate, policyForListProjectIdentitiesOutput.attachDate) && + Objects.equals(this.isServiceRolePolicy, policyForListProjectIdentitiesOutput.isServiceRolePolicy); + } + + @Override + public int hashCode() { + return Objects.hash(policyTrn, policyName, policyType, description, attachDate, isServiceRolePolicy); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PolicyForListProjectIdentitiesOutput {\n"); + + sb.append(" policyTrn: ").append(toIndentedString(policyTrn)).append("\n"); + sb.append(" policyName: ").append(toIndentedString(policyName)).append("\n"); + sb.append(" policyType: ").append(toIndentedString(policyType)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" attachDate: ").append(toIndentedString(attachDate)).append("\n"); + sb.append(" isServiceRolePolicy: ").append(toIndentedString(isServiceRolePolicy)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/volcengine-java-sdk-iam/src/main/java/com/volcengine/iam/model/PolicyForProjectUsersOutput.java b/volcengine-java-sdk-iam/src/main/java/com/volcengine/iam/model/PolicyForProjectUsersOutput.java new file mode 100644 index 000000000..b7740d251 --- /dev/null +++ b/volcengine-java-sdk-iam/src/main/java/com/volcengine/iam/model/PolicyForProjectUsersOutput.java @@ -0,0 +1,148 @@ +package com.volcengine.iam.model; + +import com.google.gson.annotations.SerializedName; +import io.swagger.v3.oas.annotations.media.Schema; + +import java.util.Objects; + +/** + * PolicyForProjectUsersOutput + */ +public class PolicyForProjectUsersOutput { + + @SerializedName("DisplayName") + private String displayName = null; + + @SerializedName("Description") + private String description = null; + + @SerializedName("UpdateDate") + private String updateDate = null; + + @SerializedName("UserGroupName") + private String userGroupName = null; + + public PolicyForProjectUsersOutput displayName(String displayName) { + this.displayName = displayName; + return this; + } + + /** + * Get displayName + * + * @return displayName + */ + @Schema(description = "") + public String getDisplayName() { + return displayName; + } + + public void setDisplayName(String displayName) { + this.displayName = displayName; + } + + public PolicyForProjectUsersOutput description(String description) { + this.description = description; + return this; + } + + /** + * Get description + * + * @return description + */ + @Schema(description = "") + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public PolicyForProjectUsersOutput updateDate(String updateDate) { + this.updateDate = updateDate; + return this; + } + + /** + * Get updateDate + * + * @return updateDate + */ + @Schema(description = "") + public String getUpdateDate() { + return updateDate; + } + + public void setUpdateDate(String updateDate) { + this.updateDate = updateDate; + } + + public PolicyForProjectUsersOutput userGroupName(String userGroupName) { + this.userGroupName = userGroupName; + return this; + } + + /** + * Get userGroupName + * + * @return userGroupName + */ + @Schema(description = "") + public String getUserGroupName() { + return userGroupName; + } + + public void setUserGroupName(String userGroupName) { + this.userGroupName = userGroupName; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PolicyForProjectUsersOutput policyForProjectUsersOutput = (PolicyForProjectUsersOutput) o; + return Objects.equals(this.displayName, policyForProjectUsersOutput.displayName) && + Objects.equals(this.description, policyForProjectUsersOutput.description) && + Objects.equals(this.updateDate, policyForProjectUsersOutput.updateDate) && + Objects.equals(this.userGroupName, policyForProjectUsersOutput.userGroupName); + } + + @Override + public int hashCode() { + return Objects.hash(displayName, description, updateDate, userGroupName); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PolicyForProjectUsersOutput {\n"); + + sb.append(" displayName: ").append(toIndentedString(displayName)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" updateDate: ").append(toIndentedString(updateDate)).append("\n"); + sb.append(" userGroupName: ").append(toIndentedString(userGroupName)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/volcengine-java-sdk-iam/src/main/java/com/volcengine/iam/model/ProjectForListProjectOutput.java b/volcengine-java-sdk-iam/src/main/java/com/volcengine/iam/model/ProjectForListProjectOutput.java new file mode 100644 index 000000000..577314e2a --- /dev/null +++ b/volcengine-java-sdk-iam/src/main/java/com/volcengine/iam/model/ProjectForListProjectOutput.java @@ -0,0 +1,239 @@ +package com.volcengine.iam.model; + +import com.google.gson.annotations.SerializedName; +import io.swagger.v3.oas.annotations.media.Schema; + +import java.util.Objects; + +/** + * ProjectForListProjectOutput + */ +public class ProjectForListProjectOutput { + + @SerializedName("AccountID") + private Long accountId = null; + + @SerializedName("ProjectName") + private String projectName = null; + + @SerializedName("ParentProjectName") + private String parentProjectName = null; + + @SerializedName("Path") + private String path = null; + + @SerializedName("DisplayName") + private String displayName = null; + + @SerializedName("Description") + private String description = null; + + @SerializedName("CreateDate") + private String createDate = null; + + @SerializedName("UpdateDate") + private String updateDate = null; + + @SerializedName("Status") + private String status = null; + + @SerializedName("HasPermission") + private Boolean hasPermission = null; + + /** + * Get accountId + * + * @return accountId + */ + @Schema(description = "") + public Long getAccountId() { + return accountId; + } + + public void setAccountId(Long accountId) { + this.accountId = accountId; + } + + /** + * Get projectName + * + * @return projectName + */ + @Schema(description = "") + public String getProjectName() { + return projectName; + } + + public void setProjectName(String projectName) { + this.projectName = projectName; + } + + /** + * Get parentProjectName + * + * @return parentProjectName + */ + @Schema(description = "") + public String getParentProjectName() { + return parentProjectName; + } + + public void setParentProjectName(String parentProjectName) { + this.parentProjectName = parentProjectName; + } + + /** + * Get path + * + * @return path + */ + @Schema(description = "") + public String getPath() { + return path; + } + + public void setPath(String path) { + this.path = path; + } + + /** + * Get displayName + * + * @return displayName + */ + @Schema(description = "") + public String getDisplayName() { + return displayName; + } + + public void setDisplayName(String displayName) { + this.displayName = displayName; + } + + /** + * Get description + * + * @return description + */ + @Schema(description = "") + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + /** + * Get createDate + * + * @return createDate + */ + @Schema(description = "") + public String getCreateDate() { + return createDate; + } + + public void setCreateDate(String createDate) { + this.createDate = createDate; + } + + /** + * Get updateDate + * + * @return updateDate + */ + @Schema(description = "") + public String getUpdateDate() { + return updateDate; + } + + public void setUpdateDate(String updateDate) { + this.updateDate = updateDate; + } + + /** + * Get status + * + * @return status + */ + @Schema(description = "") + public String getStatus() { + return status; + } + + public void setStatus(String status) { + this.status = status; + } + + /** + * Get hasPermission + * + * @return hasPermission + */ + @Schema(description = "") + public Boolean getHasPermission() { + return hasPermission; + } + + public void setHasPermission(Boolean hasPermission) { + this.hasPermission = hasPermission; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ProjectForListProjectOutput projectForListProjectOutput = (ProjectForListProjectOutput) o; + return Objects.equals(this.accountId, projectForListProjectOutput.accountId) && + Objects.equals(this.projectName, projectForListProjectOutput.projectName) && + Objects.equals(this.parentProjectName, projectForListProjectOutput.parentProjectName) && + Objects.equals(this.path, projectForListProjectOutput.path) && + Objects.equals(this.displayName, projectForListProjectOutput.displayName) && + Objects.equals(this.description, projectForListProjectOutput.description) && + Objects.equals(this.createDate, projectForListProjectOutput.createDate) && + Objects.equals(this.updateDate, projectForListProjectOutput.updateDate) && + Objects.equals(this.status, projectForListProjectOutput.status) && + Objects.equals(this.hasPermission, projectForListProjectOutput.hasPermission); + } + + @Override + public int hashCode() { + return Objects.hash(accountId, projectName, parentProjectName, path, displayName, description, createDate, updateDate, status, hasPermission); + } + + @Override + public String toString() { + + StringBuilder sb = new StringBuilder(); + sb.append("class ProjectForListProjectOutput {\n"); + + sb.append(" accountId: ").append(toIndentedString(accountId)).append("\n"); + sb.append(" projectName: ").append(toIndentedString(projectName)).append("\n"); + sb.append(" parentProjectName: ").append(toIndentedString(parentProjectName)).append("\n"); + sb.append(" path: ").append(toIndentedString(path)).append("\n"); + sb.append(" displayName: ").append(toIndentedString(displayName)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" createDate: ").append(toIndentedString(createDate)).append("\n"); + sb.append(" updateDate: ").append(toIndentedString(updateDate)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" hasPermission: ").append(toIndentedString(hasPermission)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} diff --git a/volcengine-java-sdk-iam/src/main/java/com/volcengine/iam/model/ProjectResourcesForListProjectResourcesOutput.java b/volcengine-java-sdk-iam/src/main/java/com/volcengine/iam/model/ProjectResourcesForListProjectResourcesOutput.java new file mode 100644 index 000000000..f7f878cf7 --- /dev/null +++ b/volcengine-java-sdk-iam/src/main/java/com/volcengine/iam/model/ProjectResourcesForListProjectResourcesOutput.java @@ -0,0 +1,266 @@ +package com.volcengine.iam.model; + +import com.google.gson.annotations.SerializedName; +import io.swagger.v3.oas.annotations.media.Schema; + +import java.util.Objects; + +/** + * ProjectResourcesForListProjectResourcesOutput + */ +public class ProjectResourcesForListProjectResourcesOutput { + + @SerializedName("ProjectName") + private String projectName = null; + + @SerializedName("ResourceTrn") + private String resourceTrn = null; + + @SerializedName("ResourceType") + private String resourceType = null; + + @SerializedName("ResourceID") + private String resourceId = null; + + @SerializedName("ResourceRegion") + private String resourceRegion = null; + + @SerializedName("ServiceName") + private String serviceName = null; + + @SerializedName("CreateDate") + private String createDate = null; + + @SerializedName("UpdateDate") + private String updateDate = null; + + @SerializedName("AccountID") + private String accountId = null; + + public ProjectResourcesForListProjectResourcesOutput projectName(String projectName) { + this.projectName = projectName; + return this; + } + + /** + * Get projectName + * + * @return projectName + */ + @Schema(description = "") + public String getProjectName() { + return projectName; + } + + public void setProjectName(String projectName) { + this.projectName = projectName; + } + + public ProjectResourcesForListProjectResourcesOutput resourceTrn(String resourceTrn) { + this.resourceTrn = resourceTrn; + return this; + } + + /** + * Get resourceTrn + * + * @return resourceTrn + */ + @Schema(description = "") + public String getResourceTrn() { + return resourceTrn; + } + + public void setResourceTrn(String resourceTrn) { + this.resourceTrn = resourceTrn; + } + + public ProjectResourcesForListProjectResourcesOutput resourceType(String resourceType) { + this.resourceType = resourceType; + return this; + } + + /** + * Get resourceType + * + * @return resourceType + */ + @Schema(description = "") + public String getResourceType() { + return resourceType; + } + + public void setResourceType(String resourceType) { + this.resourceType = resourceType; + } + + public ProjectResourcesForListProjectResourcesOutput resourceId(String resourceId) { + this.resourceId = resourceId; + return this; + } + + /** + * Get resourceId + * + * @return resourceId + */ + @Schema(description = "") + public String getResourceId() { + return resourceId; + } + + public void setResourceId(String resourceId) { + this.resourceId = resourceId; + } + + public ProjectResourcesForListProjectResourcesOutput resourceRegion(String resourceRegion) { + this.resourceRegion = resourceRegion; + return this; + } + + /** + * Get resourceRegion + * + * @return resourceRegion + */ + @Schema(description = "") + public String getResourceRegion() { + return resourceRegion; + } + + public void setResourceRegion(String resourceRegion) { + this.resourceRegion = resourceRegion; + } + + public ProjectResourcesForListProjectResourcesOutput serviceName(String serviceName) { + this.serviceName = serviceName; + return this; + } + + /** + * Get serviceName + * + * @return serviceName + */ + @Schema(description = "") + public String getServiceName() { + return serviceName; + } + + public void setServiceName(String serviceName) { + this.serviceName = serviceName; + } + + public ProjectResourcesForListProjectResourcesOutput createDate(String createDate) { + this.createDate = createDate; + return this; + } + + /** + * Get createDate + * + * @return createDate + */ + @Schema(description = "") + public String getCreateDate() { + return createDate; + } + + public void setCreateDate(String createDate) { + this.createDate = createDate; + } + + public ProjectResourcesForListProjectResourcesOutput updateDate(String updateDate) { + this.updateDate = updateDate; + return this; + } + + /** + * Get updateDate + * + * @return updateDate + */ + @Schema(description = "") + public String getUpdateDate() { + return updateDate; + } + + public void setUpdateDate(String updateDate) { + this.updateDate = updateDate; + } + + public ProjectResourcesForListProjectResourcesOutput accountId(String accountId) { + this.accountId = accountId; + return this; + } + + /** + * Get accountId + * + * @return accountId + */ + @Schema(description = "") + public String getAccountId() { + return accountId; + } + + public void setAccountId(String accountId) { + this.accountId = accountId; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ProjectResourcesForListProjectResourcesOutput projectResourcesForListProjectResourcesOutput = (ProjectResourcesForListProjectResourcesOutput) o; + return Objects.equals(this.projectName, projectResourcesForListProjectResourcesOutput.projectName) && + Objects.equals(this.resourceTrn, projectResourcesForListProjectResourcesOutput.resourceTrn) && + Objects.equals(this.resourceType, projectResourcesForListProjectResourcesOutput.resourceType) && + Objects.equals(this.resourceId, projectResourcesForListProjectResourcesOutput.resourceId) && + Objects.equals(this.resourceRegion, projectResourcesForListProjectResourcesOutput.resourceRegion) && + Objects.equals(this.serviceName, projectResourcesForListProjectResourcesOutput.serviceName) && + Objects.equals(this.createDate, projectResourcesForListProjectResourcesOutput.createDate) && + Objects.equals(this.updateDate, projectResourcesForListProjectResourcesOutput.updateDate) && + Objects.equals(this.accountId, projectResourcesForListProjectResourcesOutput.accountId); + } + + @Override + public int hashCode() { + return Objects.hash(projectName, resourceTrn, resourceType, resourceId, resourceRegion, serviceName, createDate, updateDate, accountId); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SAMLProviderForListSAMLProvidersOutput {\n"); + + sb.append(" projectName: ").append(toIndentedString(projectName)).append("\n"); + sb.append(" resourceTrn: ").append(toIndentedString(resourceTrn)).append("\n"); + sb.append(" resourceType: ").append(toIndentedString(resourceType)).append("\n"); + sb.append(" resourceId: ").append(toIndentedString(resourceId)).append("\n"); + sb.append(" resourceRegion: ").append(toIndentedString(resourceRegion)).append("\n"); + sb.append(" serviceName: ").append(toIndentedString(serviceName)).append("\n"); + sb.append(" createDate: ").append(toIndentedString(createDate)).append("\n"); + sb.append(" updateDate: ").append(toIndentedString(updateDate)).append("\n"); + sb.append(" accountId: ").append(toIndentedString(accountId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} diff --git a/volcengine-java-sdk-iam/src/main/java/com/volcengine/iam/model/ProjectRolesForListProjectIdentitiesOutput.java b/volcengine-java-sdk-iam/src/main/java/com/volcengine/iam/model/ProjectRolesForListProjectIdentitiesOutput.java new file mode 100644 index 000000000..b326a6630 --- /dev/null +++ b/volcengine-java-sdk-iam/src/main/java/com/volcengine/iam/model/ProjectRolesForListProjectIdentitiesOutput.java @@ -0,0 +1,173 @@ +package com.volcengine.iam.model; + +import com.google.gson.annotations.SerializedName; +import io.swagger.v3.oas.annotations.media.Schema; + +import java.util.Objects; + +/** + * ProjectRolesForListProjectIdentitiesOutput + */ +public class ProjectRolesForListProjectIdentitiesOutput { + + @SerializedName("RoleName") + private String roleName = null; + + @SerializedName("DisplayName") + private String displayName = null; + + @SerializedName("Description") + private String description = null; + + @SerializedName("UpdateDate") + private String updateDate = null; + + @SerializedName("Policy") + private PolicyForListProjectIdentitiesOutput policy = null; + + + public ProjectRolesForListProjectIdentitiesOutput roleName(String roleName) { + this.roleName = roleName; + return this; + } + + /** + * Get roleName + * + * @return roleName + */ + @Schema(description = "") + public String getRoleName() { + return roleName; + } + + public void setRoleName(String roleName) { + this.roleName = roleName; + } + + public ProjectRolesForListProjectIdentitiesOutput displayName(String displayName) { + this.displayName = displayName; + return this; + } + + /** + * Get displayName + * + * @return displayName + */ + @Schema(description = "") + public String getDisplayName() { + return displayName; + } + + public void setDisplayName(String displayName) { + this.displayName = displayName; + } + + public ProjectRolesForListProjectIdentitiesOutput description(String description) { + this.description = description; + return this; + } + + /** + * Get description + * + * @return description + */ + @Schema(description = "") + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public ProjectRolesForListProjectIdentitiesOutput updateDate(String updateDate) { + this.updateDate = updateDate; + return this; + } + + /** + * Get updateDate + * + * @return updateDate + */ + @Schema(description = "") + public String getUpdateDate() { + return updateDate; + } + + public void setUpdateDate(String updateDate) { + this.updateDate = updateDate; + } + + public ProjectRolesForListProjectIdentitiesOutput policy(PolicyForListProjectIdentitiesOutput policy) { + this.policy = policy; + return this; + } + + /** + * Get policy + * + * @return policy + */ + @Schema(description = "") + public PolicyForListProjectIdentitiesOutput getPolicy() { + return policy; + } + + public void setPolicy(PolicyForListProjectIdentitiesOutput policy) { + this.policy = policy; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ProjectRolesForListProjectIdentitiesOutput projectRolesForListProjectIdentitiesOutput = (ProjectRolesForListProjectIdentitiesOutput) o; + return Objects.equals(this.roleName, projectRolesForListProjectIdentitiesOutput.roleName) && + Objects.equals(this.displayName, projectRolesForListProjectIdentitiesOutput.displayName) && + Objects.equals(this.description, projectRolesForListProjectIdentitiesOutput.description) && + Objects.equals(this.updateDate, projectRolesForListProjectIdentitiesOutput.updateDate) && + Objects.equals(this.policy, projectRolesForListProjectIdentitiesOutput.policy); + } + + @Override + public int hashCode() { + return Objects.hash(roleName, displayName, description, updateDate, policy); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ProjectRolesForListProjectIdentitiesOutput {\n"); + + sb.append(" roleName: ").append(toIndentedString(roleName)).append("\n"); + sb.append(" displayName: ").append(toIndentedString(displayName)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" updateDate: ").append(toIndentedString(updateDate)).append("\n"); + sb.append(" policy: ").append(toIndentedString(policy)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/volcengine-java-sdk-iam/src/main/java/com/volcengine/iam/model/ProjectUserGroupsForListProjectIdentitiesOutput.java b/volcengine-java-sdk-iam/src/main/java/com/volcengine/iam/model/ProjectUserGroupsForListProjectIdentitiesOutput.java new file mode 100644 index 000000000..8a32e2b03 --- /dev/null +++ b/volcengine-java-sdk-iam/src/main/java/com/volcengine/iam/model/ProjectUserGroupsForListProjectIdentitiesOutput.java @@ -0,0 +1,172 @@ +package com.volcengine.iam.model; + +import com.google.gson.annotations.SerializedName; +import io.swagger.v3.oas.annotations.media.Schema; + +import java.util.Objects; + +/** + * ProjectUserGroupsForListProjectIdentitiesOutput + */ +public class ProjectUserGroupsForListProjectIdentitiesOutput { + + @SerializedName("DisplayName") + private String displayName = null; + + @SerializedName("Description") + private String description = null; + + @SerializedName("UpdateDate") + private String updateDate = null; + + @SerializedName("UserGroupName") + private String userGroupName = null; + + @SerializedName("Policy") + private PolicyForListProjectIdentitiesOutput policy = null; + + public ProjectUserGroupsForListProjectIdentitiesOutput displayName(String displayName) { + this.displayName = displayName; + return this; + } + + /** + * Get displayName + * + * @return displayName + */ + @Schema(description = "") + public String getDisplayName() { + return displayName; + } + + public void setDisplayName(String displayName) { + this.displayName = displayName; + } + + public ProjectUserGroupsForListProjectIdentitiesOutput description(String description) { + this.description = description; + return this; + } + + /** + * Get description + * + * @return description + */ + @Schema(description = "") + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public ProjectUserGroupsForListProjectIdentitiesOutput updateDate(String updateDate) { + this.updateDate = updateDate; + return this; + } + + /** + * Get updateDate + * + * @return updateDate + */ + @Schema(description = "") + public String getUpdateDate() { + return updateDate; + } + + public void setUpdateDate(String updateDate) { + this.updateDate = updateDate; + } + + public ProjectUserGroupsForListProjectIdentitiesOutput userGroupName(String userGroupName) { + this.userGroupName = userGroupName; + return this; + } + + /** + * Get userGroupName + * + * @return userGroupName + */ + @Schema(description = "") + public String getUserGroupName() { + return userGroupName; + } + + public void setUserGroupName(String userGroupName) { + this.userGroupName = userGroupName; + } + + public ProjectUserGroupsForListProjectIdentitiesOutput policy(PolicyForListProjectIdentitiesOutput policy) { + this.policy = policy; + return this; + } + + /** + * Get Policy + * + * @return Policy + */ + @Schema(description = "") + public PolicyForListProjectIdentitiesOutput getPolicy() { + return policy; + } + + public void setPolicy(PolicyForListProjectIdentitiesOutput policy) { + this.policy = policy; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ProjectUserGroupsForListProjectIdentitiesOutput projectUserGroupsForListProjectIdentitiesOutput = (ProjectUserGroupsForListProjectIdentitiesOutput) o; + return Objects.equals(this.displayName, projectUserGroupsForListProjectIdentitiesOutput.displayName) && + Objects.equals(this.description, projectUserGroupsForListProjectIdentitiesOutput.description) && + Objects.equals(this.updateDate, projectUserGroupsForListProjectIdentitiesOutput.updateDate) && + Objects.equals(this.userGroupName, projectUserGroupsForListProjectIdentitiesOutput.userGroupName) && + Objects.equals(this.policy, projectUserGroupsForListProjectIdentitiesOutput.policy); + } + + @Override + public int hashCode() { + return Objects.hash(displayName, description, updateDate, userGroupName, policy); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ProjectUserGroupsForListProjectIdentitiesOutput {\n"); + + sb.append(" displayName: ").append(toIndentedString(displayName)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" updateDate: ").append(toIndentedString(updateDate)).append("\n"); + sb.append(" userGroupName: ").append(toIndentedString(userGroupName)).append("\n"); + sb.append(" policy: ").append(toIndentedString(policy)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/volcengine-java-sdk-iam/src/main/java/com/volcengine/iam/model/ProjectUsersForListProjectIdentitiesOutput.java b/volcengine-java-sdk-iam/src/main/java/com/volcengine/iam/model/ProjectUsersForListProjectIdentitiesOutput.java new file mode 100644 index 000000000..5e45492a0 --- /dev/null +++ b/volcengine-java-sdk-iam/src/main/java/com/volcengine/iam/model/ProjectUsersForListProjectIdentitiesOutput.java @@ -0,0 +1,174 @@ +package com.volcengine.iam.model; + +import com.google.gson.annotations.SerializedName; +import io.swagger.v3.oas.annotations.media.Schema; + +import java.util.Objects; + +/** + * ProjectUsersForListProjectIdentitiesOutput + */ +public class ProjectUsersForListProjectIdentitiesOutput { + + @SerializedName("UserName") + private String userName = null; + + @SerializedName("DisplayName") + private String displayName = null; + + @SerializedName("Description") + private String description = null; + + @SerializedName("UpdateDate") + private String updateDate = null; + + @SerializedName("Policy") + private PolicyForListProjectIdentitiesOutput policy = null; + + + public ProjectUsersForListProjectIdentitiesOutput userName(String userName) { + this.userName = userName; + return this; + } + + /** + * Get userName + * + * @return userName + */ + @Schema(description = "") + public String getUserName() { + return userName; + } + + public void setUserName(String userName) { + this.userName = userName; + } + + public ProjectUsersForListProjectIdentitiesOutput displayName(String displayName) { + this.displayName = displayName; + return this; + } + + /** + * Get displayName + * + * @return displayName + */ + @Schema(description = "") + public String getDisplayName() { + return displayName; + } + + public void setDisplayName(String displayName) { + this.displayName = displayName; + } + + public ProjectUsersForListProjectIdentitiesOutput description(String description) { + this.description = description; + return this; + } + + /** + * Get description + * + * @return description + */ + @Schema(description = "") + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public ProjectUsersForListProjectIdentitiesOutput updateDate(String updateDate) { + this.updateDate = updateDate; + return this; + } + + /** + * Get updateDate + * + * @return updateDate + */ + @Schema(description = "") + public String getUpdateDate() { + return updateDate; + } + + public void setUpdateDate(String updateDate) { + this.updateDate = updateDate; + } + + public ProjectUsersForListProjectIdentitiesOutput policy(PolicyForListProjectIdentitiesOutput policy) { + this.policy = policy; + return this; + } + + /** + * Get policy + * + * @return policy + */ + @Schema(description = "") + public PolicyForListProjectIdentitiesOutput getPolicy() { + return policy; + } + + public void setPolicy(PolicyForListProjectIdentitiesOutput policy) { + this.policy = policy; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ProjectUsersForListProjectIdentitiesOutput projectUsersForListProjectIdentitiesOutput = (ProjectUsersForListProjectIdentitiesOutput) o; + return Objects.equals(this.userName, projectUsersForListProjectIdentitiesOutput.userName) && + Objects.equals(this.displayName, projectUsersForListProjectIdentitiesOutput.displayName) && + Objects.equals(this.description, projectUsersForListProjectIdentitiesOutput.description) && + Objects.equals(this.updateDate, projectUsersForListProjectIdentitiesOutput.updateDate) && + Objects.equals(this.policy, projectUsersForListProjectIdentitiesOutput.policy); + } + + @Override + public int hashCode() { + return Objects.hash(userName, displayName, description, updateDate, policy); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ProjectUsersForListProjectIdentitiesOutput {\n"); + + sb.append(" userName: ").append(toIndentedString(userName)).append("\n"); + sb.append(" displayName: ").append(toIndentedString(displayName)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" updateDate: ").append(toIndentedString(updateDate)).append("\n"); + sb.append(" policy: ").append(toIndentedString(policy)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + + diff --git a/volcengine-java-sdk-iam/src/main/java/com/volcengine/iam/model/UpdateProjectRequest.java b/volcengine-java-sdk-iam/src/main/java/com/volcengine/iam/model/UpdateProjectRequest.java new file mode 100644 index 000000000..e7d6156e1 --- /dev/null +++ b/volcengine-java-sdk-iam/src/main/java/com/volcengine/iam/model/UpdateProjectRequest.java @@ -0,0 +1,122 @@ +package com.volcengine.iam.model; + +import com.google.gson.annotations.SerializedName; +import io.swagger.v3.oas.annotations.media.Schema; + +import java.util.Objects; + +/** + * UpdateProjectRequest + */ +public class UpdateProjectRequest { + + @SerializedName("DisplayName") + private String displayName = null; + + @SerializedName("Description") + private String description = null; + + @SerializedName("ProjectName") + private String projectName = null; + + + public UpdateProjectRequest displayName(String displayName) { + this.displayName = displayName; + return this; + } + + /** + * Get displayName + * + * @return displayName + */ + @Schema(description = "") + public String getDisplayName() { + return displayName; + } + + public void setDisplayName(String displayName) { + this.displayName = displayName; + } + + public UpdateProjectRequest description(String description) { + this.description = description; + return this; + } + + /** + * Get description + * + * @return description + */ + @Schema(description = "") + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public UpdateProjectRequest projectName(String projectName) { + this.projectName = projectName; + return this; + } + + /** + * Get projectName + * + * @return projectName + */ + @Schema(description = "") + public String getProjectName() { + return projectName; + } + + public void setProjectName(String projectName) { + this.projectName = projectName; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + UpdateProjectRequest updateProjectRequest = (UpdateProjectRequest) o; + return Objects.equals(this.displayName, updateProjectRequest.displayName) && + Objects.equals(this.description, updateProjectRequest.description) && + Objects.equals(this.projectName, updateProjectRequest.projectName); + } + + @Override + public int hashCode() { + return Objects.hash(displayName, description, projectName); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UpdateProjectRequest {\n"); + sb.append(" displayName: ").append(toIndentedString(displayName)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" projectName: ").append(toIndentedString(projectName)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} diff --git a/volcengine-java-sdk-iam/src/main/java/com/volcengine/iam/model/UpdateProjectResponse.java b/volcengine-java-sdk-iam/src/main/java/com/volcengine/iam/model/UpdateProjectResponse.java new file mode 100644 index 000000000..91d050f8e --- /dev/null +++ b/volcengine-java-sdk-iam/src/main/java/com/volcengine/iam/model/UpdateProjectResponse.java @@ -0,0 +1,47 @@ +package com.volcengine.iam.model; + +import java.util.Objects; + +/** + * UpdateProjectResponse + */ +public class UpdateProjectResponse { + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + return true; + } + + @Override + public int hashCode() { + return Objects.hash(); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UpdateProjectResponse {\n"); + + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/volcengine-java-sdk-kafka/pom.xml b/volcengine-java-sdk-kafka/pom.xml index b45b149ee..a7ae67642 100644 --- a/volcengine-java-sdk-kafka/pom.xml +++ b/volcengine-java-sdk-kafka/pom.xml @@ -3,7 +3,7 @@ volcengine-java-sdk com.volcengine - 0.1.94 + 0.1.95 ../pom.xml 4.0.0 diff --git a/volcengine-java-sdk-mongodb/pom.xml b/volcengine-java-sdk-mongodb/pom.xml index 759473e06..204edb502 100644 --- a/volcengine-java-sdk-mongodb/pom.xml +++ b/volcengine-java-sdk-mongodb/pom.xml @@ -3,7 +3,7 @@ volcengine-java-sdk com.volcengine - 0.1.94 + 0.1.95 ../pom.xml 4.0.0 diff --git a/volcengine-java-sdk-natgateway/pom.xml b/volcengine-java-sdk-natgateway/pom.xml index 66590eaf3..3edc729c9 100644 --- a/volcengine-java-sdk-natgateway/pom.xml +++ b/volcengine-java-sdk-natgateway/pom.xml @@ -3,7 +3,7 @@ volcengine-java-sdk com.volcengine - 0.1.94 + 0.1.95 ../pom.xml 4.0.0 diff --git a/volcengine-java-sdk-rdsmysql/pom.xml b/volcengine-java-sdk-rdsmysql/pom.xml index 5c555f010..6a0308b10 100644 --- a/volcengine-java-sdk-rdsmysql/pom.xml +++ b/volcengine-java-sdk-rdsmysql/pom.xml @@ -3,7 +3,7 @@ volcengine-java-sdk com.volcengine - 0.1.94 + 0.1.95 ../pom.xml 4.0.0 diff --git a/volcengine-java-sdk-rdsmysqlv2/pom.xml b/volcengine-java-sdk-rdsmysqlv2/pom.xml index 0d574bf1d..bb4986965 100644 --- a/volcengine-java-sdk-rdsmysqlv2/pom.xml +++ b/volcengine-java-sdk-rdsmysqlv2/pom.xml @@ -3,7 +3,7 @@ volcengine-java-sdk com.volcengine - 0.1.94 + 0.1.95 ../pom.xml 4.0.0 diff --git a/volcengine-java-sdk-redis/pom.xml b/volcengine-java-sdk-redis/pom.xml index 20face829..890065204 100644 --- a/volcengine-java-sdk-redis/pom.xml +++ b/volcengine-java-sdk-redis/pom.xml @@ -3,7 +3,7 @@ volcengine-java-sdk com.volcengine - 0.1.94 + 0.1.95 ../pom.xml 4.0.0 diff --git a/volcengine-java-sdk-spark/pom.xml b/volcengine-java-sdk-spark/pom.xml index bbab112ee..de0594536 100644 --- a/volcengine-java-sdk-spark/pom.xml +++ b/volcengine-java-sdk-spark/pom.xml @@ -3,7 +3,7 @@ volcengine-java-sdk com.volcengine - 0.1.94 + 0.1.95 ../pom.xml 4.0.0 diff --git a/volcengine-java-sdk-storageebs/pom.xml b/volcengine-java-sdk-storageebs/pom.xml index dc0d60ef0..713e248d8 100644 --- a/volcengine-java-sdk-storageebs/pom.xml +++ b/volcengine-java-sdk-storageebs/pom.xml @@ -3,7 +3,7 @@ volcengine-java-sdk com.volcengine - 0.1.94 + 0.1.95 ../pom.xml 4.0.0 diff --git a/volcengine-java-sdk-vedbm/pom.xml b/volcengine-java-sdk-vedbm/pom.xml index 0049a855d..62a8e4c7a 100644 --- a/volcengine-java-sdk-vedbm/pom.xml +++ b/volcengine-java-sdk-vedbm/pom.xml @@ -3,7 +3,7 @@ volcengine-java-sdk com.volcengine - 0.1.94 + 0.1.95 ../pom.xml 4.0.0 diff --git a/volcengine-java-sdk-vepfs/pom.xml b/volcengine-java-sdk-vepfs/pom.xml index c9461f8c9..7f23371c7 100644 --- a/volcengine-java-sdk-vepfs/pom.xml +++ b/volcengine-java-sdk-vepfs/pom.xml @@ -3,7 +3,7 @@ volcengine-java-sdk com.volcengine - 0.1.94 + 0.1.95 ../pom.xml 4.0.0 diff --git a/volcengine-java-sdk-vke/pom.xml b/volcengine-java-sdk-vke/pom.xml index 023c9265d..5e052ef13 100644 --- a/volcengine-java-sdk-vke/pom.xml +++ b/volcengine-java-sdk-vke/pom.xml @@ -3,7 +3,7 @@ volcengine-java-sdk com.volcengine - 0.1.94 + 0.1.95 ../pom.xml 4.0.0 diff --git a/volcengine-java-sdk-volcobserve/pom.xml b/volcengine-java-sdk-volcobserve/pom.xml index 86efc54ae..20fea479d 100644 --- a/volcengine-java-sdk-volcobserve/pom.xml +++ b/volcengine-java-sdk-volcobserve/pom.xml @@ -3,7 +3,7 @@ volcengine-java-sdk com.volcengine - 0.1.94 + 0.1.95 ../pom.xml 4.0.0 diff --git a/volcengine-java-sdk-vpc/pom.xml b/volcengine-java-sdk-vpc/pom.xml index ce1998165..3ff9d1ae3 100644 --- a/volcengine-java-sdk-vpc/pom.xml +++ b/volcengine-java-sdk-vpc/pom.xml @@ -3,7 +3,7 @@ volcengine-java-sdk com.volcengine - 0.1.94 + 0.1.95 ../pom.xml 4.0.0 diff --git a/volcengine-java-sdk-vpn/pom.xml b/volcengine-java-sdk-vpn/pom.xml index 0735849b1..070862765 100644 --- a/volcengine-java-sdk-vpn/pom.xml +++ b/volcengine-java-sdk-vpn/pom.xml @@ -3,7 +3,7 @@ volcengine-java-sdk com.volcengine - 0.1.94 + 0.1.95 ../pom.xml 4.0.0