Skip to content

Commit 0a7e397

Browse files
committed
Parameter changes in SubmitServerlessJob.
1 parent 3703103 commit 0a7e397

File tree

6 files changed

+23
-5
lines changed

6 files changed

+23
-5
lines changed

aliyun-python-sdk-ehpc/ChangeLog.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2023-09-06 Version: 1.14.20
2+
- Parameter changes in SubmitServerlessJob.
3+
14
2023-07-25 Version: 1.14.19
25
- Parameter changes in SubmitServerlessJob.
36

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '1.14.19'
1+
__version__ = '1.14.20'

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,3 +51,8 @@ def get_NetworkInterfaceTrafficMode(self): # String
5151

5252
def set_NetworkInterfaceTrafficMode(self, NetworkInterfaceTrafficMode): # String
5353
self.add_query_param('NetworkInterfaceTrafficMode', NetworkInterfaceTrafficMode)
54+
def get_UseESS(self): # Boolean
55+
return self.get_query_params().get('UseESS')
56+
57+
def set_UseESS(self, UseESS): # Boolean
58+
self.add_query_param('UseESS', UseESS)

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,8 @@ def set_Queuess(self, Queues): # RepeatList
138138
self.add_query_param('Queues.' + str(depth1 + 1) + '.EnableAutoShrink', Queues[depth1].get('EnableAutoShrink'))
139139
if Queues[depth1].get('SpotStrategy') is not None:
140140
self.add_query_param('Queues.' + str(depth1 + 1) + '.SpotStrategy', Queues[depth1].get('SpotStrategy'))
141+
if Queues[depth1].get('AutoMinNodesPerCycle') is not None:
142+
self.add_query_param('Queues.' + str(depth1 + 1) + '.AutoMinNodesPerCycle', Queues[depth1].get('AutoMinNodesPerCycle'))
141143
if Queues[depth1].get('DataDisks') is not None:
142144
for depth2 in range(len(Queues[depth1].get('DataDisks'))):
143145
if Queues[depth1].get('DataDisks')[depth2].get('DataDiskDeleteWithInstance') is not None:

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

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,7 @@ def get_InstanceType(self): # Array
6161
return self.get_query_params().get('InstanceType')
6262

6363
def set_InstanceType(self, InstanceType): # Array
64-
for index1, value1 in enumerate(InstanceType):
65-
self.add_query_param('InstanceType.' + str(index1 + 1), value1)
64+
self.add_query_param("InstanceType", json.dumps(InstanceType))
6665
def get_JobName(self): # String
6766
return self.get_query_params().get('JobName')
6867

@@ -97,8 +96,12 @@ def get_VSwitchId(self): # Array
9796
return self.get_query_params().get('VSwitchId')
9897

9998
def set_VSwitchId(self, VSwitchId): # Array
100-
for index1, value1 in enumerate(VSwitchId):
101-
self.add_query_param('VSwitchId.' + str(index1 + 1), value1)
99+
self.add_query_param("VSwitchId", json.dumps(VSwitchId))
100+
def get_RetryStrategy(self): # Struct
101+
return self.get_query_params().get('RetryStrategy')
102+
103+
def set_RetryStrategy(self, RetryStrategy): # Struct
104+
self.add_query_param("RetryStrategy", json.dumps(RetryStrategy))
102105
def get_EphemeralStorage(self): # Integer
103106
return self.get_query_params().get('EphemeralStorage')
104107

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,11 @@ def get_ClusterId(self): # String
4646

4747
def set_ClusterId(self, ClusterId): # String
4848
self.add_query_param('ClusterId', ClusterId)
49+
def get_NetworkInterfaceTrafficMode(self): # String
50+
return self.get_query_params().get('NetworkInterfaceTrafficMode')
51+
52+
def set_NetworkInterfaceTrafficMode(self, NetworkInterfaceTrafficMode): # String
53+
self.add_query_param('NetworkInterfaceTrafficMode', NetworkInterfaceTrafficMode)
4954
def get_ResourceGroupId(self): # String
5055
return self.get_query_params().get('ResourceGroupId')
5156

0 commit comments

Comments
 (0)