Skip to content

Commit 6a7e29d

Browse files
committed
POLARDB SDK Auto Released By zhigang.xzg,Version:1.5.0
发布日志: 1, Add interface ModifyDBNodeClass. 2, Add interface ModifyAutoRenewAttribute and DescribeAutoRenewAttribute. 3, Param AutoRenew is supported in interface CreateDBCluster.
1 parent 8bb69bb commit 6a7e29d

File tree

6 files changed

+222
-1
lines changed

6 files changed

+222
-1
lines changed

aliyun-python-sdk-polardb/ChangeLog.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
2019-04-22 Version: 1.5.0
2+
1, Add interface ModifyDBNodeClass.
3+
2, Add interface ModifyAutoRenewAttribute and DescribeAutoRenewAttribute.
4+
3, Param AutoRenew is supported in interface CreateDBCluster.
5+
16
2019-04-22 Version: 1.4.0
27
1, Add CreateDBCluster interface;
38
2, Add CreateDBNodes interface;
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "1.4.0"
1+
__version__ = "1.5.0"

aliyun-python-sdk-polardb/aliyunsdkpolardb/request/v20170801/CreateDBClusterRequest.py

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

92+
def get_AutoRenew(self):
93+
return self.get_query_params().get('AutoRenew')
94+
95+
def set_AutoRenew(self,AutoRenew):
96+
self.add_query_param('AutoRenew',AutoRenew)
97+
9298
def get_Engine(self):
9399
return self.get_query_params().get('Engine')
94100

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
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 DescribeAutoRenewAttributeRequest(RpcRequest):
22+
23+
def __init__(self):
24+
RpcRequest.__init__(self, 'polardb', '2017-08-01', 'DescribeAutoRenewAttribute','polardb')
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_PageSize(self):
45+
return self.get_query_params().get('PageSize')
46+
47+
def set_PageSize(self,PageSize):
48+
self.add_query_param('PageSize',PageSize)
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_PageNumber(self):
57+
return self.get_query_params().get('PageNumber')
58+
59+
def set_PageNumber(self,PageNumber):
60+
self.add_query_param('PageNumber',PageNumber)
61+
62+
def get_DBClusterIds(self):
63+
return self.get_query_params().get('DBClusterIds')
64+
65+
def set_DBClusterIds(self,DBClusterIds):
66+
self.add_query_param('DBClusterIds',DBClusterIds)
Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
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 ModifyAutoRenewAttributeRequest(RpcRequest):
22+
23+
def __init__(self):
24+
RpcRequest.__init__(self, 'polardb', '2017-08-01', 'ModifyAutoRenewAttribute','polardb')
25+
26+
def get_Duration(self):
27+
return self.get_query_params().get('Duration')
28+
29+
def set_Duration(self,Duration):
30+
self.add_query_param('Duration',Duration)
31+
32+
def get_ResourceOwnerId(self):
33+
return self.get_query_params().get('ResourceOwnerId')
34+
35+
def set_ResourceOwnerId(self,ResourceOwnerId):
36+
self.add_query_param('ResourceOwnerId',ResourceOwnerId)
37+
38+
def get_PeriodUnit(self):
39+
return self.get_query_params().get('PeriodUnit')
40+
41+
def set_PeriodUnit(self,PeriodUnit):
42+
self.add_query_param('PeriodUnit',PeriodUnit)
43+
44+
def get_ResourceOwnerAccount(self):
45+
return self.get_query_params().get('ResourceOwnerAccount')
46+
47+
def set_ResourceOwnerAccount(self,ResourceOwnerAccount):
48+
self.add_query_param('ResourceOwnerAccount',ResourceOwnerAccount)
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_RenewalStatus(self):
57+
return self.get_query_params().get('RenewalStatus')
58+
59+
def set_RenewalStatus(self,RenewalStatus):
60+
self.add_query_param('RenewalStatus',RenewalStatus)
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_DBClusterIds(self):
69+
return self.get_query_params().get('DBClusterIds')
70+
71+
def set_DBClusterIds(self,DBClusterIds):
72+
self.add_query_param('DBClusterIds',DBClusterIds)
Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
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 ModifyDBNodeClassRequest(RpcRequest):
22+
23+
def __init__(self):
24+
RpcRequest.__init__(self, 'polardb', '2017-08-01', 'ModifyDBNodeClass','polardb')
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_ClientToken(self):
39+
return self.get_query_params().get('ClientToken')
40+
41+
def set_ClientToken(self,ClientToken):
42+
self.add_query_param('ClientToken',ClientToken)
43+
44+
def get_DBClusterId(self):
45+
return self.get_query_params().get('DBClusterId')
46+
47+
def set_DBClusterId(self,DBClusterId):
48+
self.add_query_param('DBClusterId',DBClusterId)
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_ModifyType(self):
57+
return self.get_query_params().get('ModifyType')
58+
59+
def set_ModifyType(self,ModifyType):
60+
self.add_query_param('ModifyType',ModifyType)
61+
62+
def get_DBNodeTargetClass(self):
63+
return self.get_query_params().get('DBNodeTargetClass')
64+
65+
def set_DBNodeTargetClass(self,DBNodeTargetClass):
66+
self.add_query_param('DBNodeTargetClass',DBNodeTargetClass)
67+
68+
def get_OwnerId(self):
69+
return self.get_query_params().get('OwnerId')
70+
71+
def set_OwnerId(self,OwnerId):
72+
self.add_query_param('OwnerId',OwnerId)

0 commit comments

Comments
 (0)