Skip to content

Commit

Permalink
Support More Open Api.
Browse files Browse the repository at this point in the history
  • Loading branch information
sdk-team committed Jun 29, 2023
1 parent ab4eefa commit 2b4087b
Show file tree
Hide file tree
Showing 11 changed files with 117 additions and 27 deletions.
3 changes: 3 additions & 0 deletions aliyun-java-sdk-rds/ChangeLog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
2023-06-29 Version: 2.7.14
- Support More Open Api.

2023-06-26 Version: 2.7.13
- Support More Open Api.

Expand Down
2 changes: 1 addition & 1 deletion aliyun-java-sdk-rds/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-rds</artifactId>
<packaging>jar</packaging>
<version>2.7.13</version>
<version>2.7.14</version>
<name>aliyun-java-sdk-rds</name>
<url>http://www.aliyun.com</url>
<description>Aliyun Open API SDK for Java
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ public class AllocateInstancePublicConnectionRequest extends RpcAcsRequest<Alloc

private String connectionStringPrefix;

private String pGBouncerPort;

private String generalGroupName;

private String dBInstanceId;
Expand Down Expand Up @@ -73,6 +75,17 @@ public void setConnectionStringPrefix(String connectionStringPrefix) {
}
}

public String getPGBouncerPort() {
return this.pGBouncerPort;
}

public void setPGBouncerPort(String pGBouncerPort) {
this.pGBouncerPort = pGBouncerPort;
if(pGBouncerPort != null){
putQueryParameter("PGBouncerPort", pGBouncerPort);
}
}

public String getGeneralGroupName() {
return this.generalGroupName;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ public class CreateDBInstanceEndpointAddressRequest extends RpcAcsRequest<Create

private String clientToken;

private String resourceGroupId;

private String dBInstanceId;

private String ipType;
Expand Down Expand Up @@ -80,6 +82,17 @@ public void setClientToken(String clientToken) {
}
}

public String getResourceGroupId() {
return this.resourceGroupId;
}

public void setResourceGroupId(String resourceGroupId) {
this.resourceGroupId = resourceGroupId;
if(resourceGroupId != null){
putQueryParameter("ResourceGroupId", resourceGroupId);
}
}

public String getDBInstanceId() {
return this.dBInstanceId;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ public class CreateDBInstanceEndpointRequest extends RpcAcsRequest<CreateDBInsta

private String clientToken;

private String resourceGroupId;

private String dBInstanceId;

private String dBInstanceEndpointDescription;
Expand Down Expand Up @@ -88,6 +90,17 @@ public void setClientToken(String clientToken) {
}
}

public String getResourceGroupId() {
return this.resourceGroupId;
}

public void setResourceGroupId(String resourceGroupId) {
this.resourceGroupId = resourceGroupId;
if(resourceGroupId != null){
putQueryParameter("ResourceGroupId", resourceGroupId);
}
}

public String getDBInstanceId() {
return this.dBInstanceId;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,18 @@ public class CreateDBNodesRequest extends RpcAcsRequest<CreateDBNodesResponse> {

private Long resourceOwnerId;

private String resourceOwnerAccount;

private String clientToken;

private String resourceGroupId;

private String dBInstanceId;

private String resourceOwnerAccount;

private String ownerAccount;

private Long ownerId;

private String dBInstanceId;

private String dBNode;
public CreateDBNodesRequest() {
super("Rds", "2014-08-15", "CreateDBNodes", "rds");
Expand All @@ -58,17 +60,6 @@ public void setResourceOwnerId(Long resourceOwnerId) {
}
}

public String getResourceOwnerAccount() {
return this.resourceOwnerAccount;
}

public void setResourceOwnerAccount(String resourceOwnerAccount) {
this.resourceOwnerAccount = resourceOwnerAccount;
if(resourceOwnerAccount != null){
putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
}

public String getClientToken() {
return this.clientToken;
}
Expand All @@ -80,6 +71,39 @@ public void setClientToken(String clientToken) {
}
}

public String getResourceGroupId() {
return this.resourceGroupId;
}

public void setResourceGroupId(String resourceGroupId) {
this.resourceGroupId = resourceGroupId;
if(resourceGroupId != null){
putQueryParameter("ResourceGroupId", resourceGroupId);
}
}

public String getDBInstanceId() {
return this.dBInstanceId;
}

public void setDBInstanceId(String dBInstanceId) {
this.dBInstanceId = dBInstanceId;
if(dBInstanceId != null){
putQueryParameter("DBInstanceId", dBInstanceId);
}
}

public String getResourceOwnerAccount() {
return this.resourceOwnerAccount;
}

public void setResourceOwnerAccount(String resourceOwnerAccount) {
this.resourceOwnerAccount = resourceOwnerAccount;
if(resourceOwnerAccount != null){
putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
}

public String getOwnerAccount() {
return this.ownerAccount;
}
Expand All @@ -102,17 +126,6 @@ public void setOwnerId(Long ownerId) {
}
}

public String getDBInstanceId() {
return this.dBInstanceId;
}

public void setDBInstanceId(String dBInstanceId) {
this.dBInstanceId = dBInstanceId;
if(dBInstanceId != null){
putQueryParameter("DBInstanceId", dBInstanceId);
}
}

public String getDBNode() {
return this.dBNode;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,8 @@ public static class DBInstanceAttribute {

private String bpeEnabled;

private String pGBouncerEnabled;

private List<SlaveZone> slaveZones;

private List<ReadOnlyDBInstanceId> readOnlyDBInstanceIds;
Expand Down Expand Up @@ -889,6 +891,14 @@ public void setBpeEnabled(String bpeEnabled) {
this.bpeEnabled = bpeEnabled;
}

public String getPGBouncerEnabled() {
return this.pGBouncerEnabled;
}

public void setPGBouncerEnabled(String pGBouncerEnabled) {
this.pGBouncerEnabled = pGBouncerEnabled;
}

public List<SlaveZone> getSlaveZones() {
return this.slaveZones;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,8 @@ public static class DBInstanceNetInfo {

private String iPAddress;

private String pGBouncerPort;

private List<SecurityIPGroup> securityIPGroups;

private List<DBInstanceWeight> dBInstanceWeights;
Expand Down Expand Up @@ -191,6 +193,14 @@ public void setIPAddress(String iPAddress) {
this.iPAddress = iPAddress;
}

public String getPGBouncerPort() {
return this.pGBouncerPort;
}

public void setPGBouncerPort(String pGBouncerPort) {
this.pGBouncerPort = pGBouncerPort;
}

public List<SecurityIPGroup> getSecurityIPGroups() {
return this.securityIPGroups;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ public class ModifyDBInstanceConnectionStringRequest extends RpcAcsRequest<Modif

private String connectionStringPrefix;

private String pGBouncerPort;

private String generalGroupName;

private String dBInstanceId;
Expand Down Expand Up @@ -75,6 +77,17 @@ public void setConnectionStringPrefix(String connectionStringPrefix) {
}
}

public String getPGBouncerPort() {
return this.pGBouncerPort;
}

public void setPGBouncerPort(String pGBouncerPort) {
this.pGBouncerPort = pGBouncerPort;
if(pGBouncerPort != null){
putQueryParameter("PGBouncerPort", pGBouncerPort);
}
}

public String getGeneralGroupName() {
return this.generalGroupName;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ public static DescribeDBInstanceAttributeResponse unmarshall(DescribeDBInstanceA
dBInstanceAttribute.setInstructionSetArch(_ctx.stringValue("DescribeDBInstanceAttributeResponse.Items["+ i +"].InstructionSetArch"));
dBInstanceAttribute.setBurstingEnabled(_ctx.booleanValue("DescribeDBInstanceAttributeResponse.Items["+ i +"].BurstingEnabled"));
dBInstanceAttribute.setBpeEnabled(_ctx.stringValue("DescribeDBInstanceAttributeResponse.Items["+ i +"].BpeEnabled"));
dBInstanceAttribute.setPGBouncerEnabled(_ctx.stringValue("DescribeDBInstanceAttributeResponse.Items["+ i +"].PGBouncerEnabled"));

Extra extra = new Extra();
extra.setReplicaGroupStatus(_ctx.stringValue("DescribeDBInstanceAttributeResponse.Items["+ i +"].Extra.ReplicaGroupStatus"));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ public static DescribeDBInstanceNetInfoResponse unmarshall(DescribeDBInstanceNet
dBInstanceNetInfo.setVPCId(_ctx.stringValue("DescribeDBInstanceNetInfoResponse.DBInstanceNetInfos["+ i +"].VPCId"));
dBInstanceNetInfo.setDistributionType(_ctx.stringValue("DescribeDBInstanceNetInfoResponse.DBInstanceNetInfos["+ i +"].DistributionType"));
dBInstanceNetInfo.setIPAddress(_ctx.stringValue("DescribeDBInstanceNetInfoResponse.DBInstanceNetInfos["+ i +"].IPAddress"));
dBInstanceNetInfo.setPGBouncerPort(_ctx.stringValue("DescribeDBInstanceNetInfoResponse.DBInstanceNetInfos["+ i +"].PGBouncerPort"));

List<SecurityIPGroup> securityIPGroups = new ArrayList<SecurityIPGroup>();
for (int j = 0; j < _ctx.lengthValue("DescribeDBInstanceNetInfoResponse.DBInstanceNetInfos["+ i +"].SecurityIPGroups.Length"); j++) {
Expand Down

0 comments on commit 2b4087b

Please sign in to comment.