diff --git a/aliyun-python-sdk-ecs/ChangeLog.txt b/aliyun-python-sdk-ecs/ChangeLog.txt index 483ca24013..2d42681a28 100644 --- a/aliyun-python-sdk-ecs/ChangeLog.txt +++ b/aliyun-python-sdk-ecs/ChangeLog.txt @@ -1,3 +1,6 @@ +2024-09-10 Version: 4.24.74 +- Update EBS default encrypted APIs from private to public. + 2024-05-23 Version: 4.24.73 - Add SnapshotLinkId for DescribeSnapshots. diff --git a/aliyun-python-sdk-ecs/aliyunsdkecs/__init__.py b/aliyun-python-sdk-ecs/aliyunsdkecs/__init__.py index fd80ef3b0f..7836bc3754 100644 --- a/aliyun-python-sdk-ecs/aliyunsdkecs/__init__.py +++ b/aliyun-python-sdk-ecs/aliyunsdkecs/__init__.py @@ -1 +1 @@ -__version__ = '4.24.73' \ No newline at end of file +__version__ = '4.24.74' \ No newline at end of file diff --git a/aliyun-python-sdk-ecs/aliyunsdkecs/request/v20140526/CopySnapshotRequest.py b/aliyun-python-sdk-ecs/aliyunsdkecs/request/v20140526/CopySnapshotRequest.py index ad825226a8..3c9796b9d0 100644 --- a/aliyun-python-sdk-ecs/aliyunsdkecs/request/v20140526/CopySnapshotRequest.py +++ b/aliyun-python-sdk-ecs/aliyunsdkecs/request/v20140526/CopySnapshotRequest.py @@ -41,6 +41,11 @@ def get_SnapshotId(self): # String def set_SnapshotId(self, SnapshotId): # String self.add_query_param('SnapshotId', SnapshotId) + def get_ClientToken(self): # String + return self.get_query_params().get('ClientToken') + + def set_ClientToken(self, ClientToken): # String + self.add_query_param('ClientToken', ClientToken) def get_DestinationRegionId(self): # String return self.get_query_params().get('DestinationRegionId') diff --git a/aliyun-python-sdk-ecs/aliyunsdkecs/request/v20140526/CreateLaunchTemplateRequest.py b/aliyun-python-sdk-ecs/aliyunsdkecs/request/v20140526/CreateLaunchTemplateRequest.py index 7a6b50d815..a2a2c23166 100644 --- a/aliyun-python-sdk-ecs/aliyunsdkecs/request/v20140526/CreateLaunchTemplateRequest.py +++ b/aliyun-python-sdk-ecs/aliyunsdkecs/request/v20140526/CreateLaunchTemplateRequest.py @@ -109,6 +109,11 @@ def get_SystemDiskAutoSnapshotPolicyId(self): # String def set_SystemDiskAutoSnapshotPolicyId(self, SystemDiskAutoSnapshotPolicyId): # String self.add_query_param('SystemDisk.AutoSnapshotPolicyId', SystemDiskAutoSnapshotPolicyId) + def get_AutoRenewPeriod(self): # Integer + return self.get_query_params().get('AutoRenewPeriod') + + def set_AutoRenewPeriod(self, AutoRenewPeriod): # Integer + self.add_query_param('AutoRenewPeriod', AutoRenewPeriod) def get_Period(self): # Integer return self.get_query_params().get('Period') @@ -149,11 +154,21 @@ def get_SystemDiskBurstingEnabled(self): # Boolean def set_SystemDiskBurstingEnabled(self, SystemDiskBurstingEnabled): # Boolean self.add_query_param('SystemDisk.BurstingEnabled', SystemDiskBurstingEnabled) + def get_PeriodUnit(self): # String + return self.get_query_params().get('PeriodUnit') + + def set_PeriodUnit(self, PeriodUnit): # String + self.add_query_param('PeriodUnit', PeriodUnit) def get_InstanceName(self): # String return self.get_query_params().get('InstanceName') def set_InstanceName(self, InstanceName): # String self.add_query_param('InstanceName', InstanceName) + def get_AutoRenew(self): # Boolean + return self.get_query_params().get('AutoRenew') + + def set_AutoRenew(self, AutoRenew): # Boolean + self.add_query_param('AutoRenew', AutoRenew) def get_InternetChargeType(self): # String return self.get_query_params().get('InternetChargeType') diff --git a/aliyun-python-sdk-ecs/aliyunsdkecs/request/v20140526/CreateLaunchTemplateVersionRequest.py b/aliyun-python-sdk-ecs/aliyunsdkecs/request/v20140526/CreateLaunchTemplateVersionRequest.py index 843a147f06..aedb541552 100644 --- a/aliyun-python-sdk-ecs/aliyunsdkecs/request/v20140526/CreateLaunchTemplateVersionRequest.py +++ b/aliyun-python-sdk-ecs/aliyunsdkecs/request/v20140526/CreateLaunchTemplateVersionRequest.py @@ -100,6 +100,11 @@ def get_SystemDiskAutoSnapshotPolicyId(self): # String def set_SystemDiskAutoSnapshotPolicyId(self, SystemDiskAutoSnapshotPolicyId): # String self.add_query_param('SystemDisk.AutoSnapshotPolicyId', SystemDiskAutoSnapshotPolicyId) + def get_AutoRenewPeriod(self): # Integer + return self.get_query_params().get('AutoRenewPeriod') + + def set_AutoRenewPeriod(self, AutoRenewPeriod): # Integer + self.add_query_param('AutoRenewPeriod', AutoRenewPeriod) def get_Period(self): # Integer return self.get_query_params().get('Period') @@ -140,11 +145,21 @@ def get_SystemDiskBurstingEnabled(self): # Boolean def set_SystemDiskBurstingEnabled(self, SystemDiskBurstingEnabled): # Boolean self.add_query_param('SystemDisk.BurstingEnabled', SystemDiskBurstingEnabled) + def get_PeriodUnit(self): # String + return self.get_query_params().get('PeriodUnit') + + def set_PeriodUnit(self, PeriodUnit): # String + self.add_query_param('PeriodUnit', PeriodUnit) def get_InstanceName(self): # String return self.get_query_params().get('InstanceName') def set_InstanceName(self, InstanceName): # String self.add_query_param('InstanceName', InstanceName) + def get_AutoRenew(self): # Boolean + return self.get_query_params().get('AutoRenew') + + def set_AutoRenew(self, AutoRenew): # Boolean + self.add_query_param('AutoRenew', AutoRenew) def get_InternetChargeType(self): # String return self.get_query_params().get('InternetChargeType') diff --git a/aliyun-python-sdk-ecs/aliyunsdkecs/request/v20140526/CreateNetworkInterfaceRequest.py b/aliyun-python-sdk-ecs/aliyunsdkecs/request/v20140526/CreateNetworkInterfaceRequest.py index 226126c223..3fc3831c63 100644 --- a/aliyun-python-sdk-ecs/aliyunsdkecs/request/v20140526/CreateNetworkInterfaceRequest.py +++ b/aliyun-python-sdk-ecs/aliyunsdkecs/request/v20140526/CreateNetworkInterfaceRequest.py @@ -76,6 +76,12 @@ def get_ResourceGroupId(self): # String def set_ResourceGroupId(self, ResourceGroupId): # String self.add_query_param('ResourceGroupId', ResourceGroupId) + def get_EnhancedNetwork(self): # Struct + return self.get_query_params().get('EnhancedNetwork') + + def set_EnhancedNetwork(self, EnhancedNetwork): # Struct + if EnhancedNetwork.get('EnableSriov') is not None: + self.add_query_param('EnhancedNetwork.EnableSriov', EnhancedNetwork.get('EnableSriov')) def get_Tags(self): # RepeatList return self.get_query_params().get('Tag') diff --git a/aliyun-python-sdk-ecs/aliyunsdkecs/request/v20140526/CreateSnapshotGroupRequest.py b/aliyun-python-sdk-ecs/aliyunsdkecs/request/v20140526/CreateSnapshotGroupRequest.py index 9384a70072..a09d672256 100644 --- a/aliyun-python-sdk-ecs/aliyunsdkecs/request/v20140526/CreateSnapshotGroupRequest.py +++ b/aliyun-python-sdk-ecs/aliyunsdkecs/request/v20140526/CreateSnapshotGroupRequest.py @@ -36,6 +36,11 @@ def get_ResourceOwnerId(self): # Long def set_ResourceOwnerId(self, ResourceOwnerId): # Long self.add_query_param('ResourceOwnerId', ResourceOwnerId) + def get_ClientToken(self): # String + return self.get_query_params().get('ClientToken') + + def set_ClientToken(self, ClientToken): # String + self.add_query_param('ClientToken', ClientToken) def get_InstantAccess(self): # Boolean return self.get_query_params().get('InstantAccess') diff --git a/aliyun-python-sdk-ecs/aliyunsdkecs/request/v20140526/DescribeDiskDefaultKMSKeyIdRequest.py b/aliyun-python-sdk-ecs/aliyunsdkecs/request/v20140526/DescribeDiskDefaultKMSKeyIdRequest.py new file mode 100644 index 0000000000..33d9ea786f --- /dev/null +++ b/aliyun-python-sdk-ecs/aliyunsdkecs/request/v20140526/DescribeDiskDefaultKMSKeyIdRequest.py @@ -0,0 +1,38 @@ +# 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 DescribeDiskDefaultKMSKeyIdRequest(RpcRequest): + + def __init__(self): + RpcRequest.__init__(self, 'Ecs', '2014-05-26', 'DescribeDiskDefaultKMSKeyId','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) diff --git a/aliyun-python-sdk-ecs/aliyunsdkecs/request/v20140526/DescribeDiskEncryptionByDefaultStatusRequest.py b/aliyun-python-sdk-ecs/aliyunsdkecs/request/v20140526/DescribeDiskEncryptionByDefaultStatusRequest.py new file mode 100644 index 0000000000..66b81f9678 --- /dev/null +++ b/aliyun-python-sdk-ecs/aliyunsdkecs/request/v20140526/DescribeDiskEncryptionByDefaultStatusRequest.py @@ -0,0 +1,38 @@ +# 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 DescribeDiskEncryptionByDefaultStatusRequest(RpcRequest): + + def __init__(self): + RpcRequest.__init__(self, 'Ecs', '2014-05-26', 'DescribeDiskEncryptionByDefaultStatus','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) diff --git a/aliyun-python-sdk-ecs/aliyunsdkecs/request/v20140526/DisableDiskEncryptionByDefaultRequest.py b/aliyun-python-sdk-ecs/aliyunsdkecs/request/v20140526/DisableDiskEncryptionByDefaultRequest.py new file mode 100644 index 0000000000..3fa401fe5f --- /dev/null +++ b/aliyun-python-sdk-ecs/aliyunsdkecs/request/v20140526/DisableDiskEncryptionByDefaultRequest.py @@ -0,0 +1,38 @@ +# 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 DisableDiskEncryptionByDefaultRequest(RpcRequest): + + def __init__(self): + RpcRequest.__init__(self, 'Ecs', '2014-05-26', 'DisableDiskEncryptionByDefault','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) diff --git a/aliyun-python-sdk-ecs/aliyunsdkecs/request/v20140526/StartElasticityAssuranceRequest.py b/aliyun-python-sdk-ecs/aliyunsdkecs/request/v20140526/EnableDiskEncryptionByDefaultRequest.py similarity index 82% rename from aliyun-python-sdk-ecs/aliyunsdkecs/request/v20140526/StartElasticityAssuranceRequest.py rename to aliyun-python-sdk-ecs/aliyunsdkecs/request/v20140526/EnableDiskEncryptionByDefaultRequest.py index 7a086dd8e2..015573d1c3 100644 --- a/aliyun-python-sdk-ecs/aliyunsdkecs/request/v20140526/StartElasticityAssuranceRequest.py +++ b/aliyun-python-sdk-ecs/aliyunsdkecs/request/v20140526/EnableDiskEncryptionByDefaultRequest.py @@ -20,10 +20,10 @@ from aliyunsdkcore.request import RpcRequest from aliyunsdkecs.endpoint import endpoint_data -class StartElasticityAssuranceRequest(RpcRequest): +class EnableDiskEncryptionByDefaultRequest(RpcRequest): def __init__(self): - RpcRequest.__init__(self, 'Ecs', '2014-05-26', 'StartElasticityAssurance','ecs') + RpcRequest.__init__(self, 'Ecs', '2014-05-26', 'EnableDiskEncryptionByDefault','ecs') self.set_method('POST') if hasattr(self, "endpoint_map"): @@ -36,11 +36,6 @@ def get_ResourceOwnerId(self): # Long def set_ResourceOwnerId(self, ResourceOwnerId): # Long self.add_query_param('ResourceOwnerId', ResourceOwnerId) - def get_PrivatePoolOptionsId(self): # String - return self.get_query_params().get('PrivatePoolOptions.Id') - - def set_PrivatePoolOptionsId(self, PrivatePoolOptionsId): # String - self.add_query_param('PrivatePoolOptions.Id', PrivatePoolOptionsId) def get_ResourceOwnerAccount(self): # String return self.get_query_params().get('ResourceOwnerAccount') diff --git a/aliyun-python-sdk-ecs/aliyunsdkecs/request/v20140526/InvokeCommandRequest.py b/aliyun-python-sdk-ecs/aliyunsdkecs/request/v20140526/InvokeCommandRequest.py index 4482e25a18..668d7e2748 100644 --- a/aliyun-python-sdk-ecs/aliyunsdkecs/request/v20140526/InvokeCommandRequest.py +++ b/aliyun-python-sdk-ecs/aliyunsdkecs/request/v20140526/InvokeCommandRequest.py @@ -140,3 +140,8 @@ def get_Username(self): # String def set_Username(self, Username): # String self.add_query_param('Username', Username) + def get_Launcher(self): # String + return self.get_query_params().get('Launcher') + + def set_Launcher(self, Launcher): # String + self.add_query_param('Launcher', Launcher) diff --git a/aliyun-python-sdk-ecs/aliyunsdkecs/request/v20140526/ModifyDiskDefaultKMSKeyIdRequest.py b/aliyun-python-sdk-ecs/aliyunsdkecs/request/v20140526/ModifyDiskDefaultKMSKeyIdRequest.py new file mode 100644 index 0000000000..dbb400b6fe --- /dev/null +++ b/aliyun-python-sdk-ecs/aliyunsdkecs/request/v20140526/ModifyDiskDefaultKMSKeyIdRequest.py @@ -0,0 +1,43 @@ +# 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 ModifyDiskDefaultKMSKeyIdRequest(RpcRequest): + + def __init__(self): + RpcRequest.__init__(self, 'Ecs', '2014-05-26', 'ModifyDiskDefaultKMSKeyId','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_KMSKeyId(self): # String + return self.get_query_params().get('KMSKeyId') + + def set_KMSKeyId(self, KMSKeyId): # String + self.add_query_param('KMSKeyId', KMSKeyId) diff --git a/aliyun-python-sdk-ecs/aliyunsdkecs/request/v20140526/ModifyInstanceAttributeRequest.py b/aliyun-python-sdk-ecs/aliyunsdkecs/request/v20140526/ModifyInstanceAttributeRequest.py index 268d5f0681..79cc486b50 100644 --- a/aliyun-python-sdk-ecs/aliyunsdkecs/request/v20140526/ModifyInstanceAttributeRequest.py +++ b/aliyun-python-sdk-ecs/aliyunsdkecs/request/v20140526/ModifyInstanceAttributeRequest.py @@ -71,6 +71,20 @@ def get_HostName(self): # String def set_HostName(self, HostName): # String self.add_query_param('HostName', HostName) + def get_PrivateDnsNameOptions(self): # Struct + return self.get_query_params().get('PrivateDnsNameOptions') + + def set_PrivateDnsNameOptions(self, PrivateDnsNameOptions): # Struct + if PrivateDnsNameOptions.get('HostnameType') is not None: + self.add_query_param('PrivateDnsNameOptions.HostnameType', PrivateDnsNameOptions.get('HostnameType')) + if PrivateDnsNameOptions.get('EnableInstanceIdDnsARecord') is not None: + self.add_query_param('PrivateDnsNameOptions.EnableInstanceIdDnsARecord', PrivateDnsNameOptions.get('EnableInstanceIdDnsARecord')) + if PrivateDnsNameOptions.get('EnableInstanceIdDnsAAAARecord') is not None: + self.add_query_param('PrivateDnsNameOptions.EnableInstanceIdDnsAAAARecord', PrivateDnsNameOptions.get('EnableInstanceIdDnsAAAARecord')) + if PrivateDnsNameOptions.get('EnableIpDnsARecord') is not None: + self.add_query_param('PrivateDnsNameOptions.EnableIpDnsARecord', PrivateDnsNameOptions.get('EnableIpDnsARecord')) + if PrivateDnsNameOptions.get('EnableIpDnsPtrRecord') is not None: + self.add_query_param('PrivateDnsNameOptions.EnableIpDnsPtrRecord', PrivateDnsNameOptions.get('EnableIpDnsPtrRecord')) def get_CpuOptionsTopologyType(self): # String return self.get_query_params().get('CpuOptions.TopologyType') diff --git a/aliyun-python-sdk-ecs/aliyunsdkecs/request/v20140526/ModifyNetworkInterfaceAttributeRequest.py b/aliyun-python-sdk-ecs/aliyunsdkecs/request/v20140526/ModifyNetworkInterfaceAttributeRequest.py index b992407ac4..fc7bd0c8d1 100644 --- a/aliyun-python-sdk-ecs/aliyunsdkecs/request/v20140526/ModifyNetworkInterfaceAttributeRequest.py +++ b/aliyun-python-sdk-ecs/aliyunsdkecs/request/v20140526/ModifyNetworkInterfaceAttributeRequest.py @@ -66,6 +66,12 @@ def set_NetworkInterfaceTrafficConfig(self, NetworkInterfaceTrafficConfig): # S self.add_query_param('NetworkInterfaceTrafficConfig.RxQueueSize', NetworkInterfaceTrafficConfig.get('RxQueueSize')) if NetworkInterfaceTrafficConfig.get('TxQueueSize') is not None: self.add_query_param('NetworkInterfaceTrafficConfig.TxQueueSize', NetworkInterfaceTrafficConfig.get('TxQueueSize')) + def get_EnhancedNetwork(self): # Struct + return self.get_query_params().get('EnhancedNetwork') + + def set_EnhancedNetwork(self, EnhancedNetwork): # Struct + if EnhancedNetwork.get('EnableSriov') is not None: + self.add_query_param('EnhancedNetwork.EnableSriov', EnhancedNetwork.get('EnableSriov')) def get_NetworkInterfaceName(self): # String return self.get_query_params().get('NetworkInterfaceName') diff --git a/aliyun-python-sdk-ecs/aliyunsdkecs/request/v20140526/PurchaseReservedInstancesOfferingRequest.py b/aliyun-python-sdk-ecs/aliyunsdkecs/request/v20140526/PurchaseReservedInstancesOfferingRequest.py index d476cf3629..7bd846c70b 100644 --- a/aliyun-python-sdk-ecs/aliyunsdkecs/request/v20140526/PurchaseReservedInstancesOfferingRequest.py +++ b/aliyun-python-sdk-ecs/aliyunsdkecs/request/v20140526/PurchaseReservedInstancesOfferingRequest.py @@ -46,6 +46,11 @@ def get_Description(self): # String def set_Description(self, Description): # String self.add_query_param('Description', Description) + def get_StartTime(self): # String + return self.get_query_params().get('StartTime') + + def set_StartTime(self, StartTime): # String + self.add_query_param('StartTime', StartTime) def get_Platform(self): # String return self.get_query_params().get('Platform') diff --git a/aliyun-python-sdk-ecs/aliyunsdkecs/request/v20140526/RenewElasticityAssurancesRequest.py b/aliyun-python-sdk-ecs/aliyunsdkecs/request/v20140526/RenewElasticityAssurancesRequest.py new file mode 100644 index 0000000000..40a86ca6f3 --- /dev/null +++ b/aliyun-python-sdk-ecs/aliyunsdkecs/request/v20140526/RenewElasticityAssurancesRequest.py @@ -0,0 +1,80 @@ +# 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 RenewElasticityAssurancesRequest(RpcRequest): + + def __init__(self): + RpcRequest.__init__(self, 'Ecs', '2014-05-26', 'RenewElasticityAssurances','ecs') + self.set_protocol_type('https') + 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_ClientToken(self): # String + return self.get_query_params().get('ClientToken') + + def set_ClientToken(self, ClientToken): # String + self.add_query_param('ClientToken', ClientToken) + def get_PrivatePoolOptionsIds(self): # RepeatList + return self.get_query_params().get('PrivatePoolOptions.Id') + + def set_PrivatePoolOptionsIds(self, PrivatePoolOptionsId): # RepeatList + for depth1 in range(len(PrivatePoolOptionsId)): + self.add_query_param('PrivatePoolOptions.Id.' + str(depth1 + 1), PrivatePoolOptionsId[depth1]) + def get_Period(self): # Integer + return self.get_query_params().get('Period') + + def set_Period(self, Period): # Integer + self.add_query_param('Period', Period) + def get_AutoPay(self): # Boolean + return self.get_query_params().get('AutoPay') + + def set_AutoPay(self, AutoPay): # Boolean + self.add_query_param('AutoPay', AutoPay) + 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_PeriodUnit(self): # String + return self.get_query_params().get('PeriodUnit') + + def set_PeriodUnit(self, PeriodUnit): # String + self.add_query_param('PeriodUnit', PeriodUnit) diff --git a/aliyun-python-sdk-ecs/aliyunsdkecs/request/v20140526/ResetDiskDefaultKMSKeyIdRequest.py b/aliyun-python-sdk-ecs/aliyunsdkecs/request/v20140526/ResetDiskDefaultKMSKeyIdRequest.py new file mode 100644 index 0000000000..5aea714d37 --- /dev/null +++ b/aliyun-python-sdk-ecs/aliyunsdkecs/request/v20140526/ResetDiskDefaultKMSKeyIdRequest.py @@ -0,0 +1,38 @@ +# 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 ResetDiskDefaultKMSKeyIdRequest(RpcRequest): + + def __init__(self): + RpcRequest.__init__(self, 'Ecs', '2014-05-26', 'ResetDiskDefaultKMSKeyId','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) diff --git a/aliyun-python-sdk-ecs/aliyunsdkecs/request/v20140526/RunCommandRequest.py b/aliyun-python-sdk-ecs/aliyunsdkecs/request/v20140526/RunCommandRequest.py index e629269947..8d8135178d 100644 --- a/aliyun-python-sdk-ecs/aliyunsdkecs/request/v20140526/RunCommandRequest.py +++ b/aliyun-python-sdk-ecs/aliyunsdkecs/request/v20140526/RunCommandRequest.py @@ -106,6 +106,11 @@ def get_Parameters(self): # Json def set_Parameters(self, Parameters): # Json self.add_query_param('Parameters', Parameters) + def get_Launcher(self): # String + return self.get_query_params().get('Launcher') + + def set_Launcher(self, Launcher): # String + self.add_query_param('Launcher', Launcher) def get_ContainerName(self): # String return self.get_query_params().get('ContainerName') diff --git a/aliyun-python-sdk-ecs/aliyunsdkecs/request/v20140526/RunInstancesRequest.py b/aliyun-python-sdk-ecs/aliyunsdkecs/request/v20140526/RunInstancesRequest.py index df491ce25c..d702bdeee6 100644 --- a/aliyun-python-sdk-ecs/aliyunsdkecs/request/v20140526/RunInstancesRequest.py +++ b/aliyun-python-sdk-ecs/aliyunsdkecs/request/v20140526/RunInstancesRequest.py @@ -203,6 +203,20 @@ def get_PasswordInherit(self): # Boolean def set_PasswordInherit(self, PasswordInherit): # Boolean self.add_query_param('PasswordInherit', PasswordInherit) + def get_PrivateDnsNameOptions(self): # Struct + return self.get_query_params().get('PrivateDnsNameOptions') + + def set_PrivateDnsNameOptions(self, PrivateDnsNameOptions): # Struct + if PrivateDnsNameOptions.get('EnableInstanceIdDnsARecord') is not None: + self.add_query_param('PrivateDnsNameOptions.EnableInstanceIdDnsARecord', PrivateDnsNameOptions.get('EnableInstanceIdDnsARecord')) + if PrivateDnsNameOptions.get('EnableInstanceIdDnsAAAARecord') is not None: + self.add_query_param('PrivateDnsNameOptions.EnableInstanceIdDnsAAAARecord', PrivateDnsNameOptions.get('EnableInstanceIdDnsAAAARecord')) + if PrivateDnsNameOptions.get('EnableIpDnsARecord') is not None: + self.add_query_param('PrivateDnsNameOptions.EnableIpDnsARecord', PrivateDnsNameOptions.get('EnableIpDnsARecord')) + if PrivateDnsNameOptions.get('EnableIpDnsPtrRecord') is not None: + self.add_query_param('PrivateDnsNameOptions.EnableIpDnsPtrRecord', PrivateDnsNameOptions.get('EnableIpDnsPtrRecord')) + if PrivateDnsNameOptions.get('HostnameType') is not None: + self.add_query_param('PrivateDnsNameOptions.HostnameType', PrivateDnsNameOptions.get('HostnameType')) def get_InstanceType(self): # String return self.get_query_params().get('InstanceType')