Skip to content

Commit

Permalink
Update EBS default encrypted APIs from private to public.
Browse files Browse the repository at this point in the history
  • Loading branch information
sdk-team committed Sep 10, 2024
1 parent 1152f88 commit ce88ed4
Show file tree
Hide file tree
Showing 20 changed files with 376 additions and 8 deletions.
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-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.

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.73'
__version__ = '4.24.74'
Original file line number Diff line number Diff line change
Expand Up @@ -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')

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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')

Expand Down Expand Up @@ -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')

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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')

Expand Down Expand Up @@ -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')

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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')

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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')

Expand Down
Original file line number Diff line number Diff line change
@@ -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)
Original file line number Diff line number Diff line change
@@ -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)
Original file line number Diff line number Diff line change
@@ -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)
Original file line number Diff line number Diff line change
Expand Up @@ -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"):
Expand All @@ -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')

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Original file line number Diff line number Diff line change
@@ -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)
Original file line number Diff line number Diff line change
Expand Up @@ -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')

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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')

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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')

Expand Down
Loading

0 comments on commit ce88ed4

Please sign in to comment.