Skip to content

Commit d0022cb

Browse files
committed
2 parents 5dd4399 + 2ee1efc commit d0022cb

19 files changed

+748
-25
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+
2018-07-18 Version: 2.1.4
2+
1, add openapi service.
3+
14
2018-05-22 Version: 2.1.3
25
1, add DescribeMigrateTasks,DescribeOssDownloads,CheckRecoveryConditions.
36
2, modify DescribeDBInstanceAttribute.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "2.1.3"
1+
__version__ = "2.1.4"
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
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+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
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+
class CheckDBInstancesRequest(RpcRequest):
22+
23+
def __init__(self):
24+
RpcRequest.__init__(self, 'Rds', '2014-08-15', 'CheckDBInstances','rds')
25+
26+
def get_ResourceOwnerId(self):
27+
return self.get_query_params().get('ResourceOwnerId')
28+
29+
def set_ResourceOwnerId(self,ResourceOwnerId):
30+
self.add_query_param('ResourceOwnerId',ResourceOwnerId)
31+
32+
def get_ResourceOwnerAccount(self):
33+
return self.get_query_params().get('ResourceOwnerAccount')
34+
35+
def set_ResourceOwnerAccount(self,ResourceOwnerAccount):
36+
self.add_query_param('ResourceOwnerAccount',ResourceOwnerAccount)
37+
38+
def get_DBInstanceId(self):
39+
return self.get_query_params().get('DBInstanceId')
40+
41+
def set_DBInstanceId(self,DBInstanceId):
42+
self.add_query_param('DBInstanceId',DBInstanceId)
43+
44+
def get_OwnerId(self):
45+
return self.get_query_params().get('OwnerId')
46+
47+
def set_OwnerId(self,OwnerId):
48+
self.add_query_param('OwnerId',OwnerId)

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

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,12 @@ def get_DBInstanceClass(self):
8989
def set_DBInstanceClass(self,DBInstanceClass):
9090
self.add_query_param('DBInstanceClass',DBInstanceClass)
9191

92+
def get_DbNames(self):
93+
return self.get_query_params().get('DbNames')
94+
95+
def set_DbNames(self,DbNames):
96+
self.add_query_param('DbNames',DbNames)
97+
9298
def get_VSwitchId(self):
9399
return self.get_query_params().get('VSwitchId')
94100

@@ -113,6 +119,12 @@ def get_VPCId(self):
113119
def set_VPCId(self,VPCId):
114120
self.add_query_param('VPCId',VPCId)
115121

122+
def get_ZoneId(self):
123+
return self.get_query_params().get('ZoneId')
124+
125+
def set_ZoneId(self,ZoneId):
126+
self.add_query_param('ZoneId',ZoneId)
127+
116128
def get_DBInstanceDescription(self):
117129
return self.get_query_params().get('DBInstanceDescription')
118130

Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
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+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
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+
class CopyDatabaseBetweenInstancesRequest(RpcRequest):
22+
23+
def __init__(self):
24+
RpcRequest.__init__(self, 'Rds', '2014-08-15', 'CopyDatabaseBetweenInstances','rds')
25+
26+
def get_ResourceOwnerId(self):
27+
return self.get_query_params().get('ResourceOwnerId')
28+
29+
def set_ResourceOwnerId(self,ResourceOwnerId):
30+
self.add_query_param('ResourceOwnerId',ResourceOwnerId)
31+
32+
def get_RestoreTime(self):
33+
return self.get_query_params().get('RestoreTime')
34+
35+
def set_RestoreTime(self,RestoreTime):
36+
self.add_query_param('RestoreTime',RestoreTime)
37+
38+
def get_ResourceOwnerAccount(self):
39+
return self.get_query_params().get('ResourceOwnerAccount')
40+
41+
def set_ResourceOwnerAccount(self,ResourceOwnerAccount):
42+
self.add_query_param('ResourceOwnerAccount',ResourceOwnerAccount)
43+
44+
def get_ClientToken(self):
45+
return self.get_query_params().get('ClientToken')
46+
47+
def set_ClientToken(self,ClientToken):
48+
self.add_query_param('ClientToken',ClientToken)
49+
50+
def get_BackupId(self):
51+
return self.get_query_params().get('BackupId')
52+
53+
def set_BackupId(self,BackupId):
54+
self.add_query_param('BackupId',BackupId)
55+
56+
def get_OwnerAccount(self):
57+
return self.get_query_params().get('OwnerAccount')
58+
59+
def set_OwnerAccount(self,OwnerAccount):
60+
self.add_query_param('OwnerAccount',OwnerAccount)
61+
62+
def get_OwnerId(self):
63+
return self.get_query_params().get('OwnerId')
64+
65+
def set_OwnerId(self,OwnerId):
66+
self.add_query_param('OwnerId',OwnerId)
67+
68+
def get_DbNames(self):
69+
return self.get_query_params().get('DbNames')
70+
71+
def set_DbNames(self,DbNames):
72+
self.add_query_param('DbNames',DbNames)
73+
74+
def get_ResourceGroupId(self):
75+
return self.get_query_params().get('ResourceGroupId')
76+
77+
def set_ResourceGroupId(self,ResourceGroupId):
78+
self.add_query_param('ResourceGroupId',ResourceGroupId)
79+
80+
def get_TargetDBInstanceId(self):
81+
return self.get_query_params().get('TargetDBInstanceId')
82+
83+
def set_TargetDBInstanceId(self,TargetDBInstanceId):
84+
self.add_query_param('TargetDBInstanceId',TargetDBInstanceId)
85+
86+
def get_DBInstanceId(self):
87+
return self.get_query_params().get('DBInstanceId')
88+
89+
def set_DBInstanceId(self,DBInstanceId):
90+
self.add_query_param('DBInstanceId',DBInstanceId)
91+
92+
def get_PayType(self):
93+
return self.get_query_params().get('PayType')
94+
95+
def set_PayType(self,PayType):
96+
self.add_query_param('PayType',PayType)

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,12 @@ def get_ResourceOwnerId(self):
3535
def set_ResourceOwnerId(self,ResourceOwnerId):
3636
self.add_query_param('ResourceOwnerId',ResourceOwnerId)
3737

38+
def get_BackupStrategy(self):
39+
return self.get_query_params().get('BackupStrategy')
40+
41+
def set_BackupStrategy(self,BackupStrategy):
42+
self.add_query_param('BackupStrategy',BackupStrategy)
43+
3844
def get_DBName(self):
3945
return self.get_query_params().get('DBName')
4046

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
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+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
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+
class DescribeAvailableResourceRequest(RpcRequest):
22+
23+
def __init__(self):
24+
RpcRequest.__init__(self, 'Rds', '2014-08-15', 'DescribeAvailableResource','rds')
25+
26+
def get_ResourceOwnerId(self):
27+
return self.get_query_params().get('ResourceOwnerId')
28+
29+
def set_ResourceOwnerId(self,ResourceOwnerId):
30+
self.add_query_param('ResourceOwnerId',ResourceOwnerId)
31+
32+
def get_ResourceOwnerAccount(self):
33+
return self.get_query_params().get('ResourceOwnerAccount')
34+
35+
def set_ResourceOwnerAccount(self,ResourceOwnerAccount):
36+
self.add_query_param('ResourceOwnerAccount',ResourceOwnerAccount)
37+
38+
def get_OwnerAccount(self):
39+
return self.get_query_params().get('OwnerAccount')
40+
41+
def set_OwnerAccount(self,OwnerAccount):
42+
self.add_query_param('OwnerAccount',OwnerAccount)
43+
44+
def get_EngineVersion(self):
45+
return self.get_query_params().get('EngineVersion')
46+
47+
def set_EngineVersion(self,EngineVersion):
48+
self.add_query_param('EngineVersion',EngineVersion)
49+
50+
def get_OwnerId(self):
51+
return self.get_query_params().get('OwnerId')
52+
53+
def set_OwnerId(self,OwnerId):
54+
self.add_query_param('OwnerId',OwnerId)
55+
56+
def get_Engine(self):
57+
return self.get_query_params().get('Engine')
58+
59+
def set_Engine(self,Engine):
60+
self.add_query_param('Engine',Engine)
61+
62+
def get_ZoneId(self):
63+
return self.get_query_params().get('ZoneId')
64+
65+
def set_ZoneId(self,ZoneId):
66+
self.add_query_param('ZoneId',ZoneId)
67+
68+
def get_DBInstanceId(self):
69+
return self.get_query_params().get('DBInstanceId')
70+
71+
def set_DBInstanceId(self,DBInstanceId):
72+
self.add_query_param('DBInstanceId',DBInstanceId)
73+
74+
def get_InstanceChargeType(self):
75+
return self.get_query_params().get('InstanceChargeType')
76+
77+
def set_InstanceChargeType(self,InstanceChargeType):
78+
self.add_query_param('InstanceChargeType',InstanceChargeType)
79+
80+
def get_OrderType(self):
81+
return self.get_query_params().get('OrderType')
82+
83+
def set_OrderType(self,OrderType):
84+
self.add_query_param('OrderType',OrderType)
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
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+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
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+
class DescribeBackupDatabaseRequest(RpcRequest):
22+
23+
def __init__(self):
24+
RpcRequest.__init__(self, 'Rds', '2014-08-15', 'DescribeBackupDatabase','rds')
25+
26+
def get_ResourceOwnerId(self):
27+
return self.get_query_params().get('ResourceOwnerId')
28+
29+
def set_ResourceOwnerId(self,ResourceOwnerId):
30+
self.add_query_param('ResourceOwnerId',ResourceOwnerId)
31+
32+
def get_ResourceOwnerAccount(self):
33+
return self.get_query_params().get('ResourceOwnerAccount')
34+
35+
def set_ResourceOwnerAccount(self,ResourceOwnerAccount):
36+
self.add_query_param('ResourceOwnerAccount',ResourceOwnerAccount)
37+
38+
def get_BackupId(self):
39+
return self.get_query_params().get('BackupId')
40+
41+
def set_BackupId(self,BackupId):
42+
self.add_query_param('BackupId',BackupId)
43+
44+
def get_DBInstanceId(self):
45+
return self.get_query_params().get('DBInstanceId')
46+
47+
def set_DBInstanceId(self,DBInstanceId):
48+
self.add_query_param('DBInstanceId',DBInstanceId)
49+
50+
def get_OwnerId(self):
51+
return self.get_query_params().get('OwnerId')
52+
53+
def set_OwnerId(self,OwnerId):
54+
self.add_query_param('OwnerId',OwnerId)

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

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,4 +51,10 @@ def get_OwnerId(self):
5151
return self.get_query_params().get('OwnerId')
5252

5353
def set_OwnerId(self,OwnerId):
54-
self.add_query_param('OwnerId',OwnerId)
54+
self.add_query_param('OwnerId',OwnerId)
55+
56+
def get_BackupPolicyMode(self):
57+
return self.get_query_params().get('BackupPolicyMode')
58+
59+
def set_BackupPolicyMode(self,BackupPolicyMode):
60+
self.add_query_param('BackupPolicyMode',BackupPolicyMode)

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,12 @@ def get_ResourceOwnerId(self):
3535
def set_ResourceOwnerId(self,ResourceOwnerId):
3636
self.add_query_param('ResourceOwnerId',ResourceOwnerId)
3737

38+
def get_Expired(self):
39+
return self.get_query_params().get('Expired')
40+
41+
def set_Expired(self,Expired):
42+
self.add_query_param('Expired',Expired)
43+
3844
def get_ResourceOwnerAccount(self):
3945
return self.get_query_params().get('ResourceOwnerAccount')
4046

0 commit comments

Comments
 (0)