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 @@ -743,7 +743,8 @@ def list_blobs(self, name_starts_with=None, include=None, **kwargs):
begin with the specified prefix.
:param list[str] or str include:
Specifies one or more additional datasets to include in the response.
Options include: 'snapshots', 'metadata', 'uncommittedblobs', 'copy', 'deleted', 'tags'.
Options include: 'snapshots', 'metadata', 'uncommittedblobs', 'copy', 'deleted', 'deletedwithversions',
'tags', 'versions'.
:keyword int timeout:
The timeout parameter is expressed in seconds.
:returns: An iterable (auto-paging) response of BlobProperties.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ def get_blob_properties_from_generated_code(generated):
blob.tags = parse_tags(generated.blob_tags) # pylint: disable=protected-access
blob.object_replication_source_properties = deserialize_ors_policies(generated.object_replication_metadata)
blob.last_accessed_on = generated.properties.last_accessed_on
blob.has_versions_only = generated.has_versions_only
return blob


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,7 @@ class BlobItemInternal(msrest.serialization.Model):
'metadata': {'key': 'Metadata', 'type': 'BlobMetadata'},
'blob_tags': {'key': 'BlobTags', 'type': 'BlobTags'},
'object_replication_metadata': {'key': 'OrMetadata', 'type': '{str}'},
'has_versions_only': {'key': 'HasVersionsOnly', 'type': 'bool'},
}
_xml_map = {
'name': 'Blob'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,7 @@ class BlobItemInternal(msrest.serialization.Model):
'metadata': {'key': 'Metadata', 'type': 'BlobMetadata'},
'blob_tags': {'key': 'BlobTags', 'type': 'BlobTags'},
'object_replication_metadata': {'key': 'OrMetadata', 'type': '{str}'},
'has_versions_only': {'key': 'HasVersionsOnly', 'type': 'bool'},
}
_xml_map = {
'name': 'Blob'
Expand Down
5 changes: 5 additions & 0 deletions sdk/storage/azure-storage-blob/azure/storage/blob/_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -519,6 +519,10 @@ class BlobProperties(DictMixin):
Key value pair of tags on this blob.

.. versionadded:: 12.4.0
:ivar bool has_versions_only:
A true value indicates the root blob is deleted

.. versionadded:: 12.10.0

"""

Expand Down Expand Up @@ -559,6 +563,7 @@ def __init__(self, **kwargs):
self.last_accessed_on = kwargs.get('x-ms-last-access-time')
self.tag_count = kwargs.get('x-ms-tag-count')
self.tags = None
self.has_versions_only = None


class FilteredBlob(DictMixin):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@
'2020-02-10',
'2020-04-08',
'2020-06-12',
'2020-08-04'
'2020-08-04',
'2020-10-02'
]


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -605,7 +605,8 @@ def list_blobs(self, name_starts_with=None, include=None, **kwargs):
begin with the specified prefix.
:param list[str] or str include:
Specifies one or more additional datasets to include in the response.
Options include: 'snapshots', 'metadata', 'uncommittedblobs', 'copy', 'deleted', 'tags'.
Options include: 'snapshots', 'metadata', 'uncommittedblobs', 'copy', 'deleted', 'deletedwithversions',
'tags', 'versions'.
:keyword int timeout:
The timeout parameter is expressed in seconds.
:returns: An iterable (auto-paging) response of BlobProperties.
Expand Down
Loading