Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commiteeeb79f

Browse files
committed
POLARDB SDK Auto Released By zhigang.xzg,Version:1.3.0
发布日志:1, Add interface of tag.2, Add tag info in DescribeDBClusters and DescribeDBClusterAttribute.
1 parentebc3d02 commiteeeb79f

File tree

7 files changed

+245
-9
lines changed

7 files changed

+245
-9
lines changed

‎aliyun-python-sdk-polardb/ChangeLog.txt‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
2019-02-26 Version: 1.3.0
2+
1, Add interface of tag.
3+
2, Add tag info in DescribeDBClusters and DescribeDBClusterAttribute.
4+
15
2018-12-25 Version: 1.2.0
26
1, Add interface of endpoint.
37
2, Add interface of cluster parameter.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__="1.2.0"
1+
__version__="1.3.0"

‎aliyun-python-sdk-polardb/aliyunsdkpolardb/request/v20170801/DescribeDBClustersRequest.py‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,17 @@ def get_PageSize(self):
7777
defset_PageSize(self,PageSize):
7878
self.add_query_param('PageSize',PageSize)
7979

80+
defget_Tags(self):
81+
returnself.get_query_params().get('Tags')
82+
83+
defset_Tags(self,Tags):
84+
foriinrange(len(Tags)):
85+
ifTags[i].get('Value')isnotNone:
86+
self.add_query_param('Tag.'+str(i+1)+'.Value' ,Tags[i].get('Value'))
87+
ifTags[i].get('Key')isnotNone:
88+
self.add_query_param('Tag.'+str(i+1)+'.Key' ,Tags[i].get('Key'))
89+
90+
8091
defget_DBClusterIds(self):
8192
returnself.get_query_params().get('DBClusterIds')
8293

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
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+
fromaliyunsdkcore.requestimportRpcRequest
21+
classListTagResourcesRequest(RpcRequest):
22+
23+
def__init__(self):
24+
RpcRequest.__init__(self,'polardb','2017-08-01','ListTagResources','polardb')
25+
26+
defget_ResourceOwnerId(self):
27+
returnself.get_query_params().get('ResourceOwnerId')
28+
29+
defset_ResourceOwnerId(self,ResourceOwnerId):
30+
self.add_query_param('ResourceOwnerId',ResourceOwnerId)
31+
32+
defget_ResourceIds(self):
33+
returnself.get_query_params().get('ResourceIds')
34+
35+
defset_ResourceIds(self,ResourceIds):
36+
foriinrange(len(ResourceIds)):
37+
ifResourceIds[i]isnotNone:
38+
self.add_query_param('ResourceId.'+str(i+1) ,ResourceIds[i]);
39+
40+
defget_ResourceOwnerAccount(self):
41+
returnself.get_query_params().get('ResourceOwnerAccount')
42+
43+
defset_ResourceOwnerAccount(self,ResourceOwnerAccount):
44+
self.add_query_param('ResourceOwnerAccount',ResourceOwnerAccount)
45+
46+
defget_NextToken(self):
47+
returnself.get_query_params().get('NextToken')
48+
49+
defset_NextToken(self,NextToken):
50+
self.add_query_param('NextToken',NextToken)
51+
52+
defget_OwnerAccount(self):
53+
returnself.get_query_params().get('OwnerAccount')
54+
55+
defset_OwnerAccount(self,OwnerAccount):
56+
self.add_query_param('OwnerAccount',OwnerAccount)
57+
58+
defget_Tags(self):
59+
returnself.get_query_params().get('Tags')
60+
61+
defset_Tags(self,Tags):
62+
foriinrange(len(Tags)):
63+
ifTags[i].get('Value')isnotNone:
64+
self.add_query_param('Tag.'+str(i+1)+'.Value' ,Tags[i].get('Value'))
65+
ifTags[i].get('Key')isnotNone:
66+
self.add_query_param('Tag.'+str(i+1)+'.Key' ,Tags[i].get('Key'))
67+
68+
69+
defget_OwnerId(self):
70+
returnself.get_query_params().get('OwnerId')
71+
72+
defset_OwnerId(self,OwnerId):
73+
self.add_query_param('OwnerId',OwnerId)
74+
75+
defget_ResourceType(self):
76+
returnself.get_query_params().get('ResourceType')
77+
78+
defset_ResourceType(self,ResourceType):
79+
self.add_query_param('ResourceType',ResourceType)
Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
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+
fromaliyunsdkcore.requestimportRpcRequest
21+
classTagResourcesRequest(RpcRequest):
22+
23+
def__init__(self):
24+
RpcRequest.__init__(self,'polardb','2017-08-01','TagResources','polardb')
25+
26+
defget_ResourceOwnerId(self):
27+
returnself.get_query_params().get('ResourceOwnerId')
28+
29+
defset_ResourceOwnerId(self,ResourceOwnerId):
30+
self.add_query_param('ResourceOwnerId',ResourceOwnerId)
31+
32+
defget_ResourceIds(self):
33+
returnself.get_query_params().get('ResourceIds')
34+
35+
defset_ResourceIds(self,ResourceIds):
36+
foriinrange(len(ResourceIds)):
37+
ifResourceIds[i]isnotNone:
38+
self.add_query_param('ResourceId.'+str(i+1) ,ResourceIds[i]);
39+
40+
defget_ResourceOwnerAccount(self):
41+
returnself.get_query_params().get('ResourceOwnerAccount')
42+
43+
defset_ResourceOwnerAccount(self,ResourceOwnerAccount):
44+
self.add_query_param('ResourceOwnerAccount',ResourceOwnerAccount)
45+
46+
defget_OwnerAccount(self):
47+
returnself.get_query_params().get('OwnerAccount')
48+
49+
defset_OwnerAccount(self,OwnerAccount):
50+
self.add_query_param('OwnerAccount',OwnerAccount)
51+
52+
defget_Tags(self):
53+
returnself.get_query_params().get('Tags')
54+
55+
defset_Tags(self,Tags):
56+
foriinrange(len(Tags)):
57+
ifTags[i].get('Value')isnotNone:
58+
self.add_query_param('Tag.'+str(i+1)+'.Value' ,Tags[i].get('Value'))
59+
ifTags[i].get('Key')isnotNone:
60+
self.add_query_param('Tag.'+str(i+1)+'.Key' ,Tags[i].get('Key'))
61+
62+
63+
defget_OwnerId(self):
64+
returnself.get_query_params().get('OwnerId')
65+
66+
defset_OwnerId(self,OwnerId):
67+
self.add_query_param('OwnerId',OwnerId)
68+
69+
defget_ResourceType(self):
70+
returnself.get_query_params().get('ResourceType')
71+
72+
defset_ResourceType(self,ResourceType):
73+
self.add_query_param('ResourceType',ResourceType)
Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
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+
fromaliyunsdkcore.requestimportRpcRequest
21+
classUntagResourcesRequest(RpcRequest):
22+
23+
def__init__(self):
24+
RpcRequest.__init__(self,'polardb','2017-08-01','UntagResources','polardb')
25+
26+
defget_All(self):
27+
returnself.get_query_params().get('All')
28+
29+
defset_All(self,All):
30+
self.add_query_param('All',All)
31+
32+
defget_ResourceOwnerId(self):
33+
returnself.get_query_params().get('ResourceOwnerId')
34+
35+
defset_ResourceOwnerId(self,ResourceOwnerId):
36+
self.add_query_param('ResourceOwnerId',ResourceOwnerId)
37+
38+
defget_ResourceIds(self):
39+
returnself.get_query_params().get('ResourceIds')
40+
41+
defset_ResourceIds(self,ResourceIds):
42+
foriinrange(len(ResourceIds)):
43+
ifResourceIds[i]isnotNone:
44+
self.add_query_param('ResourceId.'+str(i+1) ,ResourceIds[i]);
45+
46+
defget_ResourceOwnerAccount(self):
47+
returnself.get_query_params().get('ResourceOwnerAccount')
48+
49+
defset_ResourceOwnerAccount(self,ResourceOwnerAccount):
50+
self.add_query_param('ResourceOwnerAccount',ResourceOwnerAccount)
51+
52+
defget_OwnerAccount(self):
53+
returnself.get_query_params().get('OwnerAccount')
54+
55+
defset_OwnerAccount(self,OwnerAccount):
56+
self.add_query_param('OwnerAccount',OwnerAccount)
57+
58+
defget_OwnerId(self):
59+
returnself.get_query_params().get('OwnerId')
60+
61+
defset_OwnerId(self,OwnerId):
62+
self.add_query_param('OwnerId',OwnerId)
63+
64+
defget_TagKeys(self):
65+
returnself.get_query_params().get('TagKeys')
66+
67+
defset_TagKeys(self,TagKeys):
68+
foriinrange(len(TagKeys)):
69+
ifTagKeys[i]isnotNone:
70+
self.add_query_param('TagKey.'+str(i+1) ,TagKeys[i]);
71+
72+
defget_ResourceType(self):
73+
returnself.get_query_params().get('ResourceType')
74+
75+
defset_ResourceType(self,ResourceType):
76+
self.add_query_param('ResourceType',ResourceType)

‎aliyun-python-sdk-polardb/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-
ifsys.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)

[8]ページ先頭

©2009-2025 Movatter.jp