Skip to content

Commit

Permalink
ModifyScalingGroup add ScalingPolicy params.
Browse files Browse the repository at this point in the history
  • Loading branch information
sdk-team committed Jul 4, 2024
1 parent 9806526 commit 2677c04
Show file tree
Hide file tree
Showing 7 changed files with 121 additions and 9 deletions.
3 changes: 3 additions & 0 deletions aliyun-python-sdk-ess/ChangeLog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
2024-07-04 Version: 2.3.22
- ModifyScalingGroup add ScalingPolicy params.

2024-05-16 Version: 2.3.21
- ModifyScalingGroup add ScalingPolicy params.

Expand Down
2 changes: 1 addition & 1 deletion aliyun-python-sdk-ess/aliyunsdkess/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '2.3.21'
__version__ = '2.3.22'
Original file line number Diff line number Diff line change
Expand Up @@ -180,19 +180,56 @@ def get_InstancePatternInfos(self): # RepeatList

def set_InstancePatternInfos(self, InstancePatternInfo): # RepeatList
for depth1 in range(len(InstancePatternInfo)):
if InstancePatternInfo[depth1].get('Cores') is not None:
self.add_query_param('InstancePatternInfo.' + str(depth1 + 1) + '.Cores', InstancePatternInfo[depth1].get('Cores'))
if InstancePatternInfo[depth1].get('InstanceFamilyLevel') is not None:
self.add_query_param('InstancePatternInfo.' + str(depth1 + 1) + '.InstanceFamilyLevel', InstancePatternInfo[depth1].get('InstanceFamilyLevel'))
if InstancePatternInfo[depth1].get('InstanceCategories') is not None:
for depth2 in range(len(InstancePatternInfo[depth1].get('InstanceCategories'))):
self.add_query_param('InstancePatternInfo.' + str(depth1 + 1) + '.InstanceCategories.' + str(depth2 + 1), InstancePatternInfo[depth1].get('InstanceCategories')[depth2])
if InstancePatternInfo[depth1].get('Memory') is not None:
self.add_query_param('InstancePatternInfo.' + str(depth1 + 1) + '.Memory', InstancePatternInfo[depth1].get('Memory'))
if InstancePatternInfo[depth1].get('MaximumCpuCoreCount') is not None:
self.add_query_param('InstancePatternInfo.' + str(depth1 + 1) + '.MaximumCpuCoreCount', InstancePatternInfo[depth1].get('MaximumCpuCoreCount'))
if InstancePatternInfo[depth1].get('MaxPrice') is not None:
self.add_query_param('InstancePatternInfo.' + str(depth1 + 1) + '.MaxPrice', InstancePatternInfo[depth1].get('MaxPrice'))
if InstancePatternInfo[depth1].get('MinimumGpuAmount') is not None:
self.add_query_param('InstancePatternInfo.' + str(depth1 + 1) + '.MinimumGpuAmount', InstancePatternInfo[depth1].get('MinimumGpuAmount'))
if InstancePatternInfo[depth1].get('MaximumGpuAmount') is not None:
self.add_query_param('InstancePatternInfo.' + str(depth1 + 1) + '.MaximumGpuAmount', InstancePatternInfo[depth1].get('MaximumGpuAmount'))
if InstancePatternInfo[depth1].get('MaximumMemorySize') is not None:
self.add_query_param('InstancePatternInfo.' + str(depth1 + 1) + '.MaximumMemorySize', InstancePatternInfo[depth1].get('MaximumMemorySize'))
if InstancePatternInfo[depth1].get('MinimumInitialCredit') is not None:
self.add_query_param('InstancePatternInfo.' + str(depth1 + 1) + '.MinimumInitialCredit', InstancePatternInfo[depth1].get('MinimumInitialCredit'))
if InstancePatternInfo[depth1].get('ExcludedInstanceType') is not None:
for depth2 in range(len(InstancePatternInfo[depth1].get('ExcludedInstanceType'))):
self.add_query_param('InstancePatternInfo.' + str(depth1 + 1) + '.ExcludedInstanceType.' + str(depth2 + 1), InstancePatternInfo[depth1].get('ExcludedInstanceType')[depth2])
if InstancePatternInfo[depth1].get('MinimumEniIpv6AddressQuantity') is not None:
self.add_query_param('InstancePatternInfo.' + str(depth1 + 1) + '.MinimumEniIpv6AddressQuantity', InstancePatternInfo[depth1].get('MinimumEniIpv6AddressQuantity'))
if InstancePatternInfo[depth1].get('MinimumEniPrivateIpAddressQuantity') is not None:
self.add_query_param('InstancePatternInfo.' + str(depth1 + 1) + '.MinimumEniPrivateIpAddressQuantity', InstancePatternInfo[depth1].get('MinimumEniPrivateIpAddressQuantity'))
if InstancePatternInfo[depth1].get('BurstablePerformance') is not None:
self.add_query_param('InstancePatternInfo.' + str(depth1 + 1) + '.BurstablePerformance', InstancePatternInfo[depth1].get('BurstablePerformance'))
if InstancePatternInfo[depth1].get('PhysicalProcessorModels') is not None:
for depth2 in range(len(InstancePatternInfo[depth1].get('PhysicalProcessorModels'))):
self.add_query_param('InstancePatternInfo.' + str(depth1 + 1) + '.PhysicalProcessorModels.' + str(depth2 + 1), InstancePatternInfo[depth1].get('PhysicalProcessorModels')[depth2])
if InstancePatternInfo[depth1].get('MinimumCpuCoreCount') is not None:
self.add_query_param('InstancePatternInfo.' + str(depth1 + 1) + '.MinimumCpuCoreCount', InstancePatternInfo[depth1].get('MinimumCpuCoreCount'))
if InstancePatternInfo[depth1].get('GpuSpecs') is not None:
for depth2 in range(len(InstancePatternInfo[depth1].get('GpuSpecs'))):
self.add_query_param('InstancePatternInfo.' + str(depth1 + 1) + '.GpuSpecs.' + str(depth2 + 1), InstancePatternInfo[depth1].get('GpuSpecs')[depth2])
if InstancePatternInfo[depth1].get('MinimumEniQuantity') is not None:
self.add_query_param('InstancePatternInfo.' + str(depth1 + 1) + '.MinimumEniQuantity', InstancePatternInfo[depth1].get('MinimumEniQuantity'))
if InstancePatternInfo[depth1].get('MinimumMemorySize') is not None:
self.add_query_param('InstancePatternInfo.' + str(depth1 + 1) + '.MinimumMemorySize', InstancePatternInfo[depth1].get('MinimumMemorySize'))
if InstancePatternInfo[depth1].get('Cores') is not None:
self.add_query_param('InstancePatternInfo.' + str(depth1 + 1) + '.Cores', InstancePatternInfo[depth1].get('Cores'))
if InstancePatternInfo[depth1].get('InstanceFamilyLevel') is not None:
self.add_query_param('InstancePatternInfo.' + str(depth1 + 1) + '.InstanceFamilyLevel', InstancePatternInfo[depth1].get('InstanceFamilyLevel'))
if InstancePatternInfo[depth1].get('InstanceTypeFamilies') is not None:
for depth2 in range(len(InstancePatternInfo[depth1].get('InstanceTypeFamilies'))):
self.add_query_param('InstancePatternInfo.' + str(depth1 + 1) + '.InstanceTypeFamilies.' + str(depth2 + 1), InstancePatternInfo[depth1].get('InstanceTypeFamilies')[depth2])
if InstancePatternInfo[depth1].get('MinimumBaselineCredit') is not None:
self.add_query_param('InstancePatternInfo.' + str(depth1 + 1) + '.MinimumBaselineCredit', InstancePatternInfo[depth1].get('MinimumBaselineCredit'))
if InstancePatternInfo[depth1].get('CpuArchitectures') is not None:
for depth2 in range(len(InstancePatternInfo[depth1].get('CpuArchitectures'))):
self.add_query_param('InstancePatternInfo.' + str(depth1 + 1) + '.CpuArchitectures.' + str(depth2 + 1), InstancePatternInfo[depth1].get('CpuArchitectures')[depth2])
if InstancePatternInfo[depth1].get('Architecture') is not None:
for depth2 in range(len(InstancePatternInfo[depth1].get('Architecture'))):
self.add_query_param('InstancePatternInfo.' + str(depth1 + 1) + '.Architecture.' + str(depth2 + 1), InstancePatternInfo[depth1].get('Architecture')[depth2])
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,11 @@ def get_ScalingGroupId(self): # String

def set_ScalingGroupId(self, ScalingGroupId): # String
self.add_query_param('ScalingGroupId', ScalingGroupId)
def get_TaskName(self): # String
return self.get_query_params().get('TaskName')

def set_TaskName(self, TaskName): # String
self.add_query_param('TaskName', TaskName)
def get_PageNumber(self): # Integer
return self.get_query_params().get('PageNumber')

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

def set_OwnerId(self, OwnerId): # Long
self.add_query_param('OwnerId', OwnerId)
def get_RecurrenceValue(self): # String
return self.get_query_params().get('RecurrenceValue')

def set_RecurrenceValue(self, RecurrenceValue): # String
self.add_query_param('RecurrenceValue', RecurrenceValue)
def get_ScheduledTaskNames(self): # RepeatList
return self.get_query_params().get('ScheduledTaskName')

def set_ScheduledTaskNames(self, ScheduledTaskName): # RepeatList
for depth1 in range(len(ScheduledTaskName)):
self.add_query_param('ScheduledTaskName.' + str(depth1 + 1), ScheduledTaskName[depth1])
def get_TaskEnabled(self): # Boolean
return self.get_query_params().get('TaskEnabled')

def set_TaskEnabled(self, TaskEnabled): # Boolean
self.add_query_param('TaskEnabled', TaskEnabled)
def get_ScheduledTaskIds(self): # RepeatList
return self.get_query_params().get('ScheduledTaskId')

def set_ScheduledTaskIds(self, ScheduledTaskId): # RepeatList
for depth1 in range(len(ScheduledTaskId)):
self.add_query_param('ScheduledTaskId.' + str(depth1 + 1), ScheduledTaskId[depth1])
def get_RecurrenceType(self): # String
return self.get_query_params().get('RecurrenceType')

def set_RecurrenceType(self, RecurrenceType): # String
self.add_query_param('RecurrenceType', RecurrenceType)
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,11 @@ def get_DecreaseDesiredCapacity(self): # Boolean

def set_DecreaseDesiredCapacity(self, DecreaseDesiredCapacity): # Boolean
self.add_query_param('DecreaseDesiredCapacity', DecreaseDesiredCapacity)
def get_IgnoreInvalidInstance(self): # Boolean
return self.get_query_params().get('IgnoreInvalidInstance')

def set_IgnoreInvalidInstance(self, IgnoreInvalidInstance): # Boolean
self.add_query_param('IgnoreInvalidInstance', IgnoreInvalidInstance)
def get_ResourceOwnerAccount(self): # String
return self.get_query_params().get('ResourceOwnerAccount')

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,11 @@ def get_HostName(self): # String

def set_HostName(self, HostName): # String
self.add_query_param('HostName', HostName)
def get_Password(self): # String
return self.get_query_params().get('Password')

def set_Password(self, Password): # String
self.add_query_param('Password', Password)
def get_InstanceDescription(self): # String
return self.get_query_params().get('InstanceDescription')

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

def set_InstancePatternInfos(self, InstancePatternInfo): # RepeatList
for depth1 in range(len(InstancePatternInfo)):
if InstancePatternInfo[depth1].get('Cores') is not None:
self.add_query_param('InstancePatternInfo.' + str(depth1 + 1) + '.Cores', InstancePatternInfo[depth1].get('Cores'))
if InstancePatternInfo[depth1].get('InstanceFamilyLevel') is not None:
self.add_query_param('InstancePatternInfo.' + str(depth1 + 1) + '.InstanceFamilyLevel', InstancePatternInfo[depth1].get('InstanceFamilyLevel'))
if InstancePatternInfo[depth1].get('InstanceCategories') is not None:
for depth2 in range(len(InstancePatternInfo[depth1].get('InstanceCategories'))):
self.add_query_param('InstancePatternInfo.' + str(depth1 + 1) + '.InstanceCategories.' + str(depth2 + 1), InstancePatternInfo[depth1].get('InstanceCategories')[depth2])
if InstancePatternInfo[depth1].get('Memory') is not None:
self.add_query_param('InstancePatternInfo.' + str(depth1 + 1) + '.Memory', InstancePatternInfo[depth1].get('Memory'))
if InstancePatternInfo[depth1].get('MaximumCpuCoreCount') is not None:
self.add_query_param('InstancePatternInfo.' + str(depth1 + 1) + '.MaximumCpuCoreCount', InstancePatternInfo[depth1].get('MaximumCpuCoreCount'))
if InstancePatternInfo[depth1].get('MaxPrice') is not None:
self.add_query_param('InstancePatternInfo.' + str(depth1 + 1) + '.MaxPrice', InstancePatternInfo[depth1].get('MaxPrice'))
if InstancePatternInfo[depth1].get('MinimumGpuAmount') is not None:
self.add_query_param('InstancePatternInfo.' + str(depth1 + 1) + '.MinimumGpuAmount', InstancePatternInfo[depth1].get('MinimumGpuAmount'))
if InstancePatternInfo[depth1].get('MaximumGpuAmount') is not None:
self.add_query_param('InstancePatternInfo.' + str(depth1 + 1) + '.MaximumGpuAmount', InstancePatternInfo[depth1].get('MaximumGpuAmount'))
if InstancePatternInfo[depth1].get('MaximumMemorySize') is not None:
self.add_query_param('InstancePatternInfo.' + str(depth1 + 1) + '.MaximumMemorySize', InstancePatternInfo[depth1].get('MaximumMemorySize'))
if InstancePatternInfo[depth1].get('MinimumInitialCredit') is not None:
self.add_query_param('InstancePatternInfo.' + str(depth1 + 1) + '.MinimumInitialCredit', InstancePatternInfo[depth1].get('MinimumInitialCredit'))
if InstancePatternInfo[depth1].get('ExcludedInstanceType') is not None:
for depth2 in range(len(InstancePatternInfo[depth1].get('ExcludedInstanceType'))):
self.add_query_param('InstancePatternInfo.' + str(depth1 + 1) + '.ExcludedInstanceType.' + str(depth2 + 1), InstancePatternInfo[depth1].get('ExcludedInstanceType')[depth2])
if InstancePatternInfo[depth1].get('MinimumEniIpv6AddressQuantity') is not None:
self.add_query_param('InstancePatternInfo.' + str(depth1 + 1) + '.MinimumEniIpv6AddressQuantity', InstancePatternInfo[depth1].get('MinimumEniIpv6AddressQuantity'))
if InstancePatternInfo[depth1].get('MinimumEniPrivateIpAddressQuantity') is not None:
self.add_query_param('InstancePatternInfo.' + str(depth1 + 1) + '.MinimumEniPrivateIpAddressQuantity', InstancePatternInfo[depth1].get('MinimumEniPrivateIpAddressQuantity'))
if InstancePatternInfo[depth1].get('BurstablePerformance') is not None:
self.add_query_param('InstancePatternInfo.' + str(depth1 + 1) + '.BurstablePerformance', InstancePatternInfo[depth1].get('BurstablePerformance'))
if InstancePatternInfo[depth1].get('PhysicalProcessorModels') is not None:
for depth2 in range(len(InstancePatternInfo[depth1].get('PhysicalProcessorModels'))):
self.add_query_param('InstancePatternInfo.' + str(depth1 + 1) + '.PhysicalProcessorModels.' + str(depth2 + 1), InstancePatternInfo[depth1].get('PhysicalProcessorModels')[depth2])
if InstancePatternInfo[depth1].get('MinimumCpuCoreCount') is not None:
self.add_query_param('InstancePatternInfo.' + str(depth1 + 1) + '.MinimumCpuCoreCount', InstancePatternInfo[depth1].get('MinimumCpuCoreCount'))
if InstancePatternInfo[depth1].get('GpuSpecs') is not None:
for depth2 in range(len(InstancePatternInfo[depth1].get('GpuSpecs'))):
self.add_query_param('InstancePatternInfo.' + str(depth1 + 1) + '.GpuSpecs.' + str(depth2 + 1), InstancePatternInfo[depth1].get('GpuSpecs')[depth2])
if InstancePatternInfo[depth1].get('MinimumEniQuantity') is not None:
self.add_query_param('InstancePatternInfo.' + str(depth1 + 1) + '.MinimumEniQuantity', InstancePatternInfo[depth1].get('MinimumEniQuantity'))
if InstancePatternInfo[depth1].get('MinimumMemorySize') is not None:
self.add_query_param('InstancePatternInfo.' + str(depth1 + 1) + '.MinimumMemorySize', InstancePatternInfo[depth1].get('MinimumMemorySize'))
if InstancePatternInfo[depth1].get('Cores') is not None:
self.add_query_param('InstancePatternInfo.' + str(depth1 + 1) + '.Cores', InstancePatternInfo[depth1].get('Cores'))
if InstancePatternInfo[depth1].get('InstanceFamilyLevel') is not None:
self.add_query_param('InstancePatternInfo.' + str(depth1 + 1) + '.InstanceFamilyLevel', InstancePatternInfo[depth1].get('InstanceFamilyLevel'))
if InstancePatternInfo[depth1].get('InstanceTypeFamilies') is not None:
for depth2 in range(len(InstancePatternInfo[depth1].get('InstanceTypeFamilies'))):
self.add_query_param('InstancePatternInfo.' + str(depth1 + 1) + '.InstanceTypeFamilies.' + str(depth2 + 1), InstancePatternInfo[depth1].get('InstanceTypeFamilies')[depth2])
if InstancePatternInfo[depth1].get('MinimumBaselineCredit') is not None:
self.add_query_param('InstancePatternInfo.' + str(depth1 + 1) + '.MinimumBaselineCredit', InstancePatternInfo[depth1].get('MinimumBaselineCredit'))
if InstancePatternInfo[depth1].get('CpuArchitectures') is not None:
for depth2 in range(len(InstancePatternInfo[depth1].get('CpuArchitectures'))):
self.add_query_param('InstancePatternInfo.' + str(depth1 + 1) + '.CpuArchitectures.' + str(depth2 + 1), InstancePatternInfo[depth1].get('CpuArchitectures')[depth2])
if InstancePatternInfo[depth1].get('Architecture') is not None:
for depth2 in range(len(InstancePatternInfo[depth1].get('Architecture'))):
self.add_query_param('InstancePatternInfo.' + str(depth1 + 1) + '.Architecture.' + str(depth2 + 1), InstancePatternInfo[depth1].get('Architecture')[depth2])
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,11 @@ def get_DecreaseDesiredCapacity(self): # Boolean

def set_DecreaseDesiredCapacity(self, DecreaseDesiredCapacity): # Boolean
self.add_query_param('DecreaseDesiredCapacity', DecreaseDesiredCapacity)
def get_IgnoreInvalidInstance(self): # Boolean
return self.get_query_params().get('IgnoreInvalidInstance')

def set_IgnoreInvalidInstance(self, IgnoreInvalidInstance): # Boolean
self.add_query_param('IgnoreInvalidInstance', IgnoreInvalidInstance)
def get_RemovePolicy(self): # String
return self.get_query_params().get('RemovePolicy')

Expand Down

0 comments on commit 2677c04

Please sign in to comment.