Skip to content

Commit 7759ba4

Browse files
committed
ESS SDK Auto Released By kangning.tkn,Version:2.2.9
发布日志: 1, Support modify vSwitch of scalingGroup. 2, Support new target tracking scaling rule.
1 parent eb8947f commit 7759ba4

11 files changed

+235
-63
lines changed

aliyun-python-sdk-ess/ChangeLog.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
2019-01-28 Version: 2.2.9
2+
1, Support modify vSwitch of scalingGroup.
3+
2, Support new target tracking scaling rule.
4+
15
2018-12-05 Version: 2.2.8
26
1, Scaling group support vServerGroup.
37

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "2.2.8"
1+
__version__ = "2.2.9"

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,12 @@ def get_UserData(self):
102102
def set_UserData(self,UserData):
103103
self.add_query_param('UserData',UserData)
104104

105+
def get_ResourceGroupId(self):
106+
return self.get_query_params().get('ResourceGroupId')
107+
108+
def set_ResourceGroupId(self,ResourceGroupId):
109+
self.add_query_param('ResourceGroupId',ResourceGroupId)
110+
105111
def get_HostName(self):
106112
return self.get_query_params().get('HostName')
107113

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

Lines changed: 43 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,6 @@ class CreateScalingRuleRequest(RpcRequest):
2323
def __init__(self):
2424
RpcRequest.__init__(self, 'Ess', '2014-08-28', 'CreateScalingRule','ess')
2525

26-
def get_ScalingRuleName(self):
27-
return self.get_query_params().get('ScalingRuleName')
28-
29-
def set_ScalingRuleName(self,ScalingRuleName):
30-
self.add_query_param('ScalingRuleName',ScalingRuleName)
31-
3226
def get_ResourceOwnerAccount(self):
3327
return self.get_query_params().get('ResourceOwnerAccount')
3428

@@ -47,26 +41,62 @@ def get_ScalingGroupId(self):
4741
def set_ScalingGroupId(self,ScalingGroupId):
4842
self.add_query_param('ScalingGroupId',ScalingGroupId)
4943

44+
def get_EstimatedInstanceWarmup(self):
45+
return self.get_query_params().get('EstimatedInstanceWarmup')
46+
47+
def set_EstimatedInstanceWarmup(self,EstimatedInstanceWarmup):
48+
self.add_query_param('EstimatedInstanceWarmup',EstimatedInstanceWarmup)
49+
5050
def get_OwnerAccount(self):
5151
return self.get_query_params().get('OwnerAccount')
5252

5353
def set_OwnerAccount(self,OwnerAccount):
5454
self.add_query_param('OwnerAccount',OwnerAccount)
5555

56-
def get_Cooldown(self):
57-
return self.get_query_params().get('Cooldown')
58-
59-
def set_Cooldown(self,Cooldown):
60-
self.add_query_param('Cooldown',Cooldown)
61-
6256
def get_AdjustmentType(self):
6357
return self.get_query_params().get('AdjustmentType')
6458

6559
def set_AdjustmentType(self,AdjustmentType):
6660
self.add_query_param('AdjustmentType',AdjustmentType)
6761

62+
def get_DisableScaleIn(self):
63+
return self.get_query_params().get('DisableScaleIn')
64+
65+
def set_DisableScaleIn(self,DisableScaleIn):
66+
self.add_query_param('DisableScaleIn',DisableScaleIn)
67+
6868
def get_OwnerId(self):
6969
return self.get_query_params().get('OwnerId')
7070

7171
def set_OwnerId(self,OwnerId):
72-
self.add_query_param('OwnerId',OwnerId)
72+
self.add_query_param('OwnerId',OwnerId)
73+
74+
def get_ScalingRuleName(self):
75+
return self.get_query_params().get('ScalingRuleName')
76+
77+
def set_ScalingRuleName(self,ScalingRuleName):
78+
self.add_query_param('ScalingRuleName',ScalingRuleName)
79+
80+
def get_Cooldown(self):
81+
return self.get_query_params().get('Cooldown')
82+
83+
def set_Cooldown(self,Cooldown):
84+
self.add_query_param('Cooldown',Cooldown)
85+
86+
def get_TargetValue(self):
87+
return self.get_query_params().get('TargetValue')
88+
89+
def set_TargetValue(self,TargetValue):
90+
self.add_query_param('TargetValue',TargetValue)
91+
92+
def get_ScalingRuleType(self):
93+
return self.get_query_params().get('ScalingRuleType')
94+
95+
def set_ScalingRuleType(self,ScalingRuleType):
96+
self.add_query_param('ScalingRuleType',ScalingRuleType)
97+
98+
def get_MetricName(self):
99+
return self.get_query_params().get('MetricName')
100+
101+
def set_MetricName(self,MetricName):
102+
self.add_query_param('MetricName',MetricName)
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one
2+
# or more contributor license agreements. See the NOTICE file
3+
# distributed with this work for additional information
4+
# regarding copyright ownership. The ASF licenses this file
5+
# to you under the Apache License, Version 2.0 (the
6+
# "License"); you may not use this file except in compliance
7+
# with the License. You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
#
12+
#
13+
# Unless required by applicable law or agreed to in writing,
14+
# software distributed under the License is distributed on an
15+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16+
# KIND, either express or implied. See the License for the
17+
# specific language governing permissions and limitations
18+
# under the License.
19+
20+
from aliyunsdkcore.request import RpcRequest
21+
class DescribeAccountAttributesRequest(RpcRequest):
22+
23+
def __init__(self):
24+
RpcRequest.__init__(self, 'Ess', '2014-08-28', 'DescribeAccountAttributes','ess')
25+
26+
def get_ResourceOwnerAccount(self):
27+
return self.get_query_params().get('ResourceOwnerAccount')
28+
29+
def set_ResourceOwnerAccount(self,ResourceOwnerAccount):
30+
self.add_query_param('ResourceOwnerAccount',ResourceOwnerAccount)
31+
32+
def get_OwnerId(self):
33+
return self.get_query_params().get('OwnerId')
34+
35+
def set_OwnerId(self,OwnerId):
36+
self.add_query_param('OwnerId',OwnerId)

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,12 @@ def get_PageSize(self):
107107
def set_PageSize(self,PageSize):
108108
self.add_query_param('PageSize',PageSize)
109109

110+
def get_ScalingRuleType(self):
111+
return self.get_query_params().get('ScalingRuleType')
112+
113+
def set_ScalingRuleType(self,ScalingRuleType):
114+
self.add_query_param('ScalingRuleType',ScalingRuleType)
115+
110116
def get_ScalingRuleId10(self):
111117
return self.get_query_params().get('ScalingRuleId.10')
112118

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

Lines changed: 64 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,29 @@ class ModifyAlarmRequest(RpcRequest):
2323
def __init__(self):
2424
RpcRequest.__init__(self, 'Ess', '2014-08-28', 'ModifyAlarm','ess')
2525

26+
def get_MetricType(self):
27+
return self.get_query_params().get('MetricType')
28+
29+
def set_MetricType(self,MetricType):
30+
self.add_query_param('MetricType',MetricType)
31+
32+
def get_Period(self):
33+
return self.get_query_params().get('Period')
34+
35+
def set_Period(self,Period):
36+
self.add_query_param('Period',Period)
37+
2638
def get_ResourceOwnerAccount(self):
2739
return self.get_query_params().get('ResourceOwnerAccount')
2840

2941
def set_ResourceOwnerAccount(self,ResourceOwnerAccount):
3042
self.add_query_param('ResourceOwnerAccount',ResourceOwnerAccount)
3143

32-
def get_Name(self):
33-
return self.get_query_params().get('Name')
44+
def get_GroupId(self):
45+
return self.get_query_params().get('GroupId')
3446

35-
def set_Name(self,Name):
36-
self.add_query_param('Name',Name)
47+
def set_GroupId(self,GroupId):
48+
self.add_query_param('GroupId',GroupId)
3749

3850
def get_Description(self):
3951
return self.get_query_params().get('Description')
@@ -49,6 +61,12 @@ def set_AlarmActions(self,AlarmActions):
4961
if AlarmActions[i] is not None:
5062
self.add_query_param('AlarmAction.' + str(i + 1) , AlarmActions[i]);
5163

64+
def get_Threshold(self):
65+
return self.get_query_params().get('Threshold')
66+
67+
def set_Threshold(self,Threshold):
68+
self.add_query_param('Threshold',Threshold)
69+
5270
def get_OwnerId(self):
5371
return self.get_query_params().get('OwnerId')
5472

@@ -59,4 +77,45 @@ def get_AlarmTaskId(self):
5977
return self.get_query_params().get('AlarmTaskId')
6078

6179
def set_AlarmTaskId(self,AlarmTaskId):
62-
self.add_query_param('AlarmTaskId',AlarmTaskId)
80+
self.add_query_param('AlarmTaskId',AlarmTaskId)
81+
82+
def get_Name(self):
83+
return self.get_query_params().get('Name')
84+
85+
def set_Name(self,Name):
86+
self.add_query_param('Name',Name)
87+
88+
def get_EvaluationCount(self):
89+
return self.get_query_params().get('EvaluationCount')
90+
91+
def set_EvaluationCount(self,EvaluationCount):
92+
self.add_query_param('EvaluationCount',EvaluationCount)
93+
94+
def get_MetricName(self):
95+
return self.get_query_params().get('MetricName')
96+
97+
def set_MetricName(self,MetricName):
98+
self.add_query_param('MetricName',MetricName)
99+
100+
def get_ComparisonOperator(self):
101+
return self.get_query_params().get('ComparisonOperator')
102+
103+
def set_ComparisonOperator(self,ComparisonOperator):
104+
self.add_query_param('ComparisonOperator',ComparisonOperator)
105+
106+
def get_Dimensions(self):
107+
return self.get_query_params().get('Dimensions')
108+
109+
def set_Dimensions(self,Dimensions):
110+
for i in range(len(Dimensions)):
111+
if Dimensions[i].get('DimensionValue') is not None:
112+
self.add_query_param('Dimension.' + str(i + 1) + '.DimensionValue' , Dimensions[i].get('DimensionValue'))
113+
if Dimensions[i].get('DimensionKey') is not None:
114+
self.add_query_param('Dimension.' + str(i + 1) + '.DimensionKey' , Dimensions[i].get('DimensionKey'))
115+
116+
117+
def get_Statistics(self):
118+
return self.get_query_params().get('Statistics')
119+
120+
def set_Statistics(self,Statistics):
121+
self.add_query_param('Statistics',Statistics)

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,12 @@ def get_UserData(self):
9090
def set_UserData(self,UserData):
9191
self.add_query_param('UserData',UserData)
9292

93+
def get_ResourceGroupId(self):
94+
return self.get_query_params().get('ResourceGroupId')
95+
96+
def set_ResourceGroupId(self,ResourceGroupId):
97+
self.add_query_param('ResourceGroupId',ResourceGroupId)
98+
9399
def get_HostName(self):
94100
return self.get_query_params().get('HostName')
95101

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

Lines changed: 31 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
1-
# Licensed to the Apache Software Foundation (ASF) under one
2-
# or more contributor license agreements. See the NOTICE file
3-
# distributed with this work for additional information
4-
# regarding copyright ownership. The ASF licenses this file
5-
# to you under the Apache License, Version 2.0 (the
6-
# "License"); you may not use this file except in compliance
7-
# with the License. You may obtain a copy of the License at
8-
#
9-
# http://www.apache.org/licenses/LICENSE-2.0
10-
#
11-
#
12-
#
13-
# Unless required by applicable law or agreed to in writing,
14-
# software distributed under the License is distributed on an
15-
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16-
# KIND, either express or implied. See the License for the
17-
# specific language governing permissions and limitations
18-
# under the License.
19-
20-
from aliyunsdkcore.request import RpcRequest
21-
class ModifyScalingGroupRequest(RpcRequest):
22-
23-
def __init__(self):
1+
# Licensed to the Apache Software Foundation (ASF) under one
2+
# or more contributor license agreements. See the NOTICE file
3+
# distributed with this work for additional information
4+
# regarding copyright ownership. The ASF licenses this file
5+
# to you under the Apache License, Version 2.0 (the
6+
# "License"); you may not use this file except in compliance
7+
# with the License. You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
#
12+
#
13+
# Unless required by applicable law or agreed to in writing,
14+
# software distributed under the License is distributed on an
15+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16+
# KIND, either express or implied. See the License for the
17+
# specific language governing permissions and limitations
18+
# under the License.
19+
20+
from aliyunsdkcore.request import RpcRequest
21+
class ModifyScalingGroupRequest(RpcRequest):
22+
23+
def __init__(self):
2424
RpcRequest.__init__(self, 'Ess', '2014-08-28', 'ModifyScalingGroup','ess')
2525

2626
def get_ResourceOwnerId(self):
@@ -59,6 +59,14 @@ def get_ScalingGroupId(self):
5959
def set_ScalingGroupId(self,ScalingGroupId):
6060
self.add_query_param('ScalingGroupId',ScalingGroupId)
6161

62+
def get_VSwitchIds(self):
63+
return self.get_query_params().get('VSwitchIds')
64+
65+
def set_VSwitchIds(self,VSwitchIds):
66+
for i in range(len(VSwitchIds)):
67+
if VSwitchIds[i] is not None:
68+
self.add_query_param('VSwitchIds.' + str(i + 1) , VSwitchIds[i]);
69+
6270
def get_OwnerAccount(self):
6371
return self.get_query_params().get('OwnerAccount')
6472

0 commit comments

Comments
 (0)