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 Apr 17, 2024
1 parent b98e5ae commit 2ee5da1
Show file tree
Hide file tree
Showing 5 changed files with 42 additions and 1 deletion.
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-04-17 Version: 2.3.20
- ModifyScalingGroup add ScalingPolicy params.

2024-02-26 Version: 2.3.19
-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.19'
__version__ = '2.3.20'
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,20 @@ def get_Affinity(self): # String

def set_Affinity(self, Affinity): # String
self.add_query_param('Affinity', Affinity)
def get_NetworkInterfacess(self): # RepeatList
return self.get_query_params().get('NetworkInterfaces')

def set_NetworkInterfacess(self, NetworkInterfaces): # RepeatList
for depth1 in range(len(NetworkInterfaces)):
if NetworkInterfaces[depth1].get('Ipv6AddressCount') is not None:
self.add_query_param('NetworkInterfaces.' + str(depth1 + 1) + '.Ipv6AddressCount', NetworkInterfaces[depth1].get('Ipv6AddressCount'))
if NetworkInterfaces[depth1].get('InstanceType') is not None:
self.add_query_param('NetworkInterfaces.' + str(depth1 + 1) + '.InstanceType', NetworkInterfaces[depth1].get('InstanceType'))
if NetworkInterfaces[depth1].get('SecurityGroupIds') is not None:
for depth2 in range(len(NetworkInterfaces[depth1].get('SecurityGroupIds'))):
self.add_query_param('NetworkInterfaces.' + str(depth1 + 1) + '.SecurityGroupIds.' + str(depth2 + 1), NetworkInterfaces[depth1].get('SecurityGroupIds')[depth2])
if NetworkInterfaces[depth1].get('NetworkInterfaceTrafficMode') is not None:
self.add_query_param('NetworkInterfaces.' + str(depth1 + 1) + '.NetworkInterfaceTrafficMode', NetworkInterfaces[depth1].get('NetworkInterfaceTrafficMode'))
def get_ImageId(self): # String
return self.get_query_params().get('ImageId')

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,20 @@ def get_Affinity(self): # String

def set_Affinity(self, Affinity): # String
self.add_query_param('Affinity', Affinity)
def get_NetworkInterfacess(self): # RepeatList
return self.get_query_params().get('NetworkInterfaces')

def set_NetworkInterfacess(self, NetworkInterfaces): # RepeatList
for depth1 in range(len(NetworkInterfaces)):
if NetworkInterfaces[depth1].get('Ipv6AddressCount') is not None:
self.add_query_param('NetworkInterfaces.' + str(depth1 + 1) + '.Ipv6AddressCount', NetworkInterfaces[depth1].get('Ipv6AddressCount'))
if NetworkInterfaces[depth1].get('InstanceType') is not None:
self.add_query_param('NetworkInterfaces.' + str(depth1 + 1) + '.InstanceType', NetworkInterfaces[depth1].get('InstanceType'))
if NetworkInterfaces[depth1].get('SecurityGroupIds') is not None:
for depth2 in range(len(NetworkInterfaces[depth1].get('SecurityGroupIds'))):
self.add_query_param('NetworkInterfaces.' + str(depth1 + 1) + '.SecurityGroupIds.' + str(depth2 + 1), NetworkInterfaces[depth1].get('SecurityGroupIds')[depth2])
if NetworkInterfaces[depth1].get('NetworkInterfaceTrafficMode') is not None:
self.add_query_param('NetworkInterfaces.' + str(depth1 + 1) + '.NetworkInterfaceTrafficMode', NetworkInterfaces[depth1].get('NetworkInterfaceTrafficMode'))
def get_ImageId(self): # String
return self.get_query_params().get('ImageId')

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

def set_ScalingGroupId(self, ScalingGroupId): # String
self.add_query_param('ScalingGroupId', ScalingGroupId)
def get_LifecycleHookContext(self): # Struct
return self.get_query_params().get('LifecycleHookContext')

def set_LifecycleHookContext(self, LifecycleHookContext): # Struct
self.add_query_param("LifecycleHookContext", json.dumps(LifecycleHookContext))
def get_SyncActivity(self): # Boolean
return self.get_query_params().get('SyncActivity')

Expand All @@ -57,6 +62,11 @@ def get_ResourceOwnerAccount(self): # String

def set_ResourceOwnerAccount(self, ResourceOwnerAccount): # String
self.add_query_param('ResourceOwnerAccount', ResourceOwnerAccount)
def get_ActivityMetadata(self): # String
return self.get_query_params().get('ActivityMetadata')

def set_ActivityMetadata(self, ActivityMetadata): # String
self.add_query_param('ActivityMetadata', ActivityMetadata)
def get_AdjustmentType(self): # String
return self.get_query_params().get('AdjustmentType')

Expand Down

0 comments on commit 2ee5da1

Please sign in to comment.