Skip to content

Commit 38d0555

Browse files
committed
Backup OpenAPI update.
1 parent a83b2d8 commit 38d0555

File tree

92 files changed

+6602
-320
lines changed

Some content is hidden

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

92 files changed

+6602
-320
lines changed

aliyun-java-sdk-r-kvstore/ChangeLog.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2025-07-25 Version: 2.20.22
2+
- Backup OpenAPI update.
3+
14
2024-08-28 Version: 2.20.21
25
- DescibePrice add ShardCount parameters.
36

aliyun-java-sdk-r-kvstore/pom.xml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<groupId>com.aliyun</groupId>
55
<artifactId>aliyun-java-sdk-r-kvstore</artifactId>
66
<packaging>jar</packaging>
7-
<version>2.20.21</version>
7+
<version>2.20.22</version>
88
<name>aliyun-java-sdk-r-kvstore</name>
99
<url>http://www.aliyun.com</url>
1010
<description>Aliyun Open API SDK for Java
@@ -91,7 +91,7 @@ http://www.aliyun.com</description>
9191
<plugin>
9292
<groupId>org.apache.maven.plugins</groupId>
9393
<artifactId>maven-gpg-plugin</artifactId>
94-
<version>1.5</version>
94+
<version>3.1.0</version>
9595
<executions>
9696
<execution>
9797
<id>sign-artifacts</id>
@@ -103,14 +103,14 @@ http://www.aliyun.com</description>
103103
</executions>
104104
</plugin>
105105
<plugin>
106-
<groupId>org.sonatype.plugins</groupId>
107-
<artifactId>nexus-staging-maven-plugin</artifactId>
108-
<version>1.6.3</version>
106+
<groupId>org.sonatype.central</groupId>
107+
<artifactId>central-publishing-maven-plugin</artifactId>
108+
<version>0.8.0</version>
109109
<extensions>true</extensions>
110110
<configuration>
111-
<serverId>sonatype-nexus-staging</serverId>
112-
<nexusUrl>https://s01.oss.sonatype.org/</nexusUrl>
113-
<autoReleaseAfterClose>true</autoReleaseAfterClose>
111+
<publishingServerId>central</publishingServerId>
112+
<autoPublish>true</autoPublish>
113+
<waitUntil>published</waitUntil>
114114
</configuration>
115115
</plugin>
116116
</plugins>

aliyun-java-sdk-r-kvstore/src/main/java/com/aliyuncs/r_kvstore/Endpoint.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ public class Endpoint {
2828
put("cn-shenzhen-st4-d01", "r-kvstore.aliyuncs.com");
2929
put("cn-haidian-cm12-c01", "r-kvstore.aliyuncs.com");
3030
put("cn-hangzhou-internal-prod-1", "r-kvstore.aliyuncs.com");
31-
put("cn-north-2-gov-1", "r-kvstore.aliyuncs.com");
3231
put("cn-yushanfang", "r-kvstore.aliyuncs.com");
3332
put("cn-qingdao", "r-kvstore.aliyuncs.com");
3433
put("cn-hongkong-finance-pop", "r-kvstore.aliyuncs.com");
@@ -49,7 +48,6 @@ public class Endpoint {
4948
put("cn-zhangbei-na61-b01", "r-kvstore.aliyuncs.com");
5049
put("cn-beijing-finance-1", "r-kvstore.aliyuncs.com");
5150
put("cn-hangzhou-internal-test-3", "r-kvstore.aliyuncs.com");
52-
put("cn-shenzhen-finance-1", "r-kvstore.aliyuncs.com");
5351
put("cn-hangzhou-internal-test-2", "r-kvstore.aliyuncs.com");
5452
put("cn-hangzhou-test-306", "r-kvstore.aliyuncs.com");
5553
put("cn-shanghai-et2-b01", "r-kvstore.aliyuncs.com");
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,119 @@
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.r_kvstore.model.v20150101;
16+
17+
import com.aliyuncs.RpcAcsRequest;
18+
import com.aliyuncs.http.MethodType;
19+
import com.aliyuncs.r_kvstore.Endpoint;
20+
21+
/**
22+
* @author auto create
23+
* @version
24+
*/
25+
public class CancelActiveOperationTasksRequest extends RpcAcsRequest<CancelActiveOperationTasksResponse> {
26+
27+
28+
private Long resourceOwnerId;
29+
30+
private String securityToken;
31+
32+
private String resourceOwnerAccount;
33+
34+
private String ownerAccount;
35+
36+
private Long ownerId;
37+
38+
private String ids;
39+
public CancelActiveOperationTasksRequest() {
40+
super("R-kvstore", "2015-01-01", "CancelActiveOperationTasks", "redisa");
41+
setMethod(MethodType.POST);
42+
try {
43+
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap);
44+
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType);
45+
} catch (Exception e) {}
46+
}
47+
48+
public Long getResourceOwnerId() {
49+
return this.resourceOwnerId;
50+
}
51+
52+
public void setResourceOwnerId(Long resourceOwnerId) {
53+
this.resourceOwnerId = resourceOwnerId;
54+
if(resourceOwnerId != null){
55+
putQueryParameter("ResourceOwnerId", resourceOwnerId.toString());
56+
}
57+
}
58+
59+
public String getSecurityToken() {
60+
return this.securityToken;
61+
}
62+
63+
public void setSecurityToken(String securityToken) {
64+
this.securityToken = securityToken;
65+
if(securityToken != null){
66+
putQueryParameter("SecurityToken", securityToken);
67+
}
68+
}
69+
70+
public String getResourceOwnerAccount() {
71+
return this.resourceOwnerAccount;
72+
}
73+
74+
public void setResourceOwnerAccount(String resourceOwnerAccount) {
75+
this.resourceOwnerAccount = resourceOwnerAccount;
76+
if(resourceOwnerAccount != null){
77+
putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount);
78+
}
79+
}
80+
81+
public String getOwnerAccount() {
82+
return this.ownerAccount;
83+
}
84+
85+
public void setOwnerAccount(String ownerAccount) {
86+
this.ownerAccount = ownerAccount;
87+
if(ownerAccount != null){
88+
putQueryParameter("OwnerAccount", ownerAccount);
89+
}
90+
}
91+
92+
public Long getOwnerId() {
93+
return this.ownerId;
94+
}
95+
96+
public void setOwnerId(Long ownerId) {
97+
this.ownerId = ownerId;
98+
if(ownerId != null){
99+
putQueryParameter("OwnerId", ownerId.toString());
100+
}
101+
}
102+
103+
public String getIds() {
104+
return this.ids;
105+
}
106+
107+
public void setIds(String ids) {
108+
this.ids = ids;
109+
if(ids != null){
110+
putQueryParameter("Ids", ids);
111+
}
112+
}
113+
114+
@Override
115+
public Class<CancelActiveOperationTasksResponse> getResponseClass() {
116+
return CancelActiveOperationTasksResponse.class;
117+
}
118+
119+
}
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.r_kvstore.model.v20150101;
16+
17+
import com.aliyuncs.AcsResponse;
18+
import com.aliyuncs.r_kvstore.transform.v20150101.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 ids;
28+
29+
private String requestId;
30+
31+
public String getIds() {
32+
return this.ids;
33+
}
34+
35+
public void setIds(String ids) {
36+
this.ids = ids;
37+
}
38+
39+
public String getRequestId() {
40+
return this.requestId;
41+
}
42+
43+
public void setRequestId(String requestId) {
44+
this.requestId = requestId;
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+
}

aliyun-java-sdk-r-kvstore/src/main/java/com/aliyuncs/r_kvstore/model/v20150101/CreateBackupRequest.java

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ public class CreateBackupRequest extends RpcAcsRequest<CreateBackupResponse> {
3535

3636
private Long ownerId;
3737

38+
private Long backupRetentionPeriod;
39+
3840
private String instanceId;
3941
public CreateBackupRequest() {
4042
super("R-kvstore", "2015-01-01", "CreateBackup", "redisa");
@@ -100,6 +102,17 @@ public void setOwnerId(Long ownerId) {
100102
}
101103
}
102104

105+
public Long getBackupRetentionPeriod() {
106+
return this.backupRetentionPeriod;
107+
}
108+
109+
public void setBackupRetentionPeriod(Long backupRetentionPeriod) {
110+
this.backupRetentionPeriod = backupRetentionPeriod;
111+
if(backupRetentionPeriod != null){
112+
putQueryParameter("BackupRetentionPeriod", backupRetentionPeriod.toString());
113+
}
114+
}
115+
103116
public String getInstanceId() {
104117
return this.instanceId;
105118
}

aliyun-java-sdk-r-kvstore/src/main/java/com/aliyuncs/r_kvstore/model/v20150101/CreateGlobalDistributeCacheResponse.java

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ public class CreateGlobalDistributeCacheResponse extends AcsResponse {
2626

2727
private String requestId;
2828

29+
private String globalInstanceId;
30+
31+
private String instanceId;
32+
2933
public String getRequestId() {
3034
return this.requestId;
3135
}
@@ -34,6 +38,22 @@ public void setRequestId(String requestId) {
3438
this.requestId = requestId;
3539
}
3640

41+
public String getGlobalInstanceId() {
42+
return this.globalInstanceId;
43+
}
44+
45+
public void setGlobalInstanceId(String globalInstanceId) {
46+
this.globalInstanceId = globalInstanceId;
47+
}
48+
49+
public String getInstanceId() {
50+
return this.instanceId;
51+
}
52+
53+
public void setInstanceId(String instanceId) {
54+
this.instanceId = instanceId;
55+
}
56+
3757
@Override
3858
public CreateGlobalDistributeCacheResponse getInstance(UnmarshallerContext context) {
3959
return CreateGlobalDistributeCacheResponseUnmarshaller.unmarshall(this, context);

aliyun-java-sdk-r-kvstore/src/main/java/com/aliyuncs/r_kvstore/model/v20150101/CreateInstanceRequest.java

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,8 @@ public class CreateInstanceRequest extends RpcAcsRequest<CreateInstanceResponse>
7676

7777
private String zoneId;
7878

79+
private Integer replicaCount;
80+
7981
private String appendonly;
8082

8183
private String nodeType;
@@ -114,6 +116,8 @@ public class CreateInstanceRequest extends RpcAcsRequest<CreateInstanceResponse>
114116

115117
private String chargeType;
116118

119+
private Integer slaveReplicaCount;
120+
117121
private String clusterBackupId;
118122
public CreateInstanceRequest() {
119123
super("R-kvstore", "2015-01-01", "CreateInstance", "redisa");
@@ -402,6 +406,17 @@ public void setZoneId(String zoneId) {
402406
}
403407
}
404408

409+
public Integer getReplicaCount() {
410+
return this.replicaCount;
411+
}
412+
413+
public void setReplicaCount(Integer replicaCount) {
414+
this.replicaCount = replicaCount;
415+
if(replicaCount != null){
416+
putQueryParameter("ReplicaCount", replicaCount.toString());
417+
}
418+
}
419+
405420
public String getAppendonly() {
406421
return this.appendonly;
407422
}
@@ -611,6 +626,17 @@ public void setChargeType(String chargeType) {
611626
}
612627
}
613628

629+
public Integer getSlaveReplicaCount() {
630+
return this.slaveReplicaCount;
631+
}
632+
633+
public void setSlaveReplicaCount(Integer slaveReplicaCount) {
634+
this.slaveReplicaCount = slaveReplicaCount;
635+
if(slaveReplicaCount != null){
636+
putQueryParameter("SlaveReplicaCount", slaveReplicaCount.toString());
637+
}
638+
}
639+
614640
public String getClusterBackupId() {
615641
return this.clusterBackupId;
616642
}

0 commit comments

Comments
 (0)