Skip to content

Commit 2d379ae

Browse files
committed
EHPC SDK Auto Released By qianzheng.llc,Version:1.11.0
发布日志: 1, New APIs for visual service (VNC). 2, New APIs for software management. 3, New APIs for CPFS filesystem.
1 parent 26f97b6 commit 2d379ae

26 files changed

+773
-9
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+
2019-04-10 Version: 1.11.0
2+
1, New APIs for visual service (VNC).
3+
2, New APIs for software management.
4+
3, New APIs for CPFS filesystem.
5+
16
2018-12-13 Version: 1.10.0
27
1, Add SystemDiskSize in CreateCluster and AddNodes, add more parameters in RecoverCluster
38

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "1.10.0"
1+
__version__ = "1.11.0"

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

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,12 @@ def get_ImageOwnerAlias(self):
7171
def set_ImageOwnerAlias(self,ImageOwnerAlias):
7272
self.add_query_param('ImageOwnerAlias',ImageOwnerAlias)
7373

74+
def get_VSwitchId(self):
75+
return self.get_query_params().get('VSwitchId')
76+
77+
def set_VSwitchId(self,VSwitchId):
78+
self.add_query_param('VSwitchId',VSwitchId)
79+
7480
def get_PeriodUnit(self):
7581
return self.get_query_params().get('PeriodUnit')
7682

@@ -107,6 +113,12 @@ def get_InstanceType(self):
107113
def set_InstanceType(self,InstanceType):
108114
self.add_query_param('InstanceType',InstanceType)
109115

116+
def get_ZoneId(self):
117+
return self.get_query_params().get('ZoneId')
118+
119+
def set_ZoneId(self,ZoneId):
120+
self.add_query_param('ZoneId',ZoneId)
121+
110122
def get_ComputeSpotPriceLimit(self):
111123
return self.get_query_params().get('ComputeSpotPriceLimit')
112124

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
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 AddQueueRequest(RpcRequest):
22+
23+
def __init__(self):
24+
RpcRequest.__init__(self, 'EHPC', '2018-04-12', 'AddQueue','ehs')
25+
26+
def get_QueueName(self):
27+
return self.get_query_params().get('QueueName')
28+
29+
def set_QueueName(self,QueueName):
30+
self.add_query_param('QueueName',QueueName)
31+
32+
def get_ClusterId(self):
33+
return self.get_query_params().get('ClusterId')
34+
35+
def set_ClusterId(self,ClusterId):
36+
self.add_query_param('ClusterId',ClusterId)

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

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,32 @@ def get_ImageId(self):
3535
def set_ImageId(self,ImageId):
3636
self.add_query_param('ImageId',ImageId)
3737

38+
def get_AdditionalVolumess(self):
39+
return self.get_query_params().get('AdditionalVolumess')
40+
41+
def set_AdditionalVolumess(self,AdditionalVolumess):
42+
for i in range(len(AdditionalVolumess)):
43+
if AdditionalVolumess[i].get('VolumeType') is not None:
44+
self.add_query_param('AdditionalVolumes.' + str(i + 1) + '.VolumeType' , AdditionalVolumess[i].get('VolumeType'))
45+
if AdditionalVolumess[i].get('VolumeProtocol') is not None:
46+
self.add_query_param('AdditionalVolumes.' + str(i + 1) + '.VolumeProtocol' , AdditionalVolumess[i].get('VolumeProtocol'))
47+
if AdditionalVolumess[i].get('LocalDirectory') is not None:
48+
self.add_query_param('AdditionalVolumes.' + str(i + 1) + '.LocalDirectory' , AdditionalVolumess[i].get('LocalDirectory'))
49+
if AdditionalVolumess[i].get('RemoteDirectory') is not None:
50+
self.add_query_param('AdditionalVolumes.' + str(i + 1) + '.RemoteDirectory' , AdditionalVolumess[i].get('RemoteDirectory'))
51+
for j in range(len(AdditionalVolumess[i].get('Roless'))):
52+
if AdditionalVolumess[i].get('Roless')[j] is not None:
53+
self.add_query_param('AdditionalVolumes.' + str(i + 1) + '.Roles.'+str(j + 1), AdditionalVolumess[i].get('Roless')[j])
54+
if AdditionalVolumess[i].get('VolumeId') is not None:
55+
self.add_query_param('AdditionalVolumes.' + str(i + 1) + '.VolumeId' , AdditionalVolumess[i].get('VolumeId'))
56+
if AdditionalVolumess[i].get('VolumeMountpoint') is not None:
57+
self.add_query_param('AdditionalVolumes.' + str(i + 1) + '.VolumeMountpoint' , AdditionalVolumess[i].get('VolumeMountpoint'))
58+
if AdditionalVolumess[i].get('Location') is not None:
59+
self.add_query_param('AdditionalVolumes.' + str(i + 1) + '.Location' , AdditionalVolumess[i].get('Location'))
60+
if AdditionalVolumess[i].get('JobQueue') is not None:
61+
self.add_query_param('AdditionalVolumes.' + str(i + 1) + '.JobQueue' , AdditionalVolumess[i].get('JobQueue'))
62+
63+
3864
def get_EcsOrderManagerInstanceType(self):
3965
return self.get_query_params().get('EcsOrder.Manager.InstanceType')
4066

@@ -113,6 +139,12 @@ def get_EcsOrderManagerCount(self):
113139
def set_EcsOrderManagerCount(self,EcsOrderManagerCount):
114140
self.add_query_param('EcsOrder.Manager.Count',EcsOrderManagerCount)
115141

142+
def get_ResourceGroupId(self):
143+
return self.get_query_params().get('ResourceGroupId')
144+
145+
def set_ResourceGroupId(self,ResourceGroupId):
146+
self.add_query_param('ResourceGroupId',ResourceGroupId)
147+
116148
def get_Password(self):
117149
return self.get_query_params().get('Password')
118150

@@ -125,6 +157,12 @@ def get_EcsOrderLoginCount(self):
125157
def set_EcsOrderLoginCount(self,EcsOrderLoginCount):
126158
self.add_query_param('EcsOrder.Login.Count',EcsOrderLoginCount)
127159

160+
def get_RemoteVisEnable(self):
161+
return self.get_query_params().get('RemoteVisEnable')
162+
163+
def set_RemoteVisEnable(self,RemoteVisEnable):
164+
self.add_query_param('RemoteVisEnable',RemoteVisEnable)
165+
128166
def get_SystemDiskSize(self):
129167
return self.get_query_params().get('SystemDiskSize')
130168

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,12 @@ def get_VolumeType(self):
7777
def set_VolumeType(self,VolumeType):
7878
self.add_query_param('VolumeType',VolumeType)
7979

80+
def get_ResourceGroupId(self):
81+
return self.get_query_params().get('ResourceGroupId')
82+
83+
def set_ResourceGroupId(self,ResourceGroupId):
84+
self.add_query_param('ResourceGroupId',ResourceGroupId)
85+
8086
def get_Password(self):
8187
return self.get_query_params().get('Password')
8288

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
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 DeleteQueueRequest(RpcRequest):
22+
23+
def __init__(self):
24+
RpcRequest.__init__(self, 'EHPC', '2018-04-12', 'DeleteQueue','ehs')
25+
26+
def get_QueueName(self):
27+
return self.get_query_params().get('QueueName')
28+
29+
def set_QueueName(self,QueueName):
30+
self.add_query_param('QueueName',QueueName)
31+
32+
def get_ClusterId(self):
33+
return self.get_query_params().get('ClusterId')
34+
35+
def set_ClusterId(self,ClusterId):
36+
self.add_query_param('ClusterId',ClusterId)
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
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 DescribeJobRequest(RpcRequest):
22+
23+
def __init__(self):
24+
RpcRequest.__init__(self, 'EHPC', '2018-04-12', 'DescribeJob','ehs')
25+
26+
def get_JobId(self):
27+
return self.get_query_params().get('JobId')
28+
29+
def set_JobId(self,JobId):
30+
self.add_query_param('JobId',JobId)
31+
32+
def get_ClusterId(self):
33+
return self.get_query_params().get('ClusterId')
34+
35+
def set_ClusterId(self,ClusterId):
36+
self.add_query_param('ClusterId',ClusterId)
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 GetAccountingReportRequest(RpcRequest):
22+
23+
def __init__(self):
24+
RpcRequest.__init__(self, 'EHPC', '2018-04-12', 'GetAccountingReport','ehs')
25+
26+
def get_ReportType(self):
27+
return self.get_query_params().get('ReportType')
28+
29+
def set_ReportType(self,ReportType):
30+
self.add_query_param('ReportType',ReportType)
31+
32+
def get_EndTime(self):
33+
return self.get_query_params().get('EndTime')
34+
35+
def set_EndTime(self,EndTime):
36+
self.add_query_param('EndTime',EndTime)
37+
38+
def get_ClusterId(self):
39+
return self.get_query_params().get('ClusterId')
40+
41+
def set_ClusterId(self,ClusterId):
42+
self.add_query_param('ClusterId',ClusterId)
43+
44+
def get_StartTime(self):
45+
return self.get_query_params().get('StartTime')
46+
47+
def set_StartTime(self,StartTime):
48+
self.add_query_param('StartTime',StartTime)
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 GetClusterVolumesRequest(RpcRequest):
22+
23+
def __init__(self):
24+
RpcRequest.__init__(self, 'EHPC', '2018-04-12', 'GetClusterVolumes','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)