Skip to content

Commit 377698f

Browse files
committed
Ecs support hibernation.
1 parent a698836 commit 377698f

17 files changed

+243
-1
lines changed

aliyun-python-sdk-ecs/ChangeLog.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
2021-03-31 Version: 4.23.11
2+
- Ecs support hibernation.
3+
- DescribeSnapshotGroups add ProgressStatus.
4+
15
2021-02-22 Version: 4.23.10
26
- Support input parameter DeploymentSetId for CreateAutoProvisioningGroup.
37

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '4.23.9'
1+
__version__ = '4.23.11'

aliyun-python-sdk-ecs/aliyunsdkecs/request/v20140526/AllocateDedicatedHostsRequest.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,12 @@ def get_ResourceGroupId(self):
6161
def set_ResourceGroupId(self,ResourceGroupId):
6262
self.add_query_param('ResourceGroupId',ResourceGroupId)
6363

64+
def get_MinQuantity(self):
65+
return self.get_query_params().get('MinQuantity')
66+
67+
def set_MinQuantity(self,MinQuantity):
68+
self.add_query_param('MinQuantity',MinQuantity)
69+
6470
def get_ActionOnMaintenance(self):
6571
return self.get_query_params().get('ActionOnMaintenance')
6672

aliyun-python-sdk-ecs/aliyunsdkecs/request/v20140526/CreateAutoProvisioningGroupRequest.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -309,6 +309,12 @@ def set_LaunchConfigurationTags(self, LaunchConfigurationTags):
309309
if LaunchConfigurationTags[depth1].get('Value') is not None:
310310
self.add_query_param('LaunchConfiguration.Tag.' + str(depth1 + 1) + '.Value', LaunchConfigurationTags[depth1].get('Value'))
311311

312+
def get_LaunchConfigurationDeploymentSetId(self):
313+
return self.get_query_params().get('LaunchConfiguration.DeploymentSetId')
314+
315+
def set_LaunchConfigurationDeploymentSetId(self,LaunchConfigurationDeploymentSetId):
316+
self.add_query_param('LaunchConfiguration.DeploymentSetId',LaunchConfigurationDeploymentSetId)
317+
312318
def get_ResourceOwnerAccount(self):
313319
return self.get_query_params().get('ResourceOwnerAccount')
314320

aliyun-python-sdk-ecs/aliyunsdkecs/request/v20140526/CreateCapacityReservationRequest.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,12 @@ def get_Platform(self):
6161
def set_Platform(self,Platform):
6262
self.add_query_param('Platform',Platform)
6363

64+
def get_ResourceGroupId(self):
65+
return self.get_query_params().get('ResourceGroupId')
66+
67+
def set_ResourceGroupId(self,ResourceGroupId):
68+
self.add_query_param('ResourceGroupId',ResourceGroupId)
69+
6470
def get_PrivatePoolOptionsMatchCriteria(self):
6571
return self.get_query_params().get('PrivatePoolOptions.MatchCriteria')
6672

@@ -73,6 +79,16 @@ def get_InstanceType(self):
7379
def set_InstanceType(self,InstanceType):
7480
self.add_query_param('InstanceType',InstanceType)
7581

82+
def get_Tags(self):
83+
return self.get_query_params().get('Tag')
84+
85+
def set_Tags(self, Tags):
86+
for depth1 in range(len(Tags)):
87+
if Tags[depth1].get('Key') is not None:
88+
self.add_query_param('Tag.' + str(depth1 + 1) + '.Key', Tags[depth1].get('Key'))
89+
if Tags[depth1].get('Value') is not None:
90+
self.add_query_param('Tag.' + str(depth1 + 1) + '.Value', Tags[depth1].get('Value'))
91+
7692
def get_EndTimeType(self):
7793
return self.get_query_params().get('EndTimeType')
7894

aliyun-python-sdk-ecs/aliyunsdkecs/request/v20140526/CreateElasticityAssuranceRequest.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,12 @@ def get_StartTime(self):
5555
def set_StartTime(self,StartTime):
5656
self.add_query_param('StartTime',StartTime)
5757

58+
def get_ResourceGroupId(self):
59+
return self.get_query_params().get('ResourceGroupId')
60+
61+
def set_ResourceGroupId(self,ResourceGroupId):
62+
self.add_query_param('ResourceGroupId',ResourceGroupId)
63+
5864
def get_PrivatePoolOptionsMatchCriteria(self):
5965
return self.get_query_params().get('PrivatePoolOptions.MatchCriteria')
6066

@@ -69,6 +75,16 @@ def set_InstanceTypes(self, InstanceTypes):
6975
if InstanceTypes[depth1] is not None:
7076
self.add_query_param('InstanceType.' + str(depth1 + 1) , InstanceTypes[depth1])
7177

78+
def get_Tags(self):
79+
return self.get_query_params().get('Tag')
80+
81+
def set_Tags(self, Tags):
82+
for depth1 in range(len(Tags)):
83+
if Tags[depth1].get('Key') is not None:
84+
self.add_query_param('Tag.' + str(depth1 + 1) + '.Key', Tags[depth1].get('Key'))
85+
if Tags[depth1].get('Value') is not None:
86+
self.add_query_param('Tag.' + str(depth1 + 1) + '.Value', Tags[depth1].get('Value'))
87+
7288
def get_Period(self):
7389
return self.get_query_params().get('Period')
7490

aliyun-python-sdk-ecs/aliyunsdkecs/request/v20140526/CreateInstanceRequest.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,12 @@ def get_InternetMaxBandwidthOut(self):
263263
def set_InternetMaxBandwidthOut(self,InternetMaxBandwidthOut):
264264
self.add_query_param('InternetMaxBandwidthOut',InternetMaxBandwidthOut)
265265

266+
def get_HibernationOptionsConfigured(self):
267+
return self.get_query_params().get('HibernationOptions.Configured')
268+
269+
def set_HibernationOptionsConfigured(self,HibernationOptionsConfigured):
270+
self.add_query_param('HibernationOptions.Configured',HibernationOptionsConfigured)
271+
266272
def get_Description(self):
267273
return self.get_query_params().get('Description')
268274

aliyun-python-sdk-ecs/aliyunsdkecs/request/v20140526/DescribeCapacityReservationsRequest.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,12 @@ def get_Platform(self):
4343
def set_Platform(self,Platform):
4444
self.add_query_param('Platform',Platform)
4545

46+
def get_ResourceGroupId(self):
47+
return self.get_query_params().get('ResourceGroupId')
48+
49+
def set_ResourceGroupId(self,ResourceGroupId):
50+
self.add_query_param('ResourceGroupId',ResourceGroupId)
51+
4652
def get_NextToken(self):
4753
return self.get_query_params().get('NextToken')
4854

@@ -55,6 +61,16 @@ def get_InstanceType(self):
5561
def set_InstanceType(self,InstanceType):
5662
self.add_query_param('InstanceType',InstanceType)
5763

64+
def get_Tags(self):
65+
return self.get_query_params().get('Tag')
66+
67+
def set_Tags(self, Tags):
68+
for depth1 in range(len(Tags)):
69+
if Tags[depth1].get('Key') is not None:
70+
self.add_query_param('Tag.' + str(depth1 + 1) + '.Key', Tags[depth1].get('Key'))
71+
if Tags[depth1].get('Value') is not None:
72+
self.add_query_param('Tag.' + str(depth1 + 1) + '.Value', Tags[depth1].get('Value'))
73+
5874
def get_InstanceChargeType(self):
5975
return self.get_query_params().get('InstanceChargeType')
6076

aliyun-python-sdk-ecs/aliyunsdkecs/request/v20140526/DescribeCloudAssistantStatusRequest.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,18 @@ def get_ResourceOwnerId(self):
3737
def set_ResourceOwnerId(self,ResourceOwnerId):
3838
self.add_query_param('ResourceOwnerId',ResourceOwnerId)
3939

40+
def get_PageNumber(self):
41+
return self.get_query_params().get('PageNumber')
42+
43+
def set_PageNumber(self,PageNumber):
44+
self.add_query_param('PageNumber',PageNumber)
45+
46+
def get_PageSize(self):
47+
return self.get_query_params().get('PageSize')
48+
49+
def set_PageSize(self,PageSize):
50+
self.add_query_param('PageSize',PageSize)
51+
4052
def get_ResourceOwnerAccount(self):
4153
return self.get_query_params().get('ResourceOwnerAccount')
4254

@@ -49,6 +61,12 @@ def get_OwnerAccount(self):
4961
def set_OwnerAccount(self,OwnerAccount):
5062
self.add_query_param('OwnerAccount',OwnerAccount)
5163

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

aliyun-python-sdk-ecs/aliyunsdkecs/request/v20140526/DescribeElasticityAssurancesRequest.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,12 @@ def get_Platform(self):
4343
def set_Platform(self,Platform):
4444
self.add_query_param('Platform',Platform)
4545

46+
def get_ResourceGroupId(self):
47+
return self.get_query_params().get('ResourceGroupId')
48+
49+
def set_ResourceGroupId(self,ResourceGroupId):
50+
self.add_query_param('ResourceGroupId',ResourceGroupId)
51+
4652
def get_NextToken(self):
4753
return self.get_query_params().get('NextToken')
4854

@@ -55,6 +61,16 @@ def get_InstanceType(self):
5561
def set_InstanceType(self,InstanceType):
5662
self.add_query_param('InstanceType',InstanceType)
5763

64+
def get_Tags(self):
65+
return self.get_query_params().get('Tag')
66+
67+
def set_Tags(self, Tags):
68+
for depth1 in range(len(Tags)):
69+
if Tags[depth1].get('Key') is not None:
70+
self.add_query_param('Tag.' + str(depth1 + 1) + '.Key', Tags[depth1].get('Key'))
71+
if Tags[depth1].get('Value') is not None:
72+
self.add_query_param('Tag.' + str(depth1 + 1) + '.Value', Tags[depth1].get('Value'))
73+
5874
def get_InstanceChargeType(self):
5975
return self.get_query_params().get('InstanceChargeType')
6076

0 commit comments

Comments
 (0)