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 7d534c2199f..7daa2377abc 100644 --- a/src/azure-cli/azure/cli/command_modules/storage/_params.py +++ b/src/azure-cli/azure/cli/command_modules/storage/_params.py @@ -2286,6 +2286,10 @@ def load_arguments(self, _): # pylint: disable=too-many-locals, too-many-statem help="File system name.", required=True) c.extra('timeout', timeout_type) + with self.argument_context('storage fs undelete-path') as c: + from ._validators import encode_deleted_path + c.argument('deleted_path_name', validator=encode_deleted_path) + with self.argument_context('storage fs list-deleted-path') as c: c.argument('path_prefix', help='Filter the results to return only paths under the specified path.') c.argument('num_results', type=int, help='Specify the maximum number to return.') diff --git a/src/azure-cli/azure/cli/command_modules/storage/_validators.py b/src/azure-cli/azure/cli/command_modules/storage/_validators.py index f685241995a..dcf919fb4d4 100644 --- a/src/azure-cli/azure/cli/command_modules/storage/_validators.py +++ b/src/azure-cli/azure/cli/command_modules/storage/_validators.py @@ -2206,3 +2206,8 @@ def validate_blob_arguments(namespace): if not namespace.blob_url and not all([namespace.blob_name, namespace.container_name]): raise RequiredArgumentMissingError( "Please specify --blob-url or combination of blob name, container name and storage account arguments.") + + +def encode_deleted_path(namespace): + from urllib.parse import quote + namespace.deleted_path_name = quote(namespace.deleted_path_name) diff --git a/src/azure-cli/azure/cli/command_modules/storage/tests/latest/recordings/test_adls_fs_soft_delete.yaml b/src/azure-cli/azure/cli/command_modules/storage/tests/latest/recordings/test_adls_fs_soft_delete.yaml index 7baf85d6ea4..0d38c1b8b46 100644 --- a/src/azure-cli/azure/cli/command_modules/storage/tests/latest/recordings/test_adls_fs_soft_delete.yaml +++ b/src/azure-cli/azure/cli/command_modules/storage/tests/latest/recordings/test_adls_fs_soft_delete.yaml @@ -15,11 +15,11 @@ interactions: ParameterSetName: - -n --account-name --account-key User-Agent: - - AZURECLI/2.35.0 azsdk-python-storage-dfs/12.6.0 Python/3.7.9 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.38.0 azsdk-python-storage-dfs/12.7.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) x-ms-date: - - Tue, 12 Apr 2022 12:12:33 GMT + - Tue, 05 Jul 2022 07:24:32 GMT x-ms-version: - - '2020-10-02' + - '2021-06-08' method: PUT uri: https://clitest000002.blob.core.windows.net/filesystem000003?restype=container response: @@ -29,15 +29,15 @@ interactions: content-length: - '0' date: - - Tue, 12 Apr 2022 12:12:35 GMT + - Tue, 05 Jul 2022 07:24:33 GMT etag: - - '"0x8DA1C7DBAB7754F"' + - '"0x8DA5E5768FA8067"' last-modified: - - Tue, 12 Apr 2022 12:12:35 GMT + - Tue, 05 Jul 2022 07:24:34 GMT server: - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 x-ms-version: - - '2020-10-02' + - '2021-06-08' status: code: 201 message: Created @@ -55,11 +55,11 @@ interactions: ParameterSetName: - -f -s -p --account-name --account-key User-Agent: - - AZURECLI/2.35.0 azsdk-python-storage-dfs/12.6.0 Python/3.7.9 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.38.0 azsdk-python-storage-dfs/12.7.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) x-ms-date: - - Tue, 12 Apr 2022 12:12:35 GMT + - Tue, 05 Jul 2022 07:24:33 GMT x-ms-version: - - '2020-10-02' + - '2021-06-08' method: HEAD uri: https://clitest000002.blob.core.windows.net/filesystem000003/file000004 response: @@ -67,7 +67,7 @@ interactions: string: '' headers: date: - - Tue, 12 Apr 2022 12:12:36 GMT + - Tue, 05 Jul 2022 07:24:35 GMT server: - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 transfer-encoding: @@ -75,7 +75,7 @@ interactions: x-ms-error-code: - BlobNotFound x-ms-version: - - '2020-10-02' + - '2021-06-08' status: code: 404 message: The specified blob does not exist. @@ -95,13 +95,11 @@ interactions: ParameterSetName: - -f -s -p --account-name --account-key User-Agent: - - AZURECLI/2.35.0 azsdk-python-storage-dfs/12.6.0 Python/3.7.9 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.38.0 azsdk-python-storage-dfs/12.7.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) x-ms-date: - - Tue, 12 Apr 2022 12:12:36 GMT - x-ms-properties: - - '' + - Tue, 05 Jul 2022 07:24:35 GMT x-ms-version: - - '2020-10-02' + - '2021-06-08' method: PUT uri: https://clitest000002.dfs.core.windows.net/filesystem000003/file000004?resource=file response: @@ -111,17 +109,17 @@ interactions: content-length: - '0' date: - - Tue, 12 Apr 2022 12:12:38 GMT + - Tue, 05 Jul 2022 07:24:36 GMT etag: - - '"0x8DA1C7DBCA98960"' + - '"0x8DA5E576AA2513D"' last-modified: - - Tue, 12 Apr 2022 12:12:38 GMT + - Tue, 05 Jul 2022 07:24:37 GMT server: - Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0 x-ms-request-server-encrypted: - 'true' x-ms-version: - - '2020-10-02' + - '2021-06-08' status: code: 201 message: Created @@ -143,11 +141,11 @@ interactions: ParameterSetName: - -f -s -p --account-name --account-key User-Agent: - - AZURECLI/2.35.0 azsdk-python-storage-dfs/12.6.0 Python/3.7.9 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.38.0 azsdk-python-storage-dfs/12.7.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) x-ms-date: - - Tue, 12 Apr 2022 12:12:38 GMT + - Tue, 05 Jul 2022 07:24:36 GMT x-ms-version: - - '2020-10-02' + - '2021-06-08' method: PATCH uri: https://clitest000002.dfs.core.windows.net/filesystem000003/file000004?action=append&position=0 response: @@ -157,13 +155,13 @@ interactions: content-length: - '0' date: - - Tue, 12 Apr 2022 12:12:38 GMT + - Tue, 05 Jul 2022 07:24:36 GMT server: - Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0 x-ms-request-server-encrypted: - 'true' x-ms-version: - - '2020-10-02' + - '2021-06-08' status: code: 202 message: Accepted @@ -185,11 +183,11 @@ interactions: ParameterSetName: - -f -s -p --account-name --account-key User-Agent: - - AZURECLI/2.35.0 azsdk-python-storage-dfs/12.6.0 Python/3.7.9 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.38.0 azsdk-python-storage-dfs/12.7.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) x-ms-date: - - Tue, 12 Apr 2022 12:12:38 GMT + - Tue, 05 Jul 2022 07:24:36 GMT x-ms-version: - - '2020-10-02' + - '2021-06-08' method: PATCH uri: https://clitest000002.dfs.core.windows.net/filesystem000003/file000004?action=flush&position=1024&close=true response: @@ -199,17 +197,17 @@ interactions: content-length: - '0' date: - - Tue, 12 Apr 2022 12:12:38 GMT + - Tue, 05 Jul 2022 07:24:36 GMT etag: - - '"0x8DA1C7DBD18547D"' + - '"0x8DA5E576B04B374"' last-modified: - - Tue, 12 Apr 2022 12:12:39 GMT + - Tue, 05 Jul 2022 07:24:37 GMT server: - Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0 x-ms-request-server-encrypted: - 'false' x-ms-version: - - '2020-10-02' + - '2021-06-08' status: code: 200 message: OK @@ -227,30 +225,30 @@ interactions: ParameterSetName: - -f --account-name --account-key User-Agent: - - AZURECLI/2.35.0 azsdk-python-storage-dfs/12.6.0 Python/3.7.9 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.38.0 azsdk-python-storage-dfs/12.7.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) x-ms-date: - - Tue, 12 Apr 2022 12:12:39 GMT + - Tue, 05 Jul 2022 07:24:37 GMT x-ms-version: - - '2020-10-02' + - '2021-06-08' method: GET uri: https://clitest000002.dfs.core.windows.net/filesystem000003?resource=filesystem&recursive=true&maxResults=5000 response: body: - string: '{"paths":[{"contentLength":"1024","creationTime":"132942391588063584","etag":"0x8DA1C7DBD18547D","expiryTime":"0","group":"$superuser","lastModified":"Tue, - 12 Apr 2022 12:12:39 GMT","name":"file000004","owner":"$superuser","permissions":"rw-r-----"}]} + string: '{"paths":[{"contentLength":"1024","creationTime":"133014794770534717","etag":"0x8DA5E576B04B374","expiryTime":"0","group":"$superuser","lastModified":"Tue, + 05 Jul 2022 07:24:37 GMT","name":"file000004","owner":"$superuser","permissions":"rw-r-----"}]} ' headers: content-type: - application/json;charset=utf-8 date: - - Tue, 12 Apr 2022 12:12:42 GMT + - Tue, 05 Jul 2022 07:24:38 GMT server: - Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0 transfer-encoding: - chunked x-ms-version: - - '2020-10-02' + - '2021-06-08' status: code: 200 message: OK @@ -270,13 +268,11 @@ interactions: ParameterSetName: - -f -n --account-name --account-key User-Agent: - - AZURECLI/2.35.0 azsdk-python-storage-dfs/12.6.0 Python/3.7.9 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.38.0 azsdk-python-storage-dfs/12.7.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) x-ms-date: - - Tue, 12 Apr 2022 12:12:42 GMT - x-ms-properties: - - '' + - Tue, 05 Jul 2022 07:24:38 GMT x-ms-version: - - '2020-10-02' + - '2021-06-08' method: PUT uri: https://clitest000002.dfs.core.windows.net/filesystem000003/dir?resource=directory response: @@ -286,17 +282,17 @@ interactions: content-length: - '0' date: - - Tue, 12 Apr 2022 12:12:43 GMT + - Tue, 05 Jul 2022 07:24:39 GMT etag: - - '"0x8DA1C7DBFA7AC32"' + - '"0x8DA5E576C9CD4B7"' last-modified: - - Tue, 12 Apr 2022 12:12:43 GMT + - Tue, 05 Jul 2022 07:24:40 GMT server: - Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0 x-ms-request-server-encrypted: - 'true' x-ms-version: - - '2020-10-02' + - '2021-06-08' status: code: 201 message: Created @@ -314,31 +310,31 @@ interactions: ParameterSetName: - -f --account-name --account-key User-Agent: - - AZURECLI/2.35.0 azsdk-python-storage-dfs/12.6.0 Python/3.7.9 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.38.0 azsdk-python-storage-dfs/12.7.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) x-ms-date: - - Tue, 12 Apr 2022 12:12:43 GMT + - Tue, 05 Jul 2022 07:24:39 GMT x-ms-version: - - '2020-10-02' + - '2021-06-08' method: GET uri: https://clitest000002.dfs.core.windows.net/filesystem000003?resource=filesystem&recursive=true&maxResults=5000 response: body: - string: '{"paths":[{"contentLength":"0","creationTime":"132942391638273074","etag":"0x8DA1C7DBFA7AC32","expiryTime":"0","group":"$superuser","isDirectory":"true","lastModified":"Tue, - 12 Apr 2022 12:12:43 GMT","name":"dir","owner":"$superuser","permissions":"rwxr-x---"},{"contentLength":"1024","creationTime":"132942391588063584","etag":"0x8DA1C7DBD18547D","expiryTime":"0","group":"$superuser","lastModified":"Tue, - 12 Apr 2022 12:12:39 GMT","name":"file000004","owner":"$superuser","permissions":"rw-r-----"}]} + string: '{"paths":[{"contentLength":"0","creationTime":"133014794803729591","etag":"0x8DA5E576C9CD4B7","expiryTime":"0","group":"$superuser","isDirectory":"true","lastModified":"Tue, + 05 Jul 2022 07:24:40 GMT","name":"dir","owner":"$superuser","permissions":"rwxr-x---"},{"contentLength":"1024","creationTime":"133014794770534717","etag":"0x8DA5E576B04B374","expiryTime":"0","group":"$superuser","lastModified":"Tue, + 05 Jul 2022 07:24:37 GMT","name":"file000004","owner":"$superuser","permissions":"rw-r-----"}]} ' headers: content-type: - application/json;charset=utf-8 date: - - Tue, 12 Apr 2022 12:12:45 GMT + - Tue, 05 Jul 2022 07:24:41 GMT server: - Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0 transfer-encoding: - chunked x-ms-version: - - '2020-10-02' + - '2021-06-08' status: code: 200 message: OK @@ -356,11 +352,11 @@ interactions: ParameterSetName: - --delete-retention --delete-retention-period --account-name --account-key User-Agent: - - AZURECLI/2.35.0 azsdk-python-storage-blob/12.9.0 Python/3.7.9 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.38.0 azsdk-python-storage-blob/12.12.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) x-ms-date: - - Tue, 12 Apr 2022 12:12:45 GMT + - Tue, 05 Jul 2022 07:24:41 GMT x-ms-version: - - '2020-10-02' + - '2021-06-08' method: GET uri: https://clitest000002.blob.core.windows.net/?restype=service&comp=properties response: @@ -371,13 +367,13 @@ interactions: content-type: - application/xml date: - - Tue, 12 Apr 2022 12:12:46 GMT + - Tue, 05 Jul 2022 07:24:42 GMT server: - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 transfer-encoding: - chunked x-ms-version: - - '2020-10-02' + - '2021-06-08' status: code: 200 message: OK @@ -401,11 +397,11 @@ interactions: ParameterSetName: - --delete-retention --delete-retention-period --account-name --account-key User-Agent: - - AZURECLI/2.35.0 azsdk-python-storage-blob/12.9.0 Python/3.7.9 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.38.0 azsdk-python-storage-blob/12.12.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) x-ms-date: - - Tue, 12 Apr 2022 12:12:46 GMT + - Tue, 05 Jul 2022 07:24:42 GMT x-ms-version: - - '2020-10-02' + - '2021-06-08' method: PUT uri: https://clitest000002.blob.core.windows.net/?restype=service&comp=properties response: @@ -415,11 +411,11 @@ interactions: content-length: - '0' date: - - Tue, 12 Apr 2022 12:12:47 GMT + - Tue, 05 Jul 2022 07:24:43 GMT server: - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 x-ms-version: - - '2020-10-02' + - '2021-06-08' status: code: 202 message: Accepted @@ -437,11 +433,11 @@ interactions: ParameterSetName: - --delete-retention --delete-retention-period --account-name --account-key User-Agent: - - AZURECLI/2.35.0 azsdk-python-storage-blob/12.9.0 Python/3.7.9 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.38.0 azsdk-python-storage-blob/12.12.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) x-ms-date: - - Tue, 12 Apr 2022 12:12:47 GMT + - Tue, 05 Jul 2022 07:24:43 GMT x-ms-version: - - '2020-10-02' + - '2021-06-08' method: GET uri: https://clitest000002.blob.core.windows.net/?restype=service&comp=properties response: @@ -452,13 +448,13 @@ interactions: content-type: - application/xml date: - - Tue, 12 Apr 2022 12:12:48 GMT + - Tue, 05 Jul 2022 07:24:43 GMT server: - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 transfer-encoding: - chunked x-ms-version: - - '2020-10-02' + - '2021-06-08' status: code: 200 message: OK @@ -476,11 +472,11 @@ interactions: ParameterSetName: - --account-name --account-key User-Agent: - - AZURECLI/2.35.0 azsdk-python-storage-blob/12.9.0 Python/3.7.9 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.38.0 azsdk-python-storage-blob/12.12.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) x-ms-date: - - Tue, 12 Apr 2022 12:12:48 GMT + - Tue, 05 Jul 2022 07:24:43 GMT x-ms-version: - - '2020-10-02' + - '2021-06-08' method: GET uri: https://clitest000002.blob.core.windows.net/?restype=service&comp=properties response: @@ -491,13 +487,13 @@ interactions: content-type: - application/xml date: - - Tue, 12 Apr 2022 12:12:49 GMT + - Tue, 05 Jul 2022 07:24:45 GMT server: - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 transfer-encoding: - chunked x-ms-version: - - '2020-10-02' + - '2021-06-08' status: code: 200 message: OK @@ -517,11 +513,11 @@ interactions: ParameterSetName: - -f -p -y --account-name --account-key User-Agent: - - AZURECLI/2.35.0 azsdk-python-storage-dfs/12.6.0 Python/3.7.9 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.38.0 azsdk-python-storage-dfs/12.7.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) x-ms-date: - - Tue, 12 Apr 2022 12:13:00 GMT + - Tue, 05 Jul 2022 07:24:55 GMT x-ms-version: - - '2020-10-02' + - '2021-06-08' method: DELETE uri: https://clitest000002.dfs.core.windows.net/filesystem000003/file000004 response: @@ -531,15 +527,15 @@ interactions: content-length: - '0' date: - - Tue, 12 Apr 2022 12:13:01 GMT + - Tue, 05 Jul 2022 07:24:56 GMT server: - Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0 x-ms-delete-type-permanent: - 'false' x-ms-deletion-id: - - '132942391822383234' + - '133014794968540081' x-ms-version: - - '2020-10-02' + - '2021-06-08' status: code: 200 message: OK @@ -559,11 +555,11 @@ interactions: ParameterSetName: - -f -n -y --account-name --account-key User-Agent: - - AZURECLI/2.35.0 azsdk-python-storage-dfs/12.6.0 Python/3.7.9 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.38.0 azsdk-python-storage-dfs/12.7.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) x-ms-date: - - Tue, 12 Apr 2022 12:13:02 GMT + - Tue, 05 Jul 2022 07:24:56 GMT x-ms-version: - - '2020-10-02' + - '2021-06-08' method: DELETE uri: https://clitest000002.dfs.core.windows.net/filesystem000003/dir?recursive=true response: @@ -573,15 +569,15 @@ interactions: content-length: - '0' date: - - Tue, 12 Apr 2022 12:13:03 GMT + - Tue, 05 Jul 2022 07:24:57 GMT server: - Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0 x-ms-delete-type-permanent: - 'false' x-ms-deletion-id: - - '132942391840925382' + - '133014794982241562' x-ms-version: - - '2020-10-02' + - '2021-06-08' status: code: 200 message: OK @@ -599,11 +595,11 @@ interactions: ParameterSetName: - -f --account-name --account-key User-Agent: - - AZURECLI/2.35.0 azsdk-python-storage-dfs/12.6.0 Python/3.7.9 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.38.0 azsdk-python-storage-dfs/12.7.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) x-ms-date: - - Tue, 12 Apr 2022 12:13:04 GMT + - Tue, 05 Jul 2022 07:24:57 GMT x-ms-version: - - '2020-10-02' + - '2021-06-08' method: GET uri: https://clitest000002.dfs.core.windows.net/filesystem000003?resource=filesystem&recursive=true&maxResults=5000 response: @@ -615,13 +611,13 @@ interactions: content-type: - application/json;charset=utf-8 date: - - Tue, 12 Apr 2022 12:13:06 GMT + - Tue, 05 Jul 2022 07:24:59 GMT server: - Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0 transfer-encoding: - chunked x-ms-version: - - '2020-10-02' + - '2021-06-08' status: code: 200 message: OK @@ -639,34 +635,34 @@ interactions: ParameterSetName: - -f --path-prefix --account-name --account-key User-Agent: - - AZURECLI/2.35.0 azsdk-python-storage-dfs/12.6.0 Python/3.7.9 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.38.0 azsdk-python-storage-dfs/12.7.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) x-ms-date: - - Tue, 12 Apr 2022 12:14:06 GMT + - Tue, 05 Jul 2022 07:25:59 GMT x-ms-version: - - '2020-10-02' + - '2021-06-08' method: GET uri: https://clitest000002.blob.core.windows.net/filesystem000003?restype=container&comp=list&prefix=dir&showonly=deleted response: body: string: "\uFEFFdirdir132942391840925382trueTue, - 12 Apr 2022 12:12:43 GMTTue, 12 Apr 2022 12:12:43 - GMTThu, 14 Apr 2022 12:13:04 GMT0x8DA1C7DBFA7AC32directory0application/octet-streamdirdir133014794982241562trueTue, + 05 Jul 2022 07:24:40 GMTTue, 05 Jul 2022 07:24:40 + GMTThu, 07 Jul 2022 07:24:58 GMT0x8DA5E576C9CD4B7directory0application/octet-streamAAAAAAAAAAA=BlockBlobHottruetrueTue, - 12 Apr 2022 12:13:04 GMT11" headers: content-type: - application/xml date: - - Tue, 12 Apr 2022 12:14:08 GMT + - Tue, 05 Jul 2022 07:26:00 GMT server: - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 transfer-encoding: - chunked x-ms-version: - - '2020-10-02' + - '2021-06-08' status: code: 200 message: OK @@ -684,40 +680,40 @@ interactions: ParameterSetName: - -f --account-name --account-key User-Agent: - - AZURECLI/2.35.0 azsdk-python-storage-dfs/12.6.0 Python/3.7.9 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.38.0 azsdk-python-storage-dfs/12.7.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) x-ms-date: - - Tue, 12 Apr 2022 12:15:08 GMT + - Tue, 05 Jul 2022 07:27:00 GMT x-ms-version: - - '2020-10-02' + - '2021-06-08' method: GET uri: https://clitest000002.blob.core.windows.net/filesystem000003?restype=container&comp=list&showonly=deleted response: body: string: "\uFEFFdir132942391840925382trueTue, - 12 Apr 2022 12:12:43 GMTTue, 12 Apr 2022 12:12:43 - GMTThu, 14 Apr 2022 12:13:04 GMT0x8DA1C7DBFA7AC32directory0application/octet-streamdir133014794982241562trueTue, + 05 Jul 2022 07:24:40 GMTTue, 05 Jul 2022 07:24:40 + GMTThu, 07 Jul 2022 07:24:58 GMT0x8DA5E576C9CD4B7directory0application/octet-streamAAAAAAAAAAA=BlockBlobHottruetrueTue, - 12 Apr 2022 12:13:04 GMT1file000004132942391822383234trueTue, - 12 Apr 2022 12:12:38 GMTTue, 12 Apr 2022 12:12:39 - GMTThu, 14 Apr 2022 12:13:02 GMT0x8DA1C7DBD18547Dfile1024application/octet-stream1file000004133014794968540081trueTue, + 05 Jul 2022 07:24:37 GMTTue, 05 Jul 2022 07:24:37 + GMTThu, 07 Jul 2022 07:24:56 GMT0x8DA5E576B04B374file1024application/octet-streamAAAAAAAAAAA=BlockBlobHottruetrueTue, - 12 Apr 2022 12:13:02 GMT11" headers: content-type: - application/xml date: - - Tue, 12 Apr 2022 12:15:10 GMT + - Tue, 05 Jul 2022 07:27:02 GMT server: - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 transfer-encoding: - chunked x-ms-version: - - '2020-10-02' + - '2021-06-08' status: code: 200 message: OK @@ -735,34 +731,34 @@ interactions: ParameterSetName: - -f --num-results --account-name --account-key User-Agent: - - AZURECLI/2.35.0 azsdk-python-storage-dfs/12.6.0 Python/3.7.9 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.38.0 azsdk-python-storage-dfs/12.7.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) x-ms-date: - - Tue, 12 Apr 2022 12:15:10 GMT + - Tue, 05 Jul 2022 07:27:02 GMT x-ms-version: - - '2020-10-02' + - '2021-06-08' method: GET uri: https://clitest000002.blob.core.windows.net/filesystem000003?restype=container&comp=list&maxResults=1&showonly=deleted response: body: string: "\uFEFF1dir132942391840925382trueTue, - 12 Apr 2022 12:12:43 GMTTue, 12 Apr 2022 12:12:43 - GMTThu, 14 Apr 2022 12:13:04 GMT0x8DA1C7DBFA7AC32directory0application/octet-stream1dir133014794982241562trueTue, + 05 Jul 2022 07:24:40 GMTTue, 05 Jul 2022 07:24:40 + GMTThu, 07 Jul 2022 07:24:58 GMT0x8DA5E576C9CD4B7directory0application/octet-streamAAAAAAAAAAA=BlockBlobHottruetrueTue, - 12 Apr 2022 12:13:04 GMT12!360!MDAwMjI0IVZCYmw2TVdScUpPYzN3WVltQUVZa2dFdlkyeHBkR1Z6ZEdWaFkzRjNibXhzWjJZMmVHMXBhWHB3QVRBeFJEZzBSVFkyT0RsRFJVWTVPRGd2SkhSeVlYTm9MMlpwYkdWemVYTjBaVzFxWm13MmVqWm9ielpoYldKMlp3RXdNVVE0TkVVMk5qazROREV4UWtVeEFpOW1hV3hsZFhWc2RuaHJhR1p2WVdKcWFqZDJhMlJ4TlRRQk1qQXlNaTB3TkMweE1sUXhNam94TXpvd01pNHlNemd6TWpNMFdoWUFBQUE9ITAwMDAyOCEyMDIyLTA0LTEyVDEyOjE1OjEyLjAxMTU3NTJaIQ--" + 05 Jul 2022 07:24:58 GMT12!360!MDAwMjI0IVZCYkwwZXJVZ3NhWXdrWVltQUVZa2dFdlkyeHBkR1Z6ZERWcGNuWnBaV3hvTTJ4MU0ybHdaRFpuQVRBeFJEZzVNRFF3TXpnMlJFRXpRVFF2SkhSeVlYTm9MMlpwYkdWemVYTjBaVzFtZG05dVpXSnBlRE56WjJodllnRXdNVVE0T1RBME1EUTJPRE0wTURSRUFpOW1hV3hsWlhWb2VXd3liWEY2YWpKc04zaGlhSEpuTldFQk1qQXlNaTB3Tnkwd05WUXdOem95TkRvMU5pNDROVFF3TURneFdoWUFBQUE9ITAwMDAyOCEyMDIyLTA3LTA1VDA3OjI3OjAzLjgwMjcwNjNaIQ--" headers: content-type: - application/xml date: - - Tue, 12 Apr 2022 12:15:11 GMT + - Tue, 05 Jul 2022 07:27:03 GMT server: - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 transfer-encoding: - chunked x-ms-version: - - '2020-10-02' + - '2021-06-08' status: code: 200 message: OK @@ -780,34 +776,34 @@ interactions: ParameterSetName: - -f --marker --account-name --account-key User-Agent: - - AZURECLI/2.35.0 azsdk-python-storage-dfs/12.6.0 Python/3.7.9 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.38.0 azsdk-python-storage-dfs/12.7.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) x-ms-date: - - Tue, 12 Apr 2022 12:15:12 GMT + - Tue, 05 Jul 2022 07:27:03 GMT x-ms-version: - - '2020-10-02' + - '2021-06-08' method: GET - uri: https://clitest000002.blob.core.windows.net/filesystem000003?restype=container&comp=list&marker=2%21360%21MDAwMjI0IVZCYmw2TVdScUpPYzN3WVltQUVZa2dFdlkyeHBkR1Z6ZEdWaFkzRjNibXhzWjJZMmVHMXBhWHB3QVRBeFJEZzBSVFkyT0RsRFJVWTVPRGd2SkhSeVlYTm9MMlpwYkdWemVYTjBaVzFxWm13MmVqWm9ielpoYldKMlp3RXdNVVE0TkVVMk5qazROREV4UWtVeEFpOW1hV3hsZFhWc2RuaHJhR1p2WVdKcWFqZDJhMlJ4TlRRQk1qQXlNaTB3TkMweE1sUXhNam94TXpvd01pNHlNemd6TWpNMFdoWUFBQUE9ITAwMDAyOCEyMDIyLTA0LTEyVDEyOjE1OjEyLjAxMTU3NTJaIQ--&showonly=deleted + uri: https://clitest000002.blob.core.windows.net/filesystem000003?restype=container&comp=list&marker=2%21360%21MDAwMjI0IVZCYkwwZXJVZ3NhWXdrWVltQUVZa2dFdlkyeHBkR1Z6ZERWcGNuWnBaV3hvTTJ4MU0ybHdaRFpuQVRBeFJEZzVNRFF3TXpnMlJFRXpRVFF2SkhSeVlYTm9MMlpwYkdWemVYTjBaVzFtZG05dVpXSnBlRE56WjJodllnRXdNVVE0T1RBME1EUTJPRE0wTURSRUFpOW1hV3hsWlhWb2VXd3liWEY2YWpKc04zaGlhSEpuTldFQk1qQXlNaTB3Tnkwd05WUXdOem95TkRvMU5pNDROVFF3TURneFdoWUFBQUE9ITAwMDAyOCEyMDIyLTA3LTA1VDA3OjI3OjAzLjgwMjcwNjNaIQ--&showonly=deleted response: body: string: "\uFEFF2!360!MDAwMjI0IVZCYmw2TVdScUpPYzN3WVltQUVZa2dFdlkyeHBkR1Z6ZEdWaFkzRjNibXhzWjJZMmVHMXBhWHB3QVRBeFJEZzBSVFkyT0RsRFJVWTVPRGd2SkhSeVlYTm9MMlpwYkdWemVYTjBaVzFxWm13MmVqWm9ielpoYldKMlp3RXdNVVE0TkVVMk5qazROREV4UWtVeEFpOW1hV3hsZFhWc2RuaHJhR1p2WVdKcWFqZDJhMlJ4TlRRQk1qQXlNaTB3TkMweE1sUXhNam94TXpvd01pNHlNemd6TWpNMFdoWUFBQUE9ITAwMDAyOCEyMDIyLTA0LTEyVDEyOjE1OjEyLjAxMTU3NTJaIQ--file000004132942391822383234trueTue, - 12 Apr 2022 12:12:38 GMTTue, 12 Apr 2022 12:12:39 - GMTThu, 14 Apr 2022 12:13:02 GMT0x8DA1C7DBD18547Dfile1024application/octet-stream2!360!MDAwMjI0IVZCYkwwZXJVZ3NhWXdrWVltQUVZa2dFdlkyeHBkR1Z6ZERWcGNuWnBaV3hvTTJ4MU0ybHdaRFpuQVRBeFJEZzVNRFF3TXpnMlJFRXpRVFF2SkhSeVlYTm9MMlpwYkdWemVYTjBaVzFtZG05dVpXSnBlRE56WjJodllnRXdNVVE0T1RBME1EUTJPRE0wTURSRUFpOW1hV3hsWlhWb2VXd3liWEY2YWpKc04zaGlhSEpuTldFQk1qQXlNaTB3Tnkwd05WUXdOem95TkRvMU5pNDROVFF3TURneFdoWUFBQUE9ITAwMDAyOCEyMDIyLTA3LTA1VDA3OjI3OjAzLjgwMjcwNjNaIQ--file000004133014794968540081trueTue, + 05 Jul 2022 07:24:37 GMTTue, 05 Jul 2022 07:24:37 + GMTThu, 07 Jul 2022 07:24:56 GMT0x8DA5E576B04B374file1024application/octet-streamAAAAAAAAAAA=BlockBlobHottruetrueTue, - 12 Apr 2022 12:13:02 GMT11" headers: content-type: - application/xml date: - - Tue, 12 Apr 2022 12:15:13 GMT + - Tue, 05 Jul 2022 07:27:04 GMT server: - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 transfer-encoding: - chunked x-ms-version: - - '2020-10-02' + - '2021-06-08' status: code: 200 message: OK @@ -827,13 +823,13 @@ interactions: ParameterSetName: - -f --deleted-path-name --deletion-id --account-name --account-key User-Agent: - - AZURECLI/2.35.0 azsdk-python-storage-dfs/12.6.0 Python/3.7.9 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.38.0 azsdk-python-storage-dfs/12.7.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) x-ms-date: - - Tue, 12 Apr 2022 12:15:13 GMT + - Tue, 05 Jul 2022 07:27:04 GMT x-ms-undelete-source: - - fileuulvxkhfoabjj7vkdq54?deletionid=132942391822383234 + - fileeuhyl2mqzj2l7xbhrg5a?deletionid=133014794968540081 x-ms-version: - - '2020-10-02' + - '2021-06-08' method: PUT uri: https://clitest000002.blob.core.windows.net/filesystem000003/file000004?comp=undelete response: @@ -843,15 +839,15 @@ interactions: content-length: - '0' date: - - Tue, 12 Apr 2022 12:15:15 GMT + - Tue, 05 Jul 2022 07:27:05 GMT server: - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 x-ms-creation-time: - - Tue, 12 Apr 2022 12:12:38 GMT + - Tue, 05 Jul 2022 07:24:37 GMT x-ms-resource-type: - file x-ms-version: - - '2020-10-02' + - '2021-06-08' status: code: 200 message: OK @@ -869,30 +865,30 @@ interactions: ParameterSetName: - -f --account-name --account-key User-Agent: - - AZURECLI/2.35.0 azsdk-python-storage-dfs/12.6.0 Python/3.7.9 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.38.0 azsdk-python-storage-dfs/12.7.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) x-ms-date: - - Tue, 12 Apr 2022 12:15:15 GMT + - Tue, 05 Jul 2022 07:27:06 GMT x-ms-version: - - '2020-10-02' + - '2021-06-08' method: GET uri: https://clitest000002.dfs.core.windows.net/filesystem000003?resource=filesystem&recursive=true&maxResults=5000 response: body: - string: '{"paths":[{"contentLength":"1024","creationTime":"132942391588063584","etag":"0x8DA1C7DBD18547D","expiryTime":"0","group":"$superuser","lastModified":"Tue, - 12 Apr 2022 12:12:39 GMT","name":"file000004","owner":"$superuser","permissions":"rw-r-----"}]} + string: '{"paths":[{"contentLength":"1024","creationTime":"133014794770534717","etag":"0x8DA5E576B04B374","expiryTime":"0","group":"$superuser","lastModified":"Tue, + 05 Jul 2022 07:24:37 GMT","name":"file000004","owner":"$superuser","permissions":"rw-r-----"}]} ' headers: content-type: - application/json;charset=utf-8 date: - - Tue, 12 Apr 2022 12:15:17 GMT + - Tue, 05 Jul 2022 07:27:07 GMT server: - Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0 transfer-encoding: - chunked x-ms-version: - - '2020-10-02' + - '2021-06-08' status: code: 200 message: OK