Skip to content

Commit 2677c04

Browse files
committed
ModifyScalingGroup add ScalingPolicy params.
1 parent 9806526 commit 2677c04

File tree

7 files changed

+121
-9
lines changed

7 files changed

+121
-9
lines changed

aliyun-python-sdk-ess/ChangeLog.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2024-07-04 Version: 2.3.22
2+
- ModifyScalingGroup add ScalingPolicy params.
3+
14
2024-05-16 Version: 2.3.21
25
- ModifyScalingGroup add ScalingPolicy params.
36

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

aliyun-python-sdk-ess/aliyunsdkess/request/v20140828/CreateScalingConfigurationRequest.py

Lines changed: 41 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -180,19 +180,56 @@ def get_InstancePatternInfos(self): # RepeatList
180180

181181
def set_InstancePatternInfos(self, InstancePatternInfo): # RepeatList
182182
for depth1 in range(len(InstancePatternInfo)):
183-
if InstancePatternInfo[depth1].get('Cores') is not None:
184-
self.add_query_param('InstancePatternInfo.' + str(depth1 + 1) + '.Cores', InstancePatternInfo[depth1].get('Cores'))
185-
if InstancePatternInfo[depth1].get('InstanceFamilyLevel') is not None:
186-
self.add_query_param('InstancePatternInfo.' + str(depth1 + 1) + '.InstanceFamilyLevel', InstancePatternInfo[depth1].get('InstanceFamilyLevel'))
183+
if InstancePatternInfo[depth1].get('InstanceCategories') is not None:
184+
for depth2 in range(len(InstancePatternInfo[depth1].get('InstanceCategories'))):
185+
self.add_query_param('InstancePatternInfo.' + str(depth1 + 1) + '.InstanceCategories.' + str(depth2 + 1), InstancePatternInfo[depth1].get('InstanceCategories')[depth2])
187186
if InstancePatternInfo[depth1].get('Memory') is not None:
188187
self.add_query_param('InstancePatternInfo.' + str(depth1 + 1) + '.Memory', InstancePatternInfo[depth1].get('Memory'))
188+
if InstancePatternInfo[depth1].get('MaximumCpuCoreCount') is not None:
189+
self.add_query_param('InstancePatternInfo.' + str(depth1 + 1) + '.MaximumCpuCoreCount', InstancePatternInfo[depth1].get('MaximumCpuCoreCount'))
189190
if InstancePatternInfo[depth1].get('MaxPrice') is not None:
190191
self.add_query_param('InstancePatternInfo.' + str(depth1 + 1) + '.MaxPrice', InstancePatternInfo[depth1].get('MaxPrice'))
192+
if InstancePatternInfo[depth1].get('MinimumGpuAmount') is not None:
193+
self.add_query_param('InstancePatternInfo.' + str(depth1 + 1) + '.MinimumGpuAmount', InstancePatternInfo[depth1].get('MinimumGpuAmount'))
194+
if InstancePatternInfo[depth1].get('MaximumGpuAmount') is not None:
195+
self.add_query_param('InstancePatternInfo.' + str(depth1 + 1) + '.MaximumGpuAmount', InstancePatternInfo[depth1].get('MaximumGpuAmount'))
196+
if InstancePatternInfo[depth1].get('MaximumMemorySize') is not None:
197+
self.add_query_param('InstancePatternInfo.' + str(depth1 + 1) + '.MaximumMemorySize', InstancePatternInfo[depth1].get('MaximumMemorySize'))
198+
if InstancePatternInfo[depth1].get('MinimumInitialCredit') is not None:
199+
self.add_query_param('InstancePatternInfo.' + str(depth1 + 1) + '.MinimumInitialCredit', InstancePatternInfo[depth1].get('MinimumInitialCredit'))
191200
if InstancePatternInfo[depth1].get('ExcludedInstanceType') is not None:
192201
for depth2 in range(len(InstancePatternInfo[depth1].get('ExcludedInstanceType'))):
193202
self.add_query_param('InstancePatternInfo.' + str(depth1 + 1) + '.ExcludedInstanceType.' + str(depth2 + 1), InstancePatternInfo[depth1].get('ExcludedInstanceType')[depth2])
203+
if InstancePatternInfo[depth1].get('MinimumEniIpv6AddressQuantity') is not None:
204+
self.add_query_param('InstancePatternInfo.' + str(depth1 + 1) + '.MinimumEniIpv6AddressQuantity', InstancePatternInfo[depth1].get('MinimumEniIpv6AddressQuantity'))
205+
if InstancePatternInfo[depth1].get('MinimumEniPrivateIpAddressQuantity') is not None:
206+
self.add_query_param('InstancePatternInfo.' + str(depth1 + 1) + '.MinimumEniPrivateIpAddressQuantity', InstancePatternInfo[depth1].get('MinimumEniPrivateIpAddressQuantity'))
194207
if InstancePatternInfo[depth1].get('BurstablePerformance') is not None:
195208
self.add_query_param('InstancePatternInfo.' + str(depth1 + 1) + '.BurstablePerformance', InstancePatternInfo[depth1].get('BurstablePerformance'))
209+
if InstancePatternInfo[depth1].get('PhysicalProcessorModels') is not None:
210+
for depth2 in range(len(InstancePatternInfo[depth1].get('PhysicalProcessorModels'))):
211+
self.add_query_param('InstancePatternInfo.' + str(depth1 + 1) + '.PhysicalProcessorModels.' + str(depth2 + 1), InstancePatternInfo[depth1].get('PhysicalProcessorModels')[depth2])
212+
if InstancePatternInfo[depth1].get('MinimumCpuCoreCount') is not None:
213+
self.add_query_param('InstancePatternInfo.' + str(depth1 + 1) + '.MinimumCpuCoreCount', InstancePatternInfo[depth1].get('MinimumCpuCoreCount'))
214+
if InstancePatternInfo[depth1].get('GpuSpecs') is not None:
215+
for depth2 in range(len(InstancePatternInfo[depth1].get('GpuSpecs'))):
216+
self.add_query_param('InstancePatternInfo.' + str(depth1 + 1) + '.GpuSpecs.' + str(depth2 + 1), InstancePatternInfo[depth1].get('GpuSpecs')[depth2])
217+
if InstancePatternInfo[depth1].get('MinimumEniQuantity') is not None:
218+
self.add_query_param('InstancePatternInfo.' + str(depth1 + 1) + '.MinimumEniQuantity', InstancePatternInfo[depth1].get('MinimumEniQuantity'))
219+
if InstancePatternInfo[depth1].get('MinimumMemorySize') is not None:
220+
self.add_query_param('InstancePatternInfo.' + str(depth1 + 1) + '.MinimumMemorySize', InstancePatternInfo[depth1].get('MinimumMemorySize'))
221+
if InstancePatternInfo[depth1].get('Cores') is not None:
222+
self.add_query_param('InstancePatternInfo.' + str(depth1 + 1) + '.Cores', InstancePatternInfo[depth1].get('Cores'))
223+
if InstancePatternInfo[depth1].get('InstanceFamilyLevel') is not None:
224+
self.add_query_param('InstancePatternInfo.' + str(depth1 + 1) + '.InstanceFamilyLevel', InstancePatternInfo[depth1].get('InstanceFamilyLevel'))
225+
if InstancePatternInfo[depth1].get('InstanceTypeFamilies') is not None:
226+
for depth2 in range(len(InstancePatternInfo[depth1].get('InstanceTypeFamilies'))):
227+
self.add_query_param('InstancePatternInfo.' + str(depth1 + 1) + '.InstanceTypeFamilies.' + str(depth2 + 1), InstancePatternInfo[depth1].get('InstanceTypeFamilies')[depth2])
228+
if InstancePatternInfo[depth1].get('MinimumBaselineCredit') is not None:
229+
self.add_query_param('InstancePatternInfo.' + str(depth1 + 1) + '.MinimumBaselineCredit', InstancePatternInfo[depth1].get('MinimumBaselineCredit'))
230+
if InstancePatternInfo[depth1].get('CpuArchitectures') is not None:
231+
for depth2 in range(len(InstancePatternInfo[depth1].get('CpuArchitectures'))):
232+
self.add_query_param('InstancePatternInfo.' + str(depth1 + 1) + '.CpuArchitectures.' + str(depth2 + 1), InstancePatternInfo[depth1].get('CpuArchitectures')[depth2])
196233
if InstancePatternInfo[depth1].get('Architecture') is not None:
197234
for depth2 in range(len(InstancePatternInfo[depth1].get('Architecture'))):
198235
self.add_query_param('InstancePatternInfo.' + str(depth1 + 1) + '.Architecture.' + str(depth2 + 1), InstancePatternInfo[depth1].get('Architecture')[depth2])

aliyun-python-sdk-ess/aliyunsdkess/request/v20140828/DescribeScheduledTasksRequest.py

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,11 @@ def get_ScalingGroupId(self): # String
4747

4848
def set_ScalingGroupId(self, ScalingGroupId): # String
4949
self.add_query_param('ScalingGroupId', ScalingGroupId)
50+
def get_TaskName(self): # String
51+
return self.get_query_params().get('TaskName')
52+
53+
def set_TaskName(self, TaskName): # String
54+
self.add_query_param('TaskName', TaskName)
5055
def get_PageNumber(self): # Integer
5156
return self.get_query_params().get('PageNumber')
5257

@@ -72,15 +77,30 @@ def get_OwnerId(self): # Long
7277

7378
def set_OwnerId(self, OwnerId): # Long
7479
self.add_query_param('OwnerId', OwnerId)
80+
def get_RecurrenceValue(self): # String
81+
return self.get_query_params().get('RecurrenceValue')
82+
83+
def set_RecurrenceValue(self, RecurrenceValue): # String
84+
self.add_query_param('RecurrenceValue', RecurrenceValue)
7585
def get_ScheduledTaskNames(self): # RepeatList
7686
return self.get_query_params().get('ScheduledTaskName')
7787

7888
def set_ScheduledTaskNames(self, ScheduledTaskName): # RepeatList
7989
for depth1 in range(len(ScheduledTaskName)):
8090
self.add_query_param('ScheduledTaskName.' + str(depth1 + 1), ScheduledTaskName[depth1])
91+
def get_TaskEnabled(self): # Boolean
92+
return self.get_query_params().get('TaskEnabled')
93+
94+
def set_TaskEnabled(self, TaskEnabled): # Boolean
95+
self.add_query_param('TaskEnabled', TaskEnabled)
8196
def get_ScheduledTaskIds(self): # RepeatList
8297
return self.get_query_params().get('ScheduledTaskId')
8398

8499
def set_ScheduledTaskIds(self, ScheduledTaskId): # RepeatList
85100
for depth1 in range(len(ScheduledTaskId)):
86101
self.add_query_param('ScheduledTaskId.' + str(depth1 + 1), ScheduledTaskId[depth1])
102+
def get_RecurrenceType(self): # String
103+
return self.get_query_params().get('RecurrenceType')
104+
105+
def set_RecurrenceType(self, RecurrenceType): # String
106+
self.add_query_param('RecurrenceType', RecurrenceType)

aliyun-python-sdk-ess/aliyunsdkess/request/v20140828/DetachInstancesRequest.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,11 @@ def get_DecreaseDesiredCapacity(self): # Boolean
5151

5252
def set_DecreaseDesiredCapacity(self, DecreaseDesiredCapacity): # Boolean
5353
self.add_query_param('DecreaseDesiredCapacity', DecreaseDesiredCapacity)
54+
def get_IgnoreInvalidInstance(self): # Boolean
55+
return self.get_query_params().get('IgnoreInvalidInstance')
56+
57+
def set_IgnoreInvalidInstance(self, IgnoreInvalidInstance): # Boolean
58+
self.add_query_param('IgnoreInvalidInstance', IgnoreInvalidInstance)
5459
def get_ResourceOwnerAccount(self): # String
5560
return self.get_query_params().get('ResourceOwnerAccount')
5661

aliyun-python-sdk-ess/aliyunsdkess/request/v20140828/ModifyScalingConfigurationRequest.py

Lines changed: 46 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,11 @@ def get_HostName(self): # String
7070

7171
def set_HostName(self, HostName): # String
7272
self.add_query_param('HostName', HostName)
73+
def get_Password(self): # String
74+
return self.get_query_params().get('Password')
75+
76+
def set_Password(self, Password): # String
77+
self.add_query_param('Password', Password)
7378
def get_InstanceDescription(self): # String
7479
return self.get_query_params().get('InstanceDescription')
7580

@@ -170,19 +175,56 @@ def get_InstancePatternInfos(self): # RepeatList
170175

171176
def set_InstancePatternInfos(self, InstancePatternInfo): # RepeatList
172177
for depth1 in range(len(InstancePatternInfo)):
173-
if InstancePatternInfo[depth1].get('Cores') is not None:
174-
self.add_query_param('InstancePatternInfo.' + str(depth1 + 1) + '.Cores', InstancePatternInfo[depth1].get('Cores'))
175-
if InstancePatternInfo[depth1].get('InstanceFamilyLevel') is not None:
176-
self.add_query_param('InstancePatternInfo.' + str(depth1 + 1) + '.InstanceFamilyLevel', InstancePatternInfo[depth1].get('InstanceFamilyLevel'))
178+
if InstancePatternInfo[depth1].get('InstanceCategories') is not None:
179+
for depth2 in range(len(InstancePatternInfo[depth1].get('InstanceCategories'))):
180+
self.add_query_param('InstancePatternInfo.' + str(depth1 + 1) + '.InstanceCategories.' + str(depth2 + 1), InstancePatternInfo[depth1].get('InstanceCategories')[depth2])
177181
if InstancePatternInfo[depth1].get('Memory') is not None:
178182
self.add_query_param('InstancePatternInfo.' + str(depth1 + 1) + '.Memory', InstancePatternInfo[depth1].get('Memory'))
183+
if InstancePatternInfo[depth1].get('MaximumCpuCoreCount') is not None:
184+
self.add_query_param('InstancePatternInfo.' + str(depth1 + 1) + '.MaximumCpuCoreCount', InstancePatternInfo[depth1].get('MaximumCpuCoreCount'))
179185
if InstancePatternInfo[depth1].get('MaxPrice') is not None:
180186
self.add_query_param('InstancePatternInfo.' + str(depth1 + 1) + '.MaxPrice', InstancePatternInfo[depth1].get('MaxPrice'))
187+
if InstancePatternInfo[depth1].get('MinimumGpuAmount') is not None:
188+
self.add_query_param('InstancePatternInfo.' + str(depth1 + 1) + '.MinimumGpuAmount', InstancePatternInfo[depth1].get('MinimumGpuAmount'))
189+
if InstancePatternInfo[depth1].get('MaximumGpuAmount') is not None:
190+
self.add_query_param('InstancePatternInfo.' + str(depth1 + 1) + '.MaximumGpuAmount', InstancePatternInfo[depth1].get('MaximumGpuAmount'))
191+
if InstancePatternInfo[depth1].get('MaximumMemorySize') is not None:
192+
self.add_query_param('InstancePatternInfo.' + str(depth1 + 1) + '.MaximumMemorySize', InstancePatternInfo[depth1].get('MaximumMemorySize'))
193+
if InstancePatternInfo[depth1].get('MinimumInitialCredit') is not None:
194+
self.add_query_param('InstancePatternInfo.' + str(depth1 + 1) + '.MinimumInitialCredit', InstancePatternInfo[depth1].get('MinimumInitialCredit'))
181195
if InstancePatternInfo[depth1].get('ExcludedInstanceType') is not None:
182196
for depth2 in range(len(InstancePatternInfo[depth1].get('ExcludedInstanceType'))):
183197
self.add_query_param('InstancePatternInfo.' + str(depth1 + 1) + '.ExcludedInstanceType.' + str(depth2 + 1), InstancePatternInfo[depth1].get('ExcludedInstanceType')[depth2])
198+
if InstancePatternInfo[depth1].get('MinimumEniIpv6AddressQuantity') is not None:
199+
self.add_query_param('InstancePatternInfo.' + str(depth1 + 1) + '.MinimumEniIpv6AddressQuantity', InstancePatternInfo[depth1].get('MinimumEniIpv6AddressQuantity'))
200+
if InstancePatternInfo[depth1].get('MinimumEniPrivateIpAddressQuantity') is not None:
201+
self.add_query_param('InstancePatternInfo.' + str(depth1 + 1) + '.MinimumEniPrivateIpAddressQuantity', InstancePatternInfo[depth1].get('MinimumEniPrivateIpAddressQuantity'))
184202
if InstancePatternInfo[depth1].get('BurstablePerformance') is not None:
185203
self.add_query_param('InstancePatternInfo.' + str(depth1 + 1) + '.BurstablePerformance', InstancePatternInfo[depth1].get('BurstablePerformance'))
204+
if InstancePatternInfo[depth1].get('PhysicalProcessorModels') is not None:
205+
for depth2 in range(len(InstancePatternInfo[depth1].get('PhysicalProcessorModels'))):
206+
self.add_query_param('InstancePatternInfo.' + str(depth1 + 1) + '.PhysicalProcessorModels.' + str(depth2 + 1), InstancePatternInfo[depth1].get('PhysicalProcessorModels')[depth2])
207+
if InstancePatternInfo[depth1].get('MinimumCpuCoreCount') is not None:
208+
self.add_query_param('InstancePatternInfo.' + str(depth1 + 1) + '.MinimumCpuCoreCount', InstancePatternInfo[depth1].get('MinimumCpuCoreCount'))
209+
if InstancePatternInfo[depth1].get('GpuSpecs') is not None:
210+
for depth2 in range(len(InstancePatternInfo[depth1].get('GpuSpecs'))):
211+
self.add_query_param('InstancePatternInfo.' + str(depth1 + 1) + '.GpuSpecs.' + str(depth2 + 1), InstancePatternInfo[depth1].get('GpuSpecs')[depth2])
212+
if InstancePatternInfo[depth1].get('MinimumEniQuantity') is not None:
213+
self.add_query_param('InstancePatternInfo.' + str(depth1 + 1) + '.MinimumEniQuantity', InstancePatternInfo[depth1].get('MinimumEniQuantity'))
214+
if InstancePatternInfo[depth1].get('MinimumMemorySize') is not None:
215+
self.add_query_param('InstancePatternInfo.' + str(depth1 + 1) + '.MinimumMemorySize', InstancePatternInfo[depth1].get('MinimumMemorySize'))
216+
if InstancePatternInfo[depth1].get('Cores') is not None:
217+
self.add_query_param('InstancePatternInfo.' + str(depth1 + 1) + '.Cores', InstancePatternInfo[depth1].get('Cores'))
218+
if InstancePatternInfo[depth1].get('InstanceFamilyLevel') is not None:
219+
self.add_query_param('InstancePatternInfo.' + str(depth1 + 1) + '.InstanceFamilyLevel', InstancePatternInfo[depth1].get('InstanceFamilyLevel'))
220+
if InstancePatternInfo[depth1].get('InstanceTypeFamilies') is not None:
221+
for depth2 in range(len(InstancePatternInfo[depth1].get('InstanceTypeFamilies'))):
222+
self.add_query_param('InstancePatternInfo.' + str(depth1 + 1) + '.InstanceTypeFamilies.' + str(depth2 + 1), InstancePatternInfo[depth1].get('InstanceTypeFamilies')[depth2])
223+
if InstancePatternInfo[depth1].get('MinimumBaselineCredit') is not None:
224+
self.add_query_param('InstancePatternInfo.' + str(depth1 + 1) + '.MinimumBaselineCredit', InstancePatternInfo[depth1].get('MinimumBaselineCredit'))
225+
if InstancePatternInfo[depth1].get('CpuArchitectures') is not None:
226+
for depth2 in range(len(InstancePatternInfo[depth1].get('CpuArchitectures'))):
227+
self.add_query_param('InstancePatternInfo.' + str(depth1 + 1) + '.CpuArchitectures.' + str(depth2 + 1), InstancePatternInfo[depth1].get('CpuArchitectures')[depth2])
186228
if InstancePatternInfo[depth1].get('Architecture') is not None:
187229
for depth2 in range(len(InstancePatternInfo[depth1].get('Architecture'))):
188230
self.add_query_param('InstancePatternInfo.' + str(depth1 + 1) + '.Architecture.' + str(depth2 + 1), InstancePatternInfo[depth1].get('Architecture')[depth2])

aliyun-python-sdk-ess/aliyunsdkess/request/v20140828/RemoveInstancesRequest.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,11 @@ def get_DecreaseDesiredCapacity(self): # Boolean
5151

5252
def set_DecreaseDesiredCapacity(self, DecreaseDesiredCapacity): # Boolean
5353
self.add_query_param('DecreaseDesiredCapacity', DecreaseDesiredCapacity)
54+
def get_IgnoreInvalidInstance(self): # Boolean
55+
return self.get_query_params().get('IgnoreInvalidInstance')
56+
57+
def set_IgnoreInvalidInstance(self, IgnoreInvalidInstance): # Boolean
58+
self.add_query_param('IgnoreInvalidInstance', IgnoreInvalidInstance)
5459
def get_RemovePolicy(self): # String
5560
return self.get_query_params().get('RemovePolicy')
5661

0 commit comments

Comments
 (0)