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 May 16, 2024
1 parent 2292fa9 commit 5d3eb5d
Show file tree
Hide file tree
Showing 8 changed files with 138 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-05-16 Version: 2.3.21
- ModifyScalingGroup add ScalingPolicy params.

2024-04-17 Version: 2.3.20
- 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.20'
__version__ = '2.3.21'
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,16 @@ def get_ForceAttach(self): # Boolean

def set_ForceAttach(self, ForceAttach): # Boolean
self.add_query_param('ForceAttach', ForceAttach)
def get_Type(self): # String
return self.get_query_params().get('Type')

def set_Type(self, Type): # String
self.add_query_param('Type', Type)
def get_AttachMode(self): # String
return self.get_query_params().get('AttachMode')

def set_AttachMode(self, AttachMode): # String
self.add_query_param('AttachMode', AttachMode)
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 @@ -291,6 +291,11 @@ def get_ImageName(self): # String

def set_ImageName(self, ImageName): # String
self.add_query_param('ImageName', ImageName)
def get_DedicatedHostClusterId(self): # String
return self.get_query_params().get('DedicatedHostClusterId')

def set_DedicatedHostClusterId(self, DedicatedHostClusterId): # String
self.add_query_param('DedicatedHostClusterId', DedicatedHostClusterId)
def get_InstanceType(self): # String
return self.get_query_params().get('InstanceType')

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,17 @@ def get_SpotInstancePools(self): # Integer

def set_SpotInstancePools(self, SpotInstancePools): # Integer
self.add_query_param('SpotInstancePools', SpotInstancePools)
def get_DBInstances(self): # RepeatList
return self.get_query_params().get('DBInstance')

def set_DBInstances(self, DBInstance): # RepeatList
for depth1 in range(len(DBInstance)):
if DBInstance[depth1].get('DBInstanceId') is not None:
self.add_query_param('DBInstance.' + str(depth1 + 1) + '.DBInstanceId', DBInstance[depth1].get('DBInstanceId'))
if DBInstance[depth1].get('Type') is not None:
self.add_query_param('DBInstance.' + str(depth1 + 1) + '.Type', DBInstance[depth1].get('Type'))
if DBInstance[depth1].get('AttachMode') is not None:
self.add_query_param('DBInstance.' + str(depth1 + 1) + '.AttachMode', DBInstance[depth1].get('AttachMode'))
def get_GroupDeletionProtection(self): # Boolean
return self.get_query_params().get('GroupDeletionProtection')

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
#
# http://www.apache.org/licenses/LICENSE-2.0
#
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.

from aliyunsdkcore.request import RpcRequest
from aliyunsdkess.endpoint import endpoint_data

class DescribePatternTypesRequest(RpcRequest):

def __init__(self):
RpcRequest.__init__(self, 'Ess', '2014-08-28', 'DescribePatternTypes','ess')
self.set_method('GET')

if hasattr(self, "endpoint_map"):
setattr(self, "endpoint_map", endpoint_data.getEndpointMap())
if hasattr(self, "endpoint_regional"):
setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())

def get_MemoryLists(self): # RepeatList
return self.get_query_params().get('MemoryList')

def set_MemoryLists(self, MemoryList): # RepeatList
for depth1 in range(len(MemoryList)):
self.add_query_param('MemoryList.' + str(depth1 + 1), MemoryList[depth1])
def get_Memory(self): # Float
return self.get_query_params().get('Memory')

def set_Memory(self, Memory): # Float
self.add_query_param('Memory', Memory)
def get_CoresLists(self): # RepeatList
return self.get_query_params().get('CoresList')

def set_CoresLists(self, CoresList): # RepeatList
for depth1 in range(len(CoresList)):
self.add_query_param('CoresList.' + str(depth1 + 1), CoresList[depth1])
def get_Cores(self): # Integer
return self.get_query_params().get('Cores')

def set_Cores(self, Cores): # Integer
self.add_query_param('Cores', Cores)
def get_Architectures(self): # RepeatList
return self.get_query_params().get('Architecture')

def set_Architectures(self, Architecture): # RepeatList
for depth1 in range(len(Architecture)):
self.add_query_param('Architecture.' + str(depth1 + 1), Architecture[depth1])
def get_MaxPrice(self): # Float
return self.get_query_params().get('MaxPrice')

def set_MaxPrice(self, MaxPrice): # Float
self.add_query_param('MaxPrice', MaxPrice)
def get_ExcludedInstanceTypes(self): # RepeatList
return self.get_query_params().get('ExcludedInstanceType')

def set_ExcludedInstanceTypes(self, ExcludedInstanceType): # RepeatList
for depth1 in range(len(ExcludedInstanceType)):
self.add_query_param('ExcludedInstanceType.' + str(depth1 + 1), ExcludedInstanceType[depth1])
def get_BurstablePerformance(self): # String
return self.get_query_params().get('BurstablePerformance')

def set_BurstablePerformance(self, BurstablePerformance): # String
self.add_query_param('BurstablePerformance', BurstablePerformance)
def get_SpotStrategy(self): # String
return self.get_query_params().get('SpotStrategy')

def set_SpotStrategy(self, SpotStrategy): # String
self.add_query_param('SpotStrategy', SpotStrategy)
def get_VSwitchIds(self): # RepeatList
return self.get_query_params().get('VSwitchId')

def set_VSwitchIds(self, VSwitchId): # RepeatList
for depth1 in range(len(VSwitchId)):
self.add_query_param('VSwitchId.' + str(depth1 + 1), VSwitchId[depth1])
def get_InstanceFamilyLevel(self): # String
return self.get_query_params().get('InstanceFamilyLevel')

def set_InstanceFamilyLevel(self, InstanceFamilyLevel): # String
self.add_query_param('InstanceFamilyLevel', InstanceFamilyLevel)
def get_ChannelId(self): # Long
return self.get_query_params().get('ChannelId')

def set_ChannelId(self, ChannelId): # Long
self.add_query_param('ChannelId', ChannelId)
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@ def get_ScalingGroupId(self): # String

def set_ScalingGroupId(self, ScalingGroupId): # String
self.add_query_param('ScalingGroupId', ScalingGroupId)
def get_RemoveSecurityGroup(self): # Boolean
return self.get_query_params().get('RemoveSecurityGroup')

def set_RemoveSecurityGroup(self, RemoveSecurityGroup): # Boolean
self.add_query_param('RemoveSecurityGroup', RemoveSecurityGroup)
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 @@ -271,6 +271,11 @@ def get_ImageName(self): # String

def set_ImageName(self, ImageName): # String
self.add_query_param('ImageName', ImageName)
def get_DedicatedHostClusterId(self): # String
return self.get_query_params().get('DedicatedHostClusterId')

def set_DedicatedHostClusterId(self, DedicatedHostClusterId): # String
self.add_query_param('DedicatedHostClusterId', DedicatedHostClusterId)
def get_Override(self): # Boolean
return self.get_query_params().get('Override')

Expand Down

0 comments on commit 5d3eb5d

Please sign in to comment.