Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ff9f7da

Browse files
committed
Support DescribeDBClusterVersion.
1 parent d0d268c commit ff9f7da

File tree

5 files changed

+262
-1
lines changed

5 files changed

+262
-1
lines changed

aliyun-java-sdk-polardb/ChangeLog.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2020-11-25 Version: 1.7.9
2+
- Support DescribeDBClusterVersion.
3+
14
2020-11-17 Version: 1.7.8
25
- Support ModifyDBClusterPrimaryZone.
36
- Support DescribeGlobalDatabaseNetworks.

aliyun-java-sdk-polardb/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<groupId>com.aliyun</groupId>
55
<artifactId>aliyun-java-sdk-polardb</artifactId>
66
<packaging>jar</packaging>
7-
<version>1.7.8</version>
7+
<version>1.7.9</version>
88
<name>aliyun-java-sdk-polardb</name>
99
<url>http://www.aliyun.com</url>
1010
<description>Aliyun Open API SDK for Java
Lines changed: 106 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,106 @@
1+
/*
2+
* Licensed under the Apache License, Version 2.0 (the "License");
3+
* you may not use this file except in compliance with the License.
4+
* You may obtain a copy of the License at
5+
*
6+
* http://www.apache.org/licenses/LICENSE-2.0
7+
*
8+
* Unless required by applicable law or agreed to in writing, software
9+
* distributed under the License is distributed on an "AS IS" BASIS,
10+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11+
* See the License for the specific language governing permissions and
12+
* limitations under the License.
13+
*/
14+
15+
package com.aliyuncs.polardb.model.v20170801;
16+
17+
import com.aliyuncs.RpcAcsRequest;
18+
import com.aliyuncs.http.MethodType;
19+
import com.aliyuncs.polardb.Endpoint;
20+
21+
/**
22+
* @author auto create
23+
* @version
24+
*/
25+
public class DescribeDBClusterVersionRequest extends RpcAcsRequest<DescribeDBClusterVersionResponse> {
26+
27+
28+
private Long resourceOwnerId;
29+
30+
private String resourceOwnerAccount;
31+
32+
private String dBClusterId;
33+
34+
private String ownerAccount;
35+
36+
private Long ownerId;
37+
public DescribeDBClusterVersionRequest() {
38+
super("polardb", "2017-08-01", "DescribeDBClusterVersion", "polardb");
39+
setMethod(MethodType.POST);
40+
try {
41+
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap);
42+
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType);
43+
} catch (Exception e) {}
44+
}
45+
46+
public Long getResourceOwnerId() {
47+
return this.resourceOwnerId;
48+
}
49+
50+
public void setResourceOwnerId(Long resourceOwnerId) {
51+
this.resourceOwnerId = resourceOwnerId;
52+
if(resourceOwnerId != null){
53+
putQueryParameter("ResourceOwnerId", resourceOwnerId.toString());
54+
}
55+
}
56+
57+
public String getResourceOwnerAccount() {
58+
return this.resourceOwnerAccount;
59+
}
60+
61+
public void setResourceOwnerAccount(String resourceOwnerAccount) {
62+
this.resourceOwnerAccount = resourceOwnerAccount;
63+
if(resourceOwnerAccount != null){
64+
putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount);
65+
}
66+
}
67+
68+
public String getDBClusterId() {
69+
return this.dBClusterId;
70+
}
71+
72+
public void setDBClusterId(String dBClusterId) {
73+
this.dBClusterId = dBClusterId;
74+
if(dBClusterId != null){
75+
putQueryParameter("DBClusterId", dBClusterId);
76+
}
77+
}
78+
79+
public String getOwnerAccount() {
80+
return this.ownerAccount;
81+
}
82+
83+
public void setOwnerAccount(String ownerAccount) {
84+
this.ownerAccount = ownerAccount;
85+
if(ownerAccount != null){
86+
putQueryParameter("OwnerAccount", ownerAccount);
87+
}
88+
}
89+
90+
public Long getOwnerId() {
91+
return this.ownerId;
92+
}
93+
94+
public void setOwnerId(Long ownerId) {
95+
this.ownerId = ownerId;
96+
if(ownerId != null){
97+
putQueryParameter("OwnerId", ownerId.toString());
98+
}
99+
}
100+
101+
@Override
102+
public Class<DescribeDBClusterVersionResponse> getResponseClass() {
103+
return DescribeDBClusterVersionResponse.class;
104+
}
105+
106+
}
Lines changed: 116 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,116 @@
1+
/*
2+
* Licensed under the Apache License, Version 2.0 (the "License");
3+
* you may not use this file except in compliance with the License.
4+
* You may obtain a copy of the License at
5+
*
6+
* http://www.apache.org/licenses/LICENSE-2.0
7+
*
8+
* Unless required by applicable law or agreed to in writing, software
9+
* distributed under the License is distributed on an "AS IS" BASIS,
10+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11+
* See the License for the specific language governing permissions and
12+
* limitations under the License.
13+
*/
14+
15+
package com.aliyuncs.polardb.model.v20170801;
16+
17+
import com.aliyuncs.AcsResponse;
18+
import com.aliyuncs.polardb.transform.v20170801.DescribeDBClusterVersionResponseUnmarshaller;
19+
import com.aliyuncs.transform.UnmarshallerContext;
20+
21+
/**
22+
* @author auto create
23+
* @version
24+
*/
25+
public class DescribeDBClusterVersionResponse extends AcsResponse {
26+
27+
private String requestId;
28+
29+
private String dBInstanceName;
30+
31+
private String dBVersion;
32+
33+
private String dBMinorVersion;
34+
35+
private String dBRevisionVersion;
36+
37+
private String dBVersionStatus;
38+
39+
private String isLatestVersion;
40+
41+
private String latestRevisionVersion;
42+
43+
public String getRequestId() {
44+
return this.requestId;
45+
}
46+
47+
public void setRequestId(String requestId) {
48+
this.requestId = requestId;
49+
}
50+
51+
public String getDBInstanceName() {
52+
return this.dBInstanceName;
53+
}
54+
55+
public void setDBInstanceName(String dBInstanceName) {
56+
this.dBInstanceName = dBInstanceName;
57+
}
58+
59+
public String getDBVersion() {
60+
return this.dBVersion;
61+
}
62+
63+
public void setDBVersion(String dBVersion) {
64+
this.dBVersion = dBVersion;
65+
}
66+
67+
public String getDBMinorVersion() {
68+
return this.dBMinorVersion;
69+
}
70+
71+
public void setDBMinorVersion(String dBMinorVersion) {
72+
this.dBMinorVersion = dBMinorVersion;
73+
}
74+
75+
public String getDBRevisionVersion() {
76+
return this.dBRevisionVersion;
77+
}
78+
79+
public void setDBRevisionVersion(String dBRevisionVersion) {
80+
this.dBRevisionVersion = dBRevisionVersion;
81+
}
82+
83+
public String getDBVersionStatus() {
84+
return this.dBVersionStatus;
85+
}
86+
87+
public void setDBVersionStatus(String dBVersionStatus) {
88+
this.dBVersionStatus = dBVersionStatus;
89+
}
90+
91+
public String getIsLatestVersion() {
92+
return this.isLatestVersion;
93+
}
94+
95+
public void setIsLatestVersion(String isLatestVersion) {
96+
this.isLatestVersion = isLatestVersion;
97+
}
98+
99+
public String getLatestRevisionVersion() {
100+
return this.latestRevisionVersion;
101+
}
102+
103+
public void setLatestRevisionVersion(String latestRevisionVersion) {
104+
this.latestRevisionVersion = latestRevisionVersion;
105+
}
106+
107+
@Override
108+
public DescribeDBClusterVersionResponse getInstance(UnmarshallerContext context) {
109+
return DescribeDBClusterVersionResponseUnmarshaller.unmarshall(this, context);
110+
}
111+
112+
@Override
113+
public boolean checkShowJsonItemName() {
114+
return false;
115+
}
116+
}
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
/*
2+
* Licensed under the Apache License, Version 2.0 (the "License");
3+
* you may not use this file except in compliance with the License.
4+
* You may obtain a copy of the License at
5+
*
6+
* http://www.apache.org/licenses/LICENSE-2.0
7+
*
8+
* Unless required by applicable law or agreed to in writing, software
9+
* distributed under the License is distributed on an "AS IS" BASIS,
10+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11+
* See the License for the specific language governing permissions and
12+
* limitations under the License.
13+
*/
14+
15+
package com.aliyuncs.polardb.transform.v20170801;
16+
17+
import com.aliyuncs.polardb.model.v20170801.DescribeDBClusterVersionResponse;
18+
import com.aliyuncs.transform.UnmarshallerContext;
19+
20+
21+
public class DescribeDBClusterVersionResponseUnmarshaller {
22+
23+
public static DescribeDBClusterVersionResponse unmarshall(DescribeDBClusterVersionResponse describeDBClusterVersionResponse, UnmarshallerContext _ctx) {
24+
25+
describeDBClusterVersionResponse.setRequestId(_ctx.stringValue("DescribeDBClusterVersionResponse.RequestId"));
26+
describeDBClusterVersionResponse.setDBInstanceName(_ctx.stringValue("DescribeDBClusterVersionResponse.DBInstanceName"));
27+
describeDBClusterVersionResponse.setDBVersion(_ctx.stringValue("DescribeDBClusterVersionResponse.DBVersion"));
28+
describeDBClusterVersionResponse.setDBMinorVersion(_ctx.stringValue("DescribeDBClusterVersionResponse.DBMinorVersion"));
29+
describeDBClusterVersionResponse.setDBRevisionVersion(_ctx.stringValue("DescribeDBClusterVersionResponse.DBRevisionVersion"));
30+
describeDBClusterVersionResponse.setDBVersionStatus(_ctx.stringValue("DescribeDBClusterVersionResponse.DBVersionStatus"));
31+
describeDBClusterVersionResponse.setIsLatestVersion(_ctx.stringValue("DescribeDBClusterVersionResponse.IsLatestVersion"));
32+
describeDBClusterVersionResponse.setLatestRevisionVersion(_ctx.stringValue("DescribeDBClusterVersionResponse.LatestRevisionVersion"));
33+
34+
return describeDBClusterVersionResponse;
35+
}
36+
}

0 commit comments

Comments
 (0)