Skip to content

Commit 76f8a2a

Browse files
committed
Init.
1 parent 69ad86e commit 76f8a2a

File tree

9 files changed

+196
-0
lines changed

9 files changed

+196
-0
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
2020-05-06 Version: 1.0.0
2+
- Init.
3+

aliyun-python-sdk-paistudio/MANIFEST.in

Whitespace-only changes.
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
=============================================================
2+
aliyun-python-sdk-paistudio
3+
=============================================================
4+
5+
.. This is the paistudio 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: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
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+
"cn-shenzhen": "pai.cn-shenzhen.aliyuncs.com",
25+
"cn-beijing": "pai.cn-beijing.aliyuncs.com",
26+
"ap-south-1": "pai.ap-south-1.aliyuncs.com",
27+
"me-east-1": "pai.me-east-1.aliyuncs.com",
28+
"cn-qingdao": "pai.cn-qingdao.aliyuncs.com",
29+
"cn-shanghai": "pai.cn-shanghai.aliyuncs.com",
30+
"cn-hongkong": "pai.cn-hongkong.aliyuncs.com",
31+
"ap-southeast-1": "pai.ap-southeast-1.aliyuncs.com",
32+
"ap-southeast-2": "pai.ap-southeast-2.aliyuncs.com",
33+
"ap-southeast-3": "pai.ap-southeast-3.aliyuncs.com",
34+
"eu-central-1": "pai.eu-central-1.aliyuncs.com",
35+
"ap-southeast-5": "pai.ap-southeast-5.aliyuncs.com",
36+
"cn-zhangjiakou": "pai.cn-zhangjiakou.aliyuncs.com",
37+
"us-west-1": "pai.us-west-1.aliyuncs.com",
38+
"cn-hangzhou": "pai-cn-hangzhou.data.aliyun.com",
39+
}
40+
self.endpoint_regional = "regional"
41+
42+
def getEndpointMap(self):
43+
return self.endpoint_map
44+
45+
def getEndpointRegional(self):
46+
return self.endpoint_regional
47+
48+
49+
endpoint_data = EndpointData()

aliyun-python-sdk-paistudio/aliyunsdkpaistudio/request/__init__.py

Whitespace-only changes.
Lines changed: 50 additions & 0 deletions
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+
#
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 RpcRequest
21+
from aliyunsdkpaistudio.endpoint import endpoint_data
22+
23+
class CheckServiceLinkedRoleForDeletingRequest(RpcRequest):
24+
25+
def __init__(self):
26+
RpcRequest.__init__(self, 'PaiStudio', '2020-04-28', 'CheckServiceLinkedRoleForDeleting','pai')
27+
self.set_method('GET')
28+
if hasattr(self, "endpoint_map"):
29+
setattr(self, "endpoint_map", endpoint_data.getEndpointMap())
30+
if hasattr(self, "endpoint_regional"):
31+
setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())
32+
33+
34+
def get_RoleArn(self):
35+
return self.get_query_params().get('RoleArn')
36+
37+
def set_RoleArn(self,RoleArn):
38+
self.add_query_param('RoleArn',RoleArn)
39+
40+
def get_DeletionTaskId(self):
41+
return self.get_query_params().get('DeletionTaskId')
42+
43+
def set_DeletionTaskId(self,DeletionTaskId):
44+
self.add_query_param('DeletionTaskId',DeletionTaskId)
45+
46+
def get_ServiceName(self):
47+
return self.get_query_params().get('ServiceName')
48+
49+
def set_ServiceName(self,ServiceName):
50+
self.add_query_param('ServiceName',ServiceName)

aliyun-python-sdk-paistudio/aliyunsdkpaistudio/request/v20200428/__init__.py

Whitespace-only changes.
Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
#!/usr/bin/python
2+
'''
3+
Licensed to the Apache Software Foundation (ASF) under one
4+
or more contributor license agreements. See the NOTICE file
5+
distributed with this work for additional information
6+
regarding copyright ownership. The ASF licenses this file
7+
to you under the Apache License, Version 2.0 (the
8+
"License"); you may not use this file except in compliance
9+
with the License. You may obtain a copy of the License at
10+
11+
http://www.apache.org/licenses/LICENSE-2.0
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+
from setuptools import setup, find_packages
22+
import os
23+
import sys
24+
25+
"""
26+
setup module for paistudio.
27+
28+
Created on 7/3/2015
29+
30+
@author: alex
31+
"""
32+
33+
PACKAGE = "aliyunsdkpaistudio"
34+
NAME = "aliyun-python-sdk-paistudio"
35+
DESCRIPTION = "The paistudio module of Aliyun Python sdk."
36+
AUTHOR = "Aliyun"
37+
AUTHOR_EMAIL = "aliyun-developers-efficiency@list.alibaba-inc.com"
38+
URL = "http://develop.aliyun.com/sdk/python"
39+
40+
TOPDIR = os.path.dirname(__file__) or "."
41+
VERSION = __import__(PACKAGE).__version__
42+
43+
desc_file = open("README.rst")
44+
try:
45+
LONG_DESCRIPTION = desc_file.read()
46+
finally:
47+
desc_file.close()
48+
49+
setup(
50+
name=NAME,
51+
version=VERSION,
52+
description=DESCRIPTION,
53+
long_description=LONG_DESCRIPTION,
54+
author=AUTHOR,
55+
author_email=AUTHOR_EMAIL,
56+
license="Apache",
57+
url=URL,
58+
keywords=["aliyun","sdk","paistudio"],
59+
packages=find_packages(exclude=["tests*"]),
60+
include_package_data=True,
61+
platforms="any",
62+
install_requires=["aliyun-python-sdk-core>=2.11.5",],
63+
classifiers=(
64+
"Development Status :: 4 - Beta",
65+
"Intended Audience :: Developers",
66+
"License :: OSI Approved :: Apache Software License",
67+
"Programming Language :: Python",
68+
"Programming Language :: Python :: 2.6",
69+
"Programming Language :: Python :: 2.7",
70+
"Programming Language :: Python :: 3",
71+
"Programming Language :: Python :: 3.3",
72+
"Programming Language :: Python :: 3.4",
73+
"Programming Language :: Python :: 3.5",
74+
"Programming Language :: Python :: 3.6",
75+
"Topic :: Software Development",
76+
)
77+
78+
)

0 commit comments

Comments
 (0)