-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Added Last Access Time Feature #13433
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
Merged
xiafu-msft
merged 7 commits into
Azure:feature/storage-stg74
from
tasherif-msft:lat-feature
Sep 4, 2020
Merged
Changes from 1 commit
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
3b6bbf7
converted BlobItemInternal to BlobProperties and added the attribute …
tasherif-msft c293244
removed none default
tasherif-msft afde8ae
added unit test for get properties with lat
tasherif-msft 089fd9d
more unit tests
tasherif-msft 5d4c79f
fixed failing test
tasherif-msft f1e318c
added docstrings and addeed extra test
tasherif-msft d93093f
Update sdk/storage/azure-storage-blob/azure/storage/blob/_models.py
tasherif-msft File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
added unit test for get properties with lat
- Loading branch information
commit afde8aeebfabc2df681adf0bc30a1a2889864fe6
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
290 changes: 290 additions & 0 deletions
290
...ob/tests/recordings/test_blob_access_conditions.test_get_properties_last_access_time.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,290 @@ | ||
| interactions: | ||
| - request: | ||
| body: null | ||
| headers: | ||
| Accept: | ||
| - '*/*' | ||
| Accept-Encoding: | ||
| - gzip, deflate | ||
| Connection: | ||
| - keep-alive | ||
| Content-Length: | ||
| - '0' | ||
| User-Agent: | ||
| - azsdk-python-storage-blob/12.4.0 Python/3.8.5 (Windows-10-10.0.18362-SP0) | ||
| x-ms-date: | ||
| - Mon, 31 Aug 2020 04:37:35 GMT | ||
| x-ms-version: | ||
| - '2020-02-10' | ||
| method: PUT | ||
| uri: https://storagename.blob.core.windows.net/utcontainer56131a54?restype=container | ||
| response: | ||
| body: | ||
| string: '' | ||
| headers: | ||
| content-length: | ||
| - '0' | ||
| date: | ||
| - Mon, 31 Aug 2020 04:38:01 GMT | ||
| etag: | ||
| - '"0x8D84D6795BE4D15"' | ||
| last-modified: | ||
| - Mon, 31 Aug 2020 04:37:36 GMT | ||
| server: | ||
| - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 | ||
| x-ms-version: | ||
| - '2020-02-10' | ||
| status: | ||
| code: 201 | ||
| message: Created | ||
| - request: | ||
| body: hello world | ||
| headers: | ||
| Accept: | ||
| - '*/*' | ||
| Accept-Encoding: | ||
| - gzip, deflate | ||
| Connection: | ||
| - keep-alive | ||
| Content-Length: | ||
| - '11' | ||
| Content-Type: | ||
| - application/octet-stream | ||
| If-None-Match: | ||
| - '*' | ||
| User-Agent: | ||
| - azsdk-python-storage-blob/12.4.0 Python/3.8.5 (Windows-10-10.0.18362-SP0) | ||
| x-ms-blob-type: | ||
| - BlockBlob | ||
| x-ms-date: | ||
| - Mon, 31 Aug 2020 04:38:01 GMT | ||
| x-ms-version: | ||
| - '2020-02-10' | ||
| method: PUT | ||
| uri: https://storagename.blob.core.windows.net/utcontainer56131a54/blob1 | ||
| response: | ||
| body: | ||
| string: '' | ||
| headers: | ||
| content-length: | ||
| - '0' | ||
| content-md5: | ||
| - XrY7u+Ae7tCTyyK7j1rNww== | ||
| date: | ||
| - Mon, 31 Aug 2020 04:38:01 GMT | ||
| etag: | ||
| - '"0x8D84D67A4FA4E74"' | ||
| last-modified: | ||
| - Mon, 31 Aug 2020 04:38:01 GMT | ||
| server: | ||
| - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 | ||
| x-ms-content-crc64: | ||
| - vo7q9sPVKY0= | ||
| x-ms-request-server-encrypted: | ||
| - 'true' | ||
| x-ms-version: | ||
| - '2020-02-10' | ||
| status: | ||
| code: 201 | ||
| message: Created | ||
| - request: | ||
| body: null | ||
| headers: | ||
| Accept: | ||
| - '*/*' | ||
| Accept-Encoding: | ||
| - gzip, deflate | ||
| Connection: | ||
| - keep-alive | ||
| User-Agent: | ||
| - azsdk-python-storage-blob/12.4.0 Python/3.8.5 (Windows-10-10.0.18362-SP0) | ||
| x-ms-date: | ||
| - Mon, 31 Aug 2020 04:38:02 GMT | ||
| x-ms-version: | ||
| - '2020-02-10' | ||
| method: HEAD | ||
| uri: https://storagename.blob.core.windows.net/utcontainer56131a54/blob1 | ||
| response: | ||
| body: | ||
| string: '' | ||
| headers: | ||
| accept-ranges: | ||
| - bytes | ||
| content-length: | ||
| - '11' | ||
| content-md5: | ||
| - XrY7u+Ae7tCTyyK7j1rNww== | ||
| content-type: | ||
| - application/octet-stream | ||
| date: | ||
| - Mon, 31 Aug 2020 04:38:01 GMT | ||
| etag: | ||
| - '"0x8D84D67A4FA4E74"' | ||
| last-modified: | ||
| - Mon, 31 Aug 2020 04:38:01 GMT | ||
| server: | ||
| - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 | ||
| x-ms-access-tier: | ||
| - Hot | ||
| x-ms-access-tier-inferred: | ||
| - 'true' | ||
| x-ms-blob-type: | ||
| - BlockBlob | ||
| x-ms-creation-time: | ||
| - Mon, 31 Aug 2020 04:38:01 GMT | ||
| x-ms-last-access-time: | ||
| - Mon, 31 Aug 2020 04:38:01 GMT | ||
| x-ms-lease-state: | ||
| - available | ||
| x-ms-lease-status: | ||
| - unlocked | ||
| x-ms-server-encrypted: | ||
| - 'true' | ||
| x-ms-version: | ||
| - '2020-02-10' | ||
| status: | ||
| code: 200 | ||
| message: OK | ||
| - request: | ||
| body: this is test content | ||
| headers: | ||
| Accept: | ||
| - '*/*' | ||
| Accept-Encoding: | ||
| - gzip, deflate | ||
| Connection: | ||
| - keep-alive | ||
| Content-Length: | ||
| - '20' | ||
| Content-Type: | ||
| - application/octet-stream | ||
| User-Agent: | ||
| - azsdk-python-storage-blob/12.4.0 Python/3.8.5 (Windows-10-10.0.18362-SP0) | ||
| x-ms-date: | ||
| - Mon, 31 Aug 2020 04:38:02 GMT | ||
| x-ms-version: | ||
| - '2020-02-10' | ||
| method: PUT | ||
| uri: https://storagename.blob.core.windows.net/utcontainer56131a54/blob1?blockid=MQ%3D%3D&comp=block | ||
| response: | ||
| body: | ||
| string: '' | ||
| headers: | ||
| content-length: | ||
| - '0' | ||
| date: | ||
| - Mon, 31 Aug 2020 04:38:02 GMT | ||
| server: | ||
| - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 | ||
| x-ms-content-crc64: | ||
| - wae/Ns62JRA= | ||
| x-ms-request-server-encrypted: | ||
| - 'true' | ||
| x-ms-version: | ||
| - '2020-02-10' | ||
| status: | ||
| code: 201 | ||
| message: Created | ||
| - request: | ||
| body: '<?xml version=''1.0'' encoding=''utf-8''?> | ||
|
|
||
| <BlockList><Latest>MQ==</Latest></BlockList>' | ||
| headers: | ||
| Accept: | ||
| - '*/*' | ||
| Accept-Encoding: | ||
| - gzip, deflate | ||
| Connection: | ||
| - keep-alive | ||
| Content-Length: | ||
| - '83' | ||
| Content-Type: | ||
| - application/xml; charset=utf-8 | ||
| User-Agent: | ||
| - azsdk-python-storage-blob/12.4.0 Python/3.8.5 (Windows-10-10.0.18362-SP0) | ||
| x-ms-date: | ||
| - Mon, 31 Aug 2020 04:38:02 GMT | ||
| x-ms-version: | ||
| - '2020-02-10' | ||
| method: PUT | ||
| uri: https://storagename.blob.core.windows.net/utcontainer56131a54/blob1?comp=blocklist | ||
| response: | ||
| body: | ||
| string: '' | ||
| headers: | ||
| content-length: | ||
| - '0' | ||
| date: | ||
| - Mon, 31 Aug 2020 04:38:02 GMT | ||
| etag: | ||
| - '"0x8D84D67A5AE07DE"' | ||
| last-modified: | ||
| - Mon, 31 Aug 2020 04:38:02 GMT | ||
| server: | ||
| - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 | ||
| x-ms-content-crc64: | ||
| - iEgKfcNWGmY= | ||
| x-ms-request-server-encrypted: | ||
| - 'true' | ||
| x-ms-version: | ||
| - '2020-02-10' | ||
| status: | ||
| code: 201 | ||
| message: Created | ||
| - request: | ||
| body: null | ||
| headers: | ||
| Accept: | ||
| - '*/*' | ||
| Accept-Encoding: | ||
| - gzip, deflate | ||
| Connection: | ||
| - keep-alive | ||
| User-Agent: | ||
| - azsdk-python-storage-blob/12.4.0 Python/3.8.5 (Windows-10-10.0.18362-SP0) | ||
| x-ms-date: | ||
| - Mon, 31 Aug 2020 04:38:03 GMT | ||
| x-ms-version: | ||
| - '2020-02-10' | ||
| method: HEAD | ||
| uri: https://storagename.blob.core.windows.net/utcontainer56131a54/blob1 | ||
| response: | ||
| body: | ||
| string: '' | ||
| headers: | ||
| accept-ranges: | ||
| - bytes | ||
| content-length: | ||
| - '20' | ||
| content-type: | ||
| - application/octet-stream | ||
| date: | ||
| - Mon, 31 Aug 2020 04:38:02 GMT | ||
| etag: | ||
| - '"0x8D84D67A5AE07DE"' | ||
| last-modified: | ||
| - Mon, 31 Aug 2020 04:38:02 GMT | ||
| server: | ||
| - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 | ||
| x-ms-access-tier: | ||
| - Hot | ||
| x-ms-access-tier-inferred: | ||
| - 'true' | ||
| x-ms-blob-type: | ||
| - BlockBlob | ||
| x-ms-creation-time: | ||
| - Mon, 31 Aug 2020 04:38:01 GMT | ||
| x-ms-last-access-time: | ||
| - Mon, 31 Aug 2020 04:38:02 GMT | ||
| x-ms-lease-state: | ||
| - available | ||
| x-ms-lease-status: | ||
| - unlocked | ||
| x-ms-server-encrypted: | ||
| - 'true' | ||
| x-ms-version: | ||
| - '2020-02-10' | ||
| status: | ||
| code: 200 | ||
| message: OK | ||
| version: 1 |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.