Skip to content

Commit 85a948f

Browse files
committed
Backup OpenAPI update.
1 parent eea9383 commit 85a948f

15 files changed

+332
-32
lines changed

aliyun-python-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-30 Version: 2.20.15
2+
- Backup OpenAPI update.
3+
14
2024-12-17 Version: 2.20.14
25
- CreateInstance add ReplicaCount parameter.
36

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '2.20.14'
1+
__version__ = '2.20.15'

aliyun-python-sdk-r-kvstore/aliyunsdkr_kvstore/endpoint.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ def __init__(self):
3030
"cn-shenzhen-st4-d01": "r-kvstore.aliyuncs.com",
3131
"cn-haidian-cm12-c01": "r-kvstore.aliyuncs.com",
3232
"cn-hangzhou-internal-prod-1": "r-kvstore.aliyuncs.com",
33-
"cn-north-2-gov-1": "r-kvstore.aliyuncs.com",
3433
"cn-yushanfang": "r-kvstore.aliyuncs.com",
3534
"cn-qingdao": "r-kvstore.aliyuncs.com",
3635
"cn-hongkong-finance-pop": "r-kvstore.aliyuncs.com",
@@ -51,11 +50,9 @@ def __init__(self):
5150
"cn-zhangbei-na61-b01": "r-kvstore.aliyuncs.com",
5251
"cn-beijing-finance-1": "r-kvstore.aliyuncs.com",
5352
"cn-hangzhou-internal-test-3": "r-kvstore.aliyuncs.com",
54-
"cn-shenzhen-finance-1": "r-kvstore.aliyuncs.com",
5553
"cn-hangzhou-internal-test-2": "r-kvstore.aliyuncs.com",
5654
"cn-hangzhou-test-306": "r-kvstore.aliyuncs.com",
5755
"cn-shanghai-et2-b01": "r-kvstore.aliyuncs.com",
58-
"cn-guangzhou": "r-kvstore.aliyuncs.com",
5956
"cn-hangzhou-finance": "r-kvstore.aliyuncs.com",
6057
"cn-beijing-nu16-b01": "r-kvstore.aliyuncs.com",
6158
"cn-edge-1": "r-kvstore.aliyuncs.com",

aliyun-python-sdk-r-kvstore/aliyunsdkr_kvstore/request/v20150101/CreateBackupRequest.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,11 @@ def get_OwnerId(self): # Long
5656

5757
def set_OwnerId(self, OwnerId): # Long
5858
self.add_query_param('OwnerId', OwnerId)
59+
def get_BackupRetentionPeriod(self): # Long
60+
return self.get_query_params().get('BackupRetentionPeriod')
61+
62+
def set_BackupRetentionPeriod(self, BackupRetentionPeriod): # Long
63+
self.add_query_param('BackupRetentionPeriod', BackupRetentionPeriod)
5964
def get_InstanceId(self): # String
6065
return self.get_query_params().get('InstanceId')
6166

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one
2+
# or more contributor license agreements. See the NOTICE file
3+
# distributed with this work for additional information
4+
# regarding copyright ownership. The ASF licenses this file
5+
# to you under the Apache License, Version 2.0 (the
6+
# "License"); you may not use this file except in compliance
7+
# with the License. You may obtain a copy of the License at
8+
#
9+
#
10+
# http://www.apache.org/licenses/LICENSE-2.0
11+
#
12+
#
13+
# Unless required by applicable law or agreed to in writing,
14+
# software distributed under the License is distributed on an
15+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16+
# KIND, either express or implied. See the License for the
17+
# specific language governing permissions and limitations
18+
# under the License.
19+
20+
from aliyunsdkcore.request import RpcRequest
21+
from aliyunsdkr_kvstore.endpoint import endpoint_data
22+
23+
class DeleteBackupRequest(RpcRequest):
24+
25+
def __init__(self):
26+
RpcRequest.__init__(self, 'R-kvstore', '2015-01-01', 'DeleteBackup','redisa')
27+
self.set_method('POST')
28+
29+
if hasattr(self, "endpoint_map"):
30+
setattr(self, "endpoint_map", endpoint_data.getEndpointMap())
31+
if hasattr(self, "endpoint_regional"):
32+
setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())
33+
34+
def get_ResourceOwnerId(self): # Long
35+
return self.get_query_params().get('ResourceOwnerId')
36+
37+
def set_ResourceOwnerId(self, ResourceOwnerId): # Long
38+
self.add_query_param('ResourceOwnerId', ResourceOwnerId)
39+
def get_ResourceOwnerAccount(self): # String
40+
return self.get_query_params().get('ResourceOwnerAccount')
41+
42+
def set_ResourceOwnerAccount(self, ResourceOwnerAccount): # String
43+
self.add_query_param('ResourceOwnerAccount', ResourceOwnerAccount)
44+
def get_OwnerAccount(self): # String
45+
return self.get_query_params().get('OwnerAccount')
46+
47+
def set_OwnerAccount(self, OwnerAccount): # String
48+
self.add_query_param('OwnerAccount', OwnerAccount)
49+
def get_BackupId(self): # String
50+
return self.get_query_params().get('BackupId')
51+
52+
def set_BackupId(self, BackupId): # String
53+
self.add_query_param('BackupId', BackupId)
54+
def get_OwnerId(self): # Long
55+
return self.get_query_params().get('OwnerId')
56+
57+
def set_OwnerId(self, OwnerId): # Long
58+
self.add_query_param('OwnerId', OwnerId)
59+
def get_InstanceId(self): # String
60+
return self.get_query_params().get('InstanceId')
61+
62+
def set_InstanceId(self, InstanceId): # String
63+
self.add_query_param('InstanceId', InstanceId)

aliyun-python-sdk-r-kvstore/aliyunsdkr_kvstore/request/v20150101/DeleteShardingNodeRequest.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,11 @@ def get_SecurityToken(self): # String
4141

4242
def set_SecurityToken(self, SecurityToken): # String
4343
self.add_query_param('SecurityToken', SecurityToken)
44+
def get_EffectiveTime(self): # String
45+
return self.get_query_params().get('EffectiveTime')
46+
47+
def set_EffectiveTime(self, EffectiveTime): # String
48+
self.add_query_param('EffectiveTime', EffectiveTime)
4449
def get_NodeId(self): # String
4550
return self.get_query_params().get('NodeId')
4651

aliyun-python-sdk-r-kvstore/aliyunsdkr_kvstore/request/v20150101/DescribeClusterBackupListRequest.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,11 @@ def get_InstanceId(self): # String
8181

8282
def set_InstanceId(self, InstanceId): # String
8383
self.add_query_param('InstanceId', InstanceId)
84+
def get_NoShardBackup(self): # String
85+
return self.get_query_params().get('NoShardBackup')
86+
87+
def set_NoShardBackup(self, NoShardBackup): # String
88+
self.add_query_param('NoShardBackup', NoShardBackup)
8489
def get_ClusterBackupId(self): # String
8590
return self.get_query_params().get('ClusterBackupId')
8691

aliyun-python-sdk-r-kvstore/aliyunsdkr_kvstore/request/v20150101/DescribeHistoryMonitorValuesRequest.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,11 @@ def get_StartTime(self): # String
4646

4747
def set_StartTime(self, StartTime): # String
4848
self.add_query_param('StartTime', StartTime)
49+
def get_Type(self): # String
50+
return self.get_query_params().get('Type')
51+
52+
def set_Type(self, Type): # String
53+
self.add_query_param('Type', Type)
4954
def get_SecurityToken(self): # String
5055
return self.get_query_params().get('SecurityToken')
5156

aliyun-python-sdk-r-kvstore/aliyunsdkr_kvstore/request/v20150101/DescribePriceRequest.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,11 @@ def get_CouponNo(self): # String
5151

5252
def set_CouponNo(self, CouponNo): # String
5353
self.add_query_param('CouponNo', CouponNo)
54+
def get_EngineVersion(self): # String
55+
return self.get_query_params().get('EngineVersion')
56+
57+
def set_EngineVersion(self, EngineVersion): # String
58+
self.add_query_param('EngineVersion', EngineVersion)
5459
def get_InstanceClass(self): # String
5560
return self.get_query_params().get('InstanceClass')
5661

aliyun-python-sdk-r-kvstore/aliyunsdkr_kvstore/request/v20150101/DescribeTairKVCacheCustomInstancesRequest.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,11 @@ def get_OwnerAccount(self): # String
106106

107107
def set_OwnerAccount(self, OwnerAccount): # String
108108
self.add_query_param('OwnerAccount', OwnerAccount)
109+
def get_PrivateIp(self): # String
110+
return self.get_query_params().get('PrivateIp')
111+
112+
def set_PrivateIp(self, PrivateIp): # String
113+
self.add_query_param('PrivateIp', PrivateIp)
109114
def get_OwnerId(self): # Long
110115
return self.get_query_params().get('OwnerId')
111116

0 commit comments

Comments
 (0)