Skip to content

Commit 22a932c

Browse files
author
{马立杰}({060863})
committed
first commit aliyun open api sdk to github.
0 parents  commit 22a932c

File tree

672 files changed

+35962
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

672 files changed

+35962
-0
lines changed

.gitignore

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
.DS_Store
2+
.tmp
3+
.settings
4+
.pyc
5+
*.pyc
6+
.idea

License

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
Copyright 1999-2015 Alibaba Group Holding Ltd.
2+
3+
Licensed under the Apache License, Version 2.0 (the "License");
4+
you may not use this file except in compliance with the License.
5+
You may obtain a copy of the License at
6+
7+
http://www.apache.org/licenses/LICENSE-2.0
8+
9+
Unless required by applicable law or agreed to in writing, software
10+
distributed under the License is distributed on an "AS IS" BASIS,
11+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
See the License for the specific language governing permissions and
13+
limitations under the License.

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Python SDK for POP

aliyun-python-sdk-acs/MANIFEST.in

Whitespace-only changes.

aliyun-python-sdk-acs/README.rst

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
aliyun-python-sdk-acs
2+
This is the acs module of Aliyun Python SDK.
3+
4+
Aliyun Python SDK is the official software development kit. It makes things easy to integrate your Python application, library, or script with Aliyun services.
5+
6+
This module works on Python versions:
7+
8+
2.6.5 and greater
9+
Documentation:
10+
11+
Please visit http://develop.aliyun.com/sdk/python
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
__version__ = '0.0.1'

aliyun-python-sdk-acs/aliyunsdkacs/request/__init__.py

Whitespace-only changes.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
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 RoaRequest
21+
class DeleteApiRequest(RoaRequest):
22+
23+
def __init__(self):
24+
RoaRequest.__init__(self, 'Acs', '2015-01-01', 'DeleteApi')
25+
self.set_uri_pattern(self, '/[ProductName]/[VersionName]/[ApiName]')
26+
self.set_method(self, 'DELETE')
27+
28+
def get_Accept(self):
29+
return self.get_header().get('Accept')
30+
31+
def set_Accept(self,Accept):
32+
self.add_header('Accept',Accept)
33+
34+
def get_ProductName(self):
35+
return self.get_path_params().get('ProductName')
36+
37+
def set_ProductName(self,ProductName):
38+
self.add_path_param('ProductName',ProductName)
39+
40+
def get_VersionName(self):
41+
return self.get_path_params().get('VersionName')
42+
43+
def set_VersionName(self,VersionName):
44+
self.add_path_param('VersionName',VersionName)
45+
46+
def get_ApiName(self):
47+
return self.get_path_params().get('ApiName')
48+
49+
def set_ApiName(self,ApiName):
50+
self.add_path_param('ApiName',ApiName)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
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 RoaRequest
21+
class DeleteControlPolicyRequest(RoaRequest):
22+
23+
def __init__(self):
24+
RoaRequest.__init__(self, 'Acs', '2015-01-01', 'DeleteControlPolicy')
25+
self.set_uri_pattern(self, '/[ControlPolicyName]/?ControlPolicy')
26+
self.set_method(self, 'DELETE')
27+
28+
def get_Accept(self):
29+
return self.get_header().get('Accept')
30+
31+
def set_Accept(self,Accept):
32+
self.add_header('Accept',Accept)
33+
34+
def get_ControlPolicyName(self):
35+
return self.get_path_params().get('ControlPolicyName')
36+
37+
def set_ControlPolicyName(self,ControlPolicyName):
38+
self.add_path_param('ControlPolicyName',ControlPolicyName)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
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 RoaRequest
21+
class DeleteFlowControlRequest(RoaRequest):
22+
23+
def __init__(self):
24+
RoaRequest.__init__(self, 'Acs', '2015-01-01', 'DeleteFlowControl')
25+
self.set_uri_pattern(self, '/[ProductName]/[VersionName]/[ApiName]?FlowControl')
26+
self.set_method(self, 'DELETE')
27+
28+
def get_Accept(self):
29+
return self.get_header().get('Accept')
30+
31+
def set_Accept(self,Accept):
32+
self.add_header('Accept',Accept)
33+
34+
def get_ProductName(self):
35+
return self.get_path_params().get('ProductName')
36+
37+
def set_ProductName(self,ProductName):
38+
self.add_path_param('ProductName',ProductName)
39+
40+
def get_VersionName(self):
41+
return self.get_path_params().get('VersionName')
42+
43+
def set_VersionName(self,VersionName):
44+
self.add_path_param('VersionName',VersionName)
45+
46+
def get_ApiName(self):
47+
return self.get_path_params().get('ApiName')
48+
49+
def set_ApiName(self,ApiName):
50+
self.add_path_param('ApiName',ApiName)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
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 RoaRequest
21+
class DeletePolicyRequest(RoaRequest):
22+
23+
def __init__(self):
24+
RoaRequest.__init__(self, 'Acs', '2015-01-01', 'DeletePolicy')
25+
self.set_uri_pattern(self, '/[ControlPolicyName]/[UserId]/?Policy')
26+
self.set_method(self, 'DELETE')
27+
28+
def get_Accept(self):
29+
return self.get_header().get('Accept')
30+
31+
def set_Accept(self,Accept):
32+
self.add_header('Accept',Accept)
33+
34+
def get_ControlPolicyName(self):
35+
return self.get_path_params().get('ControlPolicyName')
36+
37+
def set_ControlPolicyName(self,ControlPolicyName):
38+
self.add_path_param('ControlPolicyName',ControlPolicyName)
39+
40+
def get_UserId(self):
41+
return self.get_path_params().get('UserId')
42+
43+
def set_UserId(self,UserId):
44+
self.add_path_param('UserId',UserId)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
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 RoaRequest
21+
class DeleteProductRequest(RoaRequest):
22+
23+
def __init__(self):
24+
RoaRequest.__init__(self, 'Acs', '2015-01-01', 'DeleteProduct')
25+
self.set_uri_pattern(self, '/[ProductName]')
26+
self.set_method(self, 'DELETE')
27+
28+
def get_Accept(self):
29+
return self.get_header().get('Accept')
30+
31+
def set_Accept(self,Accept):
32+
self.add_header('Accept',Accept)
33+
34+
def get_ProductName(self):
35+
return self.get_path_params().get('ProductName')
36+
37+
def set_ProductName(self,ProductName):
38+
self.add_path_param('ProductName',ProductName)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
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 RoaRequest
21+
class DeleteTairCacheRequest(RoaRequest):
22+
23+
def __init__(self):
24+
RoaRequest.__init__(self, 'Acs', '2015-01-01', 'DeleteTairCache')
25+
self.set_uri_pattern(self, '/TairCache')
26+
self.set_method(self, 'DELETE')
27+
28+
def get_Accept(self):
29+
return self.get_header().get('Accept')
30+
31+
def set_Accept(self,Accept):
32+
self.add_header('Accept',Accept)
33+
34+
def get_x-acs-cache-key(self):
35+
return self.get_header().get('x-acs-cache-key')
36+
37+
def set_x-acs-cache-key(self,x-acs-cache-key):
38+
self.add_header('x-acs-cache-key',x-acs-cache-key)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
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 RoaRequest
21+
class DeleteVersionRequest(RoaRequest):
22+
23+
def __init__(self):
24+
RoaRequest.__init__(self, 'Acs', '2015-01-01', 'DeleteVersion')
25+
self.set_uri_pattern(self, '/[ProductName]/[VersionName]')
26+
self.set_method(self, 'DELETE')
27+
28+
def get_Accept(self):
29+
return self.get_header().get('Accept')
30+
31+
def set_Accept(self,Accept):
32+
self.add_header('Accept',Accept)
33+
34+
def get_ProductName(self):
35+
return self.get_path_params().get('ProductName')
36+
37+
def set_ProductName(self,ProductName):
38+
self.add_path_param('ProductName',ProductName)
39+
40+
def get_VersionName(self):
41+
return self.get_path_params().get('VersionName')
42+
43+
def set_VersionName(self,VersionName):
44+
self.add_path_param('VersionName',VersionName)

0 commit comments

Comments
 (0)