Skip to content

Commit

Permalink
first commit aliyun open api sdk to github.
Browse files Browse the repository at this point in the history
  • Loading branch information
{马立杰}({060863}) committed Jul 23, 2015
0 parents commit 22a932c
Show file tree
Hide file tree
Showing 672 changed files with 35,962 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.DS_Store
.tmp
.settings
.pyc
*.pyc
.idea
13 changes: 13 additions & 0 deletions License
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Copyright 1999-2015 Alibaba Group Holding Ltd.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Python SDK for POP
Empty file.
11 changes: 11 additions & 0 deletions aliyun-python-sdk-acs/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
aliyun-python-sdk-acs
This is the acs module of Aliyun Python SDK.

Aliyun Python SDK is the official software development kit. It makes things easy to integrate your Python application, library, or script with Aliyun services.

This module works on Python versions:

2.6.5 and greater
Documentation:

Please visit http://develop.aliyun.com/sdk/python
1 change: 1 addition & 0 deletions aliyun-python-sdk-acs/aliyunsdkacs/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__version__ = '0.0.1'
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
#
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.

from aliyunsdkcore.request import RoaRequest
class DeleteApiRequest(RoaRequest):

def __init__(self):
RoaRequest.__init__(self, 'Acs', '2015-01-01', 'DeleteApi')
self.set_uri_pattern(self, '/[ProductName]/[VersionName]/[ApiName]')
self.set_method(self, 'DELETE')

def get_Accept(self):
return self.get_header().get('Accept')

def set_Accept(self,Accept):
self.add_header('Accept',Accept)

def get_ProductName(self):
return self.get_path_params().get('ProductName')

def set_ProductName(self,ProductName):
self.add_path_param('ProductName',ProductName)

def get_VersionName(self):
return self.get_path_params().get('VersionName')

def set_VersionName(self,VersionName):
self.add_path_param('VersionName',VersionName)

def get_ApiName(self):
return self.get_path_params().get('ApiName')

def set_ApiName(self,ApiName):
self.add_path_param('ApiName',ApiName)
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
#
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.

from aliyunsdkcore.request import RoaRequest
class DeleteControlPolicyRequest(RoaRequest):

def __init__(self):
RoaRequest.__init__(self, 'Acs', '2015-01-01', 'DeleteControlPolicy')
self.set_uri_pattern(self, '/[ControlPolicyName]/?ControlPolicy')
self.set_method(self, 'DELETE')

def get_Accept(self):
return self.get_header().get('Accept')

def set_Accept(self,Accept):
self.add_header('Accept',Accept)

def get_ControlPolicyName(self):
return self.get_path_params().get('ControlPolicyName')

def set_ControlPolicyName(self,ControlPolicyName):
self.add_path_param('ControlPolicyName',ControlPolicyName)
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
#
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.

from aliyunsdkcore.request import RoaRequest
class DeleteFlowControlRequest(RoaRequest):

def __init__(self):
RoaRequest.__init__(self, 'Acs', '2015-01-01', 'DeleteFlowControl')
self.set_uri_pattern(self, '/[ProductName]/[VersionName]/[ApiName]?FlowControl')
self.set_method(self, 'DELETE')

def get_Accept(self):
return self.get_header().get('Accept')

def set_Accept(self,Accept):
self.add_header('Accept',Accept)

def get_ProductName(self):
return self.get_path_params().get('ProductName')

def set_ProductName(self,ProductName):
self.add_path_param('ProductName',ProductName)

def get_VersionName(self):
return self.get_path_params().get('VersionName')

def set_VersionName(self,VersionName):
self.add_path_param('VersionName',VersionName)

def get_ApiName(self):
return self.get_path_params().get('ApiName')

def set_ApiName(self,ApiName):
self.add_path_param('ApiName',ApiName)
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
#
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.

from aliyunsdkcore.request import RoaRequest
class DeletePolicyRequest(RoaRequest):

def __init__(self):
RoaRequest.__init__(self, 'Acs', '2015-01-01', 'DeletePolicy')
self.set_uri_pattern(self, '/[ControlPolicyName]/[UserId]/?Policy')
self.set_method(self, 'DELETE')

def get_Accept(self):
return self.get_header().get('Accept')

def set_Accept(self,Accept):
self.add_header('Accept',Accept)

def get_ControlPolicyName(self):
return self.get_path_params().get('ControlPolicyName')

def set_ControlPolicyName(self,ControlPolicyName):
self.add_path_param('ControlPolicyName',ControlPolicyName)

def get_UserId(self):
return self.get_path_params().get('UserId')

def set_UserId(self,UserId):
self.add_path_param('UserId',UserId)
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
#
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.

from aliyunsdkcore.request import RoaRequest
class DeleteProductRequest(RoaRequest):

def __init__(self):
RoaRequest.__init__(self, 'Acs', '2015-01-01', 'DeleteProduct')
self.set_uri_pattern(self, '/[ProductName]')
self.set_method(self, 'DELETE')

def get_Accept(self):
return self.get_header().get('Accept')

def set_Accept(self,Accept):
self.add_header('Accept',Accept)

def get_ProductName(self):
return self.get_path_params().get('ProductName')

def set_ProductName(self,ProductName):
self.add_path_param('ProductName',ProductName)
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
#
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.

from aliyunsdkcore.request import RoaRequest
class DeleteTairCacheRequest(RoaRequest):

def __init__(self):
RoaRequest.__init__(self, 'Acs', '2015-01-01', 'DeleteTairCache')
self.set_uri_pattern(self, '/TairCache')
self.set_method(self, 'DELETE')

def get_Accept(self):
return self.get_header().get('Accept')

def set_Accept(self,Accept):
self.add_header('Accept',Accept)

def get_x-acs-cache-key(self):
return self.get_header().get('x-acs-cache-key')

def set_x-acs-cache-key(self,x-acs-cache-key):
self.add_header('x-acs-cache-key',x-acs-cache-key)
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
#
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.

from aliyunsdkcore.request import RoaRequest
class DeleteVersionRequest(RoaRequest):

def __init__(self):
RoaRequest.__init__(self, 'Acs', '2015-01-01', 'DeleteVersion')
self.set_uri_pattern(self, '/[ProductName]/[VersionName]')
self.set_method(self, 'DELETE')

def get_Accept(self):
return self.get_header().get('Accept')

def set_Accept(self,Accept):
self.add_header('Accept',Accept)

def get_ProductName(self):
return self.get_path_params().get('ProductName')

def set_ProductName(self,ProductName):
self.add_path_param('ProductName',ProductName)

def get_VersionName(self):
return self.get_path_params().get('VersionName')

def set_VersionName(self,VersionName):
self.add_path_param('VersionName',VersionName)
Loading

0 comments on commit 22a932c

Please sign in to comment.