Skip to content

Commit 2ee5da1

Browse files
committed
ModifyScalingGroup add ScalingPolicy params.
1 parent b98e5ae commit 2ee5da1

File tree

5 files changed

+42
-1
lines changed

5 files changed

+42
-1
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-04-17 Version: 2.3.20
2+
- ModifyScalingGroup add ScalingPolicy params.
3+
14
2024-02-26 Version: 2.3.19
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.19'
1+
__version__ = '2.3.20'

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

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,20 @@ def get_Affinity(self): # String
201201

202202
def set_Affinity(self, Affinity): # String
203203
self.add_query_param('Affinity', Affinity)
204+
def get_NetworkInterfacess(self): # RepeatList
205+
return self.get_query_params().get('NetworkInterfaces')
206+
207+
def set_NetworkInterfacess(self, NetworkInterfaces): # RepeatList
208+
for depth1 in range(len(NetworkInterfaces)):
209+
if NetworkInterfaces[depth1].get('Ipv6AddressCount') is not None:
210+
self.add_query_param('NetworkInterfaces.' + str(depth1 + 1) + '.Ipv6AddressCount', NetworkInterfaces[depth1].get('Ipv6AddressCount'))
211+
if NetworkInterfaces[depth1].get('InstanceType') is not None:
212+
self.add_query_param('NetworkInterfaces.' + str(depth1 + 1) + '.InstanceType', NetworkInterfaces[depth1].get('InstanceType'))
213+
if NetworkInterfaces[depth1].get('SecurityGroupIds') is not None:
214+
for depth2 in range(len(NetworkInterfaces[depth1].get('SecurityGroupIds'))):
215+
self.add_query_param('NetworkInterfaces.' + str(depth1 + 1) + '.SecurityGroupIds.' + str(depth2 + 1), NetworkInterfaces[depth1].get('SecurityGroupIds')[depth2])
216+
if NetworkInterfaces[depth1].get('NetworkInterfaceTrafficMode') is not None:
217+
self.add_query_param('NetworkInterfaces.' + str(depth1 + 1) + '.NetworkInterfaceTrafficMode', NetworkInterfaces[depth1].get('NetworkInterfaceTrafficMode'))
204218
def get_ImageId(self): # String
205219
return self.get_query_params().get('ImageId')
206220

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

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,20 @@ def get_Affinity(self): # String
191191

192192
def set_Affinity(self, Affinity): # String
193193
self.add_query_param('Affinity', Affinity)
194+
def get_NetworkInterfacess(self): # RepeatList
195+
return self.get_query_params().get('NetworkInterfaces')
196+
197+
def set_NetworkInterfacess(self, NetworkInterfaces): # RepeatList
198+
for depth1 in range(len(NetworkInterfaces)):
199+
if NetworkInterfaces[depth1].get('Ipv6AddressCount') is not None:
200+
self.add_query_param('NetworkInterfaces.' + str(depth1 + 1) + '.Ipv6AddressCount', NetworkInterfaces[depth1].get('Ipv6AddressCount'))
201+
if NetworkInterfaces[depth1].get('InstanceType') is not None:
202+
self.add_query_param('NetworkInterfaces.' + str(depth1 + 1) + '.InstanceType', NetworkInterfaces[depth1].get('InstanceType'))
203+
if NetworkInterfaces[depth1].get('SecurityGroupIds') is not None:
204+
for depth2 in range(len(NetworkInterfaces[depth1].get('SecurityGroupIds'))):
205+
self.add_query_param('NetworkInterfaces.' + str(depth1 + 1) + '.SecurityGroupIds.' + str(depth2 + 1), NetworkInterfaces[depth1].get('SecurityGroupIds')[depth2])
206+
if NetworkInterfaces[depth1].get('NetworkInterfaceTrafficMode') is not None:
207+
self.add_query_param('NetworkInterfaces.' + str(depth1 + 1) + '.NetworkInterfaceTrafficMode', NetworkInterfaces[depth1].get('NetworkInterfaceTrafficMode'))
194208
def get_ImageId(self): # String
195209
return self.get_query_params().get('ImageId')
196210

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

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

4343
def set_ScalingGroupId(self, ScalingGroupId): # String
4444
self.add_query_param('ScalingGroupId', ScalingGroupId)
45+
def get_LifecycleHookContext(self): # Struct
46+
return self.get_query_params().get('LifecycleHookContext')
47+
48+
def set_LifecycleHookContext(self, LifecycleHookContext): # Struct
49+
self.add_query_param("LifecycleHookContext", json.dumps(LifecycleHookContext))
4550
def get_SyncActivity(self): # Boolean
4651
return self.get_query_params().get('SyncActivity')
4752

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

5863
def set_ResourceOwnerAccount(self, ResourceOwnerAccount): # String
5964
self.add_query_param('ResourceOwnerAccount', ResourceOwnerAccount)
65+
def get_ActivityMetadata(self): # String
66+
return self.get_query_params().get('ActivityMetadata')
67+
68+
def set_ActivityMetadata(self, ActivityMetadata): # String
69+
self.add_query_param('ActivityMetadata', ActivityMetadata)
6070
def get_AdjustmentType(self): # String
6171
return self.get_query_params().get('AdjustmentType')
6272

0 commit comments

Comments
 (0)