Skip to content

Commit 27df648

Browse files
committed
Supports the purchase of polardb storage packages.
1 parent d62ebe2 commit 27df648

File tree

5 files changed

+200
-1
lines changed

5 files changed

+200
-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+
2021-09-23 Version: 1.8.11
2+
- Supports the purchase of polardb storage packages.
3+
- Support temporary upgrades and allocations of instances.
4+
- Query the detailed information of the node returned by the GDN instance.
5+
16
2021-07-29 Version: 1.8.10
27
- Supported DescribeMaskingRules.
38
- ModifyMaskingRules.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '1.8.10'
1+
__version__ = '1.8.11'
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 aliyunsdkpolardb.endpoint import endpoint_data
22+
23+
class CreateStoragePlanRequest(RpcRequest):
24+
25+
def __init__(self):
26+
RpcRequest.__init__(self, 'polardb', '2017-08-01', 'CreateStoragePlan','polardb')
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_StorageType(self):
47+
return self.get_query_params().get('StorageType')
48+
49+
def set_StorageType(self,StorageType):
50+
self.add_query_param('StorageType',StorageType)
51+
52+
def get_Period(self):
53+
return self.get_query_params().get('Period')
54+
55+
def set_Period(self,Period):
56+
self.add_query_param('Period',Period)
57+
58+
def get_ResourceOwnerAccount(self):
59+
return self.get_query_params().get('ResourceOwnerAccount')
60+
61+
def set_ResourceOwnerAccount(self,ResourceOwnerAccount):
62+
self.add_query_param('ResourceOwnerAccount',ResourceOwnerAccount)
63+
64+
def get_OwnerAccount(self):
65+
return self.get_query_params().get('OwnerAccount')
66+
67+
def set_OwnerAccount(self,OwnerAccount):
68+
self.add_query_param('OwnerAccount',OwnerAccount)
69+
70+
def get_OwnerId(self):
71+
return self.get_query_params().get('OwnerId')
72+
73+
def set_OwnerId(self,OwnerId):
74+
self.add_query_param('OwnerId',OwnerId)
75+
76+
def get_UsedTime(self):
77+
return self.get_query_params().get('UsedTime')
78+
79+
def set_UsedTime(self,UsedTime):
80+
self.add_query_param('UsedTime',UsedTime)
81+
82+
def get_StorageClass(self):
83+
return self.get_query_params().get('StorageClass')
84+
85+
def set_StorageClass(self,StorageClass):
86+
self.add_query_param('StorageClass',StorageClass)

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

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

40+
def get_DBClusterDescription(self):
41+
return self.get_query_params().get('DBClusterDescription')
42+
43+
def set_DBClusterDescription(self,DBClusterDescription):
44+
self.add_query_param('DBClusterDescription',DBClusterDescription)
45+
4046
def get_PageNumber(self):
4147
return self.get_query_params().get('PageNumber')
4248

@@ -55,6 +61,12 @@ def get_ResourceOwnerAccount(self):
5561
def set_ResourceOwnerAccount(self,ResourceOwnerAccount):
5662
self.add_query_param('ResourceOwnerAccount',ResourceOwnerAccount)
5763

64+
def get_OrderId(self):
65+
return self.get_query_params().get('OrderId')
66+
67+
def set_OrderId(self,OrderId):
68+
self.add_query_param('OrderId',OrderId)
69+
5870
def get_DBClusterId(self):
5971
return self.get_query_params().get('DBClusterId')
6072

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+
#
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 aliyunsdkpolardb.endpoint import endpoint_data
22+
23+
class TempModifyDBNodeRequest(RpcRequest):
24+
25+
def __init__(self):
26+
RpcRequest.__init__(self, 'polardb', '2017-08-01', 'TempModifyDBNode','polardb')
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_RestoreTime(self):
47+
return self.get_query_params().get('RestoreTime')
48+
49+
def set_RestoreTime(self,RestoreTime):
50+
self.add_query_param('RestoreTime',RestoreTime)
51+
52+
def get_ResourceOwnerAccount(self):
53+
return self.get_query_params().get('ResourceOwnerAccount')
54+
55+
def set_ResourceOwnerAccount(self,ResourceOwnerAccount):
56+
self.add_query_param('ResourceOwnerAccount',ResourceOwnerAccount)
57+
58+
def get_DBClusterId(self):
59+
return self.get_query_params().get('DBClusterId')
60+
61+
def set_DBClusterId(self,DBClusterId):
62+
self.add_query_param('DBClusterId',DBClusterId)
63+
64+
def get_OwnerAccount(self):
65+
return self.get_query_params().get('OwnerAccount')
66+
67+
def set_OwnerAccount(self,OwnerAccount):
68+
self.add_query_param('OwnerAccount',OwnerAccount)
69+
70+
def get_OperationType(self):
71+
return self.get_query_params().get('OperationType')
72+
73+
def set_OperationType(self,OperationType):
74+
self.add_query_param('OperationType',OperationType)
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_ModifyType(self):
83+
return self.get_query_params().get('ModifyType')
84+
85+
def set_ModifyType(self,ModifyType):
86+
self.add_query_param('ModifyType',ModifyType)
87+
88+
def get_DBNodes(self):
89+
return self.get_query_params().get('DBNode')
90+
91+
def set_DBNodes(self, DBNodes):
92+
for depth1 in range(len(DBNodes)):
93+
if DBNodes[depth1].get('TargetClass') is not None:
94+
self.add_query_param('DBNode.' + str(depth1 + 1) + '.TargetClass', DBNodes[depth1].get('TargetClass'))
95+
if DBNodes[depth1].get('ZoneId') is not None:
96+
self.add_query_param('DBNode.' + str(depth1 + 1) + '.ZoneId', DBNodes[depth1].get('ZoneId'))

0 commit comments

Comments
 (0)