Skip to content
Merged
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 @@ -373,10 +373,6 @@ class BlobServiceProperties(Resource):
:type automatic_snapshot_policy_enabled: bool
:param change_feed: The blob service properties for change feed events.
:type change_feed: ~azure.mgmt.storage.v2019_06_01.models.ChangeFeed
:param container_delete_retention_policy: The blob service properties for
container soft delete.
:type container_delete_retention_policy:
~azure.mgmt.storage.v2019_06_01.models.DeleteRetentionPolicy
"""

_validation = {
Expand All @@ -394,7 +390,6 @@ class BlobServiceProperties(Resource):
'delete_retention_policy': {'key': 'properties.deleteRetentionPolicy', 'type': 'DeleteRetentionPolicy'},
'automatic_snapshot_policy_enabled': {'key': 'properties.automaticSnapshotPolicyEnabled', 'type': 'bool'},
'change_feed': {'key': 'properties.changeFeed', 'type': 'ChangeFeed'},
'container_delete_retention_policy': {'key': 'properties.containerDeleteRetentionPolicy', 'type': 'DeleteRetentionPolicy'},
}

def __init__(self, **kwargs):
Expand All @@ -404,7 +399,6 @@ def __init__(self, **kwargs):
self.delete_retention_policy = kwargs.get('delete_retention_policy', None)
self.automatic_snapshot_policy_enabled = kwargs.get('automatic_snapshot_policy_enabled', None)
self.change_feed = kwargs.get('change_feed', None)
self.container_delete_retention_policy = kwargs.get('container_delete_retention_policy', None)


class ChangeFeed(Model):
Expand Down Expand Up @@ -664,12 +658,11 @@ def __init__(self, **kwargs):


class DeleteRetentionPolicy(Model):
"""The blob service properties for soft delete.
"""The service properties for soft delete.

:param enabled: Indicates whether DeleteRetentionPolicy is enabled for the
Blob service.
:param enabled: Indicates whether DeleteRetentionPolicy is enabled.
:type enabled: bool
:param days: Indicates the number of days that the deleted blob should be
:param days: Indicates the number of days that the deleted item should be
retained. The minimum specified value can be 1 and the maximum value can
be 365.
:type days: int
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -373,10 +373,6 @@ class BlobServiceProperties(Resource):
:type automatic_snapshot_policy_enabled: bool
:param change_feed: The blob service properties for change feed events.
:type change_feed: ~azure.mgmt.storage.v2019_06_01.models.ChangeFeed
:param container_delete_retention_policy: The blob service properties for
container soft delete.
:type container_delete_retention_policy:
~azure.mgmt.storage.v2019_06_01.models.DeleteRetentionPolicy
"""

_validation = {
Expand All @@ -394,17 +390,15 @@ class BlobServiceProperties(Resource):
'delete_retention_policy': {'key': 'properties.deleteRetentionPolicy', 'type': 'DeleteRetentionPolicy'},
'automatic_snapshot_policy_enabled': {'key': 'properties.automaticSnapshotPolicyEnabled', 'type': 'bool'},
'change_feed': {'key': 'properties.changeFeed', 'type': 'ChangeFeed'},
'container_delete_retention_policy': {'key': 'properties.containerDeleteRetentionPolicy', 'type': 'DeleteRetentionPolicy'},
}

def __init__(self, *, cors=None, default_service_version: str=None, delete_retention_policy=None, automatic_snapshot_policy_enabled: bool=None, change_feed=None, container_delete_retention_policy=None, **kwargs) -> None:
def __init__(self, *, cors=None, default_service_version: str=None, delete_retention_policy=None, automatic_snapshot_policy_enabled: bool=None, change_feed=None, **kwargs) -> None:
super(BlobServiceProperties, self).__init__(**kwargs)
self.cors = cors
self.default_service_version = default_service_version
self.delete_retention_policy = delete_retention_policy
self.automatic_snapshot_policy_enabled = automatic_snapshot_policy_enabled
self.change_feed = change_feed
self.container_delete_retention_policy = container_delete_retention_policy


class ChangeFeed(Model):
Expand Down Expand Up @@ -664,12 +658,11 @@ def __init__(self, *, days_after_modification_greater_than: float, **kwargs) ->


class DeleteRetentionPolicy(Model):
"""The blob service properties for soft delete.
"""The service properties for soft delete.

:param enabled: Indicates whether DeleteRetentionPolicy is enabled for the
Blob service.
:param enabled: Indicates whether DeleteRetentionPolicy is enabled.
:type enabled: bool
:param days: Indicates the number of days that the deleted blob should be
:param days: Indicates the number of days that the deleted item should be
retained. The minimum specified value can be 1 and the maximum value can
be 365.
:type days: int
Expand Down