Skip to content

Commit 6b1a863

Browse files
committed
RDS SDK Auto Released By junjun.zhang,Version:2.3.2
发布日志: 1, modify DescribeSlowLogs OpenApi.
1 parent 148d6bb commit 6b1a863

File tree

6 files changed

+162
-15
lines changed

6 files changed

+162
-15
lines changed

aliyun-python-sdk-rds/ChangeLog.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
2019-01-28 Version: 2.3.2
2+
1, modify DescribeSlowLogs OpenApi.
3+
4+
15
2019-01-04 Version: 2.3.1
26
1, modify DescribeSlowLogs, support query param SQLHASH, remove SQLID query param.
37
2, modify DescribeSlowLogRecords, response values add SQLHASH, remove SQLID.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "2.3.1"
1+
__version__ = "2.3.2"

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

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,6 @@ class DescribeSlowLogRecordsRequest(RpcRequest):
2323
def __init__(self):
2424
RpcRequest.__init__(self, 'Rds', '2014-08-15', 'DescribeSlowLogRecords','rds')
2525

26-
def get_SQLId(self):
27-
return self.get_query_params().get('SQLId')
28-
29-
def set_SQLId(self,SQLId):
30-
self.add_query_param('SQLId',SQLId)
31-
3226
def get_ResourceOwnerId(self):
3327
return self.get_query_params().get('ResourceOwnerId')
3428

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
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 MigrateToOtherRegionRequest(RpcRequest):
22+
23+
def __init__(self):
24+
RpcRequest.__init__(self, 'Rds', '2014-08-15', 'MigrateToOtherRegion','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_TargetZoneId(self):
33+
return self.get_query_params().get('TargetZoneId')
34+
35+
def set_TargetZoneId(self,TargetZoneId):
36+
self.add_query_param('TargetZoneId',TargetZoneId)
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_EffectiveTime(self):
45+
return self.get_query_params().get('EffectiveTime')
46+
47+
def set_EffectiveTime(self,EffectiveTime):
48+
self.add_query_param('EffectiveTime',EffectiveTime)
49+
50+
def get_OwnerAccount(self):
51+
return self.get_query_params().get('OwnerAccount')
52+
53+
def set_OwnerAccount(self,OwnerAccount):
54+
self.add_query_param('OwnerAccount',OwnerAccount)
55+
56+
def get_DBInstanceId(self):
57+
return self.get_query_params().get('DBInstanceId')
58+
59+
def set_DBInstanceId(self,DBInstanceId):
60+
self.add_query_param('DBInstanceId',DBInstanceId)
61+
62+
def get_TargetRegionId(self):
63+
return self.get_query_params().get('TargetRegionId')
64+
65+
def set_TargetRegionId(self,TargetRegionId):
66+
self.add_query_param('TargetRegionId',TargetRegionId)
67+
68+
def get_SwitchTime(self):
69+
return self.get_query_params().get('SwitchTime')
70+
71+
def set_SwitchTime(self,SwitchTime):
72+
self.add_query_param('SwitchTime',SwitchTime)
73+
74+
def get_OwnerId(self):
75+
return self.get_query_params().get('OwnerId')
76+
77+
def set_OwnerId(self,OwnerId):
78+
self.add_query_param('OwnerId',OwnerId)
Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
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 RestoreTableRequest(RpcRequest):
22+
23+
def __init__(self):
24+
RpcRequest.__init__(self, 'Rds', '2014-08-15', 'RestoreTable','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_TableMeta(self):
63+
return self.get_query_params().get('TableMeta')
64+
65+
def set_TableMeta(self,TableMeta):
66+
self.add_query_param('TableMeta',TableMeta)
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_OwnerId(self):
75+
return self.get_query_params().get('OwnerId')
76+
77+
def set_OwnerId(self,OwnerId):
78+
self.add_query_param('OwnerId',OwnerId)

aliyun-python-sdk-rds/setup.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,6 @@
4646
finally:
4747
desc_file.close()
4848

49-
requires = []
50-
51-
if sys.version_info < (3, 3):
52-
requires.append("aliyun-python-sdk-core>=2.0.2")
53-
else:
54-
requires.append("aliyun-python-sdk-core-v3>=2.3.5")
55-
5649
setup(
5750
name=NAME,
5851
version=VERSION,
@@ -66,7 +59,7 @@
6659
packages=find_packages(exclude=["tests*"]),
6760
include_package_data=True,
6861
platforms="any",
69-
install_requires=requires,
62+
install_requires=["aliyun-python-sdk-core>=2.11.5",],
7063
classifiers=(
7164
"Development Status :: 4 - Beta",
7265
"Intended Audience :: Developers",

0 commit comments

Comments
 (0)