Skip to content

Commit

Permalink
由荣旸发起的TESLADAM SDK自动发布, BUILD_ID=272, 版本号:1.0.0
Browse files Browse the repository at this point in the history
发布日志:
1, Tesla Dam API release.
2, Add ActionDiskCheck, ActionDiskMask, ActionDiskRma, HostGets.
  • Loading branch information
Qingtang-SDK committed Jan 23, 2018
1 parent 5df08d3 commit c0c58ea
Show file tree
Hide file tree
Showing 11 changed files with 293 additions and 0 deletions.
4 changes: 4 additions & 0 deletions aliyun-python-sdk-tesladam/ChangeLog.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
2018-01-23 Version: 1.0.0
1, Tesla Dam API release.
2, Add ActionDiskCheck, ActionDiskMask, ActionDiskRma, HostGets.

Empty file.
11 changes: 11 additions & 0 deletions aliyun-python-sdk-tesladam/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
aliyun-python-sdk-tesladam
This is the tesladam 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-tesladam/aliyunsdktesladam/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__version__ = "1.0.0"
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# 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 RpcRequest
class ActionDiskCheckRequest(RpcRequest):

def __init__(self):
RpcRequest.__init__(self, 'TeslaDam', '2018-01-18', 'ActionDiskCheck')

def get_DiskMount(self):
return self.get_query_params().get('DiskMount')

def set_DiskMount(self,DiskMount):
self.add_query_param('DiskMount',DiskMount)

def get_Ip(self):
return self.get_query_params().get('Ip')

def set_Ip(self,Ip):
self.add_query_param('Ip',Ip)
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# 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 RpcRequest
class ActionDiskMaskRequest(RpcRequest):

def __init__(self):
RpcRequest.__init__(self, 'TeslaDam', '2018-01-18', 'ActionDiskMask')

def get_Op(self):
return self.get_query_params().get('Op')

def set_Op(self,Op):
self.add_query_param('Op',Op)

def get_DiskMount(self):
return self.get_query_params().get('DiskMount')

def set_DiskMount(self,DiskMount):
self.add_query_param('DiskMount',DiskMount)

def get_Ip(self):
return self.get_query_params().get('Ip')

def set_Ip(self,Ip):
self.add_query_param('Ip',Ip)
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
# 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 RpcRequest
class ActionDiskRmaRequest(RpcRequest):

def __init__(self):
RpcRequest.__init__(self, 'TeslaDam', '2018-01-18', 'ActionDiskRma')

def get_DiskName(self):
return self.get_query_params().get('DiskName')

def set_DiskName(self,DiskName):
self.add_query_param('DiskName',DiskName)

def get_ExecutionId(self):
return self.get_query_params().get('ExecutionId')

def set_ExecutionId(self,ExecutionId):
self.add_query_param('ExecutionId',ExecutionId)

def get_DiskSlot(self):
return self.get_query_params().get('DiskSlot')

def set_DiskSlot(self,DiskSlot):
self.add_query_param('DiskSlot',DiskSlot)

def get_Hostname(self):
return self.get_query_params().get('Hostname')

def set_Hostname(self,Hostname):
self.add_query_param('Hostname',Hostname)

def get_DiskMount(self):
return self.get_query_params().get('DiskMount')

def set_DiskMount(self,DiskMount):
self.add_query_param('DiskMount',DiskMount)

def get_DiskReason(self):
return self.get_query_params().get('DiskReason')

def set_DiskReason(self,DiskReason):
self.add_query_param('DiskReason',DiskReason)

def get_DiskSn(self):
return self.get_query_params().get('DiskSn')

def set_DiskSn(self,DiskSn):
self.add_query_param('DiskSn',DiskSn)
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# 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 RpcRequest
class HostGetsRequest(RpcRequest):

def __init__(self):
RpcRequest.__init__(self, 'TeslaDam', '2018-01-18', 'HostGets')

def get_Query(self):
return self.get_query_params().get('Query')

def set_Query(self,Query):
self.add_query_param('Query',Query)

def get_EndTime(self):
return self.get_query_params().get('EndTime')

def set_EndTime(self,EndTime):
self.add_query_param('EndTime',EndTime)

def get_StartTime(self):
return self.get_query_params().get('StartTime')

def set_StartTime(self,StartTime):
self.add_query_param('StartTime',StartTime)

def get_QueryType(self):
return self.get_query_params().get('QueryType')

def set_QueryType(self,QueryType):
self.add_query_param('QueryType',QueryType)
Empty file.
85 changes: 85 additions & 0 deletions aliyun-python-sdk-tesladam/setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
#!/usr/bin/python
'''
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 setuptools import setup, find_packages
import os
import sys

"""
setup module for tesladam.
Created on 7/3/2015
@author: alex
"""

PACKAGE = "aliyunsdktesladam"
NAME = "aliyun-python-sdk-tesladam"
DESCRIPTION = "The tesladam module of Aliyun Python sdk."
AUTHOR = "Aliyun"
AUTHOR_EMAIL = "[email protected]"
URL = "http://develop.aliyun.com/sdk/python"

TOPDIR = os.path.dirname(__file__) or "."
VERSION = __import__(PACKAGE).__version__

desc_file = open("README.rst")
try:
LONG_DESCRIPTION = desc_file.read()
finally:
desc_file.close()

requires = []

if sys.version_info < (3, 3):
requires.append("aliyun-python-sdk-core>=2.0.2")
else:
requires.append("aliyun-python-sdk-core-v3>=2.3.5")

setup(
name=NAME,
version=VERSION,
description=DESCRIPTION,
long_description=LONG_DESCRIPTION,
author=AUTHOR,
author_email=AUTHOR_EMAIL,
license="Apache",
url=URL,
keywords=["aliyun","sdk","tesladam"],
packages=find_packages(exclude=["tests*"]),
include_package_data=True,
platforms="any",
install_requires=requires,
classifiers=(
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python",
"Programming Language :: Python :: 2.6",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.3",
"Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Topic :: Software Development",
)

)

0 comments on commit c0c58ea

Please sign in to comment.