diff --git a/src/azure-cli/azure/cli/command_modules/storage/_format.py b/src/azure-cli/azure/cli/command_modules/storage/_format.py index bdd9a76a958..0549061cfd7 100644 --- a/src/azure-cli/azure/cli/command_modules/storage/_format.py +++ b/src/azure-cli/azure/cli/command_modules/storage/_format.py @@ -5,7 +5,6 @@ """Table transformer for storage commands""" from azure.cli.core.commands.transform import build_table_output -from azure.cli.core.profiles import get_sdk, ResourceType from knack.log import get_logger logger = get_logger(__name__) @@ -104,7 +103,7 @@ def transform_boolean_for_table(result): return result -def transform_file_directory_result(cli_ctx): +def transform_file_directory_result(result): """ Transform a the result returned from file and directory listing API. @@ -112,20 +111,15 @@ def transform_file_directory_result(cli_ctx): in order to align the object's properties so as to offer a better view to the file and dir list. """ - def transformer(result): - if getattr(result, 'next_marker', None): - logger.warning('Next Marker:') - logger.warning(result.next_marker) - - t_file, t_dir = get_sdk(cli_ctx, ResourceType.DATA_STORAGE, 'File', 'Directory', mod='file.models') - return_list = [] - for each in result: - if isinstance(each, t_file): - delattr(each, 'content') - setattr(each, 'type', 'file') - elif isinstance(each, t_dir): - setattr(each, 'type', 'dir') - return_list.append(each) - - return return_list - return transformer + from ._transformers import transform_share_directory_json_output, transform_share_file_json_output + return_list = [] + for each in result: + if getattr(each, 'is_directory', None): + setattr(each, 'type', 'dir') + each = transform_share_directory_json_output(each) + else: + setattr(each, 'type', 'file') + each = transform_share_file_json_output(each) + return_list.append(each) + + return return_list diff --git a/src/azure-cli/azure/cli/command_modules/storage/_format_azure_stack.py b/src/azure-cli/azure/cli/command_modules/storage/_format_azure_stack.py new file mode 100644 index 00000000000..b2ffc0c1c3f --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/storage/_format_azure_stack.py @@ -0,0 +1,35 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# -------------------------------------------------------------------------------------------- + +from knack.log import get_logger +from azure.cli.core.profiles import get_sdk, ResourceType + +logger = get_logger(__name__) + + +def transform_file_directory_result(cli_ctx): + """ + Transform a the result returned from file and directory listing API. + This transformer add and remove properties from File and Directory objects in the given list + in order to align the object's properties so as to offer a better view to the file and dir + list. + """ + def transformer(result): + if getattr(result, 'next_marker', None): + logger.warning('Next Marker:') + logger.warning(result.next_marker) + + t_file, t_dir = get_sdk(cli_ctx, ResourceType.DATA_STORAGE, 'File', 'Directory', mod='file.models') + return_list = [] + for each in result: + if isinstance(each, t_file): + delattr(each, 'content') + setattr(each, 'type', 'file') + elif isinstance(each, t_dir): + setattr(each, 'type', 'dir') + return_list.append(each) + + return return_list + return transformer diff --git a/src/azure-cli/azure/cli/command_modules/storage/_help.py b/src/azure-cli/azure/cli/command_modules/storage/_help.py index b5829804f86..2f9c8a63055 100644 --- a/src/azure-cli/azure/cli/command_modules/storage/_help.py +++ b/src/azure-cli/azure/cli/command_modules/storage/_help.py @@ -1654,6 +1654,21 @@ short-summary: Manage file storage directories. """ +helps['storage directory create'] = """ +type: command +short-summary: Create a new directory under the specified share or parent directory. +""" + +helps['storage directory delete'] = """ +type: command +short-summary: Delete the specified empty directory. +""" + +helps['storage directory show'] = """ +type: command +short-summary: Get all user-defined metadata and system properties for the specified directory +""" + helps['storage directory exists'] = """ type: command short-summary: Check for the existence of a storage directory. @@ -1679,6 +1694,16 @@ short-summary: Manage file storage directory metadata. """ +helps['storage directory metadata show'] = """ +type: command +short-summary: Get all user-defined metadata for the specified directory. +""" + +helps['storage directory metadata update'] = """ +type: command +short-summary: Set one or more user-defined name-value pairs for the specified directory. +""" + helps['storage entity'] = """ type: group short-summary: Manage table storage entities. diff --git a/src/azure-cli/azure/cli/command_modules/storage/_params.py b/src/azure-cli/azure/cli/command_modules/storage/_params.py index c75bd7f89c6..1aeea734a2b 100644 --- a/src/azure-cli/azure/cli/command_modules/storage/_params.py +++ b/src/azure-cli/azure/cli/command_modules/storage/_params.py @@ -1737,12 +1737,28 @@ def load_arguments(self, _): # pylint: disable=too-many-locals, too-many-statem "Astrix (‘*’) is a wildcard that specifies all handles.") c.argument('snapshot', help="A string that represents the snapshot version, if applicable.") - with self.argument_context('storage directory') as c: - c.argument('directory_name', directory_type, options_list=('--name', '-n')) + for scope in ['create', 'delete', 'show', 'exists', 'metadata show', 'metadata update']: + with self.argument_context(f'storage directory {scope}') as c: + c.extra('share_name', share_name_type, required=True) + c.extra('snapshot', help="A string that represents the snapshot version, if applicable.") + c.extra('directory_path', directory_type, options_list=('--name', '-n'), required=True) + c.extra('timeout', help='Request timeout in seconds. Applies to each call to the service.', type=int) + + with self.argument_context('storage directory list') as c: + c.extra('share_name', share_name_type, required=True) + c.extra('directory_path', directory_type, options_list=('--name', '-n')) + c.argument('exclude_extended_info', + help='Specify to exclude "timestamps", "Etag", "Attributes", "PermissionKey" info from response') + c.extra('timeout', help='Request timeout in seconds. Applies to each call to the service.', type=int) + + with self.argument_context('storage directory create') as c: + c.argument('fail_on_exist', help='Throw an exception if the directory already exists.') - with self.argument_context('storage directory exists') as c: - c.ignore('file_name') - c.argument('directory_name', required=True) + with self.argument_context('storage directory delete') as c: + c.argument('fail_not_exist', help='Throw an exception if the directory does not exist.') + + with self.argument_context('storage directory metadata update') as c: + c.argument('metadata', required=False) with self.argument_context('storage file') as c: c.argument('file_name', file_name_type, options_list=('--name', '-n')) @@ -1790,9 +1806,14 @@ def load_arguments(self, _): # pylint: disable=too-many-locals, too-many-statem with self.argument_context('storage file list') as c: from .completers import dir_path_completer + c.extra('share_name', share_name_type, required=True) + c.extra('snapshot', help="A string that represents the snapshot version, if applicable.") c.argument('directory_name', options_list=('--path', '-p'), help='The directory path within the file share.', completer=dir_path_completer) c.argument('num_results', arg_type=num_results_type) + c.argument('marker', arg_type=marker_type) + c.argument('exclude_extended_info', + help='Specify to exclude "timestamps", "Etag", "Attributes", "PermissionKey" info from response') with self.argument_context('storage file metadata show') as c: c.register_path_argument() diff --git a/src/azure-cli/azure/cli/command_modules/storage/_transformers.py b/src/azure-cli/azure/cli/command_modules/storage/_transformers.py index 381637758ea..d853d0d46be 100644 --- a/src/azure-cli/azure/cli/command_modules/storage/_transformers.py +++ b/src/azure-cli/azure/cli/command_modules/storage/_transformers.py @@ -391,3 +391,37 @@ def transform_file_share_json_output(result): } new_result.update(result) return new_result + + +def transform_share_directory_json_output(result): + result = todict(result) + new_result = { + "metadata": result.pop('metadata', None), + "name": result.pop('name', None), + "properties": { + "etag": result.pop('etag', None), + "lastModified": result.pop('lastModified', None), + "serverEncrypted": result.pop('serverEncrypted', None) + } + } + new_result.update(result) + return new_result + + +def transform_share_file_json_output(result): + result = todict(result) + new_result = { + "metadata": result.pop('metadata', None), + "name": result.pop('name', None), + "properties": { + "etag": result.pop('etag', None), + "lastModified": result.pop('lastModified', None), + "serverEncrypted": result.pop('serverEncrypted', None), + "contentLength": result.pop('size', None), + "contentRange": result.pop('contentRange', None), + "contentSettings": result.pop('contentSettings', None), + "copy": result.pop("copy", None) + } + } + new_result.update(result) + return new_result diff --git a/src/azure-cli/azure/cli/command_modules/storage/commands.py b/src/azure-cli/azure/cli/command_modules/storage/commands.py index e0c74050f59..543f7a6f3e2 100644 --- a/src/azure-cli/azure/cli/command_modules/storage/commands.py +++ b/src/azure-cli/azure/cli/command_modules/storage/commands.py @@ -18,6 +18,7 @@ cf_queue_service, cf_table_service, cf_table_client, cf_sa_blob_inventory, cf_blob_service, cf_queue_client, cf_share_client, cf_share_service, + cf_share_file_client, cf_share_directory_client, cf_container_lease_client) from azure.cli.core.commands import CliCommandType @@ -585,6 +586,16 @@ def get_custom_sdk(custom_module, client_factory, resource_type=ResourceType.DAT client_factory=cf_share_service, resource_type=ResourceType.DATA_STORAGE_FILESHARE) + directory_client_sdk = CliCommandType( + operations_tmpl='azure.multiapi.storagev2.fileshare._directory_client#ShareDirectoryClient.{}', + client_factory=cf_share_directory_client, + resource_type=ResourceType.DATA_STORAGE_FILESHARE) + + file_client_sdk = CliCommandType( + operations_tmpl='azure.multiapi.storagev2.fileshare._file_client#ShareFileClient.{}', + client_factory=cf_share_file_client, + resource_type=ResourceType.DATA_STORAGE_FILESHARE) + with self.command_group('storage share-rm', command_type=file_shares_mgmt_sdk, custom_command_type=get_custom_sdk('file', cf_mgmt_file_shares, @@ -651,35 +662,35 @@ def get_custom_sdk(custom_module, client_factory, resource_type=ResourceType.DAT 'list', 'list_acl_policies', table_transformer=transform_acl_list_output) g.storage_custom_command('update', 'set_acl_policy') - with self.command_group('storage directory', command_type=file_sdk, - custom_command_type=get_custom_sdk('directory', file_data_service_factory)) as g: + with self.command_group('storage directory', command_type=directory_client_sdk, + custom_command_type=get_custom_sdk('directory', cf_share_directory_client)) as g: + from ._transformers import transform_share_directory_json_output from ._format import transform_file_directory_result, transform_file_output - - g.storage_command('create', 'create_directory', transform=create_boolean_result_output_transformer('created'), - table_transformer=transform_boolean_for_table) - g.storage_command('delete', 'delete_directory', transform=create_boolean_result_output_transformer('deleted'), - table_transformer=transform_boolean_for_table) - g.storage_command('show', 'get_directory_properties', table_transformer=transform_file_output, - exception_handler=show_exception_handler) - g.storage_command( - 'exists', 'exists', transform=create_boolean_result_output_transformer('exists')) - g.storage_command('metadata show', 'get_directory_metadata', - exception_handler=show_exception_handler) + g.storage_custom_command('create', 'create_directory', + transform=create_boolean_result_output_transformer('created'), + table_transformer=transform_boolean_for_table) + g.storage_custom_command('delete', 'delete_directory', + transform=create_boolean_result_output_transformer('deleted'), + table_transformer=transform_boolean_for_table) + g.storage_custom_command('show', 'get_directory_properties', + transform=transform_share_directory_json_output, + table_transformer=transform_file_output, + exception_handler=show_exception_handler) + g.storage_command('exists', 'exists', + transform=create_boolean_result_output_transformer('exists')) + g.storage_command('metadata show', 'get_directory_properties', + exception_handler=show_exception_handler, + transform=lambda x: getattr(x, 'metadata', x)) g.storage_command('metadata update', 'set_directory_metadata') g.storage_custom_command('list', 'list_share_directories', - transform=transform_file_directory_result( - self.cli_ctx), - table_transformer=transform_file_output, - doc_string_source='file#FileService.list_directories_and_files') + transform=transform_file_directory_result, + table_transformer=transform_file_output) with self.command_group('storage file', command_type=file_sdk, custom_command_type=get_custom_sdk('file', file_data_service_factory)) as g: - from ._format import transform_file_directory_result, transform_boolean_for_table, transform_file_output + from ._format import transform_boolean_for_table, transform_file_output from ._transformers import transform_url from ._exception_handler import file_related_exception_handler - g.storage_custom_command('list', 'list_share_files', transform=transform_file_directory_result(self.cli_ctx), - table_transformer=transform_file_output, - doc_string_source='file#FileService.list_directories_and_files') g.storage_command('delete', 'delete_file', transform=create_boolean_result_output_transformer('deleted'), table_transformer=transform_boolean_for_table) g.storage_command('resize', 'resize_file') @@ -705,6 +716,12 @@ def get_custom_sdk(custom_module, client_factory, resource_type=ResourceType.DAT g.storage_custom_command('delete-batch', 'storage_file_delete_batch') g.storage_custom_command('copy start-batch', 'storage_file_copy_batch') + with self.command_group('storage file', command_type=file_client_sdk, + custom_command_type=get_custom_sdk('file', cf_share_file_client)) as g: + g.storage_custom_command('list', 'list_share_files', client_factory=cf_share_client, + transform=transform_file_directory_result, + table_transformer=transform_file_output) + with self.command_group('storage cors', get_custom_sdk('cors', multi_service_properties_factory)) as g: from ._transformers import transform_cors_list_output diff --git a/src/azure-cli/azure/cli/command_modules/storage/commands_azure_stack.py b/src/azure-cli/azure/cli/command_modules/storage/commands_azure_stack.py index 060a27aa156..aa42d093c58 100644 --- a/src/azure-cli/azure/cli/command_modules/storage/commands_azure_stack.py +++ b/src/azure-cli/azure/cli/command_modules/storage/commands_azure_stack.py @@ -471,7 +471,8 @@ def get_custom_sdk(custom_module, client_factory, resource_type=ResourceType.DAT with self.command_group('storage directory', command_type=file_sdk, custom_command_type=get_custom_sdk('directory_azure_stack', file_data_service_factory)) as g: - from ._format import transform_file_directory_result, transform_file_output + from ._format import transform_file_output + from ._format_azure_stack import transform_file_directory_result g.storage_command('create', 'create_directory', transform=create_boolean_result_output_transformer('created'), table_transformer=transform_boolean_for_table) @@ -492,7 +493,7 @@ def get_custom_sdk(custom_module, client_factory, resource_type=ResourceType.DAT with self.command_group('storage file', command_type=file_sdk, custom_command_type=get_custom_sdk('file_azure_stack', file_data_service_factory)) as g: - from ._format import transform_file_directory_result, transform_boolean_for_table, transform_file_output + from ._format import transform_boolean_for_table, transform_file_output from ._transformers_azure_stack import transform_url g.storage_custom_command('list', 'list_share_files', transform=transform_file_directory_result(self.cli_ctx), table_transformer=transform_file_output, diff --git a/src/azure-cli/azure/cli/command_modules/storage/operations/directory.py b/src/azure-cli/azure/cli/command_modules/storage/operations/directory.py index 4edb64865da..d2fc3821de6 100644 --- a/src/azure-cli/azure/cli/command_modules/storage/operations/directory.py +++ b/src/azure-cli/azure/cli/command_modules/storage/operations/directory.py @@ -2,10 +2,42 @@ # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- +from azure.cli.core.profiles import ResourceType -def list_share_directories(cmd, client, share_name, directory_name=None, timeout=None): - t_dir_properties = cmd.get_models('file.models#DirectoryProperties') +def create_directory(client, metadata=None, fail_on_exist=False, **kwargs): + from azure.core.exceptions import ResourceExistsError + try: + client.create_directory(metadata=metadata, **kwargs) + return True + except ResourceExistsError as ex: + if not fail_on_exist: + return False + raise ex - generator = client.list_directories_and_files(share_name, directory_name, timeout=timeout) - return list(f for f in generator if isinstance(f.properties, t_dir_properties)) + +def delete_directory(client, fail_not_exist=False, **kwargs): + from azure.core.exceptions import ResourceNotFoundError + try: + client.delete_directory(**kwargs) + return True + except ResourceNotFoundError as ex: + if not fail_not_exist: + return False + raise ex + + +def list_share_directories(cmd, client, exclude_extended_info=False, **kwargs): + from ..track2_util import list_generator + kwargs['include'] = [] if exclude_extended_info else ["timestamps", "Etag", "Attributes", "PermissionKey"] + generator = client.list_directories_and_files(**kwargs) + results = list_generator(pages=generator.by_page(), num_results=None) + t_dir_properties = cmd.get_models('_models#DirectoryProperties', resource_type=ResourceType.DATA_STORAGE_FILESHARE) + return list(f for f in results if isinstance(f, t_dir_properties)) + + +def get_directory_properties(client, **kwargs): + directory = client.get_directory_properties(**kwargs) + if hasattr(directory, 'name'): + setattr(directory, 'name', client.directory_path) + return directory diff --git a/src/azure-cli/azure/cli/command_modules/storage/operations/file.py b/src/azure-cli/azure/cli/command_modules/storage/operations/file.py index 7870beaa9ef..c1707982c4a 100644 --- a/src/azure-cli/azure/cli/command_modules/storage/operations/file.py +++ b/src/azure-cli/azure/cli/command_modules/storage/operations/file.py @@ -17,6 +17,8 @@ from azure.cli.command_modules.storage.url_quote_util import encode_for_url, make_encoded_file_url_and_params from azure.cli.core.profiles import ResourceType +logger = get_logger(__name__) + def create_share_rm(cmd, client, resource_group_name, account_name, share_name, metadata=None, share_quota=None, enabled_protocols=None, root_squash=None, access_tier=None): @@ -112,21 +114,23 @@ def create_file_url(client, share_name, directory_name, file_name, protocol=None share_name, directory_name, file_name, protocol=protocol, sas_token=client.sas_token) -def list_share_files(cmd, client, share_name, directory_name=None, timeout=None, exclude_dir=False, snapshot=None, +def list_share_files(cmd, client, directory_name=None, timeout=None, exclude_dir=False, exclude_extended_info=False, num_results=None, marker=None): - if cmd.supported_api_version(min_api='2017-04-17'): - generator = client.list_directories_and_files( - share_name, directory_name, timeout=timeout, num_results=num_results, marker=marker, snapshot=snapshot) - else: - generator = client.list_directories_and_files( - share_name, directory_name, timeout=timeout, num_results=num_results, marker=marker) - - if exclude_dir: - t_file_properties = cmd.get_models('file.models#FileProperties') + from ..track2_util import list_generator + include = [] if exclude_extended_info else ["timestamps", "Etag", "Attributes", "PermissionKey"] + generator = client.list_directories_and_files(directory_name=directory_name, include=include, + timeout=timeout, results_per_page=num_results) + pages = generator.by_page(continuation_token=marker) + results = list_generator(pages=pages, num_results=num_results) - return list(f for f in generator if isinstance(f.properties, t_file_properties)) + if pages.continuation_token: + logger.warning('Next Marker:') + logger.warning(pages.continuation_token) - return generator + if exclude_dir: + t_file_properties = cmd.get_models('_models#FileProperties', resource_type=ResourceType.DATA_STORAGE_FILESHARE) + return list(f for f in results if isinstance(f.properties, t_file_properties)) + return results def close_handle(client, share_name, close_all=None, directory_name=None, file_name=None, recursive=None, @@ -146,7 +150,6 @@ def storage_file_upload_batch(cmd, client, destination, source, destination_path from azure.cli.command_modules.storage.util import glob_files_locally, normalize_blob_file_path source_files = list(glob_files_locally(source, pattern)) - logger = get_logger(__name__) settings_class = cmd.get_models('file.models#ContentSettings') if dryrun: @@ -195,7 +198,6 @@ def storage_file_download_batch(cmd, client, source, destination, pattern=None, if dryrun: source_files_list = list(source_files) - logger = get_logger(__name__) logger.warning('download files from file share') logger.warning(' account %s', client.account_name) logger.warning(' share %s', source) @@ -231,9 +233,7 @@ def storage_file_copy_batch(cmd, client, source_client, destination_share=None, """ Copy a group of files asynchronously """ - logger = None if dryrun: - logger = get_logger(__name__) logger.warning('copy files or blobs to file share') logger.warning(' account %s', client.account_name) logger.warning(' share %s', destination_share) @@ -317,7 +317,6 @@ def delete_action(file_pair): source_files = list(glob_files_remotely(cmd, client, source, pattern)) if dryrun: - logger = get_logger(__name__) logger.warning('delete files from %s', source) logger.warning(' pattern %s', pattern) logger.warning(' share %s', source) diff --git a/src/azure-cli/azure/cli/command_modules/storage/tests/latest/recordings/test_storage_file_main_scenario.yaml b/src/azure-cli/azure/cli/command_modules/storage/tests/latest/recordings/test_storage_file_main_scenario.yaml index c8107c78da8..e532046d5dc 100644 --- a/src/azure-cli/azure/cli/command_modules/storage/tests/latest/recordings/test_storage_file_main_scenario.yaml +++ b/src/azure-cli/azure/cli/command_modules/storage/tests/latest/recordings/test_storage_file_main_scenario.yaml @@ -15,12 +15,12 @@ interactions: ParameterSetName: - -n -g --query -o User-Agent: - - AZURECLI/2.36.0 azsdk-python-azure-mgmt-storage/20.0.0 Python/3.8.7 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.36.0 azsdk-python-azure-mgmt-storage/20.0.0 Python/3.7.9 (Windows-10-10.0.22000-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=2021-09-01&$expand=kerb response: body: - string: '{"keys":[{"creationTime":"2022-05-07T09:13:07.1299005Z","keyName":"key1","value":"veryFakedStorageAccountKey==","permissions":"FULL"},{"creationTime":"2022-05-07T09:13:07.1299005Z","keyName":"key2","value":"veryFakedStorageAccountKey==","permissions":"FULL"}]}' + string: '{"keys":[{"creationTime":"2022-05-17T07:44:23.5024655Z","keyName":"key1","value":"veryFakedStorageAccountKey==","permissions":"FULL"},{"creationTime":"2022-05-17T07:44:23.5024655Z","keyName":"key2","value":"veryFakedStorageAccountKey==","permissions":"FULL"}]}' headers: cache-control: - no-cache @@ -29,7 +29,7 @@ interactions: content-type: - application/json date: - - Sat, 07 May 2022 09:13:32 GMT + - Tue, 17 May 2022 07:44:44 GMT expires: - '-1' pragma: @@ -45,7 +45,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '11999' + - '11998' status: code: 200 message: OK @@ -53,7 +53,7 @@ interactions: body: null headers: Accept: - - '*/*' + - application/xml Accept-Encoding: - gzip, deflate CommandName: @@ -65,11 +65,11 @@ interactions: ParameterSetName: - -n --account-name --account-key User-Agent: - - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.1.1 Python/3.8.7 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.8.0 Python/3.7.9 (Windows-10-10.0.22000-SP0) x-ms-date: - - Sat, 07 May 2022 09:13:34 GMT + - Tue, 17 May 2022 07:44:46 GMT x-ms-version: - - '2019-07-07' + - '2021-06-08' method: PUT uri: https://clitest000002.file.core.windows.net/share000003?restype=share response: @@ -79,15 +79,15 @@ interactions: content-length: - '0' date: - - Sat, 07 May 2022 09:13:35 GMT + - Tue, 17 May 2022 07:44:46 GMT etag: - - '"0x8DA3009DD650EA7"' + - '"0x8DA37D91D76761E"' last-modified: - - Sat, 07 May 2022 09:13:35 GMT + - Tue, 17 May 2022 07:44:46 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-version: - - '2019-07-07' + - '2021-06-08' status: code: 201 message: Created @@ -95,7 +95,7 @@ interactions: body: null headers: Accept: - - '*/*' + - application/xml Accept-Encoding: - gzip, deflate CommandName: @@ -107,9 +107,9 @@ interactions: ParameterSetName: - -n --metadata --account-name --account-key User-Agent: - - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.1.1 Python/3.8.7 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.8.0 Python/3.7.9 (Windows-10-10.0.22000-SP0) x-ms-date: - - Sat, 07 May 2022 09:13:36 GMT + - Tue, 17 May 2022 07:44:48 GMT x-ms-meta: - '{''foo'': ''bar'', ''cat'': ''hat''}' x-ms-meta-cat: @@ -117,7 +117,7 @@ interactions: x-ms-meta-foo: - bar x-ms-version: - - '2019-07-07' + - '2021-06-08' method: PUT uri: https://clitest000002.file.core.windows.net/share000004?restype=share response: @@ -127,15 +127,15 @@ interactions: content-length: - '0' date: - - Sat, 07 May 2022 09:13:36 GMT + - Tue, 17 May 2022 07:44:47 GMT etag: - - '"0x8DA3009DE910DAE"' + - '"0x8DA37D91E38C02D"' last-modified: - - Sat, 07 May 2022 09:13:37 GMT + - Tue, 17 May 2022 07:44:48 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-version: - - '2019-07-07' + - '2021-06-08' status: code: 201 message: Created @@ -143,7 +143,7 @@ interactions: body: null headers: Accept: - - '*/*' + - application/xml Accept-Encoding: - gzip, deflate CommandName: @@ -153,11 +153,11 @@ interactions: ParameterSetName: - -n --account-name --account-key User-Agent: - - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.1.1 Python/3.8.7 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.8.0 Python/3.7.9 (Windows-10-10.0.22000-SP0) x-ms-date: - - Sat, 07 May 2022 09:13:38 GMT + - Tue, 17 May 2022 07:44:49 GMT x-ms-version: - - '2019-07-07' + - '2021-06-08' method: GET uri: https://clitest000002.file.core.windows.net/share000003?restype=share response: @@ -167,21 +167,25 @@ interactions: content-length: - '0' date: - - Sat, 07 May 2022 09:13:37 GMT + - Tue, 17 May 2022 07:44:48 GMT etag: - - '"0x8DA3009DD650EA7"' + - '"0x8DA37D91D76761E"' last-modified: - - Sat, 07 May 2022 09:13:35 GMT + - Tue, 17 May 2022 07:44:46 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-has-immutability-policy: - 'false' x-ms-has-legal-hold: - 'false' + x-ms-lease-state: + - available + x-ms-lease-status: + - unlocked x-ms-share-quota: - '5120' x-ms-version: - - '2019-07-07' + - '2021-06-08' status: code: 200 message: OK @@ -189,7 +193,7 @@ interactions: body: null headers: Accept: - - '*/*' + - application/xml Accept-Encoding: - gzip, deflate CommandName: @@ -199,11 +203,11 @@ interactions: ParameterSetName: - --name --account-name --account-key User-Agent: - - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.1.1 Python/3.8.7 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.8.0 Python/3.7.9 (Windows-10-10.0.22000-SP0) x-ms-date: - - Sat, 07 May 2022 09:13:39 GMT + - Tue, 17 May 2022 07:44:50 GMT x-ms-version: - - '2019-07-07' + - '2021-06-08' method: GET uri: https://clitest000002.file.core.windows.net/share000004?restype=share response: @@ -213,17 +217,21 @@ interactions: content-length: - '0' date: - - Sat, 07 May 2022 09:13:39 GMT + - Tue, 17 May 2022 07:44:49 GMT etag: - - '"0x8DA3009DE910DAE"' + - '"0x8DA37D91E38C02D"' last-modified: - - Sat, 07 May 2022 09:13:37 GMT + - Tue, 17 May 2022 07:44:48 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-has-immutability-policy: - 'false' x-ms-has-legal-hold: - 'false' + x-ms-lease-state: + - available + x-ms-lease-status: + - unlocked x-ms-meta-cat: - hat x-ms-meta-foo: @@ -231,7 +239,7 @@ interactions: x-ms-share-quota: - '5120' x-ms-version: - - '2019-07-07' + - '2021-06-08' status: code: 200 message: OK @@ -249,31 +257,31 @@ interactions: ParameterSetName: - --query --account-name --account-key User-Agent: - - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.1.1 Python/3.8.7 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.8.0 Python/3.7.9 (Windows-10-10.0.22000-SP0) x-ms-date: - - Sat, 07 May 2022 09:13:41 GMT + - Tue, 17 May 2022 07:44:52 GMT x-ms-version: - - '2019-07-07' + - '2021-06-08' method: GET - uri: https://clitest000002.file.core.windows.net/?maxresults=5000&include=&comp=list + uri: https://clitest000002.file.core.windows.net/?comp=list&maxresults=5000&include= response: body: string: "\uFEFF5000share000004Sat, - 07 May 2022 09:13:37 GMT\"0x8DA3009DE910DAE\"5120$account-encryption-keyfalseshare000003Sat, - 07 May 2022 09:13:35 GMT\"0x8DA3009DD650EA7\"5120$account-encryption-keyfalse5000share000003Tue, + 17 May 2022 07:44:46 GMT\"0x8DA37D91D76761E\"unlockedavailable5120$account-encryption-keyfalseshare000004Tue, + 17 May 2022 07:44:48 GMT\"0x8DA37D91E38C02D\"unlockedavailable5120$account-encryption-keyfalse" headers: content-type: - application/xml date: - - Sat, 07 May 2022 09:13:40 GMT + - Tue, 17 May 2022 07:44:51 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 transfer-encoding: - chunked x-ms-version: - - '2019-07-07' + - '2021-06-08' status: code: 200 message: OK @@ -281,7 +289,7 @@ interactions: body: null headers: Accept: - - '*/*' + - application/xml Accept-Encoding: - gzip, deflate CommandName: @@ -293,15 +301,15 @@ interactions: ParameterSetName: - --name --metadata --account-name --account-key User-Agent: - - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.1.1 Python/3.8.7 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.8.0 Python/3.7.9 (Windows-10-10.0.22000-SP0) x-ms-date: - - Sat, 07 May 2022 09:13:42 GMT + - Tue, 17 May 2022 07:44:53 GMT x-ms-meta-a: - b x-ms-meta-c: - d x-ms-version: - - '2019-07-07' + - '2021-06-08' method: PUT uri: https://clitest000002.file.core.windows.net/share000003?restype=share&comp=metadata response: @@ -311,15 +319,15 @@ interactions: content-length: - '0' date: - - Sat, 07 May 2022 09:13:41 GMT + - Tue, 17 May 2022 07:44:53 GMT etag: - - '"0x8DA3009E1B939CE"' + - '"0x8DA37D92155C180"' last-modified: - - Sat, 07 May 2022 09:13:42 GMT + - Tue, 17 May 2022 07:44:53 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-version: - - '2019-07-07' + - '2021-06-08' status: code: 200 message: OK @@ -327,7 +335,7 @@ interactions: body: null headers: Accept: - - '*/*' + - application/xml Accept-Encoding: - gzip, deflate CommandName: @@ -337,11 +345,11 @@ interactions: ParameterSetName: - -n --account-name --account-key User-Agent: - - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.1.1 Python/3.8.7 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.8.0 Python/3.7.9 (Windows-10-10.0.22000-SP0) x-ms-date: - - Sat, 07 May 2022 09:13:43 GMT + - Tue, 17 May 2022 07:44:54 GMT x-ms-version: - - '2019-07-07' + - '2021-06-08' method: GET uri: https://clitest000002.file.core.windows.net/share000003?restype=share response: @@ -351,17 +359,21 @@ interactions: content-length: - '0' date: - - Sat, 07 May 2022 09:13:43 GMT + - Tue, 17 May 2022 07:44:53 GMT etag: - - '"0x8DA3009E1B939CE"' + - '"0x8DA37D92155C180"' last-modified: - - Sat, 07 May 2022 09:13:42 GMT + - Tue, 17 May 2022 07:44:53 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-has-immutability-policy: - 'false' x-ms-has-legal-hold: - 'false' + x-ms-lease-state: + - available + x-ms-lease-status: + - unlocked x-ms-meta-a: - b x-ms-meta-c: @@ -369,7 +381,7 @@ interactions: x-ms-share-quota: - '5120' x-ms-version: - - '2019-07-07' + - '2021-06-08' status: code: 200 message: OK @@ -377,7 +389,7 @@ interactions: body: null headers: Accept: - - '*/*' + - application/xml Accept-Encoding: - gzip, deflate CommandName: @@ -389,11 +401,11 @@ interactions: ParameterSetName: - -n --account-name --account-key User-Agent: - - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.1.1 Python/3.8.7 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.8.0 Python/3.7.9 (Windows-10-10.0.22000-SP0) x-ms-date: - - Sat, 07 May 2022 09:13:44 GMT + - Tue, 17 May 2022 07:44:55 GMT x-ms-version: - - '2019-07-07' + - '2021-06-08' method: PUT uri: https://clitest000002.file.core.windows.net/share000003?restype=share&comp=metadata response: @@ -403,15 +415,15 @@ interactions: content-length: - '0' date: - - Sat, 07 May 2022 09:13:44 GMT + - Tue, 17 May 2022 07:44:55 GMT etag: - - '"0x8DA3009E32032D6"' + - '"0x8DA37D922E3C4EC"' last-modified: - - Sat, 07 May 2022 09:13:44 GMT + - Tue, 17 May 2022 07:44:55 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-version: - - '2019-07-07' + - '2021-06-08' status: code: 200 message: OK @@ -419,7 +431,7 @@ interactions: body: null headers: Accept: - - '*/*' + - application/xml Accept-Encoding: - gzip, deflate CommandName: @@ -429,11 +441,11 @@ interactions: ParameterSetName: - -n --account-name --account-key User-Agent: - - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.1.1 Python/3.8.7 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.8.0 Python/3.7.9 (Windows-10-10.0.22000-SP0) x-ms-date: - - Sat, 07 May 2022 09:13:46 GMT + - Tue, 17 May 2022 07:44:57 GMT x-ms-version: - - '2019-07-07' + - '2021-06-08' method: GET uri: https://clitest000002.file.core.windows.net/share000003?restype=share response: @@ -443,21 +455,25 @@ interactions: content-length: - '0' date: - - Sat, 07 May 2022 09:13:46 GMT + - Tue, 17 May 2022 07:44:56 GMT etag: - - '"0x8DA3009E32032D6"' + - '"0x8DA37D922E3C4EC"' last-modified: - - Sat, 07 May 2022 09:13:44 GMT + - Tue, 17 May 2022 07:44:55 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-has-immutability-policy: - 'false' x-ms-has-legal-hold: - 'false' + x-ms-lease-state: + - available + x-ms-lease-status: + - unlocked x-ms-share-quota: - '5120' x-ms-version: - - '2019-07-07' + - '2021-06-08' status: code: 200 message: OK @@ -465,7 +481,7 @@ interactions: body: null headers: Accept: - - '*/*' + - application/xml Accept-Encoding: - gzip, deflate CommandName: @@ -477,13 +493,13 @@ interactions: ParameterSetName: - --name --quota --account-name --account-key User-Agent: - - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.1.1 Python/3.8.7 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.8.0 Python/3.7.9 (Windows-10-10.0.22000-SP0) x-ms-date: - - Sat, 07 May 2022 09:13:47 GMT + - Tue, 17 May 2022 07:44:58 GMT x-ms-share-quota: - '3' x-ms-version: - - '2019-07-07' + - '2021-06-08' method: PUT uri: https://clitest000002.file.core.windows.net/share000003?restype=share&comp=properties response: @@ -493,15 +509,15 @@ interactions: content-length: - '0' date: - - Sat, 07 May 2022 09:13:48 GMT + - Tue, 17 May 2022 07:44:58 GMT etag: - - '"0x8DA3009E57F47A9"' + - '"0x8DA37D9245F2DAE"' last-modified: - - Sat, 07 May 2022 09:13:48 GMT + - Tue, 17 May 2022 07:44:58 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-version: - - '2019-07-07' + - '2021-06-08' status: code: 200 message: OK @@ -509,7 +525,7 @@ interactions: body: null headers: Accept: - - '*/*' + - application/xml Accept-Encoding: - gzip, deflate CommandName: @@ -519,11 +535,11 @@ interactions: ParameterSetName: - --name --account-name --account-key User-Agent: - - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.1.1 Python/3.8.7 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.8.0 Python/3.7.9 (Windows-10-10.0.22000-SP0) x-ms-date: - - Sat, 07 May 2022 09:13:50 GMT + - Tue, 17 May 2022 07:44:59 GMT x-ms-version: - - '2019-07-07' + - '2021-06-08' method: GET uri: https://clitest000002.file.core.windows.net/share000003?restype=share response: @@ -533,21 +549,25 @@ interactions: content-length: - '0' date: - - Sat, 07 May 2022 09:13:51 GMT + - Tue, 17 May 2022 07:44:59 GMT etag: - - '"0x8DA3009E57F47A9"' + - '"0x8DA37D9245F2DAE"' last-modified: - - Sat, 07 May 2022 09:13:48 GMT + - Tue, 17 May 2022 07:44:58 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-has-immutability-policy: - 'false' x-ms-has-legal-hold: - 'false' + x-ms-lease-state: + - available + x-ms-lease-status: + - unlocked x-ms-share-quota: - '3' x-ms-version: - - '2019-07-07' + - '2021-06-08' status: code: 200 message: OK @@ -559,11 +579,11 @@ interactions: Content-Length: - '0' User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 + - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.7.9; Windows 10) AZURECLI/2.36.0 x-ms-content-length: - '131072' x-ms-date: - - Sat, 07 May 2022 09:13:52 GMT + - Tue, 17 May 2022 07:45:01 GMT x-ms-type: - file x-ms-version: @@ -577,11 +597,11 @@ interactions: content-length: - '0' date: - - Sat, 07 May 2022 09:13:53 GMT + - Tue, 17 May 2022 07:45:00 GMT etag: - - '"0x8DA3009E7EDEF1C"' + - '"0x8DA37D92615CAAE"' last-modified: - - Sat, 07 May 2022 09:13:53 GMT + - Tue, 17 May 2022 07:45:01 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-request-server-encrypted: @@ -599,9 +619,9 @@ interactions: Content-Length: - '131072' User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 + - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.7.9; Windows 10) AZURECLI/2.36.0 x-ms-date: - - Sat, 07 May 2022 09:13:53 GMT + - Tue, 17 May 2022 07:45:02 GMT x-ms-range: - bytes=0-131071 x-ms-version: @@ -619,11 +639,11 @@ interactions: content-md5: - DfvoqkwgtS4bi/PLbL3xkw== date: - - Sat, 07 May 2022 09:13:53 GMT + - Tue, 17 May 2022 07:45:01 GMT etag: - - '"0x8DA3009E86E08AD"' + - '"0x8DA37D926AB6524"' last-modified: - - Sat, 07 May 2022 09:13:53 GMT + - Tue, 17 May 2022 07:45:02 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-request-server-encrypted: @@ -639,9 +659,9 @@ interactions: Connection: - keep-alive User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 + - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.7.9; Windows 10) AZURECLI/2.36.0 x-ms-date: - - Sat, 07 May 2022 09:13:54 GMT + - Tue, 17 May 2022 07:45:03 GMT x-ms-version: - '2018-11-09' method: HEAD @@ -655,11 +675,11 @@ interactions: content-type: - application/octet-stream date: - - Sat, 07 May 2022 09:13:54 GMT + - Tue, 17 May 2022 07:45:02 GMT etag: - - '"0x8DA3009E86E08AD"' + - '"0x8DA37D926AB6524"' last-modified: - - Sat, 07 May 2022 09:13:53 GMT + - Tue, 17 May 2022 07:45:02 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-server-encrypted: @@ -677,9 +697,9 @@ interactions: Connection: - keep-alive User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 + - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.7.9; Windows 10) AZURECLI/2.36.0 x-ms-date: - - Sat, 07 May 2022 09:13:56 GMT + - Tue, 17 May 2022 07:45:04 GMT x-ms-range: - bytes=0-33554431 x-ms-version: @@ -699,11 +719,11 @@ interactions: content-type: - application/octet-stream date: - - Sat, 07 May 2022 09:13:55 GMT + - Tue, 17 May 2022 07:45:04 GMT etag: - - '"0x8DA3009E86E08AD"' + - '"0x8DA37D926AB6524"' last-modified: - - Sat, 07 May 2022 09:13:53 GMT + - Tue, 17 May 2022 07:45:02 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-server-encrypted: @@ -721,9 +741,9 @@ interactions: Connection: - keep-alive User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 + - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.7.9; Windows 10) AZURECLI/2.36.0 x-ms-date: - - Sat, 07 May 2022 09:13:57 GMT + - Tue, 17 May 2022 07:45:06 GMT x-ms-range: - bytes=0-511 x-ms-version: @@ -743,11 +763,11 @@ interactions: content-type: - application/octet-stream date: - - Sat, 07 May 2022 09:13:57 GMT + - Tue, 17 May 2022 07:45:06 GMT etag: - - '"0x8DA3009E86E08AD"' + - '"0x8DA37D926AB6524"' last-modified: - - Sat, 07 May 2022 09:13:53 GMT + - Tue, 17 May 2022 07:45:02 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-server-encrypted: @@ -767,11 +787,11 @@ interactions: Content-Length: - '0' User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 + - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.7.9; Windows 10) AZURECLI/2.36.0 x-ms-content-length: - '1234' x-ms-date: - - Sat, 07 May 2022 09:13:59 GMT + - Tue, 17 May 2022 07:45:08 GMT x-ms-version: - '2018-11-09' method: PUT @@ -783,11 +803,11 @@ interactions: content-length: - '0' date: - - Sat, 07 May 2022 09:13:58 GMT + - Tue, 17 May 2022 07:45:07 GMT etag: - - '"0x8DA3009EB9F20CB"' + - '"0x8DA37D92A18947D"' last-modified: - - Sat, 07 May 2022 09:13:59 GMT + - Tue, 17 May 2022 07:45:08 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-request-server-encrypted: @@ -803,9 +823,9 @@ interactions: Connection: - keep-alive User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 + - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.7.9; Windows 10) AZURECLI/2.36.0 x-ms-date: - - Sat, 07 May 2022 09:14:00 GMT + - Tue, 17 May 2022 07:45:09 GMT x-ms-version: - '2018-11-09' method: HEAD @@ -819,11 +839,11 @@ interactions: content-type: - application/octet-stream date: - - Sat, 07 May 2022 09:14:00 GMT + - Tue, 17 May 2022 07:45:08 GMT etag: - - '"0x8DA3009EB9F20CB"' + - '"0x8DA37D92A18947D"' last-modified: - - Sat, 07 May 2022 09:13:59 GMT + - Tue, 17 May 2022 07:45:08 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-server-encrypted: @@ -843,9 +863,9 @@ interactions: Content-Length: - '0' User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 + - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.7.9; Windows 10) AZURECLI/2.36.0 x-ms-date: - - Sat, 07 May 2022 09:14:01 GMT + - Tue, 17 May 2022 07:45:10 GMT x-ms-meta-a: - b x-ms-meta-c: @@ -861,11 +881,11 @@ interactions: content-length: - '0' date: - - Sat, 07 May 2022 09:14:01 GMT + - Tue, 17 May 2022 07:45:09 GMT etag: - - '"0x8DA3009ED3B07C1"' + - '"0x8DA37D92BA6E98A"' last-modified: - - Sat, 07 May 2022 09:14:01 GMT + - Tue, 17 May 2022 07:45:10 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-request-server-encrypted: @@ -881,9 +901,9 @@ interactions: Connection: - keep-alive User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 + - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.7.9; Windows 10) AZURECLI/2.36.0 x-ms-date: - - Sat, 07 May 2022 09:14:02 GMT + - Tue, 17 May 2022 07:45:11 GMT x-ms-version: - '2018-11-09' method: GET @@ -895,11 +915,11 @@ interactions: content-length: - '0' date: - - Sat, 07 May 2022 09:14:02 GMT + - Tue, 17 May 2022 07:45:11 GMT etag: - - '"0x8DA3009ED3B07C1"' + - '"0x8DA37D92BA6E98A"' last-modified: - - Sat, 07 May 2022 09:14:01 GMT + - Tue, 17 May 2022 07:45:10 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-meta-a: @@ -919,9 +939,9 @@ interactions: Content-Length: - '0' User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 + - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.7.9; Windows 10) AZURECLI/2.36.0 x-ms-date: - - Sat, 07 May 2022 09:14:04 GMT + - Tue, 17 May 2022 07:45:13 GMT x-ms-version: - '2018-11-09' method: PUT @@ -933,11 +953,11 @@ interactions: content-length: - '0' date: - - Sat, 07 May 2022 09:14:03 GMT + - Tue, 17 May 2022 07:45:12 GMT etag: - - '"0x8DA3009EE9275B8"' + - '"0x8DA37D92D2A91D0"' last-modified: - - Sat, 07 May 2022 09:14:04 GMT + - Tue, 17 May 2022 07:45:13 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-request-server-encrypted: @@ -953,9 +973,9 @@ interactions: Connection: - keep-alive User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 + - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.7.9; Windows 10) AZURECLI/2.36.0 x-ms-date: - - Sat, 07 May 2022 09:14:05 GMT + - Tue, 17 May 2022 07:45:14 GMT x-ms-version: - '2018-11-09' method: GET @@ -967,11 +987,11 @@ interactions: content-length: - '0' date: - - Sat, 07 May 2022 09:14:05 GMT + - Tue, 17 May 2022 07:45:13 GMT etag: - - '"0x8DA3009EE9275B8"' + - '"0x8DA37D92D2A91D0"' last-modified: - - Sat, 07 May 2022 09:14:04 GMT + - Tue, 17 May 2022 07:45:13 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-version: @@ -982,33 +1002,42 @@ interactions: - request: body: null headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate + CommandName: + - storage file list Connection: - keep-alive + ParameterSetName: + - -s --query --account-name --account-key User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 + - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.8.0 Python/3.7.9 (Windows-10-10.0.22000-SP0) x-ms-date: - - Sat, 07 May 2022 09:14:06 GMT + - Tue, 17 May 2022 07:45:15 GMT x-ms-version: - - '2018-11-09' + - '2021-06-08' method: GET - uri: https://clitest000002.file.core.windows.net/share000003?restype=directory&comp=list&maxresults=5000 + uri: https://clitest000002.file.core.windows.net/share000003?restype=directory&comp=list&maxresults=5000&include=timestamps,Etag,Attributes,PermissionKey response: body: string: "\uFEFF5000sample_file.bin123450000sample_file.bin1383512842402634137612342022-05-17T07:45:01.2739758Z2022-05-17T07:45:01.2739758Z2022-05-17T07:45:08.0031357Z2022-05-17T07:45:13.1541968ZTue, + 17 May 2022 07:45:13 GMT\"0x8DA37D92D2A91D0\"Archive4728198240921395882*16806597623465298468" headers: content-type: - application/xml date: - - Sat, 07 May 2022 09:14:05 GMT + - Tue, 17 May 2022 07:45:14 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 transfer-encoding: - chunked x-ms-version: - - '2018-11-09' + - '2021-06-08' status: code: 200 message: OK @@ -1018,9 +1047,9 @@ interactions: Connection: - keep-alive User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 + - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.7.9; Windows 10) AZURECLI/2.36.0 x-ms-date: - - Sat, 07 May 2022 09:14:07 GMT + - Tue, 17 May 2022 07:45:17 GMT x-ms-version: - '2018-11-09' method: HEAD @@ -1034,11 +1063,11 @@ interactions: content-type: - application/octet-stream date: - - Sat, 07 May 2022 09:14:06 GMT + - Tue, 17 May 2022 07:45:17 GMT etag: - - '"0x8DA3009EE9275B8"' + - '"0x8DA37D92D2A91D0"' last-modified: - - Sat, 07 May 2022 09:14:04 GMT + - Tue, 17 May 2022 07:45:13 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-server-encrypted: @@ -1058,11 +1087,11 @@ interactions: Content-Length: - '0' User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 + - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.7.9; Windows 10) AZURECLI/2.36.0 x-ms-content-type: - test/type x-ms-date: - - Sat, 07 May 2022 09:14:08 GMT + - Tue, 17 May 2022 07:45:18 GMT x-ms-version: - '2018-11-09' method: PUT @@ -1074,11 +1103,11 @@ interactions: content-length: - '0' date: - - Sat, 07 May 2022 09:14:08 GMT + - Tue, 17 May 2022 07:45:17 GMT etag: - - '"0x8DA3009F14A9F27"' + - '"0x8DA37D930543258"' last-modified: - - Sat, 07 May 2022 09:14:08 GMT + - Tue, 17 May 2022 07:45:18 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-request-server-encrypted: @@ -1094,9 +1123,9 @@ interactions: Connection: - keep-alive User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 + - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.7.9; Windows 10) AZURECLI/2.36.0 x-ms-date: - - Sat, 07 May 2022 09:14:09 GMT + - Tue, 17 May 2022 07:45:19 GMT x-ms-version: - '2018-11-09' method: HEAD @@ -1110,11 +1139,11 @@ interactions: content-type: - test/type date: - - Sat, 07 May 2022 09:14:10 GMT + - Tue, 17 May 2022 07:45:19 GMT etag: - - '"0x8DA3009F14A9F27"' + - '"0x8DA37D930543258"' last-modified: - - Sat, 07 May 2022 09:14:08 GMT + - Tue, 17 May 2022 07:45:18 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-server-encrypted: @@ -1134,9 +1163,9 @@ interactions: Content-Length: - '0' User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 + - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.7.9; Windows 10) AZURECLI/2.36.0 x-ms-date: - - Sat, 07 May 2022 09:14:11 GMT + - Tue, 17 May 2022 07:45:21 GMT x-ms-version: - '2018-11-09' method: DELETE @@ -1148,7 +1177,7 @@ interactions: content-length: - '0' date: - - Sat, 07 May 2022 09:14:11 GMT + - Tue, 17 May 2022 07:45:20 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-version: @@ -1162,9 +1191,9 @@ interactions: Connection: - keep-alive User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 + - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.7.9; Windows 10) AZURECLI/2.36.0 x-ms-date: - - Sat, 07 May 2022 09:14:12 GMT + - Tue, 17 May 2022 07:45:22 GMT x-ms-version: - '2018-11-09' method: HEAD @@ -1174,7 +1203,7 @@ interactions: string: '' headers: date: - - Sat, 07 May 2022 09:14:13 GMT + - Tue, 17 May 2022 07:45:21 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 transfer-encoding: @@ -1189,16 +1218,32 @@ interactions: - request: body: null headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate + CommandName: + - storage directory create Connection: - keep-alive Content-Length: - '0' + ParameterSetName: + - --share-name --name --fail-on-exist --account-name --account-key User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 + - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.8.0 Python/3.7.9 (Windows-10-10.0.22000-SP0) x-ms-date: - - Sat, 07 May 2022 09:14:14 GMT - x-ms-version: - - '2018-11-09' + - Tue, 17 May 2022 07:45:23 GMT + x-ms-file-attributes: + - none + x-ms-file-creation-time: + - now + x-ms-file-last-write-time: + - now + x-ms-file-permission: + - inherit + x-ms-version: + - '2021-06-08' method: PUT uri: https://clitest000002.file.core.windows.net/share000003/dir000005?restype=directory response: @@ -1208,64 +1253,95 @@ interactions: content-length: - '0' date: - - Sat, 07 May 2022 09:14:14 GMT + - Tue, 17 May 2022 07:45:22 GMT etag: - - '"0x8DA3009F5112A7D"' + - '"0x8DA37D93356A182"' last-modified: - - Sat, 07 May 2022 09:14:15 GMT + - Tue, 17 May 2022 07:45:23 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-file-attributes: + - Directory + x-ms-file-change-time: + - '2022-05-17T07:45:23.5092866Z' + x-ms-file-creation-time: + - '2022-05-17T07:45:23.5092866Z' + x-ms-file-id: + - '13835093239654252544' + x-ms-file-last-write-time: + - '2022-05-17T07:45:23.5092866Z' + x-ms-file-parent-id: + - '0' + x-ms-file-permission-key: + - 9360205630214331821*16806597623465298468 x-ms-request-server-encrypted: - 'true' x-ms-version: - - '2018-11-09' + - '2021-06-08' status: code: 201 message: Created - request: body: null headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate + CommandName: + - storage directory list Connection: - keep-alive + ParameterSetName: + - -s --account-name --account-key User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 + - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.8.0 Python/3.7.9 (Windows-10-10.0.22000-SP0) x-ms-date: - - Sat, 07 May 2022 09:14:16 GMT + - Tue, 17 May 2022 07:45:24 GMT x-ms-version: - - '2018-11-09' + - '2021-06-08' method: GET - uri: https://clitest000002.file.core.windows.net/share000003?restype=directory&comp=list + uri: https://clitest000002.file.core.windows.net/share000003?restype=directory&comp=list&include=timestamps,Etag,Attributes,PermissionKey response: body: string: "\uFEFFdir0000050dir000005138350932396542525442022-05-17T07:45:23.5092866Z2022-05-17T07:45:23.5092866Z2022-05-17T07:45:23.5092866Z2022-05-17T07:45:23.5092866ZTue, + 17 May 2022 07:45:23 GMT\"0x8DA37D93356A182\"Directory9360205630214331821*16806597623465298468" headers: content-type: - application/xml date: - - Sat, 07 May 2022 09:14:15 GMT + - Tue, 17 May 2022 07:45:23 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 transfer-encoding: - chunked x-ms-version: - - '2018-11-09' + - '2021-06-08' status: code: 200 message: OK - request: body: null headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate + CommandName: + - storage directory exists Connection: - keep-alive + ParameterSetName: + - --share-name -n --account-name --account-key User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 + - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.8.0 Python/3.7.9 (Windows-10-10.0.22000-SP0) x-ms-date: - - Sat, 07 May 2022 09:14:17 GMT + - Tue, 17 May 2022 07:45:26 GMT x-ms-version: - - '2018-11-09' + - '2021-06-08' method: GET uri: https://clitest000002.file.core.windows.net/share000003/dir000005?restype=directory response: @@ -1275,37 +1351,59 @@ interactions: content-length: - '0' date: - - Sat, 07 May 2022 09:14:17 GMT + - Tue, 17 May 2022 07:45:25 GMT etag: - - '"0x8DA3009F5112A7D"' + - '"0x8DA37D93356A182"' last-modified: - - Sat, 07 May 2022 09:14:15 GMT + - Tue, 17 May 2022 07:45:23 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-file-attributes: + - Directory + x-ms-file-change-time: + - '2022-05-17T07:45:23.5092866Z' + x-ms-file-creation-time: + - '2022-05-17T07:45:23.5092866Z' + x-ms-file-id: + - '13835093239654252544' + x-ms-file-last-write-time: + - '2022-05-17T07:45:23.5092866Z' + x-ms-file-parent-id: + - '0' + x-ms-file-permission-key: + - 9360205630214331821*16806597623465298468 x-ms-server-encrypted: - 'true' x-ms-version: - - '2018-11-09' + - '2021-06-08' status: code: 200 message: OK - request: body: null headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate + CommandName: + - storage directory metadata update Connection: - keep-alive Content-Length: - '0' + ParameterSetName: + - -s -n --metadata --account-name --account-key User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 + - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.8.0 Python/3.7.9 (Windows-10-10.0.22000-SP0) x-ms-date: - - Sat, 07 May 2022 09:14:18 GMT + - Tue, 17 May 2022 07:45:27 GMT x-ms-meta-a: - b x-ms-meta-c: - d x-ms-version: - - '2018-11-09' + - '2021-06-08' method: PUT uri: https://clitest000002.file.core.windows.net/share000003/dir000005?restype=directory&comp=metadata response: @@ -1315,33 +1413,41 @@ interactions: content-length: - '0' date: - - Sat, 07 May 2022 09:14:17 GMT + - Tue, 17 May 2022 07:45:26 GMT etag: - - '"0x8DA3009F73344A6"' + - '"0x8DA37D935998630"' last-modified: - - Sat, 07 May 2022 09:14:18 GMT + - Tue, 17 May 2022 07:45:27 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-request-server-encrypted: - 'true' x-ms-version: - - '2018-11-09' + - '2021-06-08' status: code: 200 message: OK - request: body: null headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate + CommandName: + - storage directory metadata show Connection: - keep-alive + ParameterSetName: + - --share-name -n --account-name --account-key User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 + - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.8.0 Python/3.7.9 (Windows-10-10.0.22000-SP0) x-ms-date: - - Sat, 07 May 2022 09:14:19 GMT + - Tue, 17 May 2022 07:45:28 GMT x-ms-version: - - '2018-11-09' + - '2021-06-08' method: GET - uri: https://clitest000002.file.core.windows.net/share000003/dir000005?restype=directory&comp=metadata + uri: https://clitest000002.file.core.windows.net/share000003/dir000005?restype=directory response: body: string: '' @@ -1349,33 +1455,57 @@ interactions: content-length: - '0' date: - - Sat, 07 May 2022 09:14:19 GMT + - Tue, 17 May 2022 07:45:27 GMT etag: - - '"0x8DA3009F73344A6"' + - '"0x8DA37D935998630"' last-modified: - - Sat, 07 May 2022 09:14:18 GMT + - Tue, 17 May 2022 07:45:27 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-file-attributes: + - Directory + x-ms-file-change-time: + - '2022-05-17T07:45:27.3031216Z' + x-ms-file-creation-time: + - '2022-05-17T07:45:23.5092866Z' + x-ms-file-id: + - '13835093239654252544' + x-ms-file-last-write-time: + - '2022-05-17T07:45:23.5092866Z' + x-ms-file-parent-id: + - '0' + x-ms-file-permission-key: + - 9360205630214331821*16806597623465298468 x-ms-meta-a: - b x-ms-meta-c: - d + x-ms-server-encrypted: + - 'true' x-ms-version: - - '2018-11-09' + - '2021-06-08' status: code: 200 message: OK - request: body: null headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate + CommandName: + - storage directory show Connection: - keep-alive + ParameterSetName: + - --share-name -n --account-name --account-key User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 + - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.8.0 Python/3.7.9 (Windows-10-10.0.22000-SP0) x-ms-date: - - Sat, 07 May 2022 09:14:20 GMT + - Tue, 17 May 2022 07:45:29 GMT x-ms-version: - - '2018-11-09' + - '2021-06-08' method: GET uri: https://clitest000002.file.core.windows.net/share000003/dir000005?restype=directory response: @@ -1385,13 +1515,27 @@ interactions: content-length: - '0' date: - - Sat, 07 May 2022 09:14:20 GMT + - Tue, 17 May 2022 07:45:29 GMT etag: - - '"0x8DA3009F73344A6"' + - '"0x8DA37D935998630"' last-modified: - - Sat, 07 May 2022 09:14:18 GMT + - Tue, 17 May 2022 07:45:27 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-file-attributes: + - Directory + x-ms-file-change-time: + - '2022-05-17T07:45:27.3031216Z' + x-ms-file-creation-time: + - '2022-05-17T07:45:23.5092866Z' + x-ms-file-id: + - '13835093239654252544' + x-ms-file-last-write-time: + - '2022-05-17T07:45:23.5092866Z' + x-ms-file-parent-id: + - '0' + x-ms-file-permission-key: + - 9360205630214331821*16806597623465298468 x-ms-meta-a: - b x-ms-meta-c: @@ -1399,23 +1543,31 @@ interactions: x-ms-server-encrypted: - 'true' x-ms-version: - - '2018-11-09' + - '2021-06-08' status: code: 200 message: OK - request: body: null headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate + CommandName: + - storage directory metadata update Connection: - keep-alive Content-Length: - '0' + ParameterSetName: + - --share-name --name --account-name --account-key User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 + - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.8.0 Python/3.7.9 (Windows-10-10.0.22000-SP0) x-ms-date: - - Sat, 07 May 2022 09:14:21 GMT + - Tue, 17 May 2022 07:45:31 GMT x-ms-version: - - '2018-11-09' + - '2021-06-08' method: PUT uri: https://clitest000002.file.core.windows.net/share000003/dir000005?restype=directory&comp=metadata response: @@ -1425,33 +1577,41 @@ interactions: content-length: - '0' date: - - Sat, 07 May 2022 09:14:21 GMT + - Tue, 17 May 2022 07:45:31 GMT etag: - - '"0x8DA3009F92C8013"' + - '"0x8DA37D937DAE475"' last-modified: - - Sat, 07 May 2022 09:14:21 GMT + - Tue, 17 May 2022 07:45:31 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-request-server-encrypted: - 'true' x-ms-version: - - '2018-11-09' + - '2021-06-08' status: code: 200 message: OK - request: body: null headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate + CommandName: + - storage directory metadata show Connection: - keep-alive + ParameterSetName: + - --share-name --name --account-name --account-key User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 + - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.8.0 Python/3.7.9 (Windows-10-10.0.22000-SP0) x-ms-date: - - Sat, 07 May 2022 09:14:22 GMT + - Tue, 17 May 2022 07:45:32 GMT x-ms-version: - - '2018-11-09' + - '2021-06-08' method: GET - uri: https://clitest000002.file.core.windows.net/share000003/dir000005?restype=directory&comp=metadata + uri: https://clitest000002.file.core.windows.net/share000003/dir000005?restype=directory response: body: string: '' @@ -1459,15 +1619,31 @@ interactions: content-length: - '0' date: - - Sat, 07 May 2022 09:14:22 GMT + - Tue, 17 May 2022 07:45:32 GMT etag: - - '"0x8DA3009F92C8013"' + - '"0x8DA37D937DAE475"' last-modified: - - Sat, 07 May 2022 09:14:21 GMT + - Tue, 17 May 2022 07:45:31 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-file-attributes: + - Directory + x-ms-file-change-time: + - '2022-05-17T07:45:31.0869621Z' + x-ms-file-creation-time: + - '2022-05-17T07:45:23.5092866Z' + x-ms-file-id: + - '13835093239654252544' + x-ms-file-last-write-time: + - '2022-05-17T07:45:23.5092866Z' + x-ms-file-parent-id: + - '0' + x-ms-file-permission-key: + - 9360205630214331821*16806597623465298468 + x-ms-server-encrypted: + - 'false' x-ms-version: - - '2018-11-09' + - '2021-06-08' status: code: 200 message: OK @@ -1479,11 +1655,11 @@ interactions: Content-Length: - '0' User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 + - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.7.9; Windows 10) AZURECLI/2.36.0 x-ms-content-length: - '65536' x-ms-date: - - Sat, 07 May 2022 09:14:24 GMT + - Tue, 17 May 2022 07:45:33 GMT x-ms-type: - file x-ms-version: @@ -1497,11 +1673,11 @@ interactions: content-length: - '0' date: - - Sat, 07 May 2022 09:14:23 GMT + - Tue, 17 May 2022 07:45:33 GMT etag: - - '"0x8DA3009FAB3A99C"' + - '"0x8DA37D93968EB6E"' last-modified: - - Sat, 07 May 2022 09:14:24 GMT + - Tue, 17 May 2022 07:45:33 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-request-server-encrypted: @@ -1519,9 +1695,9 @@ interactions: Content-Length: - '65536' User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 + - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.7.9; Windows 10) AZURECLI/2.36.0 x-ms-date: - - Sat, 07 May 2022 09:14:25 GMT + - Tue, 17 May 2022 07:45:34 GMT x-ms-range: - bytes=0-65535 x-ms-version: @@ -1539,11 +1715,11 @@ interactions: content-md5: - /Na8tWwWifzvKLV8IkdbrQ== date: - - Sat, 07 May 2022 09:14:24 GMT + - Tue, 17 May 2022 07:45:33 GMT etag: - - '"0x8DA3009FB2D0D70"' + - '"0x8DA37D939D9EC39"' last-modified: - - Sat, 07 May 2022 09:14:25 GMT + - Tue, 17 May 2022 07:45:34 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-request-server-encrypted: @@ -1559,9 +1735,9 @@ interactions: Connection: - keep-alive User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 + - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.7.9; Windows 10) AZURECLI/2.36.0 x-ms-date: - - Sat, 07 May 2022 09:14:26 GMT + - Tue, 17 May 2022 07:45:35 GMT x-ms-version: - '2018-11-09' method: HEAD @@ -1575,11 +1751,11 @@ interactions: content-type: - application/octet-stream date: - - Sat, 07 May 2022 09:14:26 GMT + - Tue, 17 May 2022 07:45:35 GMT etag: - - '"0x8DA3009FB2D0D70"' + - '"0x8DA37D939D9EC39"' last-modified: - - Sat, 07 May 2022 09:14:25 GMT + - Tue, 17 May 2022 07:45:34 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-server-encrypted: @@ -1597,9 +1773,9 @@ interactions: Connection: - keep-alive User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 + - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.7.9; Windows 10) AZURECLI/2.36.0 x-ms-date: - - Sat, 07 May 2022 09:14:27 GMT + - Tue, 17 May 2022 07:45:37 GMT x-ms-range: - bytes=0-33554431 x-ms-version: @@ -1619,11 +1795,11 @@ interactions: content-type: - application/octet-stream date: - - Sat, 07 May 2022 09:14:27 GMT + - Tue, 17 May 2022 07:45:36 GMT etag: - - '"0x8DA3009FB2D0D70"' + - '"0x8DA37D939D9EC39"' last-modified: - - Sat, 07 May 2022 09:14:25 GMT + - Tue, 17 May 2022 07:45:34 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-server-encrypted: @@ -1638,33 +1814,42 @@ interactions: - request: body: null headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate + CommandName: + - storage file list Connection: - keep-alive + ParameterSetName: + - -s -p --query --account-name --account-key User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 + - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.8.0 Python/3.7.9 (Windows-10-10.0.22000-SP0) x-ms-date: - - Sat, 07 May 2022 09:14:29 GMT + - Tue, 17 May 2022 07:45:38 GMT x-ms-version: - - '2018-11-09' + - '2021-06-08' method: GET - uri: https://clitest000002.file.core.windows.net/share000003/dir000005?restype=directory&comp=list&maxresults=5000 + uri: https://clitest000002.file.core.windows.net/share000003/dir000005?restype=directory&comp=list&maxresults=5000&include=timestamps,Etag,Attributes,PermissionKey response: body: string: "\uFEFF5000testfile.txt65536500013835093239654252544testfile.txt13835163608398430208655362022-05-17T07:45:33.6954734Z2022-05-17T07:45:33.6954734Z2022-05-17T07:45:34.4360505Z2022-05-17T07:45:34.4360505ZTue, + 17 May 2022 07:45:34 GMT\"0x8DA37D939D9EC39\"Archive4728198240921395882*16806597623465298468" headers: content-type: - application/xml date: - - Sat, 07 May 2022 09:14:29 GMT + - Tue, 17 May 2022 07:45:37 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 transfer-encoding: - chunked x-ms-version: - - '2018-11-09' + - '2021-06-08' status: code: 200 message: OK @@ -1682,11 +1867,11 @@ interactions: ParameterSetName: - --name --account-name --account-key User-Agent: - - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.1.1 Python/3.8.7 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.8.0 Python/3.7.9 (Windows-10-10.0.22000-SP0) x-ms-date: - - Sat, 07 May 2022 09:14:30 GMT + - Tue, 17 May 2022 07:45:40 GMT x-ms-version: - - '2019-07-07' + - '2021-06-08' method: GET uri: https://clitest000002.file.core.windows.net/share000003?restype=share&comp=stats response: @@ -1696,13 +1881,13 @@ interactions: content-type: - application/xml date: - - Sat, 07 May 2022 09:14:30 GMT + - Tue, 17 May 2022 07:45:38 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 transfer-encoding: - chunked x-ms-version: - - '2019-07-07' + - '2021-06-08' status: code: 200 message: OK @@ -1714,9 +1899,9 @@ interactions: Content-Length: - '0' User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 + - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.7.9; Windows 10) AZURECLI/2.36.0 x-ms-date: - - Sat, 07 May 2022 09:14:32 GMT + - Tue, 17 May 2022 07:45:41 GMT x-ms-version: - '2018-11-09' method: DELETE @@ -1728,7 +1913,7 @@ interactions: content-length: - '0' date: - - Sat, 07 May 2022 09:14:32 GMT + - Tue, 17 May 2022 07:45:40 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-version: @@ -1742,9 +1927,9 @@ interactions: Connection: - keep-alive User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 + - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.7.9; Windows 10) AZURECLI/2.36.0 x-ms-date: - - Sat, 07 May 2022 09:14:33 GMT + - Tue, 17 May 2022 07:45:42 GMT x-ms-version: - '2018-11-09' method: HEAD @@ -1754,7 +1939,7 @@ interactions: string: '' headers: date: - - Sat, 07 May 2022 09:14:32 GMT + - Tue, 17 May 2022 07:45:42 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 transfer-encoding: @@ -1769,16 +1954,24 @@ interactions: - request: body: null headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate + CommandName: + - storage directory delete Connection: - keep-alive Content-Length: - '0' + ParameterSetName: + - --share-name --name --fail-not-exist --account-name --account-key User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 + - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.8.0 Python/3.7.9 (Windows-10-10.0.22000-SP0) x-ms-date: - - Sat, 07 May 2022 09:14:34 GMT + - Tue, 17 May 2022 07:45:43 GMT x-ms-version: - - '2018-11-09' + - '2021-06-08' method: DELETE uri: https://clitest000002.file.core.windows.net/share000003/dir000005?restype=directory response: @@ -1788,64 +1981,88 @@ interactions: content-length: - '0' date: - - Sat, 07 May 2022 09:14:33 GMT + - Tue, 17 May 2022 07:45:43 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-version: - - '2018-11-09' + - '2021-06-08' status: code: 202 message: Accepted - request: body: null headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate + CommandName: + - storage directory exists Connection: - keep-alive + ParameterSetName: + - --share-name --name --account-name --account-key User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 + - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.8.0 Python/3.7.9 (Windows-10-10.0.22000-SP0) x-ms-date: - - Sat, 07 May 2022 09:14:35 GMT + - Tue, 17 May 2022 07:45:45 GMT x-ms-version: - - '2018-11-09' + - '2021-06-08' method: GET uri: https://clitest000002.file.core.windows.net/share000003/dir000005?restype=directory response: body: string: "\uFEFFResourceNotFoundThe - specified resource does not exist.\nRequestId:b73cded7-d01a-0054-2df2-616cbd000000\nTime:2022-05-07T09:14:35.7440770Z" + specified resource does not exist.\nRequestId:5ff0d0a1-201a-0050-63c2-694bfb000000\nTime:2022-05-17T07:45:45.1439870Z" headers: content-length: - '221' content-type: - application/xml date: - - Sat, 07 May 2022 09:14:35 GMT + - Tue, 17 May 2022 07:45:45 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-error-code: - ResourceNotFound x-ms-version: - - '2018-11-09' + - '2021-06-08' status: code: 404 message: The specified resource does not exist. - request: body: null headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate + CommandName: + - storage directory create Connection: - keep-alive Content-Length: - '0' + ParameterSetName: + - --share-name --name --fail-on-exist --metadata --account-name --account-key User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 + - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.8.0 Python/3.7.9 (Windows-10-10.0.22000-SP0) x-ms-date: - - Sat, 07 May 2022 09:14:36 GMT + - Tue, 17 May 2022 07:45:46 GMT + x-ms-file-attributes: + - none + x-ms-file-creation-time: + - now + x-ms-file-last-write-time: + - now + x-ms-file-permission: + - inherit x-ms-meta-cat: - hat x-ms-meta-foo: - bar x-ms-version: - - '2018-11-09' + - '2021-06-08' method: PUT uri: https://clitest000002.file.core.windows.net/share000003/dir000006?restype=directory response: @@ -1855,33 +2072,55 @@ interactions: content-length: - '0' date: - - Sat, 07 May 2022 09:14:36 GMT + - Tue, 17 May 2022 07:45:46 GMT etag: - - '"0x8DA300A02112BF4"' + - '"0x8DA37D9410063F0"' last-modified: - - Sat, 07 May 2022 09:14:36 GMT + - Tue, 17 May 2022 07:45:46 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-file-attributes: + - Directory + x-ms-file-change-time: + - '2022-05-17T07:45:46.4322032Z' + x-ms-file-creation-time: + - '2022-05-17T07:45:46.4322032Z' + x-ms-file-id: + - '13835075647468208128' + x-ms-file-last-write-time: + - '2022-05-17T07:45:46.4322032Z' + x-ms-file-parent-id: + - '0' + x-ms-file-permission-key: + - 9360205630214331821*16806597623465298468 x-ms-request-server-encrypted: - 'true' x-ms-version: - - '2018-11-09' + - '2021-06-08' status: code: 201 message: Created - request: body: null headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate + CommandName: + - storage directory metadata show Connection: - keep-alive + ParameterSetName: + - --share-name -n --account-name --account-key User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 + - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.8.0 Python/3.7.9 (Windows-10-10.0.22000-SP0) x-ms-date: - - Sat, 07 May 2022 09:14:37 GMT + - Tue, 17 May 2022 07:45:47 GMT x-ms-version: - - '2018-11-09' + - '2021-06-08' method: GET - uri: https://clitest000002.file.core.windows.net/share000003/dir000006?restype=directory&comp=metadata + uri: https://clitest000002.file.core.windows.net/share000003/dir000006?restype=directory response: body: string: '' @@ -1889,35 +2128,59 @@ interactions: content-length: - '0' date: - - Sat, 07 May 2022 09:14:38 GMT + - Tue, 17 May 2022 07:45:47 GMT etag: - - '"0x8DA300A02112BF4"' + - '"0x8DA37D9410063F0"' last-modified: - - Sat, 07 May 2022 09:14:36 GMT + - Tue, 17 May 2022 07:45:46 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-file-attributes: + - Directory + x-ms-file-change-time: + - '2022-05-17T07:45:46.4322032Z' + x-ms-file-creation-time: + - '2022-05-17T07:45:46.4322032Z' + x-ms-file-id: + - '13835075647468208128' + x-ms-file-last-write-time: + - '2022-05-17T07:45:46.4322032Z' + x-ms-file-parent-id: + - '0' + x-ms-file-permission-key: + - 9360205630214331821*16806597623465298468 x-ms-meta-cat: - hat x-ms-meta-foo: - bar + x-ms-server-encrypted: + - 'true' x-ms-version: - - '2018-11-09' + - '2021-06-08' status: code: 200 message: OK - request: body: null headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate + CommandName: + - storage directory delete Connection: - keep-alive Content-Length: - '0' + ParameterSetName: + - --share-name --name --fail-not-exist --account-name --account-key User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.7; Windows 10) AZURECLI/2.36.0 + - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.8.0 Python/3.7.9 (Windows-10-10.0.22000-SP0) x-ms-date: - - Sat, 07 May 2022 09:14:39 GMT + - Tue, 17 May 2022 07:45:49 GMT x-ms-version: - - '2018-11-09' + - '2021-06-08' method: DELETE uri: https://clitest000002.file.core.windows.net/share000003/dir000006?restype=directory response: @@ -1927,11 +2190,11 @@ interactions: content-length: - '0' date: - - Sat, 07 May 2022 09:14:39 GMT + - Tue, 17 May 2022 07:45:48 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-version: - - '2018-11-09' + - '2021-06-08' status: code: 202 message: Accepted @@ -1939,7 +2202,7 @@ interactions: body: null headers: Accept: - - '*/*' + - application/xml Accept-Encoding: - gzip, deflate CommandName: @@ -1951,11 +2214,11 @@ interactions: ParameterSetName: - -n --account-name --account-key User-Agent: - - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.1.1 Python/3.8.7 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.36.0 azsdk-python-storage-file-share/12.8.0 Python/3.7.9 (Windows-10-10.0.22000-SP0) x-ms-date: - - Sat, 07 May 2022 09:14:41 GMT + - Tue, 17 May 2022 07:45:50 GMT x-ms-version: - - '2019-07-07' + - '2021-06-08' method: DELETE uri: https://clitest000002.file.core.windows.net/share000003?restype=share response: @@ -1965,11 +2228,11 @@ interactions: content-length: - '0' date: - - Sat, 07 May 2022 09:14:41 GMT + - Tue, 17 May 2022 07:45:49 GMT server: - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 x-ms-version: - - '2019-07-07' + - '2021-06-08' status: code: 202 message: Accepted