Skip to content

Commit

Permalink
EHPC SDK Auto Released By qianzheng.llc,Version:1.9.0
Browse files Browse the repository at this point in the history
发布日志:
1, Better support for hybrid cluster.
  • Loading branch information
jxyowen committed Nov 14, 2018
1 parent c382bba commit 49fff1e
Show file tree
Hide file tree
Showing 7 changed files with 109 additions and 1 deletion.
3 changes: 3 additions & 0 deletions aliyun-python-sdk-ehpc/ChangeLog.txt
@@ -1,3 +1,6 @@
2018-11-14 Version: 1.9.0
1, Better support for hybrid cluster.

2018-09-27 Version: 1.8.0
1, Add new API ListQueues, modify API SetAutoScaleConfig to support queue related features.

Expand Down
2 changes: 1 addition & 1 deletion aliyun-python-sdk-ehpc/aliyunsdkehpc/__init__.py
@@ -1 +1 @@
__version__ = "1.8.0"
__version__ = "1.9.0"
Expand Up @@ -89,6 +89,12 @@ def get_EcsChargeType(self):
def set_EcsChargeType(self,EcsChargeType):
self.add_query_param('EcsChargeType',EcsChargeType)

def get_CreateMode(self):
return self.get_query_params().get('CreateMode')

def set_CreateMode(self,CreateMode):
self.add_query_param('CreateMode',CreateMode)

def get_InstanceType(self):
return self.get_query_params().get('InstanceType')

Expand Down
Expand Up @@ -65,6 +65,12 @@ def get_OnPremiseVolumeRemotePath(self):
def set_OnPremiseVolumeRemotePath(self,OnPremiseVolumeRemotePath):
self.add_query_param('OnPremiseVolumeRemotePath',OnPremiseVolumeRemotePath)

def get_JobQueue(self):
return self.get_query_params().get('JobQueue')

def set_JobQueue(self,JobQueue):
self.add_query_param('JobQueue',JobQueue)

def get_VolumeType(self):
return self.get_query_params().get('VolumeType')

Expand Down Expand Up @@ -119,6 +125,17 @@ def get_RemoteDirectory(self):
def set_RemoteDirectory(self,RemoteDirectory):
self.add_query_param('RemoteDirectory',RemoteDirectory)

def get_PostInstallScripts(self):
return self.get_query_params().get('PostInstallScripts')

def set_PostInstallScripts(self,PostInstallScripts):
for i in range(len(PostInstallScripts)):
if PostInstallScripts[i].get('Args') is not None:
self.add_query_param('PostInstallScript.' + str(i + 1) + '.Args' , PostInstallScripts[i].get('Args'))
if PostInstallScripts[i].get('Url') is not None:
self.add_query_param('PostInstallScript.' + str(i + 1) + '.Url' , PostInstallScripts[i].get('Url'))


def get_VSwitchId(self):
return self.get_query_params().get('VSwitchId')

Expand Down
@@ -0,0 +1,42 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
#
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.

from aliyunsdkcore.request import RpcRequest
class ListAvailableEcsTypesRequest(RpcRequest):

def __init__(self):
RpcRequest.__init__(self, 'EHPC', '2018-04-12', 'ListAvailableEcsTypes','ehs')

def get_SpotStrategy(self):
return self.get_query_params().get('SpotStrategy')

def set_SpotStrategy(self,SpotStrategy):
self.add_query_param('SpotStrategy',SpotStrategy)

def get_ZoneId(self):
return self.get_query_params().get('ZoneId')

def set_ZoneId(self,ZoneId):
self.add_query_param('ZoneId',ZoneId)

def get_InstanceChargeType(self):
return self.get_query_params().get('InstanceChargeType')

def set_InstanceChargeType(self,InstanceChargeType):
self.add_query_param('InstanceChargeType',InstanceChargeType)
@@ -0,0 +1,36 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
#
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.

from aliyunsdkcore.request import RpcRequest
class ListFileSystemWithMountTargetsRequest(RpcRequest):

def __init__(self):
RpcRequest.__init__(self, 'EHPC', '2018-04-12', 'ListFileSystemWithMountTargets','ehs')

def get_PageSize(self):
return self.get_query_params().get('PageSize')

def set_PageSize(self,PageSize):
self.add_query_param('PageSize',PageSize)

def get_PageNumber(self):
return self.get_query_params().get('PageNumber')

def set_PageNumber(self,PageNumber):
self.add_query_param('PageNumber',PageNumber)
Expand Up @@ -94,8 +94,12 @@ def set_Queuess(self,Queuess):
self.add_query_param('Queues.' + str(i + 1) + '.QueueName' , Queuess[i].get('QueueName'))
if Queuess[i].get('InstanceType') is not None:
self.add_query_param('Queues.' + str(i + 1) + '.InstanceType' , Queuess[i].get('InstanceType'))
if Queuess[i].get('EnableAutoGrow') is not None:
self.add_query_param('Queues.' + str(i + 1) + '.EnableAutoGrow' , Queuess[i].get('EnableAutoGrow'))
if Queuess[i].get('SpotPriceLimit') is not None:
self.add_query_param('Queues.' + str(i + 1) + '.SpotPriceLimit' , Queuess[i].get('SpotPriceLimit'))
if Queuess[i].get('EnableAutoShrink') is not None:
self.add_query_param('Queues.' + str(i + 1) + '.EnableAutoShrink' , Queuess[i].get('EnableAutoShrink'))


def get_ExtraNodesGrowRatio(self):
Expand Down

0 comments on commit 49fff1e

Please sign in to comment.