Skip to content

Commit

Permalink
Modify endpoint for resourcemanager.
Browse files Browse the repository at this point in the history
  • Loading branch information
sdk-team committed Jun 8, 2023
1 parent 2d8d5bf commit 995d83c
Show file tree
Hide file tree
Showing 97 changed files with 98 additions and 249 deletions.
3 changes: 3 additions & 0 deletions aliyun-java-sdk-resourcemanager/ChangeLog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
2023-06-08 Version: 1.1.6
- Modify endpoint for resourcemanager.

2023-02-22 Version: 1.1.5
- Supported more language for resourcemanager.

Expand Down
7 changes: 3 additions & 4 deletions aliyun-java-sdk-resourcemanager/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<groupId>com.aliyun</groupId>
<artifactId>aliyun-java-sdk-resourcemanager</artifactId>
<packaging>jar</packaging>
<version>1.1.5</version>
<version>1.1.6</version>
<name>aliyun-java-sdk-resourcemanager</name>
<url>http://www.aliyun.com</url>
<description>Aliyun Open API SDK for Java
Expand All @@ -27,7 +27,7 @@ http://www.aliyun.com</description>
<groupId>com.aliyun</groupId>
<artifactId>aliyun-java-sdk-core</artifactId>
<optional>true</optional>
<version>[4.4.9,5.0.0)</version>
<version>[4.3.2,5.0.0)</version>
</dependency>
<dependency>
<groupId>com.google.code.gson</groupId>
Expand Down Expand Up @@ -83,10 +83,9 @@ http://www.aliyun.com</description>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.1.0</version>
<version>2.8</version>
<configuration>
<encoding>UTF-8</encoding>
<doclint>none</doclint>
</configuration>
</plugin>
<plugin>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,33 +17,7 @@
import java.util.HashMap;

public class Endpoint {
public static HashMap<String, String> endpointMap = new HashMap<String, String>() {
{
put("cn-shenzhen", "resourcemanager.cn-shenzhen.aliyuncs.com");
put("cn-beijing", "resourcemanager.cn-beijing.aliyuncs.com");
put("cn-wulanchabu", "resourcemanager.cn-wulanchabu.aliyuncs.com");
put("ap-south-1", "resourcemanager.ap-south-1.aliyuncs.com");
put("eu-west-1", "resourcemanager.eu-west-1.aliyuncs.com");
put("ap-northeast-1", "resourcemanager.ap-northeast-1.aliyuncs.com");
put("cn-shenzhen-finance-1", "resourcemanager.cn-shenzhen-finance-1.aliyuncs.com");
put("me-east-1", "resourcemanager.me-east-1.aliyuncs.com");
put("cn-chengdu", "resourcemanager.cn-chengdu.aliyuncs.com");
put("cn-north-2-gov-1", "resourcemanager.cn-north-2-gov-1.aliyuncs.com");
put("cn-qingdao", "resourcemanager.cn-qingdao.aliyuncs.com");
put("cn-shanghai-finance-1", "resourcemanager.cn-shanghai-finance-1.aliyuncs.com");
put("cn-hangzhou-finance", "resourcemanager.cn-hangzhou-finance.aliyuncs.com");
put("cn-hongkong", "resourcemanager.cn-hongkong.aliyuncs.com");
put("ap-southeast-1", "resourcemanager.ap-southeast-1.aliyuncs.com");
put("ap-southeast-2", "resourcemanager.ap-southeast-2.aliyuncs.com");
put("ap-southeast-3", "resourcemanager.ap-southeast-3.aliyuncs.com");
put("eu-central-1", "resourcemanager.eu-central-1.aliyuncs.com");
put("cn-huhehaote", "resourcemanager.cn-huhehaote.aliyuncs.com");
put("ap-southeast-5", "resourcemanager.ap-southeast-5.aliyuncs.com");
put("us-east-1", "resourcemanager.us-east-1.aliyuncs.com");
put("cn-zhangjiakou", "resourcemanager.cn-zhangjiakou.aliyuncs.com");
put("us-west-1", "resourcemanager.us-west-1.aliyuncs.com");
}
};
public static HashMap<String, String> endpointMap = new HashMap<String, String>() {};

public static String endpointRegionalType = "central";
}
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public class AcceptHandshakeRequest extends RpcAcsRequest<AcceptHandshakeRespons

private String handshakeId;
public AcceptHandshakeRequest() {
super("ResourceManager", "2020-03-31", "AcceptHandshake");
super("ResourceManager", "2020-03-31", "AcceptHandshake", "resourcemanager");
setProtocol(ProtocolType.HTTPS);
setMethod(MethodType.POST);
try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public class AttachControlPolicyRequest extends RpcAcsRequest<AttachControlPolic

private String policyId;
public AttachControlPolicyRequest() {
super("ResourceManager", "2020-03-31", "AttachControlPolicy");
super("ResourceManager", "2020-03-31", "AttachControlPolicy", "resourcemanager");
setProtocol(ProtocolType.HTTPS);
setMethod(MethodType.POST);
try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public class AttachPolicyRequest extends RpcAcsRequest<AttachPolicyResponse> {

private String principalName;
public AttachPolicyRequest() {
super("ResourceManager", "2020-03-31", "AttachPolicy");
super("ResourceManager", "2020-03-31", "AttachPolicy", "resourcemanager");
setProtocol(ProtocolType.HTTPS);
setMethod(MethodType.POST);
try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public class BindSecureMobilePhoneRequest extends RpcAcsRequest<BindSecureMobile

private String verificationCode;
public BindSecureMobilePhoneRequest() {
super("ResourceManager", "2020-03-31", "BindSecureMobilePhone");
super("ResourceManager", "2020-03-31", "BindSecureMobilePhone", "resourcemanager");
setProtocol(ProtocolType.HTTPS);
setMethod(MethodType.POST);
try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public class CancelChangeAccountEmailRequest extends RpcAcsRequest<CancelChangeA

private String accountId;
public CancelChangeAccountEmailRequest() {
super("ResourceManager", "2020-03-31", "CancelChangeAccountEmail");
super("ResourceManager", "2020-03-31", "CancelChangeAccountEmail", "resourcemanager");
setProtocol(ProtocolType.HTTPS);
setMethod(MethodType.POST);
try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public class CancelCreateCloudAccountRequest extends RpcAcsRequest<CancelCreateC

private String recordId;
public CancelCreateCloudAccountRequest() {
super("ResourceManager", "2020-03-31", "CancelCreateCloudAccount");
super("ResourceManager", "2020-03-31", "CancelCreateCloudAccount", "resourcemanager");
setProtocol(ProtocolType.HTTPS);
setMethod(MethodType.POST);
try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public class CancelHandshakeRequest extends RpcAcsRequest<CancelHandshakeRespons

private String handshakeId;
public CancelHandshakeRequest() {
super("ResourceManager", "2020-03-31", "CancelHandshake");
super("ResourceManager", "2020-03-31", "CancelHandshake", "resourcemanager");
setProtocol(ProtocolType.HTTPS);
setMethod(MethodType.POST);
try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public class CancelPromoteResourceAccountRequest extends RpcAcsRequest<CancelPro

private String recordId;
public CancelPromoteResourceAccountRequest() {
super("ResourceManager", "2020-03-31", "CancelPromoteResourceAccount");
super("ResourceManager", "2020-03-31", "CancelPromoteResourceAccount", "resourcemanager");
setProtocol(ProtocolType.HTTPS);
setMethod(MethodType.POST);
try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public class ChangeAccountEmailRequest extends RpcAcsRequest<ChangeAccountEmailR

private String email;
public ChangeAccountEmailRequest() {
super("ResourceManager", "2020-03-31", "ChangeAccountEmail");
super("ResourceManager", "2020-03-31", "ChangeAccountEmail", "resourcemanager");
setProtocol(ProtocolType.HTTPS);
setMethod(MethodType.POST);
try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public class CheckAccountDeleteRequest extends RpcAcsRequest<CheckAccountDeleteR

private String accountId;
public CheckAccountDeleteRequest() {
super("ResourceManager", "2020-03-31", "CheckAccountDelete");
super("ResourceManager", "2020-03-31", "CheckAccountDelete", "resourcemanager");
setProtocol(ProtocolType.HTTPS);
setMethod(MethodType.POST);
try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public class CreateCloudAccountRequest extends RpcAcsRequest<CreateCloudAccountR

private String payerAccountId;
public CreateCloudAccountRequest() {
super("ResourceManager", "2020-03-31", "CreateCloudAccount");
super("ResourceManager", "2020-03-31", "CreateCloudAccount", "resourcemanager");
setProtocol(ProtocolType.HTTPS);
setMethod(MethodType.POST);
try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public class CreateControlPolicyRequest extends RpcAcsRequest<CreateControlPolic

private String policyDocument;
public CreateControlPolicyRequest() {
super("ResourceManager", "2020-03-31", "CreateControlPolicy");
super("ResourceManager", "2020-03-31", "CreateControlPolicy", "resourcemanager");
setProtocol(ProtocolType.HTTPS);
setMethod(MethodType.POST);
try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public class CreateFolderRequest extends RpcAcsRequest<CreateFolderResponse> {

private String parentFolderId;
public CreateFolderRequest() {
super("ResourceManager", "2020-03-31", "CreateFolder");
super("ResourceManager", "2020-03-31", "CreateFolder", "resourcemanager");
setProtocol(ProtocolType.HTTPS);
setMethod(MethodType.POST);
try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public class CreatePolicyRequest extends RpcAcsRequest<CreatePolicyResponse> {

private String policyDocument;
public CreatePolicyRequest() {
super("ResourceManager", "2020-03-31", "CreatePolicy");
super("ResourceManager", "2020-03-31", "CreatePolicy", "resourcemanager");
setProtocol(ProtocolType.HTTPS);
setMethod(MethodType.POST);
try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public class CreatePolicyVersionRequest extends RpcAcsRequest<CreatePolicyVersio

private String policyDocument;
public CreatePolicyVersionRequest() {
super("ResourceManager", "2020-03-31", "CreatePolicyVersion");
super("ResourceManager", "2020-03-31", "CreatePolicyVersion", "resourcemanager");
setProtocol(ProtocolType.HTTPS);
setMethod(MethodType.POST);
try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public class CreateResourceAccountRequest extends RpcAcsRequest<CreateResourceAc

private String payerAccountId;
public CreateResourceAccountRequest() {
super("ResourceManager", "2020-03-31", "CreateResourceAccount");
super("ResourceManager", "2020-03-31", "CreateResourceAccount", "resourcemanager");
setProtocol(ProtocolType.HTTPS);
setMethod(MethodType.POST);
try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public class CreateResourceGroupRequest extends RpcAcsRequest<CreateResourceGrou

private String name;
public CreateResourceGroupRequest() {
super("ResourceManager", "2020-03-31", "CreateResourceGroup");
super("ResourceManager", "2020-03-31", "CreateResourceGroup", "resourcemanager");
setProtocol(ProtocolType.HTTPS);
setMethod(MethodType.POST);
try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public class CreateRoleRequest extends RpcAcsRequest<CreateRoleResponse> {

private String assumeRolePolicyDocument;
public CreateRoleRequest() {
super("ResourceManager", "2020-03-31", "CreateRole");
super("ResourceManager", "2020-03-31", "CreateRole", "resourcemanager");
setProtocol(ProtocolType.HTTPS);
setMethod(MethodType.POST);
try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public class CreateServiceLinkedRoleRequest extends RpcAcsRequest<CreateServiceL

private String serviceName;
public CreateServiceLinkedRoleRequest() {
super("ResourceManager", "2020-03-31", "CreateServiceLinkedRole");
super("ResourceManager", "2020-03-31", "CreateServiceLinkedRole", "resourcemanager");
setProtocol(ProtocolType.HTTPS);
setMethod(MethodType.POST);
try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public class DeclineHandshakeRequest extends RpcAcsRequest<DeclineHandshakeRespo

private String handshakeId;
public DeclineHandshakeRequest() {
super("ResourceManager", "2020-03-31", "DeclineHandshake");
super("ResourceManager", "2020-03-31", "DeclineHandshake", "resourcemanager");
setProtocol(ProtocolType.HTTPS);
setMethod(MethodType.POST);
try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public class DeleteAccountRequest extends RpcAcsRequest<DeleteAccountResponse> {

private String accountId;
public DeleteAccountRequest() {
super("ResourceManager", "2020-03-31", "DeleteAccount");
super("ResourceManager", "2020-03-31", "DeleteAccount", "resourcemanager");
setProtocol(ProtocolType.HTTPS);
setMethod(MethodType.POST);
try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public class DeleteControlPolicyRequest extends RpcAcsRequest<DeleteControlPolic

private String policyId;
public DeleteControlPolicyRequest() {
super("ResourceManager", "2020-03-31", "DeleteControlPolicy");
super("ResourceManager", "2020-03-31", "DeleteControlPolicy", "resourcemanager");
setProtocol(ProtocolType.HTTPS);
setMethod(MethodType.POST);
try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public class DeleteFolderRequest extends RpcAcsRequest<DeleteFolderResponse> {

private String folderId;
public DeleteFolderRequest() {
super("ResourceManager", "2020-03-31", "DeleteFolder");
super("ResourceManager", "2020-03-31", "DeleteFolder", "resourcemanager");
setProtocol(ProtocolType.HTTPS);
setMethod(MethodType.POST);
try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public class DeletePolicyRequest extends RpcAcsRequest<DeletePolicyResponse> {

private String policyName;
public DeletePolicyRequest() {
super("ResourceManager", "2020-03-31", "DeletePolicy");
super("ResourceManager", "2020-03-31", "DeletePolicy", "resourcemanager");
setProtocol(ProtocolType.HTTPS);
setMethod(MethodType.POST);
try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public class DeletePolicyVersionRequest extends RpcAcsRequest<DeletePolicyVersio

private String policyName;
public DeletePolicyVersionRequest() {
super("ResourceManager", "2020-03-31", "DeletePolicyVersion");
super("ResourceManager", "2020-03-31", "DeletePolicyVersion", "resourcemanager");
setProtocol(ProtocolType.HTTPS);
setMethod(MethodType.POST);
try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public class DeleteResourceGroupRequest extends RpcAcsRequest<DeleteResourceGrou

private String resourceGroupId;
public DeleteResourceGroupRequest() {
super("ResourceManager", "2020-03-31", "DeleteResourceGroup");
super("ResourceManager", "2020-03-31", "DeleteResourceGroup", "resourcemanager");
setProtocol(ProtocolType.HTTPS);
setMethod(MethodType.POST);
try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public class DeleteRoleRequest extends RpcAcsRequest<DeleteRoleResponse> {

private String roleName;
public DeleteRoleRequest() {
super("ResourceManager", "2020-03-31", "DeleteRole");
super("ResourceManager", "2020-03-31", "DeleteRole", "resourcemanager");
setProtocol(ProtocolType.HTTPS);
setMethod(MethodType.POST);
try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public class DeleteServiceLinkedRoleRequest extends RpcAcsRequest<DeleteServiceL

private String roleName;
public DeleteServiceLinkedRoleRequest() {
super("ResourceManager", "2020-03-31", "DeleteServiceLinkedRole");
super("ResourceManager", "2020-03-31", "DeleteServiceLinkedRole", "resourcemanager");
setMethod(MethodType.POST);
try {
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public class DeregisterDelegatedAdministratorRequest extends RpcAcsRequest<Dereg

private String servicePrincipal;
public DeregisterDelegatedAdministratorRequest() {
super("ResourceManager", "2020-03-31", "DeregisterDelegatedAdministrator");
super("ResourceManager", "2020-03-31", "DeregisterDelegatedAdministrator", "resourcemanager");
setMethod(MethodType.POST);
try {
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
public class DestroyResourceDirectoryRequest extends RpcAcsRequest<DestroyResourceDirectoryResponse> {

public DestroyResourceDirectoryRequest() {
super("ResourceManager", "2020-03-31", "DestroyResourceDirectory");
super("ResourceManager", "2020-03-31", "DestroyResourceDirectory", "resourcemanager");
setProtocol(ProtocolType.HTTPS);
setMethod(MethodType.POST);
try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public class DetachControlPolicyRequest extends RpcAcsRequest<DetachControlPolic

private String policyId;
public DetachControlPolicyRequest() {
super("ResourceManager", "2020-03-31", "DetachControlPolicy");
super("ResourceManager", "2020-03-31", "DetachControlPolicy", "resourcemanager");
setProtocol(ProtocolType.HTTPS);
setMethod(MethodType.POST);
try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public class DetachPolicyRequest extends RpcAcsRequest<DetachPolicyResponse> {

private String principalName;
public DetachPolicyRequest() {
super("ResourceManager", "2020-03-31", "DetachPolicy");
super("ResourceManager", "2020-03-31", "DetachPolicy", "resourcemanager");
setProtocol(ProtocolType.HTTPS);
setMethod(MethodType.POST);
try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
public class DisableControlPolicyRequest extends RpcAcsRequest<DisableControlPolicyResponse> {

public DisableControlPolicyRequest() {
super("ResourceManager", "2020-03-31", "DisableControlPolicy");
super("ResourceManager", "2020-03-31", "DisableControlPolicy", "resourcemanager");
setProtocol(ProtocolType.HTTPS);
setMethod(MethodType.POST);
try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
public class EnableControlPolicyRequest extends RpcAcsRequest<EnableControlPolicyResponse> {

public EnableControlPolicyRequest() {
super("ResourceManager", "2020-03-31", "EnableControlPolicy");
super("ResourceManager", "2020-03-31", "EnableControlPolicy", "resourcemanager");
setProtocol(ProtocolType.HTTPS);
setMethod(MethodType.POST);
try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public class EnableResourceDirectoryRequest extends RpcAcsRequest<EnableResource

private String verificationCode;
public EnableResourceDirectoryRequest() {
super("ResourceManager", "2020-03-31", "EnableResourceDirectory");
super("ResourceManager", "2020-03-31", "EnableResourceDirectory", "resourcemanager");
setProtocol(ProtocolType.HTTPS);
setMethod(MethodType.POST);
try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public class GetAccountDeletionCheckResultRequest extends RpcAcsRequest<GetAccou

private String accountId;
public GetAccountDeletionCheckResultRequest() {
super("ResourceManager", "2020-03-31", "GetAccountDeletionCheckResult");
super("ResourceManager", "2020-03-31", "GetAccountDeletionCheckResult", "resourcemanager");
setProtocol(ProtocolType.HTTPS);
setMethod(MethodType.POST);
try {
Expand Down
Loading

0 comments on commit 995d83c

Please sign in to comment.