Skip to content

Commit feb9b47

Browse files
committed
EHPC SDK Auto Released By qianzheng.llc,Version:1.3.0
发布日志: 1, New APIs for batch executing commands in cluster: InvokeShellCommand, ListCommands, etc. 2, New APIs for HybridCluster (link E-HPC with cluster in local IDC): CreateHybridCluster, etc. 3, New APIs for Container applications: AddContainerApp, etc.
1 parent 2d22293 commit feb9b47

20 files changed

+763
-33
lines changed

aliyun-python-sdk-ehpc/ChangeLog.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
2018-07-13 Version: 1.3.0
2+
1, New APIs for batch executing commands in cluster: InvokeShellCommand, ListCommands, etc.
3+
2, New APIs for HybridCluster (link E-HPC with cluster in local IDC): CreateHybridCluster, etc.
4+
3, New APIs for Container applications: AddContainerApp, etc.
5+
16
2018-05-23 Version: 1.2.0
27
1, Update API version to 2018-04-12.
38
2, New APIs in this new version: StartCluster, StopCluster, RecoverCluster, StartNodes, StopNodes, ListCustomImages. Support stopping a post-paid cluster or partial nodes of a cluster to save cost.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "1.2.0"
1+
__version__ = "1.3.0"
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
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 AddContainerAppRequest(RpcRequest):
22+
23+
def __init__(self):
24+
RpcRequest.__init__(self, 'EHPC', '2018-04-12', 'AddContainerApp','ehs')
25+
26+
def get_ContainerType(self):
27+
return self.get_query_params().get('ContainerType')
28+
29+
def set_ContainerType(self,ContainerType):
30+
self.add_query_param('ContainerType',ContainerType)
31+
32+
def get_Name(self):
33+
return self.get_query_params().get('Name')
34+
35+
def set_Name(self,Name):
36+
self.add_query_param('Name',Name)
37+
38+
def get_Description(self):
39+
return self.get_query_params().get('Description')
40+
41+
def set_Description(self,Description):
42+
self.add_query_param('Description',Description)
43+
44+
def get_Repository(self):
45+
return self.get_query_params().get('Repository')
46+
47+
def set_Repository(self,Repository):
48+
self.add_query_param('Repository',Repository)
49+
50+
def get_ImageTag(self):
51+
return self.get_query_params().get('ImageTag')
52+
53+
def set_ImageTag(self,ImageTag):
54+
self.add_query_param('ImageTag',ImageTag)

aliyun-python-sdk-ehpc/aliyunsdkehpc/request/v20180412/AddNodesRequest.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,12 @@ def get_EcsChargeType(self):
8383
def set_EcsChargeType(self,EcsChargeType):
8484
self.add_query_param('EcsChargeType',EcsChargeType)
8585

86+
def get_InstanceType(self):
87+
return self.get_query_params().get('InstanceType')
88+
89+
def set_InstanceType(self,InstanceType):
90+
self.add_query_param('InstanceType',InstanceType)
91+
8692
def get_ComputeSpotPriceLimit(self):
8793
return self.get_query_params().get('ComputeSpotPriceLimit')
8894

aliyun-python-sdk-ehpc/aliyunsdkehpc/request/v20180412/AddUsersRequest.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,6 @@ class AddUsersRequest(RpcRequest):
2323
def __init__(self):
2424
RpcRequest.__init__(self, 'EHPC', '2018-04-12', 'AddUsers','ehs')
2525

26-
def get_ReleaseInstance(self):
27-
return self.get_query_params().get('ReleaseInstance')
28-
29-
def set_ReleaseInstance(self,ReleaseInstance):
30-
self.add_query_param('ReleaseInstance',ReleaseInstance)
31-
3226
def get_ClusterId(self):
3327
return self.get_query_params().get('ClusterId')
3428

Lines changed: 153 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,153 @@
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 CreateHybridClusterRequest(RpcRequest):
22+
23+
def __init__(self):
24+
RpcRequest.__init__(self, 'EHPC', '2018-04-12', 'CreateHybridCluster','ehs')
25+
26+
def get_VolumeProtocol(self):
27+
return self.get_query_params().get('VolumeProtocol')
28+
29+
def set_VolumeProtocol(self,VolumeProtocol):
30+
self.add_query_param('VolumeProtocol',VolumeProtocol)
31+
32+
def get_OsTag(self):
33+
return self.get_query_params().get('OsTag')
34+
35+
def set_OsTag(self,OsTag):
36+
self.add_query_param('OsTag',OsTag)
37+
38+
def get_RemoteDirectory(self):
39+
return self.get_query_params().get('RemoteDirectory')
40+
41+
def set_RemoteDirectory(self,RemoteDirectory):
42+
self.add_query_param('RemoteDirectory',RemoteDirectory)
43+
44+
def get_EhpcVersion(self):
45+
return self.get_query_params().get('EhpcVersion')
46+
47+
def set_EhpcVersion(self,EhpcVersion):
48+
self.add_query_param('EhpcVersion',EhpcVersion)
49+
50+
def get_SecurityGroupId(self):
51+
return self.get_query_params().get('SecurityGroupId')
52+
53+
def set_SecurityGroupId(self,SecurityGroupId):
54+
self.add_query_param('SecurityGroupId',SecurityGroupId)
55+
56+
def get_Description(self):
57+
return self.get_query_params().get('Description')
58+
59+
def set_Description(self,Description):
60+
self.add_query_param('Description',Description)
61+
62+
def get_KeyPairName(self):
63+
return self.get_query_params().get('KeyPairName')
64+
65+
def set_KeyPairName(self,KeyPairName):
66+
self.add_query_param('KeyPairName',KeyPairName)
67+
68+
def get_SecurityGroupName(self):
69+
return self.get_query_params().get('SecurityGroupName')
70+
71+
def set_SecurityGroupName(self,SecurityGroupName):
72+
self.add_query_param('SecurityGroupName',SecurityGroupName)
73+
74+
def get_EcsOrderComputeInstanceType(self):
75+
return self.get_query_params().get('EcsOrder.Compute.InstanceType')
76+
77+
def set_EcsOrderComputeInstanceType(self,EcsOrderComputeInstanceType):
78+
self.add_query_param('EcsOrder.Compute.InstanceType',EcsOrderComputeInstanceType)
79+
80+
def get_VSwitchId(self):
81+
return self.get_query_params().get('VSwitchId')
82+
83+
def set_VSwitchId(self,VSwitchId):
84+
self.add_query_param('VSwitchId',VSwitchId)
85+
86+
def get_VolumeType(self):
87+
return self.get_query_params().get('VolumeType')
88+
89+
def set_VolumeType(self,VolumeType):
90+
self.add_query_param('VolumeType',VolumeType)
91+
92+
def get_Password(self):
93+
return self.get_query_params().get('Password')
94+
95+
def set_Password(self,Password):
96+
self.add_query_param('Password',Password)
97+
98+
def get_Nodes(self):
99+
return self.get_query_params().get('Nodes')
100+
101+
def set_Nodes(self,Nodes):
102+
self.add_query_param('Nodes',Nodes)
103+
104+
def get_Applications(self):
105+
return self.get_query_params().get('Applications')
106+
107+
def set_Applications(self,Applications):
108+
for i in range(len(Applications)):
109+
if Applications[i].get('Tag') is not None:
110+
self.add_query_param('Application.' + str(i + 1) + '.Tag' , Applications[i].get('Tag'))
111+
112+
113+
def get_Domain(self):
114+
return self.get_query_params().get('Domain')
115+
116+
def set_Domain(self,Domain):
117+
self.add_query_param('Domain',Domain)
118+
119+
def get_VpcId(self):
120+
return self.get_query_params().get('VpcId')
121+
122+
def set_VpcId(self,VpcId):
123+
self.add_query_param('VpcId',VpcId)
124+
125+
def get_Name(self):
126+
return self.get_query_params().get('Name')
127+
128+
def set_Name(self,Name):
129+
self.add_query_param('Name',Name)
130+
131+
def get_VolumeId(self):
132+
return self.get_query_params().get('VolumeId')
133+
134+
def set_VolumeId(self,VolumeId):
135+
self.add_query_param('VolumeId',VolumeId)
136+
137+
def get_VolumeMountpoint(self):
138+
return self.get_query_params().get('VolumeMountpoint')
139+
140+
def set_VolumeMountpoint(self,VolumeMountpoint):
141+
self.add_query_param('VolumeMountpoint',VolumeMountpoint)
142+
143+
def get_ZoneId(self):
144+
return self.get_query_params().get('ZoneId')
145+
146+
def set_ZoneId(self,ZoneId):
147+
self.add_query_param('ZoneId',ZoneId)
148+
149+
def get_Location(self):
150+
return self.get_query_params().get('Location')
151+
152+
def set_Location(self,Location):
153+
self.add_query_param('Location',Location)

aliyun-python-sdk-ehpc/aliyunsdkehpc/request/v20180412/CreateJobTemplateRequest.py

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -29,18 +29,42 @@ def get_StderrRedirectPath(self):
2929
def set_StderrRedirectPath(self,StderrRedirectPath):
3030
self.add_query_param('StderrRedirectPath',StderrRedirectPath)
3131

32+
def get_ArrayRequest(self):
33+
return self.get_query_params().get('ArrayRequest')
34+
35+
def set_ArrayRequest(self,ArrayRequest):
36+
self.add_query_param('ArrayRequest',ArrayRequest)
37+
38+
def get_PackagePath(self):
39+
return self.get_query_params().get('PackagePath')
40+
41+
def set_PackagePath(self,PackagePath):
42+
self.add_query_param('PackagePath',PackagePath)
43+
3244
def get_Variables(self):
3345
return self.get_query_params().get('Variables')
3446

3547
def set_Variables(self,Variables):
3648
self.add_query_param('Variables',Variables)
3749

50+
def get_Name(self):
51+
return self.get_query_params().get('Name')
52+
53+
def set_Name(self,Name):
54+
self.add_query_param('Name',Name)
55+
3856
def get_RunasUser(self):
3957
return self.get_query_params().get('RunasUser')
4058

4159
def set_RunasUser(self,RunasUser):
4260
self.add_query_param('RunasUser',RunasUser)
4361

62+
def get_StdoutRedirectPath(self):
63+
return self.get_query_params().get('StdoutRedirectPath')
64+
65+
def set_StdoutRedirectPath(self,StdoutRedirectPath):
66+
self.add_query_param('StdoutRedirectPath',StdoutRedirectPath)
67+
4468
def get_ReRunable(self):
4569
return self.get_query_params().get('ReRunable')
4670

@@ -57,28 +81,4 @@ def get_CommandLine(self):
5781
return self.get_query_params().get('CommandLine')
5882

5983
def set_CommandLine(self,CommandLine):
60-
self.add_query_param('CommandLine',CommandLine)
61-
62-
def get_ArrayRequest(self):
63-
return self.get_query_params().get('ArrayRequest')
64-
65-
def set_ArrayRequest(self,ArrayRequest):
66-
self.add_query_param('ArrayRequest',ArrayRequest)
67-
68-
def get_PackagePath(self):
69-
return self.get_query_params().get('PackagePath')
70-
71-
def set_PackagePath(self,PackagePath):
72-
self.add_query_param('PackagePath',PackagePath)
73-
74-
def get_Name(self):
75-
return self.get_query_params().get('Name')
76-
77-
def set_Name(self,Name):
78-
self.add_query_param('Name',Name)
79-
80-
def get_StdoutRedirectPath(self):
81-
return self.get_query_params().get('StdoutRedirectPath')
82-
83-
def set_StdoutRedirectPath(self,StdoutRedirectPath):
84-
self.add_query_param('StdoutRedirectPath',StdoutRedirectPath)
84+
self.add_query_param('CommandLine',CommandLine)
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
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 DeleteContainerAppsRequest(RpcRequest):
22+
23+
def __init__(self):
24+
RpcRequest.__init__(self, 'EHPC', '2018-04-12', 'DeleteContainerApps','ehs')
25+
26+
def get_ContainerApps(self):
27+
return self.get_query_params().get('ContainerApps')
28+
29+
def set_ContainerApps(self,ContainerApps):
30+
for i in range(len(ContainerApps)):
31+
if ContainerApps[i].get('Id') is not None:
32+
self.add_query_param('ContainerApp.' + str(i + 1) + '.Id' , ContainerApps[i].get('Id'))
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
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 DescribeAutoScaleConfigRequest(RpcRequest):
22+
23+
def __init__(self):
24+
RpcRequest.__init__(self, 'EHPC', '2018-04-12', 'DescribeAutoScaleConfig','ehs')
25+
26+
def get_ClusterId(self):
27+
return self.get_query_params().get('ClusterId')
28+
29+
def set_ClusterId(self,ClusterId):
30+
self.add_query_param('ClusterId',ClusterId)

0 commit comments

Comments
 (0)