Skip to content

Commit

Permalink
Add SupportedBootModes for DescribeInstanceTypes.
Browse files Browse the repository at this point in the history
  • Loading branch information
sdk-team committed Apr 26, 2024
1 parent 517460c commit e490ca6
Show file tree
Hide file tree
Showing 14 changed files with 415 additions and 1 deletion.
3 changes: 3 additions & 0 deletions aliyun-python-sdk-ecs/ChangeLog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
2024-04-26 Version: 4.24.72
- Add SupportedBootModes for DescribeInstanceTypes.

2024-02-01 Version: 4.24.71
- Support DryRun for DeleteInstance.
- Support DryRun for ModifyInstanceSpec.
Expand Down
2 changes: 1 addition & 1 deletion aliyun-python-sdk-ecs/aliyunsdkecs/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '4.24.71'
__version__ = '4.24.72'
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,12 @@ def set_LaunchConfigurationDataDisks(self, LaunchConfigurationDataDisk): # Repe
self.add_query_param('LaunchConfiguration.DataDisk.' + str(depth1 + 1) + '.DeleteWithInstance', LaunchConfigurationDataDisk[depth1].get('DeleteWithInstance'))
if LaunchConfigurationDataDisk[depth1].get('Encrypted') is not None:
self.add_query_param('LaunchConfiguration.DataDisk.' + str(depth1 + 1) + '.Encrypted', LaunchConfigurationDataDisk[depth1].get('Encrypted'))
if LaunchConfigurationDataDisk[depth1].get('EncryptAlgorithm') is not None:
self.add_query_param('LaunchConfiguration.DataDisk.' + str(depth1 + 1) + '.EncryptAlgorithm', LaunchConfigurationDataDisk[depth1].get('EncryptAlgorithm'))
if LaunchConfigurationDataDisk[depth1].get('ProvisionedIops') is not None:
self.add_query_param('LaunchConfiguration.DataDisk.' + str(depth1 + 1) + '.ProvisionedIops', LaunchConfigurationDataDisk[depth1].get('ProvisionedIops'))
if LaunchConfigurationDataDisk[depth1].get('BurstingEnabled') is not None:
self.add_query_param('LaunchConfiguration.DataDisk.' + str(depth1 + 1) + '.BurstingEnabled', LaunchConfigurationDataDisk[depth1].get('BurstingEnabled'))
def get_ResourceOwnerId(self): # Long
return self.get_query_params().get('ResourceOwnerId')

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

def set_DefaultTargetCapacityType(self, DefaultTargetCapacityType): # String
self.add_query_param('DefaultTargetCapacityType', DefaultTargetCapacityType)
def get_Tags(self): # RepeatList
return self.get_query_params().get('Tag')

def set_Tags(self, Tag): # RepeatList
for depth1 in range(len(Tag)):
if Tag[depth1].get('Key') is not None:
self.add_query_param('Tag.' + str(depth1 + 1) + '.Key', Tag[depth1].get('Key'))
if Tag[depth1].get('Value') is not None:
self.add_query_param('Tag.' + str(depth1 + 1) + '.Value', Tag[depth1].get('Value'))
def get_LaunchConfigurationKeyPairName(self): # String
return self.get_query_params().get('LaunchConfiguration.KeyPairName')

Expand Down Expand Up @@ -243,6 +258,10 @@ def set_LaunchConfigurationSystemDisk(self, LaunchConfigurationSystemDisk): # S
self.add_query_param('LaunchConfiguration.SystemDisk.KMSKeyId', LaunchConfigurationSystemDisk.get('KMSKeyId'))
if LaunchConfigurationSystemDisk.get('EncryptAlgorithm') is not None:
self.add_query_param('LaunchConfiguration.SystemDisk.EncryptAlgorithm', LaunchConfigurationSystemDisk.get('EncryptAlgorithm'))
if LaunchConfigurationSystemDisk.get('ProvisionedIops') is not None:
self.add_query_param('LaunchConfiguration.SystemDisk.ProvisionedIops', LaunchConfigurationSystemDisk.get('ProvisionedIops'))
if LaunchConfigurationSystemDisk.get('BurstingEnabled') is not None:
self.add_query_param('LaunchConfiguration.SystemDisk.BurstingEnabled', LaunchConfigurationSystemDisk.get('BurstingEnabled'))
def get_LaunchConfigurationInstanceName(self): # String
return self.get_query_params().get('LaunchConfiguration.InstanceName')

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,22 @@ def get_ResourceOwnerId(self): # Long

def set_ResourceOwnerId(self, ResourceOwnerId): # Long
self.add_query_param('ResourceOwnerId', ResourceOwnerId)
def get_CopyEncryptionConfiguration(self): # Struct
return self.get_query_params().get('CopyEncryptionConfiguration')

def set_CopyEncryptionConfiguration(self, CopyEncryptionConfiguration): # Struct
if CopyEncryptionConfiguration.get('Encrypted') is not None:
self.add_query_param('CopyEncryptionConfiguration.Encrypted', CopyEncryptionConfiguration.get('Encrypted'))
if CopyEncryptionConfiguration.get('KMSKeyId') is not None:
self.add_query_param('CopyEncryptionConfiguration.KMSKeyId', CopyEncryptionConfiguration.get('KMSKeyId'))
if CopyEncryptionConfiguration.get('Arn') is not None:
for index1, value1 in enumerate(CopyEncryptionConfiguration.get('Arn')):
if value1.get('Rolearn') is not None:
self.add_query_param('CopyEncryptionConfiguration.Arn.' + str(index1 + 1) + '.Rolearn', value1.get('Rolearn'))
if value1.get('RoleType') is not None:
self.add_query_param('CopyEncryptionConfiguration.Arn.' + str(index1 + 1) + '.RoleType', value1.get('RoleType'))
if value1.get('AssumeRoleFor') is not None:
self.add_query_param('CopyEncryptionConfiguration.Arn.' + str(index1 + 1) + '.AssumeRoleFor', value1.get('AssumeRoleFor'))
def get_CopiedSnapshotsRetentionDays(self): # Integer
return self.get_query_params().get('CopiedSnapshotsRetentionDays')

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,15 @@ def get_PageSize(self): # Integer

def set_PageSize(self, PageSize): # Integer
self.add_query_param('PageSize', PageSize)
def get_Tags(self): # RepeatList
return self.get_query_params().get('Tag')

def set_Tags(self, Tag): # RepeatList
for depth1 in range(len(Tag)):
if Tag[depth1].get('Key') is not None:
self.add_query_param('Tag.' + str(depth1 + 1) + '.Key', Tag[depth1].get('Key'))
if Tag[depth1].get('Value') is not None:
self.add_query_param('Tag.' + str(depth1 + 1) + '.Value', Tag[depth1].get('Value'))
def get_AutoProvisioningGroupStatuss(self): # RepeatList
return self.get_query_params().get('AutoProvisioningGroupStatus')

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
# 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 aliyunsdkecs.endpoint import endpoint_data

class DescribeCloudAssistantSettingsRequest(RpcRequest):

def __init__(self):
RpcRequest.__init__(self, 'Ecs', '2014-05-26', 'DescribeCloudAssistantSettings','ecs')
self.set_method('POST')

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_ResourceOwnerId(self): # Long
return self.get_query_params().get('ResourceOwnerId')

def set_ResourceOwnerId(self, ResourceOwnerId): # Long
self.add_query_param('ResourceOwnerId', ResourceOwnerId)
def get_SettingTypes(self): # RepeatList
return self.get_query_params().get('SettingType')

def set_SettingTypes(self, SettingType): # RepeatList
for depth1 in range(len(SettingType)):
self.add_query_param('SettingType.' + str(depth1 + 1), SettingType[depth1])
def get_ResourceOwnerAccount(self): # String
return self.get_query_params().get('ResourceOwnerAccount')

def set_ResourceOwnerAccount(self, ResourceOwnerAccount): # String
self.add_query_param('ResourceOwnerAccount', ResourceOwnerAccount)
def get_OwnerAccount(self): # String
return self.get_query_params().get('OwnerAccount')

def set_OwnerAccount(self, OwnerAccount): # String
self.add_query_param('OwnerAccount', OwnerAccount)
def get_OwnerId(self): # Long
return self.get_query_params().get('OwnerId')

def set_OwnerId(self, OwnerId): # Long
self.add_query_param('OwnerId', OwnerId)
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,11 @@ def get_LockReason(self): # String

def set_LockReason(self, LockReason): # String
self.add_query_param('LockReason', LockReason)
def get_NextToken(self): # String
return self.get_query_params().get('NextToken')

def set_NextToken(self, NextToken): # String
self.add_query_param('NextToken', NextToken)
def get_PageSize(self): # Integer
return self.get_query_params().get('PageSize')

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

def set_ZoneId(self, ZoneId): # String
self.add_query_param('ZoneId', ZoneId)
def get_MaxResults(self): # Integer
return self.get_query_params().get('MaxResults')

def set_MaxResults(self, MaxResults): # Integer
self.add_query_param('MaxResults', MaxResults)
def get_Status(self): # String
return self.get_query_params().get('Status')

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,23 @@ def get_MinimumCpuCoreCount(self): # Integer

def set_MinimumCpuCoreCount(self, MinimumCpuCoreCount): # Integer
self.add_query_param('MinimumCpuCoreCount', MinimumCpuCoreCount)
def get_LocalStorageCategoriess(self): # RepeatList
return self.get_query_params().get('LocalStorageCategories')

def set_LocalStorageCategoriess(self, LocalStorageCategories): # RepeatList
for depth1 in range(len(LocalStorageCategories)):
self.add_query_param('LocalStorageCategories.' + str(depth1 + 1), LocalStorageCategories[depth1])
def get_MinimumPrimaryEniQueueNumber(self): # Integer
return self.get_query_params().get('MinimumPrimaryEniQueueNumber')

def set_MinimumPrimaryEniQueueNumber(self, MinimumPrimaryEniQueueNumber): # Integer
self.add_query_param('MinimumPrimaryEniQueueNumber', MinimumPrimaryEniQueueNumber)
def get_InstanceTypeFamiliess(self): # RepeatList
return self.get_query_params().get('InstanceTypeFamilies')

def set_InstanceTypeFamiliess(self, InstanceTypeFamilies): # RepeatList
for depth1 in range(len(InstanceTypeFamilies)):
self.add_query_param('InstanceTypeFamilies.' + str(depth1 + 1), InstanceTypeFamilies[depth1])
def get_MinimumBaselineCredit(self): # Integer
return self.get_query_params().get('MinimumBaselineCredit')

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

def set_MinimumSecondaryEniQueueNumber(self, MinimumSecondaryEniQueueNumber): # Integer
self.add_query_param('MinimumSecondaryEniQueueNumber', MinimumSecondaryEniQueueNumber)
def get_CpuArchitecturess(self): # RepeatList
return self.get_query_params().get('CpuArchitectures')

def set_CpuArchitecturess(self, CpuArchitectures): # RepeatList
for depth1 in range(len(CpuArchitectures)):
self.add_query_param('CpuArchitectures.' + str(depth1 + 1), CpuArchitectures[depth1])
def get_MinimumInstanceBandwidthTx(self): # Integer
return self.get_query_params().get('MinimumInstanceBandwidthTx')

def set_MinimumInstanceBandwidthTx(self, MinimumInstanceBandwidthTx): # Integer
self.add_query_param('MinimumInstanceBandwidthTx', MinimumInstanceBandwidthTx)
def get_InstanceCategoriess(self): # RepeatList
return self.get_query_params().get('InstanceCategories')

def set_InstanceCategoriess(self, InstanceCategories): # RepeatList
for depth1 in range(len(InstanceCategories)):
self.add_query_param('InstanceCategories.' + str(depth1 + 1), InstanceCategories[depth1])
def get_MinimumGPUAmount(self): # Integer
return self.get_query_params().get('MinimumGPUAmount')

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

def set_OwnerId(self, OwnerId): # Long
self.add_query_param('OwnerId', OwnerId)
def get_PhysicalProcessorModelss(self): # RepeatList
return self.get_query_params().get('PhysicalProcessorModels')

def set_PhysicalProcessorModelss(self, PhysicalProcessorModels): # RepeatList
for depth1 in range(len(PhysicalProcessorModels)):
self.add_query_param('PhysicalProcessorModels.' + str(depth1 + 1), PhysicalProcessorModels[depth1])
def get_MinimumMemorySize(self): # Float
return self.get_query_params().get('MinimumMemorySize')

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

def set_MinimumEniPrivateIpAddressQuantity(self, MinimumEniPrivateIpAddressQuantity): # Integer
self.add_query_param('MinimumEniPrivateIpAddressQuantity', MinimumEniPrivateIpAddressQuantity)
def get_GpuSpecss(self): # RepeatList
return self.get_query_params().get('GpuSpecs')

def set_GpuSpecss(self, GpuSpecs): # RepeatList
for depth1 in range(len(GpuSpecs)):
self.add_query_param('GpuSpecs.' + str(depth1 + 1), GpuSpecs[depth1])
def get_MinimumLocalStorageCapacity(self): # Long
return self.get_query_params().get('MinimumLocalStorageCapacity')

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
# 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 aliyunsdkecs.endpoint import endpoint_data

class DescribeTerminalSessionsRequest(RpcRequest):

def __init__(self):
RpcRequest.__init__(self, 'Ecs', '2014-05-26', 'DescribeTerminalSessions','ecs')
self.set_method('POST')

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_ResourceOwnerId(self): # Long
return self.get_query_params().get('ResourceOwnerId')

def set_ResourceOwnerId(self, ResourceOwnerId): # Long
self.add_query_param('ResourceOwnerId', ResourceOwnerId)
def get_SessionId(self): # String
return self.get_query_params().get('SessionId')

def set_SessionId(self, SessionId): # String
self.add_query_param('SessionId', SessionId)
def get_NextToken(self): # String
return self.get_query_params().get('NextToken')

def set_NextToken(self, NextToken): # String
self.add_query_param('NextToken', NextToken)
def get_ResourceOwnerAccount(self): # String
return self.get_query_params().get('ResourceOwnerAccount')

def set_ResourceOwnerAccount(self, ResourceOwnerAccount): # String
self.add_query_param('ResourceOwnerAccount', ResourceOwnerAccount)
def get_OwnerAccount(self): # String
return self.get_query_params().get('OwnerAccount')

def set_OwnerAccount(self, OwnerAccount): # String
self.add_query_param('OwnerAccount', OwnerAccount)
def get_OwnerId(self): # Long
return self.get_query_params().get('OwnerId')

def set_OwnerId(self, OwnerId): # Long
self.add_query_param('OwnerId', OwnerId)
def get_InstanceId(self): # String
return self.get_query_params().get('InstanceId')

def set_InstanceId(self, InstanceId): # String
self.add_query_param('InstanceId', InstanceId)
def get_MaxResults(self): # Integer
return self.get_query_params().get('MaxResults')

def set_MaxResults(self, MaxResults): # Integer
self.add_query_param('MaxResults', MaxResults)
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,11 @@ def get_ImageName(self): # String

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

def set_StorageLocationArn(self, StorageLocationArn): # String
self.add_query_param('StorageLocationArn', StorageLocationArn)
def get_Tags(self): # RepeatList
return self.get_query_params().get('Tag')

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,22 @@ def get_ResourceOwnerId(self): # Long

def set_ResourceOwnerId(self, ResourceOwnerId): # Long
self.add_query_param('ResourceOwnerId', ResourceOwnerId)
def get_CopyEncryptionConfiguration(self): # Struct
return self.get_query_params().get('CopyEncryptionConfiguration')

def set_CopyEncryptionConfiguration(self, CopyEncryptionConfiguration): # Struct
if CopyEncryptionConfiguration.get('Encrypted') is not None:
self.add_query_param('CopyEncryptionConfiguration.Encrypted', CopyEncryptionConfiguration.get('Encrypted'))
if CopyEncryptionConfiguration.get('KMSKeyId') is not None:
self.add_query_param('CopyEncryptionConfiguration.KMSKeyId', CopyEncryptionConfiguration.get('KMSKeyId'))
if CopyEncryptionConfiguration.get('Arn') is not None:
for index1, value1 in enumerate(CopyEncryptionConfiguration.get('Arn')):
if value1.get('Rolearn') is not None:
self.add_query_param('CopyEncryptionConfiguration.Arn.' + str(index1 + 1) + '.Rolearn', value1.get('Rolearn'))
if value1.get('RoleType') is not None:
self.add_query_param('CopyEncryptionConfiguration.Arn.' + str(index1 + 1) + '.RoleType', value1.get('RoleType'))
if value1.get('AssumeRoleFor') is not None:
self.add_query_param('CopyEncryptionConfiguration.Arn.' + str(index1 + 1) + '.AssumeRoleFor', value1.get('AssumeRoleFor'))
def get_autoSnapshotPolicyId(self): # String
return self.get_query_params().get('autoSnapshotPolicyId')

Expand Down

0 comments on commit e490ca6

Please sign in to comment.