Skip to content

Commit 6ff51a8

Browse files
committed
由荣旸发起的TESLAMAXCOMPUTE SDK自动发布, BUILD_ID=221, 版本号:1.0.2
发布日志: 1, Add GetInstance API, support get instance.
1 parent 20ce31b commit 6ff51a8

File tree

3 files changed

+52
-1
lines changed

3 files changed

+52
-1
lines changed

aliyun-python-sdk-teslamaxcompute/ChangeLog.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2017-12-22 Version: 1.0.2
2+
1, Add GetInstance API, support get instance.
3+
14
2017-12-19 Version: 1.0.1
25
1, Add Status argument, support get cluster info by status.
36

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "1.0.1"
1+
__version__ = "1.0.2"
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
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+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
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+
class GetClusterInstanceRequest(RpcRequest):
22+
23+
def __init__(self):
24+
RpcRequest.__init__(self, 'TeslaMaxCompute', '2017-11-30', 'GetClusterInstance')
25+
26+
def get_Cluster(self):
27+
return self.get_query_params().get('Cluster')
28+
29+
def set_Cluster(self,Cluster):
30+
self.add_query_param('Cluster',Cluster)
31+
32+
def get_PageSize(self):
33+
return self.get_query_params().get('PageSize')
34+
35+
def set_PageSize(self,PageSize):
36+
self.add_query_param('PageSize',PageSize)
37+
38+
def get_PageNum(self):
39+
return self.get_query_params().get('PageNum')
40+
41+
def set_PageNum(self,PageNum):
42+
self.add_query_param('PageNum',PageNum)
43+
44+
def get_Status(self):
45+
return self.get_query_params().get('Status')
46+
47+
def set_Status(self,Status):
48+
self.add_query_param('Status',Status)

0 commit comments

Comments
 (0)