From b0d30064b890c06ed26a4520f88f562354de5f8f Mon Sep 17 00:00:00 2001 From: Zhiyi Huang <17182306+calvinhzy@users.noreply.github.com> Date: Thu, 4 Jul 2024 17:16:48 +0800 Subject: [PATCH] rerun test, style --- .../azext_storage_preview/__init__.py | 5 +- .../azext_storage_preview/_format.py | 2 - .../azext_storage_preview/_validators.py | 5 +- .../azext_storage_preview/azcopy/util.py | 10 +- .../azext_storage_preview/commands.py | 2 +- .../azext_storage_preview/oauth_token_util.py | 4 +- .../azext_storage_preview/services_wrapper.py | 2 +- .../storage_url_helpers.py | 2 +- ...st_storage_file_trailing_dot_scenario.yaml | 377 +++++++++--------- .../azext_storage_preview/util.py | 10 +- 10 files changed, 203 insertions(+), 216 deletions(-) diff --git a/src/storage-preview/azext_storage_preview/__init__.py b/src/storage-preview/azext_storage_preview/__init__.py index bf3e88f4b20..09fc94ef8bb 100644 --- a/src/storage-preview/azext_storage_preview/__init__.py +++ b/src/storage-preview/azext_storage_preview/__init__.py @@ -98,8 +98,9 @@ def register_content_settings_argument(self, settings_class, update, arg_group=N self.extra('clear_content_settings', help='If this flag is set, then if any one or more of the ' 'following properties (--content-cache-control, --content-disposition, --content-encoding, ' - '--content-language, --content-md5, --content-type) is set, then all of these properties are ' - 'set together. If a value is not provided for a given property when at least one of the ' + '--content-language, --content-md5, --content-type) is set, ' + 'then all of these properties are set together. ' + 'If a value is not provided for a given property when at least one of the ' 'properties listed below is set, then that property will be cleared.', arg_type=get_three_state_flag()) diff --git a/src/storage-preview/azext_storage_preview/_format.py b/src/storage-preview/azext_storage_preview/_format.py index d4eea1a4ec7..3281f82026e 100644 --- a/src/storage-preview/azext_storage_preview/_format.py +++ b/src/storage-preview/azext_storage_preview/_format.py @@ -3,8 +3,6 @@ # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- -from azure.cli.core.profiles import get_sdk -from .profiles import CUSTOM_DATA_STORAGE def build_table_output(result, projection): diff --git a/src/storage-preview/azext_storage_preview/_validators.py b/src/storage-preview/azext_storage_preview/_validators.py index e92cbf650d2..2a83245aa1f 100644 --- a/src/storage-preview/azext_storage_preview/_validators.py +++ b/src/storage-preview/azext_storage_preview/_validators.py @@ -3,7 +3,7 @@ # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- -# pylint: disable=protected-access, logging-format-interpolation +# pylint: disable=protected-access, logging-format-interpolation, too-many-branches import os import argparse @@ -888,8 +888,7 @@ def process_file_batch_source_parameters(cmd, namespace): def validate_source_uri(cmd, namespace): # pylint: disable=too-many-statements - from .util import create_short_lived_blob_sas, create_short_lived_blob_sas_v2, \ - create_short_lived_file_sas, create_short_lived_file_sas_v2 + from .util import create_short_lived_blob_sas_v2, create_short_lived_file_sas_v2 usage_string = \ 'Invalid usage: {}. Supply only one of the following argument sets to specify source:' \ '\n\t --source-uri [--source-sas]' \ diff --git a/src/storage-preview/azext_storage_preview/azcopy/util.py b/src/storage-preview/azext_storage_preview/azcopy/util.py index 961657a568b..ac09b03f277 100644 --- a/src/storage-preview/azext_storage_preview/azcopy/util.py +++ b/src/storage-preview/azext_storage_preview/azcopy/util.py @@ -21,7 +21,7 @@ AZCOPY_VERSION = '10.5.0' -class AzCopy(object): +class AzCopy: system_executable_path = { 'Darwin': ['azcopy_darwin_amd64_{}'.format(AZCOPY_VERSION), 'azcopy'], 'Linux': ['azcopy_linux_amd64_{}'.format(AZCOPY_VERSION), 'azcopy'], @@ -55,7 +55,7 @@ def sync(self, source, destination, flags=None): self.run_command(['sync', source, destination] + flags) -class AzCopyCredentials(object): # pylint: disable=too-few-public-methods +class AzCopyCredentials: # pylint: disable=too-few-public-methods def __init__(self, sas_token=None, token_info=None): self.sas_token = sas_token self.token_info = token_info @@ -66,7 +66,7 @@ def login_auth_for_azcopy(cmd): try: token_info = _unserialize_non_msi_token_payload(token_info) except KeyError: # unserialized MSI token payload - raise Exception('MSI auth not yet supported.') + raise RuntimeError('MSI auth not yet supported.') return AzCopyCredentials(token_info=token_info) @@ -80,13 +80,13 @@ def blob_client_auth_for_azcopy(cmd, blob_client): try: token_info = _unserialize_non_msi_token_payload(token_info) except KeyError: # unserialized MSI token payload - raise Exception('MSI auth not yet supported.') + raise RuntimeError('MSI auth not yet supported.') return AzCopyCredentials(token_info=token_info) def storage_client_auth_for_azcopy(cmd, client, service): if service not in SERVICES: - raise Exception('{} not one of: {}'.format(service, str(SERVICES))) + raise KeyError('{} not one of: {}'.format(service, str(SERVICES))) if client.sas_token: return AzCopyCredentials(sas_token=client.sas_token) diff --git a/src/storage-preview/azext_storage_preview/commands.py b/src/storage-preview/azext_storage_preview/commands.py index 8787f49732a..125246e5656 100644 --- a/src/storage-preview/azext_storage_preview/commands.py +++ b/src/storage-preview/azext_storage_preview/commands.py @@ -6,7 +6,7 @@ from azure.cli.core.commands import CliCommandType from azure.cli.core.commands.arm import show_exception_handler from ._client_factory import (cf_sa, blob_data_service_factory, adls_blob_data_service_factory, - cf_share_client, cf_share_service, cf_share_file_client, cf_share_directory_client) + cf_share_client, cf_share_file_client, cf_share_directory_client) from .profiles import (CUSTOM_DATA_STORAGE, CUSTOM_DATA_STORAGE_ADLS, CUSTOM_MGMT_STORAGE, CUSTOM_DATA_STORAGE_FILESHARE) diff --git a/src/storage-preview/azext_storage_preview/oauth_token_util.py b/src/storage-preview/azext_storage_preview/oauth_token_util.py index e1eb59f63d1..8c476296660 100644 --- a/src/storage-preview/azext_storage_preview/oauth_token_util.py +++ b/src/storage-preview/azext_storage_preview/oauth_token_util.py @@ -6,7 +6,7 @@ import threading -class TokenUpdater(object): +class TokenUpdater: """ This class updates a given token_credential periodically using the provided callback function. It shows one way of making sure the credential does not become expired. @@ -34,7 +34,7 @@ def timer_callback(self): seconds_left = (datetime.fromtimestamp(int(token['expires_on'])) - datetime.now()).seconds if seconds_left < 240: # acquired token expires in less than 4 mins - raise Exception("Acquired a token expiring in less than 4 minutes") + raise RuntimeError("Acquired a token expiring in less than 4 minutes") with self.lock: self.timer = threading.Timer(seconds_left - 240, self.timer_callback) diff --git a/src/storage-preview/azext_storage_preview/services_wrapper.py b/src/storage-preview/azext_storage_preview/services_wrapper.py index ef9cde6dfa7..94b15776868 100644 --- a/src/storage-preview/azext_storage_preview/services_wrapper.py +++ b/src/storage-preview/azext_storage_preview/services_wrapper.py @@ -9,7 +9,7 @@ from .profiles import CUSTOM_DATA_STORAGE -class ServiceProperties(object): +class ServiceProperties: def __init__(self, cli_ctx, name, service, account_name=None, account_key=None, connection_string=None, sas_token=None): self.cli_ctx = cli_ctx diff --git a/src/storage-preview/azext_storage_preview/storage_url_helpers.py b/src/storage-preview/azext_storage_preview/storage_url_helpers.py index 40856b2e592..f537fc36379 100644 --- a/src/storage-preview/azext_storage_preview/storage_url_helpers.py +++ b/src/storage-preview/azext_storage_preview/storage_url_helpers.py @@ -10,7 +10,7 @@ # pylint: disable=too-few-public-methods, too-many-instance-attributes -class StorageResourceIdentifier(object): +class StorageResourceIdentifier: def __init__(self, cloud, moniker): self.is_valid = False self.account_name = None diff --git a/src/storage-preview/azext_storage_preview/tests/latest/recordings/test_storage_file_trailing_dot_scenario.yaml b/src/storage-preview/azext_storage_preview/tests/latest/recordings/test_storage_file_trailing_dot_scenario.yaml index 9bf0ed0ab07..0e27cd52980 100644 --- a/src/storage-preview/azext_storage_preview/tests/latest/recordings/test_storage_file_trailing_dot_scenario.yaml +++ b/src/storage-preview/azext_storage_preview/tests/latest/recordings/test_storage_file_trailing_dot_scenario.yaml @@ -15,13 +15,12 @@ interactions: ParameterSetName: - -n -g --query -o User-Agent: - - AZURECLI/2.50.0 (PIP) azsdk-python-azure-mgmt-storage/21.0.0 Python/3.9.13 - (Windows-10-10.0.19045-SP0) + - AZURECLI/2.62.0 (PIP) azsdk-python-core/1.28.0 Python/3.9.13 (Windows-10-10.0.19045-SP0) method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Storage/storageAccounts/clitest000002/listKeys?api-version=2022-09-01&$expand=kerb + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Storage/storageAccounts/clitest000002/listKeys?api-version=2023-05-01&$expand=kerb response: body: - string: '{"keys":[{"creationTime":"2023-07-19T03:14:51.4884786Z","keyName":"key1","value":"veryFakedStorageAccountKey==","permissions":"FULL"},{"creationTime":"2023-07-19T03:14:51.4884786Z","keyName":"key2","value":"veryFakedStorageAccountKey==","permissions":"FULL"}]}' + string: '{"keys":[{"creationTime":"2024-07-04T08:56:03.2650976Z","keyName":"key1","value":"veryFakedStorageAccountKey==","permissions":"FULL"},{"creationTime":"2024-07-04T08:56:03.2650976Z","keyName":"key2","value":"veryFakedStorageAccountKey==","permissions":"FULL"}]}' headers: cache-control: - no-cache @@ -30,7 +29,7 @@ interactions: content-type: - application/json date: - - Wed, 19 Jul 2023 03:15:14 GMT + - Thu, 04 Jul 2024 08:56:26 GMT expires: - '-1' pragma: @@ -39,14 +38,12 @@ interactions: - Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding x-content-type-options: - nosniff + x-ms-operation-identifier: + - tenantId=54826b22-38d6-4fb2-bad9-b7b93a3e9c5a,objectId=a7250e3a-0e5e-48e2-9a34-45f1f5e1a91e/eastus2euap/9f4a36e8-15bf-42cb-a583-1b86b5cb6289 x-ms-ratelimit-remaining-subscription-resource-requests: - - '11995' + - '11999' status: code: 200 message: OK @@ -66,10 +63,10 @@ interactions: ParameterSetName: - -n --account-name --account-key User-Agent: - - AZURECLI/2.50.0 (PIP) azsdk-python-storage-file-share/12.12.0b1 Python/3.9.13 + - AZURECLI/2.62.0 (PIP) azsdk-python-storage-file-share/12.12.0b1 Python/3.9.13 (Windows-10-10.0.19045-SP0) x-ms-date: - - Wed, 19 Jul 2023 03:15:15 GMT + - Thu, 04 Jul 2024 08:56:27 GMT x-ms-version: - '2022-11-02' method: PUT @@ -81,11 +78,11 @@ interactions: content-length: - '0' date: - - Wed, 19 Jul 2023 03:15:15 GMT + - Thu, 04 Jul 2024 08:56:28 GMT etag: - - '"0x8DB88065FF0C776"' + - '"0x8DC9C0731548AF3"' last-modified: - - Wed, 19 Jul 2023 03:15:16 GMT + - Thu, 04 Jul 2024 08:56:28 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-version: @@ -109,14 +106,14 @@ interactions: ParameterSetName: - --share-name --source -p --account-name --account-key User-Agent: - - AZURECLI/2.50.0 (PIP) azsdk-python-storage-file-share/12.12.0b1 Python/3.9.13 + - AZURECLI/2.62.0 (PIP) azsdk-python-storage-file-share/12.12.0b1 Python/3.9.13 (Windows-10-10.0.19045-SP0) x-ms-allow-trailing-dot: - 'true' x-ms-content-length: - '131072' x-ms-date: - - Wed, 19 Jul 2023 03:15:17 GMT + - Thu, 04 Jul 2024 08:56:29 GMT x-ms-file-attributes: - none x-ms-file-creation-time: @@ -138,27 +135,27 @@ interactions: content-length: - '0' date: - - Wed, 19 Jul 2023 03:15:17 GMT + - Thu, 04 Jul 2024 08:56:30 GMT etag: - - '"0x8DB880661064BE6"' + - '"0x8DC9C073296C8CC"' last-modified: - - Wed, 19 Jul 2023 03:15:18 GMT + - Thu, 04 Jul 2024 08:56:30 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-file-attributes: - Archive x-ms-file-change-time: - - '2023-07-19T03:15:18.2041062Z' + - '2024-07-04T08:56:30.7214540Z' x-ms-file-creation-time: - - '2023-07-19T03:15:18.2041062Z' + - '2024-07-04T08:56:30.7214540Z' x-ms-file-id: - '13835128424026341376' x-ms-file-last-write-time: - - '2023-07-19T03:15:18.2041062Z' + - '2024-07-04T08:56:30.7214540Z' x-ms-file-parent-id: - '0' x-ms-file-permission-key: - - 18157963568122331185*6007489540917782719 + - 13646673173238271331*1567904350621509101 x-ms-request-server-encrypted: - 'true' x-ms-version: @@ -184,12 +181,12 @@ interactions: ParameterSetName: - --share-name --source -p --account-name --account-key User-Agent: - - AZURECLI/2.50.0 (PIP) azsdk-python-storage-file-share/12.12.0b1 Python/3.9.13 + - AZURECLI/2.62.0 (PIP) azsdk-python-storage-file-share/12.12.0b1 Python/3.9.13 (Windows-10-10.0.19045-SP0) x-ms-allow-trailing-dot: - 'true' x-ms-date: - - Wed, 19 Jul 2023 03:15:18 GMT + - Thu, 04 Jul 2024 08:56:30 GMT x-ms-range: - bytes=0-131071 x-ms-version: @@ -207,15 +204,15 @@ interactions: content-md5: - DfvoqkwgtS4bi/PLbL3xkw== date: - - Wed, 19 Jul 2023 03:15:18 GMT + - Thu, 04 Jul 2024 08:56:31 GMT etag: - - '"0x8DB880661B9CAC0"' + - '"0x8DC9C073352AA27"' last-modified: - - Wed, 19 Jul 2023 03:15:19 GMT + - Thu, 04 Jul 2024 08:56:31 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-file-last-write-time: - - '2023-07-19T03:15:19.3804480Z' + - '2024-07-04T08:56:31.9527463Z' x-ms-request-server-encrypted: - 'true' x-ms-version: @@ -237,12 +234,12 @@ interactions: ParameterSetName: - -s -p --account-name --account-key User-Agent: - - AZURECLI/2.50.0 (PIP) azsdk-python-storage-file-share/12.12.0b1 Python/3.9.13 + - AZURECLI/2.62.0 (PIP) azsdk-python-storage-file-share/12.12.0b1 Python/3.9.13 (Windows-10-10.0.19045-SP0) x-ms-allow-trailing-dot: - 'true' x-ms-date: - - Wed, 19 Jul 2023 03:15:19 GMT + - Thu, 04 Jul 2024 08:56:32 GMT x-ms-version: - '2022-11-02' method: HEAD @@ -256,27 +253,27 @@ interactions: content-type: - application/octet-stream date: - - Wed, 19 Jul 2023 03:15:20 GMT + - Thu, 04 Jul 2024 08:56:33 GMT etag: - - '"0x8DB880661B9CAC0"' + - '"0x8DC9C073352AA27"' last-modified: - - Wed, 19 Jul 2023 03:15:19 GMT + - Thu, 04 Jul 2024 08:56:31 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-file-attributes: - Archive x-ms-file-change-time: - - '2023-07-19T03:15:19.3804480Z' + - '2024-07-04T08:56:31.9527463Z' x-ms-file-creation-time: - - '2023-07-19T03:15:18.2041062Z' + - '2024-07-04T08:56:30.7214540Z' x-ms-file-id: - '13835128424026341376' x-ms-file-last-write-time: - - '2023-07-19T03:15:19.3804480Z' + - '2024-07-04T08:56:31.9527463Z' x-ms-file-parent-id: - '0' x-ms-file-permission-key: - - 18157963568122331185*6007489540917782719 + - 13646673173238271331*1567904350621509101 x-ms-lease-state: - available x-ms-lease-status: @@ -304,12 +301,12 @@ interactions: ParameterSetName: - --share-name -p --dest --account-name --account-key User-Agent: - - AZURECLI/2.50.0 (PIP) azsdk-python-storage-file-share/12.12.0b1 Python/3.9.13 + - AZURECLI/2.62.0 (PIP) azsdk-python-storage-file-share/12.12.0b1 Python/3.9.13 (Windows-10-10.0.19045-SP0) x-ms-allow-trailing-dot: - 'true' x-ms-date: - - Wed, 19 Jul 2023 03:15:21 GMT + - Thu, 04 Jul 2024 08:56:33 GMT x-ms-range: - bytes=0-33554431 x-ms-version: @@ -329,27 +326,27 @@ interactions: content-type: - application/octet-stream date: - - Wed, 19 Jul 2023 03:15:21 GMT + - Thu, 04 Jul 2024 08:56:34 GMT etag: - - '"0x8DB880661B9CAC0"' + - '"0x8DC9C073352AA27"' last-modified: - - Wed, 19 Jul 2023 03:15:19 GMT + - Thu, 04 Jul 2024 08:56:31 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-file-attributes: - Archive x-ms-file-change-time: - - '2023-07-19T03:15:19.3804480Z' + - '2024-07-04T08:56:31.9527463Z' x-ms-file-creation-time: - - '2023-07-19T03:15:18.2041062Z' + - '2024-07-04T08:56:30.7214540Z' x-ms-file-id: - '13835128424026341376' x-ms-file-last-write-time: - - '2023-07-19T03:15:19.3804480Z' + - '2024-07-04T08:56:31.9527463Z' x-ms-file-parent-id: - '0' x-ms-file-permission-key: - - 18157963568122331185*6007489540917782719 + - 13646673173238271331*1567904350621509101 x-ms-lease-state: - available x-ms-lease-status: @@ -377,12 +374,12 @@ interactions: ParameterSetName: - --share-name -p --dest --account-name --account-key User-Agent: - - AZURECLI/2.50.0 (PIP) azsdk-python-storage-file-share/12.12.0b1 Python/3.9.13 + - AZURECLI/2.62.0 (PIP) azsdk-python-storage-file-share/12.12.0b1 Python/3.9.13 (Windows-10-10.0.19045-SP0) x-ms-allow-trailing-dot: - 'true' x-ms-date: - - Wed, 19 Jul 2023 03:15:23 GMT + - Thu, 04 Jul 2024 08:56:35 GMT x-ms-version: - '2022-11-02' method: HEAD @@ -396,27 +393,27 @@ interactions: content-type: - application/octet-stream date: - - Wed, 19 Jul 2023 03:15:23 GMT + - Thu, 04 Jul 2024 08:56:35 GMT etag: - - '"0x8DB880661B9CAC0"' + - '"0x8DC9C073352AA27"' last-modified: - - Wed, 19 Jul 2023 03:15:19 GMT + - Thu, 04 Jul 2024 08:56:31 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-file-attributes: - Archive x-ms-file-change-time: - - '2023-07-19T03:15:19.3804480Z' + - '2024-07-04T08:56:31.9527463Z' x-ms-file-creation-time: - - '2023-07-19T03:15:18.2041062Z' + - '2024-07-04T08:56:30.7214540Z' x-ms-file-id: - '13835128424026341376' x-ms-file-last-write-time: - - '2023-07-19T03:15:19.3804480Z' + - '2024-07-04T08:56:31.9527463Z' x-ms-file-parent-id: - '0' x-ms-file-permission-key: - - 18157963568122331185*6007489540917782719 + - 13646673173238271331*1567904350621509101 x-ms-lease-state: - available x-ms-lease-status: @@ -444,12 +441,12 @@ interactions: ParameterSetName: - --share-name -p --dest --disallow-trailing-dot --account-name --account-key User-Agent: - - AZURECLI/2.50.0 (PIP) azsdk-python-storage-file-share/12.12.0b1 Python/3.9.13 + - AZURECLI/2.62.0 (PIP) azsdk-python-storage-file-share/12.12.0b1 Python/3.9.13 (Windows-10-10.0.19045-SP0) x-ms-allow-trailing-dot: - 'false' x-ms-date: - - Wed, 19 Jul 2023 03:15:23 GMT + - Thu, 04 Jul 2024 08:56:36 GMT x-ms-range: - bytes=0-33554431 x-ms-version: @@ -459,14 +456,14 @@ interactions: response: body: string: "\uFEFFResourceNotFoundThe - specified resource does not exist.\nRequestId:70dfdd7b-401a-0018-0cef-b97154000000\nTime:2023-07-19T03:15:25.0213301Z" + specified resource does not exist.\nRequestId:974520a5-601a-006d-5af0-cd3a95000000\nTime:2024-07-04T08:56:37.6557511Z" headers: content-length: - '221' content-type: - application/xml date: - - Wed, 19 Jul 2023 03:15:24 GMT + - Thu, 04 Jul 2024 08:56:37 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-error-code: @@ -493,14 +490,14 @@ interactions: - --source-account-name --source-path --source-share --destination-path --destination-share --account-name --account-key User-Agent: - - AZURECLI/2.50.0 (PIP) azsdk-python-storage-file-share/12.12.0b1 Python/3.9.13 + - AZURECLI/2.62.0 (PIP) azsdk-python-storage-file-share/12.12.0b1 Python/3.9.13 (Windows-10-10.0.19045-SP0) x-ms-allow-trailing-dot: - 'true' x-ms-copy-source: - - https://clitestptv5wivn63v7uz5hh.file.core.windows.net/sharet4p227stjb2txd3kv55/sample_file.bin... + - https://clitestwe52jopa67boae5pg.file.core.windows.net/shareunuk2u5t5ge7xrnpfuf/sample_file.bin... x-ms-date: - - Wed, 19 Jul 2023 03:15:25 GMT + - Thu, 04 Jul 2024 08:56:38 GMT x-ms-source-allow-trailing-dot: - 'true' x-ms-version: @@ -514,15 +511,15 @@ interactions: content-length: - '0' date: - - Wed, 19 Jul 2023 03:15:25 GMT + - Thu, 04 Jul 2024 08:56:38 GMT etag: - - '"0x8DB880666064022"' + - '"0x8DC9C0737A5F800"' last-modified: - - Wed, 19 Jul 2023 03:15:26 GMT + - Thu, 04 Jul 2024 08:56:39 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-copy-id: - - 324127bf-2bea-4ee2-8608-647a979cf693 + - 60dc0d2c-184d-48bb-9003-903966de8749 x-ms-copy-status: - success x-ms-version: @@ -544,12 +541,12 @@ interactions: ParameterSetName: - -s -p --account-name --account-key User-Agent: - - AZURECLI/2.50.0 (PIP) azsdk-python-storage-file-share/12.12.0b1 Python/3.9.13 + - AZURECLI/2.62.0 (PIP) azsdk-python-storage-file-share/12.12.0b1 Python/3.9.13 (Windows-10-10.0.19045-SP0) x-ms-allow-trailing-dot: - 'true' x-ms-date: - - Wed, 19 Jul 2023 03:15:27 GMT + - Thu, 04 Jul 2024 08:56:39 GMT x-ms-version: - '2022-11-02' method: HEAD @@ -563,37 +560,37 @@ interactions: content-type: - application/octet-stream date: - - Wed, 19 Jul 2023 03:15:27 GMT + - Thu, 04 Jul 2024 08:56:40 GMT etag: - - '"0x8DB880666064022"' + - '"0x8DC9C0737A5F800"' last-modified: - - Wed, 19 Jul 2023 03:15:26 GMT + - Thu, 04 Jul 2024 08:56:39 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-copy-completion-time: - - Wed, 19 Jul 2023 03:15:26 GMT + - Thu, 04 Jul 2024 08:56:39 GMT x-ms-copy-id: - - 324127bf-2bea-4ee2-8608-647a979cf693 + - 60dc0d2c-184d-48bb-9003-903966de8749 x-ms-copy-progress: - 131072/131072 x-ms-copy-source: - - https://clitestptv5wivn63v7uz5hh.file.core.windows.net/sharet4p227stjb2txd3kv55/sample_file.bin... + - https://clitestwe52jopa67boae5pg.file.core.windows.net/shareunuk2u5t5ge7xrnpfuf/sample_file.bin... x-ms-copy-status: - success x-ms-file-attributes: - Archive x-ms-file-change-time: - - '2023-07-19T03:15:26.5924130Z' + - '2024-07-04T08:56:39.2095744Z' x-ms-file-creation-time: - - '2023-07-19T03:15:26.5924130Z' + - '2024-07-04T08:56:39.2095744Z' x-ms-file-id: - '13835093239654252544' x-ms-file-last-write-time: - - '2023-07-19T03:15:26.5924130Z' + - '2024-07-04T08:56:39.2095744Z' x-ms-file-parent-id: - '0' x-ms-file-permission-key: - - 18157963568122331185*6007489540917782719 + - 13646673173238271331*1567904350621509101 x-ms-lease-state: - available x-ms-lease-status: @@ -624,14 +621,14 @@ interactions: - --source-account-name --source-path --source-share --destination-path --destination-share --disallow-trailing-dot --account-name --account-key User-Agent: - - AZURECLI/2.50.0 (PIP) azsdk-python-storage-file-share/12.12.0b1 Python/3.9.13 + - AZURECLI/2.62.0 (PIP) azsdk-python-storage-file-share/12.12.0b1 Python/3.9.13 (Windows-10-10.0.19045-SP0) x-ms-allow-trailing-dot: - 'false' x-ms-copy-source: - - https://clitestptv5wivn63v7uz5hh.file.core.windows.net/sharet4p227stjb2txd3kv55/sample_file.bin... + - https://clitestwe52jopa67boae5pg.file.core.windows.net/shareunuk2u5t5ge7xrnpfuf/sample_file.bin... x-ms-date: - - Wed, 19 Jul 2023 03:15:28 GMT + - Thu, 04 Jul 2024 08:56:41 GMT x-ms-source-allow-trailing-dot: - 'true' x-ms-version: @@ -645,15 +642,15 @@ interactions: content-length: - '0' date: - - Wed, 19 Jul 2023 03:15:29 GMT + - Thu, 04 Jul 2024 08:56:41 GMT etag: - - '"0x8DB880667E8288F"' + - '"0x8DC9C07397AE82C"' last-modified: - - Wed, 19 Jul 2023 03:15:29 GMT + - Thu, 04 Jul 2024 08:56:42 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-copy-id: - - 657ecd7d-34ef-41c4-a273-a6aa01cb410a + - 25cc2912-fc08-45da-9eff-fff398cf0c76 x-ms-copy-status: - success x-ms-version: @@ -675,12 +672,12 @@ interactions: ParameterSetName: - -s -p --disallow-trailing-dot --account-name --account-key User-Agent: - - AZURECLI/2.50.0 (PIP) azsdk-python-storage-file-share/12.12.0b1 Python/3.9.13 + - AZURECLI/2.62.0 (PIP) azsdk-python-storage-file-share/12.12.0b1 Python/3.9.13 (Windows-10-10.0.19045-SP0) x-ms-allow-trailing-dot: - 'false' x-ms-date: - - Wed, 19 Jul 2023 03:15:30 GMT + - Thu, 04 Jul 2024 08:56:42 GMT x-ms-version: - '2022-11-02' method: HEAD @@ -694,37 +691,37 @@ interactions: content-type: - application/octet-stream date: - - Wed, 19 Jul 2023 03:15:31 GMT + - Thu, 04 Jul 2024 08:56:43 GMT etag: - - '"0x8DB880667E8288F"' + - '"0x8DC9C07397AE82C"' last-modified: - - Wed, 19 Jul 2023 03:15:29 GMT + - Thu, 04 Jul 2024 08:56:42 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-copy-completion-time: - - Wed, 19 Jul 2023 03:15:29 GMT + - Thu, 04 Jul 2024 08:56:42 GMT x-ms-copy-id: - - 657ecd7d-34ef-41c4-a273-a6aa01cb410a + - 25cc2912-fc08-45da-9eff-fff398cf0c76 x-ms-copy-progress: - 131072/131072 x-ms-copy-source: - - https://clitestptv5wivn63v7uz5hh.file.core.windows.net/sharet4p227stjb2txd3kv55/sample_file.bin... + - https://clitestwe52jopa67boae5pg.file.core.windows.net/shareunuk2u5t5ge7xrnpfuf/sample_file.bin... x-ms-copy-status: - success x-ms-file-attributes: - Archive x-ms-file-change-time: - - '2023-07-19T03:15:29.7506447Z' + - '2024-07-04T08:56:42.2828076Z' x-ms-file-creation-time: - - '2023-07-19T03:15:29.7506447Z' + - '2024-07-04T08:56:42.2828076Z' x-ms-file-id: - '13835163608398430208' x-ms-file-last-write-time: - - '2023-07-19T03:15:29.7506447Z' + - '2024-07-04T08:56:42.2828076Z' x-ms-file-parent-id: - '0' x-ms-file-permission-key: - - 18157963568122331185*6007489540917782719 + - 13646673173238271331*1567904350621509101 x-ms-lease-state: - available x-ms-lease-status: @@ -755,14 +752,14 @@ interactions: - --source-account-name --source-path --source-share --destination-path --destination-share --disallow-source-trailing-dot --account-name --account-key User-Agent: - - AZURECLI/2.50.0 (PIP) azsdk-python-storage-file-share/12.12.0b1 Python/3.9.13 + - AZURECLI/2.62.0 (PIP) azsdk-python-storage-file-share/12.12.0b1 Python/3.9.13 (Windows-10-10.0.19045-SP0) x-ms-allow-trailing-dot: - 'true' x-ms-copy-source: - - https://clitestptv5wivn63v7uz5hh.file.core.windows.net/sharet4p227stjb2txd3kv55/sample_file.bin... + - https://clitestwe52jopa67boae5pg.file.core.windows.net/shareunuk2u5t5ge7xrnpfuf/sample_file.bin... x-ms-date: - - Wed, 19 Jul 2023 03:15:31 GMT + - Thu, 04 Jul 2024 08:56:44 GMT x-ms-source-allow-trailing-dot: - 'false' x-ms-version: @@ -772,14 +769,14 @@ interactions: response: body: string: "\uFEFFResourceNotFoundThe - specified resource does not exist.\nRequestId:1d8b63d7-c01a-0006-4cef-b99d8c000000\nTime:2023-07-19T03:15:32.7433916Z" + specified resource does not exist.\nRequestId:1ced244d-101a-002d-55f0-cd137b000000\nTime:2024-07-04T08:56:45.5097834Z" headers: content-length: - '221' content-type: - application/xml date: - - Wed, 19 Jul 2023 03:15:32 GMT + - Thu, 04 Jul 2024 08:56:44 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-error-code: @@ -805,12 +802,12 @@ interactions: ParameterSetName: - -s -p --account-name --account-key User-Agent: - - AZURECLI/2.50.0 (PIP) azsdk-python-storage-file-share/12.12.0b1 Python/3.9.13 + - AZURECLI/2.62.0 (PIP) azsdk-python-storage-file-share/12.12.0b1 Python/3.9.13 (Windows-10-10.0.19045-SP0) x-ms-allow-trailing-dot: - 'true' x-ms-date: - - Wed, 19 Jul 2023 03:15:33 GMT + - Thu, 04 Jul 2024 08:56:45 GMT x-ms-version: - '2022-11-02' method: DELETE @@ -822,7 +819,7 @@ interactions: content-length: - '0' date: - - Wed, 19 Jul 2023 03:15:33 GMT + - Thu, 04 Jul 2024 08:56:46 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-version: @@ -844,12 +841,12 @@ interactions: ParameterSetName: - -s -p --account-name --account-key User-Agent: - - AZURECLI/2.50.0 (PIP) azsdk-python-storage-file-share/12.12.0b1 Python/3.9.13 + - AZURECLI/2.62.0 (PIP) azsdk-python-storage-file-share/12.12.0b1 Python/3.9.13 (Windows-10-10.0.19045-SP0) x-ms-allow-trailing-dot: - 'true' x-ms-date: - - Wed, 19 Jul 2023 03:15:34 GMT + - Thu, 04 Jul 2024 08:56:47 GMT x-ms-version: - '2022-11-02' method: HEAD @@ -859,7 +856,7 @@ interactions: string: '' headers: date: - - Wed, 19 Jul 2023 03:15:35 GMT + - Thu, 04 Jul 2024 08:56:47 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 transfer-encoding: @@ -887,14 +884,14 @@ interactions: ParameterSetName: - --share-name --source -p --disallow-trailing-dot --account-name --account-key User-Agent: - - AZURECLI/2.50.0 (PIP) azsdk-python-storage-file-share/12.12.0b1 Python/3.9.13 + - AZURECLI/2.62.0 (PIP) azsdk-python-storage-file-share/12.12.0b1 Python/3.9.13 (Windows-10-10.0.19045-SP0) x-ms-allow-trailing-dot: - 'false' x-ms-content-length: - '131072' x-ms-date: - - Wed, 19 Jul 2023 03:15:36 GMT + - Thu, 04 Jul 2024 08:56:49 GMT x-ms-file-attributes: - none x-ms-file-creation-time: @@ -916,27 +913,27 @@ interactions: content-length: - '0' date: - - Wed, 19 Jul 2023 03:15:36 GMT + - Thu, 04 Jul 2024 08:56:49 GMT etag: - - '"0x8DB88066C54A466"' + - '"0x8DC9C073E2E493F"' last-modified: - - Wed, 19 Jul 2023 03:15:37 GMT + - Thu, 04 Jul 2024 08:56:50 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-file-attributes: - Archive x-ms-file-change-time: - - '2023-07-19T03:15:37.1724902Z' + - '2024-07-04T08:56:50.1692735Z' x-ms-file-creation-time: - - '2023-07-19T03:15:37.1724902Z' + - '2024-07-04T08:56:50.1692735Z' x-ms-file-id: - '13835146016212385792' x-ms-file-last-write-time: - - '2023-07-19T03:15:37.1724902Z' + - '2024-07-04T08:56:50.1692735Z' x-ms-file-parent-id: - '0' x-ms-file-permission-key: - - 18157963568122331185*6007489540917782719 + - 13646673173238271331*1567904350621509101 x-ms-request-server-encrypted: - 'true' x-ms-version: @@ -962,12 +959,12 @@ interactions: ParameterSetName: - --share-name --source -p --disallow-trailing-dot --account-name --account-key User-Agent: - - AZURECLI/2.50.0 (PIP) azsdk-python-storage-file-share/12.12.0b1 Python/3.9.13 + - AZURECLI/2.62.0 (PIP) azsdk-python-storage-file-share/12.12.0b1 Python/3.9.13 (Windows-10-10.0.19045-SP0) x-ms-allow-trailing-dot: - 'false' x-ms-date: - - Wed, 19 Jul 2023 03:15:37 GMT + - Thu, 04 Jul 2024 08:56:50 GMT x-ms-range: - bytes=0-131071 x-ms-version: @@ -985,15 +982,15 @@ interactions: content-md5: - DfvoqkwgtS4bi/PLbL3xkw== date: - - Wed, 19 Jul 2023 03:15:37 GMT + - Thu, 04 Jul 2024 08:56:50 GMT etag: - - '"0x8DB88066D05B297"' + - '"0x8DC9C073EEA51A6"' last-modified: - - Wed, 19 Jul 2023 03:15:38 GMT + - Thu, 04 Jul 2024 08:56:51 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-file-last-write-time: - - '2023-07-19T03:15:38.3328407Z' + - '2024-07-04T08:56:51.4015654Z' x-ms-request-server-encrypted: - 'true' x-ms-version: @@ -1015,12 +1012,12 @@ interactions: ParameterSetName: - -s -p --disallow-trailing-dot --account-name --account-key User-Agent: - - AZURECLI/2.50.0 (PIP) azsdk-python-storage-file-share/12.12.0b1 Python/3.9.13 + - AZURECLI/2.62.0 (PIP) azsdk-python-storage-file-share/12.12.0b1 Python/3.9.13 (Windows-10-10.0.19045-SP0) x-ms-allow-trailing-dot: - 'false' x-ms-date: - - Wed, 19 Jul 2023 03:15:38 GMT + - Thu, 04 Jul 2024 08:56:51 GMT x-ms-version: - '2022-11-02' method: HEAD @@ -1034,27 +1031,27 @@ interactions: content-type: - application/octet-stream date: - - Wed, 19 Jul 2023 03:15:39 GMT + - Thu, 04 Jul 2024 08:56:52 GMT etag: - - '"0x8DB88066D05B297"' + - '"0x8DC9C073EEA51A6"' last-modified: - - Wed, 19 Jul 2023 03:15:38 GMT + - Thu, 04 Jul 2024 08:56:51 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-file-attributes: - Archive x-ms-file-change-time: - - '2023-07-19T03:15:38.3328407Z' + - '2024-07-04T08:56:51.4015654Z' x-ms-file-creation-time: - - '2023-07-19T03:15:37.1724902Z' + - '2024-07-04T08:56:50.1692735Z' x-ms-file-id: - '13835146016212385792' x-ms-file-last-write-time: - - '2023-07-19T03:15:38.3328407Z' + - '2024-07-04T08:56:51.4015654Z' x-ms-file-parent-id: - '0' x-ms-file-permission-key: - - 18157963568122331185*6007489540917782719 + - 13646673173238271331*1567904350621509101 x-ms-lease-state: - available x-ms-lease-status: @@ -1084,12 +1081,12 @@ interactions: ParameterSetName: - --share-name --name --fail-on-exist --account-name --account-key User-Agent: - - AZURECLI/2.50.0 (PIP) azsdk-python-storage-file-share/12.12.0b1 Python/3.9.13 + - AZURECLI/2.62.0 (PIP) azsdk-python-storage-file-share/12.12.0b1 Python/3.9.13 (Windows-10-10.0.19045-SP0) x-ms-allow-trailing-dot: - 'true' x-ms-date: - - Wed, 19 Jul 2023 03:15:40 GMT + - Thu, 04 Jul 2024 08:56:53 GMT x-ms-file-attributes: - none x-ms-file-creation-time: @@ -1109,27 +1106,27 @@ interactions: content-length: - '0' date: - - Wed, 19 Jul 2023 03:15:40 GMT + - Thu, 04 Jul 2024 08:56:53 GMT etag: - - '"0x8DB88066EBD5CBE"' + - '"0x8DC9C0740BFB6F0"' last-modified: - - Wed, 19 Jul 2023 03:15:41 GMT + - Thu, 04 Jul 2024 08:56:54 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-file-attributes: - Directory x-ms-file-change-time: - - '2023-07-19T03:15:41.2142270Z' + - '2024-07-04T08:56:54.4777968Z' x-ms-file-creation-time: - - '2023-07-19T03:15:41.2142270Z' + - '2024-07-04T08:56:54.4777968Z' x-ms-file-id: - '13835110831840296960' x-ms-file-last-write-time: - - '2023-07-19T03:15:41.2142270Z' + - '2024-07-04T08:56:54.4777968Z' x-ms-file-parent-id: - '0' x-ms-file-permission-key: - - 4289051903550881590*6007489540917782719 + - 9014366562828563044*1567904350621509101 x-ms-request-server-encrypted: - 'true' x-ms-version: @@ -1151,12 +1148,12 @@ interactions: ParameterSetName: - -s --account-name --account-key User-Agent: - - AZURECLI/2.50.0 (PIP) azsdk-python-storage-file-share/12.12.0b1 Python/3.9.13 + - AZURECLI/2.62.0 (PIP) azsdk-python-storage-file-share/12.12.0b1 Python/3.9.13 (Windows-10-10.0.19045-SP0) x-ms-allow-trailing-dot: - 'true' x-ms-date: - - Wed, 19 Jul 2023 03:15:41 GMT + - Thu, 04 Jul 2024 08:56:54 GMT x-ms-version: - '2022-11-02' method: GET @@ -1165,17 +1162,17 @@ interactions: body: string: "\uFEFF0dir000004..138351108318402969602023-07-19T03:15:41.2142270Z2023-07-19T03:15:41.2142270Z2023-07-19T03:15:41.2142270Z2023-07-19T03:15:41.2142270ZWed, - 19 Jul 2023 03:15:41 GMT\"0x8DB88066EBD5CBE\"Directory4289051903550881590*6007489540917782719sample_file.bin138351460162123857921310722023-07-19T03:15:37.1724902Z2023-07-19T03:15:37.1724902Z2023-07-19T03:15:38.3328407Z2023-07-19T03:15:38.3328407ZWed, - 19 Jul 2023 03:15:38 GMT\"0x8DB88066D05B297\"Archive18157963568122331185*6007489540917782719sample_file_dst.bin138351636083984302081310722023-07-19T03:15:29.7506447Z2023-07-19T03:15:29.7506447Z2023-07-19T03:15:29.7506447Z2023-07-19T03:15:29.7506447ZWed, - 19 Jul 2023 03:15:29 GMT\"0x8DB880667E8288F\"Archive18157963568122331185*6007489540917782719sample_file_dst.bin...138350932396542525441310722023-07-19T03:15:26.5924130Z2023-07-19T03:15:26.5924130Z2023-07-19T03:15:26.5924130Z2023-07-19T03:15:26.5924130ZWed, - 19 Jul 2023 03:15:26 GMT\"0x8DB880666064022\"Archive18157963568122331185*60074895409177827190dir000004..138351108318402969602024-07-04T08:56:54.4777968Z2024-07-04T08:56:54.4777968Z2024-07-04T08:56:54.4777968Z2024-07-04T08:56:54.4777968ZThu, + 04 Jul 2024 08:56:54 GMT\"0x8DC9C0740BFB6F0\"Directory9014366562828563044*1567904350621509101sample_file.bin138351460162123857921310722024-07-04T08:56:50.1692735Z2024-07-04T08:56:50.1692735Z2024-07-04T08:56:51.4015654Z2024-07-04T08:56:51.4015654ZThu, + 04 Jul 2024 08:56:51 GMT\"0x8DC9C073EEA51A6\"Archive13646673173238271331*1567904350621509101sample_file_dst.bin138351636083984302081310722024-07-04T08:56:42.2828076Z2024-07-04T08:56:42.2828076Z2024-07-04T08:56:42.2828076Z2024-07-04T08:56:42.2828076ZThu, + 04 Jul 2024 08:56:42 GMT\"0x8DC9C07397AE82C\"Archive13646673173238271331*1567904350621509101sample_file_dst.bin...138350932396542525441310722024-07-04T08:56:39.2095744Z2024-07-04T08:56:39.2095744Z2024-07-04T08:56:39.2095744Z2024-07-04T08:56:39.2095744ZThu, + 04 Jul 2024 08:56:39 GMT\"0x8DC9C0737A5F800\"Archive13646673173238271331*1567904350621509101" headers: content-type: - application/xml date: - - Wed, 19 Jul 2023 03:15:43 GMT + - Thu, 04 Jul 2024 08:56:55 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 transfer-encoding: @@ -1199,12 +1196,12 @@ interactions: ParameterSetName: - --share-name -n --account-name --account-key User-Agent: - - AZURECLI/2.50.0 (PIP) azsdk-python-storage-file-share/12.12.0b1 Python/3.9.13 + - AZURECLI/2.62.0 (PIP) azsdk-python-storage-file-share/12.12.0b1 Python/3.9.13 (Windows-10-10.0.19045-SP0) x-ms-allow-trailing-dot: - 'true' x-ms-date: - - Wed, 19 Jul 2023 03:15:44 GMT + - Thu, 04 Jul 2024 08:56:56 GMT x-ms-version: - '2022-11-02' method: GET @@ -1216,27 +1213,27 @@ interactions: content-length: - '0' date: - - Wed, 19 Jul 2023 03:15:45 GMT + - Thu, 04 Jul 2024 08:56:57 GMT etag: - - '"0x8DB88066EBD5CBE"' + - '"0x8DC9C0740BFB6F0"' last-modified: - - Wed, 19 Jul 2023 03:15:41 GMT + - Thu, 04 Jul 2024 08:56:54 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-file-attributes: - Directory x-ms-file-change-time: - - '2023-07-19T03:15:41.2142270Z' + - '2024-07-04T08:56:54.4777968Z' x-ms-file-creation-time: - - '2023-07-19T03:15:41.2142270Z' + - '2024-07-04T08:56:54.4777968Z' x-ms-file-id: - '13835110831840296960' x-ms-file-last-write-time: - - '2023-07-19T03:15:41.2142270Z' + - '2024-07-04T08:56:54.4777968Z' x-ms-file-parent-id: - '0' x-ms-file-permission-key: - - 4289051903550881590*6007489540917782719 + - 9014366562828563044*1567904350621509101 x-ms-server-encrypted: - 'true' x-ms-version: @@ -1261,12 +1258,12 @@ interactions: - --share-name --name --fail-on-exist --disallow-trailing-dot --account-name --account-key User-Agent: - - AZURECLI/2.50.0 (PIP) azsdk-python-storage-file-share/12.12.0b1 Python/3.9.13 + - AZURECLI/2.62.0 (PIP) azsdk-python-storage-file-share/12.12.0b1 Python/3.9.13 (Windows-10-10.0.19045-SP0) x-ms-allow-trailing-dot: - 'false' x-ms-date: - - Wed, 19 Jul 2023 03:15:45 GMT + - Thu, 04 Jul 2024 08:56:58 GMT x-ms-file-attributes: - none x-ms-file-creation-time: @@ -1286,27 +1283,27 @@ interactions: content-length: - '0' date: - - Wed, 19 Jul 2023 03:15:46 GMT + - Thu, 04 Jul 2024 08:56:58 GMT etag: - - '"0x8DB8806721582EA"' + - '"0x8DC9C0743B3F693"' last-modified: - - Wed, 19 Jul 2023 03:15:46 GMT + - Thu, 04 Jul 2024 08:56:59 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-file-attributes: - Directory x-ms-file-change-time: - - '2023-07-19T03:15:46.8250858Z' + - '2024-07-04T08:56:59.4339475Z' x-ms-file-creation-time: - - '2023-07-19T03:15:46.8250858Z' + - '2024-07-04T08:56:59.4339475Z' x-ms-file-id: - '13835181200584474624' x-ms-file-last-write-time: - - '2023-07-19T03:15:46.8250858Z' + - '2024-07-04T08:56:59.4339475Z' x-ms-file-parent-id: - '0' x-ms-file-permission-key: - - 4289051903550881590*6007489540917782719 + - 9014366562828563044*1567904350621509101 x-ms-request-server-encrypted: - 'true' x-ms-version: @@ -1328,12 +1325,12 @@ interactions: ParameterSetName: - -s --account-name --account-key User-Agent: - - AZURECLI/2.50.0 (PIP) azsdk-python-storage-file-share/12.12.0b1 Python/3.9.13 + - AZURECLI/2.62.0 (PIP) azsdk-python-storage-file-share/12.12.0b1 Python/3.9.13 (Windows-10-10.0.19045-SP0) x-ms-allow-trailing-dot: - 'true' x-ms-date: - - Wed, 19 Jul 2023 03:15:47 GMT + - Thu, 04 Jul 2024 08:56:59 GMT x-ms-version: - '2022-11-02' method: GET @@ -1342,18 +1339,18 @@ interactions: body: string: "\uFEFF0dir000004138351812005844746242023-07-19T03:15:46.8250858Z2023-07-19T03:15:46.8250858Z2023-07-19T03:15:46.8250858Z2023-07-19T03:15:46.8250858ZWed, - 19 Jul 2023 03:15:46 GMT\"0x8DB8806721582EA\"Directory4289051903550881590*6007489540917782719dir000004..138351108318402969602023-07-19T03:15:41.2142270Z2023-07-19T03:15:41.2142270Z2023-07-19T03:15:41.2142270Z2023-07-19T03:15:41.2142270ZWed, - 19 Jul 2023 03:15:41 GMT\"0x8DB88066EBD5CBE\"Directory4289051903550881590*6007489540917782719sample_file.bin138351460162123857921310722023-07-19T03:15:37.1724902Z2023-07-19T03:15:37.1724902Z2023-07-19T03:15:38.3328407Z2023-07-19T03:15:38.3328407ZWed, - 19 Jul 2023 03:15:38 GMT\"0x8DB88066D05B297\"Archive18157963568122331185*6007489540917782719sample_file_dst.bin138351636083984302081310722023-07-19T03:15:29.7506447Z2023-07-19T03:15:29.7506447Z2023-07-19T03:15:29.7506447Z2023-07-19T03:15:29.7506447ZWed, - 19 Jul 2023 03:15:29 GMT\"0x8DB880667E8288F\"Archive18157963568122331185*6007489540917782719sample_file_dst.bin...138350932396542525441310722023-07-19T03:15:26.5924130Z2023-07-19T03:15:26.5924130Z2023-07-19T03:15:26.5924130Z2023-07-19T03:15:26.5924130ZWed, - 19 Jul 2023 03:15:26 GMT\"0x8DB880666064022\"Archive18157963568122331185*60074895409177827190dir000004138351812005844746242024-07-04T08:56:59.4339475Z2024-07-04T08:56:59.4339475Z2024-07-04T08:56:59.4339475Z2024-07-04T08:56:59.4339475ZThu, + 04 Jul 2024 08:56:59 GMT\"0x8DC9C0743B3F693\"Directory9014366562828563044*1567904350621509101dir000004..138351108318402969602024-07-04T08:56:54.4777968Z2024-07-04T08:56:54.4777968Z2024-07-04T08:56:54.4777968Z2024-07-04T08:56:54.4777968ZThu, + 04 Jul 2024 08:56:54 GMT\"0x8DC9C0740BFB6F0\"Directory9014366562828563044*1567904350621509101sample_file.bin138351460162123857921310722024-07-04T08:56:50.1692735Z2024-07-04T08:56:50.1692735Z2024-07-04T08:56:51.4015654Z2024-07-04T08:56:51.4015654ZThu, + 04 Jul 2024 08:56:51 GMT\"0x8DC9C073EEA51A6\"Archive13646673173238271331*1567904350621509101sample_file_dst.bin138351636083984302081310722024-07-04T08:56:42.2828076Z2024-07-04T08:56:42.2828076Z2024-07-04T08:56:42.2828076Z2024-07-04T08:56:42.2828076ZThu, + 04 Jul 2024 08:56:42 GMT\"0x8DC9C07397AE82C\"Archive13646673173238271331*1567904350621509101sample_file_dst.bin...138350932396542525441310722024-07-04T08:56:39.2095744Z2024-07-04T08:56:39.2095744Z2024-07-04T08:56:39.2095744Z2024-07-04T08:56:39.2095744ZThu, + 04 Jul 2024 08:56:39 GMT\"0x8DC9C0737A5F800\"Archive13646673173238271331*1567904350621509101" headers: content-type: - application/xml date: - - Wed, 19 Jul 2023 03:15:47 GMT + - Thu, 04 Jul 2024 08:57:00 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 transfer-encoding: @@ -1377,12 +1374,12 @@ interactions: ParameterSetName: - --share-name -n --disallow-trailing-dot --account-name --account-key User-Agent: - - AZURECLI/2.50.0 (PIP) azsdk-python-storage-file-share/12.12.0b1 Python/3.9.13 + - AZURECLI/2.62.0 (PIP) azsdk-python-storage-file-share/12.12.0b1 Python/3.9.13 (Windows-10-10.0.19045-SP0) x-ms-allow-trailing-dot: - 'false' x-ms-date: - - Wed, 19 Jul 2023 03:15:49 GMT + - Thu, 04 Jul 2024 08:57:01 GMT x-ms-version: - '2022-11-02' method: GET @@ -1394,27 +1391,27 @@ interactions: content-length: - '0' date: - - Wed, 19 Jul 2023 03:15:49 GMT + - Thu, 04 Jul 2024 08:57:02 GMT etag: - - '"0x8DB8806721582EA"' + - '"0x8DC9C0743B3F693"' last-modified: - - Wed, 19 Jul 2023 03:15:46 GMT + - Thu, 04 Jul 2024 08:56:59 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-file-attributes: - Directory x-ms-file-change-time: - - '2023-07-19T03:15:46.8250858Z' + - '2024-07-04T08:56:59.4339475Z' x-ms-file-creation-time: - - '2023-07-19T03:15:46.8250858Z' + - '2024-07-04T08:56:59.4339475Z' x-ms-file-id: - '13835181200584474624' x-ms-file-last-write-time: - - '2023-07-19T03:15:46.8250858Z' + - '2024-07-04T08:56:59.4339475Z' x-ms-file-parent-id: - '0' x-ms-file-permission-key: - - 4289051903550881590*6007489540917782719 + - 9014366562828563044*1567904350621509101 x-ms-server-encrypted: - 'true' x-ms-version: @@ -1438,10 +1435,10 @@ interactions: ParameterSetName: - -n --account-name --account-key User-Agent: - - AZURECLI/2.50.0 (PIP) azsdk-python-storage-file-share/12.12.0b1 Python/3.9.13 + - AZURECLI/2.62.0 (PIP) azsdk-python-storage-file-share/12.12.0b1 Python/3.9.13 (Windows-10-10.0.19045-SP0) x-ms-date: - - Wed, 19 Jul 2023 03:15:50 GMT + - Thu, 04 Jul 2024 08:57:03 GMT x-ms-version: - '2022-11-02' method: DELETE @@ -1453,7 +1450,7 @@ interactions: content-length: - '0' date: - - Wed, 19 Jul 2023 03:15:51 GMT + - Thu, 04 Jul 2024 08:57:03 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-version: diff --git a/src/storage-preview/azext_storage_preview/util.py b/src/storage-preview/azext_storage_preview/util.py index ceb658674af..f4a878b8eb2 100644 --- a/src/storage-preview/azext_storage_preview/util.py +++ b/src/storage-preview/azext_storage_preview/util.py @@ -5,7 +5,7 @@ import os -from datetime import datetime +from datetime import datetime, timedelta from .profiles import CUSTOM_DATA_STORAGE_FILESHARE, CUSTOM_DATA_STORAGE_BLOB @@ -102,7 +102,6 @@ def glob_files_remotely(cmd, client, share_name, pattern): def create_short_lived_blob_sas(cmd, account_name, account_key, container, blob): - from datetime import datetime, timedelta if cmd.supported_api_version(min_api='2017-04-17'): t_sas = cmd.get_models( 'blob.sharedaccesssignature#BlobSharedAccessSignature') @@ -116,7 +115,6 @@ def create_short_lived_blob_sas(cmd, account_name, account_key, container, blob) def create_short_lived_file_sas(cmd, account_name, account_key, share, directory_name, file_name): - from datetime import datetime, timedelta if cmd.supported_api_version(min_api='2017-04-17'): t_sas = cmd.get_models( 'file.sharedaccesssignature#FileSharedAccessSignature') @@ -133,7 +131,6 @@ def create_short_lived_file_sas(cmd, account_name, account_key, share, directory def create_short_lived_container_sas(cmd, account_name, account_key, container): - from datetime import datetime, timedelta if cmd.supported_api_version(min_api='2017-04-17'): t_sas = cmd.get_models( 'blob.sharedaccesssignature#BlobSharedAccessSignature') @@ -147,7 +144,6 @@ def create_short_lived_container_sas(cmd, account_name, account_key, container): def create_short_lived_share_sas(cmd, account_name, account_key, share): - from datetime import datetime, timedelta if cmd.supported_api_version(min_api='2017-04-17'): t_sas = cmd.get_models( 'file.sharedaccesssignature#FileSharedAccessSignature') @@ -244,7 +240,6 @@ def wrapper(*args, **kwargs): def create_short_lived_blob_sas_v2(cmd, account_name, account_key, container, blob): - from datetime import timedelta t_sas = cmd.get_models('_shared_access_signature#BlobSharedAccessSignature', resource_type=CUSTOM_DATA_STORAGE_BLOB) @@ -256,7 +251,6 @@ def create_short_lived_blob_sas_v2(cmd, account_name, account_key, container, bl def create_short_lived_file_sas_v2(cmd, account_name, account_key, share, directory_name, file_name): - from datetime import timedelta t_sas = cmd.get_models('_shared_access_signature#FileSharedAccessSignature', resource_type=CUSTOM_DATA_STORAGE_FILESHARE) @@ -269,7 +263,6 @@ def create_short_lived_file_sas_v2(cmd, account_name, account_key, share, direct def create_short_lived_container_sas_track2(cmd, account_name, account_key, container): - from datetime import timedelta t_generate_container_sas = cmd.get_models('_shared_access_signature#generate_container_sas', resource_type=CUSTOM_DATA_STORAGE_BLOB) expiry = (datetime.utcnow() + timedelta(days=1)).strftime('%Y-%m-%dT%H:%M:%SZ') @@ -278,7 +271,6 @@ def create_short_lived_container_sas_track2(cmd, account_name, account_key, cont def create_short_lived_share_sas_track2(cmd, account_name, account_key, share): - from datetime import timedelta t_generate_share_sas = cmd.get_models('#generate_share_sas', resource_type=CUSTOM_DATA_STORAGE_FILESHARE) expiry = (datetime.utcnow() + timedelta(days=1)).strftime('%Y-%m-%dT%H:%M:%SZ') return t_generate_share_sas(account_name, share, account_key, permission='r', expiry=expiry,