Skip to content

Commit fa062a5

Browse files
committed
DescribeDBInstances, add cpuType.
1 parent 4b9f167 commit fa062a5

File tree

166 files changed

+9557
-3401
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

166 files changed

+9557
-3401
lines changed

aliyun-java-sdk-polardbx/ChangeLog.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2024-05-22 Version: 1.0.3
2+
- DescribeDBInstances, add cpuType.
3+
14
2021-09-08 Version: 1.0.2
25
- Support DescribeBinaryLog to search binary logs.
36

aliyun-java-sdk-polardbx/pom.xml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<groupId>com.aliyun</groupId>
55
<artifactId>aliyun-java-sdk-polardbx</artifactId>
66
<packaging>jar</packaging>
7-
<version>1.0.2</version>
7+
<version>1.0.3</version>
88
<name>aliyun-java-sdk-polardbx</name>
99
<url>http://www.aliyun.com</url>
1010
<description>Aliyun Open API SDK for Java
@@ -37,9 +37,8 @@ http://www.aliyun.com</description>
3737
</dependencies>
3838
<licenses>
3939
<license>
40-
<name/>
41-
<url/>
42-
<distribution/>
40+
<name>The Apache License, Version 2.0</name>
41+
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
4342
</license>
4443
</licenses>
4544
<scm>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
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.polardbx.model.v20200202;
16+
17+
import com.aliyuncs.RpcAcsRequest;
18+
import com.aliyuncs.http.MethodType;
19+
import com.aliyuncs.polardbx.Endpoint;
20+
21+
/**
22+
* @author auto create
23+
* @version
24+
*/
25+
public class AlignStoragePrimaryAzoneRequest extends RpcAcsRequest<AlignStoragePrimaryAzoneResponse> {
26+
27+
28+
private String dBInstanceName;
29+
30+
private String switchTimeMode;
31+
32+
private String switchTime;
33+
34+
private String storageInstanceName;
35+
public AlignStoragePrimaryAzoneRequest() {
36+
super("polardbx", "2020-02-02", "AlignStoragePrimaryAzone", "polardbx");
37+
setMethod(MethodType.POST);
38+
try {
39+
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap);
40+
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType);
41+
} catch (Exception e) {}
42+
}
43+
44+
public String getDBInstanceName() {
45+
return this.dBInstanceName;
46+
}
47+
48+
public void setDBInstanceName(String dBInstanceName) {
49+
this.dBInstanceName = dBInstanceName;
50+
if(dBInstanceName != null){
51+
putQueryParameter("DBInstanceName", dBInstanceName);
52+
}
53+
}
54+
55+
public String getSwitchTimeMode() {
56+
return this.switchTimeMode;
57+
}
58+
59+
public void setSwitchTimeMode(String switchTimeMode) {
60+
this.switchTimeMode = switchTimeMode;
61+
if(switchTimeMode != null){
62+
putQueryParameter("SwitchTimeMode", switchTimeMode);
63+
}
64+
}
65+
66+
public String getSwitchTime() {
67+
return this.switchTime;
68+
}
69+
70+
public void setSwitchTime(String switchTime) {
71+
this.switchTime = switchTime;
72+
if(switchTime != null){
73+
putQueryParameter("SwitchTime", switchTime);
74+
}
75+
}
76+
77+
public String getStorageInstanceName() {
78+
return this.storageInstanceName;
79+
}
80+
81+
public void setStorageInstanceName(String storageInstanceName) {
82+
this.storageInstanceName = storageInstanceName;
83+
if(storageInstanceName != null){
84+
putQueryParameter("StorageInstanceName", storageInstanceName);
85+
}
86+
}
87+
88+
@Override
89+
public Class<AlignStoragePrimaryAzoneResponse> getResponseClass() {
90+
return AlignStoragePrimaryAzoneResponse.class;
91+
}
92+
93+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
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.polardbx.model.v20200202;
16+
17+
import com.aliyuncs.AcsResponse;
18+
import com.aliyuncs.polardbx.transform.v20200202.AlignStoragePrimaryAzoneResponseUnmarshaller;
19+
import com.aliyuncs.transform.UnmarshallerContext;
20+
21+
/**
22+
* @author auto create
23+
* @version
24+
*/
25+
public class AlignStoragePrimaryAzoneResponse extends AcsResponse {
26+
27+
private String message;
28+
29+
private String requestId;
30+
31+
private Boolean success;
32+
33+
public String getMessage() {
34+
return this.message;
35+
}
36+
37+
public void setMessage(String message) {
38+
this.message = message;
39+
}
40+
41+
public String getRequestId() {
42+
return this.requestId;
43+
}
44+
45+
public void setRequestId(String requestId) {
46+
this.requestId = requestId;
47+
}
48+
49+
public Boolean getSuccess() {
50+
return this.success;
51+
}
52+
53+
public void setSuccess(Boolean success) {
54+
this.success = success;
55+
}
56+
57+
@Override
58+
public AlignStoragePrimaryAzoneResponse getInstance(UnmarshallerContext context) {
59+
return AlignStoragePrimaryAzoneResponseUnmarshaller.unmarshall(this, context);
60+
}
61+
62+
@Override
63+
public boolean checkShowJsonItemName() {
64+
return false;
65+
}
66+
}

aliyun-java-sdk-polardbx/src/main/java/com/aliyuncs/polardbx/model/v20200202/RetryPolarxOrderRequest.java renamed to aliyun-java-sdk-polardbx/src/main/java/com/aliyuncs/polardbx/model/v20200202/AllocateColdDataVolumeRequest.java

Lines changed: 6 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,12 @@
2222
* @author auto create
2323
* @version
2424
*/
25-
public class RetryPolarxOrderRequest extends RpcAcsRequest<RetryPolarxOrderResponse> {
25+
public class AllocateColdDataVolumeRequest extends RpcAcsRequest<AllocateColdDataVolumeResponse> {
2626

2727

28-
private String dBInstanceName;
29-
30-
private String scaleOutToken;
31-
public RetryPolarxOrderRequest() {
32-
super("polardbx", "2020-02-02", "RetryPolarxOrder", "polardbx");
28+
private String dBInstanceName;
29+
public AllocateColdDataVolumeRequest() {
30+
super("polardbx", "2020-02-02", "AllocateColdDataVolume", "polardbx");
3331
setMethod(MethodType.POST);
3432
try {
3533
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap);
@@ -46,22 +44,11 @@ public void setDBInstanceName(String dBInstanceName) {
4644
if(dBInstanceName != null){
4745
putQueryParameter("DBInstanceName", dBInstanceName);
4846
}
49-
}
50-
51-
public String getScaleOutToken() {
52-
return this.scaleOutToken;
53-
}
54-
55-
public void setScaleOutToken(String scaleOutToken) {
56-
this.scaleOutToken = scaleOutToken;
57-
if(scaleOutToken != null){
58-
putQueryParameter("ScaleOutToken", scaleOutToken);
59-
}
6047
}
6148

6249
@Override
63-
public Class<RetryPolarxOrderResponse> getResponseClass() {
64-
return RetryPolarxOrderResponse.class;
50+
public Class<AllocateColdDataVolumeResponse> getResponseClass() {
51+
return AllocateColdDataVolumeResponse.class;
6552
}
6653

6754
}
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,14 @@
1515
package com.aliyuncs.polardbx.model.v20200202;
1616

1717
import com.aliyuncs.AcsResponse;
18-
import com.aliyuncs.polardbx.transform.v20200202.RetryPolarxOrderResponseUnmarshaller;
18+
import com.aliyuncs.polardbx.transform.v20200202.AllocateColdDataVolumeResponseUnmarshaller;
1919
import com.aliyuncs.transform.UnmarshallerContext;
2020

2121
/**
2222
* @author auto create
2323
* @version
2424
*/
25-
public class RetryPolarxOrderResponse extends AcsResponse {
25+
public class AllocateColdDataVolumeResponse extends AcsResponse {
2626

2727
private String requestId;
2828

@@ -35,8 +35,8 @@ public void setRequestId(String requestId) {
3535
}
3636

3737
@Override
38-
public RetryPolarxOrderResponse getInstance(UnmarshallerContext context) {
39-
return RetryPolarxOrderResponseUnmarshaller.unmarshall(this, context);
38+
public AllocateColdDataVolumeResponse getInstance(UnmarshallerContext context) {
39+
return AllocateColdDataVolumeResponseUnmarshaller.unmarshall(this, context);
4040
}
4141

4242
@Override
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
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.polardbx.model.v20200202;
16+
17+
import com.aliyuncs.RpcAcsRequest;
18+
import com.aliyuncs.http.MethodType;
19+
import com.aliyuncs.polardbx.Endpoint;
20+
21+
/**
22+
* @author auto create
23+
* @version
24+
*/
25+
public class CancelActiveOperationTasksRequest extends RpcAcsRequest<CancelActiveOperationTasksResponse> {
26+
27+
28+
private String ids;
29+
public CancelActiveOperationTasksRequest() {
30+
super("polardbx", "2020-02-02", "CancelActiveOperationTasks", "polardbx");
31+
setMethod(MethodType.GET);
32+
try {
33+
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap);
34+
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType);
35+
} catch (Exception e) {}
36+
}
37+
38+
public String getIds() {
39+
return this.ids;
40+
}
41+
42+
public void setIds(String ids) {
43+
this.ids = ids;
44+
if(ids != null){
45+
putQueryParameter("Ids", ids);
46+
}
47+
}
48+
49+
@Override
50+
public Class<CancelActiveOperationTasksResponse> getResponseClass() {
51+
return CancelActiveOperationTasksResponse.class;
52+
}
53+
54+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
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.polardbx.model.v20200202;
16+
17+
import com.aliyuncs.AcsResponse;
18+
import com.aliyuncs.polardbx.transform.v20200202.CancelActiveOperationTasksResponseUnmarshaller;
19+
import com.aliyuncs.transform.UnmarshallerContext;
20+
21+
/**
22+
* @author auto create
23+
* @version
24+
*/
25+
public class CancelActiveOperationTasksResponse extends AcsResponse {
26+
27+
private String requestId;
28+
29+
private String ids;
30+
31+
public String getRequestId() {
32+
return this.requestId;
33+
}
34+
35+
public void setRequestId(String requestId) {
36+
this.requestId = requestId;
37+
}
38+
39+
public String getIds() {
40+
return this.ids;
41+
}
42+
43+
public void setIds(String ids) {
44+
this.ids = ids;
45+
}
46+
47+
@Override
48+
public CancelActiveOperationTasksResponse getInstance(UnmarshallerContext context) {
49+
return CancelActiveOperationTasksResponseUnmarshaller.unmarshall(this, context);
50+
}
51+
52+
@Override
53+
public boolean checkShowJsonItemName() {
54+
return false;
55+
}
56+
}

0 commit comments

Comments
 (0)