Skip to content

Commit e490ca6

Browse files
committed
Add SupportedBootModes for DescribeInstanceTypes.
1 parent 517460c commit e490ca6

14 files changed

+415
-1
lines changed

aliyun-python-sdk-ecs/ChangeLog.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2024-04-26 Version: 4.24.72
2+
- Add SupportedBootModes for DescribeInstanceTypes.
3+
14
2024-02-01 Version: 4.24.71
25
- Support DryRun for DeleteInstance.
36
- Support DryRun for ModifyInstanceSpec.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '4.24.71'
1+
__version__ = '4.24.72'

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

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,12 @@ def set_LaunchConfigurationDataDisks(self, LaunchConfigurationDataDisk): # Repe
5656
self.add_query_param('LaunchConfiguration.DataDisk.' + str(depth1 + 1) + '.DeleteWithInstance', LaunchConfigurationDataDisk[depth1].get('DeleteWithInstance'))
5757
if LaunchConfigurationDataDisk[depth1].get('Encrypted') is not None:
5858
self.add_query_param('LaunchConfiguration.DataDisk.' + str(depth1 + 1) + '.Encrypted', LaunchConfigurationDataDisk[depth1].get('Encrypted'))
59+
if LaunchConfigurationDataDisk[depth1].get('EncryptAlgorithm') is not None:
60+
self.add_query_param('LaunchConfiguration.DataDisk.' + str(depth1 + 1) + '.EncryptAlgorithm', LaunchConfigurationDataDisk[depth1].get('EncryptAlgorithm'))
61+
if LaunchConfigurationDataDisk[depth1].get('ProvisionedIops') is not None:
62+
self.add_query_param('LaunchConfiguration.DataDisk.' + str(depth1 + 1) + '.ProvisionedIops', LaunchConfigurationDataDisk[depth1].get('ProvisionedIops'))
63+
if LaunchConfigurationDataDisk[depth1].get('BurstingEnabled') is not None:
64+
self.add_query_param('LaunchConfiguration.DataDisk.' + str(depth1 + 1) + '.BurstingEnabled', LaunchConfigurationDataDisk[depth1].get('BurstingEnabled'))
5965
def get_ResourceOwnerId(self): # Long
6066
return self.get_query_params().get('ResourceOwnerId')
6167

@@ -123,6 +129,15 @@ def get_DefaultTargetCapacityType(self): # String
123129

124130
def set_DefaultTargetCapacityType(self, DefaultTargetCapacityType): # String
125131
self.add_query_param('DefaultTargetCapacityType', DefaultTargetCapacityType)
132+
def get_Tags(self): # RepeatList
133+
return self.get_query_params().get('Tag')
134+
135+
def set_Tags(self, Tag): # RepeatList
136+
for depth1 in range(len(Tag)):
137+
if Tag[depth1].get('Key') is not None:
138+
self.add_query_param('Tag.' + str(depth1 + 1) + '.Key', Tag[depth1].get('Key'))
139+
if Tag[depth1].get('Value') is not None:
140+
self.add_query_param('Tag.' + str(depth1 + 1) + '.Value', Tag[depth1].get('Value'))
126141
def get_LaunchConfigurationKeyPairName(self): # String
127142
return self.get_query_params().get('LaunchConfiguration.KeyPairName')
128143

@@ -243,6 +258,10 @@ def set_LaunchConfigurationSystemDisk(self, LaunchConfigurationSystemDisk): # S
243258
self.add_query_param('LaunchConfiguration.SystemDisk.KMSKeyId', LaunchConfigurationSystemDisk.get('KMSKeyId'))
244259
if LaunchConfigurationSystemDisk.get('EncryptAlgorithm') is not None:
245260
self.add_query_param('LaunchConfiguration.SystemDisk.EncryptAlgorithm', LaunchConfigurationSystemDisk.get('EncryptAlgorithm'))
261+
if LaunchConfigurationSystemDisk.get('ProvisionedIops') is not None:
262+
self.add_query_param('LaunchConfiguration.SystemDisk.ProvisionedIops', LaunchConfigurationSystemDisk.get('ProvisionedIops'))
263+
if LaunchConfigurationSystemDisk.get('BurstingEnabled') is not None:
264+
self.add_query_param('LaunchConfiguration.SystemDisk.BurstingEnabled', LaunchConfigurationSystemDisk.get('BurstingEnabled'))
246265
def get_LaunchConfigurationInstanceName(self): # String
247266
return self.get_query_params().get('LaunchConfiguration.InstanceName')
248267

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

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,22 @@ def get_ResourceOwnerId(self): # Long
3636

3737
def set_ResourceOwnerId(self, ResourceOwnerId): # Long
3838
self.add_query_param('ResourceOwnerId', ResourceOwnerId)
39+
def get_CopyEncryptionConfiguration(self): # Struct
40+
return self.get_query_params().get('CopyEncryptionConfiguration')
41+
42+
def set_CopyEncryptionConfiguration(self, CopyEncryptionConfiguration): # Struct
43+
if CopyEncryptionConfiguration.get('Encrypted') is not None:
44+
self.add_query_param('CopyEncryptionConfiguration.Encrypted', CopyEncryptionConfiguration.get('Encrypted'))
45+
if CopyEncryptionConfiguration.get('KMSKeyId') is not None:
46+
self.add_query_param('CopyEncryptionConfiguration.KMSKeyId', CopyEncryptionConfiguration.get('KMSKeyId'))
47+
if CopyEncryptionConfiguration.get('Arn') is not None:
48+
for index1, value1 in enumerate(CopyEncryptionConfiguration.get('Arn')):
49+
if value1.get('Rolearn') is not None:
50+
self.add_query_param('CopyEncryptionConfiguration.Arn.' + str(index1 + 1) + '.Rolearn', value1.get('Rolearn'))
51+
if value1.get('RoleType') is not None:
52+
self.add_query_param('CopyEncryptionConfiguration.Arn.' + str(index1 + 1) + '.RoleType', value1.get('RoleType'))
53+
if value1.get('AssumeRoleFor') is not None:
54+
self.add_query_param('CopyEncryptionConfiguration.Arn.' + str(index1 + 1) + '.AssumeRoleFor', value1.get('AssumeRoleFor'))
3955
def get_CopiedSnapshotsRetentionDays(self): # Integer
4056
return self.get_query_params().get('CopiedSnapshotsRetentionDays')
4157

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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,15 @@ def get_PageSize(self): # Integer
5151

5252
def set_PageSize(self, PageSize): # Integer
5353
self.add_query_param('PageSize', PageSize)
54+
def get_Tags(self): # RepeatList
55+
return self.get_query_params().get('Tag')
56+
57+
def set_Tags(self, Tag): # RepeatList
58+
for depth1 in range(len(Tag)):
59+
if Tag[depth1].get('Key') is not None:
60+
self.add_query_param('Tag.' + str(depth1 + 1) + '.Key', Tag[depth1].get('Key'))
61+
if Tag[depth1].get('Value') is not None:
62+
self.add_query_param('Tag.' + str(depth1 + 1) + '.Value', Tag[depth1].get('Value'))
5463
def get_AutoProvisioningGroupStatuss(self): # RepeatList
5564
return self.get_query_params().get('AutoProvisioningGroupStatus')
5665

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
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+
#
10+
# http://www.apache.org/licenses/LICENSE-2.0
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+
from aliyunsdkecs.endpoint import endpoint_data
22+
23+
class DescribeCloudAssistantSettingsRequest(RpcRequest):
24+
25+
def __init__(self):
26+
RpcRequest.__init__(self, 'Ecs', '2014-05-26', 'DescribeCloudAssistantSettings','ecs')
27+
self.set_method('POST')
28+
29+
if hasattr(self, "endpoint_map"):
30+
setattr(self, "endpoint_map", endpoint_data.getEndpointMap())
31+
if hasattr(self, "endpoint_regional"):
32+
setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())
33+
34+
def get_ResourceOwnerId(self): # Long
35+
return self.get_query_params().get('ResourceOwnerId')
36+
37+
def set_ResourceOwnerId(self, ResourceOwnerId): # Long
38+
self.add_query_param('ResourceOwnerId', ResourceOwnerId)
39+
def get_SettingTypes(self): # RepeatList
40+
return self.get_query_params().get('SettingType')
41+
42+
def set_SettingTypes(self, SettingType): # RepeatList
43+
for depth1 in range(len(SettingType)):
44+
self.add_query_param('SettingType.' + str(depth1 + 1), SettingType[depth1])
45+
def get_ResourceOwnerAccount(self): # String
46+
return self.get_query_params().get('ResourceOwnerAccount')
47+
48+
def set_ResourceOwnerAccount(self, ResourceOwnerAccount): # String
49+
self.add_query_param('ResourceOwnerAccount', ResourceOwnerAccount)
50+
def get_OwnerAccount(self): # String
51+
return self.get_query_params().get('OwnerAccount')
52+
53+
def set_OwnerAccount(self, OwnerAccount): # String
54+
self.add_query_param('OwnerAccount', OwnerAccount)
55+
def get_OwnerId(self): # Long
56+
return self.get_query_params().get('OwnerId')
57+
58+
def set_OwnerId(self, OwnerId): # Long
59+
self.add_query_param('OwnerId', OwnerId)

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

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

6262
def set_LockReason(self, LockReason): # String
6363
self.add_query_param('LockReason', LockReason)
64+
def get_NextToken(self): # String
65+
return self.get_query_params().get('NextToken')
66+
67+
def set_NextToken(self, NextToken): # String
68+
self.add_query_param('NextToken', NextToken)
6469
def get_PageSize(self): # Integer
6570
return self.get_query_params().get('PageSize')
6671

@@ -110,6 +115,11 @@ def get_ZoneId(self): # String
110115

111116
def set_ZoneId(self, ZoneId): # String
112117
self.add_query_param('ZoneId', ZoneId)
118+
def get_MaxResults(self): # Integer
119+
return self.get_query_params().get('MaxResults')
120+
121+
def set_MaxResults(self, MaxResults): # Integer
122+
self.add_query_param('MaxResults', MaxResults)
113123
def get_Status(self): # String
114124
return self.get_query_params().get('Status')
115125

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

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,11 +76,23 @@ def get_MinimumCpuCoreCount(self): # Integer
7676

7777
def set_MinimumCpuCoreCount(self, MinimumCpuCoreCount): # Integer
7878
self.add_query_param('MinimumCpuCoreCount', MinimumCpuCoreCount)
79+
def get_LocalStorageCategoriess(self): # RepeatList
80+
return self.get_query_params().get('LocalStorageCategories')
81+
82+
def set_LocalStorageCategoriess(self, LocalStorageCategories): # RepeatList
83+
for depth1 in range(len(LocalStorageCategories)):
84+
self.add_query_param('LocalStorageCategories.' + str(depth1 + 1), LocalStorageCategories[depth1])
7985
def get_MinimumPrimaryEniQueueNumber(self): # Integer
8086
return self.get_query_params().get('MinimumPrimaryEniQueueNumber')
8187

8288
def set_MinimumPrimaryEniQueueNumber(self, MinimumPrimaryEniQueueNumber): # Integer
8389
self.add_query_param('MinimumPrimaryEniQueueNumber', MinimumPrimaryEniQueueNumber)
90+
def get_InstanceTypeFamiliess(self): # RepeatList
91+
return self.get_query_params().get('InstanceTypeFamilies')
92+
93+
def set_InstanceTypeFamiliess(self, InstanceTypeFamilies): # RepeatList
94+
for depth1 in range(len(InstanceTypeFamilies)):
95+
self.add_query_param('InstanceTypeFamilies.' + str(depth1 + 1), InstanceTypeFamilies[depth1])
8496
def get_MinimumBaselineCredit(self): # Integer
8597
return self.get_query_params().get('MinimumBaselineCredit')
8698

@@ -91,11 +103,23 @@ def get_MinimumSecondaryEniQueueNumber(self): # Integer
91103

92104
def set_MinimumSecondaryEniQueueNumber(self, MinimumSecondaryEniQueueNumber): # Integer
93105
self.add_query_param('MinimumSecondaryEniQueueNumber', MinimumSecondaryEniQueueNumber)
106+
def get_CpuArchitecturess(self): # RepeatList
107+
return self.get_query_params().get('CpuArchitectures')
108+
109+
def set_CpuArchitecturess(self, CpuArchitectures): # RepeatList
110+
for depth1 in range(len(CpuArchitectures)):
111+
self.add_query_param('CpuArchitectures.' + str(depth1 + 1), CpuArchitectures[depth1])
94112
def get_MinimumInstanceBandwidthTx(self): # Integer
95113
return self.get_query_params().get('MinimumInstanceBandwidthTx')
96114

97115
def set_MinimumInstanceBandwidthTx(self, MinimumInstanceBandwidthTx): # Integer
98116
self.add_query_param('MinimumInstanceBandwidthTx', MinimumInstanceBandwidthTx)
117+
def get_InstanceCategoriess(self): # RepeatList
118+
return self.get_query_params().get('InstanceCategories')
119+
120+
def set_InstanceCategoriess(self, InstanceCategories): # RepeatList
121+
for depth1 in range(len(InstanceCategories)):
122+
self.add_query_param('InstanceCategories.' + str(depth1 + 1), InstanceCategories[depth1])
99123
def get_MinimumGPUAmount(self): # Integer
100124
return self.get_query_params().get('MinimumGPUAmount')
101125

@@ -116,6 +140,12 @@ def get_OwnerId(self): # Long
116140

117141
def set_OwnerId(self, OwnerId): # Long
118142
self.add_query_param('OwnerId', OwnerId)
143+
def get_PhysicalProcessorModelss(self): # RepeatList
144+
return self.get_query_params().get('PhysicalProcessorModels')
145+
146+
def set_PhysicalProcessorModelss(self, PhysicalProcessorModels): # RepeatList
147+
for depth1 in range(len(PhysicalProcessorModels)):
148+
self.add_query_param('PhysicalProcessorModels.' + str(depth1 + 1), PhysicalProcessorModels[depth1])
119149
def get_MinimumMemorySize(self): # Float
120150
return self.get_query_params().get('MinimumMemorySize')
121151

@@ -232,6 +262,12 @@ def get_MinimumEniPrivateIpAddressQuantity(self): # Integer
232262

233263
def set_MinimumEniPrivateIpAddressQuantity(self, MinimumEniPrivateIpAddressQuantity): # Integer
234264
self.add_query_param('MinimumEniPrivateIpAddressQuantity', MinimumEniPrivateIpAddressQuantity)
265+
def get_GpuSpecss(self): # RepeatList
266+
return self.get_query_params().get('GpuSpecs')
267+
268+
def set_GpuSpecss(self, GpuSpecs): # RepeatList
269+
for depth1 in range(len(GpuSpecs)):
270+
self.add_query_param('GpuSpecs.' + str(depth1 + 1), GpuSpecs[depth1])
235271
def get_MinimumLocalStorageCapacity(self): # Long
236272
return self.get_query_params().get('MinimumLocalStorageCapacity')
237273

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
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+
#
10+
# http://www.apache.org/licenses/LICENSE-2.0
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+
from aliyunsdkecs.endpoint import endpoint_data
22+
23+
class DescribeTerminalSessionsRequest(RpcRequest):
24+
25+
def __init__(self):
26+
RpcRequest.__init__(self, 'Ecs', '2014-05-26', 'DescribeTerminalSessions','ecs')
27+
self.set_method('POST')
28+
29+
if hasattr(self, "endpoint_map"):
30+
setattr(self, "endpoint_map", endpoint_data.getEndpointMap())
31+
if hasattr(self, "endpoint_regional"):
32+
setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())
33+
34+
def get_ResourceOwnerId(self): # Long
35+
return self.get_query_params().get('ResourceOwnerId')
36+
37+
def set_ResourceOwnerId(self, ResourceOwnerId): # Long
38+
self.add_query_param('ResourceOwnerId', ResourceOwnerId)
39+
def get_SessionId(self): # String
40+
return self.get_query_params().get('SessionId')
41+
42+
def set_SessionId(self, SessionId): # String
43+
self.add_query_param('SessionId', SessionId)
44+
def get_NextToken(self): # String
45+
return self.get_query_params().get('NextToken')
46+
47+
def set_NextToken(self, NextToken): # String
48+
self.add_query_param('NextToken', NextToken)
49+
def get_ResourceOwnerAccount(self): # String
50+
return self.get_query_params().get('ResourceOwnerAccount')
51+
52+
def set_ResourceOwnerAccount(self, ResourceOwnerAccount): # String
53+
self.add_query_param('ResourceOwnerAccount', ResourceOwnerAccount)
54+
def get_OwnerAccount(self): # String
55+
return self.get_query_params().get('OwnerAccount')
56+
57+
def set_OwnerAccount(self, OwnerAccount): # String
58+
self.add_query_param('OwnerAccount', OwnerAccount)
59+
def get_OwnerId(self): # Long
60+
return self.get_query_params().get('OwnerId')
61+
62+
def set_OwnerId(self, OwnerId): # Long
63+
self.add_query_param('OwnerId', OwnerId)
64+
def get_InstanceId(self): # String
65+
return self.get_query_params().get('InstanceId')
66+
67+
def set_InstanceId(self, InstanceId): # String
68+
self.add_query_param('InstanceId', InstanceId)
69+
def get_MaxResults(self): # Integer
70+
return self.get_query_params().get('MaxResults')
71+
72+
def set_MaxResults(self, MaxResults): # Integer
73+
self.add_query_param('MaxResults', MaxResults)

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,11 @@ def get_ImageName(self): # String
7878

7979
def set_ImageName(self, ImageName): # String
8080
self.add_query_param('ImageName', ImageName)
81+
def get_StorageLocationArn(self): # String
82+
return self.get_query_params().get('StorageLocationArn')
83+
84+
def set_StorageLocationArn(self, StorageLocationArn): # String
85+
self.add_query_param('StorageLocationArn', StorageLocationArn)
8186
def get_Tags(self): # RepeatList
8287
return self.get_query_params().get('Tag')
8388

0 commit comments

Comments
 (0)