Skip to content

Commit 429a55d

Browse files
committed
ACM POP SDK.
1 parent 3b4494a commit 429a55d

16 files changed

+556
-0
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
2020-03-18 Version: 1.0.0
2+
- ACM POP SDK.
3+

aliyun-python-sdk-acm/MANIFEST.in

Whitespace-only changes.

aliyun-python-sdk-acm/README.rst

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
=============================================================
2+
aliyun-python-sdk-acm
3+
=============================================================
4+
5+
.. This is the acm module of Aliyun Python SDK.
6+
7+
Aliyun Python SDK is the official software development kit. It makes things easy to integrate your Python application, library, or script with Aliyun services.
8+
9+
This module works on Python versions:
10+
11+
2.6.5 and greater
12+
13+
**Documentation:**
14+
15+
Please visit `http://develop.aliyun.com/sdk/python <http://develop.aliyun.com/sdk/python>`_
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
__version__ = '1.0.0'
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
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+
21+
class EndpointData():
22+
def __init__(self):
23+
self.endpoint_map = {}
24+
self.endpoint_regional = "regional"
25+
26+
def getEndpointMap(self):
27+
return self.endpoint_map
28+
29+
def getEndpointRegional(self):
30+
return self.endpoint_regional
31+
32+
33+
endpoint_data = EndpointData()

aliyun-python-sdk-acm/aliyunsdkacm/request/__init__.py

Whitespace-only changes.
Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
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 RoaRequest
21+
from aliyunsdkacm.endpoint import endpoint_data
22+
23+
class CreateConfigurationRequest(RoaRequest):
24+
25+
def __init__(self):
26+
RoaRequest.__init__(self, 'acm', '2020-02-06', 'CreateConfiguration','acms')
27+
self.set_uri_pattern('/diamond-ops/pop/configuration')
28+
self.set_method('POST')
29+
if hasattr(self, "endpoint_map"):
30+
setattr(self, "endpoint_map", endpoint_data.getEndpointMap())
31+
if hasattr(self, "endpoint_regional"):
32+
setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())
33+
34+
35+
def get_DataId(self):
36+
return self.get_body_params().get('DataId')
37+
38+
def set_DataId(self,DataId):
39+
self.add_body_params('DataId', DataId)
40+
41+
def get_AppName(self):
42+
return self.get_body_params().get('AppName')
43+
44+
def set_AppName(self,AppName):
45+
self.add_body_params('AppName', AppName)
46+
47+
def get_NamespaceId(self):
48+
return self.get_body_params().get('NamespaceId')
49+
50+
def set_NamespaceId(self,NamespaceId):
51+
self.add_body_params('NamespaceId', NamespaceId)
52+
53+
def get_Type(self):
54+
return self.get_body_params().get('Type')
55+
56+
def set_Type(self,Type):
57+
self.add_body_params('Type', Type)
58+
59+
def get_Content(self):
60+
return self.get_body_params().get('Content')
61+
62+
def set_Content(self,Content):
63+
self.add_body_params('Content', Content)
64+
65+
def get_Group(self):
66+
return self.get_body_params().get('Group')
67+
68+
def set_Group(self,Group):
69+
self.add_body_params('Group', Group)
70+
71+
def get_Desc(self):
72+
return self.get_body_params().get('Desc')
73+
74+
def set_Desc(self,Desc):
75+
self.add_body_params('Desc', Desc)
76+
77+
def get_Tags(self):
78+
return self.get_body_params().get('Tags')
79+
80+
def set_Tags(self,Tags):
81+
self.add_body_params('Tags', Tags)
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
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 RoaRequest
21+
from aliyunsdkacm.endpoint import endpoint_data
22+
23+
class CreateNamespaceRequest(RoaRequest):
24+
25+
def __init__(self):
26+
RoaRequest.__init__(self, 'acm', '2020-02-06', 'CreateNamespace','acms')
27+
self.set_uri_pattern('/diamond-ops/pop/namespace')
28+
self.set_method('POST')
29+
if hasattr(self, "endpoint_map"):
30+
setattr(self, "endpoint_map", endpoint_data.getEndpointMap())
31+
if hasattr(self, "endpoint_regional"):
32+
setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())
33+
34+
35+
def get_Name(self):
36+
return self.get_body_params().get('Name')
37+
38+
def set_Name(self,Name):
39+
self.add_body_params('Name', Name)
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
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 RoaRequest
21+
from aliyunsdkacm.endpoint import endpoint_data
22+
23+
class DeleteConfigurationRequest(RoaRequest):
24+
25+
def __init__(self):
26+
RoaRequest.__init__(self, 'acm', '2020-02-06', 'DeleteConfiguration','acms')
27+
self.set_uri_pattern('/diamond-ops/pop/configuration')
28+
self.set_method('DELETE')
29+
if hasattr(self, "endpoint_map"):
30+
setattr(self, "endpoint_map", endpoint_data.getEndpointMap())
31+
if hasattr(self, "endpoint_regional"):
32+
setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())
33+
34+
35+
def get_DataId(self):
36+
return self.get_query_params().get('DataId')
37+
38+
def set_DataId(self,DataId):
39+
self.add_query_param('DataId',DataId)
40+
41+
def get_NamespaceId(self):
42+
return self.get_query_params().get('NamespaceId')
43+
44+
def set_NamespaceId(self,NamespaceId):
45+
self.add_query_param('NamespaceId',NamespaceId)
46+
47+
def get_Group(self):
48+
return self.get_query_params().get('Group')
49+
50+
def set_Group(self,Group):
51+
self.add_query_param('Group',Group)
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
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 RoaRequest
21+
from aliyunsdkacm.endpoint import endpoint_data
22+
23+
class DeleteNamespaceRequest(RoaRequest):
24+
25+
def __init__(self):
26+
RoaRequest.__init__(self, 'acm', '2020-02-06', 'DeleteNamespace','acms')
27+
self.set_uri_pattern('/diamond-ops/pop/namespace')
28+
self.set_method('DELETE')
29+
if hasattr(self, "endpoint_map"):
30+
setattr(self, "endpoint_map", endpoint_data.getEndpointMap())
31+
if hasattr(self, "endpoint_regional"):
32+
setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())
33+
34+
35+
def get_NamespaceId(self):
36+
return self.get_query_params().get('NamespaceId')
37+
38+
def set_NamespaceId(self,NamespaceId):
39+
self.add_query_param('NamespaceId',NamespaceId)

0 commit comments

Comments
 (0)