diff --git a/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2019_06_01/aio/operations_async/_blob_containers_operations_async.py b/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2019_06_01/aio/operations_async/_blob_containers_operations_async.py index 7dd55db64a8a..68919ecdbe0f 100644 --- a/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2019_06_01/aio/operations_async/_blob_containers_operations_async.py +++ b/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2019_06_01/aio/operations_async/_blob_containers_operations_async.py @@ -742,8 +742,8 @@ async def delete_immutability_policy( ) -> "models.ImmutabilityPolicy": """Aborts an unlocked immutability policy. The response of delete has immutabilityPeriodSinceCreationInDays set to 0. ETag in If-Match is required for this - operation. Deleting a locked immutability policy is not allowed, only way is to delete the - container after deleting all blobs inside the container. + operation. Deleting a locked immutability policy is not allowed, the only way is to delete the + container after deleting all expired blobs inside the policy locked container. :param resource_group_name: The name of the resource group within the user's subscription. The name is case insensitive. diff --git a/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2019_06_01/models/_models.py b/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2019_06_01/models/_models.py index 712f5fcbdd58..6dfb80436cb6 100644 --- a/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2019_06_01/models/_models.py +++ b/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2019_06_01/models/_models.py @@ -3078,20 +3078,24 @@ class RestorePolicyProperties(msrest.serialization.Model): :param days: how long this blob can be restored. It should be great than zero and less than DeleteRetentionPolicy.days. :type days: int - :ivar last_enabled_time: Returns the date and time the restore policy was last enabled. + :ivar last_enabled_time: Deprecated in favor of minRestoreTime property. :vartype last_enabled_time: ~datetime.datetime + :ivar min_restore_time: Returns the minimum date and time that the restore can be started. + :vartype min_restore_time: ~datetime.datetime """ _validation = { 'enabled': {'required': True}, 'days': {'maximum': 365, 'minimum': 1}, 'last_enabled_time': {'readonly': True}, + 'min_restore_time': {'readonly': True}, } _attribute_map = { 'enabled': {'key': 'enabled', 'type': 'bool'}, 'days': {'key': 'days', 'type': 'int'}, 'last_enabled_time': {'key': 'lastEnabledTime', 'type': 'iso-8601'}, + 'min_restore_time': {'key': 'minRestoreTime', 'type': 'iso-8601'}, } def __init__( @@ -3102,6 +3106,7 @@ def __init__( self.enabled = kwargs['enabled'] self.days = kwargs.get('days', None) self.last_enabled_time = None + self.min_restore_time = None class Restriction(msrest.serialization.Model): diff --git a/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2019_06_01/models/_models_py3.py b/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2019_06_01/models/_models_py3.py index 9d2385010723..1c31609078a0 100644 --- a/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2019_06_01/models/_models_py3.py +++ b/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2019_06_01/models/_models_py3.py @@ -3305,20 +3305,24 @@ class RestorePolicyProperties(msrest.serialization.Model): :param days: how long this blob can be restored. It should be great than zero and less than DeleteRetentionPolicy.days. :type days: int - :ivar last_enabled_time: Returns the date and time the restore policy was last enabled. + :ivar last_enabled_time: Deprecated in favor of minRestoreTime property. :vartype last_enabled_time: ~datetime.datetime + :ivar min_restore_time: Returns the minimum date and time that the restore can be started. + :vartype min_restore_time: ~datetime.datetime """ _validation = { 'enabled': {'required': True}, 'days': {'maximum': 365, 'minimum': 1}, 'last_enabled_time': {'readonly': True}, + 'min_restore_time': {'readonly': True}, } _attribute_map = { 'enabled': {'key': 'enabled', 'type': 'bool'}, 'days': {'key': 'days', 'type': 'int'}, 'last_enabled_time': {'key': 'lastEnabledTime', 'type': 'iso-8601'}, + 'min_restore_time': {'key': 'minRestoreTime', 'type': 'iso-8601'}, } def __init__( @@ -3332,6 +3336,7 @@ def __init__( self.enabled = enabled self.days = days self.last_enabled_time = None + self.min_restore_time = None class Restriction(msrest.serialization.Model): diff --git a/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2019_06_01/operations/_blob_containers_operations.py b/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2019_06_01/operations/_blob_containers_operations.py index 53b725c813da..1cb21cd6a6fe 100644 --- a/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2019_06_01/operations/_blob_containers_operations.py +++ b/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2019_06_01/operations/_blob_containers_operations.py @@ -756,8 +756,8 @@ def delete_immutability_policy( # type: (...) -> "models.ImmutabilityPolicy" """Aborts an unlocked immutability policy. The response of delete has immutabilityPeriodSinceCreationInDays set to 0. ETag in If-Match is required for this - operation. Deleting a locked immutability policy is not allowed, only way is to delete the - container after deleting all blobs inside the container. + operation. Deleting a locked immutability policy is not allowed, the only way is to delete the + container after deleting all expired blobs inside the policy locked container. :param resource_group_name: The name of the resource group within the user's subscription. The name is case insensitive.