From c14d061fe3a133bb53fc732b4f650873b714fbb6 Mon Sep 17 00:00:00 2001 From: sdk-team Date: Thu, 1 Aug 2024 03:54:17 +0000 Subject: [PATCH] Generated 2015-12-01 for Dds. --- aliyun-java-sdk-dds/ChangeLog.txt | 3 ++ aliyun-java-sdk-dds/pom.xml | 2 +- .../main/java/com/aliyuncs/dds/Endpoint.java | 2 +- .../MigrateAvailableZoneRequest.java | 26 ++++++++++ ...ceRequest.java => RestartNodeRequest.java} | 49 ++++++++++++------- ...Response.java => RestartNodeResponse.java} | 8 +-- ...a => RestartNodeResponseUnmarshaller.java} | 10 ++-- 7 files changed, 71 insertions(+), 29 deletions(-) rename aliyun-java-sdk-dds/src/main/java/com/aliyuncs/dds/model/v20151201/{RestoreDBInstanceRequest.java => RestartNodeRequest.java} (77%) rename aliyun-java-sdk-dds/src/main/java/com/aliyuncs/dds/model/v20151201/{RestoreDBInstanceResponse.java => RestartNodeResponse.java} (74%) rename aliyun-java-sdk-dds/src/main/java/com/aliyuncs/dds/transform/v20151201/{RestoreDBInstanceResponseUnmarshaller.java => RestartNodeResponseUnmarshaller.java} (63%) diff --git a/aliyun-java-sdk-dds/ChangeLog.txt b/aliyun-java-sdk-dds/ChangeLog.txt index b4d8498dac..12a1bb4e98 100644 --- a/aliyun-java-sdk-dds/ChangeLog.txt +++ b/aliyun-java-sdk-dds/ChangeLog.txt @@ -1,3 +1,6 @@ +2024-08-01 Version: 3.7.19 +- Generated 2015-12-01 for `Dds`. + 2024-05-24 Version: 3.7.18 - Generated 2015-12-01 for `Dds`. diff --git a/aliyun-java-sdk-dds/pom.xml b/aliyun-java-sdk-dds/pom.xml index 433f7656bb..1a54927c13 100644 --- a/aliyun-java-sdk-dds/pom.xml +++ b/aliyun-java-sdk-dds/pom.xml @@ -4,7 +4,7 @@ com.aliyun aliyun-java-sdk-dds jar - 3.7.18 + 3.7.19 aliyun-java-sdk-dds http://www.aliyun.com Aliyun Open API SDK for Java diff --git a/aliyun-java-sdk-dds/src/main/java/com/aliyuncs/dds/Endpoint.java b/aliyun-java-sdk-dds/src/main/java/com/aliyuncs/dds/Endpoint.java index b3448f37da..f6d829cedc 100644 --- a/aliyun-java-sdk-dds/src/main/java/com/aliyuncs/dds/Endpoint.java +++ b/aliyun-java-sdk-dds/src/main/java/com/aliyuncs/dds/Endpoint.java @@ -40,7 +40,7 @@ public class Endpoint { put("ap-northeast-1", "mongodb.ap-northeast-1.aliyuncs.com"); put("cn-huhehaote-nebula-1", "mongodb.aliyuncs.com"); put("cn-shanghai-et2-b01", "mongodb.aliyuncs.com"); - put("ap-southeast-1", "mongodb.aliyuncs.com"); + put("ap-southeast-1", "mongodb.ap-southeast-1.aliyuncs.com"); put("ap-southeast-2", "mongodb.ap-southeast-2.aliyuncs.com"); put("ap-southeast-3", "mongodb.ap-southeast-3.aliyuncs.com"); put("ap-southeast-5", "mongodb.ap-southeast-5.aliyuncs.com"); diff --git a/aliyun-java-sdk-dds/src/main/java/com/aliyuncs/dds/model/v20151201/MigrateAvailableZoneRequest.java b/aliyun-java-sdk-dds/src/main/java/com/aliyuncs/dds/model/v20151201/MigrateAvailableZoneRequest.java index a32634ac33..124d548107 100644 --- a/aliyun-java-sdk-dds/src/main/java/com/aliyuncs/dds/model/v20151201/MigrateAvailableZoneRequest.java +++ b/aliyun-java-sdk-dds/src/main/java/com/aliyuncs/dds/model/v20151201/MigrateAvailableZoneRequest.java @@ -27,8 +27,12 @@ public class MigrateAvailableZoneRequest extends RpcAcsRequest { +public class RestartNodeRequest extends RpcAcsRequest { private Long resourceOwnerId; + private String roleId; + private String dBInstanceId; + private String nodeId; + private String resourceOwnerAccount; private String ownerAccount; - private Integer backupId; - private Long ownerId; - public RestoreDBInstanceRequest() { - super("Dds", "2015-12-01", "RestoreDBInstance", "dds"); + public RestartNodeRequest() { + super("Dds", "2015-12-01", "RestartNode", "dds"); setMethod(MethodType.POST); try { com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); @@ -56,6 +58,17 @@ public void setResourceOwnerId(Long resourceOwnerId) { } } + public String getRoleId() { + return this.roleId; + } + + public void setRoleId(String roleId) { + this.roleId = roleId; + if(roleId != null){ + putQueryParameter("RoleId", roleId); + } + } + public String getDBInstanceId() { return this.dBInstanceId; } @@ -67,6 +80,17 @@ public void setDBInstanceId(String dBInstanceId) { } } + public String getNodeId() { + return this.nodeId; + } + + public void setNodeId(String nodeId) { + this.nodeId = nodeId; + if(nodeId != null){ + putQueryParameter("NodeId", nodeId); + } + } + public String getResourceOwnerAccount() { return this.resourceOwnerAccount; } @@ -89,17 +113,6 @@ public void setOwnerAccount(String ownerAccount) { } } - public Integer getBackupId() { - return this.backupId; - } - - public void setBackupId(Integer backupId) { - this.backupId = backupId; - if(backupId != null){ - putQueryParameter("BackupId", backupId.toString()); - } - } - public Long getOwnerId() { return this.ownerId; } @@ -112,8 +125,8 @@ public void setOwnerId(Long ownerId) { } @Override - public Class getResponseClass() { - return RestoreDBInstanceResponse.class; + public Class getResponseClass() { + return RestartNodeResponse.class; } } diff --git a/aliyun-java-sdk-dds/src/main/java/com/aliyuncs/dds/model/v20151201/RestoreDBInstanceResponse.java b/aliyun-java-sdk-dds/src/main/java/com/aliyuncs/dds/model/v20151201/RestartNodeResponse.java similarity index 74% rename from aliyun-java-sdk-dds/src/main/java/com/aliyuncs/dds/model/v20151201/RestoreDBInstanceResponse.java rename to aliyun-java-sdk-dds/src/main/java/com/aliyuncs/dds/model/v20151201/RestartNodeResponse.java index 4d6bb85668..78ca8b5d64 100644 --- a/aliyun-java-sdk-dds/src/main/java/com/aliyuncs/dds/model/v20151201/RestoreDBInstanceResponse.java +++ b/aliyun-java-sdk-dds/src/main/java/com/aliyuncs/dds/model/v20151201/RestartNodeResponse.java @@ -15,14 +15,14 @@ package com.aliyuncs.dds.model.v20151201; import com.aliyuncs.AcsResponse; -import com.aliyuncs.dds.transform.v20151201.RestoreDBInstanceResponseUnmarshaller; +import com.aliyuncs.dds.transform.v20151201.RestartNodeResponseUnmarshaller; import com.aliyuncs.transform.UnmarshallerContext; /** * @author auto create * @version */ -public class RestoreDBInstanceResponse extends AcsResponse { +public class RestartNodeResponse extends AcsResponse { private String requestId; @@ -35,7 +35,7 @@ public void setRequestId(String requestId) { } @Override - public RestoreDBInstanceResponse getInstance(UnmarshallerContext context) { - return RestoreDBInstanceResponseUnmarshaller.unmarshall(this, context); + public RestartNodeResponse getInstance(UnmarshallerContext context) { + return RestartNodeResponseUnmarshaller.unmarshall(this, context); } } diff --git a/aliyun-java-sdk-dds/src/main/java/com/aliyuncs/dds/transform/v20151201/RestoreDBInstanceResponseUnmarshaller.java b/aliyun-java-sdk-dds/src/main/java/com/aliyuncs/dds/transform/v20151201/RestartNodeResponseUnmarshaller.java similarity index 63% rename from aliyun-java-sdk-dds/src/main/java/com/aliyuncs/dds/transform/v20151201/RestoreDBInstanceResponseUnmarshaller.java rename to aliyun-java-sdk-dds/src/main/java/com/aliyuncs/dds/transform/v20151201/RestartNodeResponseUnmarshaller.java index 990ebd2f88..03b1495405 100644 --- a/aliyun-java-sdk-dds/src/main/java/com/aliyuncs/dds/transform/v20151201/RestoreDBInstanceResponseUnmarshaller.java +++ b/aliyun-java-sdk-dds/src/main/java/com/aliyuncs/dds/transform/v20151201/RestartNodeResponseUnmarshaller.java @@ -14,16 +14,16 @@ package com.aliyuncs.dds.transform.v20151201; -import com.aliyuncs.dds.model.v20151201.RestoreDBInstanceResponse; +import com.aliyuncs.dds.model.v20151201.RestartNodeResponse; import com.aliyuncs.transform.UnmarshallerContext; -public class RestoreDBInstanceResponseUnmarshaller { +public class RestartNodeResponseUnmarshaller { - public static RestoreDBInstanceResponse unmarshall(RestoreDBInstanceResponse restoreDBInstanceResponse, UnmarshallerContext _ctx) { + public static RestartNodeResponse unmarshall(RestartNodeResponse restartNodeResponse, UnmarshallerContext _ctx) { - restoreDBInstanceResponse.setRequestId(_ctx.stringValue("RestoreDBInstanceResponse.RequestId")); + restartNodeResponse.setRequestId(_ctx.stringValue("RestartNodeResponse.RequestId")); - return restoreDBInstanceResponse; + return restartNodeResponse; } } \ No newline at end of file