Skip to content

Commit e7762eb

Browse files
committed
Supported param and error code.
1 parent 416cc2d commit e7762eb

22 files changed

+837
-10
lines changed

aliyun-python-sdk-rds/ChangeLog.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2025-07-04 Version: 2.7.51
2+
- Supported param and error code.
3+
14
2025-05-22 Version: 2.7.50
25
- Generated 2014-08-15 for `Rds`.
36

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

aliyun-python-sdk-rds/aliyunsdkrds/request/v20140815/CreateBackupRequest.py

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

5757
def set_BackupMethod(self, BackupMethod): # String
5858
self.add_query_param('BackupMethod', BackupMethod)
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_DBName(self): # String
6065
return self.get_query_params().get('DBName')
6166

aliyun-python-sdk-rds/aliyunsdkrds/request/v20140815/CreateDBInstanceRequest.py

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

207207
def set_TargetDedicatedHostIdForSlave(self, TargetDedicatedHostIdForSlave): # String
208208
self.add_query_param('TargetDedicatedHostIdForSlave', TargetDedicatedHostIdForSlave)
209+
def get_ExternalReplication(self): # Boolean
210+
return self.get_query_params().get('ExternalReplication')
211+
212+
def set_ExternalReplication(self, ExternalReplication): # Boolean
213+
self.add_query_param('ExternalReplication', ExternalReplication)
209214
def get_ZoneIdSlave1(self): # String
210215
return self.get_query_params().get('ZoneIdSlave1')
211216

aliyun-python-sdk-rds/aliyunsdkrds/request/v20140815/CreateRCSnapshotRequest.py

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

4242
def set_Description(self, Description): # String
4343
self.add_query_param('Description', Description)
44+
def get_ResourceGroupId(self): # String
45+
return self.get_query_params().get('ResourceGroupId')
46+
47+
def set_ResourceGroupId(self, ResourceGroupId): # String
48+
self.add_query_param('ResourceGroupId', ResourceGroupId)
4449
def get_InstantAccessRetentionDays(self): # Integer
4550
return self.get_query_params().get('InstantAccessRetentionDays')
4651

@@ -51,6 +56,15 @@ def get_DiskId(self): # String
5156

5257
def set_DiskId(self, DiskId): # String
5358
self.add_query_param('DiskId', DiskId)
59+
def get_Tags(self): # RepeatList
60+
return self.get_query_params().get('Tag')
61+
62+
def set_Tags(self, Tag): # RepeatList
63+
for depth1 in range(len(Tag)):
64+
if Tag[depth1].get('Value') is not None:
65+
self.add_query_param('Tag.' + str(depth1 + 1) + '.Value', Tag[depth1].get('Value'))
66+
if Tag[depth1].get('Key') is not None:
67+
self.add_query_param('Tag.' + str(depth1 + 1) + '.Key', Tag[depth1].get('Key'))
5468
def get_ZoneId(self): # String
5569
return self.get_query_params().get('ZoneId')
5670

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 aliyunsdkrds.endpoint import endpoint_data
22+
23+
class DescribeComputeBurstConfigRequest(RpcRequest):
24+
25+
def __init__(self):
26+
RpcRequest.__init__(self, 'Rds', '2014-08-15', 'DescribeComputeBurstConfig','rds')
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_ResourceOwnerAccount(self): # String
35+
return self.get_query_params().get('ResourceOwnerAccount')
36+
37+
def set_ResourceOwnerAccount(self, ResourceOwnerAccount): # String
38+
self.add_query_param('ResourceOwnerAccount', ResourceOwnerAccount)
39+
def get_ClientToken(self): # String
40+
return self.get_query_params().get('ClientToken')
41+
42+
def set_ClientToken(self, ClientToken): # String
43+
self.add_query_param('ClientToken', ClientToken)
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_OwnerId(self): # Long
50+
return self.get_query_params().get('OwnerId')
51+
52+
def set_OwnerId(self, OwnerId): # Long
53+
self.add_query_param('OwnerId', OwnerId)
54+
def get_ResourceGroupId(self): # String
55+
return self.get_query_params().get('ResourceGroupId')
56+
57+
def set_ResourceGroupId(self, ResourceGroupId): # String
58+
self.add_query_param('ResourceGroupId', ResourceGroupId)
59+
def get_DBInstanceId(self): # String
60+
return self.get_query_params().get('DBInstanceId')
61+
62+
def set_DBInstanceId(self, DBInstanceId): # String
63+
self.add_query_param('DBInstanceId', DBInstanceId)

aliyun-python-sdk-rds/aliyunsdkrds/request/v20140815/DescribeDBInstancesRequest.py

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

127127
def set_Expired(self, Expired): # String
128128
self.add_query_param('Expired', Expired)
129+
def get_QueryAutoRenewal(self): # Boolean
130+
return self.get_query_params().get('QueryAutoRenewal')
131+
132+
def set_QueryAutoRenewal(self, QueryAutoRenewal): # Boolean
133+
self.add_query_param('QueryAutoRenewal', QueryAutoRenewal)
129134
def get_Engine(self): # String
130135
return self.get_query_params().get('Engine')
131136

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
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 aliyunsdkrds.endpoint import endpoint_data
22+
import json
23+
24+
class DescribeRCCloudAssistantStatusRequest(RpcRequest):
25+
26+
def __init__(self):
27+
RpcRequest.__init__(self, 'Rds', '2014-08-15', 'DescribeRCCloudAssistantStatus','rds')
28+
self.set_method('POST')
29+
30+
if hasattr(self, "endpoint_map"):
31+
setattr(self, "endpoint_map", endpoint_data.getEndpointMap())
32+
if hasattr(self, "endpoint_regional"):
33+
setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())
34+
35+
def get_OSType(self): # String
36+
return self.get_query_params().get('OSType')
37+
38+
def set_OSType(self, OSType): # String
39+
self.add_query_param('OSType', OSType)
40+
def get_PageNumber(self): # Integer
41+
return self.get_query_params().get('PageNumber')
42+
43+
def set_PageNumber(self, PageNumber): # Integer
44+
self.add_query_param('PageNumber', PageNumber)
45+
def get_NextToken(self): # String
46+
return self.get_query_params().get('NextToken')
47+
48+
def set_NextToken(self, NextToken): # String
49+
self.add_query_param('NextToken', NextToken)
50+
def get_InstanceIds(self): # Array
51+
return self.get_query_params().get('InstanceIds')
52+
53+
def set_InstanceIds(self, InstanceIds): # Array
54+
self.add_query_param("InstanceIds", json.dumps(InstanceIds))
55+
def get_PageSize(self): # Integer
56+
return self.get_query_params().get('PageSize')
57+
58+
def set_PageSize(self, PageSize): # Integer
59+
self.add_query_param('PageSize', PageSize)
60+
def get_MaxResults(self): # Integer
61+
return self.get_query_params().get('MaxResults')
62+
63+
def set_MaxResults(self, MaxResults): # Integer
64+
self.add_query_param('MaxResults', MaxResults)

aliyun-python-sdk-rds/aliyunsdkrds/request/v20140815/DescribeRCInstanceAttributeRequest.py

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

4242
def set_InstanceId(self, InstanceId): # String
4343
self.add_query_param('InstanceId', InstanceId)
44+
def get_MaxDisksResults(self): # Long
45+
return self.get_query_params().get('MaxDisksResults')
46+
47+
def set_MaxDisksResults(self, MaxDisksResults): # Long
48+
self.add_query_param('MaxDisksResults', MaxDisksResults)
Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
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 aliyunsdkrds.endpoint import endpoint_data
22+
import json
23+
24+
class DescribeRCInvocationResultsRequest(RpcRequest):
25+
26+
def __init__(self):
27+
RpcRequest.__init__(self, 'Rds', '2014-08-15', 'DescribeRCInvocationResults','rds')
28+
self.set_method('POST')
29+
30+
if hasattr(self, "endpoint_map"):
31+
setattr(self, "endpoint_map", endpoint_data.getEndpointMap())
32+
if hasattr(self, "endpoint_regional"):
33+
setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())
34+
35+
def get_CommandId(self): # String
36+
return self.get_query_params().get('CommandId')
37+
38+
def set_CommandId(self, CommandId): # String
39+
self.add_query_param('CommandId', CommandId)
40+
def get_PageNumber(self): # Integer
41+
return self.get_query_params().get('PageNumber')
42+
43+
def set_PageNumber(self, PageNumber): # Integer
44+
self.add_query_param('PageNumber', PageNumber)
45+
def get_ResourceGroupId(self): # String
46+
return self.get_query_params().get('ResourceGroupId')
47+
48+
def set_ResourceGroupId(self, ResourceGroupId): # String
49+
self.add_query_param('ResourceGroupId', ResourceGroupId)
50+
def get_NextToken(self): # String
51+
return self.get_query_params().get('NextToken')
52+
53+
def set_NextToken(self, NextToken): # String
54+
self.add_query_param('NextToken', NextToken)
55+
def get_ContentEncoding(self): # String
56+
return self.get_query_params().get('ContentEncoding')
57+
58+
def set_ContentEncoding(self, ContentEncoding): # String
59+
self.add_query_param('ContentEncoding', ContentEncoding)
60+
def get_PageSize(self): # Integer
61+
return self.get_query_params().get('PageSize')
62+
63+
def set_PageSize(self, PageSize): # Integer
64+
self.add_query_param('PageSize', PageSize)
65+
def get_Tag(self): # Array
66+
return self.get_query_params().get('Tag')
67+
68+
def set_Tag(self, Tag): # Array
69+
self.add_query_param("Tag", json.dumps(Tag))
70+
def get_InvokeId(self): # String
71+
return self.get_query_params().get('InvokeId')
72+
73+
def set_InvokeId(self, InvokeId): # String
74+
self.add_query_param('InvokeId', InvokeId)
75+
def get_InstanceId(self): # String
76+
return self.get_query_params().get('InstanceId')
77+
78+
def set_InstanceId(self, InstanceId): # String
79+
self.add_query_param('InstanceId', InstanceId)
80+
def get_InvokeRecordStatus(self): # String
81+
return self.get_query_params().get('InvokeRecordStatus')
82+
83+
def set_InvokeRecordStatus(self, InvokeRecordStatus): # String
84+
self.add_query_param('InvokeRecordStatus', InvokeRecordStatus)
85+
def get_IncludeHistory(self): # Boolean
86+
return self.get_query_params().get('IncludeHistory')
87+
88+
def set_IncludeHistory(self, IncludeHistory): # Boolean
89+
self.add_query_param('IncludeHistory', IncludeHistory)
90+
def get_MaxResults(self): # Integer
91+
return self.get_query_params().get('MaxResults')
92+
93+
def set_MaxResults(self, MaxResults): # Integer
94+
self.add_query_param('MaxResults', MaxResults)

0 commit comments

Comments
 (0)