Skip to content

Commit 21e616e

Browse files
committed
Generated 2019-05-22 for PTS.
1 parent 9b3d2eb commit 21e616e

File tree

6 files changed

+70
-9
lines changed

6 files changed

+70
-9
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2019-10-09 Version: 1.0.0
2+
- Generated 2019-05-22 for `PTS`.
3+
14
2019-06-06 Version: 1.0.0
25
test
36

aliyun-python-sdk-pts/README.rst

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
1+
=============================================================
12
aliyun-python-sdk-pts
2-
This is the pts module of Aliyun Python SDK.
3+
=============================================================
4+
5+
.. This is the pts module of Aliyun Python SDK.
36
47
Aliyun Python SDK is the official software development kit. It makes things easy to integrate your Python application, library, or script with Aliyun services.
58

69
This module works on Python versions:
710

811
2.6.5 and greater
9-
Documentation:
1012

11-
Please visit http://develop.aliyun.com/sdk/python
13+
**Documentation:**
14+
15+
Please visit `http://develop.aliyun.com/sdk/python <http://develop.aliyun.com/sdk/python>`_
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
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+
self.endpoint_regional = "central"
25+
26+
def getEndpointMap(self):
27+
return self.endpoint_map
28+
29+
def getEndpointRegional(self):
30+
return self.endpoint_regional
31+
32+
33+
endpoint_data = EndpointData()

aliyun-python-sdk-pts/aliyunsdkpts/request/v20190522/GetAliwareReportRequest.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
# "License"); you may not use this file except in compliance
77
# with the License. You may obtain a copy of the License at
88
#
9-
# http://www.apache.org/licenses/LICENSE-2.0
109
#
10+
# http://www.apache.org/licenses/LICENSE-2.0
1111
#
1212
#
1313
# Unless required by applicable law or agreed to in writing,
@@ -18,10 +18,17 @@
1818
# under the License.
1919

2020
from aliyunsdkcore.request import RpcRequest
21+
from aliyunsdkpts.endpoint import endpoint_data
22+
2123
class GetAliwareReportRequest(RpcRequest):
2224

2325
def __init__(self):
24-
RpcRequest.__init__(self, 'PTS', '2019-05-22', 'GetAliwareReport')
26+
RpcRequest.__init__(self, 'PTS', '2019-05-22', 'GetAliwareReport','1.0.0')
27+
if hasattr(self, "endpoint_map"):
28+
setattr(self, "endpoint_map", endpoint_data.getEndpointMap())
29+
if hasattr(self, "endpoint_regional"):
30+
setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())
31+
2532

2633
def get_ReportId(self):
2734
return self.get_query_params().get('ReportId')

aliyun-python-sdk-pts/aliyunsdkpts/request/v20190522/GetReportRequest.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
# "License"); you may not use this file except in compliance
77
# with the License. You may obtain a copy of the License at
88
#
9-
# http://www.apache.org/licenses/LICENSE-2.0
109
#
10+
# http://www.apache.org/licenses/LICENSE-2.0
1111
#
1212
#
1313
# Unless required by applicable law or agreed to in writing,
@@ -18,10 +18,17 @@
1818
# under the License.
1919

2020
from aliyunsdkcore.request import RpcRequest
21+
from aliyunsdkpts.endpoint import endpoint_data
22+
2123
class GetReportRequest(RpcRequest):
2224

2325
def __init__(self):
24-
RpcRequest.__init__(self, 'PTS', '2019-05-22', 'GetReport')
26+
RpcRequest.__init__(self, 'PTS', '2019-05-22', 'GetReport','1.0.0')
27+
if hasattr(self, "endpoint_map"):
28+
setattr(self, "endpoint_map", endpoint_data.getEndpointMap())
29+
if hasattr(self, "endpoint_regional"):
30+
setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())
31+
2532

2633
def get_ReportId(self):
2734
return self.get_query_params().get('ReportId')

aliyun-python-sdk-pts/aliyunsdkpts/request/v20190522/StartSceneRequest.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
# "License"); you may not use this file except in compliance
77
# with the License. You may obtain a copy of the License at
88
#
9-
# http://www.apache.org/licenses/LICENSE-2.0
109
#
10+
# http://www.apache.org/licenses/LICENSE-2.0
1111
#
1212
#
1313
# Unless required by applicable law or agreed to in writing,
@@ -18,10 +18,17 @@
1818
# under the License.
1919

2020
from aliyunsdkcore.request import RpcRequest
21+
from aliyunsdkpts.endpoint import endpoint_data
22+
2123
class StartSceneRequest(RpcRequest):
2224

2325
def __init__(self):
24-
RpcRequest.__init__(self, 'PTS', '2019-05-22', 'StartScene')
26+
RpcRequest.__init__(self, 'PTS', '2019-05-22', 'StartScene','1.0.0')
27+
if hasattr(self, "endpoint_map"):
28+
setattr(self, "endpoint_map", endpoint_data.getEndpointMap())
29+
if hasattr(self, "endpoint_regional"):
30+
setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())
31+
2532

2633
def get_TeamId(self):
2734
return self.get_query_params().get('TeamId')

0 commit comments

Comments
 (0)