Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoPR track2_azure-mgmt-storage] Update all azureresourceschema.md files #1927

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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__(
Expand All @@ -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):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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__(
Expand All @@ -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):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down