Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit7759ba4

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 parenteb8947f commit7759ba4

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
defset_UserData(self,UserData):
103103
self.add_query_param('UserData',UserData)
104104

105+
defget_ResourceGroupId(self):
106+
returnself.get_query_params().get('ResourceGroupId')
107+
108+
defset_ResourceGroupId(self,ResourceGroupId):
109+
self.add_query_param('ResourceGroupId',ResourceGroupId)
110+
105111
defget_HostName(self):
106112
returnself.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-
defget_ScalingRuleName(self):
27-
returnself.get_query_params().get('ScalingRuleName')
28-
29-
defset_ScalingRuleName(self,ScalingRuleName):
30-
self.add_query_param('ScalingRuleName',ScalingRuleName)
31-
3226
defget_ResourceOwnerAccount(self):
3327
returnself.get_query_params().get('ResourceOwnerAccount')
3428

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

44+
defget_EstimatedInstanceWarmup(self):
45+
returnself.get_query_params().get('EstimatedInstanceWarmup')
46+
47+
defset_EstimatedInstanceWarmup(self,EstimatedInstanceWarmup):
48+
self.add_query_param('EstimatedInstanceWarmup',EstimatedInstanceWarmup)
49+
5050
defget_OwnerAccount(self):
5151
returnself.get_query_params().get('OwnerAccount')
5252

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

56-
defget_Cooldown(self):
57-
returnself.get_query_params().get('Cooldown')
58-
59-
defset_Cooldown(self,Cooldown):
60-
self.add_query_param('Cooldown',Cooldown)
61-
6256
defget_AdjustmentType(self):
6357
returnself.get_query_params().get('AdjustmentType')
6458

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

62+
defget_DisableScaleIn(self):
63+
returnself.get_query_params().get('DisableScaleIn')
64+
65+
defset_DisableScaleIn(self,DisableScaleIn):
66+
self.add_query_param('DisableScaleIn',DisableScaleIn)
67+
6868
defget_OwnerId(self):
6969
returnself.get_query_params().get('OwnerId')
7070

7171
defset_OwnerId(self,OwnerId):
72-
self.add_query_param('OwnerId',OwnerId)
72+
self.add_query_param('OwnerId',OwnerId)
73+
74+
defget_ScalingRuleName(self):
75+
returnself.get_query_params().get('ScalingRuleName')
76+
77+
defset_ScalingRuleName(self,ScalingRuleName):
78+
self.add_query_param('ScalingRuleName',ScalingRuleName)
79+
80+
defget_Cooldown(self):
81+
returnself.get_query_params().get('Cooldown')
82+
83+
defset_Cooldown(self,Cooldown):
84+
self.add_query_param('Cooldown',Cooldown)
85+
86+
defget_TargetValue(self):
87+
returnself.get_query_params().get('TargetValue')
88+
89+
defset_TargetValue(self,TargetValue):
90+
self.add_query_param('TargetValue',TargetValue)
91+
92+
defget_ScalingRuleType(self):
93+
returnself.get_query_params().get('ScalingRuleType')
94+
95+
defset_ScalingRuleType(self,ScalingRuleType):
96+
self.add_query_param('ScalingRuleType',ScalingRuleType)
97+
98+
defget_MetricName(self):
99+
returnself.get_query_params().get('MetricName')
100+
101+
defset_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+
fromaliyunsdkcore.requestimportRpcRequest
21+
classDescribeAccountAttributesRequest(RpcRequest):
22+
23+
def__init__(self):
24+
RpcRequest.__init__(self,'Ess','2014-08-28','DescribeAccountAttributes','ess')
25+
26+
defget_ResourceOwnerAccount(self):
27+
returnself.get_query_params().get('ResourceOwnerAccount')
28+
29+
defset_ResourceOwnerAccount(self,ResourceOwnerAccount):
30+
self.add_query_param('ResourceOwnerAccount',ResourceOwnerAccount)
31+
32+
defget_OwnerId(self):
33+
returnself.get_query_params().get('OwnerId')
34+
35+
defset_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
defset_PageSize(self,PageSize):
108108
self.add_query_param('PageSize',PageSize)
109109

110+
defget_ScalingRuleType(self):
111+
returnself.get_query_params().get('ScalingRuleType')
112+
113+
defset_ScalingRuleType(self,ScalingRuleType):
114+
self.add_query_param('ScalingRuleType',ScalingRuleType)
115+
110116
defget_ScalingRuleId10(self):
111117
returnself.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+
defget_MetricType(self):
27+
returnself.get_query_params().get('MetricType')
28+
29+
defset_MetricType(self,MetricType):
30+
self.add_query_param('MetricType',MetricType)
31+
32+
defget_Period(self):
33+
returnself.get_query_params().get('Period')
34+
35+
defset_Period(self,Period):
36+
self.add_query_param('Period',Period)
37+
2638
defget_ResourceOwnerAccount(self):
2739
returnself.get_query_params().get('ResourceOwnerAccount')
2840

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

32-
defget_Name(self):
33-
returnself.get_query_params().get('Name')
44+
defget_GroupId(self):
45+
returnself.get_query_params().get('GroupId')
3446

35-
defset_Name(self,Name):
36-
self.add_query_param('Name',Name)
47+
defset_GroupId(self,GroupId):
48+
self.add_query_param('GroupId',GroupId)
3749

3850
defget_Description(self):
3951
returnself.get_query_params().get('Description')
@@ -49,6 +61,12 @@ def set_AlarmActions(self,AlarmActions):
4961
ifAlarmActions[i]isnotNone:
5062
self.add_query_param('AlarmAction.'+str(i+1) ,AlarmActions[i]);
5163

64+
defget_Threshold(self):
65+
returnself.get_query_params().get('Threshold')
66+
67+
defset_Threshold(self,Threshold):
68+
self.add_query_param('Threshold',Threshold)
69+
5270
defget_OwnerId(self):
5371
returnself.get_query_params().get('OwnerId')
5472

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

6179
defset_AlarmTaskId(self,AlarmTaskId):
62-
self.add_query_param('AlarmTaskId',AlarmTaskId)
80+
self.add_query_param('AlarmTaskId',AlarmTaskId)
81+
82+
defget_Name(self):
83+
returnself.get_query_params().get('Name')
84+
85+
defset_Name(self,Name):
86+
self.add_query_param('Name',Name)
87+
88+
defget_EvaluationCount(self):
89+
returnself.get_query_params().get('EvaluationCount')
90+
91+
defset_EvaluationCount(self,EvaluationCount):
92+
self.add_query_param('EvaluationCount',EvaluationCount)
93+
94+
defget_MetricName(self):
95+
returnself.get_query_params().get('MetricName')
96+
97+
defset_MetricName(self,MetricName):
98+
self.add_query_param('MetricName',MetricName)
99+
100+
defget_ComparisonOperator(self):
101+
returnself.get_query_params().get('ComparisonOperator')
102+
103+
defset_ComparisonOperator(self,ComparisonOperator):
104+
self.add_query_param('ComparisonOperator',ComparisonOperator)
105+
106+
defget_Dimensions(self):
107+
returnself.get_query_params().get('Dimensions')
108+
109+
defset_Dimensions(self,Dimensions):
110+
foriinrange(len(Dimensions)):
111+
ifDimensions[i].get('DimensionValue')isnotNone:
112+
self.add_query_param('Dimension.'+str(i+1)+'.DimensionValue' ,Dimensions[i].get('DimensionValue'))
113+
ifDimensions[i].get('DimensionKey')isnotNone:
114+
self.add_query_param('Dimension.'+str(i+1)+'.DimensionKey' ,Dimensions[i].get('DimensionKey'))
115+
116+
117+
defget_Statistics(self):
118+
returnself.get_query_params().get('Statistics')
119+
120+
defset_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
defset_UserData(self,UserData):
9191
self.add_query_param('UserData',UserData)
9292

93+
defget_ResourceGroupId(self):
94+
returnself.get_query_params().get('ResourceGroupId')
95+
96+
defset_ResourceGroupId(self,ResourceGroupId):
97+
self.add_query_param('ResourceGroupId',ResourceGroupId)
98+
9399
defget_HostName(self):
94100
returnself.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-
fromaliyunsdkcore.requestimportRpcRequest
21-
classModifyScalingGroupRequest(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+
fromaliyunsdkcore.requestimportRpcRequest
21+
classModifyScalingGroupRequest(RpcRequest):
22+
23+
def__init__(self):
2424
RpcRequest.__init__(self,'Ess','2014-08-28','ModifyScalingGroup','ess')
2525

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

62+
defget_VSwitchIds(self):
63+
returnself.get_query_params().get('VSwitchIds')
64+
65+
defset_VSwitchIds(self,VSwitchIds):
66+
foriinrange(len(VSwitchIds)):
67+
ifVSwitchIds[i]isnotNone:
68+
self.add_query_param('VSwitchIds.'+str(i+1) ,VSwitchIds[i]);
69+
6270
defget_OwnerAccount(self):
6371
returnself.get_query_params().get('OwnerAccount')
6472

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp