forked from aliyun/aliyun-openapi-python-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
由荣旸发起的TESLADAM SDK自动发布, BUILD_ID=272, 版本号:1.0.0
发布日志: 1, Tesla Dam API release. 2, Add ActionDiskCheck, ActionDiskMask, ActionDiskRma, HostGets.
- Loading branch information
1 parent
5df08d3
commit c0c58ea
Showing
11 changed files
with
293 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
__version__ = "1.0.0" |
Empty file.
36 changes: 36 additions & 0 deletions
36
aliyun-python-sdk-tesladam/aliyunsdktesladam/request/v20180118/ActionDiskCheckRequest.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
42 changes: 42 additions & 0 deletions
42
aliyun-python-sdk-tesladam/aliyunsdktesladam/request/v20180118/ActionDiskMaskRequest.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
66 changes: 66 additions & 0 deletions
66
aliyun-python-sdk-tesladam/aliyunsdktesladam/request/v20180118/ActionDiskRmaRequest.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
48 changes: 48 additions & 0 deletions
48
aliyun-python-sdk-tesladam/aliyunsdktesladam/request/v20180118/HostGetsRequest.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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", | ||
) | ||
|
||
) |