Skip to content

Commit 0ad721c

Browse files
committed
Supported CheckCloudResourceAuthorized API.
1 parent 22a191a commit 0ad721c

15 files changed

+423
-14
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+
2020-07-27 Version: 2.4.9
2+
- Supported CheckCloudResourceAuthorized API.
3+
14
2020-06-18 Version: 2.4.8
25
- Supported TransformDBInstancePayType API.
36

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

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

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,18 @@ def get_TargetDedicatedHostIdForSlave(self):
169169
def set_TargetDedicatedHostIdForSlave(self,TargetDedicatedHostIdForSlave):
170170
self.add_query_param('TargetDedicatedHostIdForSlave',TargetDedicatedHostIdForSlave)
171171

172+
def get_ZoneIdSlave1(self):
173+
return self.get_query_params().get('ZoneIdSlave1')
174+
175+
def set_ZoneIdSlave1(self,ZoneIdSlave1):
176+
self.add_query_param('ZoneIdSlave1',ZoneIdSlave1)
177+
178+
def get_ZoneIdSlave2(self):
179+
return self.get_query_params().get('ZoneIdSlave2')
180+
181+
def set_ZoneIdSlave2(self,ZoneIdSlave2):
182+
self.add_query_param('ZoneIdSlave2',ZoneIdSlave2)
183+
172184
def get_DBIsIgnoreCase(self):
173185
return self.get_query_params().get('DBIsIgnoreCase')
174186

Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
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 CreateHostAccountRequest(RpcRequest):
24+
25+
def __init__(self):
26+
RpcRequest.__init__(self, 'Rds', '2014-08-15', 'CreateHostAccount','rds')
27+
self.set_method('POST')
28+
if hasattr(self, "endpoint_map"):
29+
setattr(self, "endpoint_map", endpoint_data.getEndpointMap())
30+
if hasattr(self, "endpoint_regional"):
31+
setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())
32+
33+
34+
def get_ResourceOwnerId(self):
35+
return self.get_query_params().get('ResourceOwnerId')
36+
37+
def set_ResourceOwnerId(self,ResourceOwnerId):
38+
self.add_query_param('ResourceOwnerId',ResourceOwnerId)
39+
40+
def get_ClientToken(self):
41+
return self.get_query_params().get('ClientToken')
42+
43+
def set_ClientToken(self,ClientToken):
44+
self.add_query_param('ClientToken',ClientToken)
45+
46+
def get_AccountType(self):
47+
return self.get_query_params().get('AccountType')
48+
49+
def set_AccountType(self,AccountType):
50+
self.add_query_param('AccountType',AccountType)
51+
52+
def get_AccountDescription(self):
53+
return self.get_query_params().get('AccountDescription')
54+
55+
def set_AccountDescription(self,AccountDescription):
56+
self.add_query_param('AccountDescription',AccountDescription)
57+
58+
def get_AccountName(self):
59+
return self.get_query_params().get('AccountName')
60+
61+
def set_AccountName(self,AccountName):
62+
self.add_query_param('AccountName',AccountName)
63+
64+
def get_DBInstanceId(self):
65+
return self.get_query_params().get('DBInstanceId')
66+
67+
def set_DBInstanceId(self,DBInstanceId):
68+
self.add_query_param('DBInstanceId',DBInstanceId)
69+
70+
def get_ResourceOwnerAccount(self):
71+
return self.get_query_params().get('ResourceOwnerAccount')
72+
73+
def set_ResourceOwnerAccount(self,ResourceOwnerAccount):
74+
self.add_query_param('ResourceOwnerAccount',ResourceOwnerAccount)
75+
76+
def get_OwnerId(self):
77+
return self.get_query_params().get('OwnerId')
78+
79+
def set_OwnerId(self,OwnerId):
80+
self.add_query_param('OwnerId',OwnerId)
81+
82+
def get_AccountPassword(self):
83+
return self.get_query_params().get('AccountPassword')
84+
85+
def set_AccountPassword(self,AccountPassword):
86+
self.add_query_param('AccountPassword',AccountPassword)

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

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,12 @@ def get_ResourceGroupId(self):
6161
def set_ResourceGroupId(self,ResourceGroupId):
6262
self.add_query_param('ResourceGroupId',ResourceGroupId)
6363

64+
def get_TddlRegionConfig(self):
65+
return self.get_query_params().get('TddlRegionConfig')
66+
67+
def set_TddlRegionConfig(self,TddlRegionConfig):
68+
self.add_query_param('TddlRegionConfig',TddlRegionConfig)
69+
6470
def get_TargetDedicatedHostIdForMaster(self):
6571
return self.get_query_params().get('TargetDedicatedHostIdForMaster')
6672

@@ -79,6 +85,12 @@ def get_DBInstanceDescription(self):
7985
def set_DBInstanceDescription(self,DBInstanceDescription):
8086
self.add_query_param('DBInstanceDescription',DBInstanceDescription)
8187

88+
def get_GdnInstanceName(self):
89+
return self.get_query_params().get('GdnInstanceName')
90+
91+
def set_GdnInstanceName(self,GdnInstanceName):
92+
self.add_query_param('GdnInstanceName',GdnInstanceName)
93+
8294
def get_DBInstanceStorageType(self):
8395
return self.get_query_params().get('DBInstanceStorageType')
8496

@@ -91,6 +103,12 @@ def get_DedicatedHostGroupId(self):
91103
def set_DedicatedHostGroupId(self,DedicatedHostGroupId):
92104
self.add_query_param('DedicatedHostGroupId',DedicatedHostGroupId)
93105

106+
def get_TddlBizType(self):
107+
return self.get_query_params().get('TddlBizType')
108+
109+
def set_TddlBizType(self,TddlBizType):
110+
self.add_query_param('TddlBizType',TddlBizType)
111+
94112
def get_ResourceOwnerAccount(self):
95113
return self.get_query_params().get('ResourceOwnerAccount')
96114

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

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,18 @@ def get_ResourceOwnerId(self):
3737
def set_ResourceOwnerId(self,ResourceOwnerId):
3838
self.add_query_param('ResourceOwnerId',ResourceOwnerId)
3939

40+
def get_DBInstanceId(self):
41+
return self.get_query_params().get('DBInstanceId')
42+
43+
def set_DBInstanceId(self,DBInstanceId):
44+
self.add_query_param('DBInstanceId',DBInstanceId)
45+
46+
def get_ReleasedKeepPolicy(self):
47+
return self.get_query_params().get('ReleasedKeepPolicy')
48+
49+
def set_ReleasedKeepPolicy(self,ReleasedKeepPolicy):
50+
self.add_query_param('ReleasedKeepPolicy',ReleasedKeepPolicy)
51+
4052
def get_ResourceOwnerAccount(self):
4153
return self.get_query_params().get('ResourceOwnerAccount')
4254

@@ -53,10 +65,4 @@ def get_OwnerId(self):
5365
return self.get_query_params().get('OwnerId')
5466

5567
def set_OwnerId(self,OwnerId):
56-
self.add_query_param('OwnerId',OwnerId)
57-
58-
def get_DBInstanceId(self):
59-
return self.get_query_params().get('DBInstanceId')
60-
61-
def set_DBInstanceId(self,DBInstanceId):
62-
self.add_query_param('DBInstanceId',DBInstanceId)
68+
self.add_query_param('OwnerId',OwnerId)
Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
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 DeleteHostAccountRequest(RpcRequest):
24+
25+
def __init__(self):
26+
RpcRequest.__init__(self, 'Rds', '2014-08-15', 'DeleteHostAccount','rds')
27+
self.set_method('POST')
28+
if hasattr(self, "endpoint_map"):
29+
setattr(self, "endpoint_map", endpoint_data.getEndpointMap())
30+
if hasattr(self, "endpoint_regional"):
31+
setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())
32+
33+
34+
def get_ResourceOwnerId(self):
35+
return self.get_query_params().get('ResourceOwnerId')
36+
37+
def set_ResourceOwnerId(self,ResourceOwnerId):
38+
self.add_query_param('ResourceOwnerId',ResourceOwnerId)
39+
40+
def get_ResourceOwnerAccount(self):
41+
return self.get_query_params().get('ResourceOwnerAccount')
42+
43+
def set_ResourceOwnerAccount(self,ResourceOwnerAccount):
44+
self.add_query_param('ResourceOwnerAccount',ResourceOwnerAccount)
45+
46+
def get_ClientToken(self):
47+
return self.get_query_params().get('ClientToken')
48+
49+
def set_ClientToken(self,ClientToken):
50+
self.add_query_param('ClientToken',ClientToken)
51+
52+
def get_OwnerId(self):
53+
return self.get_query_params().get('OwnerId')
54+
55+
def set_OwnerId(self,OwnerId):
56+
self.add_query_param('OwnerId',OwnerId)
57+
58+
def get_AccountName(self):
59+
return self.get_query_params().get('AccountName')
60+
61+
def set_AccountName(self,AccountName):
62+
self.add_query_param('AccountName',AccountName)
63+
64+
def get_DBInstanceId(self):
65+
return self.get_query_params().get('DBInstanceId')
66+
67+
def set_DBInstanceId(self,DBInstanceId):
68+
self.add_query_param('DBInstanceId',DBInstanceId)

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,12 @@ def get_Engine(self):
4949
def set_Engine(self,Engine):
5050
self.add_query_param('Engine',Engine)
5151

52+
def get_InstanceChargeType(self):
53+
return self.get_query_params().get('InstanceChargeType')
54+
55+
def set_InstanceChargeType(self,InstanceChargeType):
56+
self.add_query_param('InstanceChargeType',InstanceChargeType)
57+
5258
def get_ZoneId(self):
5359
return self.get_query_params().get('ZoneId')
5460

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,12 @@ def get_BackupPolicyMode(self):
4949
def set_BackupPolicyMode(self,BackupPolicyMode):
5050
self.add_query_param('BackupPolicyMode',BackupPolicyMode)
5151

52+
def get_ReleasedKeepPolicy(self):
53+
return self.get_query_params().get('ReleasedKeepPolicy')
54+
55+
def set_ReleasedKeepPolicy(self,ReleasedKeepPolicy):
56+
self.add_query_param('ReleasedKeepPolicy',ReleasedKeepPolicy)
57+
5258
def get_ResourceOwnerAccount(self):
5359
return self.get_query_params().get('ResourceOwnerAccount')
5460

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,12 @@ def get_OrderId(self):
7373
def set_OrderId(self,OrderId):
7474
self.add_query_param('OrderId',OrderId)
7575

76+
def get_DedicatedHostId(self):
77+
return self.get_query_params().get('DedicatedHostId')
78+
79+
def set_DedicatedHostId(self,DedicatedHostId):
80+
self.add_query_param('DedicatedHostId',DedicatedHostId)
81+
7682
def get_OwnerId(self):
7783
return self.get_query_params().get('OwnerId')
7884

0 commit comments

Comments
 (0)