From 58cde0f3610f0f6d16940395367e4366dc76e6e5 Mon Sep 17 00:00:00 2001 From: Laurent Mazuel Date: Mon, 16 Sep 2019 15:59:32 -0700 Subject: [PATCH 01/21] delete_blobs POC --- .../azure/storage/blob/container_client.py | 94 +++++++++++++++++++ .../tests/test_container.py | 20 ++++ 2 files changed, 114 insertions(+) diff --git a/sdk/storage/azure-storage-blob/azure/storage/blob/container_client.py b/sdk/storage/azure-storage-blob/azure/storage/blob/container_client.py index 0d00056451e9..0374199d69e6 100644 --- a/sdk/storage/azure-storage-blob/azure/storage/blob/container_client.py +++ b/sdk/storage/azure-storage-blob/azure/storage/blob/container_client.py @@ -951,6 +951,100 @@ def delete_blob( timeout=timeout, **kwargs) + @distributed_trace + def delete_blobs( + self, *blobs, # type: Union[str, BlobProperties] + delete_snapshots=None, # type: Optional[str] + lease=None, # type: Optional[Union[str, LeaseClient]] + timeout=None, # type: Optional[int] + **kwargs + ): + # type: (...) -> None + """Marks the specified blobs or snapshots for deletion. + + The blob is later deleted during garbage collection. + Note that in order to delete a blob, you must delete all of its + snapshots. You can delete both at the same time with the Delete + Blob operation. + + If a delete retention policy is enabled for the service, then this operation soft deletes the blob or snapshot + and retains the blob or snapshot for specified number of days. + After specified number of days, blob's data is removed from the service during garbage collection. + Soft deleted blob or snapshot is accessible through List Blobs API specifying `include="deleted"` option. + Soft-deleted blob or snapshot can be restored using Undelete API. + + :param blob: The blob with which to interact. If specified, this value will override + a blob value specified in the blob URL. + :type blob: str or ~azure.storage.blob.models.BlobProperties + :param str delete_snapshots: + Required if the blob has associated snapshots. Values include: + - "only": Deletes only the blobs snapshots. + - "include": Deletes the blob along with all snapshots. + :param lease: + Required if the blob has an active lease. Value can be a Lease object + or the lease ID as a string. + :type lease: ~azure.storage.blob.lease.LeaseClient or str + :param str delete_snapshots: + Required if the blob has associated snapshots. Values include: + - "only": Deletes only the blobs snapshots. + - "include": Deletes the blob along with all snapshots. + :param datetime if_modified_since: + A DateTime value. Azure expects the date value passed in to be UTC. + If timezone is included, any non-UTC datetimes will be converted to UTC. + If a date is passed in without timezone info, it is assumed to be UTC. + Specify this header to perform the operation only + if the resource has been modified since the specified time. + :param datetime if_unmodified_since: + A DateTime value. Azure expects the date value passed in to be UTC. + If timezone is included, any non-UTC datetimes will be converted to UTC. + If a date is passed in without timezone info, it is assumed to be UTC. + Specify this header to perform the operation only if + the resource has not been modified since the specified date/time. + :param str if_match: + An ETag value, or the wildcard character (*). Specify this header to perform + the operation only if the resource's ETag matches the value specified. + :param str if_none_match: + An ETag value, or the wildcard character (*). Specify this header + to perform the operation only if the resource's ETag does not match + the value specified. Specify the wildcard character (*) to perform + the operation only if the resource does not exist, and fail the + operation if it does exist. + :param int timeout: + The timeout parameter is expressed in seconds. + :rtype: None + """ + from azure.core.pipeline.transport import HttpRequest, HttpResponse, RequestsTransport + from azure.core.exceptions import map_error + reqs = [] + for blob in blobs: + reqs.append(HttpRequest("DELETE", blob)) + + request = self._client._client.post( + url='https://{}/?comp=batch'.format(self.primary_hostname), + headers={ + 'x-ms-version': "2019-02-02" + } + #params={'comp': 'batch'} + ) + request.set_multipart_mixed( + *reqs, + policies=[] + ) + + response = self._pipeline.run( + request, + ) + response = response.http_response + + try: + if response.status_code not in [200]: + from ._generated import models + error_map = kwargs.pop('error_map', None) + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.StorageErrorException(response, self._client.container._deserialize) + except StorageErrorException as error: + process_storage_error(error) + def get_blob_client( self, blob, # type: Union[str, BlobProperties] snapshot=None # type: str diff --git a/sdk/storage/azure-storage-blob/tests/test_container.py b/sdk/storage/azure-storage-blob/tests/test_container.py index 1e02d20e4b4a..0260897ae64a 100644 --- a/sdk/storage/azure-storage-blob/tests/test_container.py +++ b/sdk/storage/azure-storage-blob/tests/test_container.py @@ -961,6 +961,26 @@ def test_list_blobs_with_delimiter(self): self.assertNamedItemInContainer(resp, 'b/') self.assertNamedItemInContainer(resp, 'blob4') + @record + def test_delete_blobs_simple(self): + # Arrange + container = self._create_container() + data = b'hello world' + + try: + container.get_blob_client('blob1').upload_blob(data) + container.get_blob_client('blob2').upload_blob(data) + container.get_blob_client('blob3').upload_blob(data) + except: + pass + + # Act + container.delete_blobs( + 'blob1', + 'blob2', + 'blob3', + ) + @record def test_walk_blobs_with_delimiter(self): # Arrange From 965228b6161552063f9d133fe8d82de25f8a0869 Mon Sep 17 00:00:00 2001 From: Laurent Mazuel Date: Wed, 18 Sep 2019 15:59:17 -0700 Subject: [PATCH 02/21] Storage POC WIP --- .../azure/storage/blob/_shared/base_client.py | 8 ++-- .../azure/storage/blob/container_client.py | 45 ++++++++++++++----- 2 files changed, 39 insertions(+), 14 deletions(-) diff --git a/sdk/storage/azure-storage-blob/azure/storage/blob/_shared/base_client.py b/sdk/storage/azure-storage-blob/azure/storage/blob/_shared/base_client.py index 226626d026e1..e1d221fcc2cc 100644 --- a/sdk/storage/azure-storage-blob/azure/storage/blob/_shared/base_client.py +++ b/sdk/storage/azure-storage-blob/azure/storage/blob/_shared/base_client.py @@ -147,11 +147,11 @@ def _format_query_string(self, sas_token, credential, snapshot=None, share_snaps def _create_pipeline(self, credential, **kwargs): # type: (Any, **Any) -> Tuple[Configuration, Pipeline] - credential_policy = None + self._credential_policy = None if hasattr(credential, "get_token"): - credential_policy = BearerTokenCredentialPolicy(credential, STORAGE_OAUTH_SCOPE) + self._credential_policy = BearerTokenCredentialPolicy(credential, STORAGE_OAUTH_SCOPE) elif isinstance(credential, SharedKeyCredentialPolicy): - credential_policy = credential + self._credential_policy = credential elif credential is not None: raise TypeError("Unsupported credential: {}".format(credential)) @@ -169,7 +169,7 @@ def _create_pipeline(self, credential, **kwargs): config.user_agent_policy, StorageContentValidation(), StorageRequestHook(**kwargs), - credential_policy, + self._credential_policy, ContentDecodePolicy(), RedirectPolicy(**kwargs), StorageHosts(hosts=self._hosts, **kwargs), diff --git a/sdk/storage/azure-storage-blob/azure/storage/blob/container_client.py b/sdk/storage/azure-storage-blob/azure/storage/blob/container_client.py index 0374199d69e6..40472ca6b538 100644 --- a/sdk/storage/azure-storage-blob/azure/storage/blob/container_client.py +++ b/sdk/storage/azure-storage-blob/azure/storage/blob/container_client.py @@ -1014,10 +1014,17 @@ def delete_blobs( :rtype: None """ from azure.core.pipeline.transport import HttpRequest, HttpResponse, RequestsTransport - from azure.core.exceptions import map_error + from azure.core.pipeline.policies import HeadersPolicy + from azure.core.exceptions import map_error, HttpResponseError reqs = [] for blob in blobs: - reqs.append(HttpRequest("DELETE", blob)) + reqs.append(HttpRequest( + "DELETE", + "/{}/{}".format(self.container_name, blob), + headers={ + 'Content-Length': '0' + } + )) request = self._client._client.post( url='https://{}/?comp=batch'.format(self.primary_hostname), @@ -1026,22 +1033,40 @@ def delete_blobs( } #params={'comp': 'batch'} ) + + from wsgiref.handlers import format_date_time + from time import time + class LocalStorageHeadersPolicy(HeadersPolicy): + + def on_request(self, request): + # type: (PipelineRequest, Any) -> None + super(LocalStorageHeadersPolicy, self).on_request(request) + current_time = format_date_time(time()) + request.http_request.headers['x-ms-date'] = current_time + + request.set_multipart_mixed( *reqs, - policies=[] + policies=[ + LocalStorageHeadersPolicy(), + self._credential_policy + ] ) - response = self._pipeline.run( + pipeline_response = self._pipeline.run( request, ) - response = response.http_response + response = pipeline_response.http_response try: - if response.status_code not in [200]: - from ._generated import models - error_map = kwargs.pop('error_map', None) - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise models.StorageErrorException(response, self._client.container._deserialize) + if response.status_code not in [202]: + raise HttpResponseError(response=response) + # This scenario to be discussed + if len(pipeline_response.context['MULTIPART_RESPONSE']) != len(reqs): + raise HttpResponseError( + message="Didn't receive the same number of parts", + response=response + ) except StorageErrorException as error: process_storage_error(error) From fb3fed26ba14869efc5050409714a411d72dca8e Mon Sep 17 00:00:00 2001 From: Laurent Mazuel Date: Wed, 18 Sep 2019 17:11:05 -0700 Subject: [PATCH 03/21] Storage POC async --- .../storage/blob/_shared/base_client_async.py | 8 +- .../blob/aio/container_client_async.py | 160 ++++++++++++++++++ .../tests/test_container_async.py | 26 ++- 3 files changed, 189 insertions(+), 5 deletions(-) diff --git a/sdk/storage/azure-storage-blob/azure/storage/blob/_shared/base_client_async.py b/sdk/storage/azure-storage-blob/azure/storage/blob/_shared/base_client_async.py index d2f21e4f30fe..f785f47ddb18 100644 --- a/sdk/storage/azure-storage-blob/azure/storage/blob/_shared/base_client_async.py +++ b/sdk/storage/azure-storage-blob/azure/storage/blob/_shared/base_client_async.py @@ -51,11 +51,11 @@ async def __aexit__(self, *args): def _create_pipeline(self, credential, **kwargs): # type: (Any, **Any) -> Tuple[Configuration, Pipeline] - credential_policy = None + self._credential_policy = None if hasattr(credential, 'get_token'): - credential_policy = AsyncBearerTokenCredentialPolicy(credential, STORAGE_OAUTH_SCOPE) + self._credential_policy = AsyncBearerTokenCredentialPolicy(credential, STORAGE_OAUTH_SCOPE) elif isinstance(credential, SharedKeyCredentialPolicy): - credential_policy = credential + self._credential_policy = credential elif credential is not None: raise TypeError("Unsupported credential: {}".format(credential)) config = kwargs.get('_configuration') or create_configuration(**kwargs) @@ -76,7 +76,7 @@ def _create_pipeline(self, credential, **kwargs): config.user_agent_policy, StorageContentValidation(), StorageRequestHook(**kwargs), - credential_policy, + self._credential_policy, ContentDecodePolicy(), AsyncRedirectPolicy(**kwargs), StorageHosts(hosts=self._hosts, **kwargs), # type: ignore diff --git a/sdk/storage/azure-storage-blob/azure/storage/blob/aio/container_client_async.py b/sdk/storage/azure-storage-blob/azure/storage/blob/aio/container_client_async.py index 1deb4111ea5e..c73a5f72f832 100644 --- a/sdk/storage/azure-storage-blob/azure/storage/blob/aio/container_client_async.py +++ b/sdk/storage/azure-storage-blob/azure/storage/blob/aio/container_client_async.py @@ -775,6 +775,166 @@ async def delete_blob( timeout=timeout, **kwargs) + @distributed_trace_async + async def delete_blobs( + self, *blobs, # type: Union[str, BlobProperties] + delete_snapshots=None, # type: Optional[str] + lease=None, # type: Optional[Union[str, LeaseClient]] + timeout=None, # type: Optional[int] + **kwargs + ): + # type: (...) -> None + """Marks the specified blobs or snapshots for deletion. + + The blob is later deleted during garbage collection. + Note that in order to delete a blob, you must delete all of its + snapshots. You can delete both at the same time with the Delete + Blob operation. + + If a delete retention policy is enabled for the service, then this operation soft deletes the blob or snapshot + and retains the blob or snapshot for specified number of days. + After specified number of days, blob's data is removed from the service during garbage collection. + Soft deleted blob or snapshot is accessible through List Blobs API specifying `include="deleted"` option. + Soft-deleted blob or snapshot can be restored using Undelete API. + + :param blob: The blob with which to interact. If specified, this value will override + a blob value specified in the blob URL. + :type blob: str or ~azure.storage.blob.models.BlobProperties + :param str delete_snapshots: + Required if the blob has associated snapshots. Values include: + - "only": Deletes only the blobs snapshots. + - "include": Deletes the blob along with all snapshots. + :param lease: + Required if the blob has an active lease. Value can be a Lease object + or the lease ID as a string. + :type lease: ~azure.storage.blob.lease.LeaseClient or str + :param str delete_snapshots: + Required if the blob has associated snapshots. Values include: + - "only": Deletes only the blobs snapshots. + - "include": Deletes the blob along with all snapshots. + :param datetime if_modified_since: + A DateTime value. Azure expects the date value passed in to be UTC. + If timezone is included, any non-UTC datetimes will be converted to UTC. + If a date is passed in without timezone info, it is assumed to be UTC. + Specify this header to perform the operation only + if the resource has been modified since the specified time. + :param datetime if_unmodified_since: + A DateTime value. Azure expects the date value passed in to be UTC. + If timezone is included, any non-UTC datetimes will be converted to UTC. + If a date is passed in without timezone info, it is assumed to be UTC. + Specify this header to perform the operation only if + the resource has not been modified since the specified date/time. + :param str if_match: + An ETag value, or the wildcard character (*). Specify this header to perform + the operation only if the resource's ETag matches the value specified. + :param str if_none_match: + An ETag value, or the wildcard character (*). Specify this header + to perform the operation only if the resource's ETag does not match + the value specified. Specify the wildcard character (*) to perform + the operation only if the resource does not exist, and fail the + operation if it does exist. + :param int timeout: + The timeout parameter is expressed in seconds. + :rtype: None + """ + from azure.core.pipeline.transport import HttpRequest, HttpResponse, RequestsTransport + from azure.core.pipeline.policies import HeadersPolicy + from azure.core.exceptions import map_error, HttpResponseError + reqs = [] + for blob in blobs: + reqs.append(HttpRequest( + "DELETE", + "/{}/{}".format(self.container_name, blob), + headers={ + 'Content-Length': '0' + } + )) + + request = self._client._client.post( + url='https://{}/?comp=batch'.format(self.primary_hostname), + headers={ + 'x-ms-version': "2019-02-02" + } + #params={'comp': 'batch'} + ) + + from wsgiref.handlers import format_date_time + from time import time + class LocalStorageHeadersPolicy(HeadersPolicy): + + def on_request(self, request): + # type: (PipelineRequest, Any) -> None + super(LocalStorageHeadersPolicy, self).on_request(request) + current_time = format_date_time(time()) + request.http_request.headers['x-ms-date'] = current_time + + request.set_multipart_mixed( + *reqs, + policies=[ + LocalStorageHeadersPolicy(), + self._credential_policy + ] + ) + + multipart_helper = None + if request.multipart_mixed_info: + from azure.core.pipeline.transport.base import MultiPartHelper + multipart_helper = MultiPartHelper(request) + multipart_helper.prepare_request() + + import aiohttp + with aiohttp.MultipartWriter('mixed') as mpwriter: + for req in reqs: + mpwriter.append( + req.serialize(), + {'CONTENT-TYPE': 'application/http', 'Content-Transfer-Encoding': 'binary' } + ) + from io import BytesIO + buffer = BytesIO() + + class AsyncBytesIO: + def __init__(self): + self.buffer = BytesIO() + async def write(self, *args, **kwargs): + self.buffer.write(*args, **kwargs) + + async_buffer = AsyncBytesIO() + await mpwriter.write(async_buffer) + + request.set_bytes_body(async_buffer.buffer.getvalue()) + request.headers["Content-Type"] = "multipart/mixed; boundary="+mpwriter.boundary + + pipeline_response = await self._pipeline.run( + request, + stream=True + ) + response = pipeline_response.http_response + + # reader = aiohttp.MultipartReader( + # response.internal_response.headers, + # response.internal_response.content, + # ) + # parts = [] + # while True: + # part = await reader.next() + # if part is None: + # break + # parts.append(part) + + body = response.body() + + try: + if response.status_code not in [202]: + raise HttpResponseError(response=response) + # This scenario to be discussed + if len([]) != len(reqs): + raise HttpResponseError( + message="Didn't receive the same number of parts", + response=response + ) + except StorageErrorException as error: + process_storage_error(error) + def get_blob_client( self, blob, # type: Union[str, BlobProperties] snapshot=None # type: str diff --git a/sdk/storage/azure-storage-blob/tests/test_container_async.py b/sdk/storage/azure-storage-blob/tests/test_container_async.py index 212cec72043a..44ad1fa90e6f 100644 --- a/sdk/storage/azure-storage-blob/tests/test_container_async.py +++ b/sdk/storage/azure-storage-blob/tests/test_container_async.py @@ -95,7 +95,7 @@ async def _create_container(self, prefix=TEST_CONTAINER_PREFIX): return container #--Test cases for containers ----------------------------------------- - + async def _test_create_container(self): # Arrange container_name = self._get_container_reference() @@ -1192,6 +1192,30 @@ async def _test_list_blobs_with_delimiter(self): self.assertNamedItemInContainer(resp, 'b/') self.assertNamedItemInContainer(resp, 'blob4') + @record + def test_delete_blobs_simple(self): + loop = asyncio.get_event_loop() + loop.run_until_complete(self._test_delete_blobs_simple()) + + async def _test_delete_blobs_simple(self): + # Arrange + container = await self._create_container() + data = b'hello world' + + try: + await container.get_blob_client('blob1').upload_blob(data) + await container.get_blob_client('blob2').upload_blob(data) + await container.get_blob_client('blob3').upload_blob(data) + except: + pass + + # Act + await container.delete_blobs( + 'blob12', + # 'blob2', + # 'blob3', + ) + @record def test_list_blobs_with_delimiter(self): loop = asyncio.get_event_loop() From ca7dcbae60fe4dda0411ce2dba0b7e168b3162fc Mon Sep 17 00:00:00 2001 From: Laurent Mazuel Date: Thu, 19 Sep 2019 16:40:44 -0700 Subject: [PATCH 04/21] Storage WIP --- .../azure/storage/blob/aio/container_client_async.py | 2 ++ .../azure/storage/blob/container_client.py | 2 ++ .../azure-storage-blob/tests/test_container.py | 6 +++++- .../azure-storage-blob/tests/test_container_async.py | 11 ++++++++--- 4 files changed, 17 insertions(+), 4 deletions(-) diff --git a/sdk/storage/azure-storage-blob/azure/storage/blob/aio/container_client_async.py b/sdk/storage/azure-storage-blob/azure/storage/blob/aio/container_client_async.py index c73a5f72f832..fb20c3549a52 100644 --- a/sdk/storage/azure-storage-blob/azure/storage/blob/aio/container_client_async.py +++ b/sdk/storage/azure-storage-blob/azure/storage/blob/aio/container_client_async.py @@ -935,6 +935,8 @@ async def write(self, *args, **kwargs): except StorageErrorException as error: process_storage_error(error) + return pipeline_response.context['MULTIPART_RESPONSE'] + def get_blob_client( self, blob, # type: Union[str, BlobProperties] snapshot=None # type: str diff --git a/sdk/storage/azure-storage-blob/azure/storage/blob/container_client.py b/sdk/storage/azure-storage-blob/azure/storage/blob/container_client.py index 40472ca6b538..209066ae917d 100644 --- a/sdk/storage/azure-storage-blob/azure/storage/blob/container_client.py +++ b/sdk/storage/azure-storage-blob/azure/storage/blob/container_client.py @@ -1070,6 +1070,8 @@ def on_request(self, request): except StorageErrorException as error: process_storage_error(error) + return pipeline_response.context['MULTIPART_RESPONSE'] + def get_blob_client( self, blob, # type: Union[str, BlobProperties] snapshot=None # type: str diff --git a/sdk/storage/azure-storage-blob/tests/test_container.py b/sdk/storage/azure-storage-blob/tests/test_container.py index 0260897ae64a..6308d25c70b8 100644 --- a/sdk/storage/azure-storage-blob/tests/test_container.py +++ b/sdk/storage/azure-storage-blob/tests/test_container.py @@ -975,11 +975,15 @@ def test_delete_blobs_simple(self): pass # Act - container.delete_blobs( + response = container.delete_blobs( 'blob1', 'blob2', 'blob3', ) + assert len(response) == 3 + assert response[0].status_code == 202 + assert response[1].status_code == 202 + assert response[2].status_code == 202 @record def test_walk_blobs_with_delimiter(self): diff --git a/sdk/storage/azure-storage-blob/tests/test_container_async.py b/sdk/storage/azure-storage-blob/tests/test_container_async.py index 44ad1fa90e6f..990ea3180d49 100644 --- a/sdk/storage/azure-storage-blob/tests/test_container_async.py +++ b/sdk/storage/azure-storage-blob/tests/test_container_async.py @@ -1210,11 +1210,16 @@ async def _test_delete_blobs_simple(self): pass # Act - await container.delete_blobs( + response = await container.delete_blobs( 'blob12', - # 'blob2', - # 'blob3', + 'blob2', + 'blob3', ) + assert len(response) == 3 + assert response[0].status_code == 202 + assert response[1].status_code == 202 + assert response[2].status_code == 202 + @record def test_list_blobs_with_delimiter(self): From 9a880eac34eb5a14b60d96060b3d758667634ec0 Mon Sep 17 00:00:00 2001 From: Laurent Mazuel Date: Fri, 20 Sep 2019 10:58:30 -0700 Subject: [PATCH 05/21] Storage clean-up --- .../blob/aio/container_client_async.py | 63 ++----------------- .../azure/storage/blob/container_client.py | 22 ++----- .../tests/test_container_async.py | 2 +- 3 files changed, 11 insertions(+), 76 deletions(-) diff --git a/sdk/storage/azure-storage-blob/azure/storage/blob/aio/container_client_async.py b/sdk/storage/azure-storage-blob/azure/storage/blob/aio/container_client_async.py index fb20c3549a52..7a3cb47f8570 100644 --- a/sdk/storage/azure-storage-blob/azure/storage/blob/aio/container_client_async.py +++ b/sdk/storage/azure-storage-blob/azure/storage/blob/aio/container_client_async.py @@ -15,6 +15,7 @@ from azure.core.async_paging import AsyncItemPaged from .._shared.base_client_async import AsyncStorageAccountHostsMixin +from .._shared.policies import StorageHeadersPolicy from .._shared.policies_async import ExponentialRetry from .._shared.request_handlers import add_metadata_headers, serialize_iso from .._shared.response_handlers import ( @@ -855,88 +856,34 @@ async def delete_blobs( headers={ 'x-ms-version': "2019-02-02" } - #params={'comp': 'batch'} ) - from wsgiref.handlers import format_date_time - from time import time - class LocalStorageHeadersPolicy(HeadersPolicy): - - def on_request(self, request): - # type: (PipelineRequest, Any) -> None - super(LocalStorageHeadersPolicy, self).on_request(request) - current_time = format_date_time(time()) - request.http_request.headers['x-ms-date'] = current_time - request.set_multipart_mixed( *reqs, policies=[ - LocalStorageHeadersPolicy(), + StorageHeadersPolicy(), self._credential_policy ] ) - multipart_helper = None - if request.multipart_mixed_info: - from azure.core.pipeline.transport.base import MultiPartHelper - multipart_helper = MultiPartHelper(request) - multipart_helper.prepare_request() - - import aiohttp - with aiohttp.MultipartWriter('mixed') as mpwriter: - for req in reqs: - mpwriter.append( - req.serialize(), - {'CONTENT-TYPE': 'application/http', 'Content-Transfer-Encoding': 'binary' } - ) - from io import BytesIO - buffer = BytesIO() - - class AsyncBytesIO: - def __init__(self): - self.buffer = BytesIO() - async def write(self, *args, **kwargs): - self.buffer.write(*args, **kwargs) - - async_buffer = AsyncBytesIO() - await mpwriter.write(async_buffer) - - request.set_bytes_body(async_buffer.buffer.getvalue()) - request.headers["Content-Type"] = "multipart/mixed; boundary="+mpwriter.boundary - pipeline_response = await self._pipeline.run( request, - stream=True ) response = pipeline_response.http_response - # reader = aiohttp.MultipartReader( - # response.internal_response.headers, - # response.internal_response.content, - # ) - # parts = [] - # while True: - # part = await reader.next() - # if part is None: - # break - # parts.append(part) - - body = response.body() - try: if response.status_code not in [202]: raise HttpResponseError(response=response) - # This scenario to be discussed - if len([]) != len(reqs): + parts = response.parts() + if len(parts) != len(reqs): raise HttpResponseError( message="Didn't receive the same number of parts", response=response ) + return parts except StorageErrorException as error: process_storage_error(error) - return pipeline_response.context['MULTIPART_RESPONSE'] - def get_blob_client( self, blob, # type: Union[str, BlobProperties] snapshot=None # type: str diff --git a/sdk/storage/azure-storage-blob/azure/storage/blob/container_client.py b/sdk/storage/azure-storage-blob/azure/storage/blob/container_client.py index 209066ae917d..5f13b5a8ecfa 100644 --- a/sdk/storage/azure-storage-blob/azure/storage/blob/container_client.py +++ b/sdk/storage/azure-storage-blob/azure/storage/blob/container_client.py @@ -23,6 +23,7 @@ from ._shared.base_client import StorageAccountHostsMixin, parse_connection_str, parse_query from ._shared.request_handlers import add_metadata_headers, serialize_iso +from ._shared.policies import StorageHeadersPolicy from ._shared.response_handlers import ( process_storage_error, return_response_headers, @@ -1031,24 +1032,12 @@ def delete_blobs( headers={ 'x-ms-version': "2019-02-02" } - #params={'comp': 'batch'} ) - from wsgiref.handlers import format_date_time - from time import time - class LocalStorageHeadersPolicy(HeadersPolicy): - - def on_request(self, request): - # type: (PipelineRequest, Any) -> None - super(LocalStorageHeadersPolicy, self).on_request(request) - current_time = format_date_time(time()) - request.http_request.headers['x-ms-date'] = current_time - - request.set_multipart_mixed( *reqs, policies=[ - LocalStorageHeadersPolicy(), + StorageHeadersPolicy(), self._credential_policy ] ) @@ -1061,17 +1050,16 @@ def on_request(self, request): try: if response.status_code not in [202]: raise HttpResponseError(response=response) - # This scenario to be discussed - if len(pipeline_response.context['MULTIPART_RESPONSE']) != len(reqs): + parts = response.parts() + if len(parts) != len(reqs): raise HttpResponseError( message="Didn't receive the same number of parts", response=response ) + return parts except StorageErrorException as error: process_storage_error(error) - return pipeline_response.context['MULTIPART_RESPONSE'] - def get_blob_client( self, blob, # type: Union[str, BlobProperties] snapshot=None # type: str diff --git a/sdk/storage/azure-storage-blob/tests/test_container_async.py b/sdk/storage/azure-storage-blob/tests/test_container_async.py index 990ea3180d49..3c08635c629f 100644 --- a/sdk/storage/azure-storage-blob/tests/test_container_async.py +++ b/sdk/storage/azure-storage-blob/tests/test_container_async.py @@ -1211,7 +1211,7 @@ async def _test_delete_blobs_simple(self): # Act response = await container.delete_blobs( - 'blob12', + 'blob1', 'blob2', 'blob3', ) From e71c591344face45e5621fc9d55714f15ffbdda3 Mon Sep 17 00:00:00 2001 From: Laurent Mazuel Date: Fri, 20 Sep 2019 11:23:29 -0700 Subject: [PATCH 06/21] Storage options --- .../blob/aio/container_client_async.py | 23 ++++--- .../azure/storage/blob/blob_client.py | 14 ++-- .../azure/storage/blob/container_client.py | 66 ++++++++++++++++--- 3 files changed, 83 insertions(+), 20 deletions(-) diff --git a/sdk/storage/azure-storage-blob/azure/storage/blob/aio/container_client_async.py b/sdk/storage/azure-storage-blob/azure/storage/blob/aio/container_client_async.py index 7a3cb47f8570..0bf3208ac867 100644 --- a/sdk/storage/azure-storage-blob/azure/storage/blob/aio/container_client_async.py +++ b/sdk/storage/azure-storage-blob/azure/storage/blob/aio/container_client_async.py @@ -13,6 +13,8 @@ from azure.core.tracing.decorator import distributed_trace from azure.core.tracing.decorator_async import distributed_trace_async from azure.core.async_paging import AsyncItemPaged +from azure.core.pipeline.transport import HttpRequest +from azure.core.exceptions import HttpResponseError from .._shared.base_client_async import AsyncStorageAccountHostsMixin from .._shared.policies import StorageHeadersPolicy @@ -838,18 +840,23 @@ async def delete_blobs( The timeout parameter is expressed in seconds. :rtype: None """ - from azure.core.pipeline.transport import HttpRequest, HttpResponse, RequestsTransport - from azure.core.pipeline.policies import HeadersPolicy - from azure.core.exceptions import map_error, HttpResponseError + options = BlobClient._generic_delete_blob_options( + delete_snapshots=delete_snapshots, + lease=lease, + timeout=timeout, + **kwargs + ) + query_parameters, header_parameters = self._generate_delete_blobs_options(**options) + reqs = [] for blob in blobs: - reqs.append(HttpRequest( + req = HttpRequest( "DELETE", "/{}/{}".format(self.container_name, blob), - headers={ - 'Content-Length': '0' - } - )) + headers=header_parameters + ) + req.format_parameters(query_parameters) + reqs.append(req) request = self._client._client.post( url='https://{}/?comp=batch'.format(self.primary_hostname), diff --git a/sdk/storage/azure-storage-blob/azure/storage/blob/blob_client.py b/sdk/storage/azure-storage-blob/azure/storage/blob/blob_client.py index 7f4f7fef0d38..bedf49a3be52 100644 --- a/sdk/storage/azure-storage-blob/azure/storage/blob/blob_client.py +++ b/sdk/storage/azure-storage-blob/azure/storage/blob/blob_client.py @@ -673,7 +673,8 @@ def download_blob(self, offset=None, length=None, validate_content=False, **kwar } return StorageStreamDownloader(extra_properties=extra_properties, **options) - def _delete_blob_options(self, delete_snapshots=False, **kwargs): + @staticmethod + def _generic_delete_blob_options(delete_snapshots=False, **kwargs): # type: (bool, **Any) -> Dict[str, Any] access_conditions = get_access_conditions(kwargs.pop('lease', None)) mod_conditions = ModifiedAccessConditions( @@ -681,19 +682,24 @@ def _delete_blob_options(self, delete_snapshots=False, **kwargs): if_unmodified_since=kwargs.pop('if_unmodified_since', None), if_match=kwargs.pop('if_match', None), if_none_match=kwargs.pop('if_none_match', None)) - if self.snapshot and delete_snapshots: - raise ValueError("The delete_snapshots option cannot be used with a specific snapshot.") if delete_snapshots: delete_snapshots = DeleteSnapshotsOptionType(delete_snapshots) options = { 'timeout': kwargs.pop('timeout', None), 'delete_snapshots': delete_snapshots or None, - 'snapshot': self.snapshot, 'lease_access_conditions': access_conditions, 'modified_access_conditions': mod_conditions} options.update(kwargs) return options + def _delete_blob_options(self, delete_snapshots=False, **kwargs): + # type: (bool, **Any) -> Dict[str, Any] + if self.snapshot and delete_snapshots: + raise ValueError("The delete_snapshots option cannot be used with a specific snapshot.") + options = self._generic_delete_blob_options(delete_snapshots, **kwargs) + options['snapshot'] = self.snapshot + return options + @distributed_trace def delete_blob(self, delete_snapshots=False, **kwargs): # type: (bool, **Any) -> None diff --git a/sdk/storage/azure-storage-blob/azure/storage/blob/container_client.py b/sdk/storage/azure-storage-blob/azure/storage/blob/container_client.py index 5f13b5a8ecfa..b9a9ccffe557 100644 --- a/sdk/storage/azure-storage-blob/azure/storage/blob/container_client.py +++ b/sdk/storage/azure-storage-blob/azure/storage/blob/container_client.py @@ -20,6 +20,8 @@ from azure.core.paging import ItemPaged from azure.core.tracing.decorator import distributed_trace +from azure.core.pipeline.transport import HttpRequest +from azure.core.exceptions import HttpResponseError from ._shared.base_client import StorageAccountHostsMixin, parse_connection_str, parse_query from ._shared.request_handlers import add_metadata_headers, serialize_iso @@ -952,6 +954,49 @@ def delete_blob( timeout=timeout, **kwargs) + def _generate_delete_blobs_options(self, snapshot=None, timeout=None, delete_snapshots=None, request_id=None, lease_access_conditions=None, modified_access_conditions=None): + lease_id = None + if lease_access_conditions is not None: + lease_id = lease_access_conditions.lease_id + if_modified_since = None + if modified_access_conditions is not None: + if_modified_since = modified_access_conditions.if_modified_since + if_unmodified_since = None + if modified_access_conditions is not None: + if_unmodified_since = modified_access_conditions.if_unmodified_since + if_match = None + if modified_access_conditions is not None: + if_match = modified_access_conditions.if_match + if_none_match = None + if modified_access_conditions is not None: + if_none_match = modified_access_conditions.if_none_match + + # Construct parameters + query_parameters = {} + if snapshot is not None: + query_parameters['snapshot'] = self._client._serialize.query("snapshot", snapshot, 'str') + if timeout is not None: + query_parameters['timeout'] = self._client._serialize.query("timeout", timeout, 'int', minimum=0) + + # Construct headers + header_parameters = {} + if delete_snapshots is not None: + header_parameters['x-ms-delete-snapshots'] = self._client._serialize.header("delete_snapshots", delete_snapshots, 'DeleteSnapshotsOptionType') + if request_id is not None: + header_parameters['x-ms-client-request-id'] = self._client._serialize.header("request_id", request_id, 'str') + if lease_id is not None: + header_parameters['x-ms-lease-id'] = self._client._serialize.header("lease_id", lease_id, 'str') + if if_modified_since is not None: + header_parameters['If-Modified-Since'] = self._client._serialize.header("if_modified_since", if_modified_since, 'rfc-1123') + if if_unmodified_since is not None: + header_parameters['If-Unmodified-Since'] = self._client._serialize.header("if_unmodified_since", if_unmodified_since, 'rfc-1123') + if if_match is not None: + header_parameters['If-Match'] = self._client._serialize.header("if_match", if_match, 'str') + if if_none_match is not None: + header_parameters['If-None-Match'] = self._client._serialize.header("if_none_match", if_none_match, 'str') + + return query_parameters, header_parameters + @distributed_trace def delete_blobs( self, *blobs, # type: Union[str, BlobProperties] @@ -1014,18 +1059,23 @@ def delete_blobs( The timeout parameter is expressed in seconds. :rtype: None """ - from azure.core.pipeline.transport import HttpRequest, HttpResponse, RequestsTransport - from azure.core.pipeline.policies import HeadersPolicy - from azure.core.exceptions import map_error, HttpResponseError + options = BlobClient._generic_delete_blob_options( + delete_snapshots=delete_snapshots, + lease=lease, + timeout=timeout, + **kwargs + ) + query_parameters, header_parameters = self._generate_delete_blobs_options(**options) + reqs = [] for blob in blobs: - reqs.append(HttpRequest( + req = HttpRequest( "DELETE", "/{}/{}".format(self.container_name, blob), - headers={ - 'Content-Length': '0' - } - )) + headers=header_parameters + ) + req.format_parameters(query_parameters) + reqs.append(req) request = self._client._client.post( url='https://{}/?comp=batch'.format(self.primary_hostname), From 3e2c111a37198acd97a3a4d0a53f89148b184106 Mon Sep 17 00:00:00 2001 From: Laurent Mazuel Date: Mon, 30 Sep 2019 15:49:30 -0700 Subject: [PATCH 07/21] Autorest remark --- .../azure-storage-blob/azure/storage/blob/container_client.py | 1 + 1 file changed, 1 insertion(+) diff --git a/sdk/storage/azure-storage-blob/azure/storage/blob/container_client.py b/sdk/storage/azure-storage-blob/azure/storage/blob/container_client.py index b9a9ccffe557..7ba30b53a355 100644 --- a/sdk/storage/azure-storage-blob/azure/storage/blob/container_client.py +++ b/sdk/storage/azure-storage-blob/azure/storage/blob/container_client.py @@ -955,6 +955,7 @@ def delete_blob( **kwargs) def _generate_delete_blobs_options(self, snapshot=None, timeout=None, delete_snapshots=None, request_id=None, lease_access_conditions=None, modified_access_conditions=None): + """This code is a copy from _generated. Once Autorest is able to provide request preparation this code should be removed""" lease_id = None if lease_access_conditions is not None: lease_id = lease_access_conditions.lease_id From b7acba58e7b8bca6b256b202c38bc271992ee16e Mon Sep 17 00:00:00 2001 From: Laurent Mazuel Date: Mon, 30 Sep 2019 15:50:51 -0700 Subject: [PATCH 08/21] Use config option --- .../azure/storage/blob/aio/container_client_async.py | 2 +- .../azure-storage-blob/azure/storage/blob/container_client.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sdk/storage/azure-storage-blob/azure/storage/blob/aio/container_client_async.py b/sdk/storage/azure-storage-blob/azure/storage/blob/aio/container_client_async.py index 0bf3208ac867..3898cef01809 100644 --- a/sdk/storage/azure-storage-blob/azure/storage/blob/aio/container_client_async.py +++ b/sdk/storage/azure-storage-blob/azure/storage/blob/aio/container_client_async.py @@ -861,7 +861,7 @@ async def delete_blobs( request = self._client._client.post( url='https://{}/?comp=batch'.format(self.primary_hostname), headers={ - 'x-ms-version': "2019-02-02" + 'x-ms-version': self._config.version } ) diff --git a/sdk/storage/azure-storage-blob/azure/storage/blob/container_client.py b/sdk/storage/azure-storage-blob/azure/storage/blob/container_client.py index 7ba30b53a355..575a6fc67305 100644 --- a/sdk/storage/azure-storage-blob/azure/storage/blob/container_client.py +++ b/sdk/storage/azure-storage-blob/azure/storage/blob/container_client.py @@ -1081,7 +1081,7 @@ def delete_blobs( request = self._client._client.post( url='https://{}/?comp=batch'.format(self.primary_hostname), headers={ - 'x-ms-version': "2019-02-02" + 'x-ms-version': self._config.version } ) From e9e04aa707ef4cd7e31d84f087c9bcaa00cb1641 Mon Sep 17 00:00:00 2001 From: Laurent Mazuel Date: Mon, 30 Sep 2019 16:04:16 -0700 Subject: [PATCH 09/21] SetBlobTier WIP --- .../blob/aio/container_client_async.py | 162 ++++++++++++--- .../azure/storage/blob/container_client.py | 194 +++++++++++++++--- 2 files changed, 299 insertions(+), 57 deletions(-) diff --git a/sdk/storage/azure-storage-blob/azure/storage/blob/aio/container_client_async.py b/sdk/storage/azure-storage-blob/azure/storage/blob/aio/container_client_async.py index 3898cef01809..c35f854bd45a 100644 --- a/sdk/storage/azure-storage-blob/azure/storage/blob/aio/container_client_async.py +++ b/sdk/storage/azure-storage-blob/azure/storage/blob/aio/container_client_async.py @@ -778,6 +778,45 @@ async def delete_blob( timeout=timeout, **kwargs) + async def _batch_send( + self, *reqs # type: HttpRequest + ): + """Given a series of request, do a Storage batch call. + """ + request = self._client._client.post( + url='https://{}/?comp=batch'.format(self.primary_hostname), + headers={ + 'x-ms-version': self._config.version + } + ) + + request.set_multipart_mixed( + *reqs, + policies=[ + StorageHeadersPolicy(), + self._credential_policy + ] + ) + + pipeline_response = await self._pipeline.run( + request, + ) + response = pipeline_response.http_response + + try: + if response.status_code not in [202]: + raise HttpResponseError(response=response) + parts = response.parts() + if len(parts) != len(reqs): + raise HttpResponseError( + message="Didn't receive the same number of parts", + response=response + ) + return parts + except StorageErrorException as error: + process_storage_error(error) + + @distributed_trace_async async def delete_blobs( self, *blobs, # type: Union[str, BlobProperties] @@ -858,38 +897,107 @@ async def delete_blobs( req.format_parameters(query_parameters) reqs.append(req) - request = self._client._client.post( - url='https://{}/?comp=batch'.format(self.primary_hostname), - headers={ - 'x-ms-version': self._config.version - } - ) + return await self._batch_send(*reqs) - request.set_multipart_mixed( - *reqs, - policies=[ - StorageHeadersPolicy(), - self._credential_policy - ] + @distributed_trace + async def set_standard_blob_tier_blobs( + self, *blobs, # type: Union[str, BlobProperties] + standard_blob_tier, + **kwargs + ): + # type: (Union[str, BlobProperties], Union[str, StandardBlobTier], Any) -> None + """This operation sets the tier on block blobs. + + A block blob's tier determines Hot/Cool/Archive storage type. + This operation does not update the blob's ETag. + + :param blobs: The blobs with which to interact. + :type blobs: str or ~azure.storage.blob.models.BlobProperties + :param standard_blob_tier: + Indicates the tier to be set on the blob. Options include 'Hot', 'Cool', + 'Archive'. The hot tier is optimized for storing data that is accessed + frequently. The cool storage tier is optimized for storing data that + is infrequently accessed and stored for at least a month. The archive + tier is optimized for storing data that is rarely accessed and stored + for at least six months with flexible latency requirements. + :type standard_blob_tier: str or ~azure.storage.blob.models.StandardBlobTier + :param int timeout: + The timeout parameter is expressed in seconds. + :param lease: + Required if the blob has an active lease. Value can be a LeaseClient object + or the lease ID as a string. + :type lease: ~azure.storage.blob.lease.LeaseClient or str + :rtype: None + """ + access_conditions = get_access_conditions(kwargs.pop('lease', None)) + if standard_blob_tier is None: + raise ValueError("A StandardBlobTier must be specified") + + query_parameters, header_parameters = self._generate_set_tier_options( + tier=standard_blob_tier, + lease_access_conditions=access_conditions, + **kwargs ) - pipeline_response = await self._pipeline.run( - request, + reqs = [] + for blob in blobs: + req = HttpRequest( + "PUT", + "/{}/{}?comp=tier".format(self.container_name, blob), + headers=header_parameters + ) + req.format_parameters(query_parameters) + reqs.append(req) + + return await self._batch_send(*reqs) + + @distributed_trace + async def set_premium_page_blob_tier_blobs( + self, *blobs, # type: Union[str, BlobProperties] + premium_page_blob_tier, + **kwargs + ): + # type: (Union[str, BlobProperties], Union[str, PremiumPageBlobTier], Optional[int], Optional[Union[LeaseClient, str]], **Any) -> None + """Sets the page blob tiers on the blobs. This API is only supported for page blobs on premium accounts. + + :param blobs: The blobs with which to interact. + :type blobs: str or ~azure.storage.blob.models.BlobProperties + :param premium_page_blob_tier: + A page blob tier value to set the blob to. The tier correlates to the size of the + blob and number of allowed IOPS. This is only applicable to page blobs on + premium storage accounts. + :type premium_page_blob_tier: ~azure.storage.blob.models.PremiumPageBlobTier + :param int timeout: + The timeout parameter is expressed in seconds. This method may make + multiple calls to the Azure service and the timeout will apply to + each call individually. + :param lease: + Required if the blob has an active lease. Value can be a LeaseClient object + or the lease ID as a string. + :type lease: ~azure.storage.blob.lease.LeaseClient or str + :rtype: None + """ + access_conditions = get_access_conditions(kwargs.pop('lease', None)) + if premium_page_blob_tier is None: + raise ValueError("A PremiumPageBlobTier must be specified") + + query_parameters, header_parameters = self._generate_set_tier_options( + tier=premium_page_blob_tier, + lease_access_conditions=access_conditions, + **kwargs ) - response = pipeline_response.http_response - try: - if response.status_code not in [202]: - raise HttpResponseError(response=response) - parts = response.parts() - if len(parts) != len(reqs): - raise HttpResponseError( - message="Didn't receive the same number of parts", - response=response - ) - return parts - except StorageErrorException as error: - process_storage_error(error) + reqs = [] + for blob in blobs: + req = HttpRequest( + "PUT", + "/{}/{}?comp=tier".format(self.container_name, blob), + headers=header_parameters + ) + req.format_parameters(query_parameters) + reqs.append(req) + + return await self._batch_send(*reqs) def get_blob_client( self, blob, # type: Union[str, BlobProperties] diff --git a/sdk/storage/azure-storage-blob/azure/storage/blob/container_client.py b/sdk/storage/azure-storage-blob/azure/storage/blob/container_client.py index 575a6fc67305..d6bc388d3188 100644 --- a/sdk/storage/azure-storage-blob/azure/storage/blob/container_client.py +++ b/sdk/storage/azure-storage-blob/azure/storage/blob/container_client.py @@ -998,6 +998,45 @@ def _generate_delete_blobs_options(self, snapshot=None, timeout=None, delete_sna return query_parameters, header_parameters + def _batch_send( + self, *reqs # type: HttpRequest + ): + """Given a series of request, do a Storage batch call. + """ + request = self._client._client.post( + url='https://{}/?comp=batch'.format(self.primary_hostname), + headers={ + 'x-ms-version': self._config.version + } + ) + + request.set_multipart_mixed( + *reqs, + policies=[ + StorageHeadersPolicy(), + self._credential_policy + ] + ) + + pipeline_response = self._pipeline.run( + request, + ) + response = pipeline_response.http_response + + try: + if response.status_code not in [202]: + raise HttpResponseError(response=response) + parts = response.parts() + if len(parts) != len(reqs): + raise HttpResponseError( + message="Didn't receive the same number of parts", + response=response + ) + return parts + except StorageErrorException as error: + process_storage_error(error) + + @distributed_trace def delete_blobs( self, *blobs, # type: Union[str, BlobProperties] @@ -1020,9 +1059,8 @@ def delete_blobs( Soft deleted blob or snapshot is accessible through List Blobs API specifying `include="deleted"` option. Soft-deleted blob or snapshot can be restored using Undelete API. - :param blob: The blob with which to interact. If specified, this value will override - a blob value specified in the blob URL. - :type blob: str or ~azure.storage.blob.models.BlobProperties + :param blobs: The blobs with which to interact. + :type blobs: str or ~azure.storage.blob.models.BlobProperties :param str delete_snapshots: Required if the blob has associated snapshots. Values include: - "only": Deletes only the blobs snapshots. @@ -1078,38 +1116,134 @@ def delete_blobs( req.format_parameters(query_parameters) reqs.append(req) - request = self._client._client.post( - url='https://{}/?comp=batch'.format(self.primary_hostname), - headers={ - 'x-ms-version': self._config.version - } - ) + return self._batch_send(*reqs) - request.set_multipart_mixed( - *reqs, - policies=[ - StorageHeadersPolicy(), - self._credential_policy - ] + def _generate_set_tier_options(self, tier, timeout=None, rehydrate_priority=None, request_id=None, lease_access_conditions=None): + """This code is a copy from _generated. Once Autorest is able to provide request preparation this code should be removed""" + lease_id = None + if lease_access_conditions is not None: + lease_id = lease_access_conditions.lease_id + + comp = "tier" + + # Construct parameters + query_parameters = {} + if timeout is not None: + query_parameters['timeout'] = self._client._serialize.query("timeout", timeout, 'int', minimum=0) + query_parameters['comp'] = self._client._serialize.query("comp", comp, 'str') + + # Construct headers + header_parameters = {} + header_parameters['x-ms-access-tier'] = self._client._serialize.header("tier", tier, 'str') + if rehydrate_priority is not None: + header_parameters['x-ms-rehydrate-priority'] = self._client._serialize.header("rehydrate_priority", rehydrate_priority, 'str') + header_parameters['x-ms-version'] = self._client._serialize.header("self._config.version", self._config.version, 'str') + if request_id is not None: + header_parameters['x-ms-client-request-id'] = self._client._serialize.header("request_id", request_id, 'str') + if lease_id is not None: + header_parameters['x-ms-lease-id'] = self._client._serialize.header("lease_id", lease_id, 'str') + + return query_parameters, header_parameters + + @distributed_trace + def set_standard_blob_tier_blobs( + self, *blobs, # type: Union[str, BlobProperties] + standard_blob_tier, + **kwargs + ): + # type: (Union[str, BlobProperties], Union[str, StandardBlobTier], Any) -> None + """This operation sets the tier on block blobs. + + A block blob's tier determines Hot/Cool/Archive storage type. + This operation does not update the blob's ETag. + + :param blobs: The blobs with which to interact. + :type blobs: str or ~azure.storage.blob.models.BlobProperties + :param standard_blob_tier: + Indicates the tier to be set on the blob. Options include 'Hot', 'Cool', + 'Archive'. The hot tier is optimized for storing data that is accessed + frequently. The cool storage tier is optimized for storing data that + is infrequently accessed and stored for at least a month. The archive + tier is optimized for storing data that is rarely accessed and stored + for at least six months with flexible latency requirements. + :type standard_blob_tier: str or ~azure.storage.blob.models.StandardBlobTier + :param int timeout: + The timeout parameter is expressed in seconds. + :param lease: + Required if the blob has an active lease. Value can be a LeaseClient object + or the lease ID as a string. + :type lease: ~azure.storage.blob.lease.LeaseClient or str + :rtype: None + """ + access_conditions = get_access_conditions(kwargs.pop('lease', None)) + if standard_blob_tier is None: + raise ValueError("A StandardBlobTier must be specified") + + query_parameters, header_parameters = self._generate_set_tier_options( + tier=standard_blob_tier, + lease_access_conditions=access_conditions, + **kwargs ) - pipeline_response = self._pipeline.run( - request, + reqs = [] + for blob in blobs: + req = HttpRequest( + "PUT", + "/{}/{}?comp=tier".format(self.container_name, blob), + headers=header_parameters + ) + req.format_parameters(query_parameters) + reqs.append(req) + + return self._batch_send(*reqs) + + @distributed_trace + def set_premium_page_blob_tier_blobs( + self, *blobs, # type: Union[str, BlobProperties] + premium_page_blob_tier, + **kwargs + ): + # type: (Union[str, BlobProperties], Union[str, PremiumPageBlobTier], Optional[int], Optional[Union[LeaseClient, str]], **Any) -> None + """Sets the page blob tiers on the blobs. This API is only supported for page blobs on premium accounts. + + :param blobs: The blobs with which to interact. + :type blobs: str or ~azure.storage.blob.models.BlobProperties + :param premium_page_blob_tier: + A page blob tier value to set the blob to. The tier correlates to the size of the + blob and number of allowed IOPS. This is only applicable to page blobs on + premium storage accounts. + :type premium_page_blob_tier: ~azure.storage.blob.models.PremiumPageBlobTier + :param int timeout: + The timeout parameter is expressed in seconds. This method may make + multiple calls to the Azure service and the timeout will apply to + each call individually. + :param lease: + Required if the blob has an active lease. Value can be a LeaseClient object + or the lease ID as a string. + :type lease: ~azure.storage.blob.lease.LeaseClient or str + :rtype: None + """ + access_conditions = get_access_conditions(kwargs.pop('lease', None)) + if premium_page_blob_tier is None: + raise ValueError("A PremiumPageBlobTier must be specified") + + query_parameters, header_parameters = self._generate_set_tier_options( + tier=premium_page_blob_tier, + lease_access_conditions=access_conditions, + **kwargs ) - response = pipeline_response.http_response - try: - if response.status_code not in [202]: - raise HttpResponseError(response=response) - parts = response.parts() - if len(parts) != len(reqs): - raise HttpResponseError( - message="Didn't receive the same number of parts", - response=response - ) - return parts - except StorageErrorException as error: - process_storage_error(error) + reqs = [] + for blob in blobs: + req = HttpRequest( + "PUT", + "/{}/{}?comp=tier".format(self.container_name, blob), + headers=header_parameters + ) + req.format_parameters(query_parameters) + reqs.append(req) + + return self._batch_send(*reqs) def get_blob_client( self, blob, # type: Union[str, BlobProperties] From ab813502e0f7f629fd1fc1a439d8883b8003ffdc Mon Sep 17 00:00:00 2001 From: Laurent Mazuel Date: Tue, 1 Oct 2019 12:16:24 -0700 Subject: [PATCH 10/21] Working and tested delete_blobs + options --- .../blob/aio/container_client_async.py | 10 +- .../azure/storage/blob/container_client.py | 10 +- ...st_container.test_delete_blobs_simple.yaml | 169 +++++++++ ..._container.test_delete_blobs_snapshot.yaml | 284 +++++++++++++++ ...tainer_async.test_delete_blobs_simple.yaml | 200 +++++++++++ ...iner_async.test_delete_blobs_snapshot.yaml | 334 ++++++++++++++++++ .../tests/test_container.py | 32 ++ .../tests/test_container_async.py | 46 ++- 8 files changed, 1067 insertions(+), 18 deletions(-) create mode 100644 sdk/storage/azure-storage-blob/tests/recordings/test_container.test_delete_blobs_simple.yaml create mode 100644 sdk/storage/azure-storage-blob/tests/recordings/test_container.test_delete_blobs_snapshot.yaml create mode 100644 sdk/storage/azure-storage-blob/tests/recordings/test_container_async.test_delete_blobs_simple.yaml create mode 100644 sdk/storage/azure-storage-blob/tests/recordings/test_container_async.test_delete_blobs_snapshot.yaml diff --git a/sdk/storage/azure-storage-blob/azure/storage/blob/aio/container_client_async.py b/sdk/storage/azure-storage-blob/azure/storage/blob/aio/container_client_async.py index c35f854bd45a..e00802d2dff6 100644 --- a/sdk/storage/azure-storage-blob/azure/storage/blob/aio/container_client_async.py +++ b/sdk/storage/azure-storage-blob/azure/storage/blob/aio/container_client_async.py @@ -786,7 +786,7 @@ async def _batch_send( request = self._client._client.post( url='https://{}/?comp=batch'.format(self.primary_hostname), headers={ - 'x-ms-version': self._config.version + 'x-ms-version': self._client._config.version } ) @@ -806,13 +806,7 @@ async def _batch_send( try: if response.status_code not in [202]: raise HttpResponseError(response=response) - parts = response.parts() - if len(parts) != len(reqs): - raise HttpResponseError( - message="Didn't receive the same number of parts", - response=response - ) - return parts + return response.parts() # Return an AsyncIterator except StorageErrorException as error: process_storage_error(error) diff --git a/sdk/storage/azure-storage-blob/azure/storage/blob/container_client.py b/sdk/storage/azure-storage-blob/azure/storage/blob/container_client.py index d6bc388d3188..8a53082828e6 100644 --- a/sdk/storage/azure-storage-blob/azure/storage/blob/container_client.py +++ b/sdk/storage/azure-storage-blob/azure/storage/blob/container_client.py @@ -1006,7 +1006,7 @@ def _batch_send( request = self._client._client.post( url='https://{}/?comp=batch'.format(self.primary_hostname), headers={ - 'x-ms-version': self._config.version + 'x-ms-version': self._client._config.version } ) @@ -1026,13 +1026,7 @@ def _batch_send( try: if response.status_code not in [202]: raise HttpResponseError(response=response) - parts = response.parts() - if len(parts) != len(reqs): - raise HttpResponseError( - message="Didn't receive the same number of parts", - response=response - ) - return parts + return response.parts() except StorageErrorException as error: process_storage_error(error) diff --git a/sdk/storage/azure-storage-blob/tests/recordings/test_container.test_delete_blobs_simple.yaml b/sdk/storage/azure-storage-blob/tests/recordings/test_container.test_delete_blobs_simple.yaml new file mode 100644 index 000000000000..90eb4aa0e7bf --- /dev/null +++ b/sdk/storage/azure-storage-blob/tests/recordings/test_container.test_delete_blobs_simple.yaml @@ -0,0 +1,169 @@ +interactions: +- request: + body: null + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['0'] + User-Agent: [azsdk-python-storage-blob/12.0.0b3 Python/3.7.0 (Windows-10-10.0.18362-SP0)] + content-type: [application/xml; charset=utf-8] + x-ms-client-request-id: [e0c0b27a-e47f-11e9-b392-ecb1d756380e] + x-ms-date: ['Tue, 01 Oct 2019 19:15:49 GMT'] + x-ms-version: ['2019-02-02'] + method: PUT + uri: https://blobstoragename.blob.core.windows.net/container40320ffd?restype=container + response: + body: {string: ''} + headers: + Content-Length: ['0'] + Date: ['Tue, 01 Oct 2019 19:15:49 GMT'] + ETag: ['"0x8D746A3C5240464"'] + Last-Modified: ['Tue, 01 Oct 2019 19:15:49 GMT'] + Server: [Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0] + x-ms-client-request-id: [e0c0b27a-e47f-11e9-b392-ecb1d756380e] + x-ms-request-id: [14a5b9d5-f01e-0050-638c-787b08000000] + x-ms-version: ['2019-02-02'] + status: {code: 201, message: Created} +- request: + body: hello world + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['11'] + Content-Type: [application/octet-stream] + If-None-Match: ['*'] + User-Agent: [azsdk-python-storage-blob/12.0.0b3 Python/3.7.0 (Windows-10-10.0.18362-SP0)] + x-ms-blob-type: [BlockBlob] + x-ms-client-request-id: [e0f18ff0-e47f-11e9-a602-ecb1d756380e] + x-ms-date: ['Tue, 01 Oct 2019 19:15:49 GMT'] + x-ms-version: ['2019-02-02'] + method: PUT + uri: https://blobstoragename.blob.core.windows.net/container40320ffd/blob1 + response: + body: {string: ''} + headers: + Content-Length: ['0'] + Content-MD5: [XrY7u+Ae7tCTyyK7j1rNww==] + Date: ['Tue, 01 Oct 2019 19:15:49 GMT'] + ETag: ['"0x8D746A3C53119A5"'] + Last-Modified: ['Tue, 01 Oct 2019 19:15:49 GMT'] + Server: [Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0] + x-ms-client-request-id: [e0f18ff0-e47f-11e9-a602-ecb1d756380e] + x-ms-content-crc64: [vo7q9sPVKY0=] + x-ms-request-id: [14a5ba07-f01e-0050-118c-787b08000000] + x-ms-request-server-encrypted: ['true'] + x-ms-version: ['2019-02-02'] + status: {code: 201, message: Created} +- request: + body: hello world + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['11'] + Content-Type: [application/octet-stream] + If-None-Match: ['*'] + User-Agent: [azsdk-python-storage-blob/12.0.0b3 Python/3.7.0 (Windows-10-10.0.18362-SP0)] + x-ms-blob-type: [BlockBlob] + x-ms-client-request-id: [e0ff4b86-e47f-11e9-942e-ecb1d756380e] + x-ms-date: ['Tue, 01 Oct 2019 19:15:49 GMT'] + x-ms-version: ['2019-02-02'] + method: PUT + uri: https://blobstoragename.blob.core.windows.net/container40320ffd/blob2 + response: + body: {string: ''} + headers: + Content-Length: ['0'] + Content-MD5: [XrY7u+Ae7tCTyyK7j1rNww==] + Date: ['Tue, 01 Oct 2019 19:15:49 GMT'] + ETag: ['"0x8D746A3C5405EAB"'] + Last-Modified: ['Tue, 01 Oct 2019 19:15:49 GMT'] + Server: [Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0] + x-ms-client-request-id: [e0ff4b86-e47f-11e9-942e-ecb1d756380e] + x-ms-content-crc64: [vo7q9sPVKY0=] + x-ms-request-id: [14a5ba38-f01e-0050-428c-787b08000000] + x-ms-request-server-encrypted: ['true'] + x-ms-version: ['2019-02-02'] + status: {code: 201, message: Created} +- request: + body: hello world + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['11'] + Content-Type: [application/octet-stream] + If-None-Match: ['*'] + User-Agent: [azsdk-python-storage-blob/12.0.0b3 Python/3.7.0 (Windows-10-10.0.18362-SP0)] + x-ms-blob-type: [BlockBlob] + x-ms-client-request-id: [e10cb7c0-e47f-11e9-9a4f-ecb1d756380e] + x-ms-date: ['Tue, 01 Oct 2019 19:15:49 GMT'] + x-ms-version: ['2019-02-02'] + method: PUT + uri: https://blobstoragename.blob.core.windows.net/container40320ffd/blob3 + response: + body: {string: ''} + headers: + Content-Length: ['0'] + Content-MD5: [XrY7u+Ae7tCTyyK7j1rNww==] + Date: ['Tue, 01 Oct 2019 19:15:49 GMT'] + ETag: ['"0x8D746A3C54C2096"'] + Last-Modified: ['Tue, 01 Oct 2019 19:15:49 GMT'] + Server: [Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0] + x-ms-client-request-id: [e10cb7c0-e47f-11e9-9a4f-ecb1d756380e] + x-ms-content-crc64: [vo7q9sPVKY0=] + x-ms-request-id: [14a5ba72-f01e-0050-7b8c-787b08000000] + x-ms-request-server-encrypted: ['true'] + x-ms-version: ['2019-02-02'] + status: {code: 201, message: Created} +- request: + body: "--===============1531725606335133470==\r\nContent-Type: application/http\r\nContent-Transfer-Encoding: + binary\r\nContent-ID: 0\r\n\r\nDELETE /container40320ffd/blob1? HTTP/1.1\r\nx-ms-date: + Tue, 01 Oct 2019 19:15:49 GMT\r\nx-ms-client-request-id: e1189e88-e47f-11e9-8678-ecb1d756380e\r\ncontent-type: + application/xml; charset=utf-8\r\nAuthorization: SharedKey blobstoragename:a41hZsRXcff//FpBYc+86sFcsNORue14K7trG+16iDg=\r\n\r\n\r\n--===============1531725606335133470==\r\nContent-Type: + application/http\r\nContent-Transfer-Encoding: binary\r\nContent-ID: 1\r\n\r\nDELETE + /container40320ffd/blob2? HTTP/1.1\r\nx-ms-date: Tue, 01 Oct 2019 19:15:49 GMT\r\nx-ms-client-request-id: + e118eca4-e47f-11e9-b776-ecb1d756380e\r\ncontent-type: application/xml; charset=utf-8\r\nAuthorization: + SharedKey blobstoragename:n5PcFN6XnPcWk25g2dNXCZ/b6n7zd0ZB/fd63IITBQI=\r\n\r\n\r\n--===============1531725606335133470==\r\nContent-Type: + application/http\r\nContent-Transfer-Encoding: binary\r\nContent-ID: 2\r\n\r\nDELETE + /container40320ffd/blob3? HTTP/1.1\r\nx-ms-date: Tue, 01 Oct 2019 19:15:50 GMT\r\nx-ms-client-request-id: + e11913ee-e47f-11e9-a493-ecb1d756380e\r\ncontent-type: application/xml; charset=utf-8\r\nAuthorization: + SharedKey blobstoragename:7tVU2oZ+d87qg1MKer3ay0ST6I4eqv3C8Lsx+7REJds=\r\n\r\n\r\n--===============1531725606335133470==--\r\n" + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['1245'] + Content-Type: [multipart/mixed; boundary================1531725606335133470==] + User-Agent: [azsdk-python-storage-blob/12.0.0b3 Python/3.7.0 (Windows-10-10.0.18362-SP0)] + x-ms-client-request-id: [e11c2258-e47f-11e9-9f62-ecb1d756380e] + x-ms-date: ['Tue, 01 Oct 2019 19:15:50 GMT'] + x-ms-version: ['2019-02-02'] + method: POST + uri: https://blobstoragename.blob.core.windows.net/?comp=batch + response: + body: {string: "--batchresponse_1c6a2ff3-9855-400d-9153-79daa767f8bc\r\nContent-Type: + application/http\r\nContent-ID: 0\r\n\r\nHTTP/1.1 202 Accepted\r\nx-ms-delete-type-permanent: + true\r\nx-ms-request-id: 14a5bab3-f01e-0050-3b8c-787b081efd15\r\nx-ms-version: + 2019-02-02\r\nx-ms-client-request-id: e1189e88-e47f-11e9-8678-ecb1d756380e\r\nServer: + Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_1c6a2ff3-9855-400d-9153-79daa767f8bc\r\nContent-Type: + application/http\r\nContent-ID: 1\r\n\r\nHTTP/1.1 202 Accepted\r\nx-ms-delete-type-permanent: + true\r\nx-ms-request-id: 14a5bab3-f01e-0050-3b8c-787b081efd19\r\nx-ms-version: + 2019-02-02\r\nx-ms-client-request-id: e118eca4-e47f-11e9-b776-ecb1d756380e\r\nServer: + Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_1c6a2ff3-9855-400d-9153-79daa767f8bc\r\nContent-Type: + application/http\r\nContent-ID: 2\r\n\r\nHTTP/1.1 202 Accepted\r\nx-ms-delete-type-permanent: + true\r\nx-ms-request-id: 14a5bab3-f01e-0050-3b8c-787b081efd1a\r\nx-ms-version: + 2019-02-02\r\nx-ms-client-request-id: e11913ee-e47f-11e9-a493-ecb1d756380e\r\nServer: + Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_1c6a2ff3-9855-400d-9153-79daa767f8bc--"} + headers: + Content-Type: [multipart/mixed; boundary=batchresponse_1c6a2ff3-9855-400d-9153-79daa767f8bc] + Date: ['Tue, 01 Oct 2019 19:15:49 GMT'] + Server: [Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0] + Transfer-Encoding: [chunked] + x-ms-client-request-id: [e11c2258-e47f-11e9-9f62-ecb1d756380e] + x-ms-request-id: [14a5bab3-f01e-0050-3b8c-787b08000000] + x-ms-version: ['2019-02-02'] + status: {code: 202, message: Accepted} +version: 1 diff --git a/sdk/storage/azure-storage-blob/tests/recordings/test_container.test_delete_blobs_snapshot.yaml b/sdk/storage/azure-storage-blob/tests/recordings/test_container.test_delete_blobs_snapshot.yaml new file mode 100644 index 000000000000..29c282cbd945 --- /dev/null +++ b/sdk/storage/azure-storage-blob/tests/recordings/test_container.test_delete_blobs_snapshot.yaml @@ -0,0 +1,284 @@ +interactions: +- request: + body: null + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['0'] + User-Agent: [azsdk-python-storage-blob/12.0.0b3 Python/3.7.0 (Windows-10-10.0.18362-SP0)] + content-type: [application/xml; charset=utf-8] + x-ms-client-request-id: [e1722e86-e47f-11e9-b056-ecb1d756380e] + x-ms-date: ['Tue, 01 Oct 2019 19:15:50 GMT'] + x-ms-version: ['2019-02-02'] + method: PUT + uri: https://blobstoragename.blob.core.windows.net/container617e10e3?restype=container + response: + body: {string: ''} + headers: + Content-Length: ['0'] + Date: ['Tue, 01 Oct 2019 19:15:50 GMT'] + ETag: ['"0x8D746A3C5D36D35"'] + Last-Modified: ['Tue, 01 Oct 2019 19:15:50 GMT'] + Server: [Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0] + x-ms-client-request-id: [e1722e86-e47f-11e9-b056-ecb1d756380e] + x-ms-request-id: [cf935ef4-d01e-0003-5b8c-786707000000] + x-ms-version: ['2019-02-02'] + status: {code: 201, message: Created} +- request: + body: hello world + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['11'] + Content-Type: [application/octet-stream] + If-None-Match: ['*'] + User-Agent: [azsdk-python-storage-blob/12.0.0b3 Python/3.7.0 (Windows-10-10.0.18362-SP0)] + x-ms-blob-type: [BlockBlob] + x-ms-client-request-id: [e1a0b6cc-e47f-11e9-a52d-ecb1d756380e] + x-ms-date: ['Tue, 01 Oct 2019 19:15:50 GMT'] + x-ms-version: ['2019-02-02'] + method: PUT + uri: https://blobstoragename.blob.core.windows.net/container617e10e3/blob1 + response: + body: {string: ''} + headers: + Content-Length: ['0'] + Content-MD5: [XrY7u+Ae7tCTyyK7j1rNww==] + Date: ['Tue, 01 Oct 2019 19:15:50 GMT'] + ETag: ['"0x8D746A3C5E03DF7"'] + Last-Modified: ['Tue, 01 Oct 2019 19:15:50 GMT'] + Server: [Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0] + x-ms-client-request-id: [e1a0b6cc-e47f-11e9-a52d-ecb1d756380e] + x-ms-content-crc64: [vo7q9sPVKY0=] + x-ms-request-id: [cf935f2b-d01e-0003-0d8c-786707000000] + x-ms-request-server-encrypted: ['true'] + x-ms-version: ['2019-02-02'] + status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['0'] + User-Agent: [azsdk-python-storage-blob/12.0.0b3 Python/3.7.0 (Windows-10-10.0.18362-SP0)] + content-type: [application/xml; charset=utf-8] + x-ms-client-request-id: [e1ad8824-e47f-11e9-9e1b-ecb1d756380e] + x-ms-date: ['Tue, 01 Oct 2019 19:15:50 GMT'] + x-ms-version: ['2019-02-02'] + method: PUT + uri: https://blobstoragename.blob.core.windows.net/container617e10e3/blob1?comp=snapshot + response: + body: {string: ''} + headers: + Content-Length: ['0'] + Date: ['Tue, 01 Oct 2019 19:15:50 GMT'] + ETag: ['"0x8D746A3C5E03DF7"'] + Last-Modified: ['Tue, 01 Oct 2019 19:15:50 GMT'] + Server: [Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0] + x-ms-client-request-id: [e1ad8824-e47f-11e9-9e1b-ecb1d756380e] + x-ms-request-id: [cf935f59-d01e-0003-388c-786707000000] + x-ms-request-server-encrypted: ['false'] + x-ms-snapshot: ['2019-10-01T19:15:51.0506185Z'] + x-ms-version: ['2019-02-02'] + status: {code: 201, message: Created} +- request: + body: hello world + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['11'] + Content-Type: [application/octet-stream] + If-None-Match: ['*'] + User-Agent: [azsdk-python-storage-blob/12.0.0b3 Python/3.7.0 (Windows-10-10.0.18362-SP0)] + x-ms-blob-type: [BlockBlob] + x-ms-client-request-id: [e1ba324a-e47f-11e9-a518-ecb1d756380e] + x-ms-date: ['Tue, 01 Oct 2019 19:15:51 GMT'] + x-ms-version: ['2019-02-02'] + method: PUT + uri: https://blobstoragename.blob.core.windows.net/container617e10e3/blob2 + response: + body: {string: ''} + headers: + Content-Length: ['0'] + Content-MD5: [XrY7u+Ae7tCTyyK7j1rNww==] + Date: ['Tue, 01 Oct 2019 19:15:50 GMT'] + ETag: ['"0x8D746A3C5F9E514"'] + Last-Modified: ['Tue, 01 Oct 2019 19:15:51 GMT'] + Server: [Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0] + x-ms-client-request-id: [e1ba324a-e47f-11e9-a518-ecb1d756380e] + x-ms-content-crc64: [vo7q9sPVKY0=] + x-ms-request-id: [cf935f8e-d01e-0003-6a8c-786707000000] + x-ms-request-server-encrypted: ['true'] + x-ms-version: ['2019-02-02'] + status: {code: 201, message: Created} +- request: + body: hello world + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['11'] + Content-Type: [application/octet-stream] + If-None-Match: ['*'] + User-Agent: [azsdk-python-storage-blob/12.0.0b3 Python/3.7.0 (Windows-10-10.0.18362-SP0)] + x-ms-blob-type: [BlockBlob] + x-ms-client-request-id: [e1c814e6-e47f-11e9-a1a2-ecb1d756380e] + x-ms-date: ['Tue, 01 Oct 2019 19:15:51 GMT'] + x-ms-version: ['2019-02-02'] + method: PUT + uri: https://blobstoragename.blob.core.windows.net/container617e10e3/blob3 + response: + body: {string: ''} + headers: + Content-Length: ['0'] + Content-MD5: [XrY7u+Ae7tCTyyK7j1rNww==] + Date: ['Tue, 01 Oct 2019 19:15:50 GMT'] + ETag: ['"0x8D746A3C607F15D"'] + Last-Modified: ['Tue, 01 Oct 2019 19:15:51 GMT'] + Server: [Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0] + x-ms-client-request-id: [e1c814e6-e47f-11e9-a1a2-ecb1d756380e] + x-ms-content-crc64: [vo7q9sPVKY0=] + x-ms-request-id: [cf935fb5-d01e-0003-0e8c-786707000000] + x-ms-request-server-encrypted: ['true'] + x-ms-version: ['2019-02-02'] + status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: [application/xml] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + User-Agent: [azsdk-python-storage-blob/12.0.0b3 Python/3.7.0 (Windows-10-10.0.18362-SP0)] + content-type: [application/xml; charset=utf-8] + x-ms-client-request-id: [e1d386b4-e47f-11e9-972c-ecb1d756380e] + x-ms-date: ['Tue, 01 Oct 2019 19:15:51 GMT'] + x-ms-version: ['2019-02-02'] + method: GET + uri: https://blobstoragename.blob.core.windows.net/container617e10e3?include=snapshots&restype=container&comp=list + response: + body: {string: "\uFEFFblob12019-10-01T19:15:51.0506185ZTue, + 01 Oct 2019 19:15:50 GMTTue, 01 Oct 2019 19:15:50 + GMT0x8D746A3C5E03DF711application/octet-streamXrY7u+Ae7tCTyyK7j1rNww==BlockBlobHottruetrueblob1Tue, + 01 Oct 2019 19:15:50 GMTTue, 01 Oct 2019 19:15:50 + GMT0x8D746A3C5E03DF711application/octet-streamXrY7u+Ae7tCTyyK7j1rNww==BlockBlobHottrueunlockedavailabletrueblob2Tue, + 01 Oct 2019 19:15:51 GMTTue, 01 Oct 2019 19:15:51 + GMT0x8D746A3C5F9E51411application/octet-streamXrY7u+Ae7tCTyyK7j1rNww==BlockBlobHottrueunlockedavailabletrueblob3Tue, + 01 Oct 2019 19:15:51 GMTTue, 01 Oct 2019 19:15:51 + GMT0x8D746A3C607F15D11application/octet-streamXrY7u+Ae7tCTyyK7j1rNww==BlockBlobHottrueunlockedavailabletrue"} + headers: + Content-Type: [application/xml] + Date: ['Tue, 01 Oct 2019 19:15:50 GMT'] + Server: [Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0] + Transfer-Encoding: [chunked] + Vary: [Origin] + x-ms-client-request-id: [e1d386b4-e47f-11e9-972c-ecb1d756380e] + x-ms-request-id: [cf935fdf-d01e-0003-378c-786707000000] + x-ms-version: ['2019-02-02'] + status: {code: 200, message: OK} +- request: + body: "--===============5779720402057910344==\r\nContent-Type: application/http\r\nContent-Transfer-Encoding: + binary\r\nContent-ID: 0\r\n\r\nDELETE /container617e10e3/blob1? HTTP/1.1\r\nx-ms-delete-snapshots: + only\r\nx-ms-date: Tue, 01 Oct 2019 19:15:51 GMT\r\nx-ms-client-request-id: + e1e44f92-e47f-11e9-8503-ecb1d756380e\r\ncontent-type: application/xml; charset=utf-8\r\nAuthorization: + SharedKey blobstoragename:9Lx9Y3hqUPW5VjJQz7bolWNxpE0Tl4MTLMm95nUYyrw=\r\n\r\n\r\n--===============5779720402057910344==\r\nContent-Type: + application/http\r\nContent-Transfer-Encoding: binary\r\nContent-ID: 1\r\n\r\nDELETE + /container617e10e3/blob2? HTTP/1.1\r\nx-ms-delete-snapshots: only\r\nx-ms-date: + Tue, 01 Oct 2019 19:15:51 GMT\r\nx-ms-client-request-id: e1e476a2-e47f-11e9-92ef-ecb1d756380e\r\ncontent-type: + application/xml; charset=utf-8\r\nAuthorization: SharedKey blobstoragename:6bOGy0gl1iD57sShFwAgHaO3ek+TQklirW3aMS6Cq7k=\r\n\r\n\r\n--===============5779720402057910344==\r\nContent-Type: + application/http\r\nContent-Transfer-Encoding: binary\r\nContent-ID: 2\r\n\r\nDELETE + /container617e10e3/blob3? HTTP/1.1\r\nx-ms-delete-snapshots: only\r\nx-ms-date: + Tue, 01 Oct 2019 19:15:51 GMT\r\nx-ms-client-request-id: e1e49da6-e47f-11e9-a8e8-ecb1d756380e\r\ncontent-type: + application/xml; charset=utf-8\r\nAuthorization: SharedKey blobstoragename:gUtl1LUl5hOwpj9layAq7GgLXbuHMNy/zfwWa1v5d08=\r\n\r\n\r\n--===============5779720402057910344==--\r\n" + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['1332'] + Content-Type: [multipart/mixed; boundary================5779720402057910344==] + User-Agent: [azsdk-python-storage-blob/12.0.0b3 Python/3.7.0 (Windows-10-10.0.18362-SP0)] + x-ms-client-request-id: [e1e512ca-e47f-11e9-b414-ecb1d756380e] + x-ms-date: ['Tue, 01 Oct 2019 19:15:51 GMT'] + x-ms-version: ['2019-02-02'] + method: POST + uri: https://blobstoragename.blob.core.windows.net/?comp=batch + response: + body: {string: "--batchresponse_cd927d5a-216c-4d18-855e-e0f0a0f21629\r\nContent-Type: + application/http\r\nContent-ID: 0\r\n\r\nHTTP/1.1 202 Accepted\r\nx-ms-delete-type-permanent: + true\r\nx-ms-request-id: cf93600a-d01e-0003-5e8c-7867071ed7a5\r\nx-ms-version: + 2019-02-02\r\nx-ms-client-request-id: e1e44f92-e47f-11e9-8503-ecb1d756380e\r\nServer: + Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_cd927d5a-216c-4d18-855e-e0f0a0f21629\r\nContent-Type: + application/http\r\nContent-ID: 1\r\n\r\nHTTP/1.1 404 The specified blob does + not exist.\r\nx-ms-error-code: BlobNotFound\r\nx-ms-request-id: cf93600a-d01e-0003-5e8c-7867071ed7a7\r\nx-ms-version: + 2019-02-02\r\nx-ms-client-request-id: e1e476a2-e47f-11e9-92ef-ecb1d756380e\r\nContent-Length: + 216\r\nContent-Type: application/xml\r\nServer: Windows-Azure-Blob/1.0\r\n\r\n\uFEFF\nBlobNotFoundThe + specified blob does not exist.\nRequestId:cf93600a-d01e-0003-5e8c-7867071ed7a7\nTime:2019-10-01T19:15:51.4149483Z\r\n--batchresponse_cd927d5a-216c-4d18-855e-e0f0a0f21629\r\nContent-Type: + application/http\r\nContent-ID: 2\r\n\r\nHTTP/1.1 404 The specified blob does + not exist.\r\nx-ms-error-code: BlobNotFound\r\nx-ms-request-id: cf93600a-d01e-0003-5e8c-7867071ed7a8\r\nx-ms-version: + 2019-02-02\r\nx-ms-client-request-id: e1e49da6-e47f-11e9-a8e8-ecb1d756380e\r\nContent-Length: + 216\r\nContent-Type: application/xml\r\nServer: Windows-Azure-Blob/1.0\r\n\r\n\uFEFF\nBlobNotFoundThe + specified blob does not exist.\nRequestId:cf93600a-d01e-0003-5e8c-7867071ed7a8\nTime:2019-10-01T19:15:51.4149483Z\r\n--batchresponse_cd927d5a-216c-4d18-855e-e0f0a0f21629--"} + headers: + Content-Type: [multipart/mixed; boundary=batchresponse_cd927d5a-216c-4d18-855e-e0f0a0f21629] + Date: ['Tue, 01 Oct 2019 19:15:50 GMT'] + Server: [Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0] + Transfer-Encoding: [chunked] + x-ms-client-request-id: [e1e512ca-e47f-11e9-b414-ecb1d756380e] + x-ms-request-id: [cf93600a-d01e-0003-5e8c-786707000000] + x-ms-version: ['2019-02-02'] + status: {code: 202, message: Accepted} +- request: + body: null + headers: + Accept: [application/xml] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + User-Agent: [azsdk-python-storage-blob/12.0.0b3 Python/3.7.0 (Windows-10-10.0.18362-SP0)] + content-type: [application/xml; charset=utf-8] + x-ms-client-request-id: [e1f16efe-e47f-11e9-b9af-ecb1d756380e] + x-ms-date: ['Tue, 01 Oct 2019 19:15:51 GMT'] + x-ms-version: ['2019-02-02'] + method: GET + uri: https://blobstoragename.blob.core.windows.net/container617e10e3?include=snapshots&restype=container&comp=list + response: + body: {string: "\uFEFFblob1Tue, + 01 Oct 2019 19:15:50 GMTTue, 01 Oct 2019 19:15:50 + GMT0x8D746A3C5E03DF711application/octet-streamXrY7u+Ae7tCTyyK7j1rNww==BlockBlobHottrueunlockedavailabletrueblob2Tue, + 01 Oct 2019 19:15:51 GMTTue, 01 Oct 2019 19:15:51 + GMT0x8D746A3C5F9E51411application/octet-streamXrY7u+Ae7tCTyyK7j1rNww==BlockBlobHottrueunlockedavailabletrueblob3Tue, + 01 Oct 2019 19:15:51 GMTTue, 01 Oct 2019 19:15:51 + GMT0x8D746A3C607F15D11application/octet-streamXrY7u+Ae7tCTyyK7j1rNww==BlockBlobHottrueunlockedavailabletrue"} + headers: + Content-Type: [application/xml] + Date: ['Tue, 01 Oct 2019 19:15:50 GMT'] + Server: [Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0] + Transfer-Encoding: [chunked] + Vary: [Origin] + x-ms-client-request-id: [e1f16efe-e47f-11e9-b9af-ecb1d756380e] + x-ms-request-id: [cf93602b-d01e-0003-7e8c-786707000000] + x-ms-version: ['2019-02-02'] + status: {code: 200, message: OK} +version: 1 diff --git a/sdk/storage/azure-storage-blob/tests/recordings/test_container_async.test_delete_blobs_simple.yaml b/sdk/storage/azure-storage-blob/tests/recordings/test_container_async.test_delete_blobs_simple.yaml new file mode 100644 index 000000000000..fe521578e112 --- /dev/null +++ b/sdk/storage/azure-storage-blob/tests/recordings/test_container_async.test_delete_blobs_simple.yaml @@ -0,0 +1,200 @@ +interactions: +- request: + body: null + headers: + User-Agent: [azsdk-python-storage-blob/12.0.0b3 Python/3.7.0 (Windows-10-10.0.18362-SP0)] + content-type: [application/xml; charset=utf-8] + x-ms-client-request-id: [e22c060a-e47f-11e9-a3e9-ecb1d756380e] + x-ms-date: ['Tue, 01 Oct 2019 19:15:51 GMT'] + x-ms-version: ['2019-02-02'] + method: PUT + uri: https://blobstoragename.blob.core.windows.net/containeraa4e127a?restype=container + response: + body: {string: ''} + headers: + ? !!python/object/new:multidict._istr.istr [Content-Length] + : '0' + ? !!python/object/new:multidict._istr.istr [Date] + : Tue, 01 Oct 2019 19:15:51 GMT + ? !!python/object/new:multidict._istr.istr [Etag] + : '"0x8D746A3C6789E61"' + ? !!python/object/new:multidict._istr.istr [Last-Modified] + : Tue, 01 Oct 2019 19:15:51 GMT + ? !!python/object/new:multidict._istr.istr [Server] + : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-client-request-id: e22c060a-e47f-11e9-a3e9-ecb1d756380e + x-ms-request-id: c36b750e-e01e-00ee-078c-786e83000000 + x-ms-version: '2019-02-02' + status: {code: 201, message: Created} + url: !!python/object/new:yarl.URL + state: !!python/tuple + - !!python/object/new:urllib.parse.SplitResult [https, amqptest.blob.core.windows.net, + /containeraa4e127a, restype=container, ''] +- request: + body: hello world + headers: + Content-Length: ['11'] + Content-Type: [application/octet-stream] + If-None-Match: ['*'] + User-Agent: [azsdk-python-storage-blob/12.0.0b3 Python/3.7.0 (Windows-10-10.0.18362-SP0)] + x-ms-blob-type: [BlockBlob] + x-ms-client-request-id: [e249278c-e47f-11e9-a528-ecb1d756380e] + x-ms-date: ['Tue, 01 Oct 2019 19:15:51 GMT'] + x-ms-version: ['2019-02-02'] + method: PUT + uri: https://blobstoragename.blob.core.windows.net/containeraa4e127a/blob1 + response: + body: {string: ''} + headers: + ? !!python/object/new:multidict._istr.istr [Content-Length] + : '0' + ? !!python/object/new:multidict._istr.istr [Content-Md5] + : XrY7u+Ae7tCTyyK7j1rNww== + ? !!python/object/new:multidict._istr.istr [Date] + : Tue, 01 Oct 2019 19:15:51 GMT + ? !!python/object/new:multidict._istr.istr [Etag] + : '"0x8D746A3C683793A"' + ? !!python/object/new:multidict._istr.istr [Last-Modified] + : Tue, 01 Oct 2019 19:15:52 GMT + ? !!python/object/new:multidict._istr.istr [Server] + : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-client-request-id: e249278c-e47f-11e9-a528-ecb1d756380e + x-ms-content-crc64: vo7q9sPVKY0= + x-ms-request-id: c36b7543-e01e-00ee-388c-786e83000000 + x-ms-request-server-encrypted: 'true' + x-ms-version: '2019-02-02' + status: {code: 201, message: Created} + url: !!python/object/new:yarl.URL + state: !!python/tuple + - !!python/object/new:urllib.parse.SplitResult [https, amqptest.blob.core.windows.net, + /containeraa4e127a/blob1, '', ''] +- request: + body: hello world + headers: + Content-Length: ['11'] + Content-Type: [application/octet-stream] + If-None-Match: ['*'] + User-Agent: [azsdk-python-storage-blob/12.0.0b3 Python/3.7.0 (Windows-10-10.0.18362-SP0)] + x-ms-blob-type: [BlockBlob] + x-ms-client-request-id: [e250d974-e47f-11e9-bfd3-ecb1d756380e] + x-ms-date: ['Tue, 01 Oct 2019 19:15:52 GMT'] + x-ms-version: ['2019-02-02'] + method: PUT + uri: https://blobstoragename.blob.core.windows.net/containeraa4e127a/blob2 + response: + body: {string: ''} + headers: + ? !!python/object/new:multidict._istr.istr [Content-Length] + : '0' + ? !!python/object/new:multidict._istr.istr [Content-Md5] + : XrY7u+Ae7tCTyyK7j1rNww== + ? !!python/object/new:multidict._istr.istr [Date] + : Tue, 01 Oct 2019 19:15:51 GMT + ? !!python/object/new:multidict._istr.istr [Etag] + : '"0x8D746A3C68AF49F"' + ? !!python/object/new:multidict._istr.istr [Last-Modified] + : Tue, 01 Oct 2019 19:15:52 GMT + ? !!python/object/new:multidict._istr.istr [Server] + : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-client-request-id: e250d974-e47f-11e9-bfd3-ecb1d756380e + x-ms-content-crc64: vo7q9sPVKY0= + x-ms-request-id: c36b7577-e01e-00ee-6a8c-786e83000000 + x-ms-request-server-encrypted: 'true' + x-ms-version: '2019-02-02' + status: {code: 201, message: Created} + url: !!python/object/new:yarl.URL + state: !!python/tuple + - !!python/object/new:urllib.parse.SplitResult [https, amqptest.blob.core.windows.net, + /containeraa4e127a/blob2, '', ''] +- request: + body: hello world + headers: + Content-Length: ['11'] + Content-Type: [application/octet-stream] + If-None-Match: ['*'] + User-Agent: [azsdk-python-storage-blob/12.0.0b3 Python/3.7.0 (Windows-10-10.0.18362-SP0)] + x-ms-blob-type: [BlockBlob] + x-ms-client-request-id: [e25854de-e47f-11e9-99d3-ecb1d756380e] + x-ms-date: ['Tue, 01 Oct 2019 19:15:52 GMT'] + x-ms-version: ['2019-02-02'] + method: PUT + uri: https://blobstoragename.blob.core.windows.net/containeraa4e127a/blob3 + response: + body: {string: ''} + headers: + ? !!python/object/new:multidict._istr.istr [Content-Length] + : '0' + ? !!python/object/new:multidict._istr.istr [Content-Md5] + : XrY7u+Ae7tCTyyK7j1rNww== + ? !!python/object/new:multidict._istr.istr [Date] + : Tue, 01 Oct 2019 19:15:51 GMT + ? !!python/object/new:multidict._istr.istr [Etag] + : '"0x8D746A3C6927009"' + ? !!python/object/new:multidict._istr.istr [Last-Modified] + : Tue, 01 Oct 2019 19:15:52 GMT + ? !!python/object/new:multidict._istr.istr [Server] + : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-client-request-id: e25854de-e47f-11e9-99d3-ecb1d756380e + x-ms-content-crc64: vo7q9sPVKY0= + x-ms-request-id: c36b75a4-e01e-00ee-148c-786e83000000 + x-ms-request-server-encrypted: 'true' + x-ms-version: '2019-02-02' + status: {code: 201, message: Created} + url: !!python/object/new:yarl.URL + state: !!python/tuple + - !!python/object/new:urllib.parse.SplitResult [https, amqptest.blob.core.windows.net, + /containeraa4e127a/blob3, '', ''] +- request: + body: "--===============4338717865813308986==\r\nContent-Type: application/http\r\nContent-Transfer-Encoding: + binary\r\nContent-ID: 0\r\n\r\nDELETE /containeraa4e127a/blob1? HTTP/1.1\r\nx-ms-date: + Tue, 01 Oct 2019 19:15:52 GMT\r\nx-ms-client-request-id: e25e255c-e47f-11e9-9b22-ecb1d756380e\r\ncontent-type: + application/xml; charset=utf-8\r\nAuthorization: SharedKey blobstoragename:cz7HxeQca7rCQr4UGmyVb6Sk7etfsf+g/5G4N0qBEG8=\r\n\r\n\r\n--===============4338717865813308986==\r\nContent-Type: + application/http\r\nContent-Transfer-Encoding: binary\r\nContent-ID: 1\r\n\r\nDELETE + /containeraa4e127a/blob2? HTTP/1.1\r\nx-ms-date: Tue, 01 Oct 2019 19:15:52 GMT\r\nx-ms-client-request-id: + e25e4c6c-e47f-11e9-b016-ecb1d756380e\r\ncontent-type: application/xml; charset=utf-8\r\nAuthorization: + SharedKey blobstoragename:xjN0K+e1FUSJ5yKqM4kQoCF23kNPdo62yK/IVqGzirI=\r\n\r\n\r\n--===============4338717865813308986==\r\nContent-Type: + application/http\r\nContent-Transfer-Encoding: binary\r\nContent-ID: 2\r\n\r\nDELETE + /containeraa4e127a/blob3? HTTP/1.1\r\nx-ms-date: Tue, 01 Oct 2019 19:15:52 GMT\r\nx-ms-client-request-id: + e25e9ab0-e47f-11e9-aa25-ecb1d756380e\r\ncontent-type: application/xml; charset=utf-8\r\nAuthorization: + SharedKey blobstoragename:LE44bIZNxnHVSXSYciRvZFXLfmKpBNFJ1J5mu1xjJU4=\r\n\r\n\r\n--===============4338717865813308986==--\r\n" + headers: + Content-Length: ['1245'] + Content-Type: [multipart/mixed; boundary================4338717865813308986==] + User-Agent: [azsdk-python-storage-blob/12.0.0b3 Python/3.7.0 (Windows-10-10.0.18362-SP0)] + x-ms-client-request-id: [e25f84c8-e47f-11e9-864d-ecb1d756380e] + x-ms-date: ['Tue, 01 Oct 2019 19:15:52 GMT'] + x-ms-version: ['2019-02-02'] + method: POST + uri: https://blobstoragename.blob.core.windows.net/?comp=batch + response: + body: {string: "--batchresponse_63429a4f-edfb-4ce7-8fa4-642a5ac93dc4\r\nContent-Type: + application/http\r\nContent-ID: 0\r\n\r\nHTTP/1.1 202 Accepted\r\nx-ms-delete-type-permanent: + true\r\nx-ms-request-id: c36b75c9-e01e-00ee-398c-786e831eb769\r\nx-ms-version: + 2019-02-02\r\nx-ms-client-request-id: e25e255c-e47f-11e9-9b22-ecb1d756380e\r\nServer: + Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_63429a4f-edfb-4ce7-8fa4-642a5ac93dc4\r\nContent-Type: + application/http\r\nContent-ID: 1\r\n\r\nHTTP/1.1 202 Accepted\r\nx-ms-delete-type-permanent: + true\r\nx-ms-request-id: c36b75c9-e01e-00ee-398c-786e831eb76b\r\nx-ms-version: + 2019-02-02\r\nx-ms-client-request-id: e25e4c6c-e47f-11e9-b016-ecb1d756380e\r\nServer: + Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_63429a4f-edfb-4ce7-8fa4-642a5ac93dc4\r\nContent-Type: + application/http\r\nContent-ID: 2\r\n\r\nHTTP/1.1 202 Accepted\r\nx-ms-delete-type-permanent: + true\r\nx-ms-request-id: c36b75c9-e01e-00ee-398c-786e831eb76c\r\nx-ms-version: + 2019-02-02\r\nx-ms-client-request-id: e25e9ab0-e47f-11e9-aa25-ecb1d756380e\r\nServer: + Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_63429a4f-edfb-4ce7-8fa4-642a5ac93dc4--"} + headers: + ? !!python/object/new:multidict._istr.istr [Content-Type] + : multipart/mixed; boundary=batchresponse_63429a4f-edfb-4ce7-8fa4-642a5ac93dc4 + ? !!python/object/new:multidict._istr.istr [Date] + : Tue, 01 Oct 2019 19:15:52 GMT + ? !!python/object/new:multidict._istr.istr [Server] + : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + ? !!python/object/new:multidict._istr.istr [Transfer-Encoding] + : chunked + x-ms-client-request-id: e25f84c8-e47f-11e9-864d-ecb1d756380e + x-ms-request-id: c36b75c9-e01e-00ee-398c-786e83000000 + x-ms-version: '2019-02-02' + status: {code: 202, message: Accepted} + url: !!python/object/new:yarl.URL + state: !!python/tuple + - !!python/object/new:urllib.parse.SplitResult [https, amqptest.blob.core.windows.net, + /, comp=batch, ''] +version: 1 diff --git a/sdk/storage/azure-storage-blob/tests/recordings/test_container_async.test_delete_blobs_snapshot.yaml b/sdk/storage/azure-storage-blob/tests/recordings/test_container_async.test_delete_blobs_snapshot.yaml new file mode 100644 index 000000000000..9e656fe19022 --- /dev/null +++ b/sdk/storage/azure-storage-blob/tests/recordings/test_container_async.test_delete_blobs_snapshot.yaml @@ -0,0 +1,334 @@ +interactions: +- request: + body: null + headers: + User-Agent: [azsdk-python-storage-blob/12.0.0b3 Python/3.7.0 (Windows-10-10.0.18362-SP0)] + content-type: [application/xml; charset=utf-8] + x-ms-client-request-id: [e2abd01a-e47f-11e9-9862-ecb1d756380e] + x-ms-date: ['Tue, 01 Oct 2019 19:15:52 GMT'] + x-ms-version: ['2019-02-02'] + method: PUT + uri: https://blobstoragename.blob.core.windows.net/containerd0941360?restype=container + response: + body: {string: ''} + headers: + ? !!python/object/new:multidict._istr.istr [Content-Length] + : '0' + ? !!python/object/new:multidict._istr.istr [Date] + : Tue, 01 Oct 2019 19:15:52 GMT + ? !!python/object/new:multidict._istr.istr [Etag] + : '"0x8D746A3C6F5DFF8"' + ? !!python/object/new:multidict._istr.istr [Last-Modified] + : Tue, 01 Oct 2019 19:15:52 GMT + ? !!python/object/new:multidict._istr.istr [Server] + : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-client-request-id: e2abd01a-e47f-11e9-9862-ecb1d756380e + x-ms-request-id: 65821f8d-b01e-00d4-548c-782d20000000 + x-ms-version: '2019-02-02' + status: {code: 201, message: Created} + url: !!python/object/new:yarl.URL + state: !!python/tuple + - !!python/object/new:urllib.parse.SplitResult [https, amqptest.blob.core.windows.net, + /containerd0941360, restype=container, ''] +- request: + body: hello world + headers: + Content-Length: ['11'] + Content-Type: [application/octet-stream] + If-None-Match: ['*'] + User-Agent: [azsdk-python-storage-blob/12.0.0b3 Python/3.7.0 (Windows-10-10.0.18362-SP0)] + x-ms-blob-type: [BlockBlob] + x-ms-client-request-id: [e2c38b86-e47f-11e9-b9f2-ecb1d756380e] + x-ms-date: ['Tue, 01 Oct 2019 19:15:52 GMT'] + x-ms-version: ['2019-02-02'] + method: PUT + uri: https://blobstoragename.blob.core.windows.net/containerd0941360/blob1 + response: + body: {string: ''} + headers: + ? !!python/object/new:multidict._istr.istr [Content-Length] + : '0' + ? !!python/object/new:multidict._istr.istr [Content-Md5] + : XrY7u+Ae7tCTyyK7j1rNww== + ? !!python/object/new:multidict._istr.istr [Date] + : Tue, 01 Oct 2019 19:15:52 GMT + ? !!python/object/new:multidict._istr.istr [Etag] + : '"0x8D746A3C6FDEF75"' + ? !!python/object/new:multidict._istr.istr [Last-Modified] + : Tue, 01 Oct 2019 19:15:52 GMT + ? !!python/object/new:multidict._istr.istr [Server] + : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-client-request-id: e2c38b86-e47f-11e9-b9f2-ecb1d756380e + x-ms-content-crc64: vo7q9sPVKY0= + x-ms-request-id: 65821f99-b01e-00d4-5e8c-782d20000000 + x-ms-request-server-encrypted: 'true' + x-ms-version: '2019-02-02' + status: {code: 201, message: Created} + url: !!python/object/new:yarl.URL + state: !!python/tuple + - !!python/object/new:urllib.parse.SplitResult [https, amqptest.blob.core.windows.net, + /containerd0941360/blob1, '', ''] +- request: + body: null + headers: + User-Agent: [azsdk-python-storage-blob/12.0.0b3 Python/3.7.0 (Windows-10-10.0.18362-SP0)] + content-type: [application/xml; charset=utf-8] + x-ms-client-request-id: [e2ca0e9e-e47f-11e9-8b17-ecb1d756380e] + x-ms-date: ['Tue, 01 Oct 2019 19:15:52 GMT'] + x-ms-version: ['2019-02-02'] + method: PUT + uri: https://blobstoragename.blob.core.windows.net/containerd0941360/blob1?comp=snapshot + response: + body: {string: ''} + headers: + ? !!python/object/new:multidict._istr.istr [Content-Length] + : '0' + ? !!python/object/new:multidict._istr.istr [Date] + : Tue, 01 Oct 2019 19:15:52 GMT + ? !!python/object/new:multidict._istr.istr [Etag] + : '"0x8D746A3C6FDEF75"' + ? !!python/object/new:multidict._istr.istr [Last-Modified] + : Tue, 01 Oct 2019 19:15:52 GMT + ? !!python/object/new:multidict._istr.istr [Server] + : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-client-request-id: e2ca0e9e-e47f-11e9-8b17-ecb1d756380e + x-ms-request-id: 65821fa7-b01e-00d4-6c8c-782d20000000 + x-ms-request-server-encrypted: 'false' + x-ms-snapshot: '2019-10-01T19:15:52.8769067Z' + x-ms-version: '2019-02-02' + status: {code: 201, message: Created} + url: !!python/object/new:yarl.URL + state: !!python/tuple + - !!python/object/new:urllib.parse.SplitResult [https, amqptest.blob.core.windows.net, + /containerd0941360/blob1, comp=snapshot, ''] +- request: + body: hello world + headers: + Content-Length: ['11'] + Content-Type: [application/octet-stream] + If-None-Match: ['*'] + User-Agent: [azsdk-python-storage-blob/12.0.0b3 Python/3.7.0 (Windows-10-10.0.18362-SP0)] + x-ms-blob-type: [BlockBlob] + x-ms-client-request-id: [e2d14de4-e47f-11e9-8bb8-ecb1d756380e] + x-ms-date: ['Tue, 01 Oct 2019 19:15:52 GMT'] + x-ms-version: ['2019-02-02'] + method: PUT + uri: https://blobstoragename.blob.core.windows.net/containerd0941360/blob2 + response: + body: {string: ''} + headers: + ? !!python/object/new:multidict._istr.istr [Content-Length] + : '0' + ? !!python/object/new:multidict._istr.istr [Content-Md5] + : XrY7u+Ae7tCTyyK7j1rNww== + ? !!python/object/new:multidict._istr.istr [Date] + : Tue, 01 Oct 2019 19:15:52 GMT + ? !!python/object/new:multidict._istr.istr [Etag] + : '"0x8D746A3C70B8675"' + ? !!python/object/new:multidict._istr.istr [Last-Modified] + : Tue, 01 Oct 2019 19:15:52 GMT + ? !!python/object/new:multidict._istr.istr [Server] + : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-client-request-id: e2d14de4-e47f-11e9-8bb8-ecb1d756380e + x-ms-content-crc64: vo7q9sPVKY0= + x-ms-request-id: 65821fb5-b01e-00d4-7a8c-782d20000000 + x-ms-request-server-encrypted: 'true' + x-ms-version: '2019-02-02' + status: {code: 201, message: Created} + url: !!python/object/new:yarl.URL + state: !!python/tuple + - !!python/object/new:urllib.parse.SplitResult [https, amqptest.blob.core.windows.net, + /containerd0941360/blob2, '', ''] +- request: + body: hello world + headers: + Content-Length: ['11'] + Content-Type: [application/octet-stream] + If-None-Match: ['*'] + User-Agent: [azsdk-python-storage-blob/12.0.0b3 Python/3.7.0 (Windows-10-10.0.18362-SP0)] + x-ms-blob-type: [BlockBlob] + x-ms-client-request-id: [e2d8a0a4-e47f-11e9-9788-ecb1d756380e] + x-ms-date: ['Tue, 01 Oct 2019 19:15:52 GMT'] + x-ms-version: ['2019-02-02'] + method: PUT + uri: https://blobstoragename.blob.core.windows.net/containerd0941360/blob3 + response: + body: {string: ''} + headers: + ? !!python/object/new:multidict._istr.istr [Content-Length] + : '0' + ? !!python/object/new:multidict._istr.istr [Content-Md5] + : XrY7u+Ae7tCTyyK7j1rNww== + ? !!python/object/new:multidict._istr.istr [Date] + : Tue, 01 Oct 2019 19:15:52 GMT + ? !!python/object/new:multidict._istr.istr [Etag] + : '"0x8D746A3C712DACC"' + ? !!python/object/new:multidict._istr.istr [Last-Modified] + : Tue, 01 Oct 2019 19:15:52 GMT + ? !!python/object/new:multidict._istr.istr [Server] + : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-client-request-id: e2d8a0a4-e47f-11e9-9788-ecb1d756380e + x-ms-content-crc64: vo7q9sPVKY0= + x-ms-request-id: 65821fc5-b01e-00d4-0a8c-782d20000000 + x-ms-request-server-encrypted: 'true' + x-ms-version: '2019-02-02' + status: {code: 201, message: Created} + url: !!python/object/new:yarl.URL + state: !!python/tuple + - !!python/object/new:urllib.parse.SplitResult [https, amqptest.blob.core.windows.net, + /containerd0941360/blob3, '', ''] +- request: + body: null + headers: + Accept: [application/xml] + User-Agent: [azsdk-python-storage-blob/12.0.0b3 Python/3.7.0 (Windows-10-10.0.18362-SP0)] + content-type: [application/xml; charset=utf-8] + x-ms-client-request-id: [e2de6d0c-e47f-11e9-b86e-ecb1d756380e] + x-ms-date: ['Tue, 01 Oct 2019 19:15:52 GMT'] + x-ms-version: ['2019-02-02'] + method: GET + uri: https://blobstoragename.blob.core.windows.net/containerd0941360?include=snapshots&restype=container&comp=list + response: + body: {string: "\uFEFFblob12019-10-01T19:15:52.8769067ZTue, + 01 Oct 2019 19:15:52 GMTTue, 01 Oct 2019 19:15:52 + GMT0x8D746A3C6FDEF7511application/octet-streamXrY7u+Ae7tCTyyK7j1rNww==BlockBlobHottruetrueblob1Tue, + 01 Oct 2019 19:15:52 GMTTue, 01 Oct 2019 19:15:52 + GMT0x8D746A3C6FDEF7511application/octet-streamXrY7u+Ae7tCTyyK7j1rNww==BlockBlobHottrueunlockedavailabletrueblob2Tue, + 01 Oct 2019 19:15:52 GMTTue, 01 Oct 2019 19:15:52 + GMT0x8D746A3C70B867511application/octet-streamXrY7u+Ae7tCTyyK7j1rNww==BlockBlobHottrueunlockedavailabletrueblob3Tue, + 01 Oct 2019 19:15:52 GMTTue, 01 Oct 2019 19:15:52 + GMT0x8D746A3C712DACC11application/octet-streamXrY7u+Ae7tCTyyK7j1rNww==BlockBlobHottrueunlockedavailabletrue"} + headers: + ? !!python/object/new:multidict._istr.istr [Content-Type] + : application/xml + ? !!python/object/new:multidict._istr.istr [Date] + : Tue, 01 Oct 2019 19:15:52 GMT + ? !!python/object/new:multidict._istr.istr [Server] + : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + ? !!python/object/new:multidict._istr.istr [Transfer-Encoding] + : chunked + ? !!python/object/new:multidict._istr.istr [Vary] + : Origin + x-ms-client-request-id: e2de6d0c-e47f-11e9-b86e-ecb1d756380e + x-ms-request-id: 65821fce-b01e-00d4-138c-782d20000000 + x-ms-version: '2019-02-02' + status: {code: 200, message: OK} + url: !!python/object/new:yarl.URL + state: !!python/tuple + - !!python/object/new:urllib.parse.SplitResult [https, amqptest.blob.core.windows.net, + /containerd0941360, include=snapshots&restype=container&comp=list, ''] +- request: + body: "--===============5205559421113998234==\r\nContent-Type: application/http\r\nContent-Transfer-Encoding: + binary\r\nContent-ID: 0\r\n\r\nDELETE /containerd0941360/blob1? HTTP/1.1\r\nx-ms-delete-snapshots: + only\r\nx-ms-date: Tue, 01 Oct 2019 19:15:53 GMT\r\nx-ms-client-request-id: + e2e8fd1a-e47f-11e9-bfdf-ecb1d756380e\r\ncontent-type: application/xml; charset=utf-8\r\nAuthorization: + SharedKey blobstoragename:S+8BgLJf52HwiMkHh2qnWXH9b77FOivsZtl0XlnjHsM=\r\n\r\n\r\n--===============5205559421113998234==\r\nContent-Type: + application/http\r\nContent-Transfer-Encoding: binary\r\nContent-ID: 1\r\n\r\nDELETE + /containerd0941360/blob2? HTTP/1.1\r\nx-ms-delete-snapshots: only\r\nx-ms-date: + Tue, 01 Oct 2019 19:15:53 GMT\r\nx-ms-client-request-id: e2e92570-e47f-11e9-a5bb-ecb1d756380e\r\ncontent-type: + application/xml; charset=utf-8\r\nAuthorization: SharedKey blobstoragename:t0TjuoPt1st1H15u4jQGhqTfy64dEnKPWAMK3zSZro8=\r\n\r\n\r\n--===============5205559421113998234==\r\nContent-Type: + application/http\r\nContent-Transfer-Encoding: binary\r\nContent-ID: 2\r\n\r\nDELETE + /containerd0941360/blob3? HTTP/1.1\r\nx-ms-delete-snapshots: only\r\nx-ms-date: + Tue, 01 Oct 2019 19:15:53 GMT\r\nx-ms-client-request-id: e2e94b70-e47f-11e9-8a5f-ecb1d756380e\r\ncontent-type: + application/xml; charset=utf-8\r\nAuthorization: SharedKey blobstoragename:XqIZ5POvKJzcBcIFeOX5LWkRsPamE83mlSNjTqZi2ZU=\r\n\r\n\r\n--===============5205559421113998234==--\r\n" + headers: + Content-Length: ['1332'] + Content-Type: [multipart/mixed; boundary================5205559421113998234==] + User-Agent: [azsdk-python-storage-blob/12.0.0b3 Python/3.7.0 (Windows-10-10.0.18362-SP0)] + x-ms-client-request-id: [e2e9c1b8-e47f-11e9-a744-ecb1d756380e] + x-ms-date: ['Tue, 01 Oct 2019 19:15:53 GMT'] + x-ms-version: ['2019-02-02'] + method: POST + uri: https://blobstoragename.blob.core.windows.net/?comp=batch + response: + body: {string: "--batchresponse_8f16aadd-db74-4ca1-b6ae-089abbeebf63\r\nContent-Type: + application/http\r\nContent-ID: 0\r\n\r\nHTTP/1.1 202 Accepted\r\nx-ms-delete-type-permanent: + true\r\nx-ms-request-id: 65821fe6-b01e-00d4-298c-782d201e469e\r\nx-ms-version: + 2019-02-02\r\nx-ms-client-request-id: e2e8fd1a-e47f-11e9-bfdf-ecb1d756380e\r\nServer: + Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_8f16aadd-db74-4ca1-b6ae-089abbeebf63\r\nContent-Type: + application/http\r\nContent-ID: 1\r\n\r\nHTTP/1.1 404 The specified blob does + not exist.\r\nx-ms-error-code: BlobNotFound\r\nx-ms-request-id: 65821fe6-b01e-00d4-298c-782d201e46a1\r\nx-ms-version: + 2019-02-02\r\nx-ms-client-request-id: e2e92570-e47f-11e9-a5bb-ecb1d756380e\r\nContent-Length: + 216\r\nContent-Type: application/xml\r\nServer: Windows-Azure-Blob/1.0\r\n\r\n\uFEFF\nBlobNotFoundThe + specified blob does not exist.\nRequestId:65821fe6-b01e-00d4-298c-782d201e46a1\nTime:2019-10-01T19:15:53.4124958Z\r\n--batchresponse_8f16aadd-db74-4ca1-b6ae-089abbeebf63\r\nContent-Type: + application/http\r\nContent-ID: 2\r\n\r\nHTTP/1.1 404 The specified blob does + not exist.\r\nx-ms-error-code: BlobNotFound\r\nx-ms-request-id: 65821fe6-b01e-00d4-298c-782d201e46a2\r\nx-ms-version: + 2019-02-02\r\nx-ms-client-request-id: e2e94b70-e47f-11e9-8a5f-ecb1d756380e\r\nContent-Length: + 216\r\nContent-Type: application/xml\r\nServer: Windows-Azure-Blob/1.0\r\n\r\n\uFEFF\nBlobNotFoundThe + specified blob does not exist.\nRequestId:65821fe6-b01e-00d4-298c-782d201e46a2\nTime:2019-10-01T19:15:53.4124958Z\r\n--batchresponse_8f16aadd-db74-4ca1-b6ae-089abbeebf63--"} + headers: + ? !!python/object/new:multidict._istr.istr [Content-Type] + : multipart/mixed; boundary=batchresponse_8f16aadd-db74-4ca1-b6ae-089abbeebf63 + ? !!python/object/new:multidict._istr.istr [Date] + : Tue, 01 Oct 2019 19:15:53 GMT + ? !!python/object/new:multidict._istr.istr [Server] + : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + ? !!python/object/new:multidict._istr.istr [Transfer-Encoding] + : chunked + x-ms-client-request-id: e2e9c1b8-e47f-11e9-a744-ecb1d756380e + x-ms-request-id: 65821fe6-b01e-00d4-298c-782d20000000 + x-ms-version: '2019-02-02' + status: {code: 202, message: Accepted} + url: !!python/object/new:yarl.URL + state: !!python/tuple + - !!python/object/new:urllib.parse.SplitResult [https, amqptest.blob.core.windows.net, + /, comp=batch, ''] +- request: + body: null + headers: + Accept: [application/xml] + User-Agent: [azsdk-python-storage-blob/12.0.0b3 Python/3.7.0 (Windows-10-10.0.18362-SP0)] + content-type: [application/xml; charset=utf-8] + x-ms-client-request-id: [e33739cc-e47f-11e9-a6df-ecb1d756380e] + x-ms-date: ['Tue, 01 Oct 2019 19:15:53 GMT'] + x-ms-version: ['2019-02-02'] + method: GET + uri: https://blobstoragename.blob.core.windows.net/containerd0941360?include=snapshots&restype=container&comp=list + response: + body: {string: "\uFEFFblob1Tue, + 01 Oct 2019 19:15:52 GMTTue, 01 Oct 2019 19:15:52 + GMT0x8D746A3C6FDEF7511application/octet-streamXrY7u+Ae7tCTyyK7j1rNww==BlockBlobHottrueunlockedavailabletrueblob2Tue, + 01 Oct 2019 19:15:52 GMTTue, 01 Oct 2019 19:15:52 + GMT0x8D746A3C70B867511application/octet-streamXrY7u+Ae7tCTyyK7j1rNww==BlockBlobHottrueunlockedavailabletrueblob3Tue, + 01 Oct 2019 19:15:52 GMTTue, 01 Oct 2019 19:15:52 + GMT0x8D746A3C712DACC11application/octet-streamXrY7u+Ae7tCTyyK7j1rNww==BlockBlobHottrueunlockedavailabletrue"} + headers: + ? !!python/object/new:multidict._istr.istr [Content-Type] + : application/xml + ? !!python/object/new:multidict._istr.istr [Date] + : Tue, 01 Oct 2019 19:15:53 GMT + ? !!python/object/new:multidict._istr.istr [Server] + : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + ? !!python/object/new:multidict._istr.istr [Transfer-Encoding] + : chunked + ? !!python/object/new:multidict._istr.istr [Vary] + : Origin + x-ms-client-request-id: e33739cc-e47f-11e9-a6df-ecb1d756380e + x-ms-request-id: 6582208a-b01e-00d4-3e8c-782d20000000 + x-ms-version: '2019-02-02' + status: {code: 200, message: OK} + url: !!python/object/new:yarl.URL + state: !!python/tuple + - !!python/object/new:urllib.parse.SplitResult [https, amqptest.blob.core.windows.net, + /containerd0941360, include=snapshots&restype=container&comp=list, ''] +version: 1 diff --git a/sdk/storage/azure-storage-blob/tests/test_container.py b/sdk/storage/azure-storage-blob/tests/test_container.py index 6308d25c70b8..58aea663dd0e 100644 --- a/sdk/storage/azure-storage-blob/tests/test_container.py +++ b/sdk/storage/azure-storage-blob/tests/test_container.py @@ -985,6 +985,38 @@ def test_delete_blobs_simple(self): assert response[1].status_code == 202 assert response[2].status_code == 202 + @record + def test_delete_blobs_snapshot(self): + # Arrange + container = self._create_container() + data = b'hello world' + + try: + blob1_client = container.get_blob_client('blob1') + blob1_client.upload_blob(data) + blob1_client.create_snapshot() + container.get_blob_client('blob2').upload_blob(data) + container.get_blob_client('blob3').upload_blob(data) + except: + pass + blobs = list(container.list_blobs(include='snapshots')) + assert len(blobs) == 4 # 3 blobs + 1 snapshot + + # Act + response = container.delete_blobs( + 'blob1', + 'blob2', + 'blob3', + delete_snapshots='only' + ) + assert len(response) == 3 + assert response[0].status_code == 202 + assert response[1].status_code == 404 # There was no snapshot + assert response[2].status_code == 404 # There was no snapshot + + blobs = list(container.list_blobs(include='snapshots')) + assert len(blobs) == 3 # 3 blobs + @record def test_walk_blobs_with_delimiter(self): # Arrange diff --git a/sdk/storage/azure-storage-blob/tests/test_container_async.py b/sdk/storage/azure-storage-blob/tests/test_container_async.py index 3c08635c629f..17ca226eaee5 100644 --- a/sdk/storage/azure-storage-blob/tests/test_container_async.py +++ b/sdk/storage/azure-storage-blob/tests/test_container_async.py @@ -38,6 +38,13 @@ TEST_CONTAINER_PREFIX = 'container' #------------------------------------------------------------------------------ +async def _to_list(async_iterator): + result = [] + async for item in async_iterator: + result.append(item) + return result + + class AiohttpTestTransport(AioHttpTransport): """Workaround to vcrpy bug: https://github.com/kevin1024/vcrpy/pull/461 """ @@ -1210,16 +1217,51 @@ async def _test_delete_blobs_simple(self): pass # Act - response = await container.delete_blobs( + response = await _to_list(await container.delete_blobs( 'blob1', 'blob2', 'blob3', - ) + )) assert len(response) == 3 assert response[0].status_code == 202 assert response[1].status_code == 202 assert response[2].status_code == 202 + @record + def test_delete_blobs_snapshot(self): + loop = asyncio.get_event_loop() + loop.run_until_complete(self._test_delete_blobs_snapshot()) + + async def _test_delete_blobs_snapshot(self): + # Arrange + container = await self._create_container() + data = b'hello world' + + try: + blob1_client = container.get_blob_client('blob1') + await blob1_client.upload_blob(data) + await blob1_client.create_snapshot() + await container.get_blob_client('blob2').upload_blob(data) + await container.get_blob_client('blob3').upload_blob(data) + except: + pass + blobs = await _to_list(container.list_blobs(include='snapshots')) + assert len(blobs) == 4 # 3 blobs + 1 snapshot + + # Act + response = await _to_list(await container.delete_blobs( + 'blob1', + 'blob2', + 'blob3', + delete_snapshots='only' + )) + assert len(response) == 3 + assert response[0].status_code == 202 + assert response[1].status_code == 404 # There was no snapshot + assert response[2].status_code == 404 # There was no snapshot + + blobs = await _to_list(container.list_blobs(include='snapshots')) + assert len(blobs) == 3 # 3 blobs @record def test_list_blobs_with_delimiter(self): From db21ef8918b6ae8a6e70c6bd888f087e97f5edae Mon Sep 17 00:00:00 2001 From: Laurent Mazuel Date: Tue, 1 Oct 2019 16:10:53 -0700 Subject: [PATCH 11/21] Set standard tier with tests --- .../azure/storage/blob/container_client.py | 3 +- ...standard_blob_tier_set_tier_api_batch.yaml | 863 ++++++++++++++++ ...standard_blob_tier_set_tier_api_batch.yaml | 967 ++++++++++++++++++ .../tests/test_container.py | 102 +- .../tests/test_container_async.py | 107 +- 5 files changed, 2038 insertions(+), 4 deletions(-) create mode 100644 sdk/storage/azure-storage-blob/tests/recordings/test_container.test_standard_blob_tier_set_tier_api_batch.yaml create mode 100644 sdk/storage/azure-storage-blob/tests/recordings/test_container_async.test_standard_blob_tier_set_tier_api_batch.yaml diff --git a/sdk/storage/azure-storage-blob/azure/storage/blob/container_client.py b/sdk/storage/azure-storage-blob/azure/storage/blob/container_client.py index 8a53082828e6..9e52a404e266 100644 --- a/sdk/storage/azure-storage-blob/azure/storage/blob/container_client.py +++ b/sdk/storage/azure-storage-blob/azure/storage/blob/container_client.py @@ -1131,7 +1131,6 @@ def _generate_set_tier_options(self, tier, timeout=None, rehydrate_priority=None header_parameters['x-ms-access-tier'] = self._client._serialize.header("tier", tier, 'str') if rehydrate_priority is not None: header_parameters['x-ms-rehydrate-priority'] = self._client._serialize.header("rehydrate_priority", rehydrate_priority, 'str') - header_parameters['x-ms-version'] = self._client._serialize.header("self._config.version", self._config.version, 'str') if request_id is not None: header_parameters['x-ms-client-request-id'] = self._client._serialize.header("request_id", request_id, 'str') if lease_id is not None: @@ -1183,7 +1182,7 @@ def set_standard_blob_tier_blobs( for blob in blobs: req = HttpRequest( "PUT", - "/{}/{}?comp=tier".format(self.container_name, blob), + "/{}/{}".format(self.container_name, blob), headers=header_parameters ) req.format_parameters(query_parameters) diff --git a/sdk/storage/azure-storage-blob/tests/recordings/test_container.test_standard_blob_tier_set_tier_api_batch.yaml b/sdk/storage/azure-storage-blob/tests/recordings/test_container.test_standard_blob_tier_set_tier_api_batch.yaml new file mode 100644 index 000000000000..603e92f94f74 --- /dev/null +++ b/sdk/storage/azure-storage-blob/tests/recordings/test_container.test_standard_blob_tier_set_tier_api_batch.yaml @@ -0,0 +1,863 @@ +interactions: +- request: + body: null + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['0'] + User-Agent: [azsdk-python-storage-blob/12.0.0b3 Python/3.7.0 (Windows-10-10.0.18362-SP0)] + content-type: [application/xml; charset=utf-8] + x-ms-client-request-id: [9535c98a-e4a0-11e9-86b7-ecb1d756380e] + x-ms-date: ['Tue, 01 Oct 2019 23:09:56 GMT'] + x-ms-version: ['2019-02-02'] + method: PUT + uri: https://blobstoragename.blob.core.windows.net/containera687174a?restype=container + response: + body: {string: ''} + headers: + Content-Length: ['0'] + Date: ['Tue, 01 Oct 2019 23:09:56 GMT'] + ETag: ['"0x8D746C479A3E0CD"'] + Last-Modified: ['Tue, 01 Oct 2019 23:09:56 GMT'] + Server: [Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0] + x-ms-client-request-id: [9535c98a-e4a0-11e9-86b7-ecb1d756380e] + x-ms-request-id: [b956c099-e01e-004f-53ad-78a018000000] + x-ms-version: ['2019-02-02'] + status: {code: 201, message: Created} +- request: + body: "--===============3653868967664715668==\r\nContent-Type: application/http\r\nContent-Transfer-Encoding: + binary\r\nContent-ID: 0\r\n\r\nDELETE /containera687174a/blob1? HTTP/1.1\r\nx-ms-date: + Tue, 01 Oct 2019 23:09:56 GMT\r\nx-ms-client-request-id: 9570618c-e4a0-11e9-be08-ecb1d756380e\r\ncontent-type: + application/xml; charset=utf-8\r\nAuthorization: SharedKey blobstoragename:iJ0sgHm5RiJM4JiTZdXXjiL38SdlEdoWOfj/p4ffLkk=\r\n\r\n\r\n--===============3653868967664715668==\r\nContent-Type: + application/http\r\nContent-Transfer-Encoding: binary\r\nContent-ID: 1\r\n\r\nDELETE + /containera687174a/blob2? HTTP/1.1\r\nx-ms-date: Tue, 01 Oct 2019 23:09:56 GMT\r\nx-ms-client-request-id: + 957088b8-e4a0-11e9-8c37-ecb1d756380e\r\ncontent-type: application/xml; charset=utf-8\r\nAuthorization: + SharedKey blobstoragename:ZsUFRTO2BGun0awhXkQuNpJJOgT0ZqQHVhLd2ElRLtU=\r\n\r\n\r\n--===============3653868967664715668==\r\nContent-Type: + application/http\r\nContent-Transfer-Encoding: binary\r\nContent-ID: 2\r\n\r\nDELETE + /containera687174a/blob3? HTTP/1.1\r\nx-ms-date: Tue, 01 Oct 2019 23:09:56 GMT\r\nx-ms-client-request-id: + 9570afa4-e4a0-11e9-ad4e-ecb1d756380e\r\ncontent-type: application/xml; charset=utf-8\r\nAuthorization: + SharedKey blobstoragename:0qlUuSdDTVSsN5uAbp/2gKWCbKdxaI0DakAqpQWdWp8=\r\n\r\n\r\n--===============3653868967664715668==--\r\n" + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['1245'] + Content-Type: [multipart/mixed; boundary================3653868967664715668==] + User-Agent: [azsdk-python-storage-blob/12.0.0b3 Python/3.7.0 (Windows-10-10.0.18362-SP0)] + x-ms-client-request-id: [95723652-e4a0-11e9-ba50-ecb1d756380e] + x-ms-date: ['Tue, 01 Oct 2019 23:09:56 GMT'] + x-ms-version: ['2019-02-02'] + method: POST + uri: https://blobstoragename.blob.core.windows.net/?comp=batch + response: + body: {string: "--batchresponse_5eff89e9-6da2-4a50-a115-a2078c2a9766\r\nContent-Type: + application/http\r\nContent-ID: 0\r\n\r\nHTTP/1.1 404 The specified blob does + not exist.\r\nx-ms-error-code: BlobNotFound\r\nx-ms-request-id: b956c0d5-e01e-004f-09ad-78a0181e3d71\r\nx-ms-version: + 2019-02-02\r\nx-ms-client-request-id: 9570618c-e4a0-11e9-be08-ecb1d756380e\r\nContent-Length: + 216\r\nContent-Type: application/xml\r\nServer: Windows-Azure-Blob/1.0\r\n\r\n\uFEFF\nBlobNotFoundThe + specified blob does not exist.\nRequestId:b956c0d5-e01e-004f-09ad-78a0181e3d71\nTime:2019-10-01T23:09:56.6433283Z\r\n--batchresponse_5eff89e9-6da2-4a50-a115-a2078c2a9766\r\nContent-Type: + application/http\r\nContent-ID: 1\r\n\r\nHTTP/1.1 404 The specified blob does + not exist.\r\nx-ms-error-code: BlobNotFound\r\nx-ms-request-id: b956c0d5-e01e-004f-09ad-78a0181e3d73\r\nx-ms-version: + 2019-02-02\r\nx-ms-client-request-id: 957088b8-e4a0-11e9-8c37-ecb1d756380e\r\nContent-Length: + 216\r\nContent-Type: application/xml\r\nServer: Windows-Azure-Blob/1.0\r\n\r\n\uFEFF\nBlobNotFoundThe + specified blob does not exist.\nRequestId:b956c0d5-e01e-004f-09ad-78a0181e3d73\nTime:2019-10-01T23:09:56.6433283Z\r\n--batchresponse_5eff89e9-6da2-4a50-a115-a2078c2a9766\r\nContent-Type: + application/http\r\nContent-ID: 2\r\n\r\nHTTP/1.1 404 The specified blob does + not exist.\r\nx-ms-error-code: BlobNotFound\r\nx-ms-request-id: b956c0d5-e01e-004f-09ad-78a0181e3d74\r\nx-ms-version: + 2019-02-02\r\nx-ms-client-request-id: 9570afa4-e4a0-11e9-ad4e-ecb1d756380e\r\nContent-Length: + 216\r\nContent-Type: application/xml\r\nServer: Windows-Azure-Blob/1.0\r\n\r\n\uFEFF\nBlobNotFoundThe + specified blob does not exist.\nRequestId:b956c0d5-e01e-004f-09ad-78a0181e3d74\nTime:2019-10-01T23:09:56.6433283Z\r\n--batchresponse_5eff89e9-6da2-4a50-a115-a2078c2a9766--"} + headers: + Content-Type: [multipart/mixed; boundary=batchresponse_5eff89e9-6da2-4a50-a115-a2078c2a9766] + Date: ['Tue, 01 Oct 2019 23:09:56 GMT'] + Server: [Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0] + Transfer-Encoding: [chunked] + x-ms-client-request-id: [95723652-e4a0-11e9-ba50-ecb1d756380e] + x-ms-request-id: [b956c0d5-e01e-004f-09ad-78a018000000] + x-ms-version: ['2019-02-02'] + status: {code: 202, message: Accepted} +- request: + body: hello world + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['11'] + Content-Type: [application/octet-stream] + If-None-Match: ['*'] + User-Agent: [azsdk-python-storage-blob/12.0.0b3 Python/3.7.0 (Windows-10-10.0.18362-SP0)] + x-ms-blob-type: [BlockBlob] + x-ms-client-request-id: [958d5fa6-e4a0-11e9-9242-ecb1d756380e] + x-ms-date: ['Tue, 01 Oct 2019 23:09:56 GMT'] + x-ms-version: ['2019-02-02'] + method: PUT + uri: https://blobstoragename.blob.core.windows.net/containera687174a/blob1 + response: + body: {string: ''} + headers: + Content-Length: ['0'] + Content-MD5: [XrY7u+Ae7tCTyyK7j1rNww==] + Date: ['Tue, 01 Oct 2019 23:09:56 GMT'] + ETag: ['"0x8D746C479CDE75C"'] + Last-Modified: ['Tue, 01 Oct 2019 23:09:56 GMT'] + Server: [Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0] + x-ms-client-request-id: [958d5fa6-e4a0-11e9-9242-ecb1d756380e] + x-ms-content-crc64: [vo7q9sPVKY0=] + x-ms-request-id: [b956c138-e01e-004f-65ad-78a018000000] + x-ms-request-server-encrypted: ['true'] + x-ms-version: ['2019-02-02'] + status: {code: 201, message: Created} +- request: + body: hello world + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['11'] + Content-Type: [application/octet-stream] + If-None-Match: ['*'] + User-Agent: [azsdk-python-storage-blob/12.0.0b3 Python/3.7.0 (Windows-10-10.0.18362-SP0)] + x-ms-blob-type: [BlockBlob] + x-ms-client-request-id: [95996d64-e4a0-11e9-a90b-ecb1d756380e] + x-ms-date: ['Tue, 01 Oct 2019 23:09:56 GMT'] + x-ms-version: ['2019-02-02'] + method: PUT + uri: https://blobstoragename.blob.core.windows.net/containera687174a/blob2 + response: + body: {string: ''} + headers: + Content-Length: ['0'] + Content-MD5: [XrY7u+Ae7tCTyyK7j1rNww==] + Date: ['Tue, 01 Oct 2019 23:09:56 GMT'] + ETag: ['"0x8D746C479D9F77A"'] + Last-Modified: ['Tue, 01 Oct 2019 23:09:56 GMT'] + Server: [Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0] + x-ms-client-request-id: [95996d64-e4a0-11e9-a90b-ecb1d756380e] + x-ms-content-crc64: [vo7q9sPVKY0=] + x-ms-request-id: [b956c16d-e01e-004f-12ad-78a018000000] + x-ms-request-server-encrypted: ['true'] + x-ms-version: ['2019-02-02'] + status: {code: 201, message: Created} +- request: + body: hello world + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['11'] + Content-Type: [application/octet-stream] + If-None-Match: ['*'] + User-Agent: [azsdk-python-storage-blob/12.0.0b3 Python/3.7.0 (Windows-10-10.0.18362-SP0)] + x-ms-blob-type: [BlockBlob] + x-ms-client-request-id: [95a75024-e4a0-11e9-bc18-ecb1d756380e] + x-ms-date: ['Tue, 01 Oct 2019 23:09:56 GMT'] + x-ms-version: ['2019-02-02'] + method: PUT + uri: https://blobstoragename.blob.core.windows.net/containera687174a/blob3 + response: + body: {string: ''} + headers: + Content-Length: ['0'] + Content-MD5: [XrY7u+Ae7tCTyyK7j1rNww==] + Date: ['Tue, 01 Oct 2019 23:09:56 GMT'] + ETag: ['"0x8D746C479E851FB"'] + Last-Modified: ['Tue, 01 Oct 2019 23:09:56 GMT'] + Server: [Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0] + x-ms-client-request-id: [95a75024-e4a0-11e9-bc18-ecb1d756380e] + x-ms-content-crc64: [vo7q9sPVKY0=] + x-ms-request-id: [b956c190-e01e-004f-34ad-78a018000000] + x-ms-request-server-encrypted: ['true'] + x-ms-version: ['2019-02-02'] + status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + User-Agent: [azsdk-python-storage-blob/12.0.0b3 Python/3.7.0 (Windows-10-10.0.18362-SP0)] + content-type: [application/xml; charset=utf-8] + x-ms-client-request-id: [95b30ff6-e4a0-11e9-b425-ecb1d756380e] + x-ms-date: ['Tue, 01 Oct 2019 23:09:56 GMT'] + x-ms-version: ['2019-02-02'] + method: HEAD + uri: https://blobstoragename.blob.core.windows.net/containera687174a/blob1 + response: + body: {string: ''} + headers: + Accept-Ranges: [bytes] + Content-Length: ['11'] + Content-MD5: [XrY7u+Ae7tCTyyK7j1rNww==] + Content-Type: [application/octet-stream] + Date: ['Tue, 01 Oct 2019 23:09:56 GMT'] + ETag: ['"0x8D746C479CDE75C"'] + Last-Modified: ['Tue, 01 Oct 2019 23:09:56 GMT'] + Server: [Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0] + Vary: [Origin] + x-ms-access-tier: [Hot] + x-ms-access-tier-inferred: ['true'] + x-ms-blob-type: [BlockBlob] + x-ms-client-request-id: [95b30ff6-e4a0-11e9-b425-ecb1d756380e] + x-ms-creation-time: ['Tue, 01 Oct 2019 23:09:56 GMT'] + x-ms-lease-state: [available] + x-ms-lease-status: [unlocked] + x-ms-request-id: [b956c19d-e01e-004f-40ad-78a018000000] + x-ms-server-encrypted: ['true'] + x-ms-version: ['2019-02-02'] + status: {code: 200, message: OK} +- request: + body: "--===============7226908234575200422==\r\nContent-Type: application/http\r\nContent-Transfer-Encoding: + binary\r\nContent-ID: 0\r\n\r\nPUT /containera687174a/blob1?comp=tier HTTP/1.1\r\nContent-Length: + 0\r\nx-ms-access-tier: Archive\r\nx-ms-date: Tue, 01 Oct 2019 23:09:56 GMT\r\nx-ms-client-request-id: + 95bdbe54-e4a0-11e9-b660-ecb1d756380e\r\ncontent-type: application/xml; charset=utf-8\r\nAuthorization: + SharedKey blobstoragename:9exDZLBVM4jMdYldvuWE+ZWXslpJIhDNXlhI2mey4m0=\r\n\r\n\r\n--===============7226908234575200422==\r\nContent-Type: + application/http\r\nContent-Transfer-Encoding: binary\r\nContent-ID: 1\r\n\r\nPUT + /containera687174a/blob2?comp=tier HTTP/1.1\r\nContent-Length: 0\r\nx-ms-access-tier: + Archive\r\nx-ms-date: Tue, 01 Oct 2019 23:09:56 GMT\r\nx-ms-client-request-id: + 95bde564-e4a0-11e9-bd44-ecb1d756380e\r\ncontent-type: application/xml; charset=utf-8\r\nAuthorization: + SharedKey blobstoragename:mrPj+rHKiIJSaoO2QYv+xL6SSCsDhWDBsfoYc4VlOGc=\r\n\r\n\r\n--===============7226908234575200422==\r\nContent-Type: + application/http\r\nContent-Transfer-Encoding: binary\r\nContent-ID: 2\r\n\r\nPUT + /containera687174a/blob3?comp=tier HTTP/1.1\r\nContent-Length: 0\r\nx-ms-access-tier: + Archive\r\nx-ms-date: Tue, 01 Oct 2019 23:09:56 GMT\r\nx-ms-client-request-id: + 95bde565-e4a0-11e9-aab2-ecb1d756380e\r\ncontent-type: application/xml; charset=utf-8\r\nAuthorization: + SharedKey blobstoragename:nmLJZzejhoiNaKUMH46DzgTwdUk92V/PPYNc+8tEcuk=\r\n\r\n\r\n--===============7226908234575200422==--\r\n" + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['1401'] + Content-Type: [multipart/mixed; boundary================7226908234575200422==] + User-Agent: [azsdk-python-storage-blob/12.0.0b3 Python/3.7.0 (Windows-10-10.0.18362-SP0)] + x-ms-client-request-id: [95be5aa6-e4a0-11e9-8246-ecb1d756380e] + x-ms-date: ['Tue, 01 Oct 2019 23:09:56 GMT'] + x-ms-version: ['2019-02-02'] + method: POST + uri: https://blobstoragename.blob.core.windows.net/?comp=batch + response: + body: {string: "--batchresponse_cb26b2a7-d755-4b7f-b28f-c2972b4cc631\r\nContent-Type: + application/http\r\nContent-ID: 0\r\n\r\nHTTP/1.1 200 OK\r\nx-ms-request-id: + b956c1b9-e01e-004f-57ad-78a0181e3d7e\r\nx-ms-version: 2019-02-02\r\nx-ms-client-request-id: + 95bdbe54-e4a0-11e9-b660-ecb1d756380e\r\nServer: Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_cb26b2a7-d755-4b7f-b28f-c2972b4cc631\r\nContent-Type: + application/http\r\nContent-ID: 1\r\n\r\nHTTP/1.1 200 OK\r\nx-ms-request-id: + b956c1b9-e01e-004f-57ad-78a0181e3d86\r\nx-ms-version: 2019-02-02\r\nx-ms-client-request-id: + 95bde564-e4a0-11e9-bd44-ecb1d756380e\r\nServer: Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_cb26b2a7-d755-4b7f-b28f-c2972b4cc631\r\nContent-Type: + application/http\r\nContent-ID: 2\r\n\r\nHTTP/1.1 200 OK\r\nx-ms-request-id: + b956c1b9-e01e-004f-57ad-78a0181e3d87\r\nx-ms-version: 2019-02-02\r\nx-ms-client-request-id: + 95bde565-e4a0-11e9-aab2-ecb1d756380e\r\nServer: Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_cb26b2a7-d755-4b7f-b28f-c2972b4cc631--"} + headers: + Content-Type: [multipart/mixed; boundary=batchresponse_cb26b2a7-d755-4b7f-b28f-c2972b4cc631] + Date: ['Tue, 01 Oct 2019 23:09:57 GMT'] + Server: [Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0] + Transfer-Encoding: [chunked] + x-ms-client-request-id: [95be5aa6-e4a0-11e9-8246-ecb1d756380e] + x-ms-request-id: [b956c1b9-e01e-004f-57ad-78a018000000] + x-ms-version: ['2019-02-02'] + status: {code: 202, message: Accepted} +- request: + body: null + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + User-Agent: [azsdk-python-storage-blob/12.0.0b3 Python/3.7.0 (Windows-10-10.0.18362-SP0)] + content-type: [application/xml; charset=utf-8] + x-ms-client-request-id: [96224cba-e4a0-11e9-a3f3-ecb1d756380e] + x-ms-date: ['Tue, 01 Oct 2019 23:09:57 GMT'] + x-ms-version: ['2019-02-02'] + method: HEAD + uri: https://blobstoragename.blob.core.windows.net/containera687174a/blob1 + response: + body: {string: ''} + headers: + Accept-Ranges: [bytes] + Content-Length: ['11'] + Content-MD5: [XrY7u+Ae7tCTyyK7j1rNww==] + Content-Type: [application/octet-stream] + Date: ['Tue, 01 Oct 2019 23:09:57 GMT'] + ETag: ['"0x8D746C479CDE75C"'] + Last-Modified: ['Tue, 01 Oct 2019 23:09:56 GMT'] + Server: [Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0] + Vary: [Origin] + x-ms-access-tier: [Archive] + x-ms-access-tier-change-time: ['Tue, 01 Oct 2019 23:09:57 GMT'] + x-ms-blob-type: [BlockBlob] + x-ms-client-request-id: [96224cba-e4a0-11e9-a3f3-ecb1d756380e] + x-ms-creation-time: ['Tue, 01 Oct 2019 23:09:56 GMT'] + x-ms-lease-state: [available] + x-ms-lease-status: [unlocked] + x-ms-request-id: [b956c2d4-e01e-004f-66ad-78a018000000] + x-ms-server-encrypted: ['true'] + x-ms-version: ['2019-02-02'] + status: {code: 200, message: OK} +- request: + body: "--===============5756738329839421291==\r\nContent-Type: application/http\r\nContent-Transfer-Encoding: + binary\r\nContent-ID: 0\r\n\r\nDELETE /containera687174a/blob1? HTTP/1.1\r\nx-ms-date: + Tue, 01 Oct 2019 23:09:57 GMT\r\nx-ms-client-request-id: 962e0c8c-e4a0-11e9-95b5-ecb1d756380e\r\ncontent-type: + application/xml; charset=utf-8\r\nAuthorization: SharedKey blobstoragename:QepgLk+G76CT5WYMWQJjSr0QVU8j3JjX3Vye6lPR/do=\r\n\r\n\r\n--===============5756738329839421291==\r\nContent-Type: + application/http\r\nContent-Transfer-Encoding: binary\r\nContent-ID: 1\r\n\r\nDELETE + /containera687174a/blob2? HTTP/1.1\r\nx-ms-date: Tue, 01 Oct 2019 23:09:57 GMT\r\nx-ms-client-request-id: + 962e0c8d-e4a0-11e9-a80b-ecb1d756380e\r\ncontent-type: application/xml; charset=utf-8\r\nAuthorization: + SharedKey blobstoragename:d+BR0BrmZ5szxP9+U8KHX4p18bZVXRP5qYJsPmw65eU=\r\n\r\n\r\n--===============5756738329839421291==\r\nContent-Type: + application/http\r\nContent-Transfer-Encoding: binary\r\nContent-ID: 2\r\n\r\nDELETE + /containera687174a/blob3? HTTP/1.1\r\nx-ms-date: Tue, 01 Oct 2019 23:09:57 GMT\r\nx-ms-client-request-id: + 962e33a4-e4a0-11e9-adb0-ecb1d756380e\r\ncontent-type: application/xml; charset=utf-8\r\nAuthorization: + SharedKey blobstoragename:7zFpdfOdXvpxQXw+7YF5lyaD3jyevFwv/aPqY+dH3wg=\r\n\r\n\r\n--===============5756738329839421291==--\r\n" + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['1245'] + Content-Type: [multipart/mixed; boundary================5756738329839421291==] + User-Agent: [azsdk-python-storage-blob/12.0.0b3 Python/3.7.0 (Windows-10-10.0.18362-SP0)] + x-ms-client-request-id: [962ea8ca-e4a0-11e9-9342-ecb1d756380e] + x-ms-date: ['Tue, 01 Oct 2019 23:09:57 GMT'] + x-ms-version: ['2019-02-02'] + method: POST + uri: https://blobstoragename.blob.core.windows.net/?comp=batch + response: + body: {string: "--batchresponse_ae15dfa2-45a8-4872-b521-0117a00dbfa0\r\nContent-Type: + application/http\r\nContent-ID: 0\r\n\r\nHTTP/1.1 202 Accepted\r\nx-ms-delete-type-permanent: + true\r\nx-ms-request-id: b956c306-e01e-004f-10ad-78a0181e3d8e\r\nx-ms-version: + 2019-02-02\r\nx-ms-client-request-id: 962e0c8c-e4a0-11e9-95b5-ecb1d756380e\r\nServer: + Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_ae15dfa2-45a8-4872-b521-0117a00dbfa0\r\nContent-Type: + application/http\r\nContent-ID: 1\r\n\r\nHTTP/1.1 202 Accepted\r\nx-ms-delete-type-permanent: + true\r\nx-ms-request-id: b956c306-e01e-004f-10ad-78a0181e3d8f\r\nx-ms-version: + 2019-02-02\r\nx-ms-client-request-id: 962e0c8d-e4a0-11e9-a80b-ecb1d756380e\r\nServer: + Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_ae15dfa2-45a8-4872-b521-0117a00dbfa0\r\nContent-Type: + application/http\r\nContent-ID: 2\r\n\r\nHTTP/1.1 202 Accepted\r\nx-ms-delete-type-permanent: + true\r\nx-ms-request-id: b956c306-e01e-004f-10ad-78a0181e3d90\r\nx-ms-version: + 2019-02-02\r\nx-ms-client-request-id: 962e33a4-e4a0-11e9-adb0-ecb1d756380e\r\nServer: + Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_ae15dfa2-45a8-4872-b521-0117a00dbfa0--"} + headers: + Content-Type: [multipart/mixed; boundary=batchresponse_ae15dfa2-45a8-4872-b521-0117a00dbfa0] + Date: ['Tue, 01 Oct 2019 23:09:57 GMT'] + Server: [Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0] + Transfer-Encoding: [chunked] + x-ms-client-request-id: [962ea8ca-e4a0-11e9-9342-ecb1d756380e] + x-ms-request-id: [b956c306-e01e-004f-10ad-78a018000000] + x-ms-version: ['2019-02-02'] + status: {code: 202, message: Accepted} +- request: + body: hello world + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['11'] + Content-Type: [application/octet-stream] + If-None-Match: ['*'] + User-Agent: [azsdk-python-storage-blob/12.0.0b3 Python/3.7.0 (Windows-10-10.0.18362-SP0)] + x-ms-blob-type: [BlockBlob] + x-ms-client-request-id: [963dc400-e4a0-11e9-9186-ecb1d756380e] + x-ms-date: ['Tue, 01 Oct 2019 23:09:57 GMT'] + x-ms-version: ['2019-02-02'] + method: PUT + uri: https://blobstoragename.blob.core.windows.net/containera687174a/blob1 + response: + body: {string: ''} + headers: + Content-Length: ['0'] + Content-MD5: [XrY7u+Ae7tCTyyK7j1rNww==] + Date: ['Tue, 01 Oct 2019 23:09:57 GMT'] + ETag: ['"0x8D746C47A7F5645"'] + Last-Modified: ['Tue, 01 Oct 2019 23:09:57 GMT'] + Server: [Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0] + x-ms-client-request-id: [963dc400-e4a0-11e9-9186-ecb1d756380e] + x-ms-content-crc64: [vo7q9sPVKY0=] + x-ms-request-id: [b956c33c-e01e-004f-45ad-78a018000000] + x-ms-request-server-encrypted: ['true'] + x-ms-version: ['2019-02-02'] + status: {code: 201, message: Created} +- request: + body: hello world + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['11'] + Content-Type: [application/octet-stream] + If-None-Match: ['*'] + User-Agent: [azsdk-python-storage-blob/12.0.0b3 Python/3.7.0 (Windows-10-10.0.18362-SP0)] + x-ms-blob-type: [BlockBlob] + x-ms-client-request-id: [964bf4da-e4a0-11e9-b9d0-ecb1d756380e] + x-ms-date: ['Tue, 01 Oct 2019 23:09:57 GMT'] + x-ms-version: ['2019-02-02'] + method: PUT + uri: https://blobstoragename.blob.core.windows.net/containera687174a/blob2 + response: + body: {string: ''} + headers: + Content-Length: ['0'] + Content-MD5: [XrY7u+Ae7tCTyyK7j1rNww==] + Date: ['Tue, 01 Oct 2019 23:09:57 GMT'] + ETag: ['"0x8D746C47A8D1469"'] + Last-Modified: ['Tue, 01 Oct 2019 23:09:57 GMT'] + Server: [Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0] + x-ms-client-request-id: [964bf4da-e4a0-11e9-b9d0-ecb1d756380e] + x-ms-content-crc64: [vo7q9sPVKY0=] + x-ms-request-id: [b956c374-e01e-004f-7cad-78a018000000] + x-ms-request-server-encrypted: ['true'] + x-ms-version: ['2019-02-02'] + status: {code: 201, message: Created} +- request: + body: hello world + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['11'] + Content-Type: [application/octet-stream] + If-None-Match: ['*'] + User-Agent: [azsdk-python-storage-blob/12.0.0b3 Python/3.7.0 (Windows-10-10.0.18362-SP0)] + x-ms-blob-type: [BlockBlob] + x-ms-client-request-id: [965877f4-e4a0-11e9-9ead-ecb1d756380e] + x-ms-date: ['Tue, 01 Oct 2019 23:09:57 GMT'] + x-ms-version: ['2019-02-02'] + method: PUT + uri: https://blobstoragename.blob.core.windows.net/containera687174a/blob3 + response: + body: {string: ''} + headers: + Content-Length: ['0'] + Content-MD5: [XrY7u+Ae7tCTyyK7j1rNww==] + Date: ['Tue, 01 Oct 2019 23:09:58 GMT'] + ETag: ['"0x8D746C47A98FD74"'] + Last-Modified: ['Tue, 01 Oct 2019 23:09:58 GMT'] + Server: [Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0] + x-ms-client-request-id: [965877f4-e4a0-11e9-9ead-ecb1d756380e] + x-ms-content-crc64: [vo7q9sPVKY0=] + x-ms-request-id: [b956c3a5-e01e-004f-25ad-78a018000000] + x-ms-request-server-encrypted: ['true'] + x-ms-version: ['2019-02-02'] + status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + User-Agent: [azsdk-python-storage-blob/12.0.0b3 Python/3.7.0 (Windows-10-10.0.18362-SP0)] + content-type: [application/xml; charset=utf-8] + x-ms-client-request-id: [9663e9a4-e4a0-11e9-a15d-ecb1d756380e] + x-ms-date: ['Tue, 01 Oct 2019 23:09:58 GMT'] + x-ms-version: ['2019-02-02'] + method: HEAD + uri: https://blobstoragename.blob.core.windows.net/containera687174a/blob1 + response: + body: {string: ''} + headers: + Accept-Ranges: [bytes] + Content-Length: ['11'] + Content-MD5: [XrY7u+Ae7tCTyyK7j1rNww==] + Content-Type: [application/octet-stream] + Date: ['Tue, 01 Oct 2019 23:09:58 GMT'] + ETag: ['"0x8D746C47A7F5645"'] + Last-Modified: ['Tue, 01 Oct 2019 23:09:57 GMT'] + Server: [Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0] + Vary: [Origin] + x-ms-access-tier: [Hot] + x-ms-access-tier-inferred: ['true'] + x-ms-blob-type: [BlockBlob] + x-ms-client-request-id: [9663e9a4-e4a0-11e9-a15d-ecb1d756380e] + x-ms-creation-time: ['Tue, 01 Oct 2019 23:09:57 GMT'] + x-ms-lease-state: [available] + x-ms-lease-status: [unlocked] + x-ms-request-id: [b956c3d3-e01e-004f-4dad-78a018000000] + x-ms-server-encrypted: ['true'] + x-ms-version: ['2019-02-02'] + status: {code: 200, message: OK} +- request: + body: "--===============5969356434619469988==\r\nContent-Type: application/http\r\nContent-Transfer-Encoding: + binary\r\nContent-ID: 0\r\n\r\nPUT /containera687174a/blob1?comp=tier HTTP/1.1\r\nContent-Length: + 0\r\nx-ms-access-tier: Cool\r\nx-ms-date: Tue, 01 Oct 2019 23:09:58 GMT\r\nx-ms-client-request-id: + 966ebf1a-e4a0-11e9-94ed-ecb1d756380e\r\ncontent-type: application/xml; charset=utf-8\r\nAuthorization: + SharedKey blobstoragename:VOzlR6hvECnH7Hjyh3tg/On7Rjy1pX+YdTrDrd52WBg=\r\n\r\n\r\n--===============5969356434619469988==\r\nContent-Type: + application/http\r\nContent-Transfer-Encoding: binary\r\nContent-ID: 1\r\n\r\nPUT + /containera687174a/blob2?comp=tier HTTP/1.1\r\nContent-Length: 0\r\nx-ms-access-tier: + Cool\r\nx-ms-date: Tue, 01 Oct 2019 23:09:58 GMT\r\nx-ms-client-request-id: + 966ebf1b-e4a0-11e9-aa7b-ecb1d756380e\r\ncontent-type: application/xml; charset=utf-8\r\nAuthorization: + SharedKey blobstoragename:Y+UsZ/Je2ylk1wfBnQgsZDO/sza1mIxuFGADGv2c1KU=\r\n\r\n\r\n--===============5969356434619469988==\r\nContent-Type: + application/http\r\nContent-Transfer-Encoding: binary\r\nContent-ID: 2\r\n\r\nPUT + /containera687174a/blob3?comp=tier HTTP/1.1\r\nContent-Length: 0\r\nx-ms-access-tier: + Cool\r\nx-ms-date: Tue, 01 Oct 2019 23:09:58 GMT\r\nx-ms-client-request-id: + 966ee624-e4a0-11e9-a236-ecb1d756380e\r\ncontent-type: application/xml; charset=utf-8\r\nAuthorization: + SharedKey blobstoragename:qS24MwWK5u1pDRcUTQu4LqRvV+9TVx3BbjqG99L5OQ4=\r\n\r\n\r\n--===============5969356434619469988==--\r\n" + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['1392'] + Content-Type: [multipart/mixed; boundary================5969356434619469988==] + User-Agent: [azsdk-python-storage-blob/12.0.0b3 Python/3.7.0 (Windows-10-10.0.18362-SP0)] + x-ms-client-request-id: [966f3448-e4a0-11e9-946e-ecb1d756380e] + x-ms-date: ['Tue, 01 Oct 2019 23:09:58 GMT'] + x-ms-version: ['2019-02-02'] + method: POST + uri: https://blobstoragename.blob.core.windows.net/?comp=batch + response: + body: {string: "--batchresponse_c3162683-d262-4aa0-b0a5-90e50e4f5a76\r\nContent-Type: + application/http\r\nContent-ID: 0\r\n\r\nHTTP/1.1 200 OK\r\nx-ms-request-id: + b956c3f9-e01e-004f-71ad-78a0181e3d9f\r\nx-ms-version: 2019-02-02\r\nx-ms-client-request-id: + 966ebf1a-e4a0-11e9-94ed-ecb1d756380e\r\nServer: Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_c3162683-d262-4aa0-b0a5-90e50e4f5a76\r\nContent-Type: + application/http\r\nContent-ID: 1\r\n\r\nHTTP/1.1 200 OK\r\nx-ms-request-id: + b956c3f9-e01e-004f-71ad-78a0181e3da0\r\nx-ms-version: 2019-02-02\r\nx-ms-client-request-id: + 966ebf1b-e4a0-11e9-aa7b-ecb1d756380e\r\nServer: Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_c3162683-d262-4aa0-b0a5-90e50e4f5a76\r\nContent-Type: + application/http\r\nContent-ID: 2\r\n\r\nHTTP/1.1 200 OK\r\nx-ms-request-id: + b956c3f9-e01e-004f-71ad-78a0181e3da1\r\nx-ms-version: 2019-02-02\r\nx-ms-client-request-id: + 966ee624-e4a0-11e9-a236-ecb1d756380e\r\nServer: Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_c3162683-d262-4aa0-b0a5-90e50e4f5a76--"} + headers: + Content-Type: [multipart/mixed; boundary=batchresponse_c3162683-d262-4aa0-b0a5-90e50e4f5a76] + Date: ['Tue, 01 Oct 2019 23:09:58 GMT'] + Server: [Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0] + Transfer-Encoding: [chunked] + x-ms-client-request-id: [966f3448-e4a0-11e9-946e-ecb1d756380e] + x-ms-request-id: [b956c3f9-e01e-004f-71ad-78a018000000] + x-ms-version: ['2019-02-02'] + status: {code: 202, message: Accepted} +- request: + body: null + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + User-Agent: [azsdk-python-storage-blob/12.0.0b3 Python/3.7.0 (Windows-10-10.0.18362-SP0)] + content-type: [application/xml; charset=utf-8] + x-ms-client-request-id: [967b906c-e4a0-11e9-b2af-ecb1d756380e] + x-ms-date: ['Tue, 01 Oct 2019 23:09:58 GMT'] + x-ms-version: ['2019-02-02'] + method: HEAD + uri: https://blobstoragename.blob.core.windows.net/containera687174a/blob1 + response: + body: {string: ''} + headers: + Accept-Ranges: [bytes] + Content-Length: ['11'] + Content-MD5: [XrY7u+Ae7tCTyyK7j1rNww==] + Content-Type: [application/octet-stream] + Date: ['Tue, 01 Oct 2019 23:09:58 GMT'] + ETag: ['"0x8D746C47A7F5645"'] + Last-Modified: ['Tue, 01 Oct 2019 23:09:57 GMT'] + Server: [Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0] + Vary: [Origin] + x-ms-access-tier: [Cool] + x-ms-access-tier-change-time: ['Tue, 01 Oct 2019 23:09:58 GMT'] + x-ms-blob-type: [BlockBlob] + x-ms-client-request-id: [967b906c-e4a0-11e9-b2af-ecb1d756380e] + x-ms-creation-time: ['Tue, 01 Oct 2019 23:09:57 GMT'] + x-ms-lease-state: [available] + x-ms-lease-status: [unlocked] + x-ms-request-id: [b956c419-e01e-004f-0dad-78a018000000] + x-ms-server-encrypted: ['true'] + x-ms-version: ['2019-02-02'] + status: {code: 200, message: OK} +- request: + body: "--===============6978740633687956519==\r\nContent-Type: application/http\r\nContent-Transfer-Encoding: + binary\r\nContent-ID: 0\r\n\r\nDELETE /containera687174a/blob1? HTTP/1.1\r\nx-ms-date: + Tue, 01 Oct 2019 23:09:58 GMT\r\nx-ms-client-request-id: 9688afb8-e4a0-11e9-a3f4-ecb1d756380e\r\ncontent-type: + application/xml; charset=utf-8\r\nAuthorization: SharedKey blobstoragename:PtqhE+PjVKSEPopKvjvKpEZjD8jU8ZV6mKLh5fTszmk=\r\n\r\n\r\n--===============6978740633687956519==\r\nContent-Type: + application/http\r\nContent-Transfer-Encoding: binary\r\nContent-ID: 1\r\n\r\nDELETE + /containera687174a/blob2? HTTP/1.1\r\nx-ms-date: Tue, 01 Oct 2019 23:09:58 GMT\r\nx-ms-client-request-id: + 9688d70a-e4a0-11e9-9615-ecb1d756380e\r\ncontent-type: application/xml; charset=utf-8\r\nAuthorization: + SharedKey blobstoragename:Vf3gfidL4ufirZ/sFV+BZiTyaRw0ANkCwIMD3XNWuOk=\r\n\r\n\r\n--===============6978740633687956519==\r\nContent-Type: + application/http\r\nContent-Transfer-Encoding: binary\r\nContent-ID: 2\r\n\r\nDELETE + /containera687174a/blob3? HTTP/1.1\r\nx-ms-date: Tue, 01 Oct 2019 23:09:58 GMT\r\nx-ms-client-request-id: + 9688fddc-e4a0-11e9-8715-ecb1d756380e\r\ncontent-type: application/xml; charset=utf-8\r\nAuthorization: + SharedKey blobstoragename:WsJm0reynMPvfGQyEpRiPd3IJLA46J4B20TPQ+jP/AU=\r\n\r\n\r\n--===============6978740633687956519==--\r\n" + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['1245'] + Content-Type: [multipart/mixed; boundary================6978740633687956519==] + User-Agent: [azsdk-python-storage-blob/12.0.0b3 Python/3.7.0 (Windows-10-10.0.18362-SP0)] + x-ms-client-request-id: [96894c18-e4a0-11e9-a621-ecb1d756380e] + x-ms-date: ['Tue, 01 Oct 2019 23:09:58 GMT'] + x-ms-version: ['2019-02-02'] + method: POST + uri: https://blobstoragename.blob.core.windows.net/?comp=batch + response: + body: {string: "--batchresponse_48f142fe-0349-4516-9426-80f261e90647\r\nContent-Type: + application/http\r\nContent-ID: 0\r\n\r\nHTTP/1.1 202 Accepted\r\nx-ms-delete-type-permanent: + true\r\nx-ms-request-id: b956c441-e01e-004f-31ad-78a0181e3da9\r\nx-ms-version: + 2019-02-02\r\nx-ms-client-request-id: 9688afb8-e4a0-11e9-a3f4-ecb1d756380e\r\nServer: + Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_48f142fe-0349-4516-9426-80f261e90647\r\nContent-Type: + application/http\r\nContent-ID: 1\r\n\r\nHTTP/1.1 202 Accepted\r\nx-ms-delete-type-permanent: + true\r\nx-ms-request-id: b956c441-e01e-004f-31ad-78a0181e3daa\r\nx-ms-version: + 2019-02-02\r\nx-ms-client-request-id: 9688d70a-e4a0-11e9-9615-ecb1d756380e\r\nServer: + Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_48f142fe-0349-4516-9426-80f261e90647\r\nContent-Type: + application/http\r\nContent-ID: 2\r\n\r\nHTTP/1.1 202 Accepted\r\nx-ms-delete-type-permanent: + true\r\nx-ms-request-id: b956c441-e01e-004f-31ad-78a0181e3dab\r\nx-ms-version: + 2019-02-02\r\nx-ms-client-request-id: 9688fddc-e4a0-11e9-8715-ecb1d756380e\r\nServer: + Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_48f142fe-0349-4516-9426-80f261e90647--"} + headers: + Content-Type: [multipart/mixed; boundary=batchresponse_48f142fe-0349-4516-9426-80f261e90647] + Date: ['Tue, 01 Oct 2019 23:09:58 GMT'] + Server: [Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0] + Transfer-Encoding: [chunked] + x-ms-client-request-id: [96894c18-e4a0-11e9-a621-ecb1d756380e] + x-ms-request-id: [b956c441-e01e-004f-31ad-78a018000000] + x-ms-version: ['2019-02-02'] + status: {code: 202, message: Accepted} +- request: + body: hello world + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['11'] + Content-Type: [application/octet-stream] + If-None-Match: ['*'] + User-Agent: [azsdk-python-storage-blob/12.0.0b3 Python/3.7.0 (Windows-10-10.0.18362-SP0)] + x-ms-blob-type: [BlockBlob] + x-ms-client-request-id: [9697f1cc-e4a0-11e9-9f35-ecb1d756380e] + x-ms-date: ['Tue, 01 Oct 2019 23:09:58 GMT'] + x-ms-version: ['2019-02-02'] + method: PUT + uri: https://blobstoragename.blob.core.windows.net/containera687174a/blob1 + response: + body: {string: ''} + headers: + Content-Length: ['0'] + Content-MD5: [XrY7u+Ae7tCTyyK7j1rNww==] + Date: ['Tue, 01 Oct 2019 23:09:58 GMT'] + ETag: ['"0x8D746C47ADA581A"'] + Last-Modified: ['Tue, 01 Oct 2019 23:09:58 GMT'] + Server: [Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0] + x-ms-client-request-id: [9697f1cc-e4a0-11e9-9f35-ecb1d756380e] + x-ms-content-crc64: [vo7q9sPVKY0=] + x-ms-request-id: [b956c46f-e01e-004f-5ead-78a018000000] + x-ms-request-server-encrypted: ['true'] + x-ms-version: ['2019-02-02'] + status: {code: 201, message: Created} +- request: + body: hello world + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['11'] + Content-Type: [application/octet-stream] + If-None-Match: ['*'] + User-Agent: [azsdk-python-storage-blob/12.0.0b3 Python/3.7.0 (Windows-10-10.0.18362-SP0)] + x-ms-blob-type: [BlockBlob] + x-ms-client-request-id: [96a75b22-e4a0-11e9-b723-ecb1d756380e] + x-ms-date: ['Tue, 01 Oct 2019 23:09:58 GMT'] + x-ms-version: ['2019-02-02'] + method: PUT + uri: https://blobstoragename.blob.core.windows.net/containera687174a/blob2 + response: + body: {string: ''} + headers: + Content-Length: ['0'] + Content-MD5: [XrY7u+Ae7tCTyyK7j1rNww==] + Date: ['Tue, 01 Oct 2019 23:09:58 GMT'] + ETag: ['"0x8D746C47AE99D26"'] + Last-Modified: ['Tue, 01 Oct 2019 23:09:58 GMT'] + Server: [Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0] + x-ms-client-request-id: [96a75b22-e4a0-11e9-b723-ecb1d756380e] + x-ms-content-crc64: [vo7q9sPVKY0=] + x-ms-request-id: [b956c498-e01e-004f-05ad-78a018000000] + x-ms-request-server-encrypted: ['true'] + x-ms-version: ['2019-02-02'] + status: {code: 201, message: Created} +- request: + body: hello world + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['11'] + Content-Type: [application/octet-stream] + If-None-Match: ['*'] + User-Agent: [azsdk-python-storage-blob/12.0.0b3 Python/3.7.0 (Windows-10-10.0.18362-SP0)] + x-ms-blob-type: [BlockBlob] + x-ms-client-request-id: [96b516c2-e4a0-11e9-9246-ecb1d756380e] + x-ms-date: ['Tue, 01 Oct 2019 23:09:58 GMT'] + x-ms-version: ['2019-02-02'] + method: PUT + uri: https://blobstoragename.blob.core.windows.net/containera687174a/blob3 + response: + body: {string: ''} + headers: + Content-Length: ['0'] + Content-MD5: [XrY7u+Ae7tCTyyK7j1rNww==] + Date: ['Tue, 01 Oct 2019 23:09:58 GMT'] + ETag: ['"0x8D746C47AF5862D"'] + Last-Modified: ['Tue, 01 Oct 2019 23:09:58 GMT'] + Server: [Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0] + x-ms-client-request-id: [96b516c2-e4a0-11e9-9246-ecb1d756380e] + x-ms-content-crc64: [vo7q9sPVKY0=] + x-ms-request-id: [b956c4ba-e01e-004f-26ad-78a018000000] + x-ms-request-server-encrypted: ['true'] + x-ms-version: ['2019-02-02'] + status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + User-Agent: [azsdk-python-storage-blob/12.0.0b3 Python/3.7.0 (Windows-10-10.0.18362-SP0)] + content-type: [application/xml; charset=utf-8] + x-ms-client-request-id: [96c08878-e4a0-11e9-b8b3-ecb1d756380e] + x-ms-date: ['Tue, 01 Oct 2019 23:09:58 GMT'] + x-ms-version: ['2019-02-02'] + method: HEAD + uri: https://blobstoragename.blob.core.windows.net/containera687174a/blob1 + response: + body: {string: ''} + headers: + Accept-Ranges: [bytes] + Content-Length: ['11'] + Content-MD5: [XrY7u+Ae7tCTyyK7j1rNww==] + Content-Type: [application/octet-stream] + Date: ['Tue, 01 Oct 2019 23:09:58 GMT'] + ETag: ['"0x8D746C47ADA581A"'] + Last-Modified: ['Tue, 01 Oct 2019 23:09:58 GMT'] + Server: [Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0] + Vary: [Origin] + x-ms-access-tier: [Hot] + x-ms-access-tier-inferred: ['true'] + x-ms-blob-type: [BlockBlob] + x-ms-client-request-id: [96c08878-e4a0-11e9-b8b3-ecb1d756380e] + x-ms-creation-time: ['Tue, 01 Oct 2019 23:09:58 GMT'] + x-ms-lease-state: [available] + x-ms-lease-status: [unlocked] + x-ms-request-id: [b956c4f6-e01e-004f-5dad-78a018000000] + x-ms-server-encrypted: ['true'] + x-ms-version: ['2019-02-02'] + status: {code: 200, message: OK} +- request: + body: "--===============2394807418059992918==\r\nContent-Type: application/http\r\nContent-Transfer-Encoding: + binary\r\nContent-ID: 0\r\n\r\nPUT /containera687174a/blob1?comp=tier HTTP/1.1\r\nContent-Length: + 0\r\nx-ms-access-tier: Hot\r\nx-ms-date: Tue, 01 Oct 2019 23:09:58 GMT\r\nx-ms-client-request-id: + 96cd59be-e4a0-11e9-8a0d-ecb1d756380e\r\ncontent-type: application/xml; charset=utf-8\r\nAuthorization: + SharedKey blobstoragename:cbRxinbpH/Ufm5vXJewbnRoGnNEyp5SZlUw6KQ5NO0Y=\r\n\r\n\r\n--===============2394807418059992918==\r\nContent-Type: + application/http\r\nContent-Transfer-Encoding: binary\r\nContent-ID: 1\r\n\r\nPUT + /containera687174a/blob2?comp=tier HTTP/1.1\r\nContent-Length: 0\r\nx-ms-access-tier: + Hot\r\nx-ms-date: Tue, 01 Oct 2019 23:09:58 GMT\r\nx-ms-client-request-id: 96cd59bf-e4a0-11e9-a515-ecb1d756380e\r\ncontent-type: + application/xml; charset=utf-8\r\nAuthorization: SharedKey blobstoragename:1dIuVKXxfU/9q4I5VG8xR75pDhaIscmB+3Hpdpi5uF0=\r\n\r\n\r\n--===============2394807418059992918==\r\nContent-Type: + application/http\r\nContent-Transfer-Encoding: binary\r\nContent-ID: 2\r\n\r\nPUT + /containera687174a/blob3?comp=tier HTTP/1.1\r\nContent-Length: 0\r\nx-ms-access-tier: + Hot\r\nx-ms-date: Tue, 01 Oct 2019 23:09:58 GMT\r\nx-ms-client-request-id: 96cd59c0-e4a0-11e9-b749-ecb1d756380e\r\ncontent-type: + application/xml; charset=utf-8\r\nAuthorization: SharedKey blobstoragename:z3PeuLAem8xXG9wq8FUUWLr+p6yRLRlK6S1SBYajxDk=\r\n\r\n\r\n--===============2394807418059992918==--\r\n" + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['1389'] + Content-Type: [multipart/mixed; boundary================2394807418059992918==] + User-Agent: [azsdk-python-storage-blob/12.0.0b3 Python/3.7.0 (Windows-10-10.0.18362-SP0)] + x-ms-client-request-id: [96cda7d8-e4a0-11e9-af4f-ecb1d756380e] + x-ms-date: ['Tue, 01 Oct 2019 23:09:58 GMT'] + x-ms-version: ['2019-02-02'] + method: POST + uri: https://blobstoragename.blob.core.windows.net/?comp=batch + response: + body: {string: "--batchresponse_a1625dda-b13b-46f0-9207-538f1eb5a61d\r\nContent-Type: + application/http\r\nContent-ID: 0\r\n\r\nHTTP/1.1 200 OK\r\nx-ms-request-id: + b956c51e-e01e-004f-7fad-78a0181e3db5\r\nx-ms-version: 2019-02-02\r\nx-ms-client-request-id: + 96cd59be-e4a0-11e9-8a0d-ecb1d756380e\r\nServer: Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_a1625dda-b13b-46f0-9207-538f1eb5a61d\r\nContent-Type: + application/http\r\nContent-ID: 1\r\n\r\nHTTP/1.1 200 OK\r\nx-ms-request-id: + b956c51e-e01e-004f-7fad-78a0181e3db6\r\nx-ms-version: 2019-02-02\r\nx-ms-client-request-id: + 96cd59bf-e4a0-11e9-a515-ecb1d756380e\r\nServer: Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_a1625dda-b13b-46f0-9207-538f1eb5a61d\r\nContent-Type: + application/http\r\nContent-ID: 2\r\n\r\nHTTP/1.1 200 OK\r\nx-ms-request-id: + b956c51e-e01e-004f-7fad-78a0181e3db7\r\nx-ms-version: 2019-02-02\r\nx-ms-client-request-id: + 96cd59c0-e4a0-11e9-b749-ecb1d756380e\r\nServer: Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_a1625dda-b13b-46f0-9207-538f1eb5a61d--"} + headers: + Content-Type: [multipart/mixed; boundary=batchresponse_a1625dda-b13b-46f0-9207-538f1eb5a61d] + Date: ['Tue, 01 Oct 2019 23:09:58 GMT'] + Server: [Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0] + Transfer-Encoding: [chunked] + x-ms-client-request-id: [96cda7d8-e4a0-11e9-af4f-ecb1d756380e] + x-ms-request-id: [b956c51e-e01e-004f-7fad-78a018000000] + x-ms-version: ['2019-02-02'] + status: {code: 202, message: Accepted} +- request: + body: null + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + User-Agent: [azsdk-python-storage-blob/12.0.0b3 Python/3.7.0 (Windows-10-10.0.18362-SP0)] + content-type: [application/xml; charset=utf-8] + x-ms-client-request-id: [96d91990-e4a0-11e9-8b24-ecb1d756380e] + x-ms-date: ['Tue, 01 Oct 2019 23:09:58 GMT'] + x-ms-version: ['2019-02-02'] + method: HEAD + uri: https://blobstoragename.blob.core.windows.net/containera687174a/blob1 + response: + body: {string: ''} + headers: + Accept-Ranges: [bytes] + Content-Length: ['11'] + Content-MD5: [XrY7u+Ae7tCTyyK7j1rNww==] + Content-Type: [application/octet-stream] + Date: ['Tue, 01 Oct 2019 23:09:58 GMT'] + ETag: ['"0x8D746C47ADA581A"'] + Last-Modified: ['Tue, 01 Oct 2019 23:09:58 GMT'] + Server: [Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0] + Vary: [Origin] + x-ms-access-tier: [Hot] + x-ms-access-tier-change-time: ['Tue, 01 Oct 2019 23:09:58 GMT'] + x-ms-blob-type: [BlockBlob] + x-ms-client-request-id: [96d91990-e4a0-11e9-8b24-ecb1d756380e] + x-ms-creation-time: ['Tue, 01 Oct 2019 23:09:58 GMT'] + x-ms-lease-state: [available] + x-ms-lease-status: [unlocked] + x-ms-request-id: [b956c543-e01e-004f-22ad-78a018000000] + x-ms-server-encrypted: ['true'] + x-ms-version: ['2019-02-02'] + status: {code: 200, message: OK} +- request: + body: "--===============0599617762988954062==\r\nContent-Type: application/http\r\nContent-Transfer-Encoding: + binary\r\nContent-ID: 0\r\n\r\nDELETE /containera687174a/blob1? HTTP/1.1\r\nx-ms-date: + Tue, 01 Oct 2019 23:09:58 GMT\r\nx-ms-client-request-id: 96e50068-e4a0-11e9-b110-ecb1d756380e\r\ncontent-type: + application/xml; charset=utf-8\r\nAuthorization: SharedKey blobstoragename:4FyA3HgDLUwnSV9PXPv7+ojs5msvPoouI/Bm/Iaglqo=\r\n\r\n\r\n--===============0599617762988954062==\r\nContent-Type: + application/http\r\nContent-Transfer-Encoding: binary\r\nContent-ID: 1\r\n\r\nDELETE + /containera687174a/blob2? HTTP/1.1\r\nx-ms-date: Tue, 01 Oct 2019 23:09:58 GMT\r\nx-ms-client-request-id: + 96e50069-e4a0-11e9-9136-ecb1d756380e\r\ncontent-type: application/xml; charset=utf-8\r\nAuthorization: + SharedKey blobstoragename:r86YSDGW2DJOU/4veQDRFp64rqFdaN3DPcgHHNkGm/g=\r\n\r\n\r\n--===============0599617762988954062==\r\nContent-Type: + application/http\r\nContent-Transfer-Encoding: binary\r\nContent-ID: 2\r\n\r\nDELETE + /containera687174a/blob3? HTTP/1.1\r\nx-ms-date: Tue, 01 Oct 2019 23:09:58 GMT\r\nx-ms-client-request-id: + 96e52778-e4a0-11e9-9d69-ecb1d756380e\r\ncontent-type: application/xml; charset=utf-8\r\nAuthorization: + SharedKey blobstoragename:Bx1MOFohb0JIrY8FNUrWxDuBCJVhNj+J02l8EvjREIQ=\r\n\r\n\r\n--===============0599617762988954062==--\r\n" + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['1245'] + Content-Type: [multipart/mixed; boundary================0599617762988954062==] + User-Agent: [azsdk-python-storage-blob/12.0.0b3 Python/3.7.0 (Windows-10-10.0.18362-SP0)] + x-ms-client-request-id: [96e5eac8-e4a0-11e9-8295-ecb1d756380e] + x-ms-date: ['Tue, 01 Oct 2019 23:09:58 GMT'] + x-ms-version: ['2019-02-02'] + method: POST + uri: https://blobstoragename.blob.core.windows.net/?comp=batch + response: + body: {string: "--batchresponse_1e2f841c-ca1d-4dcf-910b-06534c9bbaec\r\nContent-Type: + application/http\r\nContent-ID: 0\r\n\r\nHTTP/1.1 202 Accepted\r\nx-ms-delete-type-permanent: + true\r\nx-ms-request-id: b956c566-e01e-004f-41ad-78a0181e3dbb\r\nx-ms-version: + 2019-02-02\r\nx-ms-client-request-id: 96e50068-e4a0-11e9-b110-ecb1d756380e\r\nServer: + Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_1e2f841c-ca1d-4dcf-910b-06534c9bbaec\r\nContent-Type: + application/http\r\nContent-ID: 1\r\n\r\nHTTP/1.1 202 Accepted\r\nx-ms-delete-type-permanent: + true\r\nx-ms-request-id: b956c566-e01e-004f-41ad-78a0181e3dbc\r\nx-ms-version: + 2019-02-02\r\nx-ms-client-request-id: 96e50069-e4a0-11e9-9136-ecb1d756380e\r\nServer: + Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_1e2f841c-ca1d-4dcf-910b-06534c9bbaec\r\nContent-Type: + application/http\r\nContent-ID: 2\r\n\r\nHTTP/1.1 202 Accepted\r\nx-ms-delete-type-permanent: + true\r\nx-ms-request-id: b956c566-e01e-004f-41ad-78a0181e3dbd\r\nx-ms-version: + 2019-02-02\r\nx-ms-client-request-id: 96e52778-e4a0-11e9-9d69-ecb1d756380e\r\nServer: + Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_1e2f841c-ca1d-4dcf-910b-06534c9bbaec--"} + headers: + Content-Type: [multipart/mixed; boundary=batchresponse_1e2f841c-ca1d-4dcf-910b-06534c9bbaec] + Date: ['Tue, 01 Oct 2019 23:09:58 GMT'] + Server: [Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0] + Transfer-Encoding: [chunked] + x-ms-client-request-id: [96e5eac8-e4a0-11e9-8295-ecb1d756380e] + x-ms-request-id: [b956c566-e01e-004f-41ad-78a018000000] + x-ms-version: ['2019-02-02'] + status: {code: 202, message: Accepted} +version: 1 diff --git a/sdk/storage/azure-storage-blob/tests/recordings/test_container_async.test_standard_blob_tier_set_tier_api_batch.yaml b/sdk/storage/azure-storage-blob/tests/recordings/test_container_async.test_standard_blob_tier_set_tier_api_batch.yaml new file mode 100644 index 000000000000..db8a1662e63f --- /dev/null +++ b/sdk/storage/azure-storage-blob/tests/recordings/test_container_async.test_standard_blob_tier_set_tier_api_batch.yaml @@ -0,0 +1,967 @@ +interactions: +- request: + body: null + headers: + User-Agent: [azsdk-python-storage-blob/12.0.0b3 Python/3.7.0 (Windows-10-10.0.18362-SP0)] + content-type: [application/xml; charset=utf-8] + x-ms-client-request-id: [971d2770-e4a0-11e9-b0e5-ecb1d756380e] + x-ms-date: ['Tue, 01 Oct 2019 23:09:59 GMT'] + x-ms-version: ['2019-02-02'] + method: PUT + uri: https://blobstoragename.blob.core.windows.net/container3d7c19c7?restype=container + response: + body: {string: ''} + headers: + ? !!python/object/new:multidict._istr.istr [Content-Length] + : '0' + ? !!python/object/new:multidict._istr.istr [Date] + : Tue, 01 Oct 2019 23:09:58 GMT + ? !!python/object/new:multidict._istr.istr [Etag] + : '"0x8D746C47B67CBA2"' + ? !!python/object/new:multidict._istr.istr [Last-Modified] + : Tue, 01 Oct 2019 23:09:59 GMT + ? !!python/object/new:multidict._istr.istr [Server] + : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-client-request-id: 971d2770-e4a0-11e9-b0e5-ecb1d756380e + x-ms-request-id: cdb9c17f-901e-0062-12ad-7823d8000000 + x-ms-version: '2019-02-02' + status: {code: 201, message: Created} + url: !!python/object/new:yarl.URL + state: !!python/tuple + - !!python/object/new:urllib.parse.SplitResult [https, amqptest.blob.core.windows.net, + /container3d7c19c7, restype=container, ''] +- request: + body: hello world + headers: + Content-Length: ['11'] + Content-Type: [application/octet-stream] + If-None-Match: ['*'] + User-Agent: [azsdk-python-storage-blob/12.0.0b3 Python/3.7.0 (Windows-10-10.0.18362-SP0)] + x-ms-blob-type: [BlockBlob] + x-ms-client-request-id: [9734320c-e4a0-11e9-901f-ecb1d756380e] + x-ms-date: ['Tue, 01 Oct 2019 23:09:59 GMT'] + x-ms-version: ['2019-02-02'] + method: PUT + uri: https://blobstoragename.blob.core.windows.net/container3d7c19c7/blob1 + response: + body: {string: ''} + headers: + ? !!python/object/new:multidict._istr.istr [Content-Length] + : '0' + ? !!python/object/new:multidict._istr.istr [Content-Md5] + : XrY7u+Ae7tCTyyK7j1rNww== + ? !!python/object/new:multidict._istr.istr [Date] + : Tue, 01 Oct 2019 23:09:58 GMT + ? !!python/object/new:multidict._istr.istr [Etag] + : '"0x8D746C47B6F1209"' + ? !!python/object/new:multidict._istr.istr [Last-Modified] + : Tue, 01 Oct 2019 23:09:59 GMT + ? !!python/object/new:multidict._istr.istr [Server] + : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-client-request-id: 9734320c-e4a0-11e9-901f-ecb1d756380e + x-ms-content-crc64: vo7q9sPVKY0= + x-ms-request-id: cdb9c193-901e-0062-23ad-7823d8000000 + x-ms-request-server-encrypted: 'true' + x-ms-version: '2019-02-02' + status: {code: 201, message: Created} + url: !!python/object/new:yarl.URL + state: !!python/tuple + - !!python/object/new:urllib.parse.SplitResult [https, amqptest.blob.core.windows.net, + /container3d7c19c7/blob1, '', ''] +- request: + body: hello world + headers: + Content-Length: ['11'] + Content-Type: [application/octet-stream] + If-None-Match: ['*'] + User-Agent: [azsdk-python-storage-blob/12.0.0b3 Python/3.7.0 (Windows-10-10.0.18362-SP0)] + x-ms-blob-type: [BlockBlob] + x-ms-client-request-id: [973b3786-e4a0-11e9-8645-ecb1d756380e] + x-ms-date: ['Tue, 01 Oct 2019 23:09:59 GMT'] + x-ms-version: ['2019-02-02'] + method: PUT + uri: https://blobstoragename.blob.core.windows.net/container3d7c19c7/blob2 + response: + body: {string: ''} + headers: + ? !!python/object/new:multidict._istr.istr [Content-Length] + : '0' + ? !!python/object/new:multidict._istr.istr [Content-Md5] + : XrY7u+Ae7tCTyyK7j1rNww== + ? !!python/object/new:multidict._istr.istr [Date] + : Tue, 01 Oct 2019 23:09:58 GMT + ? !!python/object/new:multidict._istr.istr [Etag] + : '"0x8D746C47B761830"' + ? !!python/object/new:multidict._istr.istr [Last-Modified] + : Tue, 01 Oct 2019 23:09:59 GMT + ? !!python/object/new:multidict._istr.istr [Server] + : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-client-request-id: 973b3786-e4a0-11e9-8645-ecb1d756380e + x-ms-content-crc64: vo7q9sPVKY0= + x-ms-request-id: cdb9c1b1-901e-0062-41ad-7823d8000000 + x-ms-request-server-encrypted: 'true' + x-ms-version: '2019-02-02' + status: {code: 201, message: Created} + url: !!python/object/new:yarl.URL + state: !!python/tuple + - !!python/object/new:urllib.parse.SplitResult [https, amqptest.blob.core.windows.net, + /container3d7c19c7/blob2, '', ''] +- request: + body: hello world + headers: + Content-Length: ['11'] + Content-Type: [application/octet-stream] + If-None-Match: ['*'] + User-Agent: [azsdk-python-storage-blob/12.0.0b3 Python/3.7.0 (Windows-10-10.0.18362-SP0)] + x-ms-blob-type: [BlockBlob] + x-ms-client-request-id: [974486ec-e4a0-11e9-8aee-ecb1d756380e] + x-ms-date: ['Tue, 01 Oct 2019 23:09:59 GMT'] + x-ms-version: ['2019-02-02'] + method: PUT + uri: https://blobstoragename.blob.core.windows.net/container3d7c19c7/blob3 + response: + body: {string: ''} + headers: + ? !!python/object/new:multidict._istr.istr [Content-Length] + : '0' + ? !!python/object/new:multidict._istr.istr [Content-Md5] + : XrY7u+Ae7tCTyyK7j1rNww== + ? !!python/object/new:multidict._istr.istr [Date] + : Tue, 01 Oct 2019 23:09:58 GMT + ? !!python/object/new:multidict._istr.istr [Etag] + : '"0x8D746C47B7F68B3"' + ? !!python/object/new:multidict._istr.istr [Last-Modified] + : Tue, 01 Oct 2019 23:09:59 GMT + ? !!python/object/new:multidict._istr.istr [Server] + : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-client-request-id: 974486ec-e4a0-11e9-8aee-ecb1d756380e + x-ms-content-crc64: vo7q9sPVKY0= + x-ms-request-id: cdb9c1cf-901e-0062-5dad-7823d8000000 + x-ms-request-server-encrypted: 'true' + x-ms-version: '2019-02-02' + status: {code: 201, message: Created} + url: !!python/object/new:yarl.URL + state: !!python/tuple + - !!python/object/new:urllib.parse.SplitResult [https, amqptest.blob.core.windows.net, + /container3d7c19c7/blob3, '', ''] +- request: + body: null + headers: + User-Agent: [azsdk-python-storage-blob/12.0.0b3 Python/3.7.0 (Windows-10-10.0.18362-SP0)] + content-type: [application/xml; charset=utf-8] + x-ms-client-request-id: [974a03dc-e4a0-11e9-81e1-ecb1d756380e] + x-ms-date: ['Tue, 01 Oct 2019 23:09:59 GMT'] + x-ms-version: ['2019-02-02'] + method: HEAD + uri: https://blobstoragename.blob.core.windows.net/container3d7c19c7/blob1 + response: + body: {string: ''} + headers: + ? !!python/object/new:multidict._istr.istr [Accept-Ranges] + : bytes + ? !!python/object/new:multidict._istr.istr [Content-Length] + : '11' + ? !!python/object/new:multidict._istr.istr [Content-Md5] + : XrY7u+Ae7tCTyyK7j1rNww== + ? !!python/object/new:multidict._istr.istr [Content-Type] + : application/octet-stream + ? !!python/object/new:multidict._istr.istr [Date] + : Tue, 01 Oct 2019 23:09:58 GMT + ? !!python/object/new:multidict._istr.istr [Etag] + : '"0x8D746C47B6F1209"' + ? !!python/object/new:multidict._istr.istr [Last-Modified] + : Tue, 01 Oct 2019 23:09:59 GMT + ? !!python/object/new:multidict._istr.istr [Server] + : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + ? !!python/object/new:multidict._istr.istr [Vary] + : Origin + x-ms-access-tier: Hot + x-ms-access-tier-inferred: 'true' + x-ms-blob-type: BlockBlob + x-ms-client-request-id: 974a03dc-e4a0-11e9-81e1-ecb1d756380e + x-ms-creation-time: Tue, 01 Oct 2019 23:09:59 GMT + x-ms-lease-state: available + x-ms-lease-status: unlocked + x-ms-request-id: cdb9c1e5-901e-0062-73ad-7823d8000000 + x-ms-server-encrypted: 'true' + x-ms-version: '2019-02-02' + status: {code: 200, message: OK} + url: !!python/object/new:yarl.URL + state: !!python/tuple + - !!python/object/new:urllib.parse.SplitResult [https, amqptest.blob.core.windows.net, + /container3d7c19c7/blob1, '', ''] +- request: + body: "--===============2657141673167319244==\r\nContent-Type: application/http\r\nContent-Transfer-Encoding: + binary\r\nContent-ID: 0\r\n\r\nPUT /container3d7c19c7/blob1?comp=tier HTTP/1.1\r\nContent-Length: + 0\r\nx-ms-access-tier: Archive\r\nx-ms-date: Tue, 01 Oct 2019 23:09:59 GMT\r\nx-ms-client-request-id: + 974f5b00-e4a0-11e9-bccf-ecb1d756380e\r\ncontent-type: application/xml; charset=utf-8\r\nAuthorization: + SharedKey blobstoragename:UgNbALGNxfAZsjMQJTGsN7/Cv2VEVGsgD6KuUzmNUUA=\r\n\r\n\r\n--===============2657141673167319244==\r\nContent-Type: + application/http\r\nContent-Transfer-Encoding: binary\r\nContent-ID: 1\r\n\r\nPUT + /container3d7c19c7/blob2?comp=tier HTTP/1.1\r\nContent-Length: 0\r\nx-ms-access-tier: + Archive\r\nx-ms-date: Tue, 01 Oct 2019 23:09:59 GMT\r\nx-ms-client-request-id: + 974f5b01-e4a0-11e9-baf5-ecb1d756380e\r\ncontent-type: application/xml; charset=utf-8\r\nAuthorization: + SharedKey blobstoragename:VdADADQ6oLAtfI5PgxWWU7lD3DIYb6vEHVgCFw7JA6w=\r\n\r\n\r\n--===============2657141673167319244==\r\nContent-Type: + application/http\r\nContent-Transfer-Encoding: binary\r\nContent-ID: 2\r\n\r\nPUT + /container3d7c19c7/blob3?comp=tier HTTP/1.1\r\nContent-Length: 0\r\nx-ms-access-tier: + Archive\r\nx-ms-date: Tue, 01 Oct 2019 23:09:59 GMT\r\nx-ms-client-request-id: + 974f5b02-e4a0-11e9-ac57-ecb1d756380e\r\ncontent-type: application/xml; charset=utf-8\r\nAuthorization: + SharedKey blobstoragename:9RXnssV7KAR8i2Zdzaw1aSaHWIMRVX6s/rmk5eao/Yk=\r\n\r\n\r\n--===============2657141673167319244==--\r\n" + headers: + Content-Length: ['1401'] + Content-Type: [multipart/mixed; boundary================2657141673167319244==] + User-Agent: [azsdk-python-storage-blob/12.0.0b3 Python/3.7.0 (Windows-10-10.0.18362-SP0)] + x-ms-client-request-id: [974ff802-e4a0-11e9-b37f-ecb1d756380e] + x-ms-date: ['Tue, 01 Oct 2019 23:09:59 GMT'] + x-ms-version: ['2019-02-02'] + method: POST + uri: https://blobstoragename.blob.core.windows.net/?comp=batch + response: + body: {string: "--batchresponse_80663267-7dac-4100-b117-27cbad8e0512\r\nContent-Type: + application/http\r\nContent-ID: 0\r\n\r\nHTTP/1.1 200 OK\r\nx-ms-request-id: + c7da7e1b-201e-001d-10ad-78bdea1e1b2d\r\nx-ms-version: 2019-02-02\r\nx-ms-client-request-id: + 974f5b00-e4a0-11e9-bccf-ecb1d756380e\r\nServer: Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_80663267-7dac-4100-b117-27cbad8e0512\r\nContent-Type: + application/http\r\nContent-ID: 1\r\n\r\nHTTP/1.1 200 OK\r\nx-ms-request-id: + c7da7e1b-201e-001d-10ad-78bdea1e1b31\r\nx-ms-version: 2019-02-02\r\nx-ms-client-request-id: + 974f5b01-e4a0-11e9-baf5-ecb1d756380e\r\nServer: Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_80663267-7dac-4100-b117-27cbad8e0512\r\nContent-Type: + application/http\r\nContent-ID: 2\r\n\r\nHTTP/1.1 200 OK\r\nx-ms-request-id: + c7da7e1b-201e-001d-10ad-78bdea1e1b32\r\nx-ms-version: 2019-02-02\r\nx-ms-client-request-id: + 974f5b02-e4a0-11e9-ac57-ecb1d756380e\r\nServer: Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_80663267-7dac-4100-b117-27cbad8e0512--"} + headers: + ? !!python/object/new:multidict._istr.istr [Content-Type] + : multipart/mixed; boundary=batchresponse_80663267-7dac-4100-b117-27cbad8e0512 + ? !!python/object/new:multidict._istr.istr [Date] + : Tue, 01 Oct 2019 23:09:59 GMT + ? !!python/object/new:multidict._istr.istr [Server] + : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + ? !!python/object/new:multidict._istr.istr [Transfer-Encoding] + : chunked + x-ms-client-request-id: 974ff802-e4a0-11e9-b37f-ecb1d756380e + x-ms-request-id: c7da7e1b-201e-001d-10ad-78bdea000000 + x-ms-version: '2019-02-02' + status: {code: 202, message: Accepted} + url: !!python/object/new:yarl.URL + state: !!python/tuple + - !!python/object/new:urllib.parse.SplitResult [https, amqptest.blob.core.windows.net, + /, comp=batch, ''] +- request: + body: null + headers: + User-Agent: [azsdk-python-storage-blob/12.0.0b3 Python/3.7.0 (Windows-10-10.0.18362-SP0)] + content-type: [application/xml; charset=utf-8] + x-ms-client-request-id: [97b23b9c-e4a0-11e9-ac45-ecb1d756380e] + x-ms-date: ['Tue, 01 Oct 2019 23:10:00 GMT'] + x-ms-version: ['2019-02-02'] + method: HEAD + uri: https://blobstoragename.blob.core.windows.net/container3d7c19c7/blob1 + response: + body: {string: ''} + headers: + ? !!python/object/new:multidict._istr.istr [Accept-Ranges] + : bytes + ? !!python/object/new:multidict._istr.istr [Content-Length] + : '11' + ? !!python/object/new:multidict._istr.istr [Content-Md5] + : XrY7u+Ae7tCTyyK7j1rNww== + ? !!python/object/new:multidict._istr.istr [Content-Type] + : application/octet-stream + ? !!python/object/new:multidict._istr.istr [Date] + : Tue, 01 Oct 2019 23:09:59 GMT + ? !!python/object/new:multidict._istr.istr [Etag] + : '"0x8D746C47B6F1209"' + ? !!python/object/new:multidict._istr.istr [Last-Modified] + : Tue, 01 Oct 2019 23:09:59 GMT + ? !!python/object/new:multidict._istr.istr [Server] + : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + ? !!python/object/new:multidict._istr.istr [Vary] + : Origin + x-ms-access-tier: Archive + x-ms-access-tier-change-time: Tue, 01 Oct 2019 23:10:00 GMT + x-ms-blob-type: BlockBlob + x-ms-client-request-id: 97b23b9c-e4a0-11e9-ac45-ecb1d756380e + x-ms-creation-time: Tue, 01 Oct 2019 23:09:59 GMT + x-ms-lease-state: available + x-ms-lease-status: unlocked + x-ms-request-id: c7da7f79-201e-001d-57ad-78bdea000000 + x-ms-server-encrypted: 'true' + x-ms-version: '2019-02-02' + status: {code: 200, message: OK} + url: !!python/object/new:yarl.URL + state: !!python/tuple + - !!python/object/new:urllib.parse.SplitResult [https, amqptest.blob.core.windows.net, + /container3d7c19c7/blob1, '', ''] +- request: + body: "--===============7100987078886734795==\r\nContent-Type: application/http\r\nContent-Transfer-Encoding: + binary\r\nContent-ID: 0\r\n\r\nDELETE /container3d7c19c7/blob1? HTTP/1.1\r\nx-ms-date: + Tue, 01 Oct 2019 23:10:00 GMT\r\nx-ms-client-request-id: 97b8cb40-e4a0-11e9-b4ea-ecb1d756380e\r\ncontent-type: + application/xml; charset=utf-8\r\nAuthorization: SharedKey blobstoragename:ddccGFj4Vso5ky9ly20fxAD2hDYZo/iwvAUhujNV47k=\r\n\r\n\r\n--===============7100987078886734795==\r\nContent-Type: + application/http\r\nContent-Transfer-Encoding: binary\r\nContent-ID: 1\r\n\r\nDELETE + /container3d7c19c7/blob2? HTTP/1.1\r\nx-ms-date: Tue, 01 Oct 2019 23:10:00 GMT\r\nx-ms-client-request-id: + 97b8f252-e4a0-11e9-a530-ecb1d756380e\r\ncontent-type: application/xml; charset=utf-8\r\nAuthorization: + SharedKey blobstoragename:Abkk5IHddZMGSNgAN4gZJv5UZZyzG8fmBkO/n5jrIow=\r\n\r\n\r\n--===============7100987078886734795==\r\nContent-Type: + application/http\r\nContent-Transfer-Encoding: binary\r\nContent-ID: 2\r\n\r\nDELETE + /container3d7c19c7/blob3? HTTP/1.1\r\nx-ms-date: Tue, 01 Oct 2019 23:10:00 GMT\r\nx-ms-client-request-id: + 97b8f253-e4a0-11e9-b6df-ecb1d756380e\r\ncontent-type: application/xml; charset=utf-8\r\nAuthorization: + SharedKey blobstoragename:hAzr6uIYG3DvLbvPklwINZ87D5BL1zyw1k9AFuifmps=\r\n\r\n\r\n--===============7100987078886734795==--\r\n" + headers: + Content-Length: ['1245'] + Content-Type: [multipart/mixed; boundary================7100987078886734795==] + User-Agent: [azsdk-python-storage-blob/12.0.0b3 Python/3.7.0 (Windows-10-10.0.18362-SP0)] + x-ms-client-request-id: [97b9407e-e4a0-11e9-a40d-ecb1d756380e] + x-ms-date: ['Tue, 01 Oct 2019 23:10:00 GMT'] + x-ms-version: ['2019-02-02'] + method: POST + uri: https://blobstoragename.blob.core.windows.net/?comp=batch + response: + body: {string: "--batchresponse_b1a56578-a159-435d-9af2-b36c62e913e2\r\nContent-Type: + application/http\r\nContent-ID: 0\r\n\r\nHTTP/1.1 202 Accepted\r\nx-ms-delete-type-permanent: + true\r\nx-ms-request-id: ee1fa87e-601e-00bb-37ad-7885f41e3e79\r\nx-ms-version: + 2019-02-02\r\nx-ms-client-request-id: 97b8cb40-e4a0-11e9-b4ea-ecb1d756380e\r\nServer: + Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_b1a56578-a159-435d-9af2-b36c62e913e2\r\nContent-Type: + application/http\r\nContent-ID: 1\r\n\r\nHTTP/1.1 202 Accepted\r\nx-ms-delete-type-permanent: + true\r\nx-ms-request-id: ee1fa87e-601e-00bb-37ad-7885f41e3e7b\r\nx-ms-version: + 2019-02-02\r\nx-ms-client-request-id: 97b8f252-e4a0-11e9-a530-ecb1d756380e\r\nServer: + Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_b1a56578-a159-435d-9af2-b36c62e913e2\r\nContent-Type: + application/http\r\nContent-ID: 2\r\n\r\nHTTP/1.1 202 Accepted\r\nx-ms-delete-type-permanent: + true\r\nx-ms-request-id: ee1fa87e-601e-00bb-37ad-7885f41e3e7c\r\nx-ms-version: + 2019-02-02\r\nx-ms-client-request-id: 97b8f253-e4a0-11e9-b6df-ecb1d756380e\r\nServer: + Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_b1a56578-a159-435d-9af2-b36c62e913e2--"} + headers: + ? !!python/object/new:multidict._istr.istr [Content-Type] + : multipart/mixed; boundary=batchresponse_b1a56578-a159-435d-9af2-b36c62e913e2 + ? !!python/object/new:multidict._istr.istr [Date] + : Tue, 01 Oct 2019 23:09:59 GMT + ? !!python/object/new:multidict._istr.istr [Server] + : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + ? !!python/object/new:multidict._istr.istr [Transfer-Encoding] + : chunked + x-ms-client-request-id: 97b9407e-e4a0-11e9-a40d-ecb1d756380e + x-ms-request-id: ee1fa87e-601e-00bb-37ad-7885f4000000 + x-ms-version: '2019-02-02' + status: {code: 202, message: Accepted} + url: !!python/object/new:yarl.URL + state: !!python/tuple + - !!python/object/new:urllib.parse.SplitResult [https, amqptest.blob.core.windows.net, + /, comp=batch, ''] +- request: + body: hello world + headers: + Content-Length: ['11'] + Content-Type: [application/octet-stream] + If-None-Match: ['*'] + User-Agent: [azsdk-python-storage-blob/12.0.0b3 Python/3.7.0 (Windows-10-10.0.18362-SP0)] + x-ms-blob-type: [BlockBlob] + x-ms-client-request-id: [97d1f9de-e4a0-11e9-b897-ecb1d756380e] + x-ms-date: ['Tue, 01 Oct 2019 23:10:00 GMT'] + x-ms-version: ['2019-02-02'] + method: PUT + uri: https://blobstoragename.blob.core.windows.net/container3d7c19c7/blob1 + response: + body: {string: ''} + headers: + ? !!python/object/new:multidict._istr.istr [Content-Length] + : '0' + ? !!python/object/new:multidict._istr.istr [Content-Md5] + : XrY7u+Ae7tCTyyK7j1rNww== + ? !!python/object/new:multidict._istr.istr [Date] + : Tue, 01 Oct 2019 23:09:59 GMT + ? !!python/object/new:multidict._istr.istr [Etag] + : '"0x8D746C47C0D6AB1"' + ? !!python/object/new:multidict._istr.istr [Last-Modified] + : Tue, 01 Oct 2019 23:10:00 GMT + ? !!python/object/new:multidict._istr.istr [Server] + : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-client-request-id: 97d1f9de-e4a0-11e9-b897-ecb1d756380e + x-ms-content-crc64: vo7q9sPVKY0= + x-ms-request-id: ee1fa8b6-601e-00bb-6ead-7885f4000000 + x-ms-request-server-encrypted: 'true' + x-ms-version: '2019-02-02' + status: {code: 201, message: Created} + url: !!python/object/new:yarl.URL + state: !!python/tuple + - !!python/object/new:urllib.parse.SplitResult [https, amqptest.blob.core.windows.net, + /container3d7c19c7/blob1, '', ''] +- request: + body: hello world + headers: + Content-Length: ['11'] + Content-Type: [application/octet-stream] + If-None-Match: ['*'] + User-Agent: [azsdk-python-storage-blob/12.0.0b3 Python/3.7.0 (Windows-10-10.0.18362-SP0)] + x-ms-blob-type: [BlockBlob] + x-ms-client-request-id: [97d999b6-e4a0-11e9-a264-ecb1d756380e] + x-ms-date: ['Tue, 01 Oct 2019 23:10:00 GMT'] + x-ms-version: ['2019-02-02'] + method: PUT + uri: https://blobstoragename.blob.core.windows.net/container3d7c19c7/blob2 + response: + body: {string: ''} + headers: + ? !!python/object/new:multidict._istr.istr [Content-Length] + : '0' + ? !!python/object/new:multidict._istr.istr [Content-Md5] + : XrY7u+Ae7tCTyyK7j1rNww== + ? !!python/object/new:multidict._istr.istr [Date] + : Tue, 01 Oct 2019 23:10:00 GMT + ? !!python/object/new:multidict._istr.istr [Etag] + : '"0x8D746C47C14BF06"' + ? !!python/object/new:multidict._istr.istr [Last-Modified] + : Tue, 01 Oct 2019 23:10:00 GMT + ? !!python/object/new:multidict._istr.istr [Server] + : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-client-request-id: 97d999b6-e4a0-11e9-a264-ecb1d756380e + x-ms-content-crc64: vo7q9sPVKY0= + x-ms-request-id: ee1fa8e2-601e-00bb-15ad-7885f4000000 + x-ms-request-server-encrypted: 'true' + x-ms-version: '2019-02-02' + status: {code: 201, message: Created} + url: !!python/object/new:yarl.URL + state: !!python/tuple + - !!python/object/new:urllib.parse.SplitResult [https, amqptest.blob.core.windows.net, + /container3d7c19c7/blob2, '', ''] +- request: + body: hello world + headers: + Content-Length: ['11'] + Content-Type: [application/octet-stream] + If-None-Match: ['*'] + User-Agent: [azsdk-python-storage-blob/12.0.0b3 Python/3.7.0 (Windows-10-10.0.18362-SP0)] + x-ms-blob-type: [BlockBlob] + x-ms-client-request-id: [97e1fe18-e4a0-11e9-bff0-ecb1d756380e] + x-ms-date: ['Tue, 01 Oct 2019 23:10:00 GMT'] + x-ms-version: ['2019-02-02'] + method: PUT + uri: https://blobstoragename.blob.core.windows.net/container3d7c19c7/blob3 + response: + body: {string: ''} + headers: + ? !!python/object/new:multidict._istr.istr [Content-Length] + : '0' + ? !!python/object/new:multidict._istr.istr [Content-Md5] + : XrY7u+Ae7tCTyyK7j1rNww== + ? !!python/object/new:multidict._istr.istr [Date] + : Tue, 01 Oct 2019 23:10:00 GMT + ? !!python/object/new:multidict._istr.istr [Etag] + : '"0x8D746C47C1D24FA"' + ? !!python/object/new:multidict._istr.istr [Last-Modified] + : Tue, 01 Oct 2019 23:10:00 GMT + ? !!python/object/new:multidict._istr.istr [Server] + : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-client-request-id: 97e1fe18-e4a0-11e9-bff0-ecb1d756380e + x-ms-content-crc64: vo7q9sPVKY0= + x-ms-request-id: ee1fa915-601e-00bb-43ad-7885f4000000 + x-ms-request-server-encrypted: 'true' + x-ms-version: '2019-02-02' + status: {code: 201, message: Created} + url: !!python/object/new:yarl.URL + state: !!python/tuple + - !!python/object/new:urllib.parse.SplitResult [https, amqptest.blob.core.windows.net, + /container3d7c19c7/blob3, '', ''] +- request: + body: null + headers: + User-Agent: [azsdk-python-storage-blob/12.0.0b3 Python/3.7.0 (Windows-10-10.0.18362-SP0)] + content-type: [application/xml; charset=utf-8] + x-ms-client-request-id: [97e7a37e-e4a0-11e9-a7de-ecb1d756380e] + x-ms-date: ['Tue, 01 Oct 2019 23:10:00 GMT'] + x-ms-version: ['2019-02-02'] + method: HEAD + uri: https://blobstoragename.blob.core.windows.net/container3d7c19c7/blob1 + response: + body: {string: ''} + headers: + ? !!python/object/new:multidict._istr.istr [Accept-Ranges] + : bytes + ? !!python/object/new:multidict._istr.istr [Content-Length] + : '11' + ? !!python/object/new:multidict._istr.istr [Content-Md5] + : XrY7u+Ae7tCTyyK7j1rNww== + ? !!python/object/new:multidict._istr.istr [Content-Type] + : application/octet-stream + ? !!python/object/new:multidict._istr.istr [Date] + : Tue, 01 Oct 2019 23:10:00 GMT + ? !!python/object/new:multidict._istr.istr [Etag] + : '"0x8D746C47C0D6AB1"' + ? !!python/object/new:multidict._istr.istr [Last-Modified] + : Tue, 01 Oct 2019 23:10:00 GMT + ? !!python/object/new:multidict._istr.istr [Server] + : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + ? !!python/object/new:multidict._istr.istr [Vary] + : Origin + x-ms-access-tier: Hot + x-ms-access-tier-inferred: 'true' + x-ms-blob-type: BlockBlob + x-ms-client-request-id: 97e7a37e-e4a0-11e9-a7de-ecb1d756380e + x-ms-creation-time: Tue, 01 Oct 2019 23:10:00 GMT + x-ms-lease-state: available + x-ms-lease-status: unlocked + x-ms-request-id: ee1fa936-601e-00bb-63ad-7885f4000000 + x-ms-server-encrypted: 'true' + x-ms-version: '2019-02-02' + status: {code: 200, message: OK} + url: !!python/object/new:yarl.URL + state: !!python/tuple + - !!python/object/new:urllib.parse.SplitResult [https, amqptest.blob.core.windows.net, + /container3d7c19c7/blob1, '', ''] +- request: + body: "--===============8042958973566435161==\r\nContent-Type: application/http\r\nContent-Transfer-Encoding: + binary\r\nContent-ID: 0\r\n\r\nPUT /container3d7c19c7/blob1?comp=tier HTTP/1.1\r\nContent-Length: + 0\r\nx-ms-access-tier: Cool\r\nx-ms-date: Tue, 01 Oct 2019 23:10:00 GMT\r\nx-ms-client-request-id: + 97ecfab8-e4a0-11e9-862b-ecb1d756380e\r\ncontent-type: application/xml; charset=utf-8\r\nAuthorization: + SharedKey blobstoragename:TEGoiM4SbsGxmJUq72JebAk3AUWNYRZGDMypd3TiBqQ=\r\n\r\n\r\n--===============8042958973566435161==\r\nContent-Type: + application/http\r\nContent-Transfer-Encoding: binary\r\nContent-ID: 1\r\n\r\nPUT + /container3d7c19c7/blob2?comp=tier HTTP/1.1\r\nContent-Length: 0\r\nx-ms-access-tier: + Cool\r\nx-ms-date: Tue, 01 Oct 2019 23:10:00 GMT\r\nx-ms-client-request-id: + 97ecfab9-e4a0-11e9-b2a0-ecb1d756380e\r\ncontent-type: application/xml; charset=utf-8\r\nAuthorization: + SharedKey blobstoragename:mSXbi3qn2q+LHyE4/wqPUMHIiv24SgYQ0pqbHjrcwlA=\r\n\r\n\r\n--===============8042958973566435161==\r\nContent-Type: + application/http\r\nContent-Transfer-Encoding: binary\r\nContent-ID: 2\r\n\r\nPUT + /container3d7c19c7/blob3?comp=tier HTTP/1.1\r\nContent-Length: 0\r\nx-ms-access-tier: + Cool\r\nx-ms-date: Tue, 01 Oct 2019 23:10:00 GMT\r\nx-ms-client-request-id: + 97ed21d4-e4a0-11e9-8c88-ecb1d756380e\r\ncontent-type: application/xml; charset=utf-8\r\nAuthorization: + SharedKey blobstoragename:DfjEifMPY6UqZGqS+7SuCcVae2eA+XwJEmbYH8WOKfc=\r\n\r\n\r\n--===============8042958973566435161==--\r\n" + headers: + Content-Length: ['1392'] + Content-Type: [multipart/mixed; boundary================8042958973566435161==] + User-Agent: [azsdk-python-storage-blob/12.0.0b3 Python/3.7.0 (Windows-10-10.0.18362-SP0)] + x-ms-client-request-id: [97ed6fd0-e4a0-11e9-a3a3-ecb1d756380e] + x-ms-date: ['Tue, 01 Oct 2019 23:10:00 GMT'] + x-ms-version: ['2019-02-02'] + method: POST + uri: https://blobstoragename.blob.core.windows.net/?comp=batch + response: + body: {string: "--batchresponse_ed00faea-60f3-40b9-9173-b9a12d75a74c\r\nContent-Type: + application/http\r\nContent-ID: 0\r\n\r\nHTTP/1.1 200 OK\r\nx-ms-request-id: + 0ea8a4fa-501e-007f-23ad-78fa321e3138\r\nx-ms-version: 2019-02-02\r\nx-ms-client-request-id: + 97ecfab8-e4a0-11e9-862b-ecb1d756380e\r\nServer: Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_ed00faea-60f3-40b9-9173-b9a12d75a74c\r\nContent-Type: + application/http\r\nContent-ID: 1\r\n\r\nHTTP/1.1 200 OK\r\nx-ms-request-id: + 0ea8a4fa-501e-007f-23ad-78fa321e313a\r\nx-ms-version: 2019-02-02\r\nx-ms-client-request-id: + 97ecfab9-e4a0-11e9-b2a0-ecb1d756380e\r\nServer: Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_ed00faea-60f3-40b9-9173-b9a12d75a74c\r\nContent-Type: + application/http\r\nContent-ID: 2\r\n\r\nHTTP/1.1 200 OK\r\nx-ms-request-id: + 0ea8a4fa-501e-007f-23ad-78fa321e313b\r\nx-ms-version: 2019-02-02\r\nx-ms-client-request-id: + 97ed21d4-e4a0-11e9-8c88-ecb1d756380e\r\nServer: Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_ed00faea-60f3-40b9-9173-b9a12d75a74c--"} + headers: + ? !!python/object/new:multidict._istr.istr [Content-Type] + : multipart/mixed; boundary=batchresponse_ed00faea-60f3-40b9-9173-b9a12d75a74c + ? !!python/object/new:multidict._istr.istr [Date] + : Tue, 01 Oct 2019 23:10:00 GMT + ? !!python/object/new:multidict._istr.istr [Server] + : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + ? !!python/object/new:multidict._istr.istr [Transfer-Encoding] + : chunked + x-ms-client-request-id: 97ed6fd0-e4a0-11e9-a3a3-ecb1d756380e + x-ms-request-id: 0ea8a4fa-501e-007f-23ad-78fa32000000 + x-ms-version: '2019-02-02' + status: {code: 202, message: Accepted} + url: !!python/object/new:yarl.URL + state: !!python/tuple + - !!python/object/new:urllib.parse.SplitResult [https, amqptest.blob.core.windows.net, + /, comp=batch, ''] +- request: + body: null + headers: + User-Agent: [azsdk-python-storage-blob/12.0.0b3 Python/3.7.0 (Windows-10-10.0.18362-SP0)] + content-type: [application/xml; charset=utf-8] + x-ms-client-request-id: [982ac73e-e4a0-11e9-a2c4-ecb1d756380e] + x-ms-date: ['Tue, 01 Oct 2019 23:10:01 GMT'] + x-ms-version: ['2019-02-02'] + method: HEAD + uri: https://blobstoragename.blob.core.windows.net/container3d7c19c7/blob1 + response: + body: {string: ''} + headers: + ? !!python/object/new:multidict._istr.istr [Accept-Ranges] + : bytes + ? !!python/object/new:multidict._istr.istr [Content-Length] + : '11' + ? !!python/object/new:multidict._istr.istr [Content-Md5] + : XrY7u+Ae7tCTyyK7j1rNww== + ? !!python/object/new:multidict._istr.istr [Content-Type] + : application/octet-stream + ? !!python/object/new:multidict._istr.istr [Date] + : Tue, 01 Oct 2019 23:10:00 GMT + ? !!python/object/new:multidict._istr.istr [Etag] + : '"0x8D746C47C0D6AB1"' + ? !!python/object/new:multidict._istr.istr [Last-Modified] + : Tue, 01 Oct 2019 23:10:00 GMT + ? !!python/object/new:multidict._istr.istr [Server] + : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + ? !!python/object/new:multidict._istr.istr [Vary] + : Origin + x-ms-access-tier: Cool + x-ms-access-tier-change-time: Tue, 01 Oct 2019 23:10:01 GMT + x-ms-blob-type: BlockBlob + x-ms-client-request-id: 982ac73e-e4a0-11e9-a2c4-ecb1d756380e + x-ms-creation-time: Tue, 01 Oct 2019 23:10:00 GMT + x-ms-lease-state: available + x-ms-lease-status: unlocked + x-ms-request-id: 0ea8a592-501e-007f-32ad-78fa32000000 + x-ms-server-encrypted: 'true' + x-ms-version: '2019-02-02' + status: {code: 200, message: OK} + url: !!python/object/new:yarl.URL + state: !!python/tuple + - !!python/object/new:urllib.parse.SplitResult [https, amqptest.blob.core.windows.net, + /container3d7c19c7/blob1, '', ''] +- request: + body: "--===============6155931473208570575==\r\nContent-Type: application/http\r\nContent-Transfer-Encoding: + binary\r\nContent-ID: 0\r\n\r\nDELETE /container3d7c19c7/blob1? HTTP/1.1\r\nx-ms-date: + Tue, 01 Oct 2019 23:10:01 GMT\r\nx-ms-client-request-id: 983108ca-e4a0-11e9-9ea8-ecb1d756380e\r\ncontent-type: + application/xml; charset=utf-8\r\nAuthorization: SharedKey blobstoragename:XB8Wszs9LpxMitCwz/TPq9E4Lq08go0XgIE9YqM6+ws=\r\n\r\n\r\n--===============6155931473208570575==\r\nContent-Type: + application/http\r\nContent-Transfer-Encoding: binary\r\nContent-ID: 1\r\n\r\nDELETE + /container3d7c19c7/blob2? HTTP/1.1\r\nx-ms-date: Tue, 01 Oct 2019 23:10:01 GMT\r\nx-ms-client-request-id: + 98312fc2-e4a0-11e9-abce-ecb1d756380e\r\ncontent-type: application/xml; charset=utf-8\r\nAuthorization: + SharedKey blobstoragename:6nugNjvfF/NQrUyfrjnY0DpqBeiRi27oOZiGVjt7owc=\r\n\r\n\r\n--===============6155931473208570575==\r\nContent-Type: + application/http\r\nContent-Transfer-Encoding: binary\r\nContent-ID: 2\r\n\r\nDELETE + /container3d7c19c7/blob3? HTTP/1.1\r\nx-ms-date: Tue, 01 Oct 2019 23:10:01 GMT\r\nx-ms-client-request-id: + 98312fc3-e4a0-11e9-9de1-ecb1d756380e\r\ncontent-type: application/xml; charset=utf-8\r\nAuthorization: + SharedKey blobstoragename:M+WBLu1o3hFP+q8y3ckPV0UyB1le8jheGNYxmny7LLk=\r\n\r\n\r\n--===============6155931473208570575==--\r\n" + headers: + Content-Length: ['1245'] + Content-Type: [multipart/mixed; boundary================6155931473208570575==] + User-Agent: [azsdk-python-storage-blob/12.0.0b3 Python/3.7.0 (Windows-10-10.0.18362-SP0)] + x-ms-client-request-id: [9831f322-e4a0-11e9-8ef6-ecb1d756380e] + x-ms-date: ['Tue, 01 Oct 2019 23:10:01 GMT'] + x-ms-version: ['2019-02-02'] + method: POST + uri: https://blobstoragename.blob.core.windows.net/?comp=batch + response: + body: {string: "--batchresponse_1d2bc589-248e-4226-a4b5-fd1b76779153\r\nContent-Type: + application/http\r\nContent-ID: 0\r\n\r\nHTTP/1.1 202 Accepted\r\nx-ms-delete-type-permanent: + true\r\nx-ms-request-id: b956cbb0-e01e-004f-1dad-78a0181e3e01\r\nx-ms-version: + 2019-02-02\r\nx-ms-client-request-id: 983108ca-e4a0-11e9-9ea8-ecb1d756380e\r\nServer: + Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_1d2bc589-248e-4226-a4b5-fd1b76779153\r\nContent-Type: + application/http\r\nContent-ID: 1\r\n\r\nHTTP/1.1 202 Accepted\r\nx-ms-delete-type-permanent: + true\r\nx-ms-request-id: b956cbb0-e01e-004f-1dad-78a0181e3e03\r\nx-ms-version: + 2019-02-02\r\nx-ms-client-request-id: 98312fc2-e4a0-11e9-abce-ecb1d756380e\r\nServer: + Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_1d2bc589-248e-4226-a4b5-fd1b76779153\r\nContent-Type: + application/http\r\nContent-ID: 2\r\n\r\nHTTP/1.1 202 Accepted\r\nx-ms-delete-type-permanent: + true\r\nx-ms-request-id: b956cbb0-e01e-004f-1dad-78a0181e3e04\r\nx-ms-version: + 2019-02-02\r\nx-ms-client-request-id: 98312fc3-e4a0-11e9-9de1-ecb1d756380e\r\nServer: + Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_1d2bc589-248e-4226-a4b5-fd1b76779153--"} + headers: + ? !!python/object/new:multidict._istr.istr [Content-Type] + : multipart/mixed; boundary=batchresponse_1d2bc589-248e-4226-a4b5-fd1b76779153 + ? !!python/object/new:multidict._istr.istr [Date] + : Tue, 01 Oct 2019 23:10:01 GMT + ? !!python/object/new:multidict._istr.istr [Server] + : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + ? !!python/object/new:multidict._istr.istr [Transfer-Encoding] + : chunked + x-ms-client-request-id: 9831f322-e4a0-11e9-8ef6-ecb1d756380e + x-ms-request-id: b956cbb0-e01e-004f-1dad-78a018000000 + x-ms-version: '2019-02-02' + status: {code: 202, message: Accepted} + url: !!python/object/new:yarl.URL + state: !!python/tuple + - !!python/object/new:urllib.parse.SplitResult [https, amqptest.blob.core.windows.net, + /, comp=batch, ''] +- request: + body: hello world + headers: + Content-Length: ['11'] + Content-Type: [application/octet-stream] + If-None-Match: ['*'] + User-Agent: [azsdk-python-storage-blob/12.0.0b3 Python/3.7.0 (Windows-10-10.0.18362-SP0)] + x-ms-blob-type: [BlockBlob] + x-ms-client-request-id: [9850ecb0-e4a0-11e9-adcc-ecb1d756380e] + x-ms-date: ['Tue, 01 Oct 2019 23:10:01 GMT'] + x-ms-version: ['2019-02-02'] + method: PUT + uri: https://blobstoragename.blob.core.windows.net/container3d7c19c7/blob1 + response: + body: {string: ''} + headers: + ? !!python/object/new:multidict._istr.istr [Content-Length] + : '0' + ? !!python/object/new:multidict._istr.istr [Content-Md5] + : XrY7u+Ae7tCTyyK7j1rNww== + ? !!python/object/new:multidict._istr.istr [Date] + : Tue, 01 Oct 2019 23:10:01 GMT + ? !!python/object/new:multidict._istr.istr [Etag] + : '"0x8D746C47C8C4EBA"' + ? !!python/object/new:multidict._istr.istr [Last-Modified] + : Tue, 01 Oct 2019 23:10:01 GMT + ? !!python/object/new:multidict._istr.istr [Server] + : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-client-request-id: 9850ecb0-e4a0-11e9-adcc-ecb1d756380e + x-ms-content-crc64: vo7q9sPVKY0= + x-ms-request-id: b956cbdf-e01e-004f-49ad-78a018000000 + x-ms-request-server-encrypted: 'true' + x-ms-version: '2019-02-02' + status: {code: 201, message: Created} + url: !!python/object/new:yarl.URL + state: !!python/tuple + - !!python/object/new:urllib.parse.SplitResult [https, amqptest.blob.core.windows.net, + /container3d7c19c7/blob1, '', ''] +- request: + body: hello world + headers: + Content-Length: ['11'] + Content-Type: [application/octet-stream] + If-None-Match: ['*'] + User-Agent: [azsdk-python-storage-blob/12.0.0b3 Python/3.7.0 (Windows-10-10.0.18362-SP0)] + x-ms-blob-type: [BlockBlob] + x-ms-client-request-id: [985afef8-e4a0-11e9-8796-ecb1d756380e] + x-ms-date: ['Tue, 01 Oct 2019 23:10:01 GMT'] + x-ms-version: ['2019-02-02'] + method: PUT + uri: https://blobstoragename.blob.core.windows.net/container3d7c19c7/blob2 + response: + body: {string: ''} + headers: + ? !!python/object/new:multidict._istr.istr [Content-Length] + : '0' + ? !!python/object/new:multidict._istr.istr [Content-Md5] + : XrY7u+Ae7tCTyyK7j1rNww== + ? !!python/object/new:multidict._istr.istr [Date] + : Tue, 01 Oct 2019 23:10:01 GMT + ? !!python/object/new:multidict._istr.istr [Etag] + : '"0x8D746C47C963B99"' + ? !!python/object/new:multidict._istr.istr [Last-Modified] + : Tue, 01 Oct 2019 23:10:01 GMT + ? !!python/object/new:multidict._istr.istr [Server] + : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-client-request-id: 985afef8-e4a0-11e9-8796-ecb1d756380e + x-ms-content-crc64: vo7q9sPVKY0= + x-ms-request-id: b956cc01-e01e-004f-67ad-78a018000000 + x-ms-request-server-encrypted: 'true' + x-ms-version: '2019-02-02' + status: {code: 201, message: Created} + url: !!python/object/new:yarl.URL + state: !!python/tuple + - !!python/object/new:urllib.parse.SplitResult [https, amqptest.blob.core.windows.net, + /container3d7c19c7/blob2, '', ''] +- request: + body: hello world + headers: + Content-Length: ['11'] + Content-Type: [application/octet-stream] + If-None-Match: ['*'] + User-Agent: [azsdk-python-storage-blob/12.0.0b3 Python/3.7.0 (Windows-10-10.0.18362-SP0)] + x-ms-blob-type: [BlockBlob] + x-ms-client-request-id: [986251b6-e4a0-11e9-826b-ecb1d756380e] + x-ms-date: ['Tue, 01 Oct 2019 23:10:01 GMT'] + x-ms-version: ['2019-02-02'] + method: PUT + uri: https://blobstoragename.blob.core.windows.net/container3d7c19c7/blob3 + response: + body: {string: ''} + headers: + ? !!python/object/new:multidict._istr.istr [Content-Length] + : '0' + ? !!python/object/new:multidict._istr.istr [Content-Md5] + : XrY7u+Ae7tCTyyK7j1rNww== + ? !!python/object/new:multidict._istr.istr [Date] + : Tue, 01 Oct 2019 23:10:01 GMT + ? !!python/object/new:multidict._istr.istr [Etag] + : '"0x8D746C47C9D41BC"' + ? !!python/object/new:multidict._istr.istr [Last-Modified] + : Tue, 01 Oct 2019 23:10:01 GMT + ? !!python/object/new:multidict._istr.istr [Server] + : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-client-request-id: 986251b6-e4a0-11e9-826b-ecb1d756380e + x-ms-content-crc64: vo7q9sPVKY0= + x-ms-request-id: b956cc18-e01e-004f-7bad-78a018000000 + x-ms-request-server-encrypted: 'true' + x-ms-version: '2019-02-02' + status: {code: 201, message: Created} + url: !!python/object/new:yarl.URL + state: !!python/tuple + - !!python/object/new:urllib.parse.SplitResult [https, amqptest.blob.core.windows.net, + /container3d7c19c7/blob3, '', ''] +- request: + body: null + headers: + User-Agent: [azsdk-python-storage-blob/12.0.0b3 Python/3.7.0 (Windows-10-10.0.18362-SP0)] + content-type: [application/xml; charset=utf-8] + x-ms-client-request-id: [9867f726-e4a0-11e9-9836-ecb1d756380e] + x-ms-date: ['Tue, 01 Oct 2019 23:10:01 GMT'] + x-ms-version: ['2019-02-02'] + method: HEAD + uri: https://blobstoragename.blob.core.windows.net/container3d7c19c7/blob1 + response: + body: {string: ''} + headers: + ? !!python/object/new:multidict._istr.istr [Accept-Ranges] + : bytes + ? !!python/object/new:multidict._istr.istr [Content-Length] + : '11' + ? !!python/object/new:multidict._istr.istr [Content-Md5] + : XrY7u+Ae7tCTyyK7j1rNww== + ? !!python/object/new:multidict._istr.istr [Content-Type] + : application/octet-stream + ? !!python/object/new:multidict._istr.istr [Date] + : Tue, 01 Oct 2019 23:10:01 GMT + ? !!python/object/new:multidict._istr.istr [Etag] + : '"0x8D746C47C8C4EBA"' + ? !!python/object/new:multidict._istr.istr [Last-Modified] + : Tue, 01 Oct 2019 23:10:01 GMT + ? !!python/object/new:multidict._istr.istr [Server] + : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + ? !!python/object/new:multidict._istr.istr [Vary] + : Origin + x-ms-access-tier: Hot + x-ms-access-tier-inferred: 'true' + x-ms-blob-type: BlockBlob + x-ms-client-request-id: 9867f726-e4a0-11e9-9836-ecb1d756380e + x-ms-creation-time: Tue, 01 Oct 2019 23:10:01 GMT + x-ms-lease-state: available + x-ms-lease-status: unlocked + x-ms-request-id: b956cc2a-e01e-004f-0cad-78a018000000 + x-ms-server-encrypted: 'true' + x-ms-version: '2019-02-02' + status: {code: 200, message: OK} + url: !!python/object/new:yarl.URL + state: !!python/tuple + - !!python/object/new:urllib.parse.SplitResult [https, amqptest.blob.core.windows.net, + /container3d7c19c7/blob1, '', ''] +- request: + body: "--===============4154234983532534079==\r\nContent-Type: application/http\r\nContent-Transfer-Encoding: + binary\r\nContent-ID: 0\r\n\r\nPUT /container3d7c19c7/blob1?comp=tier HTTP/1.1\r\nContent-Length: + 0\r\nx-ms-access-tier: Hot\r\nx-ms-date: Tue, 01 Oct 2019 23:10:01 GMT\r\nx-ms-client-request-id: + 986d75b4-e4a0-11e9-9ad3-ecb1d756380e\r\ncontent-type: application/xml; charset=utf-8\r\nAuthorization: + SharedKey blobstoragename:P+lR2ZGeuTDxuxJGb08HU1ufi1onbVsE+M2CW0RvaAc=\r\n\r\n\r\n--===============4154234983532534079==\r\nContent-Type: + application/http\r\nContent-Transfer-Encoding: binary\r\nContent-ID: 1\r\n\r\nPUT + /container3d7c19c7/blob2?comp=tier HTTP/1.1\r\nContent-Length: 0\r\nx-ms-access-tier: + Hot\r\nx-ms-date: Tue, 01 Oct 2019 23:10:01 GMT\r\nx-ms-client-request-id: 986d75b5-e4a0-11e9-a63a-ecb1d756380e\r\ncontent-type: + application/xml; charset=utf-8\r\nAuthorization: SharedKey blobstoragename:QO52FLTlb8iJanq1zyv0aynQ8FhRlOC38gRBQHdTpGg=\r\n\r\n\r\n--===============4154234983532534079==\r\nContent-Type: + application/http\r\nContent-Transfer-Encoding: binary\r\nContent-ID: 2\r\n\r\nPUT + /container3d7c19c7/blob3?comp=tier HTTP/1.1\r\nContent-Length: 0\r\nx-ms-access-tier: + Hot\r\nx-ms-date: Tue, 01 Oct 2019 23:10:01 GMT\r\nx-ms-client-request-id: 986d9cb0-e4a0-11e9-b5c9-ecb1d756380e\r\ncontent-type: + application/xml; charset=utf-8\r\nAuthorization: SharedKey blobstoragename:IQIUVI1NVLDIV6P0oZWhz76upmmrpjchCma0EKD7SR4=\r\n\r\n\r\n--===============4154234983532534079==--\r\n" + headers: + Content-Length: ['1389'] + Content-Type: [multipart/mixed; boundary================4154234983532534079==] + User-Agent: [azsdk-python-storage-blob/12.0.0b3 Python/3.7.0 (Windows-10-10.0.18362-SP0)] + x-ms-client-request-id: [986e6136-e4a0-11e9-a145-ecb1d756380e] + x-ms-date: ['Tue, 01 Oct 2019 23:10:01 GMT'] + x-ms-version: ['2019-02-02'] + method: POST + uri: https://blobstoragename.blob.core.windows.net/?comp=batch + response: + body: {string: "--batchresponse_451444be-f4dc-48d3-95c3-3f55247512e8\r\nContent-Type: + application/http\r\nContent-ID: 0\r\n\r\nHTTP/1.1 200 OK\r\nx-ms-request-id: + 16fff382-401e-00e3-5dad-78818f1e0d2f\r\nx-ms-version: 2019-02-02\r\nx-ms-client-request-id: + 986d75b4-e4a0-11e9-9ad3-ecb1d756380e\r\nServer: Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_451444be-f4dc-48d3-95c3-3f55247512e8\r\nContent-Type: + application/http\r\nContent-ID: 1\r\n\r\nHTTP/1.1 200 OK\r\nx-ms-request-id: + 16fff382-401e-00e3-5dad-78818f1e0d31\r\nx-ms-version: 2019-02-02\r\nx-ms-client-request-id: + 986d75b5-e4a0-11e9-a63a-ecb1d756380e\r\nServer: Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_451444be-f4dc-48d3-95c3-3f55247512e8\r\nContent-Type: + application/http\r\nContent-ID: 2\r\n\r\nHTTP/1.1 200 OK\r\nx-ms-request-id: + 16fff382-401e-00e3-5dad-78818f1e0d32\r\nx-ms-version: 2019-02-02\r\nx-ms-client-request-id: + 986d9cb0-e4a0-11e9-b5c9-ecb1d756380e\r\nServer: Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_451444be-f4dc-48d3-95c3-3f55247512e8--"} + headers: + ? !!python/object/new:multidict._istr.istr [Content-Type] + : multipart/mixed; boundary=batchresponse_451444be-f4dc-48d3-95c3-3f55247512e8 + ? !!python/object/new:multidict._istr.istr [Date] + : Tue, 01 Oct 2019 23:10:01 GMT + ? !!python/object/new:multidict._istr.istr [Server] + : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + ? !!python/object/new:multidict._istr.istr [Transfer-Encoding] + : chunked + x-ms-client-request-id: 986e6136-e4a0-11e9-a145-ecb1d756380e + x-ms-request-id: 16fff382-401e-00e3-5dad-78818f000000 + x-ms-version: '2019-02-02' + status: {code: 202, message: Accepted} + url: !!python/object/new:yarl.URL + state: !!python/tuple + - !!python/object/new:urllib.parse.SplitResult [https, amqptest.blob.core.windows.net, + /, comp=batch, ''] +- request: + body: null + headers: + User-Agent: [azsdk-python-storage-blob/12.0.0b3 Python/3.7.0 (Windows-10-10.0.18362-SP0)] + content-type: [application/xml; charset=utf-8] + x-ms-client-request-id: [98971d82-e4a0-11e9-b8ce-ecb1d756380e] + x-ms-date: ['Tue, 01 Oct 2019 23:10:01 GMT'] + x-ms-version: ['2019-02-02'] + method: HEAD + uri: https://blobstoragename.blob.core.windows.net/container3d7c19c7/blob1 + response: + body: {string: ''} + headers: + ? !!python/object/new:multidict._istr.istr [Accept-Ranges] + : bytes + ? !!python/object/new:multidict._istr.istr [Content-Length] + : '11' + ? !!python/object/new:multidict._istr.istr [Content-Md5] + : XrY7u+Ae7tCTyyK7j1rNww== + ? !!python/object/new:multidict._istr.istr [Content-Type] + : application/octet-stream + ? !!python/object/new:multidict._istr.istr [Date] + : Tue, 01 Oct 2019 23:10:01 GMT + ? !!python/object/new:multidict._istr.istr [Etag] + : '"0x8D746C47C8C4EBA"' + ? !!python/object/new:multidict._istr.istr [Last-Modified] + : Tue, 01 Oct 2019 23:10:01 GMT + ? !!python/object/new:multidict._istr.istr [Server] + : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + ? !!python/object/new:multidict._istr.istr [Vary] + : Origin + x-ms-access-tier: Hot + x-ms-access-tier-change-time: Tue, 01 Oct 2019 23:10:01 GMT + x-ms-blob-type: BlockBlob + x-ms-client-request-id: 98971d82-e4a0-11e9-b8ce-ecb1d756380e + x-ms-creation-time: Tue, 01 Oct 2019 23:10:01 GMT + x-ms-lease-state: available + x-ms-lease-status: unlocked + x-ms-request-id: 16fff413-401e-00e3-67ad-78818f000000 + x-ms-server-encrypted: 'true' + x-ms-version: '2019-02-02' + status: {code: 200, message: OK} + url: !!python/object/new:yarl.URL + state: !!python/tuple + - !!python/object/new:urllib.parse.SplitResult [https, amqptest.blob.core.windows.net, + /container3d7c19c7/blob1, '', ''] +- request: + body: "--===============0303446948136156878==\r\nContent-Type: application/http\r\nContent-Transfer-Encoding: + binary\r\nContent-ID: 0\r\n\r\nDELETE /container3d7c19c7/blob1? HTTP/1.1\r\nx-ms-date: + Tue, 01 Oct 2019 23:10:01 GMT\r\nx-ms-client-request-id: 989d6006-e4a0-11e9-8e31-ecb1d756380e\r\ncontent-type: + application/xml; charset=utf-8\r\nAuthorization: SharedKey blobstoragename:o+jcMSnVd1TyMk+lnbDoDbtDUY8t1yzwvY+usyC98z8=\r\n\r\n\r\n--===============0303446948136156878==\r\nContent-Type: + application/http\r\nContent-Transfer-Encoding: binary\r\nContent-ID: 1\r\n\r\nDELETE + /container3d7c19c7/blob2? HTTP/1.1\r\nx-ms-date: Tue, 01 Oct 2019 23:10:01 GMT\r\nx-ms-client-request-id: + 989d8712-e4a0-11e9-b5a3-ecb1d756380e\r\ncontent-type: application/xml; charset=utf-8\r\nAuthorization: + SharedKey blobstoragename:YesAvDsCk08m06exa+FdcDiM1b36/Xoxw0wyiFs0sZ0=\r\n\r\n\r\n--===============0303446948136156878==\r\nContent-Type: + application/http\r\nContent-Transfer-Encoding: binary\r\nContent-ID: 2\r\n\r\nDELETE + /container3d7c19c7/blob3? HTTP/1.1\r\nx-ms-date: Tue, 01 Oct 2019 23:10:01 GMT\r\nx-ms-client-request-id: + 989dad7e-e4a0-11e9-a9d3-ecb1d756380e\r\ncontent-type: application/xml; charset=utf-8\r\nAuthorization: + SharedKey blobstoragename:y7/27Jph/zr6aSev+3RMHaeKcgyJ0JmnFweKRBQ1/uw=\r\n\r\n\r\n--===============0303446948136156878==--\r\n" + headers: + Content-Length: ['1245'] + Content-Type: [multipart/mixed; boundary================0303446948136156878==] + User-Agent: [azsdk-python-storage-blob/12.0.0b3 Python/3.7.0 (Windows-10-10.0.18362-SP0)] + x-ms-client-request-id: [989e717e-e4a0-11e9-b2d5-ecb1d756380e] + x-ms-date: ['Tue, 01 Oct 2019 23:10:01 GMT'] + x-ms-version: ['2019-02-02'] + method: POST + uri: https://blobstoragename.blob.core.windows.net/?comp=batch + response: + body: {string: "--batchresponse_0d6bbee1-3594-4d36-abf8-ed51e31115ba\r\nContent-Type: + application/http\r\nContent-ID: 0\r\n\r\nHTTP/1.1 202 Accepted\r\nx-ms-delete-type-permanent: + true\r\nx-ms-request-id: 5953bba1-401e-000d-4dad-788b0c1ea85c\r\nx-ms-version: + 2019-02-02\r\nx-ms-client-request-id: 989d6006-e4a0-11e9-8e31-ecb1d756380e\r\nServer: + Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_0d6bbee1-3594-4d36-abf8-ed51e31115ba\r\nContent-Type: + application/http\r\nContent-ID: 1\r\n\r\nHTTP/1.1 202 Accepted\r\nx-ms-delete-type-permanent: + true\r\nx-ms-request-id: 5953bba1-401e-000d-4dad-788b0c1ea85e\r\nx-ms-version: + 2019-02-02\r\nx-ms-client-request-id: 989d8712-e4a0-11e9-b5a3-ecb1d756380e\r\nServer: + Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_0d6bbee1-3594-4d36-abf8-ed51e31115ba\r\nContent-Type: + application/http\r\nContent-ID: 2\r\n\r\nHTTP/1.1 202 Accepted\r\nx-ms-delete-type-permanent: + true\r\nx-ms-request-id: 5953bba1-401e-000d-4dad-788b0c1ea85f\r\nx-ms-version: + 2019-02-02\r\nx-ms-client-request-id: 989dad7e-e4a0-11e9-a9d3-ecb1d756380e\r\nServer: + Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_0d6bbee1-3594-4d36-abf8-ed51e31115ba--"} + headers: + ? !!python/object/new:multidict._istr.istr [Content-Type] + : multipart/mixed; boundary=batchresponse_0d6bbee1-3594-4d36-abf8-ed51e31115ba + ? !!python/object/new:multidict._istr.istr [Date] + : Tue, 01 Oct 2019 23:10:01 GMT + ? !!python/object/new:multidict._istr.istr [Server] + : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + ? !!python/object/new:multidict._istr.istr [Transfer-Encoding] + : chunked + x-ms-client-request-id: 989e717e-e4a0-11e9-b2d5-ecb1d756380e + x-ms-request-id: 5953bba1-401e-000d-4dad-788b0c000000 + x-ms-version: '2019-02-02' + status: {code: 202, message: Accepted} + url: !!python/object/new:yarl.URL + state: !!python/tuple + - !!python/object/new:urllib.parse.SplitResult [https, amqptest.blob.core.windows.net, + /, comp=batch, ''] +version: 1 diff --git a/sdk/storage/azure-storage-blob/tests/test_container.py b/sdk/storage/azure-storage-blob/tests/test_container.py index 58aea663dd0e..07b8894b7a91 100644 --- a/sdk/storage/azure-storage-blob/tests/test_container.py +++ b/sdk/storage/azure-storage-blob/tests/test_container.py @@ -21,7 +21,9 @@ ContainerPermissions, PublicAccess, ContainerPermissions, - AccessPolicy + AccessPolicy, + StandardBlobTier, + PremiumPageBlobTier ) from azure.identity import ClientSecretCredential @@ -1017,6 +1019,104 @@ def test_delete_blobs_snapshot(self): blobs = list(container.list_blobs(include='snapshots')) assert len(blobs) == 3 # 3 blobs + @record + def test_standard_blob_tier_set_tier_api_batch(self): + container = self._create_container() + tiers = [StandardBlobTier.Archive, StandardBlobTier.Cool, StandardBlobTier.Hot] + + response = container.delete_blobs( + 'blob1', + 'blob2', + 'blob3', + ) + + for tier in tiers: + blob = container.get_blob_client('blob1') + data = b'hello world' + blob.upload_blob(data) + container.get_blob_client('blob2').upload_blob(data) + container.get_blob_client('blob3').upload_blob(data) + + blob_ref = blob.get_blob_properties() + assert blob_ref.blob_tier is not None + assert blob_ref.blob_tier_inferred + assert blob_ref.blob_tier_change_time is None + + parts = container.set_standard_blob_tier_blobs( + 'blob1', + 'blob2', + 'blob3', + standard_blob_tier=tier + ) + + parts = list(parts) + assert len(parts) == 3 + + assert parts[0].status_code in [200, 202] + assert parts[1].status_code in [200, 202] + assert parts[2].status_code in [200, 202] + + blob_ref2 = blob.get_blob_properties() + assert tier == blob_ref2.blob_tier + assert not blob_ref2.blob_tier_inferred + assert blob_ref2.blob_tier_change_time is not None + + response = container.delete_blobs( + 'blob1', + 'blob2', + 'blob3', + ) + + @record + @pytest.mark.skip(reason="Wasn't able to get premium account with batch enabled") + def test_premium_tier_set_tier_api_batch(self): + url = self._get_premium_account_url() + credential = self._get_premium_shared_key_credential() + pbs = BlobServiceClient(url, credential=credential) + + try: + container_name = self.get_resource_name('utpremiumcontainer') + container = pbs.get_container_client(container_name) + + if not self.is_playback(): + try: + container.create_container() + except ResourceExistsError: + pass + + pblob = container.get_blob_client('blob1') + pblob.create_page_blob(1024) + container.get_blob_client('blob2').create_page_blob(1024) + container.get_blob_client('blob3').create_page_blob(1024) + + blob_ref = pblob.get_blob_properties() + assert PremiumPageBlobTier.P10 == blob_ref.blob_tier + assert blob_ref.blob_tier is not None + assert blob_ref.blob_tier_inferred + + parts = container.set_premium_page_blob_tier_blobs( + 'blob1', + 'blob2', + 'blob3', + premium_page_blob_tier=PremiumPageBlobTier.P50 + ) + + parts = list(parts) + assert len(parts) == 3 + + assert parts[0].status_code in [200, 202] + assert parts[1].status_code in [200, 202] + assert parts[2].status_code in [200, 202] + + + blob_ref2 = pblob.get_blob_properties() + assert PremiumPageBlobTier.P50 == blob_ref2.blob_tier + assert not blob_ref2.blob_tier_inferred + + finally: + container.delete_container() + + @record def test_walk_blobs_with_delimiter(self): # Arrange diff --git a/sdk/storage/azure-storage-blob/tests/test_container_async.py b/sdk/storage/azure-storage-blob/tests/test_container_async.py index 17ca226eaee5..7abc33670ca0 100644 --- a/sdk/storage/azure-storage-blob/tests/test_container_async.py +++ b/sdk/storage/azure-storage-blob/tests/test_container_async.py @@ -29,7 +29,9 @@ BlobType, ContentSettings, BlobProperties, - ContainerPermissions + ContainerPermissions, + StandardBlobTier, + PremiumPageBlobTier ) from testcase import StorageTestCase, TestMode, record, LogCaptured @@ -1263,6 +1265,109 @@ async def _test_delete_blobs_snapshot(self): blobs = await _to_list(container.list_blobs(include='snapshots')) assert len(blobs) == 3 # 3 blobs + @record + def test_standard_blob_tier_set_tier_api_batch(self): + loop = asyncio.get_event_loop() + loop.run_until_complete(self._test_standard_blob_tier_set_tier_api_batch()) + + async def _test_standard_blob_tier_set_tier_api_batch(self): + container = await self._create_container() + tiers = [StandardBlobTier.Archive, StandardBlobTier.Cool, StandardBlobTier.Hot] + + for tier in tiers: + try: + blob = container.get_blob_client('blob1') + data = b'hello world' + await blob.upload_blob(data) + await container.get_blob_client('blob2').upload_blob(data) + await container.get_blob_client('blob3').upload_blob(data) + + blob_ref = await blob.get_blob_properties() + assert blob_ref.blob_tier is not None + assert blob_ref.blob_tier_inferred + assert blob_ref.blob_tier_change_time is None + + parts = await _to_list(await container.set_standard_blob_tier_blobs( + 'blob1', + 'blob2', + 'blob3', + standard_blob_tier=tier + )) + + assert len(parts) == 3 + + assert parts[0].status_code in [200, 202] + assert parts[1].status_code in [200, 202] + assert parts[2].status_code in [200, 202] + + blob_ref2 = await blob.get_blob_properties() + assert tier == blob_ref2.blob_tier + assert not blob_ref2.blob_tier_inferred + assert blob_ref2.blob_tier_change_time is not None + + finally: + await container.delete_blobs( + 'blob1', + 'blob2', + 'blob3', + ) + + @record + @pytest.mark.skip(reason="Wasn't able to get premium account with batch enabled") + def test_premium_tier_set_tier_api_batch(self): + loop = asyncio.get_event_loop() + loop.run_until_complete(self._test_premium_tier_set_tier_api_batch()) + + async def _test_premium_tier_set_tier_api_batch(self): + url = self._get_premium_account_url() + credential = self._get_premium_shared_key_credential() + pbs = BlobServiceClient(url, credential=credential) + + try: + container_name = self.get_resource_name('utpremiumcontainer') + container = pbs.get_container_client(container_name) + + if not self.is_playback(): + try: + await container.create_container() + except ResourceExistsError: + pass + + pblob = container.get_blob_client('blob1') + await pblob.create_page_blob(1024) + await container.get_blob_client('blob2').create_page_blob(1024) + await container.get_blob_client('blob3').create_page_blob(1024) + + blob_ref = await pblob.get_blob_properties() + assert PremiumPageBlobTier.P10 == blob_ref.blob_tier + assert blob_ref.blob_tier is not None + assert blob_ref.blob_tier_inferred + + parts = await _to_list(container.set_premium_page_blob_tier_blobs( + 'blob1', + 'blob2', + 'blob3', + premium_page_blob_tier=PremiumPageBlobTier.P50 + )) + + assert len(parts) == 3 + + assert parts[0].status_code in [200, 202] + assert parts[1].status_code in [200, 202] + assert parts[2].status_code in [200, 202] + + + blob_ref2 = await pblob.get_blob_properties() + assert PremiumPageBlobTier.P50 == blob_ref2.blob_tier + assert not blob_ref2.blob_tier_inferred + + finally: + await container.delete_blobs( + 'blob1', + 'blob2', + 'blob3', + ) + @record def test_list_blobs_with_delimiter(self): loop = asyncio.get_event_loop() From 09f74062674cb970658d237fa4a296e3db2cf96a Mon Sep 17 00:00:00 2001 From: Laurent Mazuel Date: Wed, 2 Oct 2019 11:22:05 -0700 Subject: [PATCH 12/21] Adapt tests for playback mode --- ...st_container.test_delete_blobs_simple.yaml | 16 ++-- ..._container.test_delete_blobs_snapshot.yaml | 26 +++--- ...standard_blob_tier_set_tier_api_batch.yaml | 88 +++++++++---------- ...tainer_async.test_delete_blobs_simple.yaml | 16 ++-- ...iner_async.test_delete_blobs_snapshot.yaml | 26 +++--- ...standard_blob_tier_set_tier_api_batch.yaml | 80 ++++++++--------- .../tests/test_container.py | 2 +- .../tests/test_container_async.py | 2 +- 8 files changed, 128 insertions(+), 128 deletions(-) diff --git a/sdk/storage/azure-storage-blob/tests/recordings/test_container.test_delete_blobs_simple.yaml b/sdk/storage/azure-storage-blob/tests/recordings/test_container.test_delete_blobs_simple.yaml index 90eb4aa0e7bf..6a1e9496d5e6 100644 --- a/sdk/storage/azure-storage-blob/tests/recordings/test_container.test_delete_blobs_simple.yaml +++ b/sdk/storage/azure-storage-blob/tests/recordings/test_container.test_delete_blobs_simple.yaml @@ -12,7 +12,7 @@ interactions: x-ms-date: ['Tue, 01 Oct 2019 19:15:49 GMT'] x-ms-version: ['2019-02-02'] method: PUT - uri: https://blobstoragename.blob.core.windows.net/container40320ffd?restype=container + uri: https://storagename.blob.core.windows.net/container40320ffd?restype=container response: body: {string: ''} headers: @@ -40,7 +40,7 @@ interactions: x-ms-date: ['Tue, 01 Oct 2019 19:15:49 GMT'] x-ms-version: ['2019-02-02'] method: PUT - uri: https://blobstoragename.blob.core.windows.net/container40320ffd/blob1 + uri: https://storagename.blob.core.windows.net/container40320ffd/blob1 response: body: {string: ''} headers: @@ -71,7 +71,7 @@ interactions: x-ms-date: ['Tue, 01 Oct 2019 19:15:49 GMT'] x-ms-version: ['2019-02-02'] method: PUT - uri: https://blobstoragename.blob.core.windows.net/container40320ffd/blob2 + uri: https://storagename.blob.core.windows.net/container40320ffd/blob2 response: body: {string: ''} headers: @@ -102,7 +102,7 @@ interactions: x-ms-date: ['Tue, 01 Oct 2019 19:15:49 GMT'] x-ms-version: ['2019-02-02'] method: PUT - uri: https://blobstoragename.blob.core.windows.net/container40320ffd/blob3 + uri: https://storagename.blob.core.windows.net/container40320ffd/blob3 response: body: {string: ''} headers: @@ -122,15 +122,15 @@ interactions: body: "--===============1531725606335133470==\r\nContent-Type: application/http\r\nContent-Transfer-Encoding: binary\r\nContent-ID: 0\r\n\r\nDELETE /container40320ffd/blob1? HTTP/1.1\r\nx-ms-date: Tue, 01 Oct 2019 19:15:49 GMT\r\nx-ms-client-request-id: e1189e88-e47f-11e9-8678-ecb1d756380e\r\ncontent-type: - application/xml; charset=utf-8\r\nAuthorization: SharedKey blobstoragename:a41hZsRXcff//FpBYc+86sFcsNORue14K7trG+16iDg=\r\n\r\n\r\n--===============1531725606335133470==\r\nContent-Type: + application/xml; charset=utf-8\r\nAuthorization: SharedKey storagename:a41hZsRXcff//FpBYc+86sFcsNORue14K7trG+16iDg=\r\n\r\n\r\n--===============1531725606335133470==\r\nContent-Type: application/http\r\nContent-Transfer-Encoding: binary\r\nContent-ID: 1\r\n\r\nDELETE /container40320ffd/blob2? HTTP/1.1\r\nx-ms-date: Tue, 01 Oct 2019 19:15:49 GMT\r\nx-ms-client-request-id: e118eca4-e47f-11e9-b776-ecb1d756380e\r\ncontent-type: application/xml; charset=utf-8\r\nAuthorization: - SharedKey blobstoragename:n5PcFN6XnPcWk25g2dNXCZ/b6n7zd0ZB/fd63IITBQI=\r\n\r\n\r\n--===============1531725606335133470==\r\nContent-Type: + SharedKey storagename:n5PcFN6XnPcWk25g2dNXCZ/b6n7zd0ZB/fd63IITBQI=\r\n\r\n\r\n--===============1531725606335133470==\r\nContent-Type: application/http\r\nContent-Transfer-Encoding: binary\r\nContent-ID: 2\r\n\r\nDELETE /container40320ffd/blob3? HTTP/1.1\r\nx-ms-date: Tue, 01 Oct 2019 19:15:50 GMT\r\nx-ms-client-request-id: e11913ee-e47f-11e9-a493-ecb1d756380e\r\ncontent-type: application/xml; charset=utf-8\r\nAuthorization: - SharedKey blobstoragename:7tVU2oZ+d87qg1MKer3ay0ST6I4eqv3C8Lsx+7REJds=\r\n\r\n\r\n--===============1531725606335133470==--\r\n" + SharedKey storagename:7tVU2oZ+d87qg1MKer3ay0ST6I4eqv3C8Lsx+7REJds=\r\n\r\n\r\n--===============1531725606335133470==--\r\n" headers: Accept: ['*/*'] Accept-Encoding: ['gzip, deflate'] @@ -142,7 +142,7 @@ interactions: x-ms-date: ['Tue, 01 Oct 2019 19:15:50 GMT'] x-ms-version: ['2019-02-02'] method: POST - uri: https://blobstoragename.blob.core.windows.net/?comp=batch + uri: https://storagename.blob.core.windows.net/?comp=batch response: body: {string: "--batchresponse_1c6a2ff3-9855-400d-9153-79daa767f8bc\r\nContent-Type: application/http\r\nContent-ID: 0\r\n\r\nHTTP/1.1 202 Accepted\r\nx-ms-delete-type-permanent: diff --git a/sdk/storage/azure-storage-blob/tests/recordings/test_container.test_delete_blobs_snapshot.yaml b/sdk/storage/azure-storage-blob/tests/recordings/test_container.test_delete_blobs_snapshot.yaml index 29c282cbd945..3c44b7a1bef4 100644 --- a/sdk/storage/azure-storage-blob/tests/recordings/test_container.test_delete_blobs_snapshot.yaml +++ b/sdk/storage/azure-storage-blob/tests/recordings/test_container.test_delete_blobs_snapshot.yaml @@ -12,7 +12,7 @@ interactions: x-ms-date: ['Tue, 01 Oct 2019 19:15:50 GMT'] x-ms-version: ['2019-02-02'] method: PUT - uri: https://blobstoragename.blob.core.windows.net/container617e10e3?restype=container + uri: https://storagename.blob.core.windows.net/container617e10e3?restype=container response: body: {string: ''} headers: @@ -40,7 +40,7 @@ interactions: x-ms-date: ['Tue, 01 Oct 2019 19:15:50 GMT'] x-ms-version: ['2019-02-02'] method: PUT - uri: https://blobstoragename.blob.core.windows.net/container617e10e3/blob1 + uri: https://storagename.blob.core.windows.net/container617e10e3/blob1 response: body: {string: ''} headers: @@ -69,7 +69,7 @@ interactions: x-ms-date: ['Tue, 01 Oct 2019 19:15:50 GMT'] x-ms-version: ['2019-02-02'] method: PUT - uri: https://blobstoragename.blob.core.windows.net/container617e10e3/blob1?comp=snapshot + uri: https://storagename.blob.core.windows.net/container617e10e3/blob1?comp=snapshot response: body: {string: ''} headers: @@ -99,7 +99,7 @@ interactions: x-ms-date: ['Tue, 01 Oct 2019 19:15:51 GMT'] x-ms-version: ['2019-02-02'] method: PUT - uri: https://blobstoragename.blob.core.windows.net/container617e10e3/blob2 + uri: https://storagename.blob.core.windows.net/container617e10e3/blob2 response: body: {string: ''} headers: @@ -130,7 +130,7 @@ interactions: x-ms-date: ['Tue, 01 Oct 2019 19:15:51 GMT'] x-ms-version: ['2019-02-02'] method: PUT - uri: https://blobstoragename.blob.core.windows.net/container617e10e3/blob3 + uri: https://storagename.blob.core.windows.net/container617e10e3/blob3 response: body: {string: ''} headers: @@ -158,10 +158,10 @@ interactions: x-ms-date: ['Tue, 01 Oct 2019 19:15:51 GMT'] x-ms-version: ['2019-02-02'] method: GET - uri: https://blobstoragename.blob.core.windows.net/container617e10e3?include=snapshots&restype=container&comp=list + uri: https://storagename.blob.core.windows.net/container617e10e3?include=snapshots&restype=container&comp=list response: body: {string: "\uFEFFblob12019-10-01T19:15:51.0506185ZTue, + ServiceEndpoint=\"https://storagename.blob.core.windows.net/\" ContainerName=\"container617e10e3\">blob12019-10-01T19:15:51.0506185ZTue, 01 Oct 2019 19:15:50 GMTTue, 01 Oct 2019 19:15:50 GMT0x8D746A3C5E03DF711application/octet-streamXrY7u+Ae7tCTyyK7j1rNww==blob1Tue, + ServiceEndpoint=\"https://storagename.blob.core.windows.net/\" ContainerName=\"container617e10e3\">blob1Tue, 01 Oct 2019 19:15:50 GMTTue, 01 Oct 2019 19:15:50 GMT0x8D746A3C5E03DF711application/octet-streamXrY7u+Ae7tCTyyK7j1rNww==blob12019-10-01T19:15:52.8769067ZTue, + ServiceEndpoint=\"https://storagename.blob.core.windows.net/\" ContainerName=\"containerd0941360\">blob12019-10-01T19:15:52.8769067ZTue, 01 Oct 2019 19:15:52 GMTTue, 01 Oct 2019 19:15:52 GMT0x8D746A3C6FDEF7511application/octet-streamXrY7u+Ae7tCTyyK7j1rNww==blob1Tue, + ServiceEndpoint=\"https://storagename.blob.core.windows.net/\" ContainerName=\"containerd0941360\">blob1Tue, 01 Oct 2019 19:15:52 GMTTue, 01 Oct 2019 19:15:52 GMT0x8D746A3C6FDEF7511application/octet-streamXrY7u+Ae7tCTyyK7j1rNww== Date: Wed, 2 Oct 2019 11:48:58 -0700 Subject: [PATCH 13/21] Move batch_send to common mixin --- .../azure/storage/blob/_shared/base_client.py | 35 +++++++++++++++ .../storage/blob/_shared/base_client_async.py | 38 +++++++++++++++- .../blob/aio/container_client_async.py | 35 --------------- .../azure/storage/blob/container_client.py | 35 --------------- .../azure/storage/file/_shared/base_client.py | 43 ++++++++++++++++-- .../storage/file/_shared/base_client_async.py | 45 +++++++++++++++++-- .../storage/queue/_shared/base_client.py | 43 ++++++++++++++++-- .../queue/_shared/base_client_async.py | 45 +++++++++++++++++-- 8 files changed, 232 insertions(+), 87 deletions(-) diff --git a/sdk/storage/azure-storage-blob/azure/storage/blob/_shared/base_client.py b/sdk/storage/azure-storage-blob/azure/storage/blob/_shared/base_client.py index e1d221fcc2cc..f784ac130cf9 100644 --- a/sdk/storage/azure-storage-blob/azure/storage/blob/_shared/base_client.py +++ b/sdk/storage/azure-storage-blob/azure/storage/blob/_shared/base_client.py @@ -26,6 +26,7 @@ import six from azure.core import Configuration +from azure.core.exceptions import HttpResponseError from azure.core.pipeline import Pipeline from azure.core.pipeline.transport import RequestsTransport from azure.core.pipeline.policies.distributed_tracing import DistributedTracingPolicy @@ -46,6 +47,8 @@ QueueMessagePolicy, ExponentialRetry, ) +from .._generated.models import StorageErrorException +from .response_handlers import process_storage_error _LOGGER = logging.getLogger(__name__) @@ -180,6 +183,38 @@ def _create_pipeline(self, credential, **kwargs): ] return config, Pipeline(config.transport, policies=policies) + def _batch_send( + self, *reqs # type: HttpRequest + ): + """Given a series of request, do a Storage batch call. + """ + request = self._client._client.post( # pylint: disable=protected-access + url='https://{}/?comp=batch'.format(self.primary_hostname), + headers={ + 'x-ms-version': self._client._config.version # pylint: disable=protected-access + } + ) + + request.set_multipart_mixed( + *reqs, + policies=[ + StorageHeadersPolicy(), + self._credential_policy + ] + ) + + pipeline_response = self._pipeline.run( + request, + ) + response = pipeline_response.http_response + + try: + if response.status_code not in [202]: + raise HttpResponseError(response=response) + return response.parts() + except StorageErrorException as error: + process_storage_error(error) + def format_shared_key_credential(account, credential): if isinstance(credential, six.string_types): diff --git a/sdk/storage/azure-storage-blob/azure/storage/blob/_shared/base_client_async.py b/sdk/storage/azure-storage-blob/azure/storage/blob/_shared/base_client_async.py index f785f47ddb18..bdcaba15d86f 100644 --- a/sdk/storage/azure-storage-blob/azure/storage/blob/_shared/base_client_async.py +++ b/sdk/storage/azure-storage-blob/azure/storage/blob/_shared/base_client_async.py @@ -11,7 +11,7 @@ import logging from azure.core.pipeline import AsyncPipeline - +from azure.core.exceptions import HttpResponseError from azure.core.pipeline.policies.distributed_tracing import DistributedTracingPolicy from azure.core.pipeline.policies import ( ContentDecodePolicy, @@ -25,9 +25,13 @@ StorageContentValidation, StorageRequestHook, StorageHosts, + StorageHeadersPolicy, QueueMessagePolicy) from .policies_async import AsyncStorageResponseHook +from .._generated.models import StorageErrorException +from .response_handlers import process_storage_error + if TYPE_CHECKING: from azure.core.pipeline import Pipeline from azure.core import Configuration @@ -86,3 +90,35 @@ def _create_pipeline(self, credential, **kwargs): DistributedTracingPolicy(), ] return config, AsyncPipeline(config.transport, policies=policies) + + async def _batch_send( + self, *reqs # type: HttpRequest + ): + """Given a series of request, do a Storage batch call. + """ + request = self._client._client.post( # pylint: disable=protected-access + url='https://{}/?comp=batch'.format(self.primary_hostname), + headers={ + 'x-ms-version': self._client._config.version # pylint: disable=protected-access + } + ) + + request.set_multipart_mixed( + *reqs, + policies=[ + StorageHeadersPolicy(), + self._credential_policy + ] + ) + + pipeline_response = await self._pipeline.run( + request, + ) + response = pipeline_response.http_response + + try: + if response.status_code not in [202]: + raise HttpResponseError(response=response) + return response.parts() # Return an AsyncIterator + except StorageErrorException as error: + process_storage_error(error) diff --git a/sdk/storage/azure-storage-blob/azure/storage/blob/aio/container_client_async.py b/sdk/storage/azure-storage-blob/azure/storage/blob/aio/container_client_async.py index e00802d2dff6..7890b9aabe4a 100644 --- a/sdk/storage/azure-storage-blob/azure/storage/blob/aio/container_client_async.py +++ b/sdk/storage/azure-storage-blob/azure/storage/blob/aio/container_client_async.py @@ -14,10 +14,8 @@ from azure.core.tracing.decorator_async import distributed_trace_async from azure.core.async_paging import AsyncItemPaged from azure.core.pipeline.transport import HttpRequest -from azure.core.exceptions import HttpResponseError from .._shared.base_client_async import AsyncStorageAccountHostsMixin -from .._shared.policies import StorageHeadersPolicy from .._shared.policies_async import ExponentialRetry from .._shared.request_handlers import add_metadata_headers, serialize_iso from .._shared.response_handlers import ( @@ -778,39 +776,6 @@ async def delete_blob( timeout=timeout, **kwargs) - async def _batch_send( - self, *reqs # type: HttpRequest - ): - """Given a series of request, do a Storage batch call. - """ - request = self._client._client.post( - url='https://{}/?comp=batch'.format(self.primary_hostname), - headers={ - 'x-ms-version': self._client._config.version - } - ) - - request.set_multipart_mixed( - *reqs, - policies=[ - StorageHeadersPolicy(), - self._credential_policy - ] - ) - - pipeline_response = await self._pipeline.run( - request, - ) - response = pipeline_response.http_response - - try: - if response.status_code not in [202]: - raise HttpResponseError(response=response) - return response.parts() # Return an AsyncIterator - except StorageErrorException as error: - process_storage_error(error) - - @distributed_trace_async async def delete_blobs( self, *blobs, # type: Union[str, BlobProperties] diff --git a/sdk/storage/azure-storage-blob/azure/storage/blob/container_client.py b/sdk/storage/azure-storage-blob/azure/storage/blob/container_client.py index 9e52a404e266..537032d151dc 100644 --- a/sdk/storage/azure-storage-blob/azure/storage/blob/container_client.py +++ b/sdk/storage/azure-storage-blob/azure/storage/blob/container_client.py @@ -21,11 +21,9 @@ from azure.core.paging import ItemPaged from azure.core.tracing.decorator import distributed_trace from azure.core.pipeline.transport import HttpRequest -from azure.core.exceptions import HttpResponseError from ._shared.base_client import StorageAccountHostsMixin, parse_connection_str, parse_query from ._shared.request_handlers import add_metadata_headers, serialize_iso -from ._shared.policies import StorageHeadersPolicy from ._shared.response_handlers import ( process_storage_error, return_response_headers, @@ -998,39 +996,6 @@ def _generate_delete_blobs_options(self, snapshot=None, timeout=None, delete_sna return query_parameters, header_parameters - def _batch_send( - self, *reqs # type: HttpRequest - ): - """Given a series of request, do a Storage batch call. - """ - request = self._client._client.post( - url='https://{}/?comp=batch'.format(self.primary_hostname), - headers={ - 'x-ms-version': self._client._config.version - } - ) - - request.set_multipart_mixed( - *reqs, - policies=[ - StorageHeadersPolicy(), - self._credential_policy - ] - ) - - pipeline_response = self._pipeline.run( - request, - ) - response = pipeline_response.http_response - - try: - if response.status_code not in [202]: - raise HttpResponseError(response=response) - return response.parts() - except StorageErrorException as error: - process_storage_error(error) - - @distributed_trace def delete_blobs( self, *blobs, # type: Union[str, BlobProperties] diff --git a/sdk/storage/azure-storage-file/azure/storage/file/_shared/base_client.py b/sdk/storage/azure-storage-file/azure/storage/file/_shared/base_client.py index 226626d026e1..f784ac130cf9 100644 --- a/sdk/storage/azure-storage-file/azure/storage/file/_shared/base_client.py +++ b/sdk/storage/azure-storage-file/azure/storage/file/_shared/base_client.py @@ -26,6 +26,7 @@ import six from azure.core import Configuration +from azure.core.exceptions import HttpResponseError from azure.core.pipeline import Pipeline from azure.core.pipeline.transport import RequestsTransport from azure.core.pipeline.policies.distributed_tracing import DistributedTracingPolicy @@ -46,6 +47,8 @@ QueueMessagePolicy, ExponentialRetry, ) +from .._generated.models import StorageErrorException +from .response_handlers import process_storage_error _LOGGER = logging.getLogger(__name__) @@ -147,11 +150,11 @@ def _format_query_string(self, sas_token, credential, snapshot=None, share_snaps def _create_pipeline(self, credential, **kwargs): # type: (Any, **Any) -> Tuple[Configuration, Pipeline] - credential_policy = None + self._credential_policy = None if hasattr(credential, "get_token"): - credential_policy = BearerTokenCredentialPolicy(credential, STORAGE_OAUTH_SCOPE) + self._credential_policy = BearerTokenCredentialPolicy(credential, STORAGE_OAUTH_SCOPE) elif isinstance(credential, SharedKeyCredentialPolicy): - credential_policy = credential + self._credential_policy = credential elif credential is not None: raise TypeError("Unsupported credential: {}".format(credential)) @@ -169,7 +172,7 @@ def _create_pipeline(self, credential, **kwargs): config.user_agent_policy, StorageContentValidation(), StorageRequestHook(**kwargs), - credential_policy, + self._credential_policy, ContentDecodePolicy(), RedirectPolicy(**kwargs), StorageHosts(hosts=self._hosts, **kwargs), @@ -180,6 +183,38 @@ def _create_pipeline(self, credential, **kwargs): ] return config, Pipeline(config.transport, policies=policies) + def _batch_send( + self, *reqs # type: HttpRequest + ): + """Given a series of request, do a Storage batch call. + """ + request = self._client._client.post( # pylint: disable=protected-access + url='https://{}/?comp=batch'.format(self.primary_hostname), + headers={ + 'x-ms-version': self._client._config.version # pylint: disable=protected-access + } + ) + + request.set_multipart_mixed( + *reqs, + policies=[ + StorageHeadersPolicy(), + self._credential_policy + ] + ) + + pipeline_response = self._pipeline.run( + request, + ) + response = pipeline_response.http_response + + try: + if response.status_code not in [202]: + raise HttpResponseError(response=response) + return response.parts() + except StorageErrorException as error: + process_storage_error(error) + def format_shared_key_credential(account, credential): if isinstance(credential, six.string_types): diff --git a/sdk/storage/azure-storage-file/azure/storage/file/_shared/base_client_async.py b/sdk/storage/azure-storage-file/azure/storage/file/_shared/base_client_async.py index 19a27ba24eb0..bdcaba15d86f 100644 --- a/sdk/storage/azure-storage-file/azure/storage/file/_shared/base_client_async.py +++ b/sdk/storage/azure-storage-file/azure/storage/file/_shared/base_client_async.py @@ -11,6 +11,7 @@ import logging from azure.core.pipeline import AsyncPipeline +from azure.core.exceptions import HttpResponseError from azure.core.pipeline.policies.distributed_tracing import DistributedTracingPolicy from azure.core.pipeline.policies import ( ContentDecodePolicy, @@ -24,9 +25,13 @@ StorageContentValidation, StorageRequestHook, StorageHosts, + StorageHeadersPolicy, QueueMessagePolicy) from .policies_async import AsyncStorageResponseHook +from .._generated.models import StorageErrorException +from .response_handlers import process_storage_error + if TYPE_CHECKING: from azure.core.pipeline import Pipeline from azure.core import Configuration @@ -50,11 +55,11 @@ async def __aexit__(self, *args): def _create_pipeline(self, credential, **kwargs): # type: (Any, **Any) -> Tuple[Configuration, Pipeline] - credential_policy = None + self._credential_policy = None if hasattr(credential, 'get_token'): - credential_policy = AsyncBearerTokenCredentialPolicy(credential, STORAGE_OAUTH_SCOPE) + self._credential_policy = AsyncBearerTokenCredentialPolicy(credential, STORAGE_OAUTH_SCOPE) elif isinstance(credential, SharedKeyCredentialPolicy): - credential_policy = credential + self._credential_policy = credential elif credential is not None: raise TypeError("Unsupported credential: {}".format(credential)) config = kwargs.get('_configuration') or create_configuration(**kwargs) @@ -75,7 +80,7 @@ def _create_pipeline(self, credential, **kwargs): config.user_agent_policy, StorageContentValidation(), StorageRequestHook(**kwargs), - credential_policy, + self._credential_policy, ContentDecodePolicy(), AsyncRedirectPolicy(**kwargs), StorageHosts(hosts=self._hosts, **kwargs), # type: ignore @@ -85,3 +90,35 @@ def _create_pipeline(self, credential, **kwargs): DistributedTracingPolicy(), ] return config, AsyncPipeline(config.transport, policies=policies) + + async def _batch_send( + self, *reqs # type: HttpRequest + ): + """Given a series of request, do a Storage batch call. + """ + request = self._client._client.post( # pylint: disable=protected-access + url='https://{}/?comp=batch'.format(self.primary_hostname), + headers={ + 'x-ms-version': self._client._config.version # pylint: disable=protected-access + } + ) + + request.set_multipart_mixed( + *reqs, + policies=[ + StorageHeadersPolicy(), + self._credential_policy + ] + ) + + pipeline_response = await self._pipeline.run( + request, + ) + response = pipeline_response.http_response + + try: + if response.status_code not in [202]: + raise HttpResponseError(response=response) + return response.parts() # Return an AsyncIterator + except StorageErrorException as error: + process_storage_error(error) diff --git a/sdk/storage/azure-storage-queue/azure/storage/queue/_shared/base_client.py b/sdk/storage/azure-storage-queue/azure/storage/queue/_shared/base_client.py index 226626d026e1..f784ac130cf9 100644 --- a/sdk/storage/azure-storage-queue/azure/storage/queue/_shared/base_client.py +++ b/sdk/storage/azure-storage-queue/azure/storage/queue/_shared/base_client.py @@ -26,6 +26,7 @@ import six from azure.core import Configuration +from azure.core.exceptions import HttpResponseError from azure.core.pipeline import Pipeline from azure.core.pipeline.transport import RequestsTransport from azure.core.pipeline.policies.distributed_tracing import DistributedTracingPolicy @@ -46,6 +47,8 @@ QueueMessagePolicy, ExponentialRetry, ) +from .._generated.models import StorageErrorException +from .response_handlers import process_storage_error _LOGGER = logging.getLogger(__name__) @@ -147,11 +150,11 @@ def _format_query_string(self, sas_token, credential, snapshot=None, share_snaps def _create_pipeline(self, credential, **kwargs): # type: (Any, **Any) -> Tuple[Configuration, Pipeline] - credential_policy = None + self._credential_policy = None if hasattr(credential, "get_token"): - credential_policy = BearerTokenCredentialPolicy(credential, STORAGE_OAUTH_SCOPE) + self._credential_policy = BearerTokenCredentialPolicy(credential, STORAGE_OAUTH_SCOPE) elif isinstance(credential, SharedKeyCredentialPolicy): - credential_policy = credential + self._credential_policy = credential elif credential is not None: raise TypeError("Unsupported credential: {}".format(credential)) @@ -169,7 +172,7 @@ def _create_pipeline(self, credential, **kwargs): config.user_agent_policy, StorageContentValidation(), StorageRequestHook(**kwargs), - credential_policy, + self._credential_policy, ContentDecodePolicy(), RedirectPolicy(**kwargs), StorageHosts(hosts=self._hosts, **kwargs), @@ -180,6 +183,38 @@ def _create_pipeline(self, credential, **kwargs): ] return config, Pipeline(config.transport, policies=policies) + def _batch_send( + self, *reqs # type: HttpRequest + ): + """Given a series of request, do a Storage batch call. + """ + request = self._client._client.post( # pylint: disable=protected-access + url='https://{}/?comp=batch'.format(self.primary_hostname), + headers={ + 'x-ms-version': self._client._config.version # pylint: disable=protected-access + } + ) + + request.set_multipart_mixed( + *reqs, + policies=[ + StorageHeadersPolicy(), + self._credential_policy + ] + ) + + pipeline_response = self._pipeline.run( + request, + ) + response = pipeline_response.http_response + + try: + if response.status_code not in [202]: + raise HttpResponseError(response=response) + return response.parts() + except StorageErrorException as error: + process_storage_error(error) + def format_shared_key_credential(account, credential): if isinstance(credential, six.string_types): diff --git a/sdk/storage/azure-storage-queue/azure/storage/queue/_shared/base_client_async.py b/sdk/storage/azure-storage-queue/azure/storage/queue/_shared/base_client_async.py index 19a27ba24eb0..bdcaba15d86f 100644 --- a/sdk/storage/azure-storage-queue/azure/storage/queue/_shared/base_client_async.py +++ b/sdk/storage/azure-storage-queue/azure/storage/queue/_shared/base_client_async.py @@ -11,6 +11,7 @@ import logging from azure.core.pipeline import AsyncPipeline +from azure.core.exceptions import HttpResponseError from azure.core.pipeline.policies.distributed_tracing import DistributedTracingPolicy from azure.core.pipeline.policies import ( ContentDecodePolicy, @@ -24,9 +25,13 @@ StorageContentValidation, StorageRequestHook, StorageHosts, + StorageHeadersPolicy, QueueMessagePolicy) from .policies_async import AsyncStorageResponseHook +from .._generated.models import StorageErrorException +from .response_handlers import process_storage_error + if TYPE_CHECKING: from azure.core.pipeline import Pipeline from azure.core import Configuration @@ -50,11 +55,11 @@ async def __aexit__(self, *args): def _create_pipeline(self, credential, **kwargs): # type: (Any, **Any) -> Tuple[Configuration, Pipeline] - credential_policy = None + self._credential_policy = None if hasattr(credential, 'get_token'): - credential_policy = AsyncBearerTokenCredentialPolicy(credential, STORAGE_OAUTH_SCOPE) + self._credential_policy = AsyncBearerTokenCredentialPolicy(credential, STORAGE_OAUTH_SCOPE) elif isinstance(credential, SharedKeyCredentialPolicy): - credential_policy = credential + self._credential_policy = credential elif credential is not None: raise TypeError("Unsupported credential: {}".format(credential)) config = kwargs.get('_configuration') or create_configuration(**kwargs) @@ -75,7 +80,7 @@ def _create_pipeline(self, credential, **kwargs): config.user_agent_policy, StorageContentValidation(), StorageRequestHook(**kwargs), - credential_policy, + self._credential_policy, ContentDecodePolicy(), AsyncRedirectPolicy(**kwargs), StorageHosts(hosts=self._hosts, **kwargs), # type: ignore @@ -85,3 +90,35 @@ def _create_pipeline(self, credential, **kwargs): DistributedTracingPolicy(), ] return config, AsyncPipeline(config.transport, policies=policies) + + async def _batch_send( + self, *reqs # type: HttpRequest + ): + """Given a series of request, do a Storage batch call. + """ + request = self._client._client.post( # pylint: disable=protected-access + url='https://{}/?comp=batch'.format(self.primary_hostname), + headers={ + 'x-ms-version': self._client._config.version # pylint: disable=protected-access + } + ) + + request.set_multipart_mixed( + *reqs, + policies=[ + StorageHeadersPolicy(), + self._credential_policy + ] + ) + + pipeline_response = await self._pipeline.run( + request, + ) + response = pipeline_response.http_response + + try: + if response.status_code not in [202]: + raise HttpResponseError(response=response) + return response.parts() # Return an AsyncIterator + except StorageErrorException as error: + process_storage_error(error) From 830b87e7312639c1c111d059e57696ac1f30a83c Mon Sep 17 00:00:00 2001 From: Laurent Mazuel Date: Wed, 2 Oct 2019 14:41:08 -0700 Subject: [PATCH 14/21] Python 2.7 compat --- .../blob/aio/container_client_async.py | 21 ++++++++------- .../azure/storage/blob/container_client.py | 27 +++++++++---------- .../tests/test_container.py | 8 +++--- .../tests/test_container_async.py | 4 +-- 4 files changed, 30 insertions(+), 30 deletions(-) diff --git a/sdk/storage/azure-storage-blob/azure/storage/blob/aio/container_client_async.py b/sdk/storage/azure-storage-blob/azure/storage/blob/aio/container_client_async.py index 7890b9aabe4a..177fe029aa01 100644 --- a/sdk/storage/azure-storage-blob/azure/storage/blob/aio/container_client_async.py +++ b/sdk/storage/azure-storage-blob/azure/storage/blob/aio/container_client_async.py @@ -6,14 +6,14 @@ import functools from typing import ( # pylint: disable=unused-import - Union, Optional, Any, Iterable, AnyStr, Dict, List, Tuple, IO, + Union, Optional, Any, Iterable, AnyStr, Dict, List, Tuple, IO, AsyncIterator, TYPE_CHECKING ) from azure.core.tracing.decorator import distributed_trace from azure.core.tracing.decorator_async import distributed_trace_async from azure.core.async_paging import AsyncItemPaged -from azure.core.pipeline.transport import HttpRequest +from azure.core.pipeline.transport import HttpRequest, AsyncHttpResponse from .._shared.base_client_async import AsyncStorageAccountHostsMixin from .._shared.policies_async import ExponentialRetry @@ -43,6 +43,7 @@ from ..models import ( # pylint: disable=unused-import AccessPolicy, ContentSettings, + StandardBlobTier, PremiumPageBlobTier) @@ -860,11 +861,11 @@ async def delete_blobs( @distributed_trace async def set_standard_blob_tier_blobs( - self, *blobs, # type: Union[str, BlobProperties] - standard_blob_tier, + self, + standard_blob_tier: Union[str, 'StandardBlobTier'], + *blobs: Union[str, BlobProperties], **kwargs - ): - # type: (Union[str, BlobProperties], Union[str, StandardBlobTier], Any) -> None + ) -> AsyncIterator[AsyncHttpResponse]: """This operation sets the tier on block blobs. A block blob's tier determines Hot/Cool/Archive storage type. @@ -912,11 +913,11 @@ async def set_standard_blob_tier_blobs( @distributed_trace async def set_premium_page_blob_tier_blobs( - self, *blobs, # type: Union[str, BlobProperties] - premium_page_blob_tier, + self, + premium_page_blob_tier: Union[str, 'PremiumPageBlobTier'], + *blobs: Union[str, BlobProperties], **kwargs - ): - # type: (Union[str, BlobProperties], Union[str, PremiumPageBlobTier], Optional[int], Optional[Union[LeaseClient, str]], **Any) -> None + ) -> AsyncIterator[AsyncHttpResponse]: """Sets the page blob tiers on the blobs. This API is only supported for page blobs on premium accounts. :param blobs: The blobs with which to interact. diff --git a/sdk/storage/azure-storage-blob/azure/storage/blob/container_client.py b/sdk/storage/azure-storage-blob/azure/storage/blob/container_client.py index 537032d151dc..404a3a2f8940 100644 --- a/sdk/storage/azure-storage-blob/azure/storage/blob/container_client.py +++ b/sdk/storage/azure-storage-blob/azure/storage/blob/container_client.py @@ -997,13 +997,7 @@ def _generate_delete_blobs_options(self, snapshot=None, timeout=None, delete_sna return query_parameters, header_parameters @distributed_trace - def delete_blobs( - self, *blobs, # type: Union[str, BlobProperties] - delete_snapshots=None, # type: Optional[str] - lease=None, # type: Optional[Union[str, LeaseClient]] - timeout=None, # type: Optional[int] - **kwargs - ): + def delete_blobs(self, *blobs, **kwargs): # type: (...) -> None """Marks the specified blobs or snapshots for deletion. @@ -1057,7 +1051,10 @@ def delete_blobs( The timeout parameter is expressed in seconds. :rtype: None """ - options = BlobClient._generic_delete_blob_options( + delete_snapshots = kwargs.get('delete_snapshots', None) + lease = kwargs.get('lease', None) + timeout = kwargs.get('timeout', None) + options = BlobClient._generic_delete_blob_options( # pylint: disable=protected-access delete_snapshots=delete_snapshots, lease=lease, timeout=timeout, @@ -1105,11 +1102,12 @@ def _generate_set_tier_options(self, tier, timeout=None, rehydrate_priority=None @distributed_trace def set_standard_blob_tier_blobs( - self, *blobs, # type: Union[str, BlobProperties] - standard_blob_tier, + self, + standard_blob_tier, # type: Union[str, StandardBlobTier] + *blobs, # type: Union[str, BlobProperties] **kwargs ): - # type: (Union[str, BlobProperties], Union[str, StandardBlobTier], Any) -> None + # type: (...) -> Iterator[HttpResponse] """This operation sets the tier on block blobs. A block blob's tier determines Hot/Cool/Archive storage type. @@ -1157,11 +1155,12 @@ def set_standard_blob_tier_blobs( @distributed_trace def set_premium_page_blob_tier_blobs( - self, *blobs, # type: Union[str, BlobProperties] - premium_page_blob_tier, + self, + premium_page_blob_tier, # type: Union[str, PremiumPageBlobTier] + *blobs, # type: Union[str, BlobProperties] **kwargs ): - # type: (Union[str, BlobProperties], Union[str, PremiumPageBlobTier], Optional[int], Optional[Union[LeaseClient, str]], **Any) -> None + # type: (...) -> Iterator[HttpResponse] """Sets the page blob tiers on the blobs. This API is only supported for page blobs on premium accounts. :param blobs: The blobs with which to interact. diff --git a/sdk/storage/azure-storage-blob/tests/test_container.py b/sdk/storage/azure-storage-blob/tests/test_container.py index 8109ad2b29e9..475f887695d6 100644 --- a/sdk/storage/azure-storage-blob/tests/test_container.py +++ b/sdk/storage/azure-storage-blob/tests/test_container.py @@ -864,7 +864,7 @@ def test_list_blobs_with_include_snapshots(self): @record def test_list_blobs_with_include_metadata(self): # Arrange - + container = self._create_container() data = b'hello world' blob1 = container.get_blob_client('blob1') @@ -1043,10 +1043,10 @@ def test_standard_blob_tier_set_tier_api_batch(self): assert blob_ref.blob_tier_change_time is None parts = container.set_standard_blob_tier_blobs( + tier, 'blob1', 'blob2', 'blob3', - standard_blob_tier=tier ) parts = list(parts) @@ -1095,10 +1095,10 @@ def test_premium_tier_set_tier_api_batch(self): assert blob_ref.blob_tier_inferred parts = container.set_premium_page_blob_tier_blobs( + PremiumPageBlobTier.P50, 'blob1', 'blob2', 'blob3', - premium_page_blob_tier=PremiumPageBlobTier.P50 ) parts = list(parts) @@ -1146,7 +1146,7 @@ def recursive_walk(prefix): @record def test_list_blobs_with_include_multiple(self): # Arrange - + container = self._create_container() data = b'hello world' blob1 = container.get_blob_client('blob1') diff --git a/sdk/storage/azure-storage-blob/tests/test_container_async.py b/sdk/storage/azure-storage-blob/tests/test_container_async.py index 4106c3f0049c..3f511f8e60bc 100644 --- a/sdk/storage/azure-storage-blob/tests/test_container_async.py +++ b/sdk/storage/azure-storage-blob/tests/test_container_async.py @@ -1288,10 +1288,10 @@ async def _test_standard_blob_tier_set_tier_api_batch(self): assert blob_ref.blob_tier_change_time is None parts = await _to_list(await container.set_standard_blob_tier_blobs( + tier, 'blob1', 'blob2', 'blob3', - standard_blob_tier=tier )) assert len(parts) == 3 @@ -1344,10 +1344,10 @@ async def _test_premium_tier_set_tier_api_batch(self): assert blob_ref.blob_tier_inferred parts = await _to_list(container.set_premium_page_blob_tier_blobs( + PremiumPageBlobTier.P50, 'blob1', 'blob2', 'blob3', - premium_page_blob_tier=PremiumPageBlobTier.P50 )) assert len(parts) == 3 From 29cc59d3ed1c293b21b1fe642b537e885c8aa0f8 Mon Sep 17 00:00:00 2001 From: Laurent Mazuel Date: Wed, 2 Oct 2019 15:21:23 -0700 Subject: [PATCH 15/21] Fix snapshot bug --- .../azure/storage/blob/container_client.py | 6 - ..._container.test_delete_blobs_snapshot.yaml | 557 +++++++++++------- 2 files changed, 351 insertions(+), 212 deletions(-) diff --git a/sdk/storage/azure-storage-blob/azure/storage/blob/container_client.py b/sdk/storage/azure-storage-blob/azure/storage/blob/container_client.py index 404a3a2f8940..1163b76ef0eb 100644 --- a/sdk/storage/azure-storage-blob/azure/storage/blob/container_client.py +++ b/sdk/storage/azure-storage-blob/azure/storage/blob/container_client.py @@ -1051,13 +1051,7 @@ def delete_blobs(self, *blobs, **kwargs): The timeout parameter is expressed in seconds. :rtype: None """ - delete_snapshots = kwargs.get('delete_snapshots', None) - lease = kwargs.get('lease', None) - timeout = kwargs.get('timeout', None) options = BlobClient._generic_delete_blob_options( # pylint: disable=protected-access - delete_snapshots=delete_snapshots, - lease=lease, - timeout=timeout, **kwargs ) query_parameters, header_parameters = self._generate_delete_blobs_options(**options) diff --git a/sdk/storage/azure-storage-blob/tests/recordings/test_container.test_delete_blobs_snapshot.yaml b/sdk/storage/azure-storage-blob/tests/recordings/test_container.test_delete_blobs_snapshot.yaml index 3c44b7a1bef4..4e1711b6e33f 100644 --- a/sdk/storage/azure-storage-blob/tests/recordings/test_container.test_delete_blobs_snapshot.yaml +++ b/sdk/storage/azure-storage-blob/tests/recordings/test_container.test_delete_blobs_snapshot.yaml @@ -2,283 +2,428 @@ interactions: - request: body: null headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['0'] - User-Agent: [azsdk-python-storage-blob/12.0.0b3 Python/3.7.0 (Windows-10-10.0.18362-SP0)] - content-type: [application/xml; charset=utf-8] - x-ms-client-request-id: [e1722e86-e47f-11e9-b056-ecb1d756380e] - x-ms-date: ['Tue, 01 Oct 2019 19:15:50 GMT'] - x-ms-version: ['2019-02-02'] + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.6.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - eb058370-e562-11e9-9516-1831bf6ae40e + x-ms-date: + - Wed, 02 Oct 2019 22:21:02 GMT + x-ms-version: + - '2019-02-02' method: PUT uri: https://storagename.blob.core.windows.net/container617e10e3?restype=container response: - body: {string: ''} + body: + string: '' headers: - Content-Length: ['0'] - Date: ['Tue, 01 Oct 2019 19:15:50 GMT'] - ETag: ['"0x8D746A3C5D36D35"'] - Last-Modified: ['Tue, 01 Oct 2019 19:15:50 GMT'] - Server: [Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0] - x-ms-client-request-id: [e1722e86-e47f-11e9-b056-ecb1d756380e] - x-ms-request-id: [cf935ef4-d01e-0003-5b8c-786707000000] - x-ms-version: ['2019-02-02'] - status: {code: 201, message: Created} + Content-Length: + - '0' + Date: + - Wed, 02 Oct 2019 22:21:01 GMT + ETag: + - '"0x8D74786CF093025"' + Last-Modified: + - Wed, 02 Oct 2019 22:21:02 GMT + Server: + - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-request-id: + - 79046f8d-e01e-00ab-356f-790095000000 + x-ms-version: + - '2019-02-02' + status: + code: 201 + message: Created - request: body: hello world headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['11'] - Content-Type: [application/octet-stream] - If-None-Match: ['*'] - User-Agent: [azsdk-python-storage-blob/12.0.0b3 Python/3.7.0 (Windows-10-10.0.18362-SP0)] - x-ms-blob-type: [BlockBlob] - x-ms-client-request-id: [e1a0b6cc-e47f-11e9-a52d-ecb1d756380e] - x-ms-date: ['Tue, 01 Oct 2019 19:15:50 GMT'] - x-ms-version: ['2019-02-02'] + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '11' + Content-Type: + - application/octet-stream + If-None-Match: + - '*' + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.6.3 (Windows-10-10.0.18362-SP0) + x-ms-blob-type: + - BlockBlob + x-ms-client-request-id: + - eb26ec82-e562-11e9-89e7-1831bf6ae40e + x-ms-date: + - Wed, 02 Oct 2019 22:21:02 GMT + x-ms-version: + - '2019-02-02' method: PUT uri: https://storagename.blob.core.windows.net/container617e10e3/blob1 response: - body: {string: ''} + body: + string: '' headers: - Content-Length: ['0'] - Content-MD5: [XrY7u+Ae7tCTyyK7j1rNww==] - Date: ['Tue, 01 Oct 2019 19:15:50 GMT'] - ETag: ['"0x8D746A3C5E03DF7"'] - Last-Modified: ['Tue, 01 Oct 2019 19:15:50 GMT'] - Server: [Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0] - x-ms-client-request-id: [e1a0b6cc-e47f-11e9-a52d-ecb1d756380e] - x-ms-content-crc64: [vo7q9sPVKY0=] - x-ms-request-id: [cf935f2b-d01e-0003-0d8c-786707000000] - x-ms-request-server-encrypted: ['true'] - x-ms-version: ['2019-02-02'] - status: {code: 201, message: Created} + Content-Length: + - '0' + Content-MD5: + - XrY7u+Ae7tCTyyK7j1rNww== + Date: + - Wed, 02 Oct 2019 22:21:01 GMT + ETag: + - '"0x8D74786CF0FC4DA"' + Last-Modified: + - Wed, 02 Oct 2019 22:21:02 GMT + Server: + - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-content-crc64: + - vo7q9sPVKY0= + x-ms-request-id: + - 79046fa0-e01e-00ab-466f-790095000000 + x-ms-request-server-encrypted: + - 'true' + x-ms-version: + - '2019-02-02' + status: + code: 201 + message: Created - request: body: null headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['0'] - User-Agent: [azsdk-python-storage-blob/12.0.0b3 Python/3.7.0 (Windows-10-10.0.18362-SP0)] - content-type: [application/xml; charset=utf-8] - x-ms-client-request-id: [e1ad8824-e47f-11e9-9e1b-ecb1d756380e] - x-ms-date: ['Tue, 01 Oct 2019 19:15:50 GMT'] - x-ms-version: ['2019-02-02'] + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.6.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - eb2c7a4a-e562-11e9-8000-1831bf6ae40e + x-ms-date: + - Wed, 02 Oct 2019 22:21:02 GMT + x-ms-version: + - '2019-02-02' method: PUT uri: https://storagename.blob.core.windows.net/container617e10e3/blob1?comp=snapshot response: - body: {string: ''} + body: + string: '' headers: - Content-Length: ['0'] - Date: ['Tue, 01 Oct 2019 19:15:50 GMT'] - ETag: ['"0x8D746A3C5E03DF7"'] - Last-Modified: ['Tue, 01 Oct 2019 19:15:50 GMT'] - Server: [Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0] - x-ms-client-request-id: [e1ad8824-e47f-11e9-9e1b-ecb1d756380e] - x-ms-request-id: [cf935f59-d01e-0003-388c-786707000000] - x-ms-request-server-encrypted: ['false'] - x-ms-snapshot: ['2019-10-01T19:15:51.0506185Z'] - x-ms-version: ['2019-02-02'] - status: {code: 201, message: Created} + Content-Length: + - '0' + Date: + - Wed, 02 Oct 2019 22:21:01 GMT + ETag: + - '"0x8D74786CF0FC4DA"' + Last-Modified: + - Wed, 02 Oct 2019 22:21:02 GMT + Server: + - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-request-id: + - 79046fa9-e01e-00ab-4e6f-790095000000 + x-ms-request-server-encrypted: + - 'false' + x-ms-snapshot: + - '2019-10-02T22:21:02.1651461Z' + x-ms-version: + - '2019-02-02' + status: + code: 201 + message: Created - request: body: hello world headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['11'] - Content-Type: [application/octet-stream] - If-None-Match: ['*'] - User-Agent: [azsdk-python-storage-blob/12.0.0b3 Python/3.7.0 (Windows-10-10.0.18362-SP0)] - x-ms-blob-type: [BlockBlob] - x-ms-client-request-id: [e1ba324a-e47f-11e9-a518-ecb1d756380e] - x-ms-date: ['Tue, 01 Oct 2019 19:15:51 GMT'] - x-ms-version: ['2019-02-02'] + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '11' + Content-Type: + - application/octet-stream + If-None-Match: + - '*' + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.6.3 (Windows-10-10.0.18362-SP0) + x-ms-blob-type: + - BlockBlob + x-ms-client-request-id: + - eb32371e-e562-11e9-9d7b-1831bf6ae40e + x-ms-date: + - Wed, 02 Oct 2019 22:21:02 GMT + x-ms-version: + - '2019-02-02' method: PUT uri: https://storagename.blob.core.windows.net/container617e10e3/blob2 response: - body: {string: ''} + body: + string: '' headers: - Content-Length: ['0'] - Content-MD5: [XrY7u+Ae7tCTyyK7j1rNww==] - Date: ['Tue, 01 Oct 2019 19:15:50 GMT'] - ETag: ['"0x8D746A3C5F9E514"'] - Last-Modified: ['Tue, 01 Oct 2019 19:15:51 GMT'] - Server: [Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0] - x-ms-client-request-id: [e1ba324a-e47f-11e9-a518-ecb1d756380e] - x-ms-content-crc64: [vo7q9sPVKY0=] - x-ms-request-id: [cf935f8e-d01e-0003-6a8c-786707000000] - x-ms-request-server-encrypted: ['true'] - x-ms-version: ['2019-02-02'] - status: {code: 201, message: Created} + Content-Length: + - '0' + Content-MD5: + - XrY7u+Ae7tCTyyK7j1rNww== + Date: + - Wed, 02 Oct 2019 22:21:01 GMT + ETag: + - '"0x8D74786CF1A9A60"' + Last-Modified: + - Wed, 02 Oct 2019 22:21:02 GMT + Server: + - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-content-crc64: + - vo7q9sPVKY0= + x-ms-request-id: + - 79046fb5-e01e-00ab-596f-790095000000 + x-ms-request-server-encrypted: + - 'true' + x-ms-version: + - '2019-02-02' + status: + code: 201 + message: Created - request: body: hello world headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['11'] - Content-Type: [application/octet-stream] - If-None-Match: ['*'] - User-Agent: [azsdk-python-storage-blob/12.0.0b3 Python/3.7.0 (Windows-10-10.0.18362-SP0)] - x-ms-blob-type: [BlockBlob] - x-ms-client-request-id: [e1c814e6-e47f-11e9-a1a2-ecb1d756380e] - x-ms-date: ['Tue, 01 Oct 2019 19:15:51 GMT'] - x-ms-version: ['2019-02-02'] + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '11' + Content-Type: + - application/octet-stream + If-None-Match: + - '*' + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.6.3 (Windows-10-10.0.18362-SP0) + x-ms-blob-type: + - BlockBlob + x-ms-client-request-id: + - eb37c8b8-e562-11e9-8848-1831bf6ae40e + x-ms-date: + - Wed, 02 Oct 2019 22:21:02 GMT + x-ms-version: + - '2019-02-02' method: PUT uri: https://storagename.blob.core.windows.net/container617e10e3/blob3 response: - body: {string: ''} + body: + string: '' headers: - Content-Length: ['0'] - Content-MD5: [XrY7u+Ae7tCTyyK7j1rNww==] - Date: ['Tue, 01 Oct 2019 19:15:50 GMT'] - ETag: ['"0x8D746A3C607F15D"'] - Last-Modified: ['Tue, 01 Oct 2019 19:15:51 GMT'] - Server: [Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0] - x-ms-client-request-id: [e1c814e6-e47f-11e9-a1a2-ecb1d756380e] - x-ms-content-crc64: [vo7q9sPVKY0=] - x-ms-request-id: [cf935fb5-d01e-0003-0e8c-786707000000] - x-ms-request-server-encrypted: ['true'] - x-ms-version: ['2019-02-02'] - status: {code: 201, message: Created} + Content-Length: + - '0' + Content-MD5: + - XrY7u+Ae7tCTyyK7j1rNww== + Date: + - Wed, 02 Oct 2019 22:21:01 GMT + ETag: + - '"0x8D74786CF20B4EF"' + Last-Modified: + - Wed, 02 Oct 2019 22:21:02 GMT + Server: + - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-content-crc64: + - vo7q9sPVKY0= + x-ms-request-id: + - 79046fbe-e01e-00ab-626f-790095000000 + x-ms-request-server-encrypted: + - 'true' + x-ms-version: + - '2019-02-02' + status: + code: 201 + message: Created - request: body: null headers: - Accept: [application/xml] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [azsdk-python-storage-blob/12.0.0b3 Python/3.7.0 (Windows-10-10.0.18362-SP0)] - content-type: [application/xml; charset=utf-8] - x-ms-client-request-id: [e1d386b4-e47f-11e9-972c-ecb1d756380e] - x-ms-date: ['Tue, 01 Oct 2019 19:15:51 GMT'] - x-ms-version: ['2019-02-02'] + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.6.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - eb3d7f76-e562-11e9-bb06-1831bf6ae40e + x-ms-date: + - Wed, 02 Oct 2019 22:21:02 GMT + x-ms-version: + - '2019-02-02' method: GET uri: https://storagename.blob.core.windows.net/container617e10e3?include=snapshots&restype=container&comp=list response: - body: {string: "\uFEFFblob12019-10-01T19:15:51.0506185ZTue, - 01 Oct 2019 19:15:50 GMTTue, 01 Oct 2019 19:15:50 - GMT0x8D746A3C5E03DF711application/octet-streamblob12019-10-02T22:21:02.1651461ZWed, + 02 Oct 2019 22:21:02 GMTWed, 02 Oct 2019 22:21:02 + GMT0x8D74786CF0FC4DA11application/octet-streamXrY7u+Ae7tCTyyK7j1rNww==BlockBlobHottruetrueblob1Tue, - 01 Oct 2019 19:15:50 GMTTue, 01 Oct 2019 19:15:50 - GMT0x8D746A3C5E03DF711application/octet-streamBlockBlobHottruetrueblob1Wed, + 02 Oct 2019 22:21:02 GMTWed, 02 Oct 2019 22:21:02 + GMT0x8D74786CF0FC4DA11application/octet-streamXrY7u+Ae7tCTyyK7j1rNww==BlockBlobHottrueunlockedavailabletrueblob2Tue, - 01 Oct 2019 19:15:51 GMTTue, 01 Oct 2019 19:15:51 - GMT0x8D746A3C5F9E51411application/octet-streamBlockBlobHottrueunlockedavailabletrueblob2Wed, + 02 Oct 2019 22:21:02 GMTWed, 02 Oct 2019 22:21:02 + GMT0x8D74786CF1A9A6011application/octet-streamXrY7u+Ae7tCTyyK7j1rNww==BlockBlobHottrueunlockedavailabletrueblob3Tue, - 01 Oct 2019 19:15:51 GMTTue, 01 Oct 2019 19:15:51 - GMT0x8D746A3C607F15D11application/octet-streamBlockBlobHottrueunlockedavailabletrueblob3Wed, + 02 Oct 2019 22:21:02 GMTWed, 02 Oct 2019 22:21:02 + GMT0x8D74786CF20B4EF11application/octet-streamXrY7u+Ae7tCTyyK7j1rNww==BlockBlobHottrueunlockedavailabletrue"} + />" headers: - Content-Type: [application/xml] - Date: ['Tue, 01 Oct 2019 19:15:50 GMT'] - Server: [Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - Vary: [Origin] - x-ms-client-request-id: [e1d386b4-e47f-11e9-972c-ecb1d756380e] - x-ms-request-id: [cf935fdf-d01e-0003-378c-786707000000] - x-ms-version: ['2019-02-02'] - status: {code: 200, message: OK} + Content-Type: + - application/xml + Date: + - Wed, 02 Oct 2019 22:21:01 GMT + Server: + - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + Transfer-Encoding: + - chunked + x-ms-request-id: + - 79046fc6-e01e-00ab-6a6f-790095000000 + x-ms-version: + - '2019-02-02' + status: + code: 200 + message: OK - request: - body: "--===============5779720402057910344==\r\nContent-Type: application/http\r\nContent-Transfer-Encoding: + body: "--===============1539093961782096636==\r\nContent-Type: application/http\r\nContent-Transfer-Encoding: binary\r\nContent-ID: 0\r\n\r\nDELETE /container617e10e3/blob1? HTTP/1.1\r\nx-ms-delete-snapshots: - only\r\nx-ms-date: Tue, 01 Oct 2019 19:15:51 GMT\r\nx-ms-client-request-id: - e1e44f92-e47f-11e9-8503-ecb1d756380e\r\ncontent-type: application/xml; charset=utf-8\r\nAuthorization: - SharedKey storagename:9Lx9Y3hqUPW5VjJQz7bolWNxpE0Tl4MTLMm95nUYyrw=\r\n\r\n\r\n--===============5779720402057910344==\r\nContent-Type: + only\r\nx-ms-date: Wed, 02 Oct 2019 22:21:02 GMT\r\nx-ms-client-request-id: + eb44e154-e562-11e9-86d7-1831bf6ae40e\r\nAuthorization: SharedKey storagename:4ggujmilY7Kt60C7/TxD7w4AVS41YNXjxAMssHDK+0w=\r\n\r\n\r\n--===============1539093961782096636==\r\nContent-Type: application/http\r\nContent-Transfer-Encoding: binary\r\nContent-ID: 1\r\n\r\nDELETE /container617e10e3/blob2? HTTP/1.1\r\nx-ms-delete-snapshots: only\r\nx-ms-date: - Tue, 01 Oct 2019 19:15:51 GMT\r\nx-ms-client-request-id: e1e476a2-e47f-11e9-92ef-ecb1d756380e\r\ncontent-type: - application/xml; charset=utf-8\r\nAuthorization: SharedKey storagename:6bOGy0gl1iD57sShFwAgHaO3ek+TQklirW3aMS6Cq7k=\r\n\r\n\r\n--===============5779720402057910344==\r\nContent-Type: + Wed, 02 Oct 2019 22:21:02 GMT\r\nx-ms-client-request-id: eb45084a-e562-11e9-a5ab-1831bf6ae40e\r\nAuthorization: + SharedKey storagename:3YUGlEc3AyLtmyU2Ce8HD/BfWvwuRf8j9V3q7uX61qI=\r\n\r\n\r\n--===============1539093961782096636==\r\nContent-Type: application/http\r\nContent-Transfer-Encoding: binary\r\nContent-ID: 2\r\n\r\nDELETE /container617e10e3/blob3? HTTP/1.1\r\nx-ms-delete-snapshots: only\r\nx-ms-date: - Tue, 01 Oct 2019 19:15:51 GMT\r\nx-ms-client-request-id: e1e49da6-e47f-11e9-a8e8-ecb1d756380e\r\ncontent-type: - application/xml; charset=utf-8\r\nAuthorization: SharedKey storagename:gUtl1LUl5hOwpj9layAq7GgLXbuHMNy/zfwWa1v5d08=\r\n\r\n\r\n--===============5779720402057910344==--\r\n" + Wed, 02 Oct 2019 22:21:02 GMT\r\nx-ms-client-request-id: eb45084b-e562-11e9-b104-1831bf6ae40e\r\nAuthorization: + SharedKey storagename:bAdH32W0qDOyKhY3vQDHDpMXTSGEKrVaQGOhOOtinSY=\r\n\r\n\r\n--===============1539093961782096636==--\r\n" headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['1332'] - Content-Type: [multipart/mixed; boundary================5779720402057910344==] - User-Agent: [azsdk-python-storage-blob/12.0.0b3 Python/3.7.0 (Windows-10-10.0.18362-SP0)] - x-ms-client-request-id: [e1e512ca-e47f-11e9-b414-ecb1d756380e] - x-ms-date: ['Tue, 01 Oct 2019 19:15:51 GMT'] - x-ms-version: ['2019-02-02'] + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '1224' + Content-Type: + - multipart/mixed; boundary================1539093961782096636== + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.6.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - eb45f294-e562-11e9-bd7d-1831bf6ae40e + x-ms-date: + - Wed, 02 Oct 2019 22:21:02 GMT + x-ms-version: + - '2019-02-02' method: POST uri: https://storagename.blob.core.windows.net/?comp=batch response: - body: {string: "--batchresponse_cd927d5a-216c-4d18-855e-e0f0a0f21629\r\nContent-Type: + body: + string: "--batchresponse_6247a833-d78b-4af5-b009-da10f0b7f9d7\r\nContent-Type: application/http\r\nContent-ID: 0\r\n\r\nHTTP/1.1 202 Accepted\r\nx-ms-delete-type-permanent: - true\r\nx-ms-request-id: cf93600a-d01e-0003-5e8c-7867071ed7a5\r\nx-ms-version: - 2019-02-02\r\nx-ms-client-request-id: e1e44f92-e47f-11e9-8503-ecb1d756380e\r\nServer: - Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_cd927d5a-216c-4d18-855e-e0f0a0f21629\r\nContent-Type: + true\r\nx-ms-request-id: 79046fd2-e01e-00ab-756f-7900951e5a4e\r\nx-ms-version: + 2019-02-02\r\nx-ms-client-request-id: eb44e154-e562-11e9-86d7-1831bf6ae40e\r\nServer: + Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_6247a833-d78b-4af5-b009-da10f0b7f9d7\r\nContent-Type: application/http\r\nContent-ID: 1\r\n\r\nHTTP/1.1 404 The specified blob does - not exist.\r\nx-ms-error-code: BlobNotFound\r\nx-ms-request-id: cf93600a-d01e-0003-5e8c-7867071ed7a7\r\nx-ms-version: - 2019-02-02\r\nx-ms-client-request-id: e1e476a2-e47f-11e9-92ef-ecb1d756380e\r\nContent-Length: + not exist.\r\nx-ms-error-code: BlobNotFound\r\nx-ms-request-id: 79046fd2-e01e-00ab-756f-7900951e5a50\r\nx-ms-version: + 2019-02-02\r\nx-ms-client-request-id: eb45084a-e562-11e9-a5ab-1831bf6ae40e\r\nContent-Length: 216\r\nContent-Type: application/xml\r\nServer: Windows-Azure-Blob/1.0\r\n\r\n\uFEFF\nBlobNotFoundThe - specified blob does not exist.\nRequestId:cf93600a-d01e-0003-5e8c-7867071ed7a7\nTime:2019-10-01T19:15:51.4149483Z\r\n--batchresponse_cd927d5a-216c-4d18-855e-e0f0a0f21629\r\nContent-Type: + specified blob does not exist.\nRequestId:79046fd2-e01e-00ab-756f-7900951e5a50\nTime:2019-10-02T22:21:02.3470197Z\r\n--batchresponse_6247a833-d78b-4af5-b009-da10f0b7f9d7\r\nContent-Type: application/http\r\nContent-ID: 2\r\n\r\nHTTP/1.1 404 The specified blob does - not exist.\r\nx-ms-error-code: BlobNotFound\r\nx-ms-request-id: cf93600a-d01e-0003-5e8c-7867071ed7a8\r\nx-ms-version: - 2019-02-02\r\nx-ms-client-request-id: e1e49da6-e47f-11e9-a8e8-ecb1d756380e\r\nContent-Length: + not exist.\r\nx-ms-error-code: BlobNotFound\r\nx-ms-request-id: 79046fd2-e01e-00ab-756f-7900951e5a51\r\nx-ms-version: + 2019-02-02\r\nx-ms-client-request-id: eb45084b-e562-11e9-b104-1831bf6ae40e\r\nContent-Length: 216\r\nContent-Type: application/xml\r\nServer: Windows-Azure-Blob/1.0\r\n\r\n\uFEFF\nBlobNotFoundThe - specified blob does not exist.\nRequestId:cf93600a-d01e-0003-5e8c-7867071ed7a8\nTime:2019-10-01T19:15:51.4149483Z\r\n--batchresponse_cd927d5a-216c-4d18-855e-e0f0a0f21629--"} + specified blob does not exist.\nRequestId:79046fd2-e01e-00ab-756f-7900951e5a51\nTime:2019-10-02T22:21:02.3480183Z\r\n--batchresponse_6247a833-d78b-4af5-b009-da10f0b7f9d7--" headers: - Content-Type: [multipart/mixed; boundary=batchresponse_cd927d5a-216c-4d18-855e-e0f0a0f21629] - Date: ['Tue, 01 Oct 2019 19:15:50 GMT'] - Server: [Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - x-ms-client-request-id: [e1e512ca-e47f-11e9-b414-ecb1d756380e] - x-ms-request-id: [cf93600a-d01e-0003-5e8c-786707000000] - x-ms-version: ['2019-02-02'] - status: {code: 202, message: Accepted} + Content-Type: + - multipart/mixed; boundary=batchresponse_6247a833-d78b-4af5-b009-da10f0b7f9d7 + Date: + - Wed, 02 Oct 2019 22:21:01 GMT + Server: + - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + Transfer-Encoding: + - chunked + x-ms-request-id: + - 79046fd2-e01e-00ab-756f-790095000000 + x-ms-version: + - '2019-02-02' + status: + code: 202 + message: Accepted - request: body: null headers: - Accept: [application/xml] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [azsdk-python-storage-blob/12.0.0b3 Python/3.7.0 (Windows-10-10.0.18362-SP0)] - content-type: [application/xml; charset=utf-8] - x-ms-client-request-id: [e1f16efe-e47f-11e9-b9af-ecb1d756380e] - x-ms-date: ['Tue, 01 Oct 2019 19:15:51 GMT'] - x-ms-version: ['2019-02-02'] + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.6.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - eb4e1d38-e562-11e9-ab2d-1831bf6ae40e + x-ms-date: + - Wed, 02 Oct 2019 22:21:02 GMT + x-ms-version: + - '2019-02-02' method: GET uri: https://storagename.blob.core.windows.net/container617e10e3?include=snapshots&restype=container&comp=list response: - body: {string: "\uFEFFblob1Tue, - 01 Oct 2019 19:15:50 GMTTue, 01 Oct 2019 19:15:50 - GMT0x8D746A3C5E03DF711application/octet-streamblob1Wed, + 02 Oct 2019 22:21:02 GMTWed, 02 Oct 2019 22:21:02 + GMT0x8D74786CF0FC4DA11application/octet-streamXrY7u+Ae7tCTyyK7j1rNww==BlockBlobHottrueunlockedavailabletrueblob2Tue, - 01 Oct 2019 19:15:51 GMTTue, 01 Oct 2019 19:15:51 - GMT0x8D746A3C5F9E51411application/octet-streamBlockBlobHottrueunlockedavailabletrueblob2Wed, + 02 Oct 2019 22:21:02 GMTWed, 02 Oct 2019 22:21:02 + GMT0x8D74786CF1A9A6011application/octet-streamXrY7u+Ae7tCTyyK7j1rNww==BlockBlobHottrueunlockedavailabletrueblob3Tue, - 01 Oct 2019 19:15:51 GMTTue, 01 Oct 2019 19:15:51 - GMT0x8D746A3C607F15D11application/octet-streamBlockBlobHottrueunlockedavailabletrueblob3Wed, + 02 Oct 2019 22:21:02 GMTWed, 02 Oct 2019 22:21:02 + GMT0x8D74786CF20B4EF11application/octet-streamXrY7u+Ae7tCTyyK7j1rNww==BlockBlobHottrueunlockedavailabletrue"} + />" headers: - Content-Type: [application/xml] - Date: ['Tue, 01 Oct 2019 19:15:50 GMT'] - Server: [Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - Vary: [Origin] - x-ms-client-request-id: [e1f16efe-e47f-11e9-b9af-ecb1d756380e] - x-ms-request-id: [cf93602b-d01e-0003-7e8c-786707000000] - x-ms-version: ['2019-02-02'] - status: {code: 200, message: OK} + Content-Type: + - application/xml + Date: + - Wed, 02 Oct 2019 22:21:01 GMT + Server: + - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + Transfer-Encoding: + - chunked + x-ms-request-id: + - 79046fdb-e01e-00ab-7d6f-790095000000 + x-ms-version: + - '2019-02-02' + status: + code: 200 + message: OK version: 1 From 45d6f7a82f94438b6e055ae6ae02ee7a9a55bad4 Mon Sep 17 00:00:00 2001 From: Laurent Mazuel Date: Wed, 2 Oct 2019 15:23:52 -0700 Subject: [PATCH 16/21] Re-record --- ...st_container.test_delete_blobs_simple.yaml | 354 ++-- ...standard_blob_tier_set_tier_api_batch.yaml | 1837 +++++++++++------ ...tainer_async.test_delete_blobs_simple.yaml | 336 +-- ...iner_async.test_delete_blobs_snapshot.yaml | 535 +++-- ...standard_blob_tier_set_tier_api_batch.yaml | 1565 ++++++++------ 5 files changed, 2890 insertions(+), 1737 deletions(-) diff --git a/sdk/storage/azure-storage-blob/tests/recordings/test_container.test_delete_blobs_simple.yaml b/sdk/storage/azure-storage-blob/tests/recordings/test_container.test_delete_blobs_simple.yaml index 6a1e9496d5e6..f414d105a69b 100644 --- a/sdk/storage/azure-storage-blob/tests/recordings/test_container.test_delete_blobs_simple.yaml +++ b/sdk/storage/azure-storage-blob/tests/recordings/test_container.test_delete_blobs_simple.yaml @@ -2,168 +2,268 @@ interactions: - request: body: null headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['0'] - User-Agent: [azsdk-python-storage-blob/12.0.0b3 Python/3.7.0 (Windows-10-10.0.18362-SP0)] - content-type: [application/xml; charset=utf-8] - x-ms-client-request-id: [e0c0b27a-e47f-11e9-b392-ecb1d756380e] - x-ms-date: ['Tue, 01 Oct 2019 19:15:49 GMT'] - x-ms-version: ['2019-02-02'] + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.6.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - 1f1c7a9c-e562-11e9-a217-1831bf6ae40e + x-ms-date: + - Wed, 02 Oct 2019 22:15:20 GMT + x-ms-version: + - '2019-02-02' method: PUT uri: https://storagename.blob.core.windows.net/container40320ffd?restype=container response: - body: {string: ''} + body: + string: '' headers: - Content-Length: ['0'] - Date: ['Tue, 01 Oct 2019 19:15:49 GMT'] - ETag: ['"0x8D746A3C5240464"'] - Last-Modified: ['Tue, 01 Oct 2019 19:15:49 GMT'] - Server: [Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0] - x-ms-client-request-id: [e0c0b27a-e47f-11e9-b392-ecb1d756380e] - x-ms-request-id: [14a5b9d5-f01e-0050-638c-787b08000000] - x-ms-version: ['2019-02-02'] - status: {code: 201, message: Created} + Content-Length: + - '0' + Date: + - Wed, 02 Oct 2019 22:15:19 GMT + ETag: + - '"0x8D747860324DED7"' + Last-Modified: + - Wed, 02 Oct 2019 22:15:20 GMT + Server: + - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-request-id: + - bbff4dbe-c01e-002a-7f6e-79a04f000000 + x-ms-version: + - '2019-02-02' + status: + code: 201 + message: Created - request: body: hello world headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['11'] - Content-Type: [application/octet-stream] - If-None-Match: ['*'] - User-Agent: [azsdk-python-storage-blob/12.0.0b3 Python/3.7.0 (Windows-10-10.0.18362-SP0)] - x-ms-blob-type: [BlockBlob] - x-ms-client-request-id: [e0f18ff0-e47f-11e9-a602-ecb1d756380e] - x-ms-date: ['Tue, 01 Oct 2019 19:15:49 GMT'] - x-ms-version: ['2019-02-02'] + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '11' + Content-Type: + - application/octet-stream + If-None-Match: + - '*' + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.6.3 (Windows-10-10.0.18362-SP0) + x-ms-blob-type: + - BlockBlob + x-ms-client-request-id: + - 1f42155a-e562-11e9-a95f-1831bf6ae40e + x-ms-date: + - Wed, 02 Oct 2019 22:15:20 GMT + x-ms-version: + - '2019-02-02' method: PUT uri: https://storagename.blob.core.windows.net/container40320ffd/blob1 response: - body: {string: ''} + body: + string: '' headers: - Content-Length: ['0'] - Content-MD5: [XrY7u+Ae7tCTyyK7j1rNww==] - Date: ['Tue, 01 Oct 2019 19:15:49 GMT'] - ETag: ['"0x8D746A3C53119A5"'] - Last-Modified: ['Tue, 01 Oct 2019 19:15:49 GMT'] - Server: [Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0] - x-ms-client-request-id: [e0f18ff0-e47f-11e9-a602-ecb1d756380e] - x-ms-content-crc64: [vo7q9sPVKY0=] - x-ms-request-id: [14a5ba07-f01e-0050-118c-787b08000000] - x-ms-request-server-encrypted: ['true'] - x-ms-version: ['2019-02-02'] - status: {code: 201, message: Created} + Content-Length: + - '0' + Content-MD5: + - XrY7u+Ae7tCTyyK7j1rNww== + Date: + - Wed, 02 Oct 2019 22:15:19 GMT + ETag: + - '"0x8D74786032B5F68"' + Last-Modified: + - Wed, 02 Oct 2019 22:15:20 GMT + Server: + - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-content-crc64: + - vo7q9sPVKY0= + x-ms-request-id: + - bbff4dd5-c01e-002a-146e-79a04f000000 + x-ms-request-server-encrypted: + - 'true' + x-ms-version: + - '2019-02-02' + status: + code: 201 + message: Created - request: body: hello world headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['11'] - Content-Type: [application/octet-stream] - If-None-Match: ['*'] - User-Agent: [azsdk-python-storage-blob/12.0.0b3 Python/3.7.0 (Windows-10-10.0.18362-SP0)] - x-ms-blob-type: [BlockBlob] - x-ms-client-request-id: [e0ff4b86-e47f-11e9-942e-ecb1d756380e] - x-ms-date: ['Tue, 01 Oct 2019 19:15:49 GMT'] - x-ms-version: ['2019-02-02'] + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '11' + Content-Type: + - application/octet-stream + If-None-Match: + - '*' + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.6.3 (Windows-10-10.0.18362-SP0) + x-ms-blob-type: + - BlockBlob + x-ms-client-request-id: + - 1f48408c-e562-11e9-9372-1831bf6ae40e + x-ms-date: + - Wed, 02 Oct 2019 22:15:20 GMT + x-ms-version: + - '2019-02-02' method: PUT uri: https://storagename.blob.core.windows.net/container40320ffd/blob2 response: - body: {string: ''} + body: + string: '' headers: - Content-Length: ['0'] - Content-MD5: [XrY7u+Ae7tCTyyK7j1rNww==] - Date: ['Tue, 01 Oct 2019 19:15:49 GMT'] - ETag: ['"0x8D746A3C5405EAB"'] - Last-Modified: ['Tue, 01 Oct 2019 19:15:49 GMT'] - Server: [Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0] - x-ms-client-request-id: [e0ff4b86-e47f-11e9-942e-ecb1d756380e] - x-ms-content-crc64: [vo7q9sPVKY0=] - x-ms-request-id: [14a5ba38-f01e-0050-428c-787b08000000] - x-ms-request-server-encrypted: ['true'] - x-ms-version: ['2019-02-02'] - status: {code: 201, message: Created} + Content-Length: + - '0' + Content-MD5: + - XrY7u+Ae7tCTyyK7j1rNww== + Date: + - Wed, 02 Oct 2019 22:15:19 GMT + ETag: + - '"0x8D747860331A108"' + Last-Modified: + - Wed, 02 Oct 2019 22:15:20 GMT + Server: + - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-content-crc64: + - vo7q9sPVKY0= + x-ms-request-id: + - bbff4e05-c01e-002a-3f6e-79a04f000000 + x-ms-request-server-encrypted: + - 'true' + x-ms-version: + - '2019-02-02' + status: + code: 201 + message: Created - request: body: hello world headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['11'] - Content-Type: [application/octet-stream] - If-None-Match: ['*'] - User-Agent: [azsdk-python-storage-blob/12.0.0b3 Python/3.7.0 (Windows-10-10.0.18362-SP0)] - x-ms-blob-type: [BlockBlob] - x-ms-client-request-id: [e10cb7c0-e47f-11e9-9a4f-ecb1d756380e] - x-ms-date: ['Tue, 01 Oct 2019 19:15:49 GMT'] - x-ms-version: ['2019-02-02'] + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '11' + Content-Type: + - application/octet-stream + If-None-Match: + - '*' + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.6.3 (Windows-10-10.0.18362-SP0) + x-ms-blob-type: + - BlockBlob + x-ms-client-request-id: + - 1f4e82e2-e562-11e9-93ee-1831bf6ae40e + x-ms-date: + - Wed, 02 Oct 2019 22:15:20 GMT + x-ms-version: + - '2019-02-02' method: PUT uri: https://storagename.blob.core.windows.net/container40320ffd/blob3 response: - body: {string: ''} + body: + string: '' headers: - Content-Length: ['0'] - Content-MD5: [XrY7u+Ae7tCTyyK7j1rNww==] - Date: ['Tue, 01 Oct 2019 19:15:49 GMT'] - ETag: ['"0x8D746A3C54C2096"'] - Last-Modified: ['Tue, 01 Oct 2019 19:15:49 GMT'] - Server: [Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0] - x-ms-client-request-id: [e10cb7c0-e47f-11e9-9a4f-ecb1d756380e] - x-ms-content-crc64: [vo7q9sPVKY0=] - x-ms-request-id: [14a5ba72-f01e-0050-7b8c-787b08000000] - x-ms-request-server-encrypted: ['true'] - x-ms-version: ['2019-02-02'] - status: {code: 201, message: Created} + Content-Length: + - '0' + Content-MD5: + - XrY7u+Ae7tCTyyK7j1rNww== + Date: + - Wed, 02 Oct 2019 22:15:19 GMT + ETag: + - '"0x8D747860337BBAE"' + Last-Modified: + - Wed, 02 Oct 2019 22:15:20 GMT + Server: + - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-content-crc64: + - vo7q9sPVKY0= + x-ms-request-id: + - bbff4e3b-c01e-002a-746e-79a04f000000 + x-ms-request-server-encrypted: + - 'true' + x-ms-version: + - '2019-02-02' + status: + code: 201 + message: Created - request: - body: "--===============1531725606335133470==\r\nContent-Type: application/http\r\nContent-Transfer-Encoding: + body: "--===============6509041723044035282==\r\nContent-Type: application/http\r\nContent-Transfer-Encoding: binary\r\nContent-ID: 0\r\n\r\nDELETE /container40320ffd/blob1? HTTP/1.1\r\nx-ms-date: - Tue, 01 Oct 2019 19:15:49 GMT\r\nx-ms-client-request-id: e1189e88-e47f-11e9-8678-ecb1d756380e\r\ncontent-type: - application/xml; charset=utf-8\r\nAuthorization: SharedKey storagename:a41hZsRXcff//FpBYc+86sFcsNORue14K7trG+16iDg=\r\n\r\n\r\n--===============1531725606335133470==\r\nContent-Type: + Wed, 02 Oct 2019 22:15:20 GMT\r\nx-ms-client-request-id: 1f542b48-e562-11e9-9202-1831bf6ae40e\r\nAuthorization: + SharedKey storagename:7rPWaFC2nZeFSbNHp9HtPRtsVJxAJpQ7yBBFYTvwQWY=\r\n\r\n\r\n--===============6509041723044035282==\r\nContent-Type: application/http\r\nContent-Transfer-Encoding: binary\r\nContent-ID: 1\r\n\r\nDELETE - /container40320ffd/blob2? HTTP/1.1\r\nx-ms-date: Tue, 01 Oct 2019 19:15:49 GMT\r\nx-ms-client-request-id: - e118eca4-e47f-11e9-b776-ecb1d756380e\r\ncontent-type: application/xml; charset=utf-8\r\nAuthorization: - SharedKey storagename:n5PcFN6XnPcWk25g2dNXCZ/b6n7zd0ZB/fd63IITBQI=\r\n\r\n\r\n--===============1531725606335133470==\r\nContent-Type: + /container40320ffd/blob2? HTTP/1.1\r\nx-ms-date: Wed, 02 Oct 2019 22:15:20 GMT\r\nx-ms-client-request-id: + 1f542b49-e562-11e9-9a21-1831bf6ae40e\r\nAuthorization: SharedKey storagename:TuUlIAslJziZiKLOxP9EO6eGmji4hR+qjmi35jvUtMc=\r\n\r\n\r\n--===============6509041723044035282==\r\nContent-Type: application/http\r\nContent-Transfer-Encoding: binary\r\nContent-ID: 2\r\n\r\nDELETE - /container40320ffd/blob3? HTTP/1.1\r\nx-ms-date: Tue, 01 Oct 2019 19:15:50 GMT\r\nx-ms-client-request-id: - e11913ee-e47f-11e9-a493-ecb1d756380e\r\ncontent-type: application/xml; charset=utf-8\r\nAuthorization: - SharedKey storagename:7tVU2oZ+d87qg1MKer3ay0ST6I4eqv3C8Lsx+7REJds=\r\n\r\n\r\n--===============1531725606335133470==--\r\n" + /container40320ffd/blob3? HTTP/1.1\r\nx-ms-date: Wed, 02 Oct 2019 22:15:20 GMT\r\nx-ms-client-request-id: + 1f545258-e562-11e9-83d3-1831bf6ae40e\r\nAuthorization: SharedKey storagename:mvIny/22JTFGeQv4CwhkRT1PbaqRDoKMZ/J25v8VdK4=\r\n\r\n\r\n--===============6509041723044035282==--\r\n" headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['1245'] - Content-Type: [multipart/mixed; boundary================1531725606335133470==] - User-Agent: [azsdk-python-storage-blob/12.0.0b3 Python/3.7.0 (Windows-10-10.0.18362-SP0)] - x-ms-client-request-id: [e11c2258-e47f-11e9-9f62-ecb1d756380e] - x-ms-date: ['Tue, 01 Oct 2019 19:15:50 GMT'] - x-ms-version: ['2019-02-02'] + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '1137' + Content-Type: + - multipart/mixed; boundary================6509041723044035282== + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.6.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - 1f553e90-e562-11e9-8dbd-1831bf6ae40e + x-ms-date: + - Wed, 02 Oct 2019 22:15:20 GMT + x-ms-version: + - '2019-02-02' method: POST uri: https://storagename.blob.core.windows.net/?comp=batch response: - body: {string: "--batchresponse_1c6a2ff3-9855-400d-9153-79daa767f8bc\r\nContent-Type: + body: + string: "--batchresponse_a09acdaf-0ce4-4577-9b1a-0cc7bceb37be\r\nContent-Type: application/http\r\nContent-ID: 0\r\n\r\nHTTP/1.1 202 Accepted\r\nx-ms-delete-type-permanent: - true\r\nx-ms-request-id: 14a5bab3-f01e-0050-3b8c-787b081efd15\r\nx-ms-version: - 2019-02-02\r\nx-ms-client-request-id: e1189e88-e47f-11e9-8678-ecb1d756380e\r\nServer: - Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_1c6a2ff3-9855-400d-9153-79daa767f8bc\r\nContent-Type: + true\r\nx-ms-request-id: bbff4e5b-c01e-002a-126e-79a04f1e1cf3\r\nx-ms-version: + 2019-02-02\r\nx-ms-client-request-id: 1f542b48-e562-11e9-9202-1831bf6ae40e\r\nServer: + Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_a09acdaf-0ce4-4577-9b1a-0cc7bceb37be\r\nContent-Type: application/http\r\nContent-ID: 1\r\n\r\nHTTP/1.1 202 Accepted\r\nx-ms-delete-type-permanent: - true\r\nx-ms-request-id: 14a5bab3-f01e-0050-3b8c-787b081efd19\r\nx-ms-version: - 2019-02-02\r\nx-ms-client-request-id: e118eca4-e47f-11e9-b776-ecb1d756380e\r\nServer: - Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_1c6a2ff3-9855-400d-9153-79daa767f8bc\r\nContent-Type: + true\r\nx-ms-request-id: bbff4e5b-c01e-002a-126e-79a04f1e1cf5\r\nx-ms-version: + 2019-02-02\r\nx-ms-client-request-id: 1f542b49-e562-11e9-9a21-1831bf6ae40e\r\nServer: + Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_a09acdaf-0ce4-4577-9b1a-0cc7bceb37be\r\nContent-Type: application/http\r\nContent-ID: 2\r\n\r\nHTTP/1.1 202 Accepted\r\nx-ms-delete-type-permanent: - true\r\nx-ms-request-id: 14a5bab3-f01e-0050-3b8c-787b081efd1a\r\nx-ms-version: - 2019-02-02\r\nx-ms-client-request-id: e11913ee-e47f-11e9-a493-ecb1d756380e\r\nServer: - Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_1c6a2ff3-9855-400d-9153-79daa767f8bc--"} + true\r\nx-ms-request-id: bbff4e5b-c01e-002a-126e-79a04f1e1cf6\r\nx-ms-version: + 2019-02-02\r\nx-ms-client-request-id: 1f545258-e562-11e9-83d3-1831bf6ae40e\r\nServer: + Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_a09acdaf-0ce4-4577-9b1a-0cc7bceb37be--" headers: - Content-Type: [multipart/mixed; boundary=batchresponse_1c6a2ff3-9855-400d-9153-79daa767f8bc] - Date: ['Tue, 01 Oct 2019 19:15:49 GMT'] - Server: [Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - x-ms-client-request-id: [e11c2258-e47f-11e9-9f62-ecb1d756380e] - x-ms-request-id: [14a5bab3-f01e-0050-3b8c-787b08000000] - x-ms-version: ['2019-02-02'] - status: {code: 202, message: Accepted} + Content-Type: + - multipart/mixed; boundary=batchresponse_a09acdaf-0ce4-4577-9b1a-0cc7bceb37be + Date: + - Wed, 02 Oct 2019 22:15:20 GMT + Server: + - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + Transfer-Encoding: + - chunked + x-ms-request-id: + - bbff4e5b-c01e-002a-126e-79a04f000000 + x-ms-version: + - '2019-02-02' + status: + code: 202 + message: Accepted version: 1 diff --git a/sdk/storage/azure-storage-blob/tests/recordings/test_container.test_standard_blob_tier_set_tier_api_batch.yaml b/sdk/storage/azure-storage-blob/tests/recordings/test_container.test_standard_blob_tier_set_tier_api_batch.yaml index a5889da520f0..6337c8f2371b 100644 --- a/sdk/storage/azure-storage-blob/tests/recordings/test_container.test_standard_blob_tier_set_tier_api_batch.yaml +++ b/sdk/storage/azure-storage-blob/tests/recordings/test_container.test_standard_blob_tier_set_tier_api_batch.yaml @@ -2,862 +2,1333 @@ interactions: - request: body: null headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['0'] - User-Agent: [azsdk-python-storage-blob/12.0.0b3 Python/3.7.0 (Windows-10-10.0.18362-SP0)] - content-type: [application/xml; charset=utf-8] - x-ms-client-request-id: [9535c98a-e4a0-11e9-86b7-ecb1d756380e] - x-ms-date: ['Tue, 01 Oct 2019 23:09:56 GMT'] - x-ms-version: ['2019-02-02'] + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.6.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - 40d69ba2-e563-11e9-bd53-1831bf6ae40e + x-ms-date: + - Wed, 02 Oct 2019 22:23:26 GMT + x-ms-version: + - '2019-02-02' method: PUT uri: https://storagename.blob.core.windows.net/containera687174a?restype=container response: - body: {string: ''} - headers: - Content-Length: ['0'] - Date: ['Tue, 01 Oct 2019 23:09:56 GMT'] - ETag: ['"0x8D746C479A3E0CD"'] - Last-Modified: ['Tue, 01 Oct 2019 23:09:56 GMT'] - Server: [Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0] - x-ms-client-request-id: [9535c98a-e4a0-11e9-86b7-ecb1d756380e] - x-ms-request-id: [b956c099-e01e-004f-53ad-78a018000000] - x-ms-version: ['2019-02-02'] - status: {code: 201, message: Created} + body: + string: '' + headers: + Content-Length: + - '0' + Date: + - Wed, 02 Oct 2019 22:23:25 GMT + ETag: + - '"0x8D7478724D933BE"' + Last-Modified: + - Wed, 02 Oct 2019 22:23:26 GMT + Server: + - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-request-id: + - 7f393e10-e01e-0012-2470-79048f000000 + x-ms-version: + - '2019-02-02' + status: + code: 201 + message: Created - request: - body: "--===============3653868967664715668==\r\nContent-Type: application/http\r\nContent-Transfer-Encoding: + body: "--===============3343785352916597451==\r\nContent-Type: application/http\r\nContent-Transfer-Encoding: binary\r\nContent-ID: 0\r\n\r\nDELETE /containera687174a/blob1? HTTP/1.1\r\nx-ms-date: - Tue, 01 Oct 2019 23:09:56 GMT\r\nx-ms-client-request-id: 9570618c-e4a0-11e9-be08-ecb1d756380e\r\ncontent-type: - application/xml; charset=utf-8\r\nAuthorization: SharedKey storagename:iJ0sgHm5RiJM4JiTZdXXjiL38SdlEdoWOfj/p4ffLkk=\r\n\r\n\r\n--===============3653868967664715668==\r\nContent-Type: + Wed, 02 Oct 2019 22:23:26 GMT\r\nx-ms-client-request-id: 40f76382-e563-11e9-8bb7-1831bf6ae40e\r\nAuthorization: + SharedKey storagename:jMLel/AbO1iWtpu8wtZ60ZrZI/DQ3MP1ZPTFtHtyMQ4=\r\n\r\n\r\n--===============3343785352916597451==\r\nContent-Type: application/http\r\nContent-Transfer-Encoding: binary\r\nContent-ID: 1\r\n\r\nDELETE - /containera687174a/blob2? HTTP/1.1\r\nx-ms-date: Tue, 01 Oct 2019 23:09:56 GMT\r\nx-ms-client-request-id: - 957088b8-e4a0-11e9-8c37-ecb1d756380e\r\ncontent-type: application/xml; charset=utf-8\r\nAuthorization: - SharedKey storagename:ZsUFRTO2BGun0awhXkQuNpJJOgT0ZqQHVhLd2ElRLtU=\r\n\r\n\r\n--===============3653868967664715668==\r\nContent-Type: + /containera687174a/blob2? HTTP/1.1\r\nx-ms-date: Wed, 02 Oct 2019 22:23:26 GMT\r\nx-ms-client-request-id: + 40f76383-e563-11e9-89cc-1831bf6ae40e\r\nAuthorization: SharedKey storagename:R8gzRC9L09hu/8OFebHBMbMa+KyFrOxZ3gJq7AjXUCQ=\r\n\r\n\r\n--===============3343785352916597451==\r\nContent-Type: application/http\r\nContent-Transfer-Encoding: binary\r\nContent-ID: 2\r\n\r\nDELETE - /containera687174a/blob3? HTTP/1.1\r\nx-ms-date: Tue, 01 Oct 2019 23:09:56 GMT\r\nx-ms-client-request-id: - 9570afa4-e4a0-11e9-ad4e-ecb1d756380e\r\ncontent-type: application/xml; charset=utf-8\r\nAuthorization: - SharedKey storagename:0qlUuSdDTVSsN5uAbp/2gKWCbKdxaI0DakAqpQWdWp8=\r\n\r\n\r\n--===============3653868967664715668==--\r\n" - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['1245'] - Content-Type: [multipart/mixed; boundary================3653868967664715668==] - User-Agent: [azsdk-python-storage-blob/12.0.0b3 Python/3.7.0 (Windows-10-10.0.18362-SP0)] - x-ms-client-request-id: [95723652-e4a0-11e9-ba50-ecb1d756380e] - x-ms-date: ['Tue, 01 Oct 2019 23:09:56 GMT'] - x-ms-version: ['2019-02-02'] + /containera687174a/blob3? HTTP/1.1\r\nx-ms-date: Wed, 02 Oct 2019 22:23:26 GMT\r\nx-ms-client-request-id: + 40f78a8a-e563-11e9-b28b-1831bf6ae40e\r\nAuthorization: SharedKey storagename:aiBq8TFyxsAMzAJ+ShIPiiGm7fNBb8a6oSmoQH/cHyw=\r\n\r\n\r\n--===============3343785352916597451==--\r\n" + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '1137' + Content-Type: + - multipart/mixed; boundary================3343785352916597451== + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.6.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - 40f87606-e563-11e9-b86e-1831bf6ae40e + x-ms-date: + - Wed, 02 Oct 2019 22:23:26 GMT + x-ms-version: + - '2019-02-02' method: POST uri: https://storagename.blob.core.windows.net/?comp=batch response: - body: {string: "--batchresponse_5eff89e9-6da2-4a50-a115-a2078c2a9766\r\nContent-Type: + body: + string: "--batchresponse_b0c8afb0-2adb-4b9e-8bfc-ad88b925a636\r\nContent-Type: application/http\r\nContent-ID: 0\r\n\r\nHTTP/1.1 404 The specified blob does - not exist.\r\nx-ms-error-code: BlobNotFound\r\nx-ms-request-id: b956c0d5-e01e-004f-09ad-78a0181e3d71\r\nx-ms-version: - 2019-02-02\r\nx-ms-client-request-id: 9570618c-e4a0-11e9-be08-ecb1d756380e\r\nContent-Length: + not exist.\r\nx-ms-error-code: BlobNotFound\r\nx-ms-request-id: 7f393e4f-e01e-0012-6170-79048f1e118f\r\nx-ms-version: + 2019-02-02\r\nx-ms-client-request-id: 40f76382-e563-11e9-8bb7-1831bf6ae40e\r\nContent-Length: 216\r\nContent-Type: application/xml\r\nServer: Windows-Azure-Blob/1.0\r\n\r\n\uFEFF\nBlobNotFoundThe - specified blob does not exist.\nRequestId:b956c0d5-e01e-004f-09ad-78a0181e3d71\nTime:2019-10-01T23:09:56.6433283Z\r\n--batchresponse_5eff89e9-6da2-4a50-a115-a2078c2a9766\r\nContent-Type: + specified blob does not exist.\nRequestId:7f393e4f-e01e-0012-6170-79048f1e118f\nTime:2019-10-02T22:23:26.1196348Z\r\n--batchresponse_b0c8afb0-2adb-4b9e-8bfc-ad88b925a636\r\nContent-Type: application/http\r\nContent-ID: 1\r\n\r\nHTTP/1.1 404 The specified blob does - not exist.\r\nx-ms-error-code: BlobNotFound\r\nx-ms-request-id: b956c0d5-e01e-004f-09ad-78a0181e3d73\r\nx-ms-version: - 2019-02-02\r\nx-ms-client-request-id: 957088b8-e4a0-11e9-8c37-ecb1d756380e\r\nContent-Length: + not exist.\r\nx-ms-error-code: BlobNotFound\r\nx-ms-request-id: 7f393e4f-e01e-0012-6170-79048f1e1191\r\nx-ms-version: + 2019-02-02\r\nx-ms-client-request-id: 40f76383-e563-11e9-89cc-1831bf6ae40e\r\nContent-Length: 216\r\nContent-Type: application/xml\r\nServer: Windows-Azure-Blob/1.0\r\n\r\n\uFEFF\nBlobNotFoundThe - specified blob does not exist.\nRequestId:b956c0d5-e01e-004f-09ad-78a0181e3d73\nTime:2019-10-01T23:09:56.6433283Z\r\n--batchresponse_5eff89e9-6da2-4a50-a115-a2078c2a9766\r\nContent-Type: + specified blob does not exist.\nRequestId:7f393e4f-e01e-0012-6170-79048f1e1191\nTime:2019-10-02T22:23:26.1196348Z\r\n--batchresponse_b0c8afb0-2adb-4b9e-8bfc-ad88b925a636\r\nContent-Type: application/http\r\nContent-ID: 2\r\n\r\nHTTP/1.1 404 The specified blob does - not exist.\r\nx-ms-error-code: BlobNotFound\r\nx-ms-request-id: b956c0d5-e01e-004f-09ad-78a0181e3d74\r\nx-ms-version: - 2019-02-02\r\nx-ms-client-request-id: 9570afa4-e4a0-11e9-ad4e-ecb1d756380e\r\nContent-Length: + not exist.\r\nx-ms-error-code: BlobNotFound\r\nx-ms-request-id: 7f393e4f-e01e-0012-6170-79048f1e1192\r\nx-ms-version: + 2019-02-02\r\nx-ms-client-request-id: 40f78a8a-e563-11e9-b28b-1831bf6ae40e\r\nContent-Length: 216\r\nContent-Type: application/xml\r\nServer: Windows-Azure-Blob/1.0\r\n\r\n\uFEFF\nBlobNotFoundThe - specified blob does not exist.\nRequestId:b956c0d5-e01e-004f-09ad-78a0181e3d74\nTime:2019-10-01T23:09:56.6433283Z\r\n--batchresponse_5eff89e9-6da2-4a50-a115-a2078c2a9766--"} - headers: - Content-Type: [multipart/mixed; boundary=batchresponse_5eff89e9-6da2-4a50-a115-a2078c2a9766] - Date: ['Tue, 01 Oct 2019 23:09:56 GMT'] - Server: [Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - x-ms-client-request-id: [95723652-e4a0-11e9-ba50-ecb1d756380e] - x-ms-request-id: [b956c0d5-e01e-004f-09ad-78a018000000] - x-ms-version: ['2019-02-02'] - status: {code: 202, message: Accepted} + specified blob does not exist.\nRequestId:7f393e4f-e01e-0012-6170-79048f1e1192\nTime:2019-10-02T22:23:26.1196348Z\r\n--batchresponse_b0c8afb0-2adb-4b9e-8bfc-ad88b925a636--" + headers: + Content-Type: + - multipart/mixed; boundary=batchresponse_b0c8afb0-2adb-4b9e-8bfc-ad88b925a636 + Date: + - Wed, 02 Oct 2019 22:23:25 GMT + Server: + - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + Transfer-Encoding: + - chunked + x-ms-request-id: + - 7f393e4f-e01e-0012-6170-79048f000000 + x-ms-version: + - '2019-02-02' + status: + code: 202 + message: Accepted - request: body: hello world headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['11'] - Content-Type: [application/octet-stream] - If-None-Match: ['*'] - User-Agent: [azsdk-python-storage-blob/12.0.0b3 Python/3.7.0 (Windows-10-10.0.18362-SP0)] - x-ms-blob-type: [BlockBlob] - x-ms-client-request-id: [958d5fa6-e4a0-11e9-9242-ecb1d756380e] - x-ms-date: ['Tue, 01 Oct 2019 23:09:56 GMT'] - x-ms-version: ['2019-02-02'] + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '11' + Content-Type: + - application/octet-stream + If-None-Match: + - '*' + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.6.3 (Windows-10-10.0.18362-SP0) + x-ms-blob-type: + - BlockBlob + x-ms-client-request-id: + - 41002222-e563-11e9-a249-1831bf6ae40e + x-ms-date: + - Wed, 02 Oct 2019 22:23:26 GMT + x-ms-version: + - '2019-02-02' method: PUT uri: https://storagename.blob.core.windows.net/containera687174a/blob1 response: - body: {string: ''} - headers: - Content-Length: ['0'] - Content-MD5: [XrY7u+Ae7tCTyyK7j1rNww==] - Date: ['Tue, 01 Oct 2019 23:09:56 GMT'] - ETag: ['"0x8D746C479CDE75C"'] - Last-Modified: ['Tue, 01 Oct 2019 23:09:56 GMT'] - Server: [Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0] - x-ms-client-request-id: [958d5fa6-e4a0-11e9-9242-ecb1d756380e] - x-ms-content-crc64: [vo7q9sPVKY0=] - x-ms-request-id: [b956c138-e01e-004f-65ad-78a018000000] - x-ms-request-server-encrypted: ['true'] - x-ms-version: ['2019-02-02'] - status: {code: 201, message: Created} + body: + string: '' + headers: + Content-Length: + - '0' + Content-MD5: + - XrY7u+Ae7tCTyyK7j1rNww== + Date: + - Wed, 02 Oct 2019 22:23:25 GMT + ETag: + - '"0x8D7478724E903AF"' + Last-Modified: + - Wed, 02 Oct 2019 22:23:26 GMT + Server: + - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-content-crc64: + - vo7q9sPVKY0= + x-ms-request-id: + - 7f393e65-e01e-0012-7570-79048f000000 + x-ms-request-server-encrypted: + - 'true' + x-ms-version: + - '2019-02-02' + status: + code: 201 + message: Created - request: body: hello world headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['11'] - Content-Type: [application/octet-stream] - If-None-Match: ['*'] - User-Agent: [azsdk-python-storage-blob/12.0.0b3 Python/3.7.0 (Windows-10-10.0.18362-SP0)] - x-ms-blob-type: [BlockBlob] - x-ms-client-request-id: [95996d64-e4a0-11e9-a90b-ecb1d756380e] - x-ms-date: ['Tue, 01 Oct 2019 23:09:56 GMT'] - x-ms-version: ['2019-02-02'] + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '11' + Content-Type: + - application/octet-stream + If-None-Match: + - '*' + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.6.3 (Windows-10-10.0.18362-SP0) + x-ms-blob-type: + - BlockBlob + x-ms-client-request-id: + - 4106b210-e563-11e9-80ba-1831bf6ae40e + x-ms-date: + - Wed, 02 Oct 2019 22:23:26 GMT + x-ms-version: + - '2019-02-02' method: PUT uri: https://storagename.blob.core.windows.net/containera687174a/blob2 response: - body: {string: ''} - headers: - Content-Length: ['0'] - Content-MD5: [XrY7u+Ae7tCTyyK7j1rNww==] - Date: ['Tue, 01 Oct 2019 23:09:56 GMT'] - ETag: ['"0x8D746C479D9F77A"'] - Last-Modified: ['Tue, 01 Oct 2019 23:09:56 GMT'] - Server: [Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0] - x-ms-client-request-id: [95996d64-e4a0-11e9-a90b-ecb1d756380e] - x-ms-content-crc64: [vo7q9sPVKY0=] - x-ms-request-id: [b956c16d-e01e-004f-12ad-78a018000000] - x-ms-request-server-encrypted: ['true'] - x-ms-version: ['2019-02-02'] - status: {code: 201, message: Created} + body: + string: '' + headers: + Content-Length: + - '0' + Content-MD5: + - XrY7u+Ae7tCTyyK7j1rNww== + Date: + - Wed, 02 Oct 2019 22:23:25 GMT + ETag: + - '"0x8D7478724EF450F"' + Last-Modified: + - Wed, 02 Oct 2019 22:23:26 GMT + Server: + - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-content-crc64: + - vo7q9sPVKY0= + x-ms-request-id: + - 7f393e7f-e01e-0012-0c70-79048f000000 + x-ms-request-server-encrypted: + - 'true' + x-ms-version: + - '2019-02-02' + status: + code: 201 + message: Created - request: body: hello world headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['11'] - Content-Type: [application/octet-stream] - If-None-Match: ['*'] - User-Agent: [azsdk-python-storage-blob/12.0.0b3 Python/3.7.0 (Windows-10-10.0.18362-SP0)] - x-ms-blob-type: [BlockBlob] - x-ms-client-request-id: [95a75024-e4a0-11e9-bc18-ecb1d756380e] - x-ms-date: ['Tue, 01 Oct 2019 23:09:56 GMT'] - x-ms-version: ['2019-02-02'] + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '11' + Content-Type: + - application/octet-stream + If-None-Match: + - '*' + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.6.3 (Windows-10-10.0.18362-SP0) + x-ms-blob-type: + - BlockBlob + x-ms-client-request-id: + - 410d1dd4-e563-11e9-b9d7-1831bf6ae40e + x-ms-date: + - Wed, 02 Oct 2019 22:23:26 GMT + x-ms-version: + - '2019-02-02' method: PUT uri: https://storagename.blob.core.windows.net/containera687174a/blob3 response: - body: {string: ''} - headers: - Content-Length: ['0'] - Content-MD5: [XrY7u+Ae7tCTyyK7j1rNww==] - Date: ['Tue, 01 Oct 2019 23:09:56 GMT'] - ETag: ['"0x8D746C479E851FB"'] - Last-Modified: ['Tue, 01 Oct 2019 23:09:56 GMT'] - Server: [Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0] - x-ms-client-request-id: [95a75024-e4a0-11e9-bc18-ecb1d756380e] - x-ms-content-crc64: [vo7q9sPVKY0=] - x-ms-request-id: [b956c190-e01e-004f-34ad-78a018000000] - x-ms-request-server-encrypted: ['true'] - x-ms-version: ['2019-02-02'] - status: {code: 201, message: Created} + body: + string: '' + headers: + Content-Length: + - '0' + Content-MD5: + - XrY7u+Ae7tCTyyK7j1rNww== + Date: + - Wed, 02 Oct 2019 22:23:25 GMT + ETag: + - '"0x8D7478724F62308"' + Last-Modified: + - Wed, 02 Oct 2019 22:23:26 GMT + Server: + - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-content-crc64: + - vo7q9sPVKY0= + x-ms-request-id: + - 7f393ea2-e01e-0012-2f70-79048f000000 + x-ms-request-server-encrypted: + - 'true' + x-ms-version: + - '2019-02-02' + status: + code: 201 + message: Created - request: body: null headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [azsdk-python-storage-blob/12.0.0b3 Python/3.7.0 (Windows-10-10.0.18362-SP0)] - content-type: [application/xml; charset=utf-8] - x-ms-client-request-id: [95b30ff6-e4a0-11e9-b425-ecb1d756380e] - x-ms-date: ['Tue, 01 Oct 2019 23:09:56 GMT'] - x-ms-version: ['2019-02-02'] + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.6.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - 41131c2e-e563-11e9-aaff-1831bf6ae40e + x-ms-date: + - Wed, 02 Oct 2019 22:23:26 GMT + x-ms-version: + - '2019-02-02' method: HEAD uri: https://storagename.blob.core.windows.net/containera687174a/blob1 response: - body: {string: ''} - headers: - Accept-Ranges: [bytes] - Content-Length: ['11'] - Content-MD5: [XrY7u+Ae7tCTyyK7j1rNww==] - Content-Type: [application/octet-stream] - Date: ['Tue, 01 Oct 2019 23:09:56 GMT'] - ETag: ['"0x8D746C479CDE75C"'] - Last-Modified: ['Tue, 01 Oct 2019 23:09:56 GMT'] - Server: [Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0] - Vary: [Origin] - x-ms-access-tier: [Hot] - x-ms-access-tier-inferred: ['true'] - x-ms-blob-type: [BlockBlob] - x-ms-client-request-id: [95b30ff6-e4a0-11e9-b425-ecb1d756380e] - x-ms-creation-time: ['Tue, 01 Oct 2019 23:09:56 GMT'] - x-ms-lease-state: [available] - x-ms-lease-status: [unlocked] - x-ms-request-id: [b956c19d-e01e-004f-40ad-78a018000000] - x-ms-server-encrypted: ['true'] - x-ms-version: ['2019-02-02'] - status: {code: 200, message: OK} + body: + string: '' + headers: + Accept-Ranges: + - bytes + Content-Length: + - '11' + Content-MD5: + - XrY7u+Ae7tCTyyK7j1rNww== + Content-Type: + - application/octet-stream + Date: + - Wed, 02 Oct 2019 22:23:25 GMT + ETag: + - '"0x8D7478724E903AF"' + Last-Modified: + - Wed, 02 Oct 2019 22:23:26 GMT + Server: + - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-access-tier: + - Hot + x-ms-access-tier-inferred: + - 'true' + x-ms-blob-type: + - BlockBlob + x-ms-creation-time: + - Wed, 02 Oct 2019 22:23:26 GMT + x-ms-lease-state: + - available + x-ms-lease-status: + - unlocked + x-ms-request-id: + - 7f393ebe-e01e-0012-4a70-79048f000000 + x-ms-server-encrypted: + - 'true' + x-ms-version: + - '2019-02-02' + status: + code: 200 + message: OK - request: - body: "--===============7226908234575200422==\r\nContent-Type: application/http\r\nContent-Transfer-Encoding: + body: "--===============2158161133934664036==\r\nContent-Type: application/http\r\nContent-Transfer-Encoding: binary\r\nContent-ID: 0\r\n\r\nPUT /containera687174a/blob1?comp=tier HTTP/1.1\r\nContent-Length: - 0\r\nx-ms-access-tier: Archive\r\nx-ms-date: Tue, 01 Oct 2019 23:09:56 GMT\r\nx-ms-client-request-id: - 95bdbe54-e4a0-11e9-b660-ecb1d756380e\r\ncontent-type: application/xml; charset=utf-8\r\nAuthorization: - SharedKey storagename:9exDZLBVM4jMdYldvuWE+ZWXslpJIhDNXlhI2mey4m0=\r\n\r\n\r\n--===============7226908234575200422==\r\nContent-Type: + 0\r\nx-ms-access-tier: Archive\r\nx-ms-date: Wed, 02 Oct 2019 22:23:26 GMT\r\nx-ms-client-request-id: + 4118d238-e563-11e9-9af5-1831bf6ae40e\r\nAuthorization: SharedKey storagename:jHTP5Nr/NRygEY4eAt368fj1m5CORnSjJnaxN9BGQC8=\r\n\r\n\r\n--===============2158161133934664036==\r\nContent-Type: application/http\r\nContent-Transfer-Encoding: binary\r\nContent-ID: 1\r\n\r\nPUT /containera687174a/blob2?comp=tier HTTP/1.1\r\nContent-Length: 0\r\nx-ms-access-tier: - Archive\r\nx-ms-date: Tue, 01 Oct 2019 23:09:56 GMT\r\nx-ms-client-request-id: - 95bde564-e4a0-11e9-bd44-ecb1d756380e\r\ncontent-type: application/xml; charset=utf-8\r\nAuthorization: - SharedKey storagename:mrPj+rHKiIJSaoO2QYv+xL6SSCsDhWDBsfoYc4VlOGc=\r\n\r\n\r\n--===============7226908234575200422==\r\nContent-Type: + Archive\r\nx-ms-date: Wed, 02 Oct 2019 22:23:26 GMT\r\nx-ms-client-request-id: + 4118d239-e563-11e9-bd8e-1831bf6ae40e\r\nAuthorization: SharedKey storagename:oQKrrZlIu06T6xAsmpFH209kvxjYaKgIkFbRGb2OcQA=\r\n\r\n\r\n--===============2158161133934664036==\r\nContent-Type: application/http\r\nContent-Transfer-Encoding: binary\r\nContent-ID: 2\r\n\r\nPUT /containera687174a/blob3?comp=tier HTTP/1.1\r\nContent-Length: 0\r\nx-ms-access-tier: - Archive\r\nx-ms-date: Tue, 01 Oct 2019 23:09:56 GMT\r\nx-ms-client-request-id: - 95bde565-e4a0-11e9-aab2-ecb1d756380e\r\ncontent-type: application/xml; charset=utf-8\r\nAuthorization: - SharedKey storagename:nmLJZzejhoiNaKUMH46DzgTwdUk92V/PPYNc+8tEcuk=\r\n\r\n\r\n--===============7226908234575200422==--\r\n" - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['1401'] - Content-Type: [multipart/mixed; boundary================7226908234575200422==] - User-Agent: [azsdk-python-storage-blob/12.0.0b3 Python/3.7.0 (Windows-10-10.0.18362-SP0)] - x-ms-client-request-id: [95be5aa6-e4a0-11e9-8246-ecb1d756380e] - x-ms-date: ['Tue, 01 Oct 2019 23:09:56 GMT'] - x-ms-version: ['2019-02-02'] + Archive\r\nx-ms-date: Wed, 02 Oct 2019 22:23:26 GMT\r\nx-ms-client-request-id: + 4118f950-e563-11e9-9267-1831bf6ae40e\r\nAuthorization: SharedKey storagename:XTYBw6sCwv//mgJbaPwt0PxaUckel0KrCrlFx6fxS6A=\r\n\r\n\r\n--===============2158161133934664036==--\r\n" + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '1293' + Content-Type: + - multipart/mixed; boundary================2158161133934664036== + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.6.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - 4119205c-e563-11e9-9f59-1831bf6ae40e + x-ms-date: + - Wed, 02 Oct 2019 22:23:26 GMT + x-ms-version: + - '2019-02-02' method: POST uri: https://storagename.blob.core.windows.net/?comp=batch response: - body: {string: "--batchresponse_cb26b2a7-d755-4b7f-b28f-c2972b4cc631\r\nContent-Type: + body: + string: "--batchresponse_81b3aef6-547b-4198-ac44-e106f30df13f\r\nContent-Type: application/http\r\nContent-ID: 0\r\n\r\nHTTP/1.1 200 OK\r\nx-ms-request-id: - b956c1b9-e01e-004f-57ad-78a0181e3d7e\r\nx-ms-version: 2019-02-02\r\nx-ms-client-request-id: - 95bdbe54-e4a0-11e9-b660-ecb1d756380e\r\nServer: Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_cb26b2a7-d755-4b7f-b28f-c2972b4cc631\r\nContent-Type: + 7f393ed1-e01e-0012-5d70-79048f1e1196\r\nx-ms-version: 2019-02-02\r\nx-ms-client-request-id: + 4118d238-e563-11e9-9af5-1831bf6ae40e\r\nServer: Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_81b3aef6-547b-4198-ac44-e106f30df13f\r\nContent-Type: application/http\r\nContent-ID: 1\r\n\r\nHTTP/1.1 200 OK\r\nx-ms-request-id: - b956c1b9-e01e-004f-57ad-78a0181e3d86\r\nx-ms-version: 2019-02-02\r\nx-ms-client-request-id: - 95bde564-e4a0-11e9-bd44-ecb1d756380e\r\nServer: Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_cb26b2a7-d755-4b7f-b28f-c2972b4cc631\r\nContent-Type: + 7f393ed1-e01e-0012-5d70-79048f1e1197\r\nx-ms-version: 2019-02-02\r\nx-ms-client-request-id: + 4118d239-e563-11e9-bd8e-1831bf6ae40e\r\nServer: Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_81b3aef6-547b-4198-ac44-e106f30df13f\r\nContent-Type: application/http\r\nContent-ID: 2\r\n\r\nHTTP/1.1 200 OK\r\nx-ms-request-id: - b956c1b9-e01e-004f-57ad-78a0181e3d87\r\nx-ms-version: 2019-02-02\r\nx-ms-client-request-id: - 95bde565-e4a0-11e9-aab2-ecb1d756380e\r\nServer: Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_cb26b2a7-d755-4b7f-b28f-c2972b4cc631--"} - headers: - Content-Type: [multipart/mixed; boundary=batchresponse_cb26b2a7-d755-4b7f-b28f-c2972b4cc631] - Date: ['Tue, 01 Oct 2019 23:09:57 GMT'] - Server: [Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - x-ms-client-request-id: [95be5aa6-e4a0-11e9-8246-ecb1d756380e] - x-ms-request-id: [b956c1b9-e01e-004f-57ad-78a018000000] - x-ms-version: ['2019-02-02'] - status: {code: 202, message: Accepted} + 7f393ed1-e01e-0012-5d70-79048f1e1198\r\nx-ms-version: 2019-02-02\r\nx-ms-client-request-id: + 4118f950-e563-11e9-9267-1831bf6ae40e\r\nServer: Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_81b3aef6-547b-4198-ac44-e106f30df13f--" + headers: + Content-Type: + - multipart/mixed; boundary=batchresponse_81b3aef6-547b-4198-ac44-e106f30df13f + Date: + - Wed, 02 Oct 2019 22:23:25 GMT + Server: + - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + Transfer-Encoding: + - chunked + x-ms-request-id: + - 7f393ed1-e01e-0012-5d70-79048f000000 + x-ms-version: + - '2019-02-02' + status: + code: 202 + message: Accepted - request: body: null headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [azsdk-python-storage-blob/12.0.0b3 Python/3.7.0 (Windows-10-10.0.18362-SP0)] - content-type: [application/xml; charset=utf-8] - x-ms-client-request-id: [96224cba-e4a0-11e9-a3f3-ecb1d756380e] - x-ms-date: ['Tue, 01 Oct 2019 23:09:57 GMT'] - x-ms-version: ['2019-02-02'] + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.6.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - 4122aefe-e563-11e9-a0e5-1831bf6ae40e + x-ms-date: + - Wed, 02 Oct 2019 22:23:26 GMT + x-ms-version: + - '2019-02-02' method: HEAD uri: https://storagename.blob.core.windows.net/containera687174a/blob1 response: - body: {string: ''} - headers: - Accept-Ranges: [bytes] - Content-Length: ['11'] - Content-MD5: [XrY7u+Ae7tCTyyK7j1rNww==] - Content-Type: [application/octet-stream] - Date: ['Tue, 01 Oct 2019 23:09:57 GMT'] - ETag: ['"0x8D746C479CDE75C"'] - Last-Modified: ['Tue, 01 Oct 2019 23:09:56 GMT'] - Server: [Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0] - Vary: [Origin] - x-ms-access-tier: [Archive] - x-ms-access-tier-change-time: ['Tue, 01 Oct 2019 23:09:57 GMT'] - x-ms-blob-type: [BlockBlob] - x-ms-client-request-id: [96224cba-e4a0-11e9-a3f3-ecb1d756380e] - x-ms-creation-time: ['Tue, 01 Oct 2019 23:09:56 GMT'] - x-ms-lease-state: [available] - x-ms-lease-status: [unlocked] - x-ms-request-id: [b956c2d4-e01e-004f-66ad-78a018000000] - x-ms-server-encrypted: ['true'] - x-ms-version: ['2019-02-02'] - status: {code: 200, message: OK} + body: + string: '' + headers: + Accept-Ranges: + - bytes + Content-Length: + - '11' + Content-MD5: + - XrY7u+Ae7tCTyyK7j1rNww== + Content-Type: + - application/octet-stream + Date: + - Wed, 02 Oct 2019 22:23:25 GMT + ETag: + - '"0x8D7478724E903AF"' + Last-Modified: + - Wed, 02 Oct 2019 22:23:26 GMT + Server: + - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-access-tier: + - Archive + x-ms-access-tier-change-time: + - Wed, 02 Oct 2019 22:23:26 GMT + x-ms-blob-type: + - BlockBlob + x-ms-creation-time: + - Wed, 02 Oct 2019 22:23:26 GMT + x-ms-lease-state: + - available + x-ms-lease-status: + - unlocked + x-ms-request-id: + - 7f393efa-e01e-0012-0670-79048f000000 + x-ms-server-encrypted: + - 'true' + x-ms-version: + - '2019-02-02' + status: + code: 200 + message: OK - request: - body: "--===============5756738329839421291==\r\nContent-Type: application/http\r\nContent-Transfer-Encoding: + body: "--===============3280838954774894199==\r\nContent-Type: application/http\r\nContent-Transfer-Encoding: binary\r\nContent-ID: 0\r\n\r\nDELETE /containera687174a/blob1? HTTP/1.1\r\nx-ms-date: - Tue, 01 Oct 2019 23:09:57 GMT\r\nx-ms-client-request-id: 962e0c8c-e4a0-11e9-95b5-ecb1d756380e\r\ncontent-type: - application/xml; charset=utf-8\r\nAuthorization: SharedKey storagename:QepgLk+G76CT5WYMWQJjSr0QVU8j3JjX3Vye6lPR/do=\r\n\r\n\r\n--===============5756738329839421291==\r\nContent-Type: + Wed, 02 Oct 2019 22:23:26 GMT\r\nx-ms-client-request-id: 41280626-e563-11e9-8b65-1831bf6ae40e\r\nAuthorization: + SharedKey storagename:/H0Wb2Nfxag9vyV4U+968b88cb6PUSbIYMmPqLXmlnc=\r\n\r\n\r\n--===============3280838954774894199==\r\nContent-Type: application/http\r\nContent-Transfer-Encoding: binary\r\nContent-ID: 1\r\n\r\nDELETE - /containera687174a/blob2? HTTP/1.1\r\nx-ms-date: Tue, 01 Oct 2019 23:09:57 GMT\r\nx-ms-client-request-id: - 962e0c8d-e4a0-11e9-a80b-ecb1d756380e\r\ncontent-type: application/xml; charset=utf-8\r\nAuthorization: - SharedKey storagename:d+BR0BrmZ5szxP9+U8KHX4p18bZVXRP5qYJsPmw65eU=\r\n\r\n\r\n--===============5756738329839421291==\r\nContent-Type: + /containera687174a/blob2? HTTP/1.1\r\nx-ms-date: Wed, 02 Oct 2019 22:23:26 GMT\r\nx-ms-client-request-id: + 41282d36-e563-11e9-9564-1831bf6ae40e\r\nAuthorization: SharedKey storagename:/2Zp2pnjUKTkvDyizF7BTrBph4XOUOQSCJYVuhG+iLw=\r\n\r\n\r\n--===============3280838954774894199==\r\nContent-Type: application/http\r\nContent-Transfer-Encoding: binary\r\nContent-ID: 2\r\n\r\nDELETE - /containera687174a/blob3? HTTP/1.1\r\nx-ms-date: Tue, 01 Oct 2019 23:09:57 GMT\r\nx-ms-client-request-id: - 962e33a4-e4a0-11e9-adb0-ecb1d756380e\r\ncontent-type: application/xml; charset=utf-8\r\nAuthorization: - SharedKey storagename:7zFpdfOdXvpxQXw+7YF5lyaD3jyevFwv/aPqY+dH3wg=\r\n\r\n\r\n--===============5756738329839421291==--\r\n" - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['1245'] - Content-Type: [multipart/mixed; boundary================5756738329839421291==] - User-Agent: [azsdk-python-storage-blob/12.0.0b3 Python/3.7.0 (Windows-10-10.0.18362-SP0)] - x-ms-client-request-id: [962ea8ca-e4a0-11e9-9342-ecb1d756380e] - x-ms-date: ['Tue, 01 Oct 2019 23:09:57 GMT'] - x-ms-version: ['2019-02-02'] + /containera687174a/blob3? HTTP/1.1\r\nx-ms-date: Wed, 02 Oct 2019 22:23:26 GMT\r\nx-ms-client-request-id: + 41282d37-e563-11e9-8dc6-1831bf6ae40e\r\nAuthorization: SharedKey storagename:sbvYY/7NGYAm6XVna+3lx5qjF/xCW8HA6zkwqq/HEJE=\r\n\r\n\r\n--===============3280838954774894199==--\r\n" + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '1137' + Content-Type: + - multipart/mixed; boundary================3280838954774894199== + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.6.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - 41287b5a-e563-11e9-9182-1831bf6ae40e + x-ms-date: + - Wed, 02 Oct 2019 22:23:26 GMT + x-ms-version: + - '2019-02-02' method: POST uri: https://storagename.blob.core.windows.net/?comp=batch response: - body: {string: "--batchresponse_ae15dfa2-45a8-4872-b521-0117a00dbfa0\r\nContent-Type: + body: + string: "--batchresponse_904e0934-0153-4a15-bf47-978f2751ec69\r\nContent-Type: application/http\r\nContent-ID: 0\r\n\r\nHTTP/1.1 202 Accepted\r\nx-ms-delete-type-permanent: - true\r\nx-ms-request-id: b956c306-e01e-004f-10ad-78a0181e3d8e\r\nx-ms-version: - 2019-02-02\r\nx-ms-client-request-id: 962e0c8c-e4a0-11e9-95b5-ecb1d756380e\r\nServer: - Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_ae15dfa2-45a8-4872-b521-0117a00dbfa0\r\nContent-Type: + true\r\nx-ms-request-id: 7f393f13-e01e-0012-1d70-79048f1e119c\r\nx-ms-version: + 2019-02-02\r\nx-ms-client-request-id: 41280626-e563-11e9-8b65-1831bf6ae40e\r\nServer: + Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_904e0934-0153-4a15-bf47-978f2751ec69\r\nContent-Type: application/http\r\nContent-ID: 1\r\n\r\nHTTP/1.1 202 Accepted\r\nx-ms-delete-type-permanent: - true\r\nx-ms-request-id: b956c306-e01e-004f-10ad-78a0181e3d8f\r\nx-ms-version: - 2019-02-02\r\nx-ms-client-request-id: 962e0c8d-e4a0-11e9-a80b-ecb1d756380e\r\nServer: - Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_ae15dfa2-45a8-4872-b521-0117a00dbfa0\r\nContent-Type: + true\r\nx-ms-request-id: 7f393f13-e01e-0012-1d70-79048f1e119d\r\nx-ms-version: + 2019-02-02\r\nx-ms-client-request-id: 41282d36-e563-11e9-9564-1831bf6ae40e\r\nServer: + Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_904e0934-0153-4a15-bf47-978f2751ec69\r\nContent-Type: application/http\r\nContent-ID: 2\r\n\r\nHTTP/1.1 202 Accepted\r\nx-ms-delete-type-permanent: - true\r\nx-ms-request-id: b956c306-e01e-004f-10ad-78a0181e3d90\r\nx-ms-version: - 2019-02-02\r\nx-ms-client-request-id: 962e33a4-e4a0-11e9-adb0-ecb1d756380e\r\nServer: - Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_ae15dfa2-45a8-4872-b521-0117a00dbfa0--"} - headers: - Content-Type: [multipart/mixed; boundary=batchresponse_ae15dfa2-45a8-4872-b521-0117a00dbfa0] - Date: ['Tue, 01 Oct 2019 23:09:57 GMT'] - Server: [Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - x-ms-client-request-id: [962ea8ca-e4a0-11e9-9342-ecb1d756380e] - x-ms-request-id: [b956c306-e01e-004f-10ad-78a018000000] - x-ms-version: ['2019-02-02'] - status: {code: 202, message: Accepted} + true\r\nx-ms-request-id: 7f393f13-e01e-0012-1d70-79048f1e119e\r\nx-ms-version: + 2019-02-02\r\nx-ms-client-request-id: 41282d37-e563-11e9-8dc6-1831bf6ae40e\r\nServer: + Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_904e0934-0153-4a15-bf47-978f2751ec69--" + headers: + Content-Type: + - multipart/mixed; boundary=batchresponse_904e0934-0153-4a15-bf47-978f2751ec69 + Date: + - Wed, 02 Oct 2019 22:23:25 GMT + Server: + - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + Transfer-Encoding: + - chunked + x-ms-request-id: + - 7f393f13-e01e-0012-1d70-79048f000000 + x-ms-version: + - '2019-02-02' + status: + code: 202 + message: Accepted - request: body: hello world headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['11'] - Content-Type: [application/octet-stream] - If-None-Match: ['*'] - User-Agent: [azsdk-python-storage-blob/12.0.0b3 Python/3.7.0 (Windows-10-10.0.18362-SP0)] - x-ms-blob-type: [BlockBlob] - x-ms-client-request-id: [963dc400-e4a0-11e9-9186-ecb1d756380e] - x-ms-date: ['Tue, 01 Oct 2019 23:09:57 GMT'] - x-ms-version: ['2019-02-02'] + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '11' + Content-Type: + - application/octet-stream + If-None-Match: + - '*' + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.6.3 (Windows-10-10.0.18362-SP0) + x-ms-blob-type: + - BlockBlob + x-ms-client-request-id: + - 41325352-e563-11e9-b14c-1831bf6ae40e + x-ms-date: + - Wed, 02 Oct 2019 22:23:26 GMT + x-ms-version: + - '2019-02-02' method: PUT uri: https://storagename.blob.core.windows.net/containera687174a/blob1 response: - body: {string: ''} - headers: - Content-Length: ['0'] - Content-MD5: [XrY7u+Ae7tCTyyK7j1rNww==] - Date: ['Tue, 01 Oct 2019 23:09:57 GMT'] - ETag: ['"0x8D746C47A7F5645"'] - Last-Modified: ['Tue, 01 Oct 2019 23:09:57 GMT'] - Server: [Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0] - x-ms-client-request-id: [963dc400-e4a0-11e9-9186-ecb1d756380e] - x-ms-content-crc64: [vo7q9sPVKY0=] - x-ms-request-id: [b956c33c-e01e-004f-45ad-78a018000000] - x-ms-request-server-encrypted: ['true'] - x-ms-version: ['2019-02-02'] - status: {code: 201, message: Created} + body: + string: '' + headers: + Content-Length: + - '0' + Content-MD5: + - XrY7u+Ae7tCTyyK7j1rNww== + Date: + - Wed, 02 Oct 2019 22:23:25 GMT + ETag: + - '"0x8D74787251B3751"' + Last-Modified: + - Wed, 02 Oct 2019 22:23:26 GMT + Server: + - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-content-crc64: + - vo7q9sPVKY0= + x-ms-request-id: + - 7f393f3c-e01e-0012-4470-79048f000000 + x-ms-request-server-encrypted: + - 'true' + x-ms-version: + - '2019-02-02' + status: + code: 201 + message: Created - request: body: hello world headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['11'] - Content-Type: [application/octet-stream] - If-None-Match: ['*'] - User-Agent: [azsdk-python-storage-blob/12.0.0b3 Python/3.7.0 (Windows-10-10.0.18362-SP0)] - x-ms-blob-type: [BlockBlob] - x-ms-client-request-id: [964bf4da-e4a0-11e9-b9d0-ecb1d756380e] - x-ms-date: ['Tue, 01 Oct 2019 23:09:57 GMT'] - x-ms-version: ['2019-02-02'] + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '11' + Content-Type: + - application/octet-stream + If-None-Match: + - '*' + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.6.3 (Windows-10-10.0.18362-SP0) + x-ms-blob-type: + - BlockBlob + x-ms-client-request-id: + - 413894c8-e563-11e9-99e9-1831bf6ae40e + x-ms-date: + - Wed, 02 Oct 2019 22:23:27 GMT + x-ms-version: + - '2019-02-02' method: PUT uri: https://storagename.blob.core.windows.net/containera687174a/blob2 response: - body: {string: ''} - headers: - Content-Length: ['0'] - Content-MD5: [XrY7u+Ae7tCTyyK7j1rNww==] - Date: ['Tue, 01 Oct 2019 23:09:57 GMT'] - ETag: ['"0x8D746C47A8D1469"'] - Last-Modified: ['Tue, 01 Oct 2019 23:09:57 GMT'] - Server: [Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0] - x-ms-client-request-id: [964bf4da-e4a0-11e9-b9d0-ecb1d756380e] - x-ms-content-crc64: [vo7q9sPVKY0=] - x-ms-request-id: [b956c374-e01e-004f-7cad-78a018000000] - x-ms-request-server-encrypted: ['true'] - x-ms-version: ['2019-02-02'] - status: {code: 201, message: Created} + body: + string: '' + headers: + Content-Length: + - '0' + Content-MD5: + - XrY7u+Ae7tCTyyK7j1rNww== + Date: + - Wed, 02 Oct 2019 22:23:25 GMT + ETag: + - '"0x8D7478725219FEF"' + Last-Modified: + - Wed, 02 Oct 2019 22:23:26 GMT + Server: + - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-content-crc64: + - vo7q9sPVKY0= + x-ms-request-id: + - 7f393f55-e01e-0012-5d70-79048f000000 + x-ms-request-server-encrypted: + - 'true' + x-ms-version: + - '2019-02-02' + status: + code: 201 + message: Created - request: body: hello world headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['11'] - Content-Type: [application/octet-stream] - If-None-Match: ['*'] - User-Agent: [azsdk-python-storage-blob/12.0.0b3 Python/3.7.0 (Windows-10-10.0.18362-SP0)] - x-ms-blob-type: [BlockBlob] - x-ms-client-request-id: [965877f4-e4a0-11e9-9ead-ecb1d756380e] - x-ms-date: ['Tue, 01 Oct 2019 23:09:57 GMT'] - x-ms-version: ['2019-02-02'] + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '11' + Content-Type: + - application/octet-stream + If-None-Match: + - '*' + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.6.3 (Windows-10-10.0.18362-SP0) + x-ms-blob-type: + - BlockBlob + x-ms-client-request-id: + - 413f4b7e-e563-11e9-97f1-1831bf6ae40e + x-ms-date: + - Wed, 02 Oct 2019 22:23:27 GMT + x-ms-version: + - '2019-02-02' method: PUT uri: https://storagename.blob.core.windows.net/containera687174a/blob3 response: - body: {string: ''} - headers: - Content-Length: ['0'] - Content-MD5: [XrY7u+Ae7tCTyyK7j1rNww==] - Date: ['Tue, 01 Oct 2019 23:09:58 GMT'] - ETag: ['"0x8D746C47A98FD74"'] - Last-Modified: ['Tue, 01 Oct 2019 23:09:58 GMT'] - Server: [Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0] - x-ms-client-request-id: [965877f4-e4a0-11e9-9ead-ecb1d756380e] - x-ms-content-crc64: [vo7q9sPVKY0=] - x-ms-request-id: [b956c3a5-e01e-004f-25ad-78a018000000] - x-ms-request-server-encrypted: ['true'] - x-ms-version: ['2019-02-02'] - status: {code: 201, message: Created} + body: + string: '' + headers: + Content-Length: + - '0' + Content-MD5: + - XrY7u+Ae7tCTyyK7j1rNww== + Date: + - Wed, 02 Oct 2019 22:23:25 GMT + ETag: + - '"0x8D74787252808EF"' + Last-Modified: + - Wed, 02 Oct 2019 22:23:26 GMT + Server: + - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-content-crc64: + - vo7q9sPVKY0= + x-ms-request-id: + - 7f393f70-e01e-0012-7770-79048f000000 + x-ms-request-server-encrypted: + - 'true' + x-ms-version: + - '2019-02-02' + status: + code: 201 + message: Created - request: body: null headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [azsdk-python-storage-blob/12.0.0b3 Python/3.7.0 (Windows-10-10.0.18362-SP0)] - content-type: [application/xml; charset=utf-8] - x-ms-client-request-id: [9663e9a4-e4a0-11e9-a15d-ecb1d756380e] - x-ms-date: ['Tue, 01 Oct 2019 23:09:58 GMT'] - x-ms-version: ['2019-02-02'] + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.6.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - 4144f0cc-e563-11e9-9cfc-1831bf6ae40e + x-ms-date: + - Wed, 02 Oct 2019 22:23:27 GMT + x-ms-version: + - '2019-02-02' method: HEAD uri: https://storagename.blob.core.windows.net/containera687174a/blob1 response: - body: {string: ''} - headers: - Accept-Ranges: [bytes] - Content-Length: ['11'] - Content-MD5: [XrY7u+Ae7tCTyyK7j1rNww==] - Content-Type: [application/octet-stream] - Date: ['Tue, 01 Oct 2019 23:09:58 GMT'] - ETag: ['"0x8D746C47A7F5645"'] - Last-Modified: ['Tue, 01 Oct 2019 23:09:57 GMT'] - Server: [Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0] - Vary: [Origin] - x-ms-access-tier: [Hot] - x-ms-access-tier-inferred: ['true'] - x-ms-blob-type: [BlockBlob] - x-ms-client-request-id: [9663e9a4-e4a0-11e9-a15d-ecb1d756380e] - x-ms-creation-time: ['Tue, 01 Oct 2019 23:09:57 GMT'] - x-ms-lease-state: [available] - x-ms-lease-status: [unlocked] - x-ms-request-id: [b956c3d3-e01e-004f-4dad-78a018000000] - x-ms-server-encrypted: ['true'] - x-ms-version: ['2019-02-02'] - status: {code: 200, message: OK} + body: + string: '' + headers: + Accept-Ranges: + - bytes + Content-Length: + - '11' + Content-MD5: + - XrY7u+Ae7tCTyyK7j1rNww== + Content-Type: + - application/octet-stream + Date: + - Wed, 02 Oct 2019 22:23:25 GMT + ETag: + - '"0x8D74787251B3751"' + Last-Modified: + - Wed, 02 Oct 2019 22:23:26 GMT + Server: + - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-access-tier: + - Hot + x-ms-access-tier-inferred: + - 'true' + x-ms-blob-type: + - BlockBlob + x-ms-creation-time: + - Wed, 02 Oct 2019 22:23:26 GMT + x-ms-lease-state: + - available + x-ms-lease-status: + - unlocked + x-ms-request-id: + - 7f393f93-e01e-0012-1970-79048f000000 + x-ms-server-encrypted: + - 'true' + x-ms-version: + - '2019-02-02' + status: + code: 200 + message: OK - request: - body: "--===============5969356434619469988==\r\nContent-Type: application/http\r\nContent-Transfer-Encoding: + body: "--===============9045610893482543090==\r\nContent-Type: application/http\r\nContent-Transfer-Encoding: binary\r\nContent-ID: 0\r\n\r\nPUT /containera687174a/blob1?comp=tier HTTP/1.1\r\nContent-Length: - 0\r\nx-ms-access-tier: Cool\r\nx-ms-date: Tue, 01 Oct 2019 23:09:58 GMT\r\nx-ms-client-request-id: - 966ebf1a-e4a0-11e9-94ed-ecb1d756380e\r\ncontent-type: application/xml; charset=utf-8\r\nAuthorization: - SharedKey storagename:VOzlR6hvECnH7Hjyh3tg/On7Rjy1pX+YdTrDrd52WBg=\r\n\r\n\r\n--===============5969356434619469988==\r\nContent-Type: + 0\r\nx-ms-access-tier: Cool\r\nx-ms-date: Wed, 02 Oct 2019 22:23:27 GMT\r\nx-ms-client-request-id: + 414abe30-e563-11e9-a3b2-1831bf6ae40e\r\nAuthorization: SharedKey storagename:eCVvH6bR5TzxiU8ltqMMDHhV/PQSMow8cRuvLon6aNc=\r\n\r\n\r\n--===============9045610893482543090==\r\nContent-Type: application/http\r\nContent-Transfer-Encoding: binary\r\nContent-ID: 1\r\n\r\nPUT /containera687174a/blob2?comp=tier HTTP/1.1\r\nContent-Length: 0\r\nx-ms-access-tier: - Cool\r\nx-ms-date: Tue, 01 Oct 2019 23:09:58 GMT\r\nx-ms-client-request-id: - 966ebf1b-e4a0-11e9-aa7b-ecb1d756380e\r\ncontent-type: application/xml; charset=utf-8\r\nAuthorization: - SharedKey storagename:Y+UsZ/Je2ylk1wfBnQgsZDO/sza1mIxuFGADGv2c1KU=\r\n\r\n\r\n--===============5969356434619469988==\r\nContent-Type: + Cool\r\nx-ms-date: Wed, 02 Oct 2019 22:23:27 GMT\r\nx-ms-client-request-id: + 414abe31-e563-11e9-b766-1831bf6ae40e\r\nAuthorization: SharedKey storagename:JBcIsfaPM/oQN42O/xO5gtaChUOpCyPQvAzNIiHbIMc=\r\n\r\n\r\n--===============9045610893482543090==\r\nContent-Type: application/http\r\nContent-Transfer-Encoding: binary\r\nContent-ID: 2\r\n\r\nPUT /containera687174a/blob3?comp=tier HTTP/1.1\r\nContent-Length: 0\r\nx-ms-access-tier: - Cool\r\nx-ms-date: Tue, 01 Oct 2019 23:09:58 GMT\r\nx-ms-client-request-id: - 966ee624-e4a0-11e9-a236-ecb1d756380e\r\ncontent-type: application/xml; charset=utf-8\r\nAuthorization: - SharedKey storagename:qS24MwWK5u1pDRcUTQu4LqRvV+9TVx3BbjqG99L5OQ4=\r\n\r\n\r\n--===============5969356434619469988==--\r\n" - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['1392'] - Content-Type: [multipart/mixed; boundary================5969356434619469988==] - User-Agent: [azsdk-python-storage-blob/12.0.0b3 Python/3.7.0 (Windows-10-10.0.18362-SP0)] - x-ms-client-request-id: [966f3448-e4a0-11e9-946e-ecb1d756380e] - x-ms-date: ['Tue, 01 Oct 2019 23:09:58 GMT'] - x-ms-version: ['2019-02-02'] + Cool\r\nx-ms-date: Wed, 02 Oct 2019 22:23:27 GMT\r\nx-ms-client-request-id: + 414abe32-e563-11e9-8a25-1831bf6ae40e\r\nAuthorization: SharedKey storagename:IKLucQPV0pIb1NjX6fvkvLaNv9PqK8ZsBS7GsDCASgM=\r\n\r\n\r\n--===============9045610893482543090==--\r\n" + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '1284' + Content-Type: + - multipart/mixed; boundary================9045610893482543090== + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.6.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - 414b0c4c-e563-11e9-bcac-1831bf6ae40e + x-ms-date: + - Wed, 02 Oct 2019 22:23:27 GMT + x-ms-version: + - '2019-02-02' method: POST uri: https://storagename.blob.core.windows.net/?comp=batch response: - body: {string: "--batchresponse_c3162683-d262-4aa0-b0a5-90e50e4f5a76\r\nContent-Type: + body: + string: "--batchresponse_d09ed48d-6f04-4941-bace-8ffe16d149d6\r\nContent-Type: application/http\r\nContent-ID: 0\r\n\r\nHTTP/1.1 200 OK\r\nx-ms-request-id: - b956c3f9-e01e-004f-71ad-78a0181e3d9f\r\nx-ms-version: 2019-02-02\r\nx-ms-client-request-id: - 966ebf1a-e4a0-11e9-94ed-ecb1d756380e\r\nServer: Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_c3162683-d262-4aa0-b0a5-90e50e4f5a76\r\nContent-Type: + 7f393fa8-e01e-0012-2d70-79048f1e11a2\r\nx-ms-version: 2019-02-02\r\nx-ms-client-request-id: + 414abe30-e563-11e9-a3b2-1831bf6ae40e\r\nServer: Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_d09ed48d-6f04-4941-bace-8ffe16d149d6\r\nContent-Type: application/http\r\nContent-ID: 1\r\n\r\nHTTP/1.1 200 OK\r\nx-ms-request-id: - b956c3f9-e01e-004f-71ad-78a0181e3da0\r\nx-ms-version: 2019-02-02\r\nx-ms-client-request-id: - 966ebf1b-e4a0-11e9-aa7b-ecb1d756380e\r\nServer: Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_c3162683-d262-4aa0-b0a5-90e50e4f5a76\r\nContent-Type: + 7f393fa8-e01e-0012-2d70-79048f1e11a3\r\nx-ms-version: 2019-02-02\r\nx-ms-client-request-id: + 414abe31-e563-11e9-b766-1831bf6ae40e\r\nServer: Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_d09ed48d-6f04-4941-bace-8ffe16d149d6\r\nContent-Type: application/http\r\nContent-ID: 2\r\n\r\nHTTP/1.1 200 OK\r\nx-ms-request-id: - b956c3f9-e01e-004f-71ad-78a0181e3da1\r\nx-ms-version: 2019-02-02\r\nx-ms-client-request-id: - 966ee624-e4a0-11e9-a236-ecb1d756380e\r\nServer: Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_c3162683-d262-4aa0-b0a5-90e50e4f5a76--"} - headers: - Content-Type: [multipart/mixed; boundary=batchresponse_c3162683-d262-4aa0-b0a5-90e50e4f5a76] - Date: ['Tue, 01 Oct 2019 23:09:58 GMT'] - Server: [Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - x-ms-client-request-id: [966f3448-e4a0-11e9-946e-ecb1d756380e] - x-ms-request-id: [b956c3f9-e01e-004f-71ad-78a018000000] - x-ms-version: ['2019-02-02'] - status: {code: 202, message: Accepted} + 7f393fa8-e01e-0012-2d70-79048f1e11a4\r\nx-ms-version: 2019-02-02\r\nx-ms-client-request-id: + 414abe32-e563-11e9-8a25-1831bf6ae40e\r\nServer: Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_d09ed48d-6f04-4941-bace-8ffe16d149d6--" + headers: + Content-Type: + - multipart/mixed; boundary=batchresponse_d09ed48d-6f04-4941-bace-8ffe16d149d6 + Date: + - Wed, 02 Oct 2019 22:23:26 GMT + Server: + - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + Transfer-Encoding: + - chunked + x-ms-request-id: + - 7f393fa8-e01e-0012-2d70-79048f000000 + x-ms-version: + - '2019-02-02' + status: + code: 202 + message: Accepted - request: body: null headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [azsdk-python-storage-blob/12.0.0b3 Python/3.7.0 (Windows-10-10.0.18362-SP0)] - content-type: [application/xml; charset=utf-8] - x-ms-client-request-id: [967b906c-e4a0-11e9-b2af-ecb1d756380e] - x-ms-date: ['Tue, 01 Oct 2019 23:09:58 GMT'] - x-ms-version: ['2019-02-02'] + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.6.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - 415125ec-e563-11e9-96b9-1831bf6ae40e + x-ms-date: + - Wed, 02 Oct 2019 22:23:27 GMT + x-ms-version: + - '2019-02-02' method: HEAD uri: https://storagename.blob.core.windows.net/containera687174a/blob1 response: - body: {string: ''} - headers: - Accept-Ranges: [bytes] - Content-Length: ['11'] - Content-MD5: [XrY7u+Ae7tCTyyK7j1rNww==] - Content-Type: [application/octet-stream] - Date: ['Tue, 01 Oct 2019 23:09:58 GMT'] - ETag: ['"0x8D746C47A7F5645"'] - Last-Modified: ['Tue, 01 Oct 2019 23:09:57 GMT'] - Server: [Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0] - Vary: [Origin] - x-ms-access-tier: [Cool] - x-ms-access-tier-change-time: ['Tue, 01 Oct 2019 23:09:58 GMT'] - x-ms-blob-type: [BlockBlob] - x-ms-client-request-id: [967b906c-e4a0-11e9-b2af-ecb1d756380e] - x-ms-creation-time: ['Tue, 01 Oct 2019 23:09:57 GMT'] - x-ms-lease-state: [available] - x-ms-lease-status: [unlocked] - x-ms-request-id: [b956c419-e01e-004f-0dad-78a018000000] - x-ms-server-encrypted: ['true'] - x-ms-version: ['2019-02-02'] - status: {code: 200, message: OK} + body: + string: '' + headers: + Accept-Ranges: + - bytes + Content-Length: + - '11' + Content-MD5: + - XrY7u+Ae7tCTyyK7j1rNww== + Content-Type: + - application/octet-stream + Date: + - Wed, 02 Oct 2019 22:23:26 GMT + ETag: + - '"0x8D74787251B3751"' + Last-Modified: + - Wed, 02 Oct 2019 22:23:26 GMT + Server: + - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-access-tier: + - Cool + x-ms-access-tier-change-time: + - Wed, 02 Oct 2019 22:23:26 GMT + x-ms-blob-type: + - BlockBlob + x-ms-creation-time: + - Wed, 02 Oct 2019 22:23:26 GMT + x-ms-lease-state: + - available + x-ms-lease-status: + - unlocked + x-ms-request-id: + - 7f393fbf-e01e-0012-4470-79048f000000 + x-ms-server-encrypted: + - 'true' + x-ms-version: + - '2019-02-02' + status: + code: 200 + message: OK - request: - body: "--===============6978740633687956519==\r\nContent-Type: application/http\r\nContent-Transfer-Encoding: + body: "--===============3786854515375231946==\r\nContent-Type: application/http\r\nContent-Transfer-Encoding: binary\r\nContent-ID: 0\r\n\r\nDELETE /containera687174a/blob1? HTTP/1.1\r\nx-ms-date: - Tue, 01 Oct 2019 23:09:58 GMT\r\nx-ms-client-request-id: 9688afb8-e4a0-11e9-a3f4-ecb1d756380e\r\ncontent-type: - application/xml; charset=utf-8\r\nAuthorization: SharedKey storagename:PtqhE+PjVKSEPopKvjvKpEZjD8jU8ZV6mKLh5fTszmk=\r\n\r\n\r\n--===============6978740633687956519==\r\nContent-Type: + Wed, 02 Oct 2019 22:23:27 GMT\r\nx-ms-client-request-id: 41567e28-e563-11e9-93cd-1831bf6ae40e\r\nAuthorization: + SharedKey storagename:ytCwhASZHoOVZ8gvPvpXabsJ4RNQIJ1HCWy4Z1VFkbo=\r\n\r\n\r\n--===============3786854515375231946==\r\nContent-Type: application/http\r\nContent-Transfer-Encoding: binary\r\nContent-ID: 1\r\n\r\nDELETE - /containera687174a/blob2? HTTP/1.1\r\nx-ms-date: Tue, 01 Oct 2019 23:09:58 GMT\r\nx-ms-client-request-id: - 9688d70a-e4a0-11e9-9615-ecb1d756380e\r\ncontent-type: application/xml; charset=utf-8\r\nAuthorization: - SharedKey storagename:Vf3gfidL4ufirZ/sFV+BZiTyaRw0ANkCwIMD3XNWuOk=\r\n\r\n\r\n--===============6978740633687956519==\r\nContent-Type: + /containera687174a/blob2? HTTP/1.1\r\nx-ms-date: Wed, 02 Oct 2019 22:23:27 GMT\r\nx-ms-client-request-id: + 41567e29-e563-11e9-b377-1831bf6ae40e\r\nAuthorization: SharedKey storagename:1aL3E8fh5kFiUwdtYRIRzNwAbB/vWm1N8bQmKbvtwxw=\r\n\r\n\r\n--===============3786854515375231946==\r\nContent-Type: application/http\r\nContent-Transfer-Encoding: binary\r\nContent-ID: 2\r\n\r\nDELETE - /containera687174a/blob3? HTTP/1.1\r\nx-ms-date: Tue, 01 Oct 2019 23:09:58 GMT\r\nx-ms-client-request-id: - 9688fddc-e4a0-11e9-8715-ecb1d756380e\r\ncontent-type: application/xml; charset=utf-8\r\nAuthorization: - SharedKey storagename:WsJm0reynMPvfGQyEpRiPd3IJLA46J4B20TPQ+jP/AU=\r\n\r\n\r\n--===============6978740633687956519==--\r\n" - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['1245'] - Content-Type: [multipart/mixed; boundary================6978740633687956519==] - User-Agent: [azsdk-python-storage-blob/12.0.0b3 Python/3.7.0 (Windows-10-10.0.18362-SP0)] - x-ms-client-request-id: [96894c18-e4a0-11e9-a621-ecb1d756380e] - x-ms-date: ['Tue, 01 Oct 2019 23:09:58 GMT'] - x-ms-version: ['2019-02-02'] + /containera687174a/blob3? HTTP/1.1\r\nx-ms-date: Wed, 02 Oct 2019 22:23:27 GMT\r\nx-ms-client-request-id: + 4156a41c-e563-11e9-baf2-1831bf6ae40e\r\nAuthorization: SharedKey storagename:TMulDf2zP2DxywRKlxY6KSMAwSOruIM05BretraH2ps=\r\n\r\n\r\n--===============3786854515375231946==--\r\n" + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '1137' + Content-Type: + - multipart/mixed; boundary================3786854515375231946== + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.6.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - 4156cc36-e563-11e9-9205-1831bf6ae40e + x-ms-date: + - Wed, 02 Oct 2019 22:23:27 GMT + x-ms-version: + - '2019-02-02' method: POST uri: https://storagename.blob.core.windows.net/?comp=batch response: - body: {string: "--batchresponse_48f142fe-0349-4516-9426-80f261e90647\r\nContent-Type: + body: + string: "--batchresponse_7d0a7bf7-6fbd-490d-966d-cf71fa7fc323\r\nContent-Type: application/http\r\nContent-ID: 0\r\n\r\nHTTP/1.1 202 Accepted\r\nx-ms-delete-type-permanent: - true\r\nx-ms-request-id: b956c441-e01e-004f-31ad-78a0181e3da9\r\nx-ms-version: - 2019-02-02\r\nx-ms-client-request-id: 9688afb8-e4a0-11e9-a3f4-ecb1d756380e\r\nServer: - Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_48f142fe-0349-4516-9426-80f261e90647\r\nContent-Type: + true\r\nx-ms-request-id: 7f393fda-e01e-0012-5d70-79048f1e11a8\r\nx-ms-version: + 2019-02-02\r\nx-ms-client-request-id: 41567e28-e563-11e9-93cd-1831bf6ae40e\r\nServer: + Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_7d0a7bf7-6fbd-490d-966d-cf71fa7fc323\r\nContent-Type: application/http\r\nContent-ID: 1\r\n\r\nHTTP/1.1 202 Accepted\r\nx-ms-delete-type-permanent: - true\r\nx-ms-request-id: b956c441-e01e-004f-31ad-78a0181e3daa\r\nx-ms-version: - 2019-02-02\r\nx-ms-client-request-id: 9688d70a-e4a0-11e9-9615-ecb1d756380e\r\nServer: - Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_48f142fe-0349-4516-9426-80f261e90647\r\nContent-Type: + true\r\nx-ms-request-id: 7f393fda-e01e-0012-5d70-79048f1e11a9\r\nx-ms-version: + 2019-02-02\r\nx-ms-client-request-id: 41567e29-e563-11e9-b377-1831bf6ae40e\r\nServer: + Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_7d0a7bf7-6fbd-490d-966d-cf71fa7fc323\r\nContent-Type: application/http\r\nContent-ID: 2\r\n\r\nHTTP/1.1 202 Accepted\r\nx-ms-delete-type-permanent: - true\r\nx-ms-request-id: b956c441-e01e-004f-31ad-78a0181e3dab\r\nx-ms-version: - 2019-02-02\r\nx-ms-client-request-id: 9688fddc-e4a0-11e9-8715-ecb1d756380e\r\nServer: - Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_48f142fe-0349-4516-9426-80f261e90647--"} - headers: - Content-Type: [multipart/mixed; boundary=batchresponse_48f142fe-0349-4516-9426-80f261e90647] - Date: ['Tue, 01 Oct 2019 23:09:58 GMT'] - Server: [Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - x-ms-client-request-id: [96894c18-e4a0-11e9-a621-ecb1d756380e] - x-ms-request-id: [b956c441-e01e-004f-31ad-78a018000000] - x-ms-version: ['2019-02-02'] - status: {code: 202, message: Accepted} + true\r\nx-ms-request-id: 7f393fda-e01e-0012-5d70-79048f1e11aa\r\nx-ms-version: + 2019-02-02\r\nx-ms-client-request-id: 4156a41c-e563-11e9-baf2-1831bf6ae40e\r\nServer: + Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_7d0a7bf7-6fbd-490d-966d-cf71fa7fc323--" + headers: + Content-Type: + - multipart/mixed; boundary=batchresponse_7d0a7bf7-6fbd-490d-966d-cf71fa7fc323 + Date: + - Wed, 02 Oct 2019 22:23:26 GMT + Server: + - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + Transfer-Encoding: + - chunked + x-ms-request-id: + - 7f393fda-e01e-0012-5d70-79048f000000 + x-ms-version: + - '2019-02-02' + status: + code: 202 + message: Accepted - request: body: hello world headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['11'] - Content-Type: [application/octet-stream] - If-None-Match: ['*'] - User-Agent: [azsdk-python-storage-blob/12.0.0b3 Python/3.7.0 (Windows-10-10.0.18362-SP0)] - x-ms-blob-type: [BlockBlob] - x-ms-client-request-id: [9697f1cc-e4a0-11e9-9f35-ecb1d756380e] - x-ms-date: ['Tue, 01 Oct 2019 23:09:58 GMT'] - x-ms-version: ['2019-02-02'] + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '11' + Content-Type: + - application/octet-stream + If-None-Match: + - '*' + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.6.3 (Windows-10-10.0.18362-SP0) + x-ms-blob-type: + - BlockBlob + x-ms-client-request-id: + - 415e4624-e563-11e9-9e1d-1831bf6ae40e + x-ms-date: + - Wed, 02 Oct 2019 22:23:27 GMT + x-ms-version: + - '2019-02-02' method: PUT uri: https://storagename.blob.core.windows.net/containera687174a/blob1 response: - body: {string: ''} - headers: - Content-Length: ['0'] - Content-MD5: [XrY7u+Ae7tCTyyK7j1rNww==] - Date: ['Tue, 01 Oct 2019 23:09:58 GMT'] - ETag: ['"0x8D746C47ADA581A"'] - Last-Modified: ['Tue, 01 Oct 2019 23:09:58 GMT'] - Server: [Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0] - x-ms-client-request-id: [9697f1cc-e4a0-11e9-9f35-ecb1d756380e] - x-ms-content-crc64: [vo7q9sPVKY0=] - x-ms-request-id: [b956c46f-e01e-004f-5ead-78a018000000] - x-ms-request-server-encrypted: ['true'] - x-ms-version: ['2019-02-02'] - status: {code: 201, message: Created} + body: + string: '' + headers: + Content-Length: + - '0' + Content-MD5: + - XrY7u+Ae7tCTyyK7j1rNww== + Date: + - Wed, 02 Oct 2019 22:23:26 GMT + ETag: + - '"0x8D74787254750A7"' + Last-Modified: + - Wed, 02 Oct 2019 22:23:26 GMT + Server: + - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-content-crc64: + - vo7q9sPVKY0= + x-ms-request-id: + - 7f393fef-e01e-0012-7170-79048f000000 + x-ms-request-server-encrypted: + - 'true' + x-ms-version: + - '2019-02-02' + status: + code: 201 + message: Created - request: body: hello world headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['11'] - Content-Type: [application/octet-stream] - If-None-Match: ['*'] - User-Agent: [azsdk-python-storage-blob/12.0.0b3 Python/3.7.0 (Windows-10-10.0.18362-SP0)] - x-ms-blob-type: [BlockBlob] - x-ms-client-request-id: [96a75b22-e4a0-11e9-b723-ecb1d756380e] - x-ms-date: ['Tue, 01 Oct 2019 23:09:58 GMT'] - x-ms-version: ['2019-02-02'] + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '11' + Content-Type: + - application/octet-stream + If-None-Match: + - '*' + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.6.3 (Windows-10-10.0.18362-SP0) + x-ms-blob-type: + - BlockBlob + x-ms-client-request-id: + - 4164c29e-e563-11e9-bcaa-1831bf6ae40e + x-ms-date: + - Wed, 02 Oct 2019 22:23:27 GMT + x-ms-version: + - '2019-02-02' method: PUT uri: https://storagename.blob.core.windows.net/containera687174a/blob2 response: - body: {string: ''} - headers: - Content-Length: ['0'] - Content-MD5: [XrY7u+Ae7tCTyyK7j1rNww==] - Date: ['Tue, 01 Oct 2019 23:09:58 GMT'] - ETag: ['"0x8D746C47AE99D26"'] - Last-Modified: ['Tue, 01 Oct 2019 23:09:58 GMT'] - Server: [Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0] - x-ms-client-request-id: [96a75b22-e4a0-11e9-b723-ecb1d756380e] - x-ms-content-crc64: [vo7q9sPVKY0=] - x-ms-request-id: [b956c498-e01e-004f-05ad-78a018000000] - x-ms-request-server-encrypted: ['true'] - x-ms-version: ['2019-02-02'] - status: {code: 201, message: Created} + body: + string: '' + headers: + Content-Length: + - '0' + Content-MD5: + - XrY7u+Ae7tCTyyK7j1rNww== + Date: + - Wed, 02 Oct 2019 22:23:26 GMT + ETag: + - '"0x8D74787254D4420"' + Last-Modified: + - Wed, 02 Oct 2019 22:23:26 GMT + Server: + - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-content-crc64: + - vo7q9sPVKY0= + x-ms-request-id: + - 7f393ffd-e01e-0012-7f70-79048f000000 + x-ms-request-server-encrypted: + - 'true' + x-ms-version: + - '2019-02-02' + status: + code: 201 + message: Created - request: body: hello world headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['11'] - Content-Type: [application/octet-stream] - If-None-Match: ['*'] - User-Agent: [azsdk-python-storage-blob/12.0.0b3 Python/3.7.0 (Windows-10-10.0.18362-SP0)] - x-ms-blob-type: [BlockBlob] - x-ms-client-request-id: [96b516c2-e4a0-11e9-9246-ecb1d756380e] - x-ms-date: ['Tue, 01 Oct 2019 23:09:58 GMT'] - x-ms-version: ['2019-02-02'] + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '11' + Content-Type: + - application/octet-stream + If-None-Match: + - '*' + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.6.3 (Windows-10-10.0.18362-SP0) + x-ms-blob-type: + - BlockBlob + x-ms-client-request-id: + - 416ac328-e563-11e9-8fd1-1831bf6ae40e + x-ms-date: + - Wed, 02 Oct 2019 22:23:27 GMT + x-ms-version: + - '2019-02-02' method: PUT uri: https://storagename.blob.core.windows.net/containera687174a/blob3 response: - body: {string: ''} - headers: - Content-Length: ['0'] - Content-MD5: [XrY7u+Ae7tCTyyK7j1rNww==] - Date: ['Tue, 01 Oct 2019 23:09:58 GMT'] - ETag: ['"0x8D746C47AF5862D"'] - Last-Modified: ['Tue, 01 Oct 2019 23:09:58 GMT'] - Server: [Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0] - x-ms-client-request-id: [96b516c2-e4a0-11e9-9246-ecb1d756380e] - x-ms-content-crc64: [vo7q9sPVKY0=] - x-ms-request-id: [b956c4ba-e01e-004f-26ad-78a018000000] - x-ms-request-server-encrypted: ['true'] - x-ms-version: ['2019-02-02'] - status: {code: 201, message: Created} + body: + string: '' + headers: + Content-Length: + - '0' + Content-MD5: + - XrY7u+Ae7tCTyyK7j1rNww== + Date: + - Wed, 02 Oct 2019 22:23:26 GMT + ETag: + - '"0x8D74787255385B3"' + Last-Modified: + - Wed, 02 Oct 2019 22:23:26 GMT + Server: + - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-content-crc64: + - vo7q9sPVKY0= + x-ms-request-id: + - 7f394018-e01e-0012-1a70-79048f000000 + x-ms-request-server-encrypted: + - 'true' + x-ms-version: + - '2019-02-02' + status: + code: 201 + message: Created - request: body: null headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [azsdk-python-storage-blob/12.0.0b3 Python/3.7.0 (Windows-10-10.0.18362-SP0)] - content-type: [application/xml; charset=utf-8] - x-ms-client-request-id: [96c08878-e4a0-11e9-b8b3-ecb1d756380e] - x-ms-date: ['Tue, 01 Oct 2019 23:09:58 GMT'] - x-ms-version: ['2019-02-02'] + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.6.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - 41723d48-e563-11e9-92cd-1831bf6ae40e + x-ms-date: + - Wed, 02 Oct 2019 22:23:27 GMT + x-ms-version: + - '2019-02-02' method: HEAD uri: https://storagename.blob.core.windows.net/containera687174a/blob1 response: - body: {string: ''} - headers: - Accept-Ranges: [bytes] - Content-Length: ['11'] - Content-MD5: [XrY7u+Ae7tCTyyK7j1rNww==] - Content-Type: [application/octet-stream] - Date: ['Tue, 01 Oct 2019 23:09:58 GMT'] - ETag: ['"0x8D746C47ADA581A"'] - Last-Modified: ['Tue, 01 Oct 2019 23:09:58 GMT'] - Server: [Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0] - Vary: [Origin] - x-ms-access-tier: [Hot] - x-ms-access-tier-inferred: ['true'] - x-ms-blob-type: [BlockBlob] - x-ms-client-request-id: [96c08878-e4a0-11e9-b8b3-ecb1d756380e] - x-ms-creation-time: ['Tue, 01 Oct 2019 23:09:58 GMT'] - x-ms-lease-state: [available] - x-ms-lease-status: [unlocked] - x-ms-request-id: [b956c4f6-e01e-004f-5dad-78a018000000] - x-ms-server-encrypted: ['true'] - x-ms-version: ['2019-02-02'] - status: {code: 200, message: OK} + body: + string: '' + headers: + Accept-Ranges: + - bytes + Content-Length: + - '11' + Content-MD5: + - XrY7u+Ae7tCTyyK7j1rNww== + Content-Type: + - application/octet-stream + Date: + - Wed, 02 Oct 2019 22:23:26 GMT + ETag: + - '"0x8D74787254750A7"' + Last-Modified: + - Wed, 02 Oct 2019 22:23:26 GMT + Server: + - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-access-tier: + - Hot + x-ms-access-tier-inferred: + - 'true' + x-ms-blob-type: + - BlockBlob + x-ms-creation-time: + - Wed, 02 Oct 2019 22:23:26 GMT + x-ms-lease-state: + - available + x-ms-lease-status: + - unlocked + x-ms-request-id: + - 7f394040-e01e-0012-4170-79048f000000 + x-ms-server-encrypted: + - 'true' + x-ms-version: + - '2019-02-02' + status: + code: 200 + message: OK - request: - body: "--===============2394807418059992918==\r\nContent-Type: application/http\r\nContent-Transfer-Encoding: + body: "--===============4995750794258649879==\r\nContent-Type: application/http\r\nContent-Transfer-Encoding: binary\r\nContent-ID: 0\r\n\r\nPUT /containera687174a/blob1?comp=tier HTTP/1.1\r\nContent-Length: - 0\r\nx-ms-access-tier: Hot\r\nx-ms-date: Tue, 01 Oct 2019 23:09:58 GMT\r\nx-ms-client-request-id: - 96cd59be-e4a0-11e9-8a0d-ecb1d756380e\r\ncontent-type: application/xml; charset=utf-8\r\nAuthorization: - SharedKey storagename:cbRxinbpH/Ufm5vXJewbnRoGnNEyp5SZlUw6KQ5NO0Y=\r\n\r\n\r\n--===============2394807418059992918==\r\nContent-Type: + 0\r\nx-ms-access-tier: Hot\r\nx-ms-date: Wed, 02 Oct 2019 22:23:27 GMT\r\nx-ms-client-request-id: + 4178a4dc-e563-11e9-96c3-1831bf6ae40e\r\nAuthorization: SharedKey storagename:6q6XgnWiUVm6Wavo5ioScyFBb/ecO3glBAdFci/xhEY=\r\n\r\n\r\n--===============4995750794258649879==\r\nContent-Type: application/http\r\nContent-Transfer-Encoding: binary\r\nContent-ID: 1\r\n\r\nPUT /containera687174a/blob2?comp=tier HTTP/1.1\r\nContent-Length: 0\r\nx-ms-access-tier: - Hot\r\nx-ms-date: Tue, 01 Oct 2019 23:09:58 GMT\r\nx-ms-client-request-id: 96cd59bf-e4a0-11e9-a515-ecb1d756380e\r\ncontent-type: - application/xml; charset=utf-8\r\nAuthorization: SharedKey storagename:1dIuVKXxfU/9q4I5VG8xR75pDhaIscmB+3Hpdpi5uF0=\r\n\r\n\r\n--===============2394807418059992918==\r\nContent-Type: + Hot\r\nx-ms-date: Wed, 02 Oct 2019 22:23:27 GMT\r\nx-ms-client-request-id: 4178a4dd-e563-11e9-b32e-1831bf6ae40e\r\nAuthorization: + SharedKey storagename:cAjoJHNAYO5hx3wlaaWTmGzEkJxDRHqaf9ed+phcaYs=\r\n\r\n\r\n--===============4995750794258649879==\r\nContent-Type: application/http\r\nContent-Transfer-Encoding: binary\r\nContent-ID: 2\r\n\r\nPUT /containera687174a/blob3?comp=tier HTTP/1.1\r\nContent-Length: 0\r\nx-ms-access-tier: - Hot\r\nx-ms-date: Tue, 01 Oct 2019 23:09:58 GMT\r\nx-ms-client-request-id: 96cd59c0-e4a0-11e9-b749-ecb1d756380e\r\ncontent-type: - application/xml; charset=utf-8\r\nAuthorization: SharedKey storagename:z3PeuLAem8xXG9wq8FUUWLr+p6yRLRlK6S1SBYajxDk=\r\n\r\n\r\n--===============2394807418059992918==--\r\n" - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['1389'] - Content-Type: [multipart/mixed; boundary================2394807418059992918==] - User-Agent: [azsdk-python-storage-blob/12.0.0b3 Python/3.7.0 (Windows-10-10.0.18362-SP0)] - x-ms-client-request-id: [96cda7d8-e4a0-11e9-af4f-ecb1d756380e] - x-ms-date: ['Tue, 01 Oct 2019 23:09:58 GMT'] - x-ms-version: ['2019-02-02'] + Hot\r\nx-ms-date: Wed, 02 Oct 2019 22:23:27 GMT\r\nx-ms-client-request-id: 4178a4de-e563-11e9-bb63-1831bf6ae40e\r\nAuthorization: + SharedKey storagename:mwfxeCDLTAwCc9fb5qMuzoamw53aATx0dmnt6xZSaVI=\r\n\r\n\r\n--===============4995750794258649879==--\r\n" + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '1281' + Content-Type: + - multipart/mixed; boundary================4995750794258649879== + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.6.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - 4178f3f4-e563-11e9-bdeb-1831bf6ae40e + x-ms-date: + - Wed, 02 Oct 2019 22:23:27 GMT + x-ms-version: + - '2019-02-02' method: POST uri: https://storagename.blob.core.windows.net/?comp=batch response: - body: {string: "--batchresponse_a1625dda-b13b-46f0-9207-538f1eb5a61d\r\nContent-Type: + body: + string: "--batchresponse_224910b8-8c80-4d1f-9f27-6e3ef9642776\r\nContent-Type: application/http\r\nContent-ID: 0\r\n\r\nHTTP/1.1 200 OK\r\nx-ms-request-id: - b956c51e-e01e-004f-7fad-78a0181e3db5\r\nx-ms-version: 2019-02-02\r\nx-ms-client-request-id: - 96cd59be-e4a0-11e9-8a0d-ecb1d756380e\r\nServer: Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_a1625dda-b13b-46f0-9207-538f1eb5a61d\r\nContent-Type: + 7f394052-e01e-0012-5170-79048f1e11b2\r\nx-ms-version: 2019-02-02\r\nx-ms-client-request-id: + 4178a4dc-e563-11e9-96c3-1831bf6ae40e\r\nServer: Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_224910b8-8c80-4d1f-9f27-6e3ef9642776\r\nContent-Type: application/http\r\nContent-ID: 1\r\n\r\nHTTP/1.1 200 OK\r\nx-ms-request-id: - b956c51e-e01e-004f-7fad-78a0181e3db6\r\nx-ms-version: 2019-02-02\r\nx-ms-client-request-id: - 96cd59bf-e4a0-11e9-a515-ecb1d756380e\r\nServer: Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_a1625dda-b13b-46f0-9207-538f1eb5a61d\r\nContent-Type: + 7f394052-e01e-0012-5170-79048f1e11b3\r\nx-ms-version: 2019-02-02\r\nx-ms-client-request-id: + 4178a4dd-e563-11e9-b32e-1831bf6ae40e\r\nServer: Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_224910b8-8c80-4d1f-9f27-6e3ef9642776\r\nContent-Type: application/http\r\nContent-ID: 2\r\n\r\nHTTP/1.1 200 OK\r\nx-ms-request-id: - b956c51e-e01e-004f-7fad-78a0181e3db7\r\nx-ms-version: 2019-02-02\r\nx-ms-client-request-id: - 96cd59c0-e4a0-11e9-b749-ecb1d756380e\r\nServer: Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_a1625dda-b13b-46f0-9207-538f1eb5a61d--"} - headers: - Content-Type: [multipart/mixed; boundary=batchresponse_a1625dda-b13b-46f0-9207-538f1eb5a61d] - Date: ['Tue, 01 Oct 2019 23:09:58 GMT'] - Server: [Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - x-ms-client-request-id: [96cda7d8-e4a0-11e9-af4f-ecb1d756380e] - x-ms-request-id: [b956c51e-e01e-004f-7fad-78a018000000] - x-ms-version: ['2019-02-02'] - status: {code: 202, message: Accepted} + 7f394052-e01e-0012-5170-79048f1e11b4\r\nx-ms-version: 2019-02-02\r\nx-ms-client-request-id: + 4178a4de-e563-11e9-bb63-1831bf6ae40e\r\nServer: Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_224910b8-8c80-4d1f-9f27-6e3ef9642776--" + headers: + Content-Type: + - multipart/mixed; boundary=batchresponse_224910b8-8c80-4d1f-9f27-6e3ef9642776 + Date: + - Wed, 02 Oct 2019 22:23:26 GMT + Server: + - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + Transfer-Encoding: + - chunked + x-ms-request-id: + - 7f394052-e01e-0012-5170-79048f000000 + x-ms-version: + - '2019-02-02' + status: + code: 202 + message: Accepted - request: body: null headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [azsdk-python-storage-blob/12.0.0b3 Python/3.7.0 (Windows-10-10.0.18362-SP0)] - content-type: [application/xml; charset=utf-8] - x-ms-client-request-id: [96d91990-e4a0-11e9-8b24-ecb1d756380e] - x-ms-date: ['Tue, 01 Oct 2019 23:09:58 GMT'] - x-ms-version: ['2019-02-02'] + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.6.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - 41817ea6-e563-11e9-a1f4-1831bf6ae40e + x-ms-date: + - Wed, 02 Oct 2019 22:23:27 GMT + x-ms-version: + - '2019-02-02' method: HEAD uri: https://storagename.blob.core.windows.net/containera687174a/blob1 response: - body: {string: ''} - headers: - Accept-Ranges: [bytes] - Content-Length: ['11'] - Content-MD5: [XrY7u+Ae7tCTyyK7j1rNww==] - Content-Type: [application/octet-stream] - Date: ['Tue, 01 Oct 2019 23:09:58 GMT'] - ETag: ['"0x8D746C47ADA581A"'] - Last-Modified: ['Tue, 01 Oct 2019 23:09:58 GMT'] - Server: [Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0] - Vary: [Origin] - x-ms-access-tier: [Hot] - x-ms-access-tier-change-time: ['Tue, 01 Oct 2019 23:09:58 GMT'] - x-ms-blob-type: [BlockBlob] - x-ms-client-request-id: [96d91990-e4a0-11e9-8b24-ecb1d756380e] - x-ms-creation-time: ['Tue, 01 Oct 2019 23:09:58 GMT'] - x-ms-lease-state: [available] - x-ms-lease-status: [unlocked] - x-ms-request-id: [b956c543-e01e-004f-22ad-78a018000000] - x-ms-server-encrypted: ['true'] - x-ms-version: ['2019-02-02'] - status: {code: 200, message: OK} + body: + string: '' + headers: + Accept-Ranges: + - bytes + Content-Length: + - '11' + Content-MD5: + - XrY7u+Ae7tCTyyK7j1rNww== + Content-Type: + - application/octet-stream + Date: + - Wed, 02 Oct 2019 22:23:26 GMT + ETag: + - '"0x8D74787254750A7"' + Last-Modified: + - Wed, 02 Oct 2019 22:23:26 GMT + Server: + - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-access-tier: + - Hot + x-ms-access-tier-change-time: + - Wed, 02 Oct 2019 22:23:26 GMT + x-ms-blob-type: + - BlockBlob + x-ms-creation-time: + - Wed, 02 Oct 2019 22:23:26 GMT + x-ms-lease-state: + - available + x-ms-lease-status: + - unlocked + x-ms-request-id: + - 7f394063-e01e-0012-6170-79048f000000 + x-ms-server-encrypted: + - 'true' + x-ms-version: + - '2019-02-02' + status: + code: 200 + message: OK - request: - body: "--===============0599617762988954062==\r\nContent-Type: application/http\r\nContent-Transfer-Encoding: + body: "--===============3958731368272030847==\r\nContent-Type: application/http\r\nContent-Transfer-Encoding: binary\r\nContent-ID: 0\r\n\r\nDELETE /containera687174a/blob1? HTTP/1.1\r\nx-ms-date: - Tue, 01 Oct 2019 23:09:58 GMT\r\nx-ms-client-request-id: 96e50068-e4a0-11e9-b110-ecb1d756380e\r\ncontent-type: - application/xml; charset=utf-8\r\nAuthorization: SharedKey storagename:4FyA3HgDLUwnSV9PXPv7+ojs5msvPoouI/Bm/Iaglqo=\r\n\r\n\r\n--===============0599617762988954062==\r\nContent-Type: + Wed, 02 Oct 2019 22:23:27 GMT\r\nx-ms-client-request-id: 4186d6d0-e563-11e9-8ddd-1831bf6ae40e\r\nAuthorization: + SharedKey storagename:yR9lhwcV9VYJd+BDkfMY4ETVCTJtsQp0G8NWxWPnK5g=\r\n\r\n\r\n--===============3958731368272030847==\r\nContent-Type: application/http\r\nContent-Transfer-Encoding: binary\r\nContent-ID: 1\r\n\r\nDELETE - /containera687174a/blob2? HTTP/1.1\r\nx-ms-date: Tue, 01 Oct 2019 23:09:58 GMT\r\nx-ms-client-request-id: - 96e50069-e4a0-11e9-9136-ecb1d756380e\r\ncontent-type: application/xml; charset=utf-8\r\nAuthorization: - SharedKey storagename:r86YSDGW2DJOU/4veQDRFp64rqFdaN3DPcgHHNkGm/g=\r\n\r\n\r\n--===============0599617762988954062==\r\nContent-Type: + /containera687174a/blob2? HTTP/1.1\r\nx-ms-date: Wed, 02 Oct 2019 22:23:27 GMT\r\nx-ms-client-request-id: + 4186d6d1-e563-11e9-bef6-1831bf6ae40e\r\nAuthorization: SharedKey storagename:U0EsvYPxDCaw+U+F8Tc6CdrILum9y7AbEU2Z77rkdUQ=\r\n\r\n\r\n--===============3958731368272030847==\r\nContent-Type: application/http\r\nContent-Transfer-Encoding: binary\r\nContent-ID: 2\r\n\r\nDELETE - /containera687174a/blob3? HTTP/1.1\r\nx-ms-date: Tue, 01 Oct 2019 23:09:58 GMT\r\nx-ms-client-request-id: - 96e52778-e4a0-11e9-9d69-ecb1d756380e\r\ncontent-type: application/xml; charset=utf-8\r\nAuthorization: - SharedKey storagename:Bx1MOFohb0JIrY8FNUrWxDuBCJVhNj+J02l8EvjREIQ=\r\n\r\n\r\n--===============0599617762988954062==--\r\n" - headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['1245'] - Content-Type: [multipart/mixed; boundary================0599617762988954062==] - User-Agent: [azsdk-python-storage-blob/12.0.0b3 Python/3.7.0 (Windows-10-10.0.18362-SP0)] - x-ms-client-request-id: [96e5eac8-e4a0-11e9-8295-ecb1d756380e] - x-ms-date: ['Tue, 01 Oct 2019 23:09:58 GMT'] - x-ms-version: ['2019-02-02'] + /containera687174a/blob3? HTTP/1.1\r\nx-ms-date: Wed, 02 Oct 2019 22:23:27 GMT\r\nx-ms-client-request-id: + 4186fcc2-e563-11e9-a498-1831bf6ae40e\r\nAuthorization: SharedKey storagename:DoRBL9oOOMv7wmus6vCFvUeRFh6pwrYfBwp/a3rrTEE=\r\n\r\n\r\n--===============3958731368272030847==--\r\n" + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '1137' + Content-Type: + - multipart/mixed; boundary================3958731368272030847== + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.6.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - 41874ad8-e563-11e9-9b10-1831bf6ae40e + x-ms-date: + - Wed, 02 Oct 2019 22:23:27 GMT + x-ms-version: + - '2019-02-02' method: POST uri: https://storagename.blob.core.windows.net/?comp=batch response: - body: {string: "--batchresponse_1e2f841c-ca1d-4dcf-910b-06534c9bbaec\r\nContent-Type: + body: + string: "--batchresponse_d59b833b-fa4b-4b00-a061-1f8d32b29760\r\nContent-Type: application/http\r\nContent-ID: 0\r\n\r\nHTTP/1.1 202 Accepted\r\nx-ms-delete-type-permanent: - true\r\nx-ms-request-id: b956c566-e01e-004f-41ad-78a0181e3dbb\r\nx-ms-version: - 2019-02-02\r\nx-ms-client-request-id: 96e50068-e4a0-11e9-b110-ecb1d756380e\r\nServer: - Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_1e2f841c-ca1d-4dcf-910b-06534c9bbaec\r\nContent-Type: + true\r\nx-ms-request-id: 7f394081-e01e-0012-7c70-79048f1e11bb\r\nx-ms-version: + 2019-02-02\r\nx-ms-client-request-id: 4186d6d0-e563-11e9-8ddd-1831bf6ae40e\r\nServer: + Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_d59b833b-fa4b-4b00-a061-1f8d32b29760\r\nContent-Type: application/http\r\nContent-ID: 1\r\n\r\nHTTP/1.1 202 Accepted\r\nx-ms-delete-type-permanent: - true\r\nx-ms-request-id: b956c566-e01e-004f-41ad-78a0181e3dbc\r\nx-ms-version: - 2019-02-02\r\nx-ms-client-request-id: 96e50069-e4a0-11e9-9136-ecb1d756380e\r\nServer: - Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_1e2f841c-ca1d-4dcf-910b-06534c9bbaec\r\nContent-Type: + true\r\nx-ms-request-id: 7f394081-e01e-0012-7c70-79048f1e11bc\r\nx-ms-version: + 2019-02-02\r\nx-ms-client-request-id: 4186d6d1-e563-11e9-bef6-1831bf6ae40e\r\nServer: + Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_d59b833b-fa4b-4b00-a061-1f8d32b29760\r\nContent-Type: application/http\r\nContent-ID: 2\r\n\r\nHTTP/1.1 202 Accepted\r\nx-ms-delete-type-permanent: - true\r\nx-ms-request-id: b956c566-e01e-004f-41ad-78a0181e3dbd\r\nx-ms-version: - 2019-02-02\r\nx-ms-client-request-id: 96e52778-e4a0-11e9-9d69-ecb1d756380e\r\nServer: - Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_1e2f841c-ca1d-4dcf-910b-06534c9bbaec--"} - headers: - Content-Type: [multipart/mixed; boundary=batchresponse_1e2f841c-ca1d-4dcf-910b-06534c9bbaec] - Date: ['Tue, 01 Oct 2019 23:09:58 GMT'] - Server: [Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0] - Transfer-Encoding: [chunked] - x-ms-client-request-id: [96e5eac8-e4a0-11e9-8295-ecb1d756380e] - x-ms-request-id: [b956c566-e01e-004f-41ad-78a018000000] - x-ms-version: ['2019-02-02'] - status: {code: 202, message: Accepted} + true\r\nx-ms-request-id: 7f394081-e01e-0012-7c70-79048f1e11bd\r\nx-ms-version: + 2019-02-02\r\nx-ms-client-request-id: 4186fcc2-e563-11e9-a498-1831bf6ae40e\r\nServer: + Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_d59b833b-fa4b-4b00-a061-1f8d32b29760--" + headers: + Content-Type: + - multipart/mixed; boundary=batchresponse_d59b833b-fa4b-4b00-a061-1f8d32b29760 + Date: + - Wed, 02 Oct 2019 22:23:26 GMT + Server: + - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + Transfer-Encoding: + - chunked + x-ms-request-id: + - 7f394081-e01e-0012-7c70-79048f000000 + x-ms-version: + - '2019-02-02' + status: + code: 202 + message: Accepted version: 1 diff --git a/sdk/storage/azure-storage-blob/tests/recordings/test_container_async.test_delete_blobs_simple.yaml b/sdk/storage/azure-storage-blob/tests/recordings/test_container_async.test_delete_blobs_simple.yaml index 7e6478e0f171..3450dd134003 100644 --- a/sdk/storage/azure-storage-blob/tests/recordings/test_container_async.test_delete_blobs_simple.yaml +++ b/sdk/storage/azure-storage-blob/tests/recordings/test_container_async.test_delete_blobs_simple.yaml @@ -2,199 +2,287 @@ interactions: - request: body: null headers: - User-Agent: [azsdk-python-storage-blob/12.0.0b3 Python/3.7.0 (Windows-10-10.0.18362-SP0)] - content-type: [application/xml; charset=utf-8] - x-ms-client-request-id: [e22c060a-e47f-11e9-a3e9-ecb1d756380e] - x-ms-date: ['Tue, 01 Oct 2019 19:15:51 GMT'] - x-ms-version: ['2019-02-02'] + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.6.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - 15cecdf8-e563-11e9-965e-1831bf6ae40e + x-ms-date: + - Wed, 02 Oct 2019 22:22:14 GMT + x-ms-version: + - '2019-02-02' method: PUT uri: https://storagename.blob.core.windows.net/containeraa4e127a?restype=container response: - body: {string: ''} + body: + string: '' headers: - ? !!python/object/new:multidict._istr.istr [Content-Length] + ? !!python/object/new:multidict._istr.istr + - Content-Length : '0' - ? !!python/object/new:multidict._istr.istr [Date] - : Tue, 01 Oct 2019 19:15:51 GMT - ? !!python/object/new:multidict._istr.istr [Etag] - : '"0x8D746A3C6789E61"' - ? !!python/object/new:multidict._istr.istr [Last-Modified] - : Tue, 01 Oct 2019 19:15:51 GMT - ? !!python/object/new:multidict._istr.istr [Server] + ? !!python/object/new:multidict._istr.istr + - Date + : Wed, 02 Oct 2019 22:22:13 GMT + ? !!python/object/new:multidict._istr.istr + - Etag + : '"0x8D74786F9CB8B00"' + ? !!python/object/new:multidict._istr.istr + - Last-Modified + : Wed, 02 Oct 2019 22:22:13 GMT + ? !!python/object/new:multidict._istr.istr + - Server : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 - x-ms-client-request-id: e22c060a-e47f-11e9-a3e9-ecb1d756380e - x-ms-request-id: c36b750e-e01e-00ee-078c-786e83000000 + x-ms-request-id: a61d0239-f01e-0088-026f-799a56000000 x-ms-version: '2019-02-02' - status: {code: 201, message: Created} + status: + code: 201 + message: Created url: !!python/object/new:yarl.URL state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult [https, amqptest.blob.core.windows.net, - /containeraa4e127a, restype=container, ''] + - !!python/object/new:urllib.parse.SplitResult + - https + - lmazueltracingtest.blob.core.windows.net + - /containeraa4e127a + - restype=container + - '' - request: body: hello world headers: - Content-Length: ['11'] - Content-Type: [application/octet-stream] - If-None-Match: ['*'] - User-Agent: [azsdk-python-storage-blob/12.0.0b3 Python/3.7.0 (Windows-10-10.0.18362-SP0)] - x-ms-blob-type: [BlockBlob] - x-ms-client-request-id: [e249278c-e47f-11e9-a528-ecb1d756380e] - x-ms-date: ['Tue, 01 Oct 2019 19:15:51 GMT'] - x-ms-version: ['2019-02-02'] + Content-Length: + - '11' + Content-Type: + - application/octet-stream + If-None-Match: + - '*' + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.6.3 (Windows-10-10.0.18362-SP0) + x-ms-blob-type: + - BlockBlob + x-ms-client-request-id: + - 15e9c1e8-e563-11e9-9541-1831bf6ae40e + x-ms-date: + - Wed, 02 Oct 2019 22:22:14 GMT + x-ms-version: + - '2019-02-02' method: PUT uri: https://storagename.blob.core.windows.net/containeraa4e127a/blob1 response: - body: {string: ''} + body: + string: '' headers: - ? !!python/object/new:multidict._istr.istr [Content-Length] + ? !!python/object/new:multidict._istr.istr + - Content-Length : '0' - ? !!python/object/new:multidict._istr.istr [Content-Md5] + ? !!python/object/new:multidict._istr.istr + - Content-Md5 : XrY7u+Ae7tCTyyK7j1rNww== - ? !!python/object/new:multidict._istr.istr [Date] - : Tue, 01 Oct 2019 19:15:51 GMT - ? !!python/object/new:multidict._istr.istr [Etag] - : '"0x8D746A3C683793A"' - ? !!python/object/new:multidict._istr.istr [Last-Modified] - : Tue, 01 Oct 2019 19:15:52 GMT - ? !!python/object/new:multidict._istr.istr [Server] + ? !!python/object/new:multidict._istr.istr + - Date + : Wed, 02 Oct 2019 22:22:13 GMT + ? !!python/object/new:multidict._istr.istr + - Etag + : '"0x8D74786F9D16FD4"' + ? !!python/object/new:multidict._istr.istr + - Last-Modified + : Wed, 02 Oct 2019 22:22:13 GMT + ? !!python/object/new:multidict._istr.istr + - Server : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 - x-ms-client-request-id: e249278c-e47f-11e9-a528-ecb1d756380e x-ms-content-crc64: vo7q9sPVKY0= - x-ms-request-id: c36b7543-e01e-00ee-388c-786e83000000 + x-ms-request-id: a61d024d-f01e-0088-126f-799a56000000 x-ms-request-server-encrypted: 'true' x-ms-version: '2019-02-02' - status: {code: 201, message: Created} + status: + code: 201 + message: Created url: !!python/object/new:yarl.URL state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult [https, amqptest.blob.core.windows.net, - /containeraa4e127a/blob1, '', ''] + - !!python/object/new:urllib.parse.SplitResult + - https + - lmazueltracingtest.blob.core.windows.net + - /containeraa4e127a/blob1 + - '' + - '' - request: body: hello world headers: - Content-Length: ['11'] - Content-Type: [application/octet-stream] - If-None-Match: ['*'] - User-Agent: [azsdk-python-storage-blob/12.0.0b3 Python/3.7.0 (Windows-10-10.0.18362-SP0)] - x-ms-blob-type: [BlockBlob] - x-ms-client-request-id: [e250d974-e47f-11e9-bfd3-ecb1d756380e] - x-ms-date: ['Tue, 01 Oct 2019 19:15:52 GMT'] - x-ms-version: ['2019-02-02'] + Content-Length: + - '11' + Content-Type: + - application/octet-stream + If-None-Match: + - '*' + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.6.3 (Windows-10-10.0.18362-SP0) + x-ms-blob-type: + - BlockBlob + x-ms-client-request-id: + - 15ef571c-e563-11e9-8df2-1831bf6ae40e + x-ms-date: + - Wed, 02 Oct 2019 22:22:14 GMT + x-ms-version: + - '2019-02-02' method: PUT uri: https://storagename.blob.core.windows.net/containeraa4e127a/blob2 response: - body: {string: ''} + body: + string: '' headers: - ? !!python/object/new:multidict._istr.istr [Content-Length] + ? !!python/object/new:multidict._istr.istr + - Content-Length : '0' - ? !!python/object/new:multidict._istr.istr [Content-Md5] + ? !!python/object/new:multidict._istr.istr + - Content-Md5 : XrY7u+Ae7tCTyyK7j1rNww== - ? !!python/object/new:multidict._istr.istr [Date] - : Tue, 01 Oct 2019 19:15:51 GMT - ? !!python/object/new:multidict._istr.istr [Etag] - : '"0x8D746A3C68AF49F"' - ? !!python/object/new:multidict._istr.istr [Last-Modified] - : Tue, 01 Oct 2019 19:15:52 GMT - ? !!python/object/new:multidict._istr.istr [Server] + ? !!python/object/new:multidict._istr.istr + - Date + : Wed, 02 Oct 2019 22:22:13 GMT + ? !!python/object/new:multidict._istr.istr + - Etag + : '"0x8D74786F9D7FF81"' + ? !!python/object/new:multidict._istr.istr + - Last-Modified + : Wed, 02 Oct 2019 22:22:13 GMT + ? !!python/object/new:multidict._istr.istr + - Server : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 - x-ms-client-request-id: e250d974-e47f-11e9-bfd3-ecb1d756380e x-ms-content-crc64: vo7q9sPVKY0= - x-ms-request-id: c36b7577-e01e-00ee-6a8c-786e83000000 + x-ms-request-id: a61d025c-f01e-0088-206f-799a56000000 x-ms-request-server-encrypted: 'true' x-ms-version: '2019-02-02' - status: {code: 201, message: Created} + status: + code: 201 + message: Created url: !!python/object/new:yarl.URL state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult [https, amqptest.blob.core.windows.net, - /containeraa4e127a/blob2, '', ''] + - !!python/object/new:urllib.parse.SplitResult + - https + - lmazueltracingtest.blob.core.windows.net + - /containeraa4e127a/blob2 + - '' + - '' - request: body: hello world headers: - Content-Length: ['11'] - Content-Type: [application/octet-stream] - If-None-Match: ['*'] - User-Agent: [azsdk-python-storage-blob/12.0.0b3 Python/3.7.0 (Windows-10-10.0.18362-SP0)] - x-ms-blob-type: [BlockBlob] - x-ms-client-request-id: [e25854de-e47f-11e9-99d3-ecb1d756380e] - x-ms-date: ['Tue, 01 Oct 2019 19:15:52 GMT'] - x-ms-version: ['2019-02-02'] + Content-Length: + - '11' + Content-Type: + - application/octet-stream + If-None-Match: + - '*' + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.6.3 (Windows-10-10.0.18362-SP0) + x-ms-blob-type: + - BlockBlob + x-ms-client-request-id: + - 15f592cc-e563-11e9-9bab-1831bf6ae40e + x-ms-date: + - Wed, 02 Oct 2019 22:22:14 GMT + x-ms-version: + - '2019-02-02' method: PUT uri: https://storagename.blob.core.windows.net/containeraa4e127a/blob3 response: - body: {string: ''} + body: + string: '' headers: - ? !!python/object/new:multidict._istr.istr [Content-Length] + ? !!python/object/new:multidict._istr.istr + - Content-Length : '0' - ? !!python/object/new:multidict._istr.istr [Content-Md5] + ? !!python/object/new:multidict._istr.istr + - Content-Md5 : XrY7u+Ae7tCTyyK7j1rNww== - ? !!python/object/new:multidict._istr.istr [Date] - : Tue, 01 Oct 2019 19:15:51 GMT - ? !!python/object/new:multidict._istr.istr [Etag] - : '"0x8D746A3C6927009"' - ? !!python/object/new:multidict._istr.istr [Last-Modified] - : Tue, 01 Oct 2019 19:15:52 GMT - ? !!python/object/new:multidict._istr.istr [Server] + ? !!python/object/new:multidict._istr.istr + - Date + : Wed, 02 Oct 2019 22:22:13 GMT + ? !!python/object/new:multidict._istr.istr + - Etag + : '"0x8D74786F9DDCC08"' + ? !!python/object/new:multidict._istr.istr + - Last-Modified + : Wed, 02 Oct 2019 22:22:13 GMT + ? !!python/object/new:multidict._istr.istr + - Server : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 - x-ms-client-request-id: e25854de-e47f-11e9-99d3-ecb1d756380e x-ms-content-crc64: vo7q9sPVKY0= - x-ms-request-id: c36b75a4-e01e-00ee-148c-786e83000000 + x-ms-request-id: a61d026b-f01e-0088-2d6f-799a56000000 x-ms-request-server-encrypted: 'true' x-ms-version: '2019-02-02' - status: {code: 201, message: Created} + status: + code: 201 + message: Created url: !!python/object/new:yarl.URL state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult [https, amqptest.blob.core.windows.net, - /containeraa4e127a/blob3, '', ''] + - !!python/object/new:urllib.parse.SplitResult + - https + - lmazueltracingtest.blob.core.windows.net + - /containeraa4e127a/blob3 + - '' + - '' - request: - body: "--===============4338717865813308986==\r\nContent-Type: application/http\r\nContent-Transfer-Encoding: + body: "--===============1767902573082227396==\r\nContent-Type: application/http\r\nContent-Transfer-Encoding: binary\r\nContent-ID: 0\r\n\r\nDELETE /containeraa4e127a/blob1? HTTP/1.1\r\nx-ms-date: - Tue, 01 Oct 2019 19:15:52 GMT\r\nx-ms-client-request-id: e25e255c-e47f-11e9-9b22-ecb1d756380e\r\ncontent-type: - application/xml; charset=utf-8\r\nAuthorization: SharedKey storagename:cz7HxeQca7rCQr4UGmyVb6Sk7etfsf+g/5G4N0qBEG8=\r\n\r\n\r\n--===============4338717865813308986==\r\nContent-Type: + Wed, 02 Oct 2019 22:22:14 GMT\r\nx-ms-client-request-id: 15faf514-e563-11e9-bb8c-1831bf6ae40e\r\nAuthorization: + SharedKey storagename:LMtzeg+TU9C2jHaPjcrsMMgmHv1dcbjCauIzZBDS54w=\r\n\r\n\r\n--===============1767902573082227396==\r\nContent-Type: application/http\r\nContent-Transfer-Encoding: binary\r\nContent-ID: 1\r\n\r\nDELETE - /containeraa4e127a/blob2? HTTP/1.1\r\nx-ms-date: Tue, 01 Oct 2019 19:15:52 GMT\r\nx-ms-client-request-id: - e25e4c6c-e47f-11e9-b016-ecb1d756380e\r\ncontent-type: application/xml; charset=utf-8\r\nAuthorization: - SharedKey storagename:xjN0K+e1FUSJ5yKqM4kQoCF23kNPdo62yK/IVqGzirI=\r\n\r\n\r\n--===============4338717865813308986==\r\nContent-Type: + /containeraa4e127a/blob2? HTTP/1.1\r\nx-ms-date: Wed, 02 Oct 2019 22:22:14 GMT\r\nx-ms-client-request-id: + 15faf515-e563-11e9-bebc-1831bf6ae40e\r\nAuthorization: SharedKey storagename:cIMPDrz66JgsNorSQhr5S0FhOgRMxZ/0ljuuuuHEyfI=\r\n\r\n\r\n--===============1767902573082227396==\r\nContent-Type: application/http\r\nContent-Transfer-Encoding: binary\r\nContent-ID: 2\r\n\r\nDELETE - /containeraa4e127a/blob3? HTTP/1.1\r\nx-ms-date: Tue, 01 Oct 2019 19:15:52 GMT\r\nx-ms-client-request-id: - e25e9ab0-e47f-11e9-aa25-ecb1d756380e\r\ncontent-type: application/xml; charset=utf-8\r\nAuthorization: - SharedKey storagename:LE44bIZNxnHVSXSYciRvZFXLfmKpBNFJ1J5mu1xjJU4=\r\n\r\n\r\n--===============4338717865813308986==--\r\n" + /containeraa4e127a/blob3? HTTP/1.1\r\nx-ms-date: Wed, 02 Oct 2019 22:22:14 GMT\r\nx-ms-client-request-id: + 15faf516-e563-11e9-a8df-1831bf6ae40e\r\nAuthorization: SharedKey storagename:RMD1n0JYXoWXRl0IXZ53qEdHHEa+q6GbGb8prLSUseY=\r\n\r\n\r\n--===============1767902573082227396==--\r\n" headers: - Content-Length: ['1245'] - Content-Type: [multipart/mixed; boundary================4338717865813308986==] - User-Agent: [azsdk-python-storage-blob/12.0.0b3 Python/3.7.0 (Windows-10-10.0.18362-SP0)] - x-ms-client-request-id: [e25f84c8-e47f-11e9-864d-ecb1d756380e] - x-ms-date: ['Tue, 01 Oct 2019 19:15:52 GMT'] - x-ms-version: ['2019-02-02'] + Content-Length: + - '1137' + Content-Type: + - multipart/mixed; boundary================1767902573082227396== + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.6.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - 15fc0682-e563-11e9-90cd-1831bf6ae40e + x-ms-date: + - Wed, 02 Oct 2019 22:22:14 GMT + x-ms-version: + - '2019-02-02' method: POST uri: https://storagename.blob.core.windows.net/?comp=batch response: - body: {string: "--batchresponse_63429a4f-edfb-4ce7-8fa4-642a5ac93dc4\r\nContent-Type: + body: + string: "--batchresponse_8ca736c5-0c3a-4a4b-8584-65fdaf8acf36\r\nContent-Type: application/http\r\nContent-ID: 0\r\n\r\nHTTP/1.1 202 Accepted\r\nx-ms-delete-type-permanent: - true\r\nx-ms-request-id: c36b75c9-e01e-00ee-398c-786e831eb769\r\nx-ms-version: - 2019-02-02\r\nx-ms-client-request-id: e25e255c-e47f-11e9-9b22-ecb1d756380e\r\nServer: - Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_63429a4f-edfb-4ce7-8fa4-642a5ac93dc4\r\nContent-Type: + true\r\nx-ms-request-id: a61d0272-f01e-0088-346f-799a561e2b28\r\nx-ms-version: + 2019-02-02\r\nx-ms-client-request-id: 15faf514-e563-11e9-bb8c-1831bf6ae40e\r\nServer: + Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_8ca736c5-0c3a-4a4b-8584-65fdaf8acf36\r\nContent-Type: application/http\r\nContent-ID: 1\r\n\r\nHTTP/1.1 202 Accepted\r\nx-ms-delete-type-permanent: - true\r\nx-ms-request-id: c36b75c9-e01e-00ee-398c-786e831eb76b\r\nx-ms-version: - 2019-02-02\r\nx-ms-client-request-id: e25e4c6c-e47f-11e9-b016-ecb1d756380e\r\nServer: - Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_63429a4f-edfb-4ce7-8fa4-642a5ac93dc4\r\nContent-Type: + true\r\nx-ms-request-id: a61d0272-f01e-0088-346f-799a561e2b2a\r\nx-ms-version: + 2019-02-02\r\nx-ms-client-request-id: 15faf515-e563-11e9-bebc-1831bf6ae40e\r\nServer: + Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_8ca736c5-0c3a-4a4b-8584-65fdaf8acf36\r\nContent-Type: application/http\r\nContent-ID: 2\r\n\r\nHTTP/1.1 202 Accepted\r\nx-ms-delete-type-permanent: - true\r\nx-ms-request-id: c36b75c9-e01e-00ee-398c-786e831eb76c\r\nx-ms-version: - 2019-02-02\r\nx-ms-client-request-id: e25e9ab0-e47f-11e9-aa25-ecb1d756380e\r\nServer: - Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_63429a4f-edfb-4ce7-8fa4-642a5ac93dc4--"} + true\r\nx-ms-request-id: a61d0272-f01e-0088-346f-799a561e2b2b\r\nx-ms-version: + 2019-02-02\r\nx-ms-client-request-id: 15faf516-e563-11e9-a8df-1831bf6ae40e\r\nServer: + Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_8ca736c5-0c3a-4a4b-8584-65fdaf8acf36--" headers: - ? !!python/object/new:multidict._istr.istr [Content-Type] - : multipart/mixed; boundary=batchresponse_63429a4f-edfb-4ce7-8fa4-642a5ac93dc4 - ? !!python/object/new:multidict._istr.istr [Date] - : Tue, 01 Oct 2019 19:15:52 GMT - ? !!python/object/new:multidict._istr.istr [Server] + ? !!python/object/new:multidict._istr.istr + - Content-Type + : multipart/mixed; boundary=batchresponse_8ca736c5-0c3a-4a4b-8584-65fdaf8acf36 + ? !!python/object/new:multidict._istr.istr + - Date + : Wed, 02 Oct 2019 22:22:13 GMT + ? !!python/object/new:multidict._istr.istr + - Server : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 - ? !!python/object/new:multidict._istr.istr [Transfer-Encoding] + ? !!python/object/new:multidict._istr.istr + - Transfer-Encoding : chunked - x-ms-client-request-id: e25f84c8-e47f-11e9-864d-ecb1d756380e - x-ms-request-id: c36b75c9-e01e-00ee-398c-786e83000000 + x-ms-request-id: a61d0272-f01e-0088-346f-799a56000000 x-ms-version: '2019-02-02' - status: {code: 202, message: Accepted} + status: + code: 202 + message: Accepted url: !!python/object/new:yarl.URL state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult [https, amqptest.blob.core.windows.net, - /, comp=batch, ''] + - !!python/object/new:urllib.parse.SplitResult + - https + - lmazueltracingtest.blob.core.windows.net + - / + - comp=batch + - '' version: 1 diff --git a/sdk/storage/azure-storage-blob/tests/recordings/test_container_async.test_delete_blobs_snapshot.yaml b/sdk/storage/azure-storage-blob/tests/recordings/test_container_async.test_delete_blobs_snapshot.yaml index 55203154c685..6d47b9b04308 100644 --- a/sdk/storage/azure-storage-blob/tests/recordings/test_container_async.test_delete_blobs_snapshot.yaml +++ b/sdk/storage/azure-storage-blob/tests/recordings/test_container_async.test_delete_blobs_snapshot.yaml @@ -2,333 +2,460 @@ interactions: - request: body: null headers: - User-Agent: [azsdk-python-storage-blob/12.0.0b3 Python/3.7.0 (Windows-10-10.0.18362-SP0)] - content-type: [application/xml; charset=utf-8] - x-ms-client-request-id: [e2abd01a-e47f-11e9-9862-ecb1d756380e] - x-ms-date: ['Tue, 01 Oct 2019 19:15:52 GMT'] - x-ms-version: ['2019-02-02'] + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.6.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - 160abb10-e563-11e9-82aa-1831bf6ae40e + x-ms-date: + - Wed, 02 Oct 2019 22:22:14 GMT + x-ms-version: + - '2019-02-02' method: PUT uri: https://storagename.blob.core.windows.net/containerd0941360?restype=container response: - body: {string: ''} + body: + string: '' headers: - ? !!python/object/new:multidict._istr.istr [Content-Length] + ? !!python/object/new:multidict._istr.istr + - Content-Length : '0' - ? !!python/object/new:multidict._istr.istr [Date] - : Tue, 01 Oct 2019 19:15:52 GMT - ? !!python/object/new:multidict._istr.istr [Etag] - : '"0x8D746A3C6F5DFF8"' - ? !!python/object/new:multidict._istr.istr [Last-Modified] - : Tue, 01 Oct 2019 19:15:52 GMT - ? !!python/object/new:multidict._istr.istr [Server] + ? !!python/object/new:multidict._istr.istr + - Date + : Wed, 02 Oct 2019 22:22:14 GMT + ? !!python/object/new:multidict._istr.istr + - Etag + : '"0x8D74786F9FD6495"' + ? !!python/object/new:multidict._istr.istr + - Last-Modified + : Wed, 02 Oct 2019 22:22:14 GMT + ? !!python/object/new:multidict._istr.istr + - Server : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 - x-ms-client-request-id: e2abd01a-e47f-11e9-9862-ecb1d756380e - x-ms-request-id: 65821f8d-b01e-00d4-548c-782d20000000 + x-ms-request-id: e84e4c9f-d01e-0044-586f-79f560000000 x-ms-version: '2019-02-02' - status: {code: 201, message: Created} + status: + code: 201 + message: Created url: !!python/object/new:yarl.URL state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult [https, amqptest.blob.core.windows.net, - /containerd0941360, restype=container, ''] + - !!python/object/new:urllib.parse.SplitResult + - https + - lmazueltracingtest.blob.core.windows.net + - /containerd0941360 + - restype=container + - '' - request: body: hello world headers: - Content-Length: ['11'] - Content-Type: [application/octet-stream] - If-None-Match: ['*'] - User-Agent: [azsdk-python-storage-blob/12.0.0b3 Python/3.7.0 (Windows-10-10.0.18362-SP0)] - x-ms-blob-type: [BlockBlob] - x-ms-client-request-id: [e2c38b86-e47f-11e9-b9f2-ecb1d756380e] - x-ms-date: ['Tue, 01 Oct 2019 19:15:52 GMT'] - x-ms-version: ['2019-02-02'] + Content-Length: + - '11' + Content-Type: + - application/octet-stream + If-None-Match: + - '*' + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.6.3 (Windows-10-10.0.18362-SP0) + x-ms-blob-type: + - BlockBlob + x-ms-client-request-id: + - 161b68e6-e563-11e9-923c-1831bf6ae40e + x-ms-date: + - Wed, 02 Oct 2019 22:22:14 GMT + x-ms-version: + - '2019-02-02' method: PUT uri: https://storagename.blob.core.windows.net/containerd0941360/blob1 response: - body: {string: ''} + body: + string: '' headers: - ? !!python/object/new:multidict._istr.istr [Content-Length] + ? !!python/object/new:multidict._istr.istr + - Content-Length : '0' - ? !!python/object/new:multidict._istr.istr [Content-Md5] + ? !!python/object/new:multidict._istr.istr + - Content-Md5 : XrY7u+Ae7tCTyyK7j1rNww== - ? !!python/object/new:multidict._istr.istr [Date] - : Tue, 01 Oct 2019 19:15:52 GMT - ? !!python/object/new:multidict._istr.istr [Etag] - : '"0x8D746A3C6FDEF75"' - ? !!python/object/new:multidict._istr.istr [Last-Modified] - : Tue, 01 Oct 2019 19:15:52 GMT - ? !!python/object/new:multidict._istr.istr [Server] + ? !!python/object/new:multidict._istr.istr + - Date + : Wed, 02 Oct 2019 22:22:14 GMT + ? !!python/object/new:multidict._istr.istr + - Etag + : '"0x8D74786FA03A39C"' + ? !!python/object/new:multidict._istr.istr + - Last-Modified + : Wed, 02 Oct 2019 22:22:14 GMT + ? !!python/object/new:multidict._istr.istr + - Server : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 - x-ms-client-request-id: e2c38b86-e47f-11e9-b9f2-ecb1d756380e x-ms-content-crc64: vo7q9sPVKY0= - x-ms-request-id: 65821f99-b01e-00d4-5e8c-782d20000000 + x-ms-request-id: e84e4cb5-d01e-0044-6c6f-79f560000000 x-ms-request-server-encrypted: 'true' x-ms-version: '2019-02-02' - status: {code: 201, message: Created} + status: + code: 201 + message: Created url: !!python/object/new:yarl.URL state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult [https, amqptest.blob.core.windows.net, - /containerd0941360/blob1, '', ''] + - !!python/object/new:urllib.parse.SplitResult + - https + - lmazueltracingtest.blob.core.windows.net + - /containerd0941360/blob1 + - '' + - '' - request: body: null headers: - User-Agent: [azsdk-python-storage-blob/12.0.0b3 Python/3.7.0 (Windows-10-10.0.18362-SP0)] - content-type: [application/xml; charset=utf-8] - x-ms-client-request-id: [e2ca0e9e-e47f-11e9-8b17-ecb1d756380e] - x-ms-date: ['Tue, 01 Oct 2019 19:15:52 GMT'] - x-ms-version: ['2019-02-02'] + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.6.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - 16207d7a-e563-11e9-9d8f-1831bf6ae40e + x-ms-date: + - Wed, 02 Oct 2019 22:22:14 GMT + x-ms-version: + - '2019-02-02' method: PUT uri: https://storagename.blob.core.windows.net/containerd0941360/blob1?comp=snapshot response: - body: {string: ''} + body: + string: '' headers: - ? !!python/object/new:multidict._istr.istr [Content-Length] + ? !!python/object/new:multidict._istr.istr + - Content-Length : '0' - ? !!python/object/new:multidict._istr.istr [Date] - : Tue, 01 Oct 2019 19:15:52 GMT - ? !!python/object/new:multidict._istr.istr [Etag] - : '"0x8D746A3C6FDEF75"' - ? !!python/object/new:multidict._istr.istr [Last-Modified] - : Tue, 01 Oct 2019 19:15:52 GMT - ? !!python/object/new:multidict._istr.istr [Server] + ? !!python/object/new:multidict._istr.istr + - Date + : Wed, 02 Oct 2019 22:22:14 GMT + ? !!python/object/new:multidict._istr.istr + - Etag + : '"0x8D74786FA03A39C"' + ? !!python/object/new:multidict._istr.istr + - Last-Modified + : Wed, 02 Oct 2019 22:22:14 GMT + ? !!python/object/new:multidict._istr.istr + - Server : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 - x-ms-client-request-id: e2ca0e9e-e47f-11e9-8b17-ecb1d756380e - x-ms-request-id: 65821fa7-b01e-00d4-6c8c-782d20000000 + x-ms-request-id: e84e4cc5-d01e-0044-7a6f-79f560000000 x-ms-request-server-encrypted: 'false' - x-ms-snapshot: '2019-10-01T19:15:52.8769067Z' + x-ms-snapshot: '2019-10-02T22:22:14.2226805Z' x-ms-version: '2019-02-02' - status: {code: 201, message: Created} + status: + code: 201 + message: Created url: !!python/object/new:yarl.URL state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult [https, amqptest.blob.core.windows.net, - /containerd0941360/blob1, comp=snapshot, ''] + - !!python/object/new:urllib.parse.SplitResult + - https + - lmazueltracingtest.blob.core.windows.net + - /containerd0941360/blob1 + - comp=snapshot + - '' - request: body: hello world headers: - Content-Length: ['11'] - Content-Type: [application/octet-stream] - If-None-Match: ['*'] - User-Agent: [azsdk-python-storage-blob/12.0.0b3 Python/3.7.0 (Windows-10-10.0.18362-SP0)] - x-ms-blob-type: [BlockBlob] - x-ms-client-request-id: [e2d14de4-e47f-11e9-8bb8-ecb1d756380e] - x-ms-date: ['Tue, 01 Oct 2019 19:15:52 GMT'] - x-ms-version: ['2019-02-02'] + Content-Length: + - '11' + Content-Type: + - application/octet-stream + If-None-Match: + - '*' + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.6.3 (Windows-10-10.0.18362-SP0) + x-ms-blob-type: + - BlockBlob + x-ms-client-request-id: + - 162607b8-e563-11e9-955e-1831bf6ae40e + x-ms-date: + - Wed, 02 Oct 2019 22:22:14 GMT + x-ms-version: + - '2019-02-02' method: PUT uri: https://storagename.blob.core.windows.net/containerd0941360/blob2 response: - body: {string: ''} + body: + string: '' headers: - ? !!python/object/new:multidict._istr.istr [Content-Length] + ? !!python/object/new:multidict._istr.istr + - Content-Length : '0' - ? !!python/object/new:multidict._istr.istr [Content-Md5] + ? !!python/object/new:multidict._istr.istr + - Content-Md5 : XrY7u+Ae7tCTyyK7j1rNww== - ? !!python/object/new:multidict._istr.istr [Date] - : Tue, 01 Oct 2019 19:15:52 GMT - ? !!python/object/new:multidict._istr.istr [Etag] - : '"0x8D746A3C70B8675"' - ? !!python/object/new:multidict._istr.istr [Last-Modified] - : Tue, 01 Oct 2019 19:15:52 GMT - ? !!python/object/new:multidict._istr.istr [Server] + ? !!python/object/new:multidict._istr.istr + - Date + : Wed, 02 Oct 2019 22:22:14 GMT + ? !!python/object/new:multidict._istr.istr + - Etag + : '"0x8D74786FA0E0404"' + ? !!python/object/new:multidict._istr.istr + - Last-Modified + : Wed, 02 Oct 2019 22:22:14 GMT + ? !!python/object/new:multidict._istr.istr + - Server : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 - x-ms-client-request-id: e2d14de4-e47f-11e9-8bb8-ecb1d756380e x-ms-content-crc64: vo7q9sPVKY0= - x-ms-request-id: 65821fb5-b01e-00d4-7a8c-782d20000000 + x-ms-request-id: e84e4cd8-d01e-0044-0c6f-79f560000000 x-ms-request-server-encrypted: 'true' x-ms-version: '2019-02-02' - status: {code: 201, message: Created} + status: + code: 201 + message: Created url: !!python/object/new:yarl.URL state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult [https, amqptest.blob.core.windows.net, - /containerd0941360/blob2, '', ''] + - !!python/object/new:urllib.parse.SplitResult + - https + - lmazueltracingtest.blob.core.windows.net + - /containerd0941360/blob2 + - '' + - '' - request: body: hello world headers: - Content-Length: ['11'] - Content-Type: [application/octet-stream] - If-None-Match: ['*'] - User-Agent: [azsdk-python-storage-blob/12.0.0b3 Python/3.7.0 (Windows-10-10.0.18362-SP0)] - x-ms-blob-type: [BlockBlob] - x-ms-client-request-id: [e2d8a0a4-e47f-11e9-9788-ecb1d756380e] - x-ms-date: ['Tue, 01 Oct 2019 19:15:52 GMT'] - x-ms-version: ['2019-02-02'] + Content-Length: + - '11' + Content-Type: + - application/octet-stream + If-None-Match: + - '*' + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.6.3 (Windows-10-10.0.18362-SP0) + x-ms-blob-type: + - BlockBlob + x-ms-client-request-id: + - 162bdf5e-e563-11e9-a647-1831bf6ae40e + x-ms-date: + - Wed, 02 Oct 2019 22:22:14 GMT + x-ms-version: + - '2019-02-02' method: PUT uri: https://storagename.blob.core.windows.net/containerd0941360/blob3 response: - body: {string: ''} + body: + string: '' headers: - ? !!python/object/new:multidict._istr.istr [Content-Length] + ? !!python/object/new:multidict._istr.istr + - Content-Length : '0' - ? !!python/object/new:multidict._istr.istr [Content-Md5] + ? !!python/object/new:multidict._istr.istr + - Content-Md5 : XrY7u+Ae7tCTyyK7j1rNww== - ? !!python/object/new:multidict._istr.istr [Date] - : Tue, 01 Oct 2019 19:15:52 GMT - ? !!python/object/new:multidict._istr.istr [Etag] - : '"0x8D746A3C712DACC"' - ? !!python/object/new:multidict._istr.istr [Last-Modified] - : Tue, 01 Oct 2019 19:15:52 GMT - ? !!python/object/new:multidict._istr.istr [Server] + ? !!python/object/new:multidict._istr.istr + - Date + : Wed, 02 Oct 2019 22:22:14 GMT + ? !!python/object/new:multidict._istr.istr + - Etag + : '"0x8D74786FA13D093"' + ? !!python/object/new:multidict._istr.istr + - Last-Modified + : Wed, 02 Oct 2019 22:22:14 GMT + ? !!python/object/new:multidict._istr.istr + - Server : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 - x-ms-client-request-id: e2d8a0a4-e47f-11e9-9788-ecb1d756380e x-ms-content-crc64: vo7q9sPVKY0= - x-ms-request-id: 65821fc5-b01e-00d4-0a8c-782d20000000 + x-ms-request-id: e84e4ce9-d01e-0044-1b6f-79f560000000 x-ms-request-server-encrypted: 'true' x-ms-version: '2019-02-02' - status: {code: 201, message: Created} + status: + code: 201 + message: Created url: !!python/object/new:yarl.URL state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult [https, amqptest.blob.core.windows.net, - /containerd0941360/blob3, '', ''] + - !!python/object/new:urllib.parse.SplitResult + - https + - lmazueltracingtest.blob.core.windows.net + - /containerd0941360/blob3 + - '' + - '' - request: body: null headers: - Accept: [application/xml] - User-Agent: [azsdk-python-storage-blob/12.0.0b3 Python/3.7.0 (Windows-10-10.0.18362-SP0)] - content-type: [application/xml; charset=utf-8] - x-ms-client-request-id: [e2de6d0c-e47f-11e9-b86e-ecb1d756380e] - x-ms-date: ['Tue, 01 Oct 2019 19:15:52 GMT'] - x-ms-version: ['2019-02-02'] + Accept: + - application/xml + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.6.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - 1630c040-e563-11e9-a828-1831bf6ae40e + x-ms-date: + - Wed, 02 Oct 2019 22:22:14 GMT + x-ms-version: + - '2019-02-02' method: GET uri: https://storagename.blob.core.windows.net/containerd0941360?include=snapshots&restype=container&comp=list response: - body: {string: "\uFEFFblob12019-10-01T19:15:52.8769067ZTue, - 01 Oct 2019 19:15:52 GMTTue, 01 Oct 2019 19:15:52 - GMT0x8D746A3C6FDEF7511application/octet-streamblob12019-10-02T22:22:14.2226805ZWed, + 02 Oct 2019 22:22:14 GMTWed, 02 Oct 2019 22:22:14 + GMT0x8D74786FA03A39C11application/octet-streamXrY7u+Ae7tCTyyK7j1rNww==BlockBlobHottruetrueblob1Tue, - 01 Oct 2019 19:15:52 GMTTue, 01 Oct 2019 19:15:52 - GMT0x8D746A3C6FDEF7511application/octet-streamBlockBlobHottruetrueblob1Wed, + 02 Oct 2019 22:22:14 GMTWed, 02 Oct 2019 22:22:14 + GMT0x8D74786FA03A39C11application/octet-streamXrY7u+Ae7tCTyyK7j1rNww==BlockBlobHottrueunlockedavailabletrueblob2Tue, - 01 Oct 2019 19:15:52 GMTTue, 01 Oct 2019 19:15:52 - GMT0x8D746A3C70B867511application/octet-streamBlockBlobHottrueunlockedavailabletrueblob2Wed, + 02 Oct 2019 22:22:14 GMTWed, 02 Oct 2019 22:22:14 + GMT0x8D74786FA0E040411application/octet-streamXrY7u+Ae7tCTyyK7j1rNww==BlockBlobHottrueunlockedavailabletrueblob3Tue, - 01 Oct 2019 19:15:52 GMTTue, 01 Oct 2019 19:15:52 - GMT0x8D746A3C712DACC11application/octet-streamBlockBlobHottrueunlockedavailabletrueblob3Wed, + 02 Oct 2019 22:22:14 GMTWed, 02 Oct 2019 22:22:14 + GMT0x8D74786FA13D09311application/octet-streamXrY7u+Ae7tCTyyK7j1rNww==BlockBlobHottrueunlockedavailabletrue"} + />" headers: - ? !!python/object/new:multidict._istr.istr [Content-Type] + ? !!python/object/new:multidict._istr.istr + - Content-Type : application/xml - ? !!python/object/new:multidict._istr.istr [Date] - : Tue, 01 Oct 2019 19:15:52 GMT - ? !!python/object/new:multidict._istr.istr [Server] + ? !!python/object/new:multidict._istr.istr + - Date + : Wed, 02 Oct 2019 22:22:14 GMT + ? !!python/object/new:multidict._istr.istr + - Server : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 - ? !!python/object/new:multidict._istr.istr [Transfer-Encoding] + ? !!python/object/new:multidict._istr.istr + - Transfer-Encoding : chunked - ? !!python/object/new:multidict._istr.istr [Vary] - : Origin - x-ms-client-request-id: e2de6d0c-e47f-11e9-b86e-ecb1d756380e - x-ms-request-id: 65821fce-b01e-00d4-138c-782d20000000 + x-ms-request-id: e84e4cf7-d01e-0044-296f-79f560000000 x-ms-version: '2019-02-02' - status: {code: 200, message: OK} + status: + code: 200 + message: OK url: !!python/object/new:yarl.URL state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult [https, amqptest.blob.core.windows.net, - /containerd0941360, include=snapshots&restype=container&comp=list, ''] + - !!python/object/new:urllib.parse.SplitResult + - https + - lmazueltracingtest.blob.core.windows.net + - /containerd0941360 + - include=snapshots&restype=container&comp=list + - '' - request: - body: "--===============5205559421113998234==\r\nContent-Type: application/http\r\nContent-Transfer-Encoding: + body: "--===============6358121913393635088==\r\nContent-Type: application/http\r\nContent-Transfer-Encoding: binary\r\nContent-ID: 0\r\n\r\nDELETE /containerd0941360/blob1? HTTP/1.1\r\nx-ms-delete-snapshots: - only\r\nx-ms-date: Tue, 01 Oct 2019 19:15:53 GMT\r\nx-ms-client-request-id: - e2e8fd1a-e47f-11e9-bfdf-ecb1d756380e\r\ncontent-type: application/xml; charset=utf-8\r\nAuthorization: - SharedKey storagename:S+8BgLJf52HwiMkHh2qnWXH9b77FOivsZtl0XlnjHsM=\r\n\r\n\r\n--===============5205559421113998234==\r\nContent-Type: + only\r\nx-ms-date: Wed, 02 Oct 2019 22:22:14 GMT\r\nx-ms-client-request-id: + 1637451e-e563-11e9-a84b-1831bf6ae40e\r\nAuthorization: SharedKey storagename:YIhlC/WC9tsvPhAq0fhc+K1/wv3VPQ67Nw+CzwoSetA=\r\n\r\n\r\n--===============6358121913393635088==\r\nContent-Type: application/http\r\nContent-Transfer-Encoding: binary\r\nContent-ID: 1\r\n\r\nDELETE /containerd0941360/blob2? HTTP/1.1\r\nx-ms-delete-snapshots: only\r\nx-ms-date: - Tue, 01 Oct 2019 19:15:53 GMT\r\nx-ms-client-request-id: e2e92570-e47f-11e9-a5bb-ecb1d756380e\r\ncontent-type: - application/xml; charset=utf-8\r\nAuthorization: SharedKey storagename:t0TjuoPt1st1H15u4jQGhqTfy64dEnKPWAMK3zSZro8=\r\n\r\n\r\n--===============5205559421113998234==\r\nContent-Type: + Wed, 02 Oct 2019 22:22:14 GMT\r\nx-ms-client-request-id: 16374520-e563-11e9-bbaa-1831bf6ae40e\r\nAuthorization: + SharedKey storagename:KZBl4EKoc1sdiqq6Y0zQx+yB7ZD67agQK6BXIY1UYYA=\r\n\r\n\r\n--===============6358121913393635088==\r\nContent-Type: application/http\r\nContent-Transfer-Encoding: binary\r\nContent-ID: 2\r\n\r\nDELETE /containerd0941360/blob3? HTTP/1.1\r\nx-ms-delete-snapshots: only\r\nx-ms-date: - Tue, 01 Oct 2019 19:15:53 GMT\r\nx-ms-client-request-id: e2e94b70-e47f-11e9-8a5f-ecb1d756380e\r\ncontent-type: - application/xml; charset=utf-8\r\nAuthorization: SharedKey storagename:XqIZ5POvKJzcBcIFeOX5LWkRsPamE83mlSNjTqZi2ZU=\r\n\r\n\r\n--===============5205559421113998234==--\r\n" + Wed, 02 Oct 2019 22:22:14 GMT\r\nx-ms-client-request-id: 1637451f-e563-11e9-90a1-1831bf6ae40e\r\nAuthorization: + SharedKey storagename:i7S08LRj6CVLcB1jE123l6KOTKqsSclm53//ikVgTiw=\r\n\r\n\r\n--===============6358121913393635088==--\r\n" headers: - Content-Length: ['1332'] - Content-Type: [multipart/mixed; boundary================5205559421113998234==] - User-Agent: [azsdk-python-storage-blob/12.0.0b3 Python/3.7.0 (Windows-10-10.0.18362-SP0)] - x-ms-client-request-id: [e2e9c1b8-e47f-11e9-a744-ecb1d756380e] - x-ms-date: ['Tue, 01 Oct 2019 19:15:53 GMT'] - x-ms-version: ['2019-02-02'] + Content-Length: + - '1224' + Content-Type: + - multipart/mixed; boundary================6358121913393635088== + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.6.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - 16379390-e563-11e9-b183-1831bf6ae40e + x-ms-date: + - Wed, 02 Oct 2019 22:22:14 GMT + x-ms-version: + - '2019-02-02' method: POST uri: https://storagename.blob.core.windows.net/?comp=batch response: - body: {string: "--batchresponse_8f16aadd-db74-4ca1-b6ae-089abbeebf63\r\nContent-Type: + body: + string: "--batchresponse_bde4fb82-2c91-44e5-8ce9-4578c1f5a0b7\r\nContent-Type: application/http\r\nContent-ID: 0\r\n\r\nHTTP/1.1 202 Accepted\r\nx-ms-delete-type-permanent: - true\r\nx-ms-request-id: 65821fe6-b01e-00d4-298c-782d201e469e\r\nx-ms-version: - 2019-02-02\r\nx-ms-client-request-id: e2e8fd1a-e47f-11e9-bfdf-ecb1d756380e\r\nServer: - Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_8f16aadd-db74-4ca1-b6ae-089abbeebf63\r\nContent-Type: + true\r\nx-ms-request-id: e84e4d0e-d01e-0044-3c6f-79f5601eb3bd\r\nx-ms-version: + 2019-02-02\r\nx-ms-client-request-id: 1637451e-e563-11e9-a84b-1831bf6ae40e\r\nServer: + Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_bde4fb82-2c91-44e5-8ce9-4578c1f5a0b7\r\nContent-Type: application/http\r\nContent-ID: 1\r\n\r\nHTTP/1.1 404 The specified blob does - not exist.\r\nx-ms-error-code: BlobNotFound\r\nx-ms-request-id: 65821fe6-b01e-00d4-298c-782d201e46a1\r\nx-ms-version: - 2019-02-02\r\nx-ms-client-request-id: e2e92570-e47f-11e9-a5bb-ecb1d756380e\r\nContent-Length: + not exist.\r\nx-ms-error-code: BlobNotFound\r\nx-ms-request-id: e84e4d0e-d01e-0044-3c6f-79f5601eb3bf\r\nx-ms-version: + 2019-02-02\r\nx-ms-client-request-id: 16374520-e563-11e9-bbaa-1831bf6ae40e\r\nContent-Length: 216\r\nContent-Type: application/xml\r\nServer: Windows-Azure-Blob/1.0\r\n\r\n\uFEFF\nBlobNotFoundThe - specified blob does not exist.\nRequestId:65821fe6-b01e-00d4-298c-782d201e46a1\nTime:2019-10-01T19:15:53.4124958Z\r\n--batchresponse_8f16aadd-db74-4ca1-b6ae-089abbeebf63\r\nContent-Type: + specified blob does not exist.\nRequestId:e84e4d0e-d01e-0044-3c6f-79f5601eb3bf\nTime:2019-10-02T22:22:14.3789067Z\r\n--batchresponse_bde4fb82-2c91-44e5-8ce9-4578c1f5a0b7\r\nContent-Type: application/http\r\nContent-ID: 2\r\n\r\nHTTP/1.1 404 The specified blob does - not exist.\r\nx-ms-error-code: BlobNotFound\r\nx-ms-request-id: 65821fe6-b01e-00d4-298c-782d201e46a2\r\nx-ms-version: - 2019-02-02\r\nx-ms-client-request-id: e2e94b70-e47f-11e9-8a5f-ecb1d756380e\r\nContent-Length: + not exist.\r\nx-ms-error-code: BlobNotFound\r\nx-ms-request-id: e84e4d0e-d01e-0044-3c6f-79f5601eb3c0\r\nx-ms-version: + 2019-02-02\r\nx-ms-client-request-id: 1637451f-e563-11e9-90a1-1831bf6ae40e\r\nContent-Length: 216\r\nContent-Type: application/xml\r\nServer: Windows-Azure-Blob/1.0\r\n\r\n\uFEFF\nBlobNotFoundThe - specified blob does not exist.\nRequestId:65821fe6-b01e-00d4-298c-782d201e46a2\nTime:2019-10-01T19:15:53.4124958Z\r\n--batchresponse_8f16aadd-db74-4ca1-b6ae-089abbeebf63--"} + specified blob does not exist.\nRequestId:e84e4d0e-d01e-0044-3c6f-79f5601eb3c0\nTime:2019-10-02T22:22:14.3789067Z\r\n--batchresponse_bde4fb82-2c91-44e5-8ce9-4578c1f5a0b7--" headers: - ? !!python/object/new:multidict._istr.istr [Content-Type] - : multipart/mixed; boundary=batchresponse_8f16aadd-db74-4ca1-b6ae-089abbeebf63 - ? !!python/object/new:multidict._istr.istr [Date] - : Tue, 01 Oct 2019 19:15:53 GMT - ? !!python/object/new:multidict._istr.istr [Server] + ? !!python/object/new:multidict._istr.istr + - Content-Type + : multipart/mixed; boundary=batchresponse_bde4fb82-2c91-44e5-8ce9-4578c1f5a0b7 + ? !!python/object/new:multidict._istr.istr + - Date + : Wed, 02 Oct 2019 22:22:14 GMT + ? !!python/object/new:multidict._istr.istr + - Server : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 - ? !!python/object/new:multidict._istr.istr [Transfer-Encoding] + ? !!python/object/new:multidict._istr.istr + - Transfer-Encoding : chunked - x-ms-client-request-id: e2e9c1b8-e47f-11e9-a744-ecb1d756380e - x-ms-request-id: 65821fe6-b01e-00d4-298c-782d20000000 + x-ms-request-id: e84e4d0e-d01e-0044-3c6f-79f560000000 x-ms-version: '2019-02-02' - status: {code: 202, message: Accepted} + status: + code: 202 + message: Accepted url: !!python/object/new:yarl.URL state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult [https, amqptest.blob.core.windows.net, - /, comp=batch, ''] + - !!python/object/new:urllib.parse.SplitResult + - https + - lmazueltracingtest.blob.core.windows.net + - / + - comp=batch + - '' - request: body: null headers: - Accept: [application/xml] - User-Agent: [azsdk-python-storage-blob/12.0.0b3 Python/3.7.0 (Windows-10-10.0.18362-SP0)] - content-type: [application/xml; charset=utf-8] - x-ms-client-request-id: [e33739cc-e47f-11e9-a6df-ecb1d756380e] - x-ms-date: ['Tue, 01 Oct 2019 19:15:53 GMT'] - x-ms-version: ['2019-02-02'] + Accept: + - application/xml + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.6.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - 163cb92e-e563-11e9-9b8d-1831bf6ae40e + x-ms-date: + - Wed, 02 Oct 2019 22:22:14 GMT + x-ms-version: + - '2019-02-02' method: GET uri: https://storagename.blob.core.windows.net/containerd0941360?include=snapshots&restype=container&comp=list response: - body: {string: "\uFEFFblob1Tue, - 01 Oct 2019 19:15:52 GMTTue, 01 Oct 2019 19:15:52 - GMT0x8D746A3C6FDEF7511application/octet-streamblob1Wed, + 02 Oct 2019 22:22:14 GMTWed, 02 Oct 2019 22:22:14 + GMT0x8D74786FA03A39C11application/octet-streamXrY7u+Ae7tCTyyK7j1rNww==BlockBlobHottrueunlockedavailabletrueblob2Tue, - 01 Oct 2019 19:15:52 GMTTue, 01 Oct 2019 19:15:52 - GMT0x8D746A3C70B867511application/octet-streamBlockBlobHottrueunlockedavailabletrueblob2Wed, + 02 Oct 2019 22:22:14 GMTWed, 02 Oct 2019 22:22:14 + GMT0x8D74786FA0E040411application/octet-streamXrY7u+Ae7tCTyyK7j1rNww==BlockBlobHottrueunlockedavailabletrueblob3Tue, - 01 Oct 2019 19:15:52 GMTTue, 01 Oct 2019 19:15:52 - GMT0x8D746A3C712DACC11application/octet-streamBlockBlobHottrueunlockedavailabletrueblob3Wed, + 02 Oct 2019 22:22:14 GMTWed, 02 Oct 2019 22:22:14 + GMT0x8D74786FA13D09311application/octet-streamXrY7u+Ae7tCTyyK7j1rNww==BlockBlobHottrueunlockedavailabletrue"} + />" headers: - ? !!python/object/new:multidict._istr.istr [Content-Type] + ? !!python/object/new:multidict._istr.istr + - Content-Type : application/xml - ? !!python/object/new:multidict._istr.istr [Date] - : Tue, 01 Oct 2019 19:15:53 GMT - ? !!python/object/new:multidict._istr.istr [Server] + ? !!python/object/new:multidict._istr.istr + - Date + : Wed, 02 Oct 2019 22:22:14 GMT + ? !!python/object/new:multidict._istr.istr + - Server : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 - ? !!python/object/new:multidict._istr.istr [Transfer-Encoding] + ? !!python/object/new:multidict._istr.istr + - Transfer-Encoding : chunked - ? !!python/object/new:multidict._istr.istr [Vary] - : Origin - x-ms-client-request-id: e33739cc-e47f-11e9-a6df-ecb1d756380e - x-ms-request-id: 6582208a-b01e-00d4-3e8c-782d20000000 + x-ms-request-id: e84e4d22-d01e-0044-4f6f-79f560000000 x-ms-version: '2019-02-02' - status: {code: 200, message: OK} + status: + code: 200 + message: OK url: !!python/object/new:yarl.URL state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult [https, amqptest.blob.core.windows.net, - /containerd0941360, include=snapshots&restype=container&comp=list, ''] + - !!python/object/new:urllib.parse.SplitResult + - https + - lmazueltracingtest.blob.core.windows.net + - /containerd0941360 + - include=snapshots&restype=container&comp=list + - '' version: 1 diff --git a/sdk/storage/azure-storage-blob/tests/recordings/test_container_async.test_standard_blob_tier_set_tier_api_batch.yaml b/sdk/storage/azure-storage-blob/tests/recordings/test_container_async.test_standard_blob_tier_set_tier_api_batch.yaml index d9ed41cf07a5..8b39c6c84ee8 100644 --- a/sdk/storage/azure-storage-blob/tests/recordings/test_container_async.test_standard_blob_tier_set_tier_api_batch.yaml +++ b/sdk/storage/azure-storage-blob/tests/recordings/test_container_async.test_standard_blob_tier_set_tier_api_batch.yaml @@ -2,966 +2,1333 @@ interactions: - request: body: null headers: - User-Agent: [azsdk-python-storage-blob/12.0.0b3 Python/3.7.0 (Windows-10-10.0.18362-SP0)] - content-type: [application/xml; charset=utf-8] - x-ms-client-request-id: [971d2770-e4a0-11e9-b0e5-ecb1d756380e] - x-ms-date: ['Tue, 01 Oct 2019 23:09:59 GMT'] - x-ms-version: ['2019-02-02'] + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.6.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - 41a80992-e563-11e9-bb1a-1831bf6ae40e + x-ms-date: + - Wed, 02 Oct 2019 22:23:27 GMT + x-ms-version: + - '2019-02-02' method: PUT uri: https://storagename.blob.core.windows.net/container3d7c19c7?restype=container response: - body: {string: ''} + body: + string: '' headers: - ? !!python/object/new:multidict._istr.istr [Content-Length] + ? !!python/object/new:multidict._istr.istr + - Content-Length : '0' - ? !!python/object/new:multidict._istr.istr [Date] - : Tue, 01 Oct 2019 23:09:58 GMT - ? !!python/object/new:multidict._istr.istr [Etag] - : '"0x8D746C47B67CBA2"' - ? !!python/object/new:multidict._istr.istr [Last-Modified] - : Tue, 01 Oct 2019 23:09:59 GMT - ? !!python/object/new:multidict._istr.istr [Server] + ? !!python/object/new:multidict._istr.istr + - Date + : Wed, 02 Oct 2019 22:23:27 GMT + ? !!python/object/new:multidict._istr.istr + - Etag + : '"0x8D74787259C11DB"' + ? !!python/object/new:multidict._istr.istr + - Last-Modified + : Wed, 02 Oct 2019 22:23:27 GMT + ? !!python/object/new:multidict._istr.istr + - Server : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 - x-ms-client-request-id: 971d2770-e4a0-11e9-b0e5-ecb1d756380e - x-ms-request-id: cdb9c17f-901e-0062-12ad-7823d8000000 + x-ms-request-id: c35c14d2-501e-0028-1e70-791ef7000000 x-ms-version: '2019-02-02' - status: {code: 201, message: Created} + status: + code: 201 + message: Created url: !!python/object/new:yarl.URL state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult [https, amqptest.blob.core.windows.net, - /container3d7c19c7, restype=container, ''] + - !!python/object/new:urllib.parse.SplitResult + - https + - lmazueltracingtest.blob.core.windows.net + - /container3d7c19c7 + - restype=container + - '' - request: body: hello world headers: - Content-Length: ['11'] - Content-Type: [application/octet-stream] - If-None-Match: ['*'] - User-Agent: [azsdk-python-storage-blob/12.0.0b3 Python/3.7.0 (Windows-10-10.0.18362-SP0)] - x-ms-blob-type: [BlockBlob] - x-ms-client-request-id: [9734320c-e4a0-11e9-901f-ecb1d756380e] - x-ms-date: ['Tue, 01 Oct 2019 23:09:59 GMT'] - x-ms-version: ['2019-02-02'] + Content-Length: + - '11' + Content-Type: + - application/octet-stream + If-None-Match: + - '*' + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.6.3 (Windows-10-10.0.18362-SP0) + x-ms-blob-type: + - BlockBlob + x-ms-client-request-id: + - 41ba5946-e563-11e9-bb75-1831bf6ae40e + x-ms-date: + - Wed, 02 Oct 2019 22:23:27 GMT + x-ms-version: + - '2019-02-02' method: PUT uri: https://storagename.blob.core.windows.net/container3d7c19c7/blob1 response: - body: {string: ''} + body: + string: '' headers: - ? !!python/object/new:multidict._istr.istr [Content-Length] + ? !!python/object/new:multidict._istr.istr + - Content-Length : '0' - ? !!python/object/new:multidict._istr.istr [Content-Md5] + ? !!python/object/new:multidict._istr.istr + - Content-Md5 : XrY7u+Ae7tCTyyK7j1rNww== - ? !!python/object/new:multidict._istr.istr [Date] - : Tue, 01 Oct 2019 23:09:58 GMT - ? !!python/object/new:multidict._istr.istr [Etag] - : '"0x8D746C47B6F1209"' - ? !!python/object/new:multidict._istr.istr [Last-Modified] - : Tue, 01 Oct 2019 23:09:59 GMT - ? !!python/object/new:multidict._istr.istr [Server] + ? !!python/object/new:multidict._istr.istr + - Date + : Wed, 02 Oct 2019 22:23:27 GMT + ? !!python/object/new:multidict._istr.istr + - Etag + : '"0x8D7478725A2426B"' + ? !!python/object/new:multidict._istr.istr + - Last-Modified + : Wed, 02 Oct 2019 22:23:27 GMT + ? !!python/object/new:multidict._istr.istr + - Server : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 - x-ms-client-request-id: 9734320c-e4a0-11e9-901f-ecb1d756380e x-ms-content-crc64: vo7q9sPVKY0= - x-ms-request-id: cdb9c193-901e-0062-23ad-7823d8000000 + x-ms-request-id: c35c1504-501e-0028-4c70-791ef7000000 x-ms-request-server-encrypted: 'true' x-ms-version: '2019-02-02' - status: {code: 201, message: Created} + status: + code: 201 + message: Created url: !!python/object/new:yarl.URL state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult [https, amqptest.blob.core.windows.net, - /container3d7c19c7/blob1, '', ''] + - !!python/object/new:urllib.parse.SplitResult + - https + - lmazueltracingtest.blob.core.windows.net + - /container3d7c19c7/blob1 + - '' + - '' - request: body: hello world headers: - Content-Length: ['11'] - Content-Type: [application/octet-stream] - If-None-Match: ['*'] - User-Agent: [azsdk-python-storage-blob/12.0.0b3 Python/3.7.0 (Windows-10-10.0.18362-SP0)] - x-ms-blob-type: [BlockBlob] - x-ms-client-request-id: [973b3786-e4a0-11e9-8645-ecb1d756380e] - x-ms-date: ['Tue, 01 Oct 2019 23:09:59 GMT'] - x-ms-version: ['2019-02-02'] + Content-Length: + - '11' + Content-Type: + - application/octet-stream + If-None-Match: + - '*' + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.6.3 (Windows-10-10.0.18362-SP0) + x-ms-blob-type: + - BlockBlob + x-ms-client-request-id: + - 41c06138-e563-11e9-b61f-1831bf6ae40e + x-ms-date: + - Wed, 02 Oct 2019 22:23:27 GMT + x-ms-version: + - '2019-02-02' method: PUT uri: https://storagename.blob.core.windows.net/container3d7c19c7/blob2 response: - body: {string: ''} + body: + string: '' headers: - ? !!python/object/new:multidict._istr.istr [Content-Length] + ? !!python/object/new:multidict._istr.istr + - Content-Length : '0' - ? !!python/object/new:multidict._istr.istr [Content-Md5] + ? !!python/object/new:multidict._istr.istr + - Content-Md5 : XrY7u+Ae7tCTyyK7j1rNww== - ? !!python/object/new:multidict._istr.istr [Date] - : Tue, 01 Oct 2019 23:09:58 GMT - ? !!python/object/new:multidict._istr.istr [Etag] - : '"0x8D746C47B761830"' - ? !!python/object/new:multidict._istr.istr [Last-Modified] - : Tue, 01 Oct 2019 23:09:59 GMT - ? !!python/object/new:multidict._istr.istr [Server] + ? !!python/object/new:multidict._istr.istr + - Date + : Wed, 02 Oct 2019 22:23:27 GMT + ? !!python/object/new:multidict._istr.istr + - Etag + : '"0x8D7478725A85D1B"' + ? !!python/object/new:multidict._istr.istr + - Last-Modified + : Wed, 02 Oct 2019 22:23:27 GMT + ? !!python/object/new:multidict._istr.istr + - Server : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 - x-ms-client-request-id: 973b3786-e4a0-11e9-8645-ecb1d756380e x-ms-content-crc64: vo7q9sPVKY0= - x-ms-request-id: cdb9c1b1-901e-0062-41ad-7823d8000000 + x-ms-request-id: c35c1530-501e-0028-7770-791ef7000000 x-ms-request-server-encrypted: 'true' x-ms-version: '2019-02-02' - status: {code: 201, message: Created} + status: + code: 201 + message: Created url: !!python/object/new:yarl.URL state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult [https, amqptest.blob.core.windows.net, - /container3d7c19c7/blob2, '', ''] + - !!python/object/new:urllib.parse.SplitResult + - https + - lmazueltracingtest.blob.core.windows.net + - /container3d7c19c7/blob2 + - '' + - '' - request: body: hello world headers: - Content-Length: ['11'] - Content-Type: [application/octet-stream] - If-None-Match: ['*'] - User-Agent: [azsdk-python-storage-blob/12.0.0b3 Python/3.7.0 (Windows-10-10.0.18362-SP0)] - x-ms-blob-type: [BlockBlob] - x-ms-client-request-id: [974486ec-e4a0-11e9-8aee-ecb1d756380e] - x-ms-date: ['Tue, 01 Oct 2019 23:09:59 GMT'] - x-ms-version: ['2019-02-02'] + Content-Length: + - '11' + Content-Type: + - application/octet-stream + If-None-Match: + - '*' + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.6.3 (Windows-10-10.0.18362-SP0) + x-ms-blob-type: + - BlockBlob + x-ms-client-request-id: + - 41c632f8-e563-11e9-bf9b-1831bf6ae40e + x-ms-date: + - Wed, 02 Oct 2019 22:23:27 GMT + x-ms-version: + - '2019-02-02' method: PUT uri: https://storagename.blob.core.windows.net/container3d7c19c7/blob3 response: - body: {string: ''} + body: + string: '' headers: - ? !!python/object/new:multidict._istr.istr [Content-Length] + ? !!python/object/new:multidict._istr.istr + - Content-Length : '0' - ? !!python/object/new:multidict._istr.istr [Content-Md5] + ? !!python/object/new:multidict._istr.istr + - Content-Md5 : XrY7u+Ae7tCTyyK7j1rNww== - ? !!python/object/new:multidict._istr.istr [Date] - : Tue, 01 Oct 2019 23:09:58 GMT - ? !!python/object/new:multidict._istr.istr [Etag] - : '"0x8D746C47B7F68B3"' - ? !!python/object/new:multidict._istr.istr [Last-Modified] - : Tue, 01 Oct 2019 23:09:59 GMT - ? !!python/object/new:multidict._istr.istr [Server] + ? !!python/object/new:multidict._istr.istr + - Date + : Wed, 02 Oct 2019 22:23:27 GMT + ? !!python/object/new:multidict._istr.istr + - Etag + : '"0x8D7478725AD8D5A"' + ? !!python/object/new:multidict._istr.istr + - Last-Modified + : Wed, 02 Oct 2019 22:23:27 GMT + ? !!python/object/new:multidict._istr.istr + - Server : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 - x-ms-client-request-id: 974486ec-e4a0-11e9-8aee-ecb1d756380e x-ms-content-crc64: vo7q9sPVKY0= - x-ms-request-id: cdb9c1cf-901e-0062-5dad-7823d8000000 + x-ms-request-id: c35c154b-501e-0028-1270-791ef7000000 x-ms-request-server-encrypted: 'true' x-ms-version: '2019-02-02' - status: {code: 201, message: Created} + status: + code: 201 + message: Created url: !!python/object/new:yarl.URL state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult [https, amqptest.blob.core.windows.net, - /container3d7c19c7/blob3, '', ''] + - !!python/object/new:urllib.parse.SplitResult + - https + - lmazueltracingtest.blob.core.windows.net + - /container3d7c19c7/blob3 + - '' + - '' - request: body: null headers: - User-Agent: [azsdk-python-storage-blob/12.0.0b3 Python/3.7.0 (Windows-10-10.0.18362-SP0)] - content-type: [application/xml; charset=utf-8] - x-ms-client-request-id: [974a03dc-e4a0-11e9-81e1-ecb1d756380e] - x-ms-date: ['Tue, 01 Oct 2019 23:09:59 GMT'] - x-ms-version: ['2019-02-02'] + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.6.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - 41ca804a-e563-11e9-ac80-1831bf6ae40e + x-ms-date: + - Wed, 02 Oct 2019 22:23:27 GMT + x-ms-version: + - '2019-02-02' method: HEAD uri: https://storagename.blob.core.windows.net/container3d7c19c7/blob1 response: - body: {string: ''} + body: + string: '' headers: - ? !!python/object/new:multidict._istr.istr [Accept-Ranges] + ? !!python/object/new:multidict._istr.istr + - Accept-Ranges : bytes - ? !!python/object/new:multidict._istr.istr [Content-Length] + ? !!python/object/new:multidict._istr.istr + - Content-Length : '11' - ? !!python/object/new:multidict._istr.istr [Content-Md5] + ? !!python/object/new:multidict._istr.istr + - Content-Md5 : XrY7u+Ae7tCTyyK7j1rNww== - ? !!python/object/new:multidict._istr.istr [Content-Type] + ? !!python/object/new:multidict._istr.istr + - Content-Type : application/octet-stream - ? !!python/object/new:multidict._istr.istr [Date] - : Tue, 01 Oct 2019 23:09:58 GMT - ? !!python/object/new:multidict._istr.istr [Etag] - : '"0x8D746C47B6F1209"' - ? !!python/object/new:multidict._istr.istr [Last-Modified] - : Tue, 01 Oct 2019 23:09:59 GMT - ? !!python/object/new:multidict._istr.istr [Server] + ? !!python/object/new:multidict._istr.istr + - Date + : Wed, 02 Oct 2019 22:23:27 GMT + ? !!python/object/new:multidict._istr.istr + - Etag + : '"0x8D7478725A2426B"' + ? !!python/object/new:multidict._istr.istr + - Last-Modified + : Wed, 02 Oct 2019 22:23:27 GMT + ? !!python/object/new:multidict._istr.istr + - Server : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 - ? !!python/object/new:multidict._istr.istr [Vary] - : Origin x-ms-access-tier: Hot x-ms-access-tier-inferred: 'true' x-ms-blob-type: BlockBlob - x-ms-client-request-id: 974a03dc-e4a0-11e9-81e1-ecb1d756380e - x-ms-creation-time: Tue, 01 Oct 2019 23:09:59 GMT + x-ms-creation-time: Wed, 02 Oct 2019 22:23:27 GMT x-ms-lease-state: available x-ms-lease-status: unlocked - x-ms-request-id: cdb9c1e5-901e-0062-73ad-7823d8000000 + x-ms-request-id: c35c1564-501e-0028-2b70-791ef7000000 x-ms-server-encrypted: 'true' x-ms-version: '2019-02-02' - status: {code: 200, message: OK} + status: + code: 200 + message: OK url: !!python/object/new:yarl.URL state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult [https, amqptest.blob.core.windows.net, - /container3d7c19c7/blob1, '', ''] + - !!python/object/new:urllib.parse.SplitResult + - https + - lmazueltracingtest.blob.core.windows.net + - /container3d7c19c7/blob1 + - '' + - '' - request: - body: "--===============2657141673167319244==\r\nContent-Type: application/http\r\nContent-Transfer-Encoding: + body: "--===============9199888853215659553==\r\nContent-Type: application/http\r\nContent-Transfer-Encoding: binary\r\nContent-ID: 0\r\n\r\nPUT /container3d7c19c7/blob1?comp=tier HTTP/1.1\r\nContent-Length: - 0\r\nx-ms-access-tier: Archive\r\nx-ms-date: Tue, 01 Oct 2019 23:09:59 GMT\r\nx-ms-client-request-id: - 974f5b00-e4a0-11e9-bccf-ecb1d756380e\r\ncontent-type: application/xml; charset=utf-8\r\nAuthorization: - SharedKey storagename:UgNbALGNxfAZsjMQJTGsN7/Cv2VEVGsgD6KuUzmNUUA=\r\n\r\n\r\n--===============2657141673167319244==\r\nContent-Type: + 0\r\nx-ms-access-tier: Archive\r\nx-ms-date: Wed, 02 Oct 2019 22:23:28 GMT\r\nx-ms-client-request-id: + 41ce5af0-e563-11e9-b214-1831bf6ae40e\r\nAuthorization: SharedKey storagename:JdtVWVncdncVVBRi8AIkhptKyoMyrRY0bgi6w0ofbXw=\r\n\r\n\r\n--===============9199888853215659553==\r\nContent-Type: application/http\r\nContent-Transfer-Encoding: binary\r\nContent-ID: 1\r\n\r\nPUT /container3d7c19c7/blob2?comp=tier HTTP/1.1\r\nContent-Length: 0\r\nx-ms-access-tier: - Archive\r\nx-ms-date: Tue, 01 Oct 2019 23:09:59 GMT\r\nx-ms-client-request-id: - 974f5b01-e4a0-11e9-baf5-ecb1d756380e\r\ncontent-type: application/xml; charset=utf-8\r\nAuthorization: - SharedKey storagename:VdADADQ6oLAtfI5PgxWWU7lD3DIYb6vEHVgCFw7JA6w=\r\n\r\n\r\n--===============2657141673167319244==\r\nContent-Type: + Archive\r\nx-ms-date: Wed, 02 Oct 2019 22:23:28 GMT\r\nx-ms-client-request-id: + 41ce33e2-e563-11e9-a785-1831bf6ae40e\r\nAuthorization: SharedKey storagename:P2a3c3dFDQIa4bu/ZeI7ajVhQVUnH/9G5zMwrI1pyds=\r\n\r\n\r\n--===============9199888853215659553==\r\nContent-Type: application/http\r\nContent-Transfer-Encoding: binary\r\nContent-ID: 2\r\n\r\nPUT /container3d7c19c7/blob3?comp=tier HTTP/1.1\r\nContent-Length: 0\r\nx-ms-access-tier: - Archive\r\nx-ms-date: Tue, 01 Oct 2019 23:09:59 GMT\r\nx-ms-client-request-id: - 974f5b02-e4a0-11e9-ac57-ecb1d756380e\r\ncontent-type: application/xml; charset=utf-8\r\nAuthorization: - SharedKey storagename:9RXnssV7KAR8i2Zdzaw1aSaHWIMRVX6s/rmk5eao/Yk=\r\n\r\n\r\n--===============2657141673167319244==--\r\n" - headers: - Content-Length: ['1401'] - Content-Type: [multipart/mixed; boundary================2657141673167319244==] - User-Agent: [azsdk-python-storage-blob/12.0.0b3 Python/3.7.0 (Windows-10-10.0.18362-SP0)] - x-ms-client-request-id: [974ff802-e4a0-11e9-b37f-ecb1d756380e] - x-ms-date: ['Tue, 01 Oct 2019 23:09:59 GMT'] - x-ms-version: ['2019-02-02'] + Archive\r\nx-ms-date: Wed, 02 Oct 2019 22:23:28 GMT\r\nx-ms-client-request-id: + 41ce5af1-e563-11e9-9960-1831bf6ae40e\r\nAuthorization: SharedKey storagename:y2QZ/Rrc95ywFtTCzlHxmEQz6bmBg2tDshTYqQbLbZ4=\r\n\r\n\r\n--===============9199888853215659553==--\r\n" + headers: + Content-Length: + - '1293' + Content-Type: + - multipart/mixed; boundary================9199888853215659553== + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.6.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - 41ce8200-e563-11e9-a962-1831bf6ae40e + x-ms-date: + - Wed, 02 Oct 2019 22:23:28 GMT + x-ms-version: + - '2019-02-02' method: POST uri: https://storagename.blob.core.windows.net/?comp=batch response: - body: {string: "--batchresponse_80663267-7dac-4100-b117-27cbad8e0512\r\nContent-Type: + body: + string: "--batchresponse_f5948b86-6eb7-4aca-8096-b2f47d9cfdd9\r\nContent-Type: application/http\r\nContent-ID: 0\r\n\r\nHTTP/1.1 200 OK\r\nx-ms-request-id: - c7da7e1b-201e-001d-10ad-78bdea1e1b2d\r\nx-ms-version: 2019-02-02\r\nx-ms-client-request-id: - 974f5b00-e4a0-11e9-bccf-ecb1d756380e\r\nServer: Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_80663267-7dac-4100-b117-27cbad8e0512\r\nContent-Type: + e4bca4f1-601e-0041-7d70-7927bb1e008d\r\nx-ms-version: 2019-02-02\r\nx-ms-client-request-id: + 41ce5af0-e563-11e9-b214-1831bf6ae40e\r\nServer: Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_f5948b86-6eb7-4aca-8096-b2f47d9cfdd9\r\nContent-Type: application/http\r\nContent-ID: 1\r\n\r\nHTTP/1.1 200 OK\r\nx-ms-request-id: - c7da7e1b-201e-001d-10ad-78bdea1e1b31\r\nx-ms-version: 2019-02-02\r\nx-ms-client-request-id: - 974f5b01-e4a0-11e9-baf5-ecb1d756380e\r\nServer: Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_80663267-7dac-4100-b117-27cbad8e0512\r\nContent-Type: + e4bca4f1-601e-0041-7d70-7927bb1e008f\r\nx-ms-version: 2019-02-02\r\nx-ms-client-request-id: + 41ce33e2-e563-11e9-a785-1831bf6ae40e\r\nServer: Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_f5948b86-6eb7-4aca-8096-b2f47d9cfdd9\r\nContent-Type: application/http\r\nContent-ID: 2\r\n\r\nHTTP/1.1 200 OK\r\nx-ms-request-id: - c7da7e1b-201e-001d-10ad-78bdea1e1b32\r\nx-ms-version: 2019-02-02\r\nx-ms-client-request-id: - 974f5b02-e4a0-11e9-ac57-ecb1d756380e\r\nServer: Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_80663267-7dac-4100-b117-27cbad8e0512--"} - headers: - ? !!python/object/new:multidict._istr.istr [Content-Type] - : multipart/mixed; boundary=batchresponse_80663267-7dac-4100-b117-27cbad8e0512 - ? !!python/object/new:multidict._istr.istr [Date] - : Tue, 01 Oct 2019 23:09:59 GMT - ? !!python/object/new:multidict._istr.istr [Server] + e4bca4f1-601e-0041-7d70-7927bb1e0090\r\nx-ms-version: 2019-02-02\r\nx-ms-client-request-id: + 41ce5af1-e563-11e9-9960-1831bf6ae40e\r\nServer: Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_f5948b86-6eb7-4aca-8096-b2f47d9cfdd9--" + headers: + ? !!python/object/new:multidict._istr.istr + - Content-Type + : multipart/mixed; boundary=batchresponse_f5948b86-6eb7-4aca-8096-b2f47d9cfdd9 + ? !!python/object/new:multidict._istr.istr + - Date + : Wed, 02 Oct 2019 22:23:27 GMT + ? !!python/object/new:multidict._istr.istr + - Server : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 - ? !!python/object/new:multidict._istr.istr [Transfer-Encoding] + ? !!python/object/new:multidict._istr.istr + - Transfer-Encoding : chunked - x-ms-client-request-id: 974ff802-e4a0-11e9-b37f-ecb1d756380e - x-ms-request-id: c7da7e1b-201e-001d-10ad-78bdea000000 + x-ms-request-id: e4bca4f1-601e-0041-7d70-7927bb000000 x-ms-version: '2019-02-02' - status: {code: 202, message: Accepted} + status: + code: 202 + message: Accepted url: !!python/object/new:yarl.URL state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult [https, amqptest.blob.core.windows.net, - /, comp=batch, ''] + - !!python/object/new:urllib.parse.SplitResult + - https + - lmazueltracingtest.blob.core.windows.net + - / + - comp=batch + - '' - request: body: null headers: - User-Agent: [azsdk-python-storage-blob/12.0.0b3 Python/3.7.0 (Windows-10-10.0.18362-SP0)] - content-type: [application/xml; charset=utf-8] - x-ms-client-request-id: [97b23b9c-e4a0-11e9-ac45-ecb1d756380e] - x-ms-date: ['Tue, 01 Oct 2019 23:10:00 GMT'] - x-ms-version: ['2019-02-02'] + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.6.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - 41df3936-e563-11e9-a98b-1831bf6ae40e + x-ms-date: + - Wed, 02 Oct 2019 22:23:28 GMT + x-ms-version: + - '2019-02-02' method: HEAD uri: https://storagename.blob.core.windows.net/container3d7c19c7/blob1 response: - body: {string: ''} + body: + string: '' headers: - ? !!python/object/new:multidict._istr.istr [Accept-Ranges] + ? !!python/object/new:multidict._istr.istr + - Accept-Ranges : bytes - ? !!python/object/new:multidict._istr.istr [Content-Length] + ? !!python/object/new:multidict._istr.istr + - Content-Length : '11' - ? !!python/object/new:multidict._istr.istr [Content-Md5] + ? !!python/object/new:multidict._istr.istr + - Content-Md5 : XrY7u+Ae7tCTyyK7j1rNww== - ? !!python/object/new:multidict._istr.istr [Content-Type] + ? !!python/object/new:multidict._istr.istr + - Content-Type : application/octet-stream - ? !!python/object/new:multidict._istr.istr [Date] - : Tue, 01 Oct 2019 23:09:59 GMT - ? !!python/object/new:multidict._istr.istr [Etag] - : '"0x8D746C47B6F1209"' - ? !!python/object/new:multidict._istr.istr [Last-Modified] - : Tue, 01 Oct 2019 23:09:59 GMT - ? !!python/object/new:multidict._istr.istr [Server] + ? !!python/object/new:multidict._istr.istr + - Date + : Wed, 02 Oct 2019 22:23:27 GMT + ? !!python/object/new:multidict._istr.istr + - Etag + : '"0x8D7478725A2426B"' + ? !!python/object/new:multidict._istr.istr + - Last-Modified + : Wed, 02 Oct 2019 22:23:27 GMT + ? !!python/object/new:multidict._istr.istr + - Server : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 - ? !!python/object/new:multidict._istr.istr [Vary] - : Origin x-ms-access-tier: Archive - x-ms-access-tier-change-time: Tue, 01 Oct 2019 23:10:00 GMT + x-ms-access-tier-change-time: Wed, 02 Oct 2019 22:23:27 GMT x-ms-blob-type: BlockBlob - x-ms-client-request-id: 97b23b9c-e4a0-11e9-ac45-ecb1d756380e - x-ms-creation-time: Tue, 01 Oct 2019 23:09:59 GMT + x-ms-creation-time: Wed, 02 Oct 2019 22:23:27 GMT x-ms-lease-state: available x-ms-lease-status: unlocked - x-ms-request-id: c7da7f79-201e-001d-57ad-78bdea000000 + x-ms-request-id: e4bca4fc-601e-0041-0870-7927bb000000 x-ms-server-encrypted: 'true' x-ms-version: '2019-02-02' - status: {code: 200, message: OK} + status: + code: 200 + message: OK url: !!python/object/new:yarl.URL state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult [https, amqptest.blob.core.windows.net, - /container3d7c19c7/blob1, '', ''] + - !!python/object/new:urllib.parse.SplitResult + - https + - lmazueltracingtest.blob.core.windows.net + - /container3d7c19c7/blob1 + - '' + - '' - request: - body: "--===============7100987078886734795==\r\nContent-Type: application/http\r\nContent-Transfer-Encoding: + body: "--===============4611818641927203127==\r\nContent-Type: application/http\r\nContent-Transfer-Encoding: binary\r\nContent-ID: 0\r\n\r\nDELETE /container3d7c19c7/blob1? HTTP/1.1\r\nx-ms-date: - Tue, 01 Oct 2019 23:10:00 GMT\r\nx-ms-client-request-id: 97b8cb40-e4a0-11e9-b4ea-ecb1d756380e\r\ncontent-type: - application/xml; charset=utf-8\r\nAuthorization: SharedKey storagename:ddccGFj4Vso5ky9ly20fxAD2hDYZo/iwvAUhujNV47k=\r\n\r\n\r\n--===============7100987078886734795==\r\nContent-Type: + Wed, 02 Oct 2019 22:23:28 GMT\r\nx-ms-client-request-id: 41e4b781-e563-11e9-827e-1831bf6ae40e\r\nAuthorization: + SharedKey storagename:QZenZ/VwH2ox49VRa/SuUxrke7fL5cFctqR4JzK8q3o=\r\n\r\n\r\n--===============4611818641927203127==\r\nContent-Type: application/http\r\nContent-Transfer-Encoding: binary\r\nContent-ID: 1\r\n\r\nDELETE - /container3d7c19c7/blob2? HTTP/1.1\r\nx-ms-date: Tue, 01 Oct 2019 23:10:00 GMT\r\nx-ms-client-request-id: - 97b8f252-e4a0-11e9-a530-ecb1d756380e\r\ncontent-type: application/xml; charset=utf-8\r\nAuthorization: - SharedKey storagename:Abkk5IHddZMGSNgAN4gZJv5UZZyzG8fmBkO/n5jrIow=\r\n\r\n\r\n--===============7100987078886734795==\r\nContent-Type: + /container3d7c19c7/blob2? HTTP/1.1\r\nx-ms-date: Wed, 02 Oct 2019 22:23:28 GMT\r\nx-ms-client-request-id: + 41e4b782-e563-11e9-9e4e-1831bf6ae40e\r\nAuthorization: SharedKey storagename:xoJKPM5ef2tyd26RiaMPKP+dHIWkkuiEVN0tNge7pIU=\r\n\r\n\r\n--===============4611818641927203127==\r\nContent-Type: application/http\r\nContent-Transfer-Encoding: binary\r\nContent-ID: 2\r\n\r\nDELETE - /container3d7c19c7/blob3? HTTP/1.1\r\nx-ms-date: Tue, 01 Oct 2019 23:10:00 GMT\r\nx-ms-client-request-id: - 97b8f253-e4a0-11e9-b6df-ecb1d756380e\r\ncontent-type: application/xml; charset=utf-8\r\nAuthorization: - SharedKey storagename:hAzr6uIYG3DvLbvPklwINZ87D5BL1zyw1k9AFuifmps=\r\n\r\n\r\n--===============7100987078886734795==--\r\n" - headers: - Content-Length: ['1245'] - Content-Type: [multipart/mixed; boundary================7100987078886734795==] - User-Agent: [azsdk-python-storage-blob/12.0.0b3 Python/3.7.0 (Windows-10-10.0.18362-SP0)] - x-ms-client-request-id: [97b9407e-e4a0-11e9-a40d-ecb1d756380e] - x-ms-date: ['Tue, 01 Oct 2019 23:10:00 GMT'] - x-ms-version: ['2019-02-02'] + /container3d7c19c7/blob3? HTTP/1.1\r\nx-ms-date: Wed, 02 Oct 2019 22:23:28 GMT\r\nx-ms-client-request-id: + 41e4b780-e563-11e9-909e-1831bf6ae40e\r\nAuthorization: SharedKey storagename:/EREPByEKNkXxaz2jMTV/MGvZyfe/rzmNRUlbxJqpqs=\r\n\r\n\r\n--===============4611818641927203127==--\r\n" + headers: + Content-Length: + - '1137' + Content-Type: + - multipart/mixed; boundary================4611818641927203127== + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.6.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - 41e505a6-e563-11e9-986a-1831bf6ae40e + x-ms-date: + - Wed, 02 Oct 2019 22:23:28 GMT + x-ms-version: + - '2019-02-02' method: POST uri: https://storagename.blob.core.windows.net/?comp=batch response: - body: {string: "--batchresponse_b1a56578-a159-435d-9af2-b36c62e913e2\r\nContent-Type: + body: + string: "--batchresponse_17ac98fe-bac0-4d12-996d-b8e5d89c318d\r\nContent-Type: application/http\r\nContent-ID: 0\r\n\r\nHTTP/1.1 202 Accepted\r\nx-ms-delete-type-permanent: - true\r\nx-ms-request-id: ee1fa87e-601e-00bb-37ad-7885f41e3e79\r\nx-ms-version: - 2019-02-02\r\nx-ms-client-request-id: 97b8cb40-e4a0-11e9-b4ea-ecb1d756380e\r\nServer: - Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_b1a56578-a159-435d-9af2-b36c62e913e2\r\nContent-Type: + true\r\nx-ms-request-id: a52f56e0-501e-0081-5570-79df851eb203\r\nx-ms-version: + 2019-02-02\r\nx-ms-client-request-id: 41e4b781-e563-11e9-827e-1831bf6ae40e\r\nServer: + Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_17ac98fe-bac0-4d12-996d-b8e5d89c318d\r\nContent-Type: application/http\r\nContent-ID: 1\r\n\r\nHTTP/1.1 202 Accepted\r\nx-ms-delete-type-permanent: - true\r\nx-ms-request-id: ee1fa87e-601e-00bb-37ad-7885f41e3e7b\r\nx-ms-version: - 2019-02-02\r\nx-ms-client-request-id: 97b8f252-e4a0-11e9-a530-ecb1d756380e\r\nServer: - Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_b1a56578-a159-435d-9af2-b36c62e913e2\r\nContent-Type: + true\r\nx-ms-request-id: a52f56e0-501e-0081-5570-79df851eb205\r\nx-ms-version: + 2019-02-02\r\nx-ms-client-request-id: 41e4b782-e563-11e9-9e4e-1831bf6ae40e\r\nServer: + Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_17ac98fe-bac0-4d12-996d-b8e5d89c318d\r\nContent-Type: application/http\r\nContent-ID: 2\r\n\r\nHTTP/1.1 202 Accepted\r\nx-ms-delete-type-permanent: - true\r\nx-ms-request-id: ee1fa87e-601e-00bb-37ad-7885f41e3e7c\r\nx-ms-version: - 2019-02-02\r\nx-ms-client-request-id: 97b8f253-e4a0-11e9-b6df-ecb1d756380e\r\nServer: - Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_b1a56578-a159-435d-9af2-b36c62e913e2--"} - headers: - ? !!python/object/new:multidict._istr.istr [Content-Type] - : multipart/mixed; boundary=batchresponse_b1a56578-a159-435d-9af2-b36c62e913e2 - ? !!python/object/new:multidict._istr.istr [Date] - : Tue, 01 Oct 2019 23:09:59 GMT - ? !!python/object/new:multidict._istr.istr [Server] + true\r\nx-ms-request-id: a52f56e0-501e-0081-5570-79df851eb206\r\nx-ms-version: + 2019-02-02\r\nx-ms-client-request-id: 41e4b780-e563-11e9-909e-1831bf6ae40e\r\nServer: + Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_17ac98fe-bac0-4d12-996d-b8e5d89c318d--" + headers: + ? !!python/object/new:multidict._istr.istr + - Content-Type + : multipart/mixed; boundary=batchresponse_17ac98fe-bac0-4d12-996d-b8e5d89c318d + ? !!python/object/new:multidict._istr.istr + - Date + : Wed, 02 Oct 2019 22:23:26 GMT + ? !!python/object/new:multidict._istr.istr + - Server : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 - ? !!python/object/new:multidict._istr.istr [Transfer-Encoding] + ? !!python/object/new:multidict._istr.istr + - Transfer-Encoding : chunked - x-ms-client-request-id: 97b9407e-e4a0-11e9-a40d-ecb1d756380e - x-ms-request-id: ee1fa87e-601e-00bb-37ad-7885f4000000 + x-ms-request-id: a52f56e0-501e-0081-5570-79df85000000 x-ms-version: '2019-02-02' - status: {code: 202, message: Accepted} + status: + code: 202 + message: Accepted url: !!python/object/new:yarl.URL state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult [https, amqptest.blob.core.windows.net, - /, comp=batch, ''] + - !!python/object/new:urllib.parse.SplitResult + - https + - lmazueltracingtest.blob.core.windows.net + - / + - comp=batch + - '' - request: body: hello world headers: - Content-Length: ['11'] - Content-Type: [application/octet-stream] - If-None-Match: ['*'] - User-Agent: [azsdk-python-storage-blob/12.0.0b3 Python/3.7.0 (Windows-10-10.0.18362-SP0)] - x-ms-blob-type: [BlockBlob] - x-ms-client-request-id: [97d1f9de-e4a0-11e9-b897-ecb1d756380e] - x-ms-date: ['Tue, 01 Oct 2019 23:10:00 GMT'] - x-ms-version: ['2019-02-02'] + Content-Length: + - '11' + Content-Type: + - application/octet-stream + If-None-Match: + - '*' + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.6.3 (Windows-10-10.0.18362-SP0) + x-ms-blob-type: + - BlockBlob + x-ms-client-request-id: + - 41f901ac-e563-11e9-9e52-1831bf6ae40e + x-ms-date: + - Wed, 02 Oct 2019 22:23:28 GMT + x-ms-version: + - '2019-02-02' method: PUT uri: https://storagename.blob.core.windows.net/container3d7c19c7/blob1 response: - body: {string: ''} + body: + string: '' headers: - ? !!python/object/new:multidict._istr.istr [Content-Length] + ? !!python/object/new:multidict._istr.istr + - Content-Length : '0' - ? !!python/object/new:multidict._istr.istr [Content-Md5] + ? !!python/object/new:multidict._istr.istr + - Content-Md5 : XrY7u+Ae7tCTyyK7j1rNww== - ? !!python/object/new:multidict._istr.istr [Date] - : Tue, 01 Oct 2019 23:09:59 GMT - ? !!python/object/new:multidict._istr.istr [Etag] - : '"0x8D746C47C0D6AB1"' - ? !!python/object/new:multidict._istr.istr [Last-Modified] - : Tue, 01 Oct 2019 23:10:00 GMT - ? !!python/object/new:multidict._istr.istr [Server] + ? !!python/object/new:multidict._istr.istr + - Date + : Wed, 02 Oct 2019 22:23:26 GMT + ? !!python/object/new:multidict._istr.istr + - Etag + : '"0x8D7478725E12092"' + ? !!python/object/new:multidict._istr.istr + - Last-Modified + : Wed, 02 Oct 2019 22:23:27 GMT + ? !!python/object/new:multidict._istr.istr + - Server : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 - x-ms-client-request-id: 97d1f9de-e4a0-11e9-b897-ecb1d756380e x-ms-content-crc64: vo7q9sPVKY0= - x-ms-request-id: ee1fa8b6-601e-00bb-6ead-7885f4000000 + x-ms-request-id: a52f5702-501e-0081-7470-79df85000000 x-ms-request-server-encrypted: 'true' x-ms-version: '2019-02-02' - status: {code: 201, message: Created} + status: + code: 201 + message: Created url: !!python/object/new:yarl.URL state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult [https, amqptest.blob.core.windows.net, - /container3d7c19c7/blob1, '', ''] + - !!python/object/new:urllib.parse.SplitResult + - https + - lmazueltracingtest.blob.core.windows.net + - /container3d7c19c7/blob1 + - '' + - '' - request: body: hello world headers: - Content-Length: ['11'] - Content-Type: [application/octet-stream] - If-None-Match: ['*'] - User-Agent: [azsdk-python-storage-blob/12.0.0b3 Python/3.7.0 (Windows-10-10.0.18362-SP0)] - x-ms-blob-type: [BlockBlob] - x-ms-client-request-id: [97d999b6-e4a0-11e9-a264-ecb1d756380e] - x-ms-date: ['Tue, 01 Oct 2019 23:10:00 GMT'] - x-ms-version: ['2019-02-02'] + Content-Length: + - '11' + Content-Type: + - application/octet-stream + If-None-Match: + - '*' + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.6.3 (Windows-10-10.0.18362-SP0) + x-ms-blob-type: + - BlockBlob + x-ms-client-request-id: + - 41ff1c2c-e563-11e9-8d3d-1831bf6ae40e + x-ms-date: + - Wed, 02 Oct 2019 22:23:28 GMT + x-ms-version: + - '2019-02-02' method: PUT uri: https://storagename.blob.core.windows.net/container3d7c19c7/blob2 response: - body: {string: ''} + body: + string: '' headers: - ? !!python/object/new:multidict._istr.istr [Content-Length] + ? !!python/object/new:multidict._istr.istr + - Content-Length : '0' - ? !!python/object/new:multidict._istr.istr [Content-Md5] + ? !!python/object/new:multidict._istr.istr + - Content-Md5 : XrY7u+Ae7tCTyyK7j1rNww== - ? !!python/object/new:multidict._istr.istr [Date] - : Tue, 01 Oct 2019 23:10:00 GMT - ? !!python/object/new:multidict._istr.istr [Etag] - : '"0x8D746C47C14BF06"' - ? !!python/object/new:multidict._istr.istr [Last-Modified] - : Tue, 01 Oct 2019 23:10:00 GMT - ? !!python/object/new:multidict._istr.istr [Server] + ? !!python/object/new:multidict._istr.istr + - Date + : Wed, 02 Oct 2019 22:23:26 GMT + ? !!python/object/new:multidict._istr.istr + - Etag + : '"0x8D7478725E6ECE0"' + ? !!python/object/new:multidict._istr.istr + - Last-Modified + : Wed, 02 Oct 2019 22:23:27 GMT + ? !!python/object/new:multidict._istr.istr + - Server : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 - x-ms-client-request-id: 97d999b6-e4a0-11e9-a264-ecb1d756380e x-ms-content-crc64: vo7q9sPVKY0= - x-ms-request-id: ee1fa8e2-601e-00bb-15ad-7885f4000000 + x-ms-request-id: a52f5715-501e-0081-0670-79df85000000 x-ms-request-server-encrypted: 'true' x-ms-version: '2019-02-02' - status: {code: 201, message: Created} + status: + code: 201 + message: Created url: !!python/object/new:yarl.URL state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult [https, amqptest.blob.core.windows.net, - /container3d7c19c7/blob2, '', ''] + - !!python/object/new:urllib.parse.SplitResult + - https + - lmazueltracingtest.blob.core.windows.net + - /container3d7c19c7/blob2 + - '' + - '' - request: body: hello world headers: - Content-Length: ['11'] - Content-Type: [application/octet-stream] - If-None-Match: ['*'] - User-Agent: [azsdk-python-storage-blob/12.0.0b3 Python/3.7.0 (Windows-10-10.0.18362-SP0)] - x-ms-blob-type: [BlockBlob] - x-ms-client-request-id: [97e1fe18-e4a0-11e9-bff0-ecb1d756380e] - x-ms-date: ['Tue, 01 Oct 2019 23:10:00 GMT'] - x-ms-version: ['2019-02-02'] + Content-Length: + - '11' + Content-Type: + - application/octet-stream + If-None-Match: + - '*' + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.6.3 (Windows-10-10.0.18362-SP0) + x-ms-blob-type: + - BlockBlob + x-ms-client-request-id: + - 420536b0-e563-11e9-902f-1831bf6ae40e + x-ms-date: + - Wed, 02 Oct 2019 22:23:28 GMT + x-ms-version: + - '2019-02-02' method: PUT uri: https://storagename.blob.core.windows.net/container3d7c19c7/blob3 response: - body: {string: ''} + body: + string: '' headers: - ? !!python/object/new:multidict._istr.istr [Content-Length] + ? !!python/object/new:multidict._istr.istr + - Content-Length : '0' - ? !!python/object/new:multidict._istr.istr [Content-Md5] + ? !!python/object/new:multidict._istr.istr + - Content-Md5 : XrY7u+Ae7tCTyyK7j1rNww== - ? !!python/object/new:multidict._istr.istr [Date] - : Tue, 01 Oct 2019 23:10:00 GMT - ? !!python/object/new:multidict._istr.istr [Etag] - : '"0x8D746C47C1D24FA"' - ? !!python/object/new:multidict._istr.istr [Last-Modified] - : Tue, 01 Oct 2019 23:10:00 GMT - ? !!python/object/new:multidict._istr.istr [Server] + ? !!python/object/new:multidict._istr.istr + - Date + : Wed, 02 Oct 2019 22:23:26 GMT + ? !!python/object/new:multidict._istr.istr + - Etag + : '"0x8D7478725ED2E75"' + ? !!python/object/new:multidict._istr.istr + - Last-Modified + : Wed, 02 Oct 2019 22:23:27 GMT + ? !!python/object/new:multidict._istr.istr + - Server : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 - x-ms-client-request-id: 97e1fe18-e4a0-11e9-bff0-ecb1d756380e x-ms-content-crc64: vo7q9sPVKY0= - x-ms-request-id: ee1fa915-601e-00bb-43ad-7885f4000000 + x-ms-request-id: a52f5728-501e-0081-1970-79df85000000 x-ms-request-server-encrypted: 'true' x-ms-version: '2019-02-02' - status: {code: 201, message: Created} + status: + code: 201 + message: Created url: !!python/object/new:yarl.URL state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult [https, amqptest.blob.core.windows.net, - /container3d7c19c7/blob3, '', ''] + - !!python/object/new:urllib.parse.SplitResult + - https + - lmazueltracingtest.blob.core.windows.net + - /container3d7c19c7/blob3 + - '' + - '' - request: body: null headers: - User-Agent: [azsdk-python-storage-blob/12.0.0b3 Python/3.7.0 (Windows-10-10.0.18362-SP0)] - content-type: [application/xml; charset=utf-8] - x-ms-client-request-id: [97e7a37e-e4a0-11e9-a7de-ecb1d756380e] - x-ms-date: ['Tue, 01 Oct 2019 23:10:00 GMT'] - x-ms-version: ['2019-02-02'] + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.6.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - 420b0312-e563-11e9-9ac2-1831bf6ae40e + x-ms-date: + - Wed, 02 Oct 2019 22:23:28 GMT + x-ms-version: + - '2019-02-02' method: HEAD uri: https://storagename.blob.core.windows.net/container3d7c19c7/blob1 response: - body: {string: ''} + body: + string: '' headers: - ? !!python/object/new:multidict._istr.istr [Accept-Ranges] + ? !!python/object/new:multidict._istr.istr + - Accept-Ranges : bytes - ? !!python/object/new:multidict._istr.istr [Content-Length] + ? !!python/object/new:multidict._istr.istr + - Content-Length : '11' - ? !!python/object/new:multidict._istr.istr [Content-Md5] + ? !!python/object/new:multidict._istr.istr + - Content-Md5 : XrY7u+Ae7tCTyyK7j1rNww== - ? !!python/object/new:multidict._istr.istr [Content-Type] + ? !!python/object/new:multidict._istr.istr + - Content-Type : application/octet-stream - ? !!python/object/new:multidict._istr.istr [Date] - : Tue, 01 Oct 2019 23:10:00 GMT - ? !!python/object/new:multidict._istr.istr [Etag] - : '"0x8D746C47C0D6AB1"' - ? !!python/object/new:multidict._istr.istr [Last-Modified] - : Tue, 01 Oct 2019 23:10:00 GMT - ? !!python/object/new:multidict._istr.istr [Server] + ? !!python/object/new:multidict._istr.istr + - Date + : Wed, 02 Oct 2019 22:23:26 GMT + ? !!python/object/new:multidict._istr.istr + - Etag + : '"0x8D7478725E12092"' + ? !!python/object/new:multidict._istr.istr + - Last-Modified + : Wed, 02 Oct 2019 22:23:27 GMT + ? !!python/object/new:multidict._istr.istr + - Server : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 - ? !!python/object/new:multidict._istr.istr [Vary] - : Origin x-ms-access-tier: Hot x-ms-access-tier-inferred: 'true' x-ms-blob-type: BlockBlob - x-ms-client-request-id: 97e7a37e-e4a0-11e9-a7de-ecb1d756380e - x-ms-creation-time: Tue, 01 Oct 2019 23:10:00 GMT + x-ms-creation-time: Wed, 02 Oct 2019 22:23:27 GMT x-ms-lease-state: available x-ms-lease-status: unlocked - x-ms-request-id: ee1fa936-601e-00bb-63ad-7885f4000000 + x-ms-request-id: a52f573c-501e-0081-2b70-79df85000000 x-ms-server-encrypted: 'true' x-ms-version: '2019-02-02' - status: {code: 200, message: OK} + status: + code: 200 + message: OK url: !!python/object/new:yarl.URL state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult [https, amqptest.blob.core.windows.net, - /container3d7c19c7/blob1, '', ''] + - !!python/object/new:urllib.parse.SplitResult + - https + - lmazueltracingtest.blob.core.windows.net + - /container3d7c19c7/blob1 + - '' + - '' - request: - body: "--===============8042958973566435161==\r\nContent-Type: application/http\r\nContent-Transfer-Encoding: + body: "--===============2796322368600226439==\r\nContent-Type: application/http\r\nContent-Transfer-Encoding: binary\r\nContent-ID: 0\r\n\r\nPUT /container3d7c19c7/blob1?comp=tier HTTP/1.1\r\nContent-Length: - 0\r\nx-ms-access-tier: Cool\r\nx-ms-date: Tue, 01 Oct 2019 23:10:00 GMT\r\nx-ms-client-request-id: - 97ecfab8-e4a0-11e9-862b-ecb1d756380e\r\ncontent-type: application/xml; charset=utf-8\r\nAuthorization: - SharedKey storagename:TEGoiM4SbsGxmJUq72JebAk3AUWNYRZGDMypd3TiBqQ=\r\n\r\n\r\n--===============8042958973566435161==\r\nContent-Type: + 0\r\nx-ms-access-tier: Cool\r\nx-ms-date: Wed, 02 Oct 2019 22:23:28 GMT\r\nx-ms-client-request-id: + 420efaad-e563-11e9-9ca8-1831bf6ae40e\r\nAuthorization: SharedKey storagename:d7rHSsbFfOpxrV2ctq95nUIl45MkMhRDZZKmw8Utros=\r\n\r\n\r\n--===============2796322368600226439==\r\nContent-Type: application/http\r\nContent-Transfer-Encoding: binary\r\nContent-ID: 1\r\n\r\nPUT /container3d7c19c7/blob2?comp=tier HTTP/1.1\r\nContent-Length: 0\r\nx-ms-access-tier: - Cool\r\nx-ms-date: Tue, 01 Oct 2019 23:10:00 GMT\r\nx-ms-client-request-id: - 97ecfab9-e4a0-11e9-b2a0-ecb1d756380e\r\ncontent-type: application/xml; charset=utf-8\r\nAuthorization: - SharedKey storagename:mSXbi3qn2q+LHyE4/wqPUMHIiv24SgYQ0pqbHjrcwlA=\r\n\r\n\r\n--===============8042958973566435161==\r\nContent-Type: + Cool\r\nx-ms-date: Wed, 02 Oct 2019 22:23:28 GMT\r\nx-ms-client-request-id: + 420efaae-e563-11e9-94b3-1831bf6ae40e\r\nAuthorization: SharedKey storagename:ktdqXV88w0DgkPg8B8rYhbVY7R1E3+WqiOoyCB/En78=\r\n\r\n\r\n--===============2796322368600226439==\r\nContent-Type: application/http\r\nContent-Transfer-Encoding: binary\r\nContent-ID: 2\r\n\r\nPUT /container3d7c19c7/blob3?comp=tier HTTP/1.1\r\nContent-Length: 0\r\nx-ms-access-tier: - Cool\r\nx-ms-date: Tue, 01 Oct 2019 23:10:00 GMT\r\nx-ms-client-request-id: - 97ed21d4-e4a0-11e9-8c88-ecb1d756380e\r\ncontent-type: application/xml; charset=utf-8\r\nAuthorization: - SharedKey storagename:DfjEifMPY6UqZGqS+7SuCcVae2eA+XwJEmbYH8WOKfc=\r\n\r\n\r\n--===============8042958973566435161==--\r\n" - headers: - Content-Length: ['1392'] - Content-Type: [multipart/mixed; boundary================8042958973566435161==] - User-Agent: [azsdk-python-storage-blob/12.0.0b3 Python/3.7.0 (Windows-10-10.0.18362-SP0)] - x-ms-client-request-id: [97ed6fd0-e4a0-11e9-a3a3-ecb1d756380e] - x-ms-date: ['Tue, 01 Oct 2019 23:10:00 GMT'] - x-ms-version: ['2019-02-02'] + Cool\r\nx-ms-date: Wed, 02 Oct 2019 22:23:28 GMT\r\nx-ms-client-request-id: + 420efaac-e563-11e9-b217-1831bf6ae40e\r\nAuthorization: SharedKey storagename:i4dpWsHV5Y6R3TiImBsgvroySAelwaU0PEatcg/zbd0=\r\n\r\n\r\n--===============2796322368600226439==--\r\n" + headers: + Content-Length: + - '1284' + Content-Type: + - multipart/mixed; boundary================2796322368600226439== + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.6.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - 420f48cc-e563-11e9-bf2c-1831bf6ae40e + x-ms-date: + - Wed, 02 Oct 2019 22:23:28 GMT + x-ms-version: + - '2019-02-02' method: POST uri: https://storagename.blob.core.windows.net/?comp=batch response: - body: {string: "--batchresponse_ed00faea-60f3-40b9-9173-b9a12d75a74c\r\nContent-Type: + body: + string: "--batchresponse_4796fad0-8e87-44ed-832c-e2f0ebabef33\r\nContent-Type: application/http\r\nContent-ID: 0\r\n\r\nHTTP/1.1 200 OK\r\nx-ms-request-id: - 0ea8a4fa-501e-007f-23ad-78fa321e3138\r\nx-ms-version: 2019-02-02\r\nx-ms-client-request-id: - 97ecfab8-e4a0-11e9-862b-ecb1d756380e\r\nServer: Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_ed00faea-60f3-40b9-9173-b9a12d75a74c\r\nContent-Type: + 97c87446-101e-00af-1970-798d921ed560\r\nx-ms-version: 2019-02-02\r\nx-ms-client-request-id: + 420efaad-e563-11e9-9ca8-1831bf6ae40e\r\nServer: Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_4796fad0-8e87-44ed-832c-e2f0ebabef33\r\nContent-Type: application/http\r\nContent-ID: 1\r\n\r\nHTTP/1.1 200 OK\r\nx-ms-request-id: - 0ea8a4fa-501e-007f-23ad-78fa321e313a\r\nx-ms-version: 2019-02-02\r\nx-ms-client-request-id: - 97ecfab9-e4a0-11e9-b2a0-ecb1d756380e\r\nServer: Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_ed00faea-60f3-40b9-9173-b9a12d75a74c\r\nContent-Type: + 97c87446-101e-00af-1970-798d921ed562\r\nx-ms-version: 2019-02-02\r\nx-ms-client-request-id: + 420efaae-e563-11e9-94b3-1831bf6ae40e\r\nServer: Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_4796fad0-8e87-44ed-832c-e2f0ebabef33\r\nContent-Type: application/http\r\nContent-ID: 2\r\n\r\nHTTP/1.1 200 OK\r\nx-ms-request-id: - 0ea8a4fa-501e-007f-23ad-78fa321e313b\r\nx-ms-version: 2019-02-02\r\nx-ms-client-request-id: - 97ed21d4-e4a0-11e9-8c88-ecb1d756380e\r\nServer: Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_ed00faea-60f3-40b9-9173-b9a12d75a74c--"} - headers: - ? !!python/object/new:multidict._istr.istr [Content-Type] - : multipart/mixed; boundary=batchresponse_ed00faea-60f3-40b9-9173-b9a12d75a74c - ? !!python/object/new:multidict._istr.istr [Date] - : Tue, 01 Oct 2019 23:10:00 GMT - ? !!python/object/new:multidict._istr.istr [Server] + 97c87446-101e-00af-1970-798d921ed563\r\nx-ms-version: 2019-02-02\r\nx-ms-client-request-id: + 420efaac-e563-11e9-b217-1831bf6ae40e\r\nServer: Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_4796fad0-8e87-44ed-832c-e2f0ebabef33--" + headers: + ? !!python/object/new:multidict._istr.istr + - Content-Type + : multipart/mixed; boundary=batchresponse_4796fad0-8e87-44ed-832c-e2f0ebabef33 + ? !!python/object/new:multidict._istr.istr + - Date + : Wed, 02 Oct 2019 22:23:27 GMT + ? !!python/object/new:multidict._istr.istr + - Server : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 - ? !!python/object/new:multidict._istr.istr [Transfer-Encoding] + ? !!python/object/new:multidict._istr.istr + - Transfer-Encoding : chunked - x-ms-client-request-id: 97ed6fd0-e4a0-11e9-a3a3-ecb1d756380e - x-ms-request-id: 0ea8a4fa-501e-007f-23ad-78fa32000000 + x-ms-request-id: 97c87446-101e-00af-1970-798d92000000 x-ms-version: '2019-02-02' - status: {code: 202, message: Accepted} + status: + code: 202 + message: Accepted url: !!python/object/new:yarl.URL state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult [https, amqptest.blob.core.windows.net, - /, comp=batch, ''] + - !!python/object/new:urllib.parse.SplitResult + - https + - lmazueltracingtest.blob.core.windows.net + - / + - comp=batch + - '' - request: body: null headers: - User-Agent: [azsdk-python-storage-blob/12.0.0b3 Python/3.7.0 (Windows-10-10.0.18362-SP0)] - content-type: [application/xml; charset=utf-8] - x-ms-client-request-id: [982ac73e-e4a0-11e9-a2c4-ecb1d756380e] - x-ms-date: ['Tue, 01 Oct 2019 23:10:01 GMT'] - x-ms-version: ['2019-02-02'] + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.6.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - 4224cc98-e563-11e9-b874-1831bf6ae40e + x-ms-date: + - Wed, 02 Oct 2019 22:23:28 GMT + x-ms-version: + - '2019-02-02' method: HEAD uri: https://storagename.blob.core.windows.net/container3d7c19c7/blob1 response: - body: {string: ''} + body: + string: '' headers: - ? !!python/object/new:multidict._istr.istr [Accept-Ranges] + ? !!python/object/new:multidict._istr.istr + - Accept-Ranges : bytes - ? !!python/object/new:multidict._istr.istr [Content-Length] + ? !!python/object/new:multidict._istr.istr + - Content-Length : '11' - ? !!python/object/new:multidict._istr.istr [Content-Md5] + ? !!python/object/new:multidict._istr.istr + - Content-Md5 : XrY7u+Ae7tCTyyK7j1rNww== - ? !!python/object/new:multidict._istr.istr [Content-Type] + ? !!python/object/new:multidict._istr.istr + - Content-Type : application/octet-stream - ? !!python/object/new:multidict._istr.istr [Date] - : Tue, 01 Oct 2019 23:10:00 GMT - ? !!python/object/new:multidict._istr.istr [Etag] - : '"0x8D746C47C0D6AB1"' - ? !!python/object/new:multidict._istr.istr [Last-Modified] - : Tue, 01 Oct 2019 23:10:00 GMT - ? !!python/object/new:multidict._istr.istr [Server] + ? !!python/object/new:multidict._istr.istr + - Date + : Wed, 02 Oct 2019 22:23:27 GMT + ? !!python/object/new:multidict._istr.istr + - Etag + : '"0x8D7478725E12092"' + ? !!python/object/new:multidict._istr.istr + - Last-Modified + : Wed, 02 Oct 2019 22:23:27 GMT + ? !!python/object/new:multidict._istr.istr + - Server : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 - ? !!python/object/new:multidict._istr.istr [Vary] - : Origin x-ms-access-tier: Cool - x-ms-access-tier-change-time: Tue, 01 Oct 2019 23:10:01 GMT + x-ms-access-tier-change-time: Wed, 02 Oct 2019 22:23:28 GMT x-ms-blob-type: BlockBlob - x-ms-client-request-id: 982ac73e-e4a0-11e9-a2c4-ecb1d756380e - x-ms-creation-time: Tue, 01 Oct 2019 23:10:00 GMT + x-ms-creation-time: Wed, 02 Oct 2019 22:23:27 GMT x-ms-lease-state: available x-ms-lease-status: unlocked - x-ms-request-id: 0ea8a592-501e-007f-32ad-78fa32000000 + x-ms-request-id: 97c87467-101e-00af-3970-798d92000000 x-ms-server-encrypted: 'true' x-ms-version: '2019-02-02' - status: {code: 200, message: OK} + status: + code: 200 + message: OK url: !!python/object/new:yarl.URL state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult [https, amqptest.blob.core.windows.net, - /container3d7c19c7/blob1, '', ''] + - !!python/object/new:urllib.parse.SplitResult + - https + - lmazueltracingtest.blob.core.windows.net + - /container3d7c19c7/blob1 + - '' + - '' - request: - body: "--===============6155931473208570575==\r\nContent-Type: application/http\r\nContent-Transfer-Encoding: + body: "--===============8354157604598802095==\r\nContent-Type: application/http\r\nContent-Transfer-Encoding: binary\r\nContent-ID: 0\r\n\r\nDELETE /container3d7c19c7/blob1? HTTP/1.1\r\nx-ms-date: - Tue, 01 Oct 2019 23:10:01 GMT\r\nx-ms-client-request-id: 983108ca-e4a0-11e9-9ea8-ecb1d756380e\r\ncontent-type: - application/xml; charset=utf-8\r\nAuthorization: SharedKey storagename:XB8Wszs9LpxMitCwz/TPq9E4Lq08go0XgIE9YqM6+ws=\r\n\r\n\r\n--===============6155931473208570575==\r\nContent-Type: + Wed, 02 Oct 2019 22:23:28 GMT\r\nx-ms-client-request-id: 42298d09-e563-11e9-9cc1-1831bf6ae40e\r\nAuthorization: + SharedKey storagename:8JWQtMoJLXmP+08GXgv2zLn1lsfp3rkS2VXyHgTo/jU=\r\n\r\n\r\n--===============8354157604598802095==\r\nContent-Type: application/http\r\nContent-Transfer-Encoding: binary\r\nContent-ID: 1\r\n\r\nDELETE - /container3d7c19c7/blob2? HTTP/1.1\r\nx-ms-date: Tue, 01 Oct 2019 23:10:01 GMT\r\nx-ms-client-request-id: - 98312fc2-e4a0-11e9-abce-ecb1d756380e\r\ncontent-type: application/xml; charset=utf-8\r\nAuthorization: - SharedKey storagename:6nugNjvfF/NQrUyfrjnY0DpqBeiRi27oOZiGVjt7owc=\r\n\r\n\r\n--===============6155931473208570575==\r\nContent-Type: + /container3d7c19c7/blob2? HTTP/1.1\r\nx-ms-date: Wed, 02 Oct 2019 22:23:28 GMT\r\nx-ms-client-request-id: + 42298d08-e563-11e9-8bd0-1831bf6ae40e\r\nAuthorization: SharedKey storagename:XtdrbHaqBQP79Y9lTBrnGIhHxdRwaGAQqNy9v1Kv+D4=\r\n\r\n\r\n--===============8354157604598802095==\r\nContent-Type: application/http\r\nContent-Transfer-Encoding: binary\r\nContent-ID: 2\r\n\r\nDELETE - /container3d7c19c7/blob3? HTTP/1.1\r\nx-ms-date: Tue, 01 Oct 2019 23:10:01 GMT\r\nx-ms-client-request-id: - 98312fc3-e4a0-11e9-9de1-ecb1d756380e\r\ncontent-type: application/xml; charset=utf-8\r\nAuthorization: - SharedKey storagename:M+WBLu1o3hFP+q8y3ckPV0UyB1le8jheGNYxmny7LLk=\r\n\r\n\r\n--===============6155931473208570575==--\r\n" - headers: - Content-Length: ['1245'] - Content-Type: [multipart/mixed; boundary================6155931473208570575==] - User-Agent: [azsdk-python-storage-blob/12.0.0b3 Python/3.7.0 (Windows-10-10.0.18362-SP0)] - x-ms-client-request-id: [9831f322-e4a0-11e9-8ef6-ecb1d756380e] - x-ms-date: ['Tue, 01 Oct 2019 23:10:01 GMT'] - x-ms-version: ['2019-02-02'] + /container3d7c19c7/blob3? HTTP/1.1\r\nx-ms-date: Wed, 02 Oct 2019 22:23:28 GMT\r\nx-ms-client-request-id: + 42298d0a-e563-11e9-bad1-1831bf6ae40e\r\nAuthorization: SharedKey storagename:RDzu1sstCQcAXQuRCeU/QUi5r/qWPb1n2Dkxb0IPCBw=\r\n\r\n\r\n--===============8354157604598802095==--\r\n" + headers: + Content-Length: + - '1137' + Content-Type: + - multipart/mixed; boundary================8354157604598802095== + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.6.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - 4229b41a-e563-11e9-ba94-1831bf6ae40e + x-ms-date: + - Wed, 02 Oct 2019 22:23:28 GMT + x-ms-version: + - '2019-02-02' method: POST uri: https://storagename.blob.core.windows.net/?comp=batch response: - body: {string: "--batchresponse_1d2bc589-248e-4226-a4b5-fd1b76779153\r\nContent-Type: + body: + string: "--batchresponse_4effd794-1ad1-409a-91ee-f2e46ae7d474\r\nContent-Type: application/http\r\nContent-ID: 0\r\n\r\nHTTP/1.1 202 Accepted\r\nx-ms-delete-type-permanent: - true\r\nx-ms-request-id: b956cbb0-e01e-004f-1dad-78a0181e3e01\r\nx-ms-version: - 2019-02-02\r\nx-ms-client-request-id: 983108ca-e4a0-11e9-9ea8-ecb1d756380e\r\nServer: - Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_1d2bc589-248e-4226-a4b5-fd1b76779153\r\nContent-Type: + true\r\nx-ms-request-id: cf6f7d88-c01e-0093-1070-79a4551e8b82\r\nx-ms-version: + 2019-02-02\r\nx-ms-client-request-id: 42298d09-e563-11e9-9cc1-1831bf6ae40e\r\nServer: + Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_4effd794-1ad1-409a-91ee-f2e46ae7d474\r\nContent-Type: application/http\r\nContent-ID: 1\r\n\r\nHTTP/1.1 202 Accepted\r\nx-ms-delete-type-permanent: - true\r\nx-ms-request-id: b956cbb0-e01e-004f-1dad-78a0181e3e03\r\nx-ms-version: - 2019-02-02\r\nx-ms-client-request-id: 98312fc2-e4a0-11e9-abce-ecb1d756380e\r\nServer: - Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_1d2bc589-248e-4226-a4b5-fd1b76779153\r\nContent-Type: + true\r\nx-ms-request-id: cf6f7d88-c01e-0093-1070-79a4551e8b84\r\nx-ms-version: + 2019-02-02\r\nx-ms-client-request-id: 42298d08-e563-11e9-8bd0-1831bf6ae40e\r\nServer: + Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_4effd794-1ad1-409a-91ee-f2e46ae7d474\r\nContent-Type: application/http\r\nContent-ID: 2\r\n\r\nHTTP/1.1 202 Accepted\r\nx-ms-delete-type-permanent: - true\r\nx-ms-request-id: b956cbb0-e01e-004f-1dad-78a0181e3e04\r\nx-ms-version: - 2019-02-02\r\nx-ms-client-request-id: 98312fc3-e4a0-11e9-9de1-ecb1d756380e\r\nServer: - Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_1d2bc589-248e-4226-a4b5-fd1b76779153--"} - headers: - ? !!python/object/new:multidict._istr.istr [Content-Type] - : multipart/mixed; boundary=batchresponse_1d2bc589-248e-4226-a4b5-fd1b76779153 - ? !!python/object/new:multidict._istr.istr [Date] - : Tue, 01 Oct 2019 23:10:01 GMT - ? !!python/object/new:multidict._istr.istr [Server] + true\r\nx-ms-request-id: cf6f7d88-c01e-0093-1070-79a4551e8b85\r\nx-ms-version: + 2019-02-02\r\nx-ms-client-request-id: 42298d0a-e563-11e9-bad1-1831bf6ae40e\r\nServer: + Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_4effd794-1ad1-409a-91ee-f2e46ae7d474--" + headers: + ? !!python/object/new:multidict._istr.istr + - Content-Type + : multipart/mixed; boundary=batchresponse_4effd794-1ad1-409a-91ee-f2e46ae7d474 + ? !!python/object/new:multidict._istr.istr + - Date + : Wed, 02 Oct 2019 22:23:27 GMT + ? !!python/object/new:multidict._istr.istr + - Server : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 - ? !!python/object/new:multidict._istr.istr [Transfer-Encoding] + ? !!python/object/new:multidict._istr.istr + - Transfer-Encoding : chunked - x-ms-client-request-id: 9831f322-e4a0-11e9-8ef6-ecb1d756380e - x-ms-request-id: b956cbb0-e01e-004f-1dad-78a018000000 + x-ms-request-id: cf6f7d88-c01e-0093-1070-79a455000000 x-ms-version: '2019-02-02' - status: {code: 202, message: Accepted} + status: + code: 202 + message: Accepted url: !!python/object/new:yarl.URL state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult [https, amqptest.blob.core.windows.net, - /, comp=batch, ''] + - !!python/object/new:urllib.parse.SplitResult + - https + - lmazueltracingtest.blob.core.windows.net + - / + - comp=batch + - '' - request: body: hello world headers: - Content-Length: ['11'] - Content-Type: [application/octet-stream] - If-None-Match: ['*'] - User-Agent: [azsdk-python-storage-blob/12.0.0b3 Python/3.7.0 (Windows-10-10.0.18362-SP0)] - x-ms-blob-type: [BlockBlob] - x-ms-client-request-id: [9850ecb0-e4a0-11e9-adcc-ecb1d756380e] - x-ms-date: ['Tue, 01 Oct 2019 23:10:01 GMT'] - x-ms-version: ['2019-02-02'] + Content-Length: + - '11' + Content-Type: + - application/octet-stream + If-None-Match: + - '*' + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.6.3 (Windows-10-10.0.18362-SP0) + x-ms-blob-type: + - BlockBlob + x-ms-client-request-id: + - 4241a32e-e563-11e9-8bc7-1831bf6ae40e + x-ms-date: + - Wed, 02 Oct 2019 22:23:28 GMT + x-ms-version: + - '2019-02-02' method: PUT uri: https://storagename.blob.core.windows.net/container3d7c19c7/blob1 response: - body: {string: ''} + body: + string: '' headers: - ? !!python/object/new:multidict._istr.istr [Content-Length] + ? !!python/object/new:multidict._istr.istr + - Content-Length : '0' - ? !!python/object/new:multidict._istr.istr [Content-Md5] + ? !!python/object/new:multidict._istr.istr + - Content-Md5 : XrY7u+Ae7tCTyyK7j1rNww== - ? !!python/object/new:multidict._istr.istr [Date] - : Tue, 01 Oct 2019 23:10:01 GMT - ? !!python/object/new:multidict._istr.istr [Etag] - : '"0x8D746C47C8C4EBA"' - ? !!python/object/new:multidict._istr.istr [Last-Modified] - : Tue, 01 Oct 2019 23:10:01 GMT - ? !!python/object/new:multidict._istr.istr [Server] + ? !!python/object/new:multidict._istr.istr + - Date + : Wed, 02 Oct 2019 22:23:27 GMT + ? !!python/object/new:multidict._istr.istr + - Etag + : '"0x8D74787262A10BA"' + ? !!python/object/new:multidict._istr.istr + - Last-Modified + : Wed, 02 Oct 2019 22:23:28 GMT + ? !!python/object/new:multidict._istr.istr + - Server : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 - x-ms-client-request-id: 9850ecb0-e4a0-11e9-adcc-ecb1d756380e x-ms-content-crc64: vo7q9sPVKY0= - x-ms-request-id: b956cbdf-e01e-004f-49ad-78a018000000 + x-ms-request-id: cf6f7db3-c01e-0093-3670-79a455000000 x-ms-request-server-encrypted: 'true' x-ms-version: '2019-02-02' - status: {code: 201, message: Created} + status: + code: 201 + message: Created url: !!python/object/new:yarl.URL state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult [https, amqptest.blob.core.windows.net, - /container3d7c19c7/blob1, '', ''] + - !!python/object/new:urllib.parse.SplitResult + - https + - lmazueltracingtest.blob.core.windows.net + - /container3d7c19c7/blob1 + - '' + - '' - request: body: hello world headers: - Content-Length: ['11'] - Content-Type: [application/octet-stream] - If-None-Match: ['*'] - User-Agent: [azsdk-python-storage-blob/12.0.0b3 Python/3.7.0 (Windows-10-10.0.18362-SP0)] - x-ms-blob-type: [BlockBlob] - x-ms-client-request-id: [985afef8-e4a0-11e9-8796-ecb1d756380e] - x-ms-date: ['Tue, 01 Oct 2019 23:10:01 GMT'] - x-ms-version: ['2019-02-02'] + Content-Length: + - '11' + Content-Type: + - application/octet-stream + If-None-Match: + - '*' + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.6.3 (Windows-10-10.0.18362-SP0) + x-ms-blob-type: + - BlockBlob + x-ms-client-request-id: + - 42483400-e563-11e9-ab85-1831bf6ae40e + x-ms-date: + - Wed, 02 Oct 2019 22:23:28 GMT + x-ms-version: + - '2019-02-02' method: PUT uri: https://storagename.blob.core.windows.net/container3d7c19c7/blob2 response: - body: {string: ''} + body: + string: '' headers: - ? !!python/object/new:multidict._istr.istr [Content-Length] + ? !!python/object/new:multidict._istr.istr + - Content-Length : '0' - ? !!python/object/new:multidict._istr.istr [Content-Md5] + ? !!python/object/new:multidict._istr.istr + - Content-Md5 : XrY7u+Ae7tCTyyK7j1rNww== - ? !!python/object/new:multidict._istr.istr [Date] - : Tue, 01 Oct 2019 23:10:01 GMT - ? !!python/object/new:multidict._istr.istr [Etag] - : '"0x8D746C47C963B99"' - ? !!python/object/new:multidict._istr.istr [Last-Modified] - : Tue, 01 Oct 2019 23:10:01 GMT - ? !!python/object/new:multidict._istr.istr [Server] + ? !!python/object/new:multidict._istr.istr + - Date + : Wed, 02 Oct 2019 22:23:27 GMT + ? !!python/object/new:multidict._istr.istr + - Etag + : '"0x8D7478726300453"' + ? !!python/object/new:multidict._istr.istr + - Last-Modified + : Wed, 02 Oct 2019 22:23:28 GMT + ? !!python/object/new:multidict._istr.istr + - Server : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 - x-ms-client-request-id: 985afef8-e4a0-11e9-8796-ecb1d756380e x-ms-content-crc64: vo7q9sPVKY0= - x-ms-request-id: b956cc01-e01e-004f-67ad-78a018000000 + x-ms-request-id: cf6f7dc9-c01e-0093-4a70-79a455000000 x-ms-request-server-encrypted: 'true' x-ms-version: '2019-02-02' - status: {code: 201, message: Created} + status: + code: 201 + message: Created url: !!python/object/new:yarl.URL state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult [https, amqptest.blob.core.windows.net, - /container3d7c19c7/blob2, '', ''] + - !!python/object/new:urllib.parse.SplitResult + - https + - lmazueltracingtest.blob.core.windows.net + - /container3d7c19c7/blob2 + - '' + - '' - request: body: hello world headers: - Content-Length: ['11'] - Content-Type: [application/octet-stream] - If-None-Match: ['*'] - User-Agent: [azsdk-python-storage-blob/12.0.0b3 Python/3.7.0 (Windows-10-10.0.18362-SP0)] - x-ms-blob-type: [BlockBlob] - x-ms-client-request-id: [986251b6-e4a0-11e9-826b-ecb1d756380e] - x-ms-date: ['Tue, 01 Oct 2019 23:10:01 GMT'] - x-ms-version: ['2019-02-02'] + Content-Length: + - '11' + Content-Type: + - application/octet-stream + If-None-Match: + - '*' + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.6.3 (Windows-10-10.0.18362-SP0) + x-ms-blob-type: + - BlockBlob + x-ms-client-request-id: + - 424eead2-e563-11e9-86cb-1831bf6ae40e + x-ms-date: + - Wed, 02 Oct 2019 22:23:28 GMT + x-ms-version: + - '2019-02-02' method: PUT uri: https://storagename.blob.core.windows.net/container3d7c19c7/blob3 response: - body: {string: ''} + body: + string: '' headers: - ? !!python/object/new:multidict._istr.istr [Content-Length] + ? !!python/object/new:multidict._istr.istr + - Content-Length : '0' - ? !!python/object/new:multidict._istr.istr [Content-Md5] + ? !!python/object/new:multidict._istr.istr + - Content-Md5 : XrY7u+Ae7tCTyyK7j1rNww== - ? !!python/object/new:multidict._istr.istr [Date] - : Tue, 01 Oct 2019 23:10:01 GMT - ? !!python/object/new:multidict._istr.istr [Etag] - : '"0x8D746C47C9D41BC"' - ? !!python/object/new:multidict._istr.istr [Last-Modified] - : Tue, 01 Oct 2019 23:10:01 GMT - ? !!python/object/new:multidict._istr.istr [Server] + ? !!python/object/new:multidict._istr.istr + - Date + : Wed, 02 Oct 2019 22:23:27 GMT + ? !!python/object/new:multidict._istr.istr + - Etag + : '"0x8D7478726375735"' + ? !!python/object/new:multidict._istr.istr + - Last-Modified + : Wed, 02 Oct 2019 22:23:28 GMT + ? !!python/object/new:multidict._istr.istr + - Server : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 - x-ms-client-request-id: 986251b6-e4a0-11e9-826b-ecb1d756380e x-ms-content-crc64: vo7q9sPVKY0= - x-ms-request-id: b956cc18-e01e-004f-7bad-78a018000000 + x-ms-request-id: cf6f7deb-c01e-0093-6a70-79a455000000 x-ms-request-server-encrypted: 'true' x-ms-version: '2019-02-02' - status: {code: 201, message: Created} + status: + code: 201 + message: Created url: !!python/object/new:yarl.URL state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult [https, amqptest.blob.core.windows.net, - /container3d7c19c7/blob3, '', ''] + - !!python/object/new:urllib.parse.SplitResult + - https + - lmazueltracingtest.blob.core.windows.net + - /container3d7c19c7/blob3 + - '' + - '' - request: body: null headers: - User-Agent: [azsdk-python-storage-blob/12.0.0b3 Python/3.7.0 (Windows-10-10.0.18362-SP0)] - content-type: [application/xml; charset=utf-8] - x-ms-client-request-id: [9867f726-e4a0-11e9-9836-ecb1d756380e] - x-ms-date: ['Tue, 01 Oct 2019 23:10:01 GMT'] - x-ms-version: ['2019-02-02'] + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.6.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - 425440e2-e563-11e9-b75c-1831bf6ae40e + x-ms-date: + - Wed, 02 Oct 2019 22:23:28 GMT + x-ms-version: + - '2019-02-02' method: HEAD uri: https://storagename.blob.core.windows.net/container3d7c19c7/blob1 response: - body: {string: ''} + body: + string: '' headers: - ? !!python/object/new:multidict._istr.istr [Accept-Ranges] + ? !!python/object/new:multidict._istr.istr + - Accept-Ranges : bytes - ? !!python/object/new:multidict._istr.istr [Content-Length] + ? !!python/object/new:multidict._istr.istr + - Content-Length : '11' - ? !!python/object/new:multidict._istr.istr [Content-Md5] + ? !!python/object/new:multidict._istr.istr + - Content-Md5 : XrY7u+Ae7tCTyyK7j1rNww== - ? !!python/object/new:multidict._istr.istr [Content-Type] + ? !!python/object/new:multidict._istr.istr + - Content-Type : application/octet-stream - ? !!python/object/new:multidict._istr.istr [Date] - : Tue, 01 Oct 2019 23:10:01 GMT - ? !!python/object/new:multidict._istr.istr [Etag] - : '"0x8D746C47C8C4EBA"' - ? !!python/object/new:multidict._istr.istr [Last-Modified] - : Tue, 01 Oct 2019 23:10:01 GMT - ? !!python/object/new:multidict._istr.istr [Server] + ? !!python/object/new:multidict._istr.istr + - Date + : Wed, 02 Oct 2019 22:23:27 GMT + ? !!python/object/new:multidict._istr.istr + - Etag + : '"0x8D74787262A10BA"' + ? !!python/object/new:multidict._istr.istr + - Last-Modified + : Wed, 02 Oct 2019 22:23:28 GMT + ? !!python/object/new:multidict._istr.istr + - Server : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 - ? !!python/object/new:multidict._istr.istr [Vary] - : Origin x-ms-access-tier: Hot x-ms-access-tier-inferred: 'true' x-ms-blob-type: BlockBlob - x-ms-client-request-id: 9867f726-e4a0-11e9-9836-ecb1d756380e - x-ms-creation-time: Tue, 01 Oct 2019 23:10:01 GMT + x-ms-creation-time: Wed, 02 Oct 2019 22:23:28 GMT x-ms-lease-state: available x-ms-lease-status: unlocked - x-ms-request-id: b956cc2a-e01e-004f-0cad-78a018000000 + x-ms-request-id: cf6f7dfc-c01e-0093-7870-79a455000000 x-ms-server-encrypted: 'true' x-ms-version: '2019-02-02' - status: {code: 200, message: OK} + status: + code: 200 + message: OK url: !!python/object/new:yarl.URL state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult [https, amqptest.blob.core.windows.net, - /container3d7c19c7/blob1, '', ''] + - !!python/object/new:urllib.parse.SplitResult + - https + - lmazueltracingtest.blob.core.windows.net + - /container3d7c19c7/blob1 + - '' + - '' - request: - body: "--===============4154234983532534079==\r\nContent-Type: application/http\r\nContent-Transfer-Encoding: + body: "--===============3644625750107480914==\r\nContent-Type: application/http\r\nContent-Transfer-Encoding: binary\r\nContent-ID: 0\r\n\r\nPUT /container3d7c19c7/blob1?comp=tier HTTP/1.1\r\nContent-Length: - 0\r\nx-ms-access-tier: Hot\r\nx-ms-date: Tue, 01 Oct 2019 23:10:01 GMT\r\nx-ms-client-request-id: - 986d75b4-e4a0-11e9-9ad3-ecb1d756380e\r\ncontent-type: application/xml; charset=utf-8\r\nAuthorization: - SharedKey storagename:P+lR2ZGeuTDxuxJGb08HU1ufi1onbVsE+M2CW0RvaAc=\r\n\r\n\r\n--===============4154234983532534079==\r\nContent-Type: + 0\r\nx-ms-access-tier: Hot\r\nx-ms-date: Wed, 02 Oct 2019 22:23:28 GMT\r\nx-ms-client-request-id: + 42581282-e563-11e9-9a0d-1831bf6ae40e\r\nAuthorization: SharedKey storagename:QgsNLPSUlHKWcHVxeKhc5fpIILU1FTnFarOr0OKVcCI=\r\n\r\n\r\n--===============3644625750107480914==\r\nContent-Type: application/http\r\nContent-Transfer-Encoding: binary\r\nContent-ID: 1\r\n\r\nPUT /container3d7c19c7/blob2?comp=tier HTTP/1.1\r\nContent-Length: 0\r\nx-ms-access-tier: - Hot\r\nx-ms-date: Tue, 01 Oct 2019 23:10:01 GMT\r\nx-ms-client-request-id: 986d75b5-e4a0-11e9-a63a-ecb1d756380e\r\ncontent-type: - application/xml; charset=utf-8\r\nAuthorization: SharedKey storagename:QO52FLTlb8iJanq1zyv0aynQ8FhRlOC38gRBQHdTpGg=\r\n\r\n\r\n--===============4154234983532534079==\r\nContent-Type: + Hot\r\nx-ms-date: Wed, 02 Oct 2019 22:23:28 GMT\r\nx-ms-client-request-id: 42581283-e563-11e9-af68-1831bf6ae40e\r\nAuthorization: + SharedKey storagename:Ur1PygTdI18ZMQx8yABEcy5nYFPJdg3sWtnXyUkA5tY=\r\n\r\n\r\n--===============3644625750107480914==\r\nContent-Type: application/http\r\nContent-Transfer-Encoding: binary\r\nContent-ID: 2\r\n\r\nPUT /container3d7c19c7/blob3?comp=tier HTTP/1.1\r\nContent-Length: 0\r\nx-ms-access-tier: - Hot\r\nx-ms-date: Tue, 01 Oct 2019 23:10:01 GMT\r\nx-ms-client-request-id: 986d9cb0-e4a0-11e9-b5c9-ecb1d756380e\r\ncontent-type: - application/xml; charset=utf-8\r\nAuthorization: SharedKey storagename:IQIUVI1NVLDIV6P0oZWhz76upmmrpjchCma0EKD7SR4=\r\n\r\n\r\n--===============4154234983532534079==--\r\n" - headers: - Content-Length: ['1389'] - Content-Type: [multipart/mixed; boundary================4154234983532534079==] - User-Agent: [azsdk-python-storage-blob/12.0.0b3 Python/3.7.0 (Windows-10-10.0.18362-SP0)] - x-ms-client-request-id: [986e6136-e4a0-11e9-a145-ecb1d756380e] - x-ms-date: ['Tue, 01 Oct 2019 23:10:01 GMT'] - x-ms-version: ['2019-02-02'] + Hot\r\nx-ms-date: Wed, 02 Oct 2019 22:23:28 GMT\r\nx-ms-client-request-id: 42581284-e563-11e9-bc51-1831bf6ae40e\r\nAuthorization: + SharedKey storagename:GevDuLNOOITPLZKzdCtYr0AB0zkl6RRCnv8K+Qes4iE=\r\n\r\n\r\n--===============3644625750107480914==--\r\n" + headers: + Content-Length: + - '1281' + Content-Type: + - multipart/mixed; boundary================3644625750107480914== + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.6.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - 425860ae-e563-11e9-886c-1831bf6ae40e + x-ms-date: + - Wed, 02 Oct 2019 22:23:28 GMT + x-ms-version: + - '2019-02-02' method: POST uri: https://storagename.blob.core.windows.net/?comp=batch response: - body: {string: "--batchresponse_451444be-f4dc-48d3-95c3-3f55247512e8\r\nContent-Type: + body: + string: "--batchresponse_61a4fdde-bf42-46bc-9599-fe615cd22502\r\nContent-Type: application/http\r\nContent-ID: 0\r\n\r\nHTTP/1.1 200 OK\r\nx-ms-request-id: - 16fff382-401e-00e3-5dad-78818f1e0d2f\r\nx-ms-version: 2019-02-02\r\nx-ms-client-request-id: - 986d75b4-e4a0-11e9-9ad3-ecb1d756380e\r\nServer: Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_451444be-f4dc-48d3-95c3-3f55247512e8\r\nContent-Type: + 4f6b1f78-e01e-0060-4470-7903c01ebdbc\r\nx-ms-version: 2019-02-02\r\nx-ms-client-request-id: + 42581282-e563-11e9-9a0d-1831bf6ae40e\r\nServer: Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_61a4fdde-bf42-46bc-9599-fe615cd22502\r\nContent-Type: application/http\r\nContent-ID: 1\r\n\r\nHTTP/1.1 200 OK\r\nx-ms-request-id: - 16fff382-401e-00e3-5dad-78818f1e0d31\r\nx-ms-version: 2019-02-02\r\nx-ms-client-request-id: - 986d75b5-e4a0-11e9-a63a-ecb1d756380e\r\nServer: Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_451444be-f4dc-48d3-95c3-3f55247512e8\r\nContent-Type: + 4f6b1f78-e01e-0060-4470-7903c01ebdbe\r\nx-ms-version: 2019-02-02\r\nx-ms-client-request-id: + 42581283-e563-11e9-af68-1831bf6ae40e\r\nServer: Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_61a4fdde-bf42-46bc-9599-fe615cd22502\r\nContent-Type: application/http\r\nContent-ID: 2\r\n\r\nHTTP/1.1 200 OK\r\nx-ms-request-id: - 16fff382-401e-00e3-5dad-78818f1e0d32\r\nx-ms-version: 2019-02-02\r\nx-ms-client-request-id: - 986d9cb0-e4a0-11e9-b5c9-ecb1d756380e\r\nServer: Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_451444be-f4dc-48d3-95c3-3f55247512e8--"} - headers: - ? !!python/object/new:multidict._istr.istr [Content-Type] - : multipart/mixed; boundary=batchresponse_451444be-f4dc-48d3-95c3-3f55247512e8 - ? !!python/object/new:multidict._istr.istr [Date] - : Tue, 01 Oct 2019 23:10:01 GMT - ? !!python/object/new:multidict._istr.istr [Server] + 4f6b1f78-e01e-0060-4470-7903c01ebdbf\r\nx-ms-version: 2019-02-02\r\nx-ms-client-request-id: + 42581284-e563-11e9-bc51-1831bf6ae40e\r\nServer: Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_61a4fdde-bf42-46bc-9599-fe615cd22502--" + headers: + ? !!python/object/new:multidict._istr.istr + - Content-Type + : multipart/mixed; boundary=batchresponse_61a4fdde-bf42-46bc-9599-fe615cd22502 + ? !!python/object/new:multidict._istr.istr + - Date + : Wed, 02 Oct 2019 22:23:28 GMT + ? !!python/object/new:multidict._istr.istr + - Server : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 - ? !!python/object/new:multidict._istr.istr [Transfer-Encoding] + ? !!python/object/new:multidict._istr.istr + - Transfer-Encoding : chunked - x-ms-client-request-id: 986e6136-e4a0-11e9-a145-ecb1d756380e - x-ms-request-id: 16fff382-401e-00e3-5dad-78818f000000 + x-ms-request-id: 4f6b1f78-e01e-0060-4470-7903c0000000 x-ms-version: '2019-02-02' - status: {code: 202, message: Accepted} + status: + code: 202 + message: Accepted url: !!python/object/new:yarl.URL state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult [https, amqptest.blob.core.windows.net, - /, comp=batch, ''] + - !!python/object/new:urllib.parse.SplitResult + - https + - lmazueltracingtest.blob.core.windows.net + - / + - comp=batch + - '' - request: body: null headers: - User-Agent: [azsdk-python-storage-blob/12.0.0b3 Python/3.7.0 (Windows-10-10.0.18362-SP0)] - content-type: [application/xml; charset=utf-8] - x-ms-client-request-id: [98971d82-e4a0-11e9-b8ce-ecb1d756380e] - x-ms-date: ['Tue, 01 Oct 2019 23:10:01 GMT'] - x-ms-version: ['2019-02-02'] + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.6.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - 42696738-e563-11e9-bd6c-1831bf6ae40e + x-ms-date: + - Wed, 02 Oct 2019 22:23:29 GMT + x-ms-version: + - '2019-02-02' method: HEAD uri: https://storagename.blob.core.windows.net/container3d7c19c7/blob1 response: - body: {string: ''} + body: + string: '' headers: - ? !!python/object/new:multidict._istr.istr [Accept-Ranges] + ? !!python/object/new:multidict._istr.istr + - Accept-Ranges : bytes - ? !!python/object/new:multidict._istr.istr [Content-Length] + ? !!python/object/new:multidict._istr.istr + - Content-Length : '11' - ? !!python/object/new:multidict._istr.istr [Content-Md5] + ? !!python/object/new:multidict._istr.istr + - Content-Md5 : XrY7u+Ae7tCTyyK7j1rNww== - ? !!python/object/new:multidict._istr.istr [Content-Type] + ? !!python/object/new:multidict._istr.istr + - Content-Type : application/octet-stream - ? !!python/object/new:multidict._istr.istr [Date] - : Tue, 01 Oct 2019 23:10:01 GMT - ? !!python/object/new:multidict._istr.istr [Etag] - : '"0x8D746C47C8C4EBA"' - ? !!python/object/new:multidict._istr.istr [Last-Modified] - : Tue, 01 Oct 2019 23:10:01 GMT - ? !!python/object/new:multidict._istr.istr [Server] + ? !!python/object/new:multidict._istr.istr + - Date + : Wed, 02 Oct 2019 22:23:28 GMT + ? !!python/object/new:multidict._istr.istr + - Etag + : '"0x8D74787262A10BA"' + ? !!python/object/new:multidict._istr.istr + - Last-Modified + : Wed, 02 Oct 2019 22:23:28 GMT + ? !!python/object/new:multidict._istr.istr + - Server : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 - ? !!python/object/new:multidict._istr.istr [Vary] - : Origin x-ms-access-tier: Hot - x-ms-access-tier-change-time: Tue, 01 Oct 2019 23:10:01 GMT + x-ms-access-tier-change-time: Wed, 02 Oct 2019 22:23:28 GMT x-ms-blob-type: BlockBlob - x-ms-client-request-id: 98971d82-e4a0-11e9-b8ce-ecb1d756380e - x-ms-creation-time: Tue, 01 Oct 2019 23:10:01 GMT + x-ms-creation-time: Wed, 02 Oct 2019 22:23:28 GMT x-ms-lease-state: available x-ms-lease-status: unlocked - x-ms-request-id: 16fff413-401e-00e3-67ad-78818f000000 + x-ms-request-id: 4f6b1f81-e01e-0060-4c70-7903c0000000 x-ms-server-encrypted: 'true' x-ms-version: '2019-02-02' - status: {code: 200, message: OK} + status: + code: 200 + message: OK url: !!python/object/new:yarl.URL state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult [https, amqptest.blob.core.windows.net, - /container3d7c19c7/blob1, '', ''] + - !!python/object/new:urllib.parse.SplitResult + - https + - lmazueltracingtest.blob.core.windows.net + - /container3d7c19c7/blob1 + - '' + - '' - request: - body: "--===============0303446948136156878==\r\nContent-Type: application/http\r\nContent-Transfer-Encoding: + body: "--===============7385144878769807392==\r\nContent-Type: application/http\r\nContent-Transfer-Encoding: binary\r\nContent-ID: 0\r\n\r\nDELETE /container3d7c19c7/blob1? HTTP/1.1\r\nx-ms-date: - Tue, 01 Oct 2019 23:10:01 GMT\r\nx-ms-client-request-id: 989d6006-e4a0-11e9-8e31-ecb1d756380e\r\ncontent-type: - application/xml; charset=utf-8\r\nAuthorization: SharedKey storagename:o+jcMSnVd1TyMk+lnbDoDbtDUY8t1yzwvY+usyC98z8=\r\n\r\n\r\n--===============0303446948136156878==\r\nContent-Type: + Wed, 02 Oct 2019 22:23:29 GMT\r\nx-ms-client-request-id: 426ea412-e563-11e9-b997-1831bf6ae40e\r\nAuthorization: + SharedKey storagename:Y6nnh/gNF7EjSda0utFfzh2E2ZpO/N8YOjGxeOBOv0Q=\r\n\r\n\r\n--===============7385144878769807392==\r\nContent-Type: application/http\r\nContent-Transfer-Encoding: binary\r\nContent-ID: 1\r\n\r\nDELETE - /container3d7c19c7/blob2? HTTP/1.1\r\nx-ms-date: Tue, 01 Oct 2019 23:10:01 GMT\r\nx-ms-client-request-id: - 989d8712-e4a0-11e9-b5a3-ecb1d756380e\r\ncontent-type: application/xml; charset=utf-8\r\nAuthorization: - SharedKey storagename:YesAvDsCk08m06exa+FdcDiM1b36/Xoxw0wyiFs0sZ0=\r\n\r\n\r\n--===============0303446948136156878==\r\nContent-Type: + /container3d7c19c7/blob2? HTTP/1.1\r\nx-ms-date: Wed, 02 Oct 2019 22:23:29 GMT\r\nx-ms-client-request-id: + 426ea413-e563-11e9-a72f-1831bf6ae40e\r\nAuthorization: SharedKey storagename:yEVkjI5dQ184NhJYEBSiH8kbzD5tUbH5tt/4s7HE8fU=\r\n\r\n\r\n--===============7385144878769807392==\r\nContent-Type: application/http\r\nContent-Transfer-Encoding: binary\r\nContent-ID: 2\r\n\r\nDELETE - /container3d7c19c7/blob3? HTTP/1.1\r\nx-ms-date: Tue, 01 Oct 2019 23:10:01 GMT\r\nx-ms-client-request-id: - 989dad7e-e4a0-11e9-a9d3-ecb1d756380e\r\ncontent-type: application/xml; charset=utf-8\r\nAuthorization: - SharedKey storagename:y7/27Jph/zr6aSev+3RMHaeKcgyJ0JmnFweKRBQ1/uw=\r\n\r\n\r\n--===============0303446948136156878==--\r\n" - headers: - Content-Length: ['1245'] - Content-Type: [multipart/mixed; boundary================0303446948136156878==] - User-Agent: [azsdk-python-storage-blob/12.0.0b3 Python/3.7.0 (Windows-10-10.0.18362-SP0)] - x-ms-client-request-id: [989e717e-e4a0-11e9-b2d5-ecb1d756380e] - x-ms-date: ['Tue, 01 Oct 2019 23:10:01 GMT'] - x-ms-version: ['2019-02-02'] + /container3d7c19c7/blob3? HTTP/1.1\r\nx-ms-date: Wed, 02 Oct 2019 22:23:29 GMT\r\nx-ms-client-request-id: + 426e7d12-e563-11e9-8c7e-1831bf6ae40e\r\nAuthorization: SharedKey storagename:x6ItiaLDwGUdh0HbmO57899ObdyyOnC+1jEprXYg1/g=\r\n\r\n\r\n--===============7385144878769807392==--\r\n" + headers: + Content-Length: + - '1137' + Content-Type: + - multipart/mixed; boundary================7385144878769807392== + User-Agent: + - azsdk-python-storage-blob/12.0.0b4 Python/3.6.3 (Windows-10-10.0.18362-SP0) + x-ms-client-request-id: + - 426ecb28-e563-11e9-9cf8-1831bf6ae40e + x-ms-date: + - Wed, 02 Oct 2019 22:23:29 GMT + x-ms-version: + - '2019-02-02' method: POST uri: https://storagename.blob.core.windows.net/?comp=batch response: - body: {string: "--batchresponse_0d6bbee1-3594-4d36-abf8-ed51e31115ba\r\nContent-Type: + body: + string: "--batchresponse_78555a90-7773-43c3-b204-88eacc5bba40\r\nContent-Type: application/http\r\nContent-ID: 0\r\n\r\nHTTP/1.1 202 Accepted\r\nx-ms-delete-type-permanent: - true\r\nx-ms-request-id: 5953bba1-401e-000d-4dad-788b0c1ea85c\r\nx-ms-version: - 2019-02-02\r\nx-ms-client-request-id: 989d6006-e4a0-11e9-8e31-ecb1d756380e\r\nServer: - Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_0d6bbee1-3594-4d36-abf8-ed51e31115ba\r\nContent-Type: + true\r\nx-ms-request-id: 7ca34ad1-e01e-0002-4c70-79c1e71eed6f\r\nx-ms-version: + 2019-02-02\r\nx-ms-client-request-id: 426ea412-e563-11e9-b997-1831bf6ae40e\r\nServer: + Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_78555a90-7773-43c3-b204-88eacc5bba40\r\nContent-Type: application/http\r\nContent-ID: 1\r\n\r\nHTTP/1.1 202 Accepted\r\nx-ms-delete-type-permanent: - true\r\nx-ms-request-id: 5953bba1-401e-000d-4dad-788b0c1ea85e\r\nx-ms-version: - 2019-02-02\r\nx-ms-client-request-id: 989d8712-e4a0-11e9-b5a3-ecb1d756380e\r\nServer: - Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_0d6bbee1-3594-4d36-abf8-ed51e31115ba\r\nContent-Type: + true\r\nx-ms-request-id: 7ca34ad1-e01e-0002-4c70-79c1e71eed71\r\nx-ms-version: + 2019-02-02\r\nx-ms-client-request-id: 426ea413-e563-11e9-a72f-1831bf6ae40e\r\nServer: + Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_78555a90-7773-43c3-b204-88eacc5bba40\r\nContent-Type: application/http\r\nContent-ID: 2\r\n\r\nHTTP/1.1 202 Accepted\r\nx-ms-delete-type-permanent: - true\r\nx-ms-request-id: 5953bba1-401e-000d-4dad-788b0c1ea85f\r\nx-ms-version: - 2019-02-02\r\nx-ms-client-request-id: 989dad7e-e4a0-11e9-a9d3-ecb1d756380e\r\nServer: - Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_0d6bbee1-3594-4d36-abf8-ed51e31115ba--"} - headers: - ? !!python/object/new:multidict._istr.istr [Content-Type] - : multipart/mixed; boundary=batchresponse_0d6bbee1-3594-4d36-abf8-ed51e31115ba - ? !!python/object/new:multidict._istr.istr [Date] - : Tue, 01 Oct 2019 23:10:01 GMT - ? !!python/object/new:multidict._istr.istr [Server] + true\r\nx-ms-request-id: 7ca34ad1-e01e-0002-4c70-79c1e71eed72\r\nx-ms-version: + 2019-02-02\r\nx-ms-client-request-id: 426e7d12-e563-11e9-8c7e-1831bf6ae40e\r\nServer: + Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_78555a90-7773-43c3-b204-88eacc5bba40--" + headers: + ? !!python/object/new:multidict._istr.istr + - Content-Type + : multipart/mixed; boundary=batchresponse_78555a90-7773-43c3-b204-88eacc5bba40 + ? !!python/object/new:multidict._istr.istr + - Date + : Wed, 02 Oct 2019 22:23:28 GMT + ? !!python/object/new:multidict._istr.istr + - Server : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 - ? !!python/object/new:multidict._istr.istr [Transfer-Encoding] + ? !!python/object/new:multidict._istr.istr + - Transfer-Encoding : chunked - x-ms-client-request-id: 989e717e-e4a0-11e9-b2d5-ecb1d756380e - x-ms-request-id: 5953bba1-401e-000d-4dad-788b0c000000 + x-ms-request-id: 7ca34ad1-e01e-0002-4c70-79c1e7000000 x-ms-version: '2019-02-02' - status: {code: 202, message: Accepted} + status: + code: 202 + message: Accepted url: !!python/object/new:yarl.URL state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult [https, amqptest.blob.core.windows.net, - /, comp=batch, ''] + - !!python/object/new:urllib.parse.SplitResult + - https + - lmazueltracingtest.blob.core.windows.net + - / + - comp=batch + - '' version: 1 From 15dbbd8746d4e60d25a4845aeb77f21c29773226 Mon Sep 17 00:00:00 2001 From: Laurent Mazuel Date: Wed, 2 Oct 2019 16:00:33 -0700 Subject: [PATCH 17/21] Pass kwargs to batch --- .../azure/storage/blob/_shared/base_client.py | 5 +++-- .../storage/blob/_shared/base_client_async.py | 6 ++++-- .../storage/blob/aio/container_client_async.py | 18 +++++++++++++++--- .../azure/storage/blob/container_client.py | 18 +++++++++++++++--- 4 files changed, 37 insertions(+), 10 deletions(-) diff --git a/sdk/storage/azure-storage-blob/azure/storage/blob/_shared/base_client.py b/sdk/storage/azure-storage-blob/azure/storage/blob/_shared/base_client.py index f784ac130cf9..91205c8f3fdb 100644 --- a/sdk/storage/azure-storage-blob/azure/storage/blob/_shared/base_client.py +++ b/sdk/storage/azure-storage-blob/azure/storage/blob/_shared/base_client.py @@ -184,7 +184,8 @@ def _create_pipeline(self, credential, **kwargs): return config, Pipeline(config.transport, policies=policies) def _batch_send( - self, *reqs # type: HttpRequest + self, *reqs, # type: HttpRequest + **kwargs ): """Given a series of request, do a Storage batch call. """ @@ -204,7 +205,7 @@ def _batch_send( ) pipeline_response = self._pipeline.run( - request, + request, **kwargs ) response = pipeline_response.http_response diff --git a/sdk/storage/azure-storage-blob/azure/storage/blob/_shared/base_client_async.py b/sdk/storage/azure-storage-blob/azure/storage/blob/_shared/base_client_async.py index bdcaba15d86f..e76fad464878 100644 --- a/sdk/storage/azure-storage-blob/azure/storage/blob/_shared/base_client_async.py +++ b/sdk/storage/azure-storage-blob/azure/storage/blob/_shared/base_client_async.py @@ -34,6 +34,7 @@ if TYPE_CHECKING: from azure.core.pipeline import Pipeline + from azure.core.pipeline.transport import HttpRequest from azure.core import Configuration _LOGGER = logging.getLogger(__name__) @@ -92,7 +93,8 @@ def _create_pipeline(self, credential, **kwargs): return config, AsyncPipeline(config.transport, policies=policies) async def _batch_send( - self, *reqs # type: HttpRequest + self, *reqs: 'HttpRequest', + **kwargs ): """Given a series of request, do a Storage batch call. """ @@ -112,7 +114,7 @@ async def _batch_send( ) pipeline_response = await self._pipeline.run( - request, + request, **kwargs ) response = pipeline_response.http_response diff --git a/sdk/storage/azure-storage-blob/azure/storage/blob/aio/container_client_async.py b/sdk/storage/azure-storage-blob/azure/storage/blob/aio/container_client_async.py index 177fe029aa01..9bb657a3cdb9 100644 --- a/sdk/storage/azure-storage-blob/azure/storage/blob/aio/container_client_async.py +++ b/sdk/storage/azure-storage-blob/azure/storage/blob/aio/container_client_async.py @@ -846,6 +846,10 @@ async def delete_blobs( **kwargs ) query_parameters, header_parameters = self._generate_delete_blobs_options(**options) + # To pass kwargs to "_batch_send", we need to remove anything that was + # in the Autorest signature for Autorest, otherwise transport will be upset + for possible_param in ['timeout', 'delete_snapshots', 'lease_access_conditions', 'modified_access_conditions']: + options.pop(possible_param, None) reqs = [] for blob in blobs: @@ -857,7 +861,7 @@ async def delete_blobs( req.format_parameters(query_parameters) reqs.append(req) - return await self._batch_send(*reqs) + return await self._batch_send(*reqs, **options) @distributed_trace async def set_standard_blob_tier_blobs( @@ -898,6 +902,10 @@ async def set_standard_blob_tier_blobs( lease_access_conditions=access_conditions, **kwargs ) + # To pass kwargs to "_batch_send", we need to remove anything that was + # in the Autorest signature for Autorest, otherwise transport will be upset + for possible_param in ['timeout', 'lease']: + kwargs.pop(possible_param, None) reqs = [] for blob in blobs: @@ -909,7 +917,7 @@ async def set_standard_blob_tier_blobs( req.format_parameters(query_parameters) reqs.append(req) - return await self._batch_send(*reqs) + return await self._batch_send(*reqs, **kwargs) @distributed_trace async def set_premium_page_blob_tier_blobs( @@ -946,6 +954,10 @@ async def set_premium_page_blob_tier_blobs( lease_access_conditions=access_conditions, **kwargs ) + # To pass kwargs to "_batch_send", we need to remove anything that was + # in the Autorest signature for Autorest, otherwise transport will be upset + for possible_param in ['timeout', 'lease']: + kwargs.pop(possible_param, None) reqs = [] for blob in blobs: @@ -957,7 +969,7 @@ async def set_premium_page_blob_tier_blobs( req.format_parameters(query_parameters) reqs.append(req) - return await self._batch_send(*reqs) + return await self._batch_send(*reqs, **kwargs) def get_blob_client( self, blob, # type: Union[str, BlobProperties] diff --git a/sdk/storage/azure-storage-blob/azure/storage/blob/container_client.py b/sdk/storage/azure-storage-blob/azure/storage/blob/container_client.py index 1163b76ef0eb..f90c248fb99d 100644 --- a/sdk/storage/azure-storage-blob/azure/storage/blob/container_client.py +++ b/sdk/storage/azure-storage-blob/azure/storage/blob/container_client.py @@ -1055,6 +1055,10 @@ def delete_blobs(self, *blobs, **kwargs): **kwargs ) query_parameters, header_parameters = self._generate_delete_blobs_options(**options) + # To pass kwargs to "_batch_send", we need to remove anything that was + # in the Autorest signature for Autorest, otherwise transport will be upset + for possible_param in ['timeout', 'delete_snapshots', 'lease_access_conditions', 'modified_access_conditions']: + options.pop(possible_param, None) reqs = [] for blob in blobs: @@ -1066,7 +1070,7 @@ def delete_blobs(self, *blobs, **kwargs): req.format_parameters(query_parameters) reqs.append(req) - return self._batch_send(*reqs) + return self._batch_send(*reqs, **options) def _generate_set_tier_options(self, tier, timeout=None, rehydrate_priority=None, request_id=None, lease_access_conditions=None): """This code is a copy from _generated. Once Autorest is able to provide request preparation this code should be removed""" @@ -1134,6 +1138,10 @@ def set_standard_blob_tier_blobs( lease_access_conditions=access_conditions, **kwargs ) + # To pass kwargs to "_batch_send", we need to remove anything that was + # in the Autorest signature for Autorest, otherwise transport will be upset + for possible_param in ['timeout', 'lease']: + kwargs.pop(possible_param, None) reqs = [] for blob in blobs: @@ -1145,7 +1153,7 @@ def set_standard_blob_tier_blobs( req.format_parameters(query_parameters) reqs.append(req) - return self._batch_send(*reqs) + return self._batch_send(*reqs, **kwargs) @distributed_trace def set_premium_page_blob_tier_blobs( @@ -1183,6 +1191,10 @@ def set_premium_page_blob_tier_blobs( lease_access_conditions=access_conditions, **kwargs ) + # To pass kwargs to "_batch_send", we need to remove anything that was + # in the Autorest signature for Autorest, otherwise transport will be upset + for possible_param in ['timeout', 'lease']: + kwargs.pop(possible_param, None) reqs = [] for blob in blobs: @@ -1194,7 +1206,7 @@ def set_premium_page_blob_tier_blobs( req.format_parameters(query_parameters) reqs.append(req) - return self._batch_send(*reqs) + return self._batch_send(*reqs, **kwargs) def get_blob_client( self, blob, # type: Union[str, BlobProperties] From fce180cb0671ab5c220cd3e6249bca312a647092 Mon Sep 17 00:00:00 2001 From: Laurent Mazuel Date: Wed, 2 Oct 2019 16:35:13 -0700 Subject: [PATCH 18/21] Clean x-ms-client-request-id from body if multipart response --- ...st_container.test_delete_blobs_simple.yaml | 91 ++-- ..._container.test_delete_blobs_snapshot.yaml | 159 +++--- ...standard_blob_tier_set_tier_api_batch.yaml | 514 +++++++++--------- ...tainer_async.test_delete_blobs_simple.yaml | 91 ++-- ...iner_async.test_delete_blobs_snapshot.yaml | 159 +++--- ...standard_blob_tier_set_tier_api_batch.yaml | 459 ++++++++-------- .../tests/test_container.py | 1 + .../azure-storage-blob/tests/testcase.py | 7 + 8 files changed, 728 insertions(+), 753 deletions(-) diff --git a/sdk/storage/azure-storage-blob/tests/recordings/test_container.test_delete_blobs_simple.yaml b/sdk/storage/azure-storage-blob/tests/recordings/test_container.test_delete_blobs_simple.yaml index f414d105a69b..2c9dc6710d1b 100644 --- a/sdk/storage/azure-storage-blob/tests/recordings/test_container.test_delete_blobs_simple.yaml +++ b/sdk/storage/azure-storage-blob/tests/recordings/test_container.test_delete_blobs_simple.yaml @@ -13,9 +13,9 @@ interactions: User-Agent: - azsdk-python-storage-blob/12.0.0b4 Python/3.6.3 (Windows-10-10.0.18362-SP0) x-ms-client-request-id: - - 1f1c7a9c-e562-11e9-a217-1831bf6ae40e + - 404c268a-e56c-11e9-8565-1831bf6ae40e x-ms-date: - - Wed, 02 Oct 2019 22:15:20 GMT + - Wed, 02 Oct 2019 23:27:50 GMT x-ms-version: - '2019-02-02' method: PUT @@ -27,15 +27,15 @@ interactions: Content-Length: - '0' Date: - - Wed, 02 Oct 2019 22:15:19 GMT + - Wed, 02 Oct 2019 23:27:49 GMT ETag: - - '"0x8D747860324DED7"' + - '"0x8D74790244CD3F2"' Last-Modified: - - Wed, 02 Oct 2019 22:15:20 GMT + - Wed, 02 Oct 2019 23:27:50 GMT Server: - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 x-ms-request-id: - - bbff4dbe-c01e-002a-7f6e-79a04f000000 + - 2e9c4a7f-501e-0091-3f79-791aed000000 x-ms-version: - '2019-02-02' status: @@ -61,9 +61,9 @@ interactions: x-ms-blob-type: - BlockBlob x-ms-client-request-id: - - 1f42155a-e562-11e9-a95f-1831bf6ae40e + - 406fbe28-e56c-11e9-932e-1831bf6ae40e x-ms-date: - - Wed, 02 Oct 2019 22:15:20 GMT + - Wed, 02 Oct 2019 23:27:51 GMT x-ms-version: - '2019-02-02' method: PUT @@ -77,17 +77,17 @@ interactions: Content-MD5: - XrY7u+Ae7tCTyyK7j1rNww== Date: - - Wed, 02 Oct 2019 22:15:19 GMT + - Wed, 02 Oct 2019 23:27:49 GMT ETag: - - '"0x8D74786032B5F68"' + - '"0x8D747902454372A"' Last-Modified: - - Wed, 02 Oct 2019 22:15:20 GMT + - Wed, 02 Oct 2019 23:27:50 GMT Server: - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 x-ms-content-crc64: - vo7q9sPVKY0= x-ms-request-id: - - bbff4dd5-c01e-002a-146e-79a04f000000 + - 2e9c4aa6-501e-0091-6479-791aed000000 x-ms-request-server-encrypted: - 'true' x-ms-version: @@ -115,9 +115,9 @@ interactions: x-ms-blob-type: - BlockBlob x-ms-client-request-id: - - 1f48408c-e562-11e9-9372-1831bf6ae40e + - 407647f0-e56c-11e9-a9ed-1831bf6ae40e x-ms-date: - - Wed, 02 Oct 2019 22:15:20 GMT + - Wed, 02 Oct 2019 23:27:51 GMT x-ms-version: - '2019-02-02' method: PUT @@ -131,17 +131,17 @@ interactions: Content-MD5: - XrY7u+Ae7tCTyyK7j1rNww== Date: - - Wed, 02 Oct 2019 22:15:19 GMT + - Wed, 02 Oct 2019 23:27:49 GMT ETag: - - '"0x8D747860331A108"' + - '"0x8D74790245C9BA3"' Last-Modified: - - Wed, 02 Oct 2019 22:15:20 GMT + - Wed, 02 Oct 2019 23:27:50 GMT Server: - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 x-ms-content-crc64: - vo7q9sPVKY0= x-ms-request-id: - - bbff4e05-c01e-002a-3f6e-79a04f000000 + - 2e9c4abf-501e-0091-7979-791aed000000 x-ms-request-server-encrypted: - 'true' x-ms-version: @@ -169,9 +169,9 @@ interactions: x-ms-blob-type: - BlockBlob x-ms-client-request-id: - - 1f4e82e2-e562-11e9-93ee-1831bf6ae40e + - 407ed140-e56c-11e9-a07b-1831bf6ae40e x-ms-date: - - Wed, 02 Oct 2019 22:15:20 GMT + - Wed, 02 Oct 2019 23:27:51 GMT x-ms-version: - '2019-02-02' method: PUT @@ -185,17 +185,17 @@ interactions: Content-MD5: - XrY7u+Ae7tCTyyK7j1rNww== Date: - - Wed, 02 Oct 2019 22:15:19 GMT + - Wed, 02 Oct 2019 23:27:50 GMT ETag: - - '"0x8D747860337BBAE"' + - '"0x8D7479024632B6A"' Last-Modified: - - Wed, 02 Oct 2019 22:15:20 GMT + - Wed, 02 Oct 2019 23:27:50 GMT Server: - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 x-ms-content-crc64: - vo7q9sPVKY0= x-ms-request-id: - - bbff4e3b-c01e-002a-746e-79a04f000000 + - 2e9c4af0-501e-0091-2979-791aed000000 x-ms-request-server-encrypted: - 'true' x-ms-version: @@ -204,16 +204,16 @@ interactions: code: 201 message: Created - request: - body: "--===============6509041723044035282==\r\nContent-Type: application/http\r\nContent-Transfer-Encoding: + body: "--===============8911883992722617746==\r\nContent-Type: application/http\r\nContent-Transfer-Encoding: binary\r\nContent-ID: 0\r\n\r\nDELETE /container40320ffd/blob1? HTTP/1.1\r\nx-ms-date: - Wed, 02 Oct 2019 22:15:20 GMT\r\nx-ms-client-request-id: 1f542b48-e562-11e9-9202-1831bf6ae40e\r\nAuthorization: - SharedKey storagename:7rPWaFC2nZeFSbNHp9HtPRtsVJxAJpQ7yBBFYTvwQWY=\r\n\r\n\r\n--===============6509041723044035282==\r\nContent-Type: + Wed, 02 Oct 2019 23:27:51 GMT\r\nx-ms-client-request-id: 4084db54-e56c-11e9-8797-1831bf6ae40e\r\nAuthorization: + SharedKey storagename:vyDpAPz8TaXR5sTt3LaoLLZmDXEuhJCky86GVPIOmUQ=\r\n\r\n\r\n--===============8911883992722617746==\r\nContent-Type: application/http\r\nContent-Transfer-Encoding: binary\r\nContent-ID: 1\r\n\r\nDELETE - /container40320ffd/blob2? HTTP/1.1\r\nx-ms-date: Wed, 02 Oct 2019 22:15:20 GMT\r\nx-ms-client-request-id: - 1f542b49-e562-11e9-9a21-1831bf6ae40e\r\nAuthorization: SharedKey storagename:TuUlIAslJziZiKLOxP9EO6eGmji4hR+qjmi35jvUtMc=\r\n\r\n\r\n--===============6509041723044035282==\r\nContent-Type: + /container40320ffd/blob2? HTTP/1.1\r\nx-ms-date: Wed, 02 Oct 2019 23:27:51 GMT\r\nx-ms-client-request-id: + 40850146-e56c-11e9-8a70-1831bf6ae40e\r\nAuthorization: SharedKey storagename:yRlN32wb+MK7DXJp1qPrhLOncARuDUUjzwsNRKqe/LI=\r\n\r\n\r\n--===============8911883992722617746==\r\nContent-Type: application/http\r\nContent-Transfer-Encoding: binary\r\nContent-ID: 2\r\n\r\nDELETE - /container40320ffd/blob3? HTTP/1.1\r\nx-ms-date: Wed, 02 Oct 2019 22:15:20 GMT\r\nx-ms-client-request-id: - 1f545258-e562-11e9-83d3-1831bf6ae40e\r\nAuthorization: SharedKey storagename:mvIny/22JTFGeQv4CwhkRT1PbaqRDoKMZ/J25v8VdK4=\r\n\r\n\r\n--===============6509041723044035282==--\r\n" + /container40320ffd/blob3? HTTP/1.1\r\nx-ms-date: Wed, 02 Oct 2019 23:27:51 GMT\r\nx-ms-client-request-id: + 40850147-e56c-11e9-b3d9-1831bf6ae40e\r\nAuthorization: SharedKey storagename:qhPtekve+yBJAtzJnPsoS3E2IdK2867mUsw6226fKOo=\r\n\r\n\r\n--===============8911883992722617746==--\r\n" headers: Accept: - '*/*' @@ -224,43 +224,40 @@ interactions: Content-Length: - '1137' Content-Type: - - multipart/mixed; boundary================6509041723044035282== + - multipart/mixed; boundary================8911883992722617746== User-Agent: - azsdk-python-storage-blob/12.0.0b4 Python/3.6.3 (Windows-10-10.0.18362-SP0) x-ms-client-request-id: - - 1f553e90-e562-11e9-8dbd-1831bf6ae40e + - 408613dc-e56c-11e9-9685-1831bf6ae40e x-ms-date: - - Wed, 02 Oct 2019 22:15:20 GMT + - Wed, 02 Oct 2019 23:27:51 GMT x-ms-version: - '2019-02-02' method: POST uri: https://storagename.blob.core.windows.net/?comp=batch response: body: - string: "--batchresponse_a09acdaf-0ce4-4577-9b1a-0cc7bceb37be\r\nContent-Type: + string: "--batchresponse_f0656806-c881-4025-8bba-603c1f075aa8\r\nContent-Type: application/http\r\nContent-ID: 0\r\n\r\nHTTP/1.1 202 Accepted\r\nx-ms-delete-type-permanent: - true\r\nx-ms-request-id: bbff4e5b-c01e-002a-126e-79a04f1e1cf3\r\nx-ms-version: - 2019-02-02\r\nx-ms-client-request-id: 1f542b48-e562-11e9-9202-1831bf6ae40e\r\nServer: - Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_a09acdaf-0ce4-4577-9b1a-0cc7bceb37be\r\nContent-Type: + true\r\nx-ms-request-id: 2e9c4b1c-501e-0091-5379-791aed1e2d9f\r\nx-ms-version: + 2019-02-02\r\nServer: Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_f0656806-c881-4025-8bba-603c1f075aa8\r\nContent-Type: application/http\r\nContent-ID: 1\r\n\r\nHTTP/1.1 202 Accepted\r\nx-ms-delete-type-permanent: - true\r\nx-ms-request-id: bbff4e5b-c01e-002a-126e-79a04f1e1cf5\r\nx-ms-version: - 2019-02-02\r\nx-ms-client-request-id: 1f542b49-e562-11e9-9a21-1831bf6ae40e\r\nServer: - Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_a09acdaf-0ce4-4577-9b1a-0cc7bceb37be\r\nContent-Type: + true\r\nx-ms-request-id: 2e9c4b1c-501e-0091-5379-791aed1e2da1\r\nx-ms-version: + 2019-02-02\r\nServer: Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_f0656806-c881-4025-8bba-603c1f075aa8\r\nContent-Type: application/http\r\nContent-ID: 2\r\n\r\nHTTP/1.1 202 Accepted\r\nx-ms-delete-type-permanent: - true\r\nx-ms-request-id: bbff4e5b-c01e-002a-126e-79a04f1e1cf6\r\nx-ms-version: - 2019-02-02\r\nx-ms-client-request-id: 1f545258-e562-11e9-83d3-1831bf6ae40e\r\nServer: - Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_a09acdaf-0ce4-4577-9b1a-0cc7bceb37be--" + true\r\nx-ms-request-id: 2e9c4b1c-501e-0091-5379-791aed1e2da2\r\nx-ms-version: + 2019-02-02\r\nServer: Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_f0656806-c881-4025-8bba-603c1f075aa8--" headers: Content-Type: - - multipart/mixed; boundary=batchresponse_a09acdaf-0ce4-4577-9b1a-0cc7bceb37be + - multipart/mixed; boundary=batchresponse_f0656806-c881-4025-8bba-603c1f075aa8 Date: - - Wed, 02 Oct 2019 22:15:20 GMT + - Wed, 02 Oct 2019 23:27:50 GMT Server: - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 Transfer-Encoding: - chunked x-ms-request-id: - - bbff4e5b-c01e-002a-126e-79a04f000000 + - 2e9c4b1c-501e-0091-5379-791aed000000 x-ms-version: - '2019-02-02' status: diff --git a/sdk/storage/azure-storage-blob/tests/recordings/test_container.test_delete_blobs_snapshot.yaml b/sdk/storage/azure-storage-blob/tests/recordings/test_container.test_delete_blobs_snapshot.yaml index 4e1711b6e33f..bf44adbf971b 100644 --- a/sdk/storage/azure-storage-blob/tests/recordings/test_container.test_delete_blobs_snapshot.yaml +++ b/sdk/storage/azure-storage-blob/tests/recordings/test_container.test_delete_blobs_snapshot.yaml @@ -13,9 +13,9 @@ interactions: User-Agent: - azsdk-python-storage-blob/12.0.0b4 Python/3.6.3 (Windows-10-10.0.18362-SP0) x-ms-client-request-id: - - eb058370-e562-11e9-9516-1831bf6ae40e + - 40b10828-e56c-11e9-b82e-1831bf6ae40e x-ms-date: - - Wed, 02 Oct 2019 22:21:02 GMT + - Wed, 02 Oct 2019 23:27:51 GMT x-ms-version: - '2019-02-02' method: PUT @@ -27,15 +27,15 @@ interactions: Content-Length: - '0' Date: - - Wed, 02 Oct 2019 22:21:01 GMT + - Wed, 02 Oct 2019 23:27:50 GMT ETag: - - '"0x8D74786CF093025"' + - '"0x8D7479024A3C2B8"' Last-Modified: - - Wed, 02 Oct 2019 22:21:02 GMT + - Wed, 02 Oct 2019 23:27:51 GMT Server: - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 x-ms-request-id: - - 79046f8d-e01e-00ab-356f-790095000000 + - a9ba22f4-f01e-000e-1079-7956ef000000 x-ms-version: - '2019-02-02' status: @@ -61,9 +61,9 @@ interactions: x-ms-blob-type: - BlockBlob x-ms-client-request-id: - - eb26ec82-e562-11e9-89e7-1831bf6ae40e + - 40c694ba-e56c-11e9-8ad0-1831bf6ae40e x-ms-date: - - Wed, 02 Oct 2019 22:21:02 GMT + - Wed, 02 Oct 2019 23:27:51 GMT x-ms-version: - '2019-02-02' method: PUT @@ -77,17 +77,17 @@ interactions: Content-MD5: - XrY7u+Ae7tCTyyK7j1rNww== Date: - - Wed, 02 Oct 2019 22:21:01 GMT + - Wed, 02 Oct 2019 23:27:50 GMT ETag: - - '"0x8D74786CF0FC4DA"' + - '"0x8D7479024A9838C"' Last-Modified: - - Wed, 02 Oct 2019 22:21:02 GMT + - Wed, 02 Oct 2019 23:27:51 GMT Server: - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 x-ms-content-crc64: - vo7q9sPVKY0= x-ms-request-id: - - 79046fa0-e01e-00ab-466f-790095000000 + - a9ba2317-f01e-000e-2d79-7956ef000000 x-ms-request-server-encrypted: - 'true' x-ms-version: @@ -109,9 +109,9 @@ interactions: User-Agent: - azsdk-python-storage-blob/12.0.0b4 Python/3.6.3 (Windows-10-10.0.18362-SP0) x-ms-client-request-id: - - eb2c7a4a-e562-11e9-8000-1831bf6ae40e + - 40cb385e-e56c-11e9-b5fb-1831bf6ae40e x-ms-date: - - Wed, 02 Oct 2019 22:21:02 GMT + - Wed, 02 Oct 2019 23:27:51 GMT x-ms-version: - '2019-02-02' method: PUT @@ -123,19 +123,19 @@ interactions: Content-Length: - '0' Date: - - Wed, 02 Oct 2019 22:21:01 GMT + - Wed, 02 Oct 2019 23:27:50 GMT ETag: - - '"0x8D74786CF0FC4DA"' + - '"0x8D7479024A9838C"' Last-Modified: - - Wed, 02 Oct 2019 22:21:02 GMT + - Wed, 02 Oct 2019 23:27:51 GMT Server: - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 x-ms-request-id: - - 79046fa9-e01e-00ab-4e6f-790095000000 + - a9ba233a-f01e-000e-4f79-7956ef000000 x-ms-request-server-encrypted: - 'false' x-ms-snapshot: - - '2019-10-02T22:21:02.1651461Z' + - '2019-10-02T23:27:51.2566284Z' x-ms-version: - '2019-02-02' status: @@ -161,9 +161,9 @@ interactions: x-ms-blob-type: - BlockBlob x-ms-client-request-id: - - eb32371e-e562-11e9-9d7b-1831bf6ae40e + - 40d1f4a4-e56c-11e9-b182-1831bf6ae40e x-ms-date: - - Wed, 02 Oct 2019 22:21:02 GMT + - Wed, 02 Oct 2019 23:27:51 GMT x-ms-version: - '2019-02-02' method: PUT @@ -177,17 +177,17 @@ interactions: Content-MD5: - XrY7u+Ae7tCTyyK7j1rNww== Date: - - Wed, 02 Oct 2019 22:21:01 GMT + - Wed, 02 Oct 2019 23:27:50 GMT ETag: - - '"0x8D74786CF1A9A60"' + - '"0x8D7479024B654D8"' Last-Modified: - - Wed, 02 Oct 2019 22:21:02 GMT + - Wed, 02 Oct 2019 23:27:51 GMT Server: - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 x-ms-content-crc64: - vo7q9sPVKY0= x-ms-request-id: - - 79046fb5-e01e-00ab-596f-790095000000 + - a9ba2351-f01e-000e-6679-7956ef000000 x-ms-request-server-encrypted: - 'true' x-ms-version: @@ -215,9 +215,9 @@ interactions: x-ms-blob-type: - BlockBlob x-ms-client-request-id: - - eb37c8b8-e562-11e9-8848-1831bf6ae40e + - 40d8731e-e56c-11e9-ba1f-1831bf6ae40e x-ms-date: - - Wed, 02 Oct 2019 22:21:02 GMT + - Wed, 02 Oct 2019 23:27:51 GMT x-ms-version: - '2019-02-02' method: PUT @@ -231,17 +231,17 @@ interactions: Content-MD5: - XrY7u+Ae7tCTyyK7j1rNww== Date: - - Wed, 02 Oct 2019 22:21:01 GMT + - Wed, 02 Oct 2019 23:27:50 GMT ETag: - - '"0x8D74786CF20B4EF"' + - '"0x8D7479024BC968D"' Last-Modified: - - Wed, 02 Oct 2019 22:21:02 GMT + - Wed, 02 Oct 2019 23:27:51 GMT Server: - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 x-ms-content-crc64: - vo7q9sPVKY0= x-ms-request-id: - - 79046fbe-e01e-00ab-626f-790095000000 + - a9ba2371-f01e-000e-0379-7956ef000000 x-ms-request-server-encrypted: - 'true' x-ms-version: @@ -261,9 +261,9 @@ interactions: User-Agent: - azsdk-python-storage-blob/12.0.0b4 Python/3.6.3 (Windows-10-10.0.18362-SP0) x-ms-client-request-id: - - eb3d7f76-e562-11e9-bb06-1831bf6ae40e + - 40de09b6-e56c-11e9-998e-1831bf6ae40e x-ms-date: - - Wed, 02 Oct 2019 22:21:02 GMT + - Wed, 02 Oct 2019 23:27:51 GMT x-ms-version: - '2019-02-02' method: GET @@ -271,21 +271,21 @@ interactions: response: body: string: "\uFEFFblob12019-10-02T22:21:02.1651461ZWed, - 02 Oct 2019 22:21:02 GMTWed, 02 Oct 2019 22:21:02 - GMT0x8D74786CF0FC4DA11application/octet-streamblob12019-10-02T23:27:51.2566284ZWed, + 02 Oct 2019 23:27:51 GMTWed, 02 Oct 2019 23:27:51 + GMT0x8D7479024A9838C11application/octet-streamXrY7u+Ae7tCTyyK7j1rNww==BlockBlobHottruetrueblob1Wed, - 02 Oct 2019 22:21:02 GMTWed, 02 Oct 2019 22:21:02 - GMT0x8D74786CF0FC4DA11application/octet-streamWed, 02 Oct 2019 23:27:51 + GMT0x8D7479024A9838C11application/octet-streamXrY7u+Ae7tCTyyK7j1rNww==BlockBlobHottrueunlockedavailabletrueblob2Wed, - 02 Oct 2019 22:21:02 GMTWed, 02 Oct 2019 22:21:02 - GMT0x8D74786CF1A9A6011application/octet-streamWed, 02 Oct 2019 23:27:51 + GMT0x8D7479024B654D811application/octet-streamXrY7u+Ae7tCTyyK7j1rNww==BlockBlobHottrueunlockedavailabletrueblob3Wed, - 02 Oct 2019 22:21:02 GMTWed, 02 Oct 2019 22:21:02 - GMT0x8D74786CF20B4EF11application/octet-streamWed, 02 Oct 2019 23:27:51 + GMT0x8D7479024BC968D11application/octet-streamXrY7u+Ae7tCTyyK7j1rNww==BlockBlobHottrueunlockedavailabletrue" @@ -293,31 +293,31 @@ interactions: Content-Type: - application/xml Date: - - Wed, 02 Oct 2019 22:21:01 GMT + - Wed, 02 Oct 2019 23:27:50 GMT Server: - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 Transfer-Encoding: - chunked x-ms-request-id: - - 79046fc6-e01e-00ab-6a6f-790095000000 + - a9ba2383-f01e-000e-1579-7956ef000000 x-ms-version: - '2019-02-02' status: code: 200 message: OK - request: - body: "--===============1539093961782096636==\r\nContent-Type: application/http\r\nContent-Transfer-Encoding: + body: "--===============3459304103527371314==\r\nContent-Type: application/http\r\nContent-Transfer-Encoding: binary\r\nContent-ID: 0\r\n\r\nDELETE /container617e10e3/blob1? HTTP/1.1\r\nx-ms-delete-snapshots: - only\r\nx-ms-date: Wed, 02 Oct 2019 22:21:02 GMT\r\nx-ms-client-request-id: - eb44e154-e562-11e9-86d7-1831bf6ae40e\r\nAuthorization: SharedKey storagename:4ggujmilY7Kt60C7/TxD7w4AVS41YNXjxAMssHDK+0w=\r\n\r\n\r\n--===============1539093961782096636==\r\nContent-Type: + only\r\nx-ms-date: Wed, 02 Oct 2019 23:27:51 GMT\r\nx-ms-client-request-id: + 40e6f4c2-e56c-11e9-98d9-1831bf6ae40e\r\nAuthorization: SharedKey storagename:cXMhY5oqSdhqhzne+vC5WMw/O7h7DlpjGh/XiWSku/c=\r\n\r\n\r\n--===============3459304103527371314==\r\nContent-Type: application/http\r\nContent-Transfer-Encoding: binary\r\nContent-ID: 1\r\n\r\nDELETE /container617e10e3/blob2? HTTP/1.1\r\nx-ms-delete-snapshots: only\r\nx-ms-date: - Wed, 02 Oct 2019 22:21:02 GMT\r\nx-ms-client-request-id: eb45084a-e562-11e9-a5ab-1831bf6ae40e\r\nAuthorization: - SharedKey storagename:3YUGlEc3AyLtmyU2Ce8HD/BfWvwuRf8j9V3q7uX61qI=\r\n\r\n\r\n--===============1539093961782096636==\r\nContent-Type: + Wed, 02 Oct 2019 23:27:51 GMT\r\nx-ms-client-request-id: 40e6f4c3-e56c-11e9-b7b3-1831bf6ae40e\r\nAuthorization: + SharedKey storagename:ugyealFbrFB7Aazr7Bo+FjX0vItAuSCpgCyU3qvHoGE=\r\n\r\n\r\n--===============3459304103527371314==\r\nContent-Type: application/http\r\nContent-Transfer-Encoding: binary\r\nContent-ID: 2\r\n\r\nDELETE /container617e10e3/blob3? HTTP/1.1\r\nx-ms-delete-snapshots: only\r\nx-ms-date: - Wed, 02 Oct 2019 22:21:02 GMT\r\nx-ms-client-request-id: eb45084b-e562-11e9-b104-1831bf6ae40e\r\nAuthorization: - SharedKey storagename:bAdH32W0qDOyKhY3vQDHDpMXTSGEKrVaQGOhOOtinSY=\r\n\r\n\r\n--===============1539093961782096636==--\r\n" + Wed, 02 Oct 2019 23:27:51 GMT\r\nx-ms-client-request-id: 40e6f4c4-e56c-11e9-8760-1831bf6ae40e\r\nAuthorization: + SharedKey storagename:a1nviBTPatxPjnp1/fzj5yzi7CW7ibCrQDUj4nbQMHs=\r\n\r\n\r\n--===============3459304103527371314==--\r\n" headers: Accept: - '*/*' @@ -328,47 +328,44 @@ interactions: Content-Length: - '1224' Content-Type: - - multipart/mixed; boundary================1539093961782096636== + - multipart/mixed; boundary================3459304103527371314== User-Agent: - azsdk-python-storage-blob/12.0.0b4 Python/3.6.3 (Windows-10-10.0.18362-SP0) x-ms-client-request-id: - - eb45f294-e562-11e9-bd7d-1831bf6ae40e + - 40e7420a-e56c-11e9-ae20-1831bf6ae40e x-ms-date: - - Wed, 02 Oct 2019 22:21:02 GMT + - Wed, 02 Oct 2019 23:27:51 GMT x-ms-version: - '2019-02-02' method: POST uri: https://storagename.blob.core.windows.net/?comp=batch response: body: - string: "--batchresponse_6247a833-d78b-4af5-b009-da10f0b7f9d7\r\nContent-Type: + string: "--batchresponse_bf2693d9-6669-4afc-99bd-42df497f92af\r\nContent-Type: application/http\r\nContent-ID: 0\r\n\r\nHTTP/1.1 202 Accepted\r\nx-ms-delete-type-permanent: - true\r\nx-ms-request-id: 79046fd2-e01e-00ab-756f-7900951e5a4e\r\nx-ms-version: - 2019-02-02\r\nx-ms-client-request-id: eb44e154-e562-11e9-86d7-1831bf6ae40e\r\nServer: - Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_6247a833-d78b-4af5-b009-da10f0b7f9d7\r\nContent-Type: + true\r\nx-ms-request-id: a9ba23a7-f01e-000e-3879-7956ef1edacc\r\nx-ms-version: + 2019-02-02\r\nServer: Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_bf2693d9-6669-4afc-99bd-42df497f92af\r\nContent-Type: application/http\r\nContent-ID: 1\r\n\r\nHTTP/1.1 404 The specified blob does - not exist.\r\nx-ms-error-code: BlobNotFound\r\nx-ms-request-id: 79046fd2-e01e-00ab-756f-7900951e5a50\r\nx-ms-version: - 2019-02-02\r\nx-ms-client-request-id: eb45084a-e562-11e9-a5ab-1831bf6ae40e\r\nContent-Length: - 216\r\nContent-Type: application/xml\r\nServer: Windows-Azure-Blob/1.0\r\n\r\n\uFEFF\nBlobNotFoundThe - specified blob does not exist.\nRequestId:79046fd2-e01e-00ab-756f-7900951e5a50\nTime:2019-10-02T22:21:02.3470197Z\r\n--batchresponse_6247a833-d78b-4af5-b009-da10f0b7f9d7\r\nContent-Type: + not exist.\r\nx-ms-error-code: BlobNotFound\r\nx-ms-request-id: a9ba23a7-f01e-000e-3879-7956ef1edace\r\nx-ms-version: + 2019-02-02\r\nContent-Length: 216\r\nContent-Type: application/xml\r\nServer: + Windows-Azure-Blob/1.0\r\n\r\n\uFEFF\nBlobNotFoundThe + specified blob does not exist.\nRequestId:a9ba23a7-f01e-000e-3879-7956ef1edace\nTime:2019-10-02T23:27:51.4521191Z\r\n--batchresponse_bf2693d9-6669-4afc-99bd-42df497f92af\r\nContent-Type: application/http\r\nContent-ID: 2\r\n\r\nHTTP/1.1 404 The specified blob does - not exist.\r\nx-ms-error-code: BlobNotFound\r\nx-ms-request-id: 79046fd2-e01e-00ab-756f-7900951e5a51\r\nx-ms-version: - 2019-02-02\r\nx-ms-client-request-id: eb45084b-e562-11e9-b104-1831bf6ae40e\r\nContent-Length: - 216\r\nContent-Type: application/xml\r\nServer: Windows-Azure-Blob/1.0\r\n\r\n\uFEFF\nBlobNotFoundThe - specified blob does not exist.\nRequestId:79046fd2-e01e-00ab-756f-7900951e5a51\nTime:2019-10-02T22:21:02.3480183Z\r\n--batchresponse_6247a833-d78b-4af5-b009-da10f0b7f9d7--" + not exist.\r\nx-ms-error-code: BlobNotFound\r\nx-ms-request-id: a9ba23a7-f01e-000e-3879-7956ef1edacf\r\nx-ms-version: + 2019-02-02\r\nContent-Length: 216\r\nContent-Type: application/xml\r\nServer: + Windows-Azure-Blob/1.0\r\n\r\n\uFEFF\nBlobNotFoundThe + specified blob does not exist.\nRequestId:a9ba23a7-f01e-000e-3879-7956ef1edacf\nTime:2019-10-02T23:27:51.4521191Z\r\n--batchresponse_bf2693d9-6669-4afc-99bd-42df497f92af--" headers: Content-Type: - - multipart/mixed; boundary=batchresponse_6247a833-d78b-4af5-b009-da10f0b7f9d7 + - multipart/mixed; boundary=batchresponse_bf2693d9-6669-4afc-99bd-42df497f92af Date: - - Wed, 02 Oct 2019 22:21:01 GMT + - Wed, 02 Oct 2019 23:27:50 GMT Server: - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 Transfer-Encoding: - chunked x-ms-request-id: - - 79046fd2-e01e-00ab-756f-790095000000 + - a9ba23a7-f01e-000e-3879-7956ef000000 x-ms-version: - '2019-02-02' status: @@ -386,9 +383,9 @@ interactions: User-Agent: - azsdk-python-storage-blob/12.0.0b4 Python/3.6.3 (Windows-10-10.0.18362-SP0) x-ms-client-request-id: - - eb4e1d38-e562-11e9-ab2d-1831bf6ae40e + - 40f0bd98-e56c-11e9-bc6d-1831bf6ae40e x-ms-date: - - Wed, 02 Oct 2019 22:21:02 GMT + - Wed, 02 Oct 2019 23:27:52 GMT x-ms-version: - '2019-02-02' method: GET @@ -397,16 +394,16 @@ interactions: body: string: "\uFEFFblob1Wed, - 02 Oct 2019 22:21:02 GMTWed, 02 Oct 2019 22:21:02 - GMT0x8D74786CF0FC4DA11application/octet-streamWed, 02 Oct 2019 23:27:51 + GMT0x8D7479024A9838C11application/octet-streamXrY7u+Ae7tCTyyK7j1rNww==BlockBlobHottrueunlockedavailabletrueblob2Wed, - 02 Oct 2019 22:21:02 GMTWed, 02 Oct 2019 22:21:02 - GMT0x8D74786CF1A9A6011application/octet-streamWed, 02 Oct 2019 23:27:51 + GMT0x8D7479024B654D811application/octet-streamXrY7u+Ae7tCTyyK7j1rNww==BlockBlobHottrueunlockedavailabletrueblob3Wed, - 02 Oct 2019 22:21:02 GMTWed, 02 Oct 2019 22:21:02 - GMT0x8D74786CF20B4EF11application/octet-streamWed, 02 Oct 2019 23:27:51 + GMT0x8D7479024BC968D11application/octet-streamXrY7u+Ae7tCTyyK7j1rNww==BlockBlobHottrueunlockedavailabletrue" @@ -414,13 +411,13 @@ interactions: Content-Type: - application/xml Date: - - Wed, 02 Oct 2019 22:21:01 GMT + - Wed, 02 Oct 2019 23:27:50 GMT Server: - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 Transfer-Encoding: - chunked x-ms-request-id: - - 79046fdb-e01e-00ab-7d6f-790095000000 + - a9ba23c8-f01e-000e-5879-7956ef000000 x-ms-version: - '2019-02-02' status: diff --git a/sdk/storage/azure-storage-blob/tests/recordings/test_container.test_standard_blob_tier_set_tier_api_batch.yaml b/sdk/storage/azure-storage-blob/tests/recordings/test_container.test_standard_blob_tier_set_tier_api_batch.yaml index 6337c8f2371b..3598cbef77e2 100644 --- a/sdk/storage/azure-storage-blob/tests/recordings/test_container.test_standard_blob_tier_set_tier_api_batch.yaml +++ b/sdk/storage/azure-storage-blob/tests/recordings/test_container.test_standard_blob_tier_set_tier_api_batch.yaml @@ -13,9 +13,9 @@ interactions: User-Agent: - azsdk-python-storage-blob/12.0.0b4 Python/3.6.3 (Windows-10-10.0.18362-SP0) x-ms-client-request-id: - - 40d69ba2-e563-11e9-bd53-1831bf6ae40e + - 8be64b8c-e56c-11e9-879f-1831bf6ae40e x-ms-date: - - Wed, 02 Oct 2019 22:23:26 GMT + - Wed, 02 Oct 2019 23:29:57 GMT x-ms-version: - '2019-02-02' method: PUT @@ -27,31 +27,31 @@ interactions: Content-Length: - '0' Date: - - Wed, 02 Oct 2019 22:23:25 GMT + - Wed, 02 Oct 2019 23:29:56 GMT ETag: - - '"0x8D7478724D933BE"' + - '"0x8D747906FE8388D"' Last-Modified: - - Wed, 02 Oct 2019 22:23:26 GMT + - Wed, 02 Oct 2019 23:29:57 GMT Server: - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 x-ms-request-id: - - 7f393e10-e01e-0012-2470-79048f000000 + - 39ef909c-d01e-00b0-6f79-793e96000000 x-ms-version: - '2019-02-02' status: code: 201 message: Created - request: - body: "--===============3343785352916597451==\r\nContent-Type: application/http\r\nContent-Transfer-Encoding: + body: "--===============1483581254377965210==\r\nContent-Type: application/http\r\nContent-Transfer-Encoding: binary\r\nContent-ID: 0\r\n\r\nDELETE /containera687174a/blob1? HTTP/1.1\r\nx-ms-date: - Wed, 02 Oct 2019 22:23:26 GMT\r\nx-ms-client-request-id: 40f76382-e563-11e9-8bb7-1831bf6ae40e\r\nAuthorization: - SharedKey storagename:jMLel/AbO1iWtpu8wtZ60ZrZI/DQ3MP1ZPTFtHtyMQ4=\r\n\r\n\r\n--===============3343785352916597451==\r\nContent-Type: + Wed, 02 Oct 2019 23:29:58 GMT\r\nx-ms-client-request-id: 8c0c6140-e56c-11e9-b4a6-1831bf6ae40e\r\nAuthorization: + SharedKey storagename:UiVXjEnPsxw+CBLDKVwFRVpT0YdGHKq49i+0EsL84AA=\r\n\r\n\r\n--===============1483581254377965210==\r\nContent-Type: application/http\r\nContent-Transfer-Encoding: binary\r\nContent-ID: 1\r\n\r\nDELETE - /containera687174a/blob2? HTTP/1.1\r\nx-ms-date: Wed, 02 Oct 2019 22:23:26 GMT\r\nx-ms-client-request-id: - 40f76383-e563-11e9-89cc-1831bf6ae40e\r\nAuthorization: SharedKey storagename:R8gzRC9L09hu/8OFebHBMbMa+KyFrOxZ3gJq7AjXUCQ=\r\n\r\n\r\n--===============3343785352916597451==\r\nContent-Type: + /containera687174a/blob2? HTTP/1.1\r\nx-ms-date: Wed, 02 Oct 2019 23:29:58 GMT\r\nx-ms-client-request-id: + 8c0c6141-e56c-11e9-be8a-1831bf6ae40e\r\nAuthorization: SharedKey storagename:LHu86Yxl0zZMYLOwgd4dNVpS2UfZ7J2GZcwXrS2pzQE=\r\n\r\n\r\n--===============1483581254377965210==\r\nContent-Type: application/http\r\nContent-Transfer-Encoding: binary\r\nContent-ID: 2\r\n\r\nDELETE - /containera687174a/blob3? HTTP/1.1\r\nx-ms-date: Wed, 02 Oct 2019 22:23:26 GMT\r\nx-ms-client-request-id: - 40f78a8a-e563-11e9-b28b-1831bf6ae40e\r\nAuthorization: SharedKey storagename:aiBq8TFyxsAMzAJ+ShIPiiGm7fNBb8a6oSmoQH/cHyw=\r\n\r\n\r\n--===============3343785352916597451==--\r\n" + /containera687174a/blob3? HTTP/1.1\r\nx-ms-date: Wed, 02 Oct 2019 23:29:58 GMT\r\nx-ms-client-request-id: + 8c0c8858-e56c-11e9-aff8-1831bf6ae40e\r\nAuthorization: SharedKey storagename:YVb9JFgSGe7fjD5Kd1AfA16fqQscUWdufd+RkG26FlE=\r\n\r\n\r\n--===============1483581254377965210==--\r\n" headers: Accept: - '*/*' @@ -62,49 +62,46 @@ interactions: Content-Length: - '1137' Content-Type: - - multipart/mixed; boundary================3343785352916597451== + - multipart/mixed; boundary================1483581254377965210== User-Agent: - azsdk-python-storage-blob/12.0.0b4 Python/3.6.3 (Windows-10-10.0.18362-SP0) x-ms-client-request-id: - - 40f87606-e563-11e9-b86e-1831bf6ae40e + - 8c0d73e4-e56c-11e9-a250-1831bf6ae40e x-ms-date: - - Wed, 02 Oct 2019 22:23:26 GMT + - Wed, 02 Oct 2019 23:29:58 GMT x-ms-version: - '2019-02-02' method: POST uri: https://storagename.blob.core.windows.net/?comp=batch response: body: - string: "--batchresponse_b0c8afb0-2adb-4b9e-8bfc-ad88b925a636\r\nContent-Type: + string: "--batchresponse_f2415df9-cc8e-4dc7-95c4-21b60b2e1675\r\nContent-Type: application/http\r\nContent-ID: 0\r\n\r\nHTTP/1.1 404 The specified blob does - not exist.\r\nx-ms-error-code: BlobNotFound\r\nx-ms-request-id: 7f393e4f-e01e-0012-6170-79048f1e118f\r\nx-ms-version: - 2019-02-02\r\nx-ms-client-request-id: 40f76382-e563-11e9-8bb7-1831bf6ae40e\r\nContent-Length: - 216\r\nContent-Type: application/xml\r\nServer: Windows-Azure-Blob/1.0\r\n\r\n\uFEFF\nBlobNotFoundThe - specified blob does not exist.\nRequestId:7f393e4f-e01e-0012-6170-79048f1e118f\nTime:2019-10-02T22:23:26.1196348Z\r\n--batchresponse_b0c8afb0-2adb-4b9e-8bfc-ad88b925a636\r\nContent-Type: + not exist.\r\nx-ms-error-code: BlobNotFound\r\nx-ms-request-id: 39ef90b9-d01e-00b0-0a79-793e961e611c\r\nx-ms-version: + 2019-02-02\r\nContent-Length: 216\r\nContent-Type: application/xml\r\nServer: + Windows-Azure-Blob/1.0\r\n\r\n\uFEFF\nBlobNotFoundThe + specified blob does not exist.\nRequestId:39ef90b9-d01e-00b0-0a79-793e961e611c\nTime:2019-10-02T23:29:57.5487074Z\r\n--batchresponse_f2415df9-cc8e-4dc7-95c4-21b60b2e1675\r\nContent-Type: application/http\r\nContent-ID: 1\r\n\r\nHTTP/1.1 404 The specified blob does - not exist.\r\nx-ms-error-code: BlobNotFound\r\nx-ms-request-id: 7f393e4f-e01e-0012-6170-79048f1e1191\r\nx-ms-version: - 2019-02-02\r\nx-ms-client-request-id: 40f76383-e563-11e9-89cc-1831bf6ae40e\r\nContent-Length: - 216\r\nContent-Type: application/xml\r\nServer: Windows-Azure-Blob/1.0\r\n\r\n\uFEFF\nBlobNotFoundThe - specified blob does not exist.\nRequestId:7f393e4f-e01e-0012-6170-79048f1e1191\nTime:2019-10-02T22:23:26.1196348Z\r\n--batchresponse_b0c8afb0-2adb-4b9e-8bfc-ad88b925a636\r\nContent-Type: + not exist.\r\nx-ms-error-code: BlobNotFound\r\nx-ms-request-id: 39ef90b9-d01e-00b0-0a79-793e961e611e\r\nx-ms-version: + 2019-02-02\r\nContent-Length: 216\r\nContent-Type: application/xml\r\nServer: + Windows-Azure-Blob/1.0\r\n\r\n\uFEFF\nBlobNotFoundThe + specified blob does not exist.\nRequestId:39ef90b9-d01e-00b0-0a79-793e961e611e\nTime:2019-10-02T23:29:57.5487074Z\r\n--batchresponse_f2415df9-cc8e-4dc7-95c4-21b60b2e1675\r\nContent-Type: application/http\r\nContent-ID: 2\r\n\r\nHTTP/1.1 404 The specified blob does - not exist.\r\nx-ms-error-code: BlobNotFound\r\nx-ms-request-id: 7f393e4f-e01e-0012-6170-79048f1e1192\r\nx-ms-version: - 2019-02-02\r\nx-ms-client-request-id: 40f78a8a-e563-11e9-b28b-1831bf6ae40e\r\nContent-Length: - 216\r\nContent-Type: application/xml\r\nServer: Windows-Azure-Blob/1.0\r\n\r\n\uFEFF\nBlobNotFoundThe - specified blob does not exist.\nRequestId:7f393e4f-e01e-0012-6170-79048f1e1192\nTime:2019-10-02T22:23:26.1196348Z\r\n--batchresponse_b0c8afb0-2adb-4b9e-8bfc-ad88b925a636--" + not exist.\r\nx-ms-error-code: BlobNotFound\r\nx-ms-request-id: 39ef90b9-d01e-00b0-0a79-793e961e611f\r\nx-ms-version: + 2019-02-02\r\nContent-Length: 216\r\nContent-Type: application/xml\r\nServer: + Windows-Azure-Blob/1.0\r\n\r\n\uFEFF\nBlobNotFoundThe + specified blob does not exist.\nRequestId:39ef90b9-d01e-00b0-0a79-793e961e611f\nTime:2019-10-02T23:29:57.5487074Z\r\n--batchresponse_f2415df9-cc8e-4dc7-95c4-21b60b2e1675--" headers: Content-Type: - - multipart/mixed; boundary=batchresponse_b0c8afb0-2adb-4b9e-8bfc-ad88b925a636 + - multipart/mixed; boundary=batchresponse_f2415df9-cc8e-4dc7-95c4-21b60b2e1675 Date: - - Wed, 02 Oct 2019 22:23:25 GMT + - Wed, 02 Oct 2019 23:29:56 GMT Server: - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 Transfer-Encoding: - chunked x-ms-request-id: - - 7f393e4f-e01e-0012-6170-79048f000000 + - 39ef90b9-d01e-00b0-0a79-793e96000000 x-ms-version: - '2019-02-02' status: @@ -130,9 +127,9 @@ interactions: x-ms-blob-type: - BlockBlob x-ms-client-request-id: - - 41002222-e563-11e9-a249-1831bf6ae40e + - 8c1eb0ae-e56c-11e9-bfd1-1831bf6ae40e x-ms-date: - - Wed, 02 Oct 2019 22:23:26 GMT + - Wed, 02 Oct 2019 23:29:58 GMT x-ms-version: - '2019-02-02' method: PUT @@ -146,17 +143,17 @@ interactions: Content-MD5: - XrY7u+Ae7tCTyyK7j1rNww== Date: - - Wed, 02 Oct 2019 22:23:25 GMT + - Wed, 02 Oct 2019 23:29:56 GMT ETag: - - '"0x8D7478724E903AF"' + - '"0x8D747907002B685"' Last-Modified: - - Wed, 02 Oct 2019 22:23:26 GMT + - Wed, 02 Oct 2019 23:29:57 GMT Server: - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 x-ms-content-crc64: - vo7q9sPVKY0= x-ms-request-id: - - 7f393e65-e01e-0012-7570-79048f000000 + - 39ef9108-d01e-00b0-5179-793e96000000 x-ms-request-server-encrypted: - 'true' x-ms-version: @@ -184,9 +181,9 @@ interactions: x-ms-blob-type: - BlockBlob x-ms-client-request-id: - - 4106b210-e563-11e9-80ba-1831bf6ae40e + - 8c251950-e56c-11e9-8f34-1831bf6ae40e x-ms-date: - - Wed, 02 Oct 2019 22:23:26 GMT + - Wed, 02 Oct 2019 23:29:58 GMT x-ms-version: - '2019-02-02' method: PUT @@ -200,17 +197,17 @@ interactions: Content-MD5: - XrY7u+Ae7tCTyyK7j1rNww== Date: - - Wed, 02 Oct 2019 22:23:25 GMT + - Wed, 02 Oct 2019 23:29:56 GMT ETag: - - '"0x8D7478724EF450F"' + - '"0x8D747907008D12D"' Last-Modified: - - Wed, 02 Oct 2019 22:23:26 GMT + - Wed, 02 Oct 2019 23:29:57 GMT Server: - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 x-ms-content-crc64: - vo7q9sPVKY0= x-ms-request-id: - - 7f393e7f-e01e-0012-0c70-79048f000000 + - 39ef9122-d01e-00b0-6679-793e96000000 x-ms-request-server-encrypted: - 'true' x-ms-version: @@ -238,9 +235,9 @@ interactions: x-ms-blob-type: - BlockBlob x-ms-client-request-id: - - 410d1dd4-e563-11e9-b9d7-1831bf6ae40e + - 8c2ae5ae-e56c-11e9-95ab-1831bf6ae40e x-ms-date: - - Wed, 02 Oct 2019 22:23:26 GMT + - Wed, 02 Oct 2019 23:29:58 GMT x-ms-version: - '2019-02-02' method: PUT @@ -254,17 +251,17 @@ interactions: Content-MD5: - XrY7u+Ae7tCTyyK7j1rNww== Date: - - Wed, 02 Oct 2019 22:23:25 GMT + - Wed, 02 Oct 2019 23:29:56 GMT ETag: - - '"0x8D7478724F62308"' + - '"0x8D74790700EC4AD"' Last-Modified: - - Wed, 02 Oct 2019 22:23:26 GMT + - Wed, 02 Oct 2019 23:29:57 GMT Server: - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 x-ms-content-crc64: - vo7q9sPVKY0= x-ms-request-id: - - 7f393ea2-e01e-0012-2f70-79048f000000 + - 39ef9144-d01e-00b0-0179-793e96000000 x-ms-request-server-encrypted: - 'true' x-ms-version: @@ -284,9 +281,9 @@ interactions: User-Agent: - azsdk-python-storage-blob/12.0.0b4 Python/3.6.3 (Windows-10-10.0.18362-SP0) x-ms-client-request-id: - - 41131c2e-e563-11e9-aaff-1831bf6ae40e + - 8c3075ca-e56c-11e9-b860-1831bf6ae40e x-ms-date: - - Wed, 02 Oct 2019 22:23:26 GMT + - Wed, 02 Oct 2019 23:29:58 GMT x-ms-version: - '2019-02-02' method: HEAD @@ -304,11 +301,11 @@ interactions: Content-Type: - application/octet-stream Date: - - Wed, 02 Oct 2019 22:23:25 GMT + - Wed, 02 Oct 2019 23:29:56 GMT ETag: - - '"0x8D7478724E903AF"' + - '"0x8D747907002B685"' Last-Modified: - - Wed, 02 Oct 2019 22:23:26 GMT + - Wed, 02 Oct 2019 23:29:57 GMT Server: - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 x-ms-access-tier: @@ -318,13 +315,13 @@ interactions: x-ms-blob-type: - BlockBlob x-ms-creation-time: - - Wed, 02 Oct 2019 22:23:26 GMT + - Wed, 02 Oct 2019 23:29:57 GMT x-ms-lease-state: - available x-ms-lease-status: - unlocked x-ms-request-id: - - 7f393ebe-e01e-0012-4a70-79048f000000 + - 39ef9163-d01e-00b0-2079-793e96000000 x-ms-server-encrypted: - 'true' x-ms-version: @@ -333,18 +330,18 @@ interactions: code: 200 message: OK - request: - body: "--===============2158161133934664036==\r\nContent-Type: application/http\r\nContent-Transfer-Encoding: + body: "--===============3485947800101400709==\r\nContent-Type: application/http\r\nContent-Transfer-Encoding: binary\r\nContent-ID: 0\r\n\r\nPUT /containera687174a/blob1?comp=tier HTTP/1.1\r\nContent-Length: - 0\r\nx-ms-access-tier: Archive\r\nx-ms-date: Wed, 02 Oct 2019 22:23:26 GMT\r\nx-ms-client-request-id: - 4118d238-e563-11e9-9af5-1831bf6ae40e\r\nAuthorization: SharedKey storagename:jHTP5Nr/NRygEY4eAt368fj1m5CORnSjJnaxN9BGQC8=\r\n\r\n\r\n--===============2158161133934664036==\r\nContent-Type: + 0\r\nx-ms-access-tier: Archive\r\nx-ms-date: Wed, 02 Oct 2019 23:29:58 GMT\r\nx-ms-client-request-id: + 8c36799e-e56c-11e9-96c8-1831bf6ae40e\r\nAuthorization: SharedKey storagename:JkapTAnFkkWEKnNqb9s8UfQPx34gvAzMtHe/ShejRzw=\r\n\r\n\r\n--===============3485947800101400709==\r\nContent-Type: application/http\r\nContent-Transfer-Encoding: binary\r\nContent-ID: 1\r\n\r\nPUT /containera687174a/blob2?comp=tier HTTP/1.1\r\nContent-Length: 0\r\nx-ms-access-tier: - Archive\r\nx-ms-date: Wed, 02 Oct 2019 22:23:26 GMT\r\nx-ms-client-request-id: - 4118d239-e563-11e9-bd8e-1831bf6ae40e\r\nAuthorization: SharedKey storagename:oQKrrZlIu06T6xAsmpFH209kvxjYaKgIkFbRGb2OcQA=\r\n\r\n\r\n--===============2158161133934664036==\r\nContent-Type: + Archive\r\nx-ms-date: Wed, 02 Oct 2019 23:29:58 GMT\r\nx-ms-client-request-id: + 8c36799f-e56c-11e9-ad8e-1831bf6ae40e\r\nAuthorization: SharedKey storagename:ZjLvzFCLamCCor/tqSLgqEEJ/FeV3xxafyNlyPY8uuM=\r\n\r\n\r\n--===============3485947800101400709==\r\nContent-Type: application/http\r\nContent-Transfer-Encoding: binary\r\nContent-ID: 2\r\n\r\nPUT /containera687174a/blob3?comp=tier HTTP/1.1\r\nContent-Length: 0\r\nx-ms-access-tier: - Archive\r\nx-ms-date: Wed, 02 Oct 2019 22:23:26 GMT\r\nx-ms-client-request-id: - 4118f950-e563-11e9-9267-1831bf6ae40e\r\nAuthorization: SharedKey storagename:XTYBw6sCwv//mgJbaPwt0PxaUckel0KrCrlFx6fxS6A=\r\n\r\n\r\n--===============2158161133934664036==--\r\n" + Archive\r\nx-ms-date: Wed, 02 Oct 2019 23:29:58 GMT\r\nx-ms-client-request-id: + 8c3679a0-e56c-11e9-83dc-1831bf6ae40e\r\nAuthorization: SharedKey storagename:M5Jt22fkFUE+xgOYiQ+ZTQMkSRzsKFbcuocKyu8lsvk=\r\n\r\n\r\n--===============3485947800101400709==--\r\n" headers: Accept: - '*/*' @@ -355,40 +352,40 @@ interactions: Content-Length: - '1293' Content-Type: - - multipart/mixed; boundary================2158161133934664036== + - multipart/mixed; boundary================3485947800101400709== User-Agent: - azsdk-python-storage-blob/12.0.0b4 Python/3.6.3 (Windows-10-10.0.18362-SP0) x-ms-client-request-id: - - 4119205c-e563-11e9-9f59-1831bf6ae40e + - 8c36c7c0-e56c-11e9-ae48-1831bf6ae40e x-ms-date: - - Wed, 02 Oct 2019 22:23:26 GMT + - Wed, 02 Oct 2019 23:29:58 GMT x-ms-version: - '2019-02-02' method: POST uri: https://storagename.blob.core.windows.net/?comp=batch response: body: - string: "--batchresponse_81b3aef6-547b-4198-ac44-e106f30df13f\r\nContent-Type: + string: "--batchresponse_6493f1ce-4c1d-4aa5-84ca-73549df8936d\r\nContent-Type: application/http\r\nContent-ID: 0\r\n\r\nHTTP/1.1 200 OK\r\nx-ms-request-id: - 7f393ed1-e01e-0012-5d70-79048f1e1196\r\nx-ms-version: 2019-02-02\r\nx-ms-client-request-id: - 4118d238-e563-11e9-9af5-1831bf6ae40e\r\nServer: Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_81b3aef6-547b-4198-ac44-e106f30df13f\r\nContent-Type: + 39ef9180-d01e-00b0-3d79-793e961e612e\r\nx-ms-version: 2019-02-02\r\nServer: + Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_6493f1ce-4c1d-4aa5-84ca-73549df8936d\r\nContent-Type: application/http\r\nContent-ID: 1\r\n\r\nHTTP/1.1 200 OK\r\nx-ms-request-id: - 7f393ed1-e01e-0012-5d70-79048f1e1197\r\nx-ms-version: 2019-02-02\r\nx-ms-client-request-id: - 4118d239-e563-11e9-bd8e-1831bf6ae40e\r\nServer: Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_81b3aef6-547b-4198-ac44-e106f30df13f\r\nContent-Type: + 39ef9180-d01e-00b0-3d79-793e961e612f\r\nx-ms-version: 2019-02-02\r\nServer: + Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_6493f1ce-4c1d-4aa5-84ca-73549df8936d\r\nContent-Type: application/http\r\nContent-ID: 2\r\n\r\nHTTP/1.1 200 OK\r\nx-ms-request-id: - 7f393ed1-e01e-0012-5d70-79048f1e1198\r\nx-ms-version: 2019-02-02\r\nx-ms-client-request-id: - 4118f950-e563-11e9-9267-1831bf6ae40e\r\nServer: Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_81b3aef6-547b-4198-ac44-e106f30df13f--" + 39ef9180-d01e-00b0-3d79-793e961e6130\r\nx-ms-version: 2019-02-02\r\nServer: + Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_6493f1ce-4c1d-4aa5-84ca-73549df8936d--" headers: Content-Type: - - multipart/mixed; boundary=batchresponse_81b3aef6-547b-4198-ac44-e106f30df13f + - multipart/mixed; boundary=batchresponse_6493f1ce-4c1d-4aa5-84ca-73549df8936d Date: - - Wed, 02 Oct 2019 22:23:25 GMT + - Wed, 02 Oct 2019 23:29:56 GMT Server: - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 Transfer-Encoding: - chunked x-ms-request-id: - - 7f393ed1-e01e-0012-5d70-79048f000000 + - 39ef9180-d01e-00b0-3d79-793e96000000 x-ms-version: - '2019-02-02' status: @@ -406,9 +403,9 @@ interactions: User-Agent: - azsdk-python-storage-blob/12.0.0b4 Python/3.6.3 (Windows-10-10.0.18362-SP0) x-ms-client-request-id: - - 4122aefe-e563-11e9-a0e5-1831bf6ae40e + - 8c3fca76-e56c-11e9-9f17-1831bf6ae40e x-ms-date: - - Wed, 02 Oct 2019 22:23:26 GMT + - Wed, 02 Oct 2019 23:29:58 GMT x-ms-version: - '2019-02-02' method: HEAD @@ -426,27 +423,27 @@ interactions: Content-Type: - application/octet-stream Date: - - Wed, 02 Oct 2019 22:23:25 GMT + - Wed, 02 Oct 2019 23:29:56 GMT ETag: - - '"0x8D7478724E903AF"' + - '"0x8D747907002B685"' Last-Modified: - - Wed, 02 Oct 2019 22:23:26 GMT + - Wed, 02 Oct 2019 23:29:57 GMT Server: - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 x-ms-access-tier: - Archive x-ms-access-tier-change-time: - - Wed, 02 Oct 2019 22:23:26 GMT + - Wed, 02 Oct 2019 23:29:57 GMT x-ms-blob-type: - BlockBlob x-ms-creation-time: - - Wed, 02 Oct 2019 22:23:26 GMT + - Wed, 02 Oct 2019 23:29:57 GMT x-ms-lease-state: - available x-ms-lease-status: - unlocked x-ms-request-id: - - 7f393efa-e01e-0012-0670-79048f000000 + - 39ef91ad-d01e-00b0-6a79-793e96000000 x-ms-server-encrypted: - 'true' x-ms-version: @@ -455,16 +452,16 @@ interactions: code: 200 message: OK - request: - body: "--===============3280838954774894199==\r\nContent-Type: application/http\r\nContent-Transfer-Encoding: + body: "--===============3596608585363756258==\r\nContent-Type: application/http\r\nContent-Transfer-Encoding: binary\r\nContent-ID: 0\r\n\r\nDELETE /containera687174a/blob1? HTTP/1.1\r\nx-ms-date: - Wed, 02 Oct 2019 22:23:26 GMT\r\nx-ms-client-request-id: 41280626-e563-11e9-8b65-1831bf6ae40e\r\nAuthorization: - SharedKey storagename:/H0Wb2Nfxag9vyV4U+968b88cb6PUSbIYMmPqLXmlnc=\r\n\r\n\r\n--===============3280838954774894199==\r\nContent-Type: + Wed, 02 Oct 2019 23:29:58 GMT\r\nx-ms-client-request-id: 8c446e6e-e56c-11e9-98b4-1831bf6ae40e\r\nAuthorization: + SharedKey storagename:Cf1l+IdHT5pLTKFkaYYszqolSlUWPkhvayxguGChFNM=\r\n\r\n\r\n--===============3596608585363756258==\r\nContent-Type: application/http\r\nContent-Transfer-Encoding: binary\r\nContent-ID: 1\r\n\r\nDELETE - /containera687174a/blob2? HTTP/1.1\r\nx-ms-date: Wed, 02 Oct 2019 22:23:26 GMT\r\nx-ms-client-request-id: - 41282d36-e563-11e9-9564-1831bf6ae40e\r\nAuthorization: SharedKey storagename:/2Zp2pnjUKTkvDyizF7BTrBph4XOUOQSCJYVuhG+iLw=\r\n\r\n\r\n--===============3280838954774894199==\r\nContent-Type: + /containera687174a/blob2? HTTP/1.1\r\nx-ms-date: Wed, 02 Oct 2019 23:29:58 GMT\r\nx-ms-client-request-id: + 8c446e6f-e56c-11e9-afcf-1831bf6ae40e\r\nAuthorization: SharedKey storagename:BPg1qRQ+WFFTEdnI88csJZP7cq4BQ8/xNnPyUVvUo0E=\r\n\r\n\r\n--===============3596608585363756258==\r\nContent-Type: application/http\r\nContent-Transfer-Encoding: binary\r\nContent-ID: 2\r\n\r\nDELETE - /containera687174a/blob3? HTTP/1.1\r\nx-ms-date: Wed, 02 Oct 2019 22:23:26 GMT\r\nx-ms-client-request-id: - 41282d37-e563-11e9-8dc6-1831bf6ae40e\r\nAuthorization: SharedKey storagename:sbvYY/7NGYAm6XVna+3lx5qjF/xCW8HA6zkwqq/HEJE=\r\n\r\n\r\n--===============3280838954774894199==--\r\n" + /containera687174a/blob3? HTTP/1.1\r\nx-ms-date: Wed, 02 Oct 2019 23:29:58 GMT\r\nx-ms-client-request-id: + 8c44946e-e56c-11e9-ad3e-1831bf6ae40e\r\nAuthorization: SharedKey storagename:uIGHVLjmBAInCrQH9YmvSz/vJyjuvZyaysgtA248TzQ=\r\n\r\n\r\n--===============3596608585363756258==--\r\n" headers: Accept: - '*/*' @@ -475,43 +472,40 @@ interactions: Content-Length: - '1137' Content-Type: - - multipart/mixed; boundary================3280838954774894199== + - multipart/mixed; boundary================3596608585363756258== User-Agent: - azsdk-python-storage-blob/12.0.0b4 Python/3.6.3 (Windows-10-10.0.18362-SP0) x-ms-client-request-id: - - 41287b5a-e563-11e9-9182-1831bf6ae40e + - 8c44e274-e56c-11e9-904d-1831bf6ae40e x-ms-date: - - Wed, 02 Oct 2019 22:23:26 GMT + - Wed, 02 Oct 2019 23:29:58 GMT x-ms-version: - '2019-02-02' method: POST uri: https://storagename.blob.core.windows.net/?comp=batch response: body: - string: "--batchresponse_904e0934-0153-4a15-bf47-978f2751ec69\r\nContent-Type: + string: "--batchresponse_723231f0-dd17-4abd-83a8-2336ab208e7a\r\nContent-Type: application/http\r\nContent-ID: 0\r\n\r\nHTTP/1.1 202 Accepted\r\nx-ms-delete-type-permanent: - true\r\nx-ms-request-id: 7f393f13-e01e-0012-1d70-79048f1e119c\r\nx-ms-version: - 2019-02-02\r\nx-ms-client-request-id: 41280626-e563-11e9-8b65-1831bf6ae40e\r\nServer: - Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_904e0934-0153-4a15-bf47-978f2751ec69\r\nContent-Type: + true\r\nx-ms-request-id: 39ef91cc-d01e-00b0-0779-793e961e6133\r\nx-ms-version: + 2019-02-02\r\nServer: Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_723231f0-dd17-4abd-83a8-2336ab208e7a\r\nContent-Type: application/http\r\nContent-ID: 1\r\n\r\nHTTP/1.1 202 Accepted\r\nx-ms-delete-type-permanent: - true\r\nx-ms-request-id: 7f393f13-e01e-0012-1d70-79048f1e119d\r\nx-ms-version: - 2019-02-02\r\nx-ms-client-request-id: 41282d36-e563-11e9-9564-1831bf6ae40e\r\nServer: - Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_904e0934-0153-4a15-bf47-978f2751ec69\r\nContent-Type: + true\r\nx-ms-request-id: 39ef91cc-d01e-00b0-0779-793e961e6134\r\nx-ms-version: + 2019-02-02\r\nServer: Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_723231f0-dd17-4abd-83a8-2336ab208e7a\r\nContent-Type: application/http\r\nContent-ID: 2\r\n\r\nHTTP/1.1 202 Accepted\r\nx-ms-delete-type-permanent: - true\r\nx-ms-request-id: 7f393f13-e01e-0012-1d70-79048f1e119e\r\nx-ms-version: - 2019-02-02\r\nx-ms-client-request-id: 41282d37-e563-11e9-8dc6-1831bf6ae40e\r\nServer: - Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_904e0934-0153-4a15-bf47-978f2751ec69--" + true\r\nx-ms-request-id: 39ef91cc-d01e-00b0-0779-793e961e6135\r\nx-ms-version: + 2019-02-02\r\nServer: Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_723231f0-dd17-4abd-83a8-2336ab208e7a--" headers: Content-Type: - - multipart/mixed; boundary=batchresponse_904e0934-0153-4a15-bf47-978f2751ec69 + - multipart/mixed; boundary=batchresponse_723231f0-dd17-4abd-83a8-2336ab208e7a Date: - - Wed, 02 Oct 2019 22:23:25 GMT + - Wed, 02 Oct 2019 23:29:56 GMT Server: - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 Transfer-Encoding: - chunked x-ms-request-id: - - 7f393f13-e01e-0012-1d70-79048f000000 + - 39ef91cc-d01e-00b0-0779-793e96000000 x-ms-version: - '2019-02-02' status: @@ -537,9 +531,9 @@ interactions: x-ms-blob-type: - BlockBlob x-ms-client-request-id: - - 41325352-e563-11e9-b14c-1831bf6ae40e + - 8c4ba4f0-e56c-11e9-aac4-1831bf6ae40e x-ms-date: - - Wed, 02 Oct 2019 22:23:26 GMT + - Wed, 02 Oct 2019 23:29:58 GMT x-ms-version: - '2019-02-02' method: PUT @@ -553,17 +547,17 @@ interactions: Content-MD5: - XrY7u+Ae7tCTyyK7j1rNww== Date: - - Wed, 02 Oct 2019 22:23:25 GMT + - Wed, 02 Oct 2019 23:29:56 GMT ETag: - - '"0x8D74787251B3751"' + - '"0x8D74790702FBA4F"' Last-Modified: - - Wed, 02 Oct 2019 22:23:26 GMT + - Wed, 02 Oct 2019 23:29:57 GMT Server: - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 x-ms-content-crc64: - vo7q9sPVKY0= x-ms-request-id: - - 7f393f3c-e01e-0012-4470-79048f000000 + - 39ef91eb-d01e-00b0-2679-793e96000000 x-ms-request-server-encrypted: - 'true' x-ms-version: @@ -591,9 +585,9 @@ interactions: x-ms-blob-type: - BlockBlob x-ms-client-request-id: - - 413894c8-e563-11e9-99e9-1831bf6ae40e + - 8c520100-e56c-11e9-bc69-1831bf6ae40e x-ms-date: - - Wed, 02 Oct 2019 22:23:27 GMT + - Wed, 02 Oct 2019 23:29:58 GMT x-ms-version: - '2019-02-02' method: PUT @@ -607,17 +601,17 @@ interactions: Content-MD5: - XrY7u+Ae7tCTyyK7j1rNww== Date: - - Wed, 02 Oct 2019 22:23:25 GMT + - Wed, 02 Oct 2019 23:29:56 GMT ETag: - - '"0x8D7478725219FEF"' + - '"0x8D74790703649E4"' Last-Modified: - - Wed, 02 Oct 2019 22:23:26 GMT + - Wed, 02 Oct 2019 23:29:57 GMT Server: - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 x-ms-content-crc64: - vo7q9sPVKY0= x-ms-request-id: - - 7f393f55-e01e-0012-5d70-79048f000000 + - 39ef9202-d01e-00b0-3d79-793e96000000 x-ms-request-server-encrypted: - 'true' x-ms-version: @@ -645,9 +639,9 @@ interactions: x-ms-blob-type: - BlockBlob x-ms-client-request-id: - - 413f4b7e-e563-11e9-97f1-1831bf6ae40e + - 8c585480-e56c-11e9-b5f3-1831bf6ae40e x-ms-date: - - Wed, 02 Oct 2019 22:23:27 GMT + - Wed, 02 Oct 2019 23:29:58 GMT x-ms-version: - '2019-02-02' method: PUT @@ -661,17 +655,17 @@ interactions: Content-MD5: - XrY7u+Ae7tCTyyK7j1rNww== Date: - - Wed, 02 Oct 2019 22:23:25 GMT + - Wed, 02 Oct 2019 23:29:57 GMT ETag: - - '"0x8D74787252808EF"' + - '"0x8D74790703CD9C0"' Last-Modified: - - Wed, 02 Oct 2019 22:23:26 GMT + - Wed, 02 Oct 2019 23:29:58 GMT Server: - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 x-ms-content-crc64: - vo7q9sPVKY0= x-ms-request-id: - - 7f393f70-e01e-0012-7770-79048f000000 + - 39ef9219-d01e-00b0-5479-793e96000000 x-ms-request-server-encrypted: - 'true' x-ms-version: @@ -691,9 +685,9 @@ interactions: User-Agent: - azsdk-python-storage-blob/12.0.0b4 Python/3.6.3 (Windows-10-10.0.18362-SP0) x-ms-client-request-id: - - 4144f0cc-e563-11e9-9cfc-1831bf6ae40e + - 8c5eaea4-e56c-11e9-832c-1831bf6ae40e x-ms-date: - - Wed, 02 Oct 2019 22:23:27 GMT + - Wed, 02 Oct 2019 23:29:58 GMT x-ms-version: - '2019-02-02' method: HEAD @@ -711,11 +705,11 @@ interactions: Content-Type: - application/octet-stream Date: - - Wed, 02 Oct 2019 22:23:25 GMT + - Wed, 02 Oct 2019 23:29:57 GMT ETag: - - '"0x8D74787251B3751"' + - '"0x8D74790702FBA4F"' Last-Modified: - - Wed, 02 Oct 2019 22:23:26 GMT + - Wed, 02 Oct 2019 23:29:57 GMT Server: - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 x-ms-access-tier: @@ -725,13 +719,13 @@ interactions: x-ms-blob-type: - BlockBlob x-ms-creation-time: - - Wed, 02 Oct 2019 22:23:26 GMT + - Wed, 02 Oct 2019 23:29:57 GMT x-ms-lease-state: - available x-ms-lease-status: - unlocked x-ms-request-id: - - 7f393f93-e01e-0012-1970-79048f000000 + - 39ef922a-d01e-00b0-6479-793e96000000 x-ms-server-encrypted: - 'true' x-ms-version: @@ -740,18 +734,18 @@ interactions: code: 200 message: OK - request: - body: "--===============9045610893482543090==\r\nContent-Type: application/http\r\nContent-Transfer-Encoding: + body: "--===============8089144083184603275==\r\nContent-Type: application/http\r\nContent-Transfer-Encoding: binary\r\nContent-ID: 0\r\n\r\nPUT /containera687174a/blob1?comp=tier HTTP/1.1\r\nContent-Length: - 0\r\nx-ms-access-tier: Cool\r\nx-ms-date: Wed, 02 Oct 2019 22:23:27 GMT\r\nx-ms-client-request-id: - 414abe30-e563-11e9-a3b2-1831bf6ae40e\r\nAuthorization: SharedKey storagename:eCVvH6bR5TzxiU8ltqMMDHhV/PQSMow8cRuvLon6aNc=\r\n\r\n\r\n--===============9045610893482543090==\r\nContent-Type: + 0\r\nx-ms-access-tier: Cool\r\nx-ms-date: Wed, 02 Oct 2019 23:29:58 GMT\r\nx-ms-client-request-id: + 8c63e934-e56c-11e9-9f70-1831bf6ae40e\r\nAuthorization: SharedKey storagename:215ijii+HbTbASqrh+m6BVutAnCZavZ++HK31VgRlzU=\r\n\r\n\r\n--===============8089144083184603275==\r\nContent-Type: application/http\r\nContent-Transfer-Encoding: binary\r\nContent-ID: 1\r\n\r\nPUT /containera687174a/blob2?comp=tier HTTP/1.1\r\nContent-Length: 0\r\nx-ms-access-tier: - Cool\r\nx-ms-date: Wed, 02 Oct 2019 22:23:27 GMT\r\nx-ms-client-request-id: - 414abe31-e563-11e9-b766-1831bf6ae40e\r\nAuthorization: SharedKey storagename:JBcIsfaPM/oQN42O/xO5gtaChUOpCyPQvAzNIiHbIMc=\r\n\r\n\r\n--===============9045610893482543090==\r\nContent-Type: + Cool\r\nx-ms-date: Wed, 02 Oct 2019 23:29:58 GMT\r\nx-ms-client-request-id: + 8c63e935-e56c-11e9-bba1-1831bf6ae40e\r\nAuthorization: SharedKey storagename:qqI6xg7pQbjBBL7Q1tr+FZnHTN+FmvJgOV83kffkPTw=\r\n\r\n\r\n--===============8089144083184603275==\r\nContent-Type: application/http\r\nContent-Transfer-Encoding: binary\r\nContent-ID: 2\r\n\r\nPUT /containera687174a/blob3?comp=tier HTTP/1.1\r\nContent-Length: 0\r\nx-ms-access-tier: - Cool\r\nx-ms-date: Wed, 02 Oct 2019 22:23:27 GMT\r\nx-ms-client-request-id: - 414abe32-e563-11e9-8a25-1831bf6ae40e\r\nAuthorization: SharedKey storagename:IKLucQPV0pIb1NjX6fvkvLaNv9PqK8ZsBS7GsDCASgM=\r\n\r\n\r\n--===============9045610893482543090==--\r\n" + Cool\r\nx-ms-date: Wed, 02 Oct 2019 23:29:58 GMT\r\nx-ms-client-request-id: + 8c63e936-e56c-11e9-986e-1831bf6ae40e\r\nAuthorization: SharedKey storagename:FS60zvJqEXzSpd7Zr3Cec9RdeNPa5U+R794uR4Ee8yk=\r\n\r\n\r\n--===============8089144083184603275==--\r\n" headers: Accept: - '*/*' @@ -762,40 +756,40 @@ interactions: Content-Length: - '1284' Content-Type: - - multipart/mixed; boundary================9045610893482543090== + - multipart/mixed; boundary================8089144083184603275== User-Agent: - azsdk-python-storage-blob/12.0.0b4 Python/3.6.3 (Windows-10-10.0.18362-SP0) x-ms-client-request-id: - - 414b0c4c-e563-11e9-bcac-1831bf6ae40e + - 8c643846-e56c-11e9-9c80-1831bf6ae40e x-ms-date: - - Wed, 02 Oct 2019 22:23:27 GMT + - Wed, 02 Oct 2019 23:29:58 GMT x-ms-version: - '2019-02-02' method: POST uri: https://storagename.blob.core.windows.net/?comp=batch response: body: - string: "--batchresponse_d09ed48d-6f04-4941-bace-8ffe16d149d6\r\nContent-Type: + string: "--batchresponse_9a31cb17-099d-4d0d-a966-cda3308762d8\r\nContent-Type: application/http\r\nContent-ID: 0\r\n\r\nHTTP/1.1 200 OK\r\nx-ms-request-id: - 7f393fa8-e01e-0012-2d70-79048f1e11a2\r\nx-ms-version: 2019-02-02\r\nx-ms-client-request-id: - 414abe30-e563-11e9-a3b2-1831bf6ae40e\r\nServer: Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_d09ed48d-6f04-4941-bace-8ffe16d149d6\r\nContent-Type: + 39ef924d-d01e-00b0-0679-793e961e6136\r\nx-ms-version: 2019-02-02\r\nServer: + Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_9a31cb17-099d-4d0d-a966-cda3308762d8\r\nContent-Type: application/http\r\nContent-ID: 1\r\n\r\nHTTP/1.1 200 OK\r\nx-ms-request-id: - 7f393fa8-e01e-0012-2d70-79048f1e11a3\r\nx-ms-version: 2019-02-02\r\nx-ms-client-request-id: - 414abe31-e563-11e9-b766-1831bf6ae40e\r\nServer: Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_d09ed48d-6f04-4941-bace-8ffe16d149d6\r\nContent-Type: + 39ef924d-d01e-00b0-0679-793e961e6137\r\nx-ms-version: 2019-02-02\r\nServer: + Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_9a31cb17-099d-4d0d-a966-cda3308762d8\r\nContent-Type: application/http\r\nContent-ID: 2\r\n\r\nHTTP/1.1 200 OK\r\nx-ms-request-id: - 7f393fa8-e01e-0012-2d70-79048f1e11a4\r\nx-ms-version: 2019-02-02\r\nx-ms-client-request-id: - 414abe32-e563-11e9-8a25-1831bf6ae40e\r\nServer: Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_d09ed48d-6f04-4941-bace-8ffe16d149d6--" + 39ef924d-d01e-00b0-0679-793e961e6138\r\nx-ms-version: 2019-02-02\r\nServer: + Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_9a31cb17-099d-4d0d-a966-cda3308762d8--" headers: Content-Type: - - multipart/mixed; boundary=batchresponse_d09ed48d-6f04-4941-bace-8ffe16d149d6 + - multipart/mixed; boundary=batchresponse_9a31cb17-099d-4d0d-a966-cda3308762d8 Date: - - Wed, 02 Oct 2019 22:23:26 GMT + - Wed, 02 Oct 2019 23:29:57 GMT Server: - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 Transfer-Encoding: - chunked x-ms-request-id: - - 7f393fa8-e01e-0012-2d70-79048f000000 + - 39ef924d-d01e-00b0-0679-793e96000000 x-ms-version: - '2019-02-02' status: @@ -813,9 +807,9 @@ interactions: User-Agent: - azsdk-python-storage-blob/12.0.0b4 Python/3.6.3 (Windows-10-10.0.18362-SP0) x-ms-client-request-id: - - 415125ec-e563-11e9-96b9-1831bf6ae40e + - 8c6adfd8-e56c-11e9-a993-1831bf6ae40e x-ms-date: - - Wed, 02 Oct 2019 22:23:27 GMT + - Wed, 02 Oct 2019 23:29:58 GMT x-ms-version: - '2019-02-02' method: HEAD @@ -833,27 +827,27 @@ interactions: Content-Type: - application/octet-stream Date: - - Wed, 02 Oct 2019 22:23:26 GMT + - Wed, 02 Oct 2019 23:29:57 GMT ETag: - - '"0x8D74787251B3751"' + - '"0x8D74790702FBA4F"' Last-Modified: - - Wed, 02 Oct 2019 22:23:26 GMT + - Wed, 02 Oct 2019 23:29:57 GMT Server: - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 x-ms-access-tier: - Cool x-ms-access-tier-change-time: - - Wed, 02 Oct 2019 22:23:26 GMT + - Wed, 02 Oct 2019 23:29:58 GMT x-ms-blob-type: - BlockBlob x-ms-creation-time: - - Wed, 02 Oct 2019 22:23:26 GMT + - Wed, 02 Oct 2019 23:29:57 GMT x-ms-lease-state: - available x-ms-lease-status: - unlocked x-ms-request-id: - - 7f393fbf-e01e-0012-4470-79048f000000 + - 39ef9279-d01e-00b0-3079-793e96000000 x-ms-server-encrypted: - 'true' x-ms-version: @@ -862,16 +856,16 @@ interactions: code: 200 message: OK - request: - body: "--===============3786854515375231946==\r\nContent-Type: application/http\r\nContent-Transfer-Encoding: + body: "--===============5575056120482726072==\r\nContent-Type: application/http\r\nContent-Transfer-Encoding: binary\r\nContent-ID: 0\r\n\r\nDELETE /containera687174a/blob1? HTTP/1.1\r\nx-ms-date: - Wed, 02 Oct 2019 22:23:27 GMT\r\nx-ms-client-request-id: 41567e28-e563-11e9-93cd-1831bf6ae40e\r\nAuthorization: - SharedKey storagename:ytCwhASZHoOVZ8gvPvpXabsJ4RNQIJ1HCWy4Z1VFkbo=\r\n\r\n\r\n--===============3786854515375231946==\r\nContent-Type: + Wed, 02 Oct 2019 23:29:58 GMT\r\nx-ms-client-request-id: 8c6fad42-e56c-11e9-a40a-1831bf6ae40e\r\nAuthorization: + SharedKey storagename:CeEFmWwz8wg2zyFLqZBgz9sWnnzogfe4yGrXj6jRtt4=\r\n\r\n\r\n--===============5575056120482726072==\r\nContent-Type: application/http\r\nContent-Transfer-Encoding: binary\r\nContent-ID: 1\r\n\r\nDELETE - /containera687174a/blob2? HTTP/1.1\r\nx-ms-date: Wed, 02 Oct 2019 22:23:27 GMT\r\nx-ms-client-request-id: - 41567e29-e563-11e9-b377-1831bf6ae40e\r\nAuthorization: SharedKey storagename:1aL3E8fh5kFiUwdtYRIRzNwAbB/vWm1N8bQmKbvtwxw=\r\n\r\n\r\n--===============3786854515375231946==\r\nContent-Type: + /containera687174a/blob2? HTTP/1.1\r\nx-ms-date: Wed, 02 Oct 2019 23:29:58 GMT\r\nx-ms-client-request-id: + 8c6fd324-e56c-11e9-b57e-1831bf6ae40e\r\nAuthorization: SharedKey storagename:cl7h9S0iamtkjPdyJf/xCeCpcaM2ilTF2+ux57IpHMA=\r\n\r\n\r\n--===============5575056120482726072==\r\nContent-Type: application/http\r\nContent-Transfer-Encoding: binary\r\nContent-ID: 2\r\n\r\nDELETE - /containera687174a/blob3? HTTP/1.1\r\nx-ms-date: Wed, 02 Oct 2019 22:23:27 GMT\r\nx-ms-client-request-id: - 4156a41c-e563-11e9-baf2-1831bf6ae40e\r\nAuthorization: SharedKey storagename:TMulDf2zP2DxywRKlxY6KSMAwSOruIM05BretraH2ps=\r\n\r\n\r\n--===============3786854515375231946==--\r\n" + /containera687174a/blob3? HTTP/1.1\r\nx-ms-date: Wed, 02 Oct 2019 23:29:58 GMT\r\nx-ms-client-request-id: + 8c6fd325-e56c-11e9-afb0-1831bf6ae40e\r\nAuthorization: SharedKey storagename:05ypdkBQIqYg/RMV1cmWlj4c52I9kGPl3kuQ7EZoR4Y=\r\n\r\n\r\n--===============5575056120482726072==--\r\n" headers: Accept: - '*/*' @@ -882,43 +876,40 @@ interactions: Content-Length: - '1137' Content-Type: - - multipart/mixed; boundary================3786854515375231946== + - multipart/mixed; boundary================5575056120482726072== User-Agent: - azsdk-python-storage-blob/12.0.0b4 Python/3.6.3 (Windows-10-10.0.18362-SP0) x-ms-client-request-id: - - 4156cc36-e563-11e9-9205-1831bf6ae40e + - 8c702136-e56c-11e9-a7b8-1831bf6ae40e x-ms-date: - - Wed, 02 Oct 2019 22:23:27 GMT + - Wed, 02 Oct 2019 23:29:58 GMT x-ms-version: - '2019-02-02' method: POST uri: https://storagename.blob.core.windows.net/?comp=batch response: body: - string: "--batchresponse_7d0a7bf7-6fbd-490d-966d-cf71fa7fc323\r\nContent-Type: + string: "--batchresponse_c85a109b-e1b4-469a-96f3-361e2dc853b2\r\nContent-Type: application/http\r\nContent-ID: 0\r\n\r\nHTTP/1.1 202 Accepted\r\nx-ms-delete-type-permanent: - true\r\nx-ms-request-id: 7f393fda-e01e-0012-5d70-79048f1e11a8\r\nx-ms-version: - 2019-02-02\r\nx-ms-client-request-id: 41567e28-e563-11e9-93cd-1831bf6ae40e\r\nServer: - Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_7d0a7bf7-6fbd-490d-966d-cf71fa7fc323\r\nContent-Type: + true\r\nx-ms-request-id: 39ef9295-d01e-00b0-4b79-793e961e613d\r\nx-ms-version: + 2019-02-02\r\nServer: Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_c85a109b-e1b4-469a-96f3-361e2dc853b2\r\nContent-Type: application/http\r\nContent-ID: 1\r\n\r\nHTTP/1.1 202 Accepted\r\nx-ms-delete-type-permanent: - true\r\nx-ms-request-id: 7f393fda-e01e-0012-5d70-79048f1e11a9\r\nx-ms-version: - 2019-02-02\r\nx-ms-client-request-id: 41567e29-e563-11e9-b377-1831bf6ae40e\r\nServer: - Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_7d0a7bf7-6fbd-490d-966d-cf71fa7fc323\r\nContent-Type: + true\r\nx-ms-request-id: 39ef9295-d01e-00b0-4b79-793e961e613e\r\nx-ms-version: + 2019-02-02\r\nServer: Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_c85a109b-e1b4-469a-96f3-361e2dc853b2\r\nContent-Type: application/http\r\nContent-ID: 2\r\n\r\nHTTP/1.1 202 Accepted\r\nx-ms-delete-type-permanent: - true\r\nx-ms-request-id: 7f393fda-e01e-0012-5d70-79048f1e11aa\r\nx-ms-version: - 2019-02-02\r\nx-ms-client-request-id: 4156a41c-e563-11e9-baf2-1831bf6ae40e\r\nServer: - Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_7d0a7bf7-6fbd-490d-966d-cf71fa7fc323--" + true\r\nx-ms-request-id: 39ef9295-d01e-00b0-4b79-793e961e613f\r\nx-ms-version: + 2019-02-02\r\nServer: Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_c85a109b-e1b4-469a-96f3-361e2dc853b2--" headers: Content-Type: - - multipart/mixed; boundary=batchresponse_7d0a7bf7-6fbd-490d-966d-cf71fa7fc323 + - multipart/mixed; boundary=batchresponse_c85a109b-e1b4-469a-96f3-361e2dc853b2 Date: - - Wed, 02 Oct 2019 22:23:26 GMT + - Wed, 02 Oct 2019 23:29:57 GMT Server: - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 Transfer-Encoding: - chunked x-ms-request-id: - - 7f393fda-e01e-0012-5d70-79048f000000 + - 39ef9295-d01e-00b0-4b79-793e96000000 x-ms-version: - '2019-02-02' status: @@ -944,9 +935,9 @@ interactions: x-ms-blob-type: - BlockBlob x-ms-client-request-id: - - 415e4624-e563-11e9-9e1d-1831bf6ae40e + - 8c78446e-e56c-11e9-9edf-1831bf6ae40e x-ms-date: - - Wed, 02 Oct 2019 22:23:27 GMT + - Wed, 02 Oct 2019 23:29:58 GMT x-ms-version: - '2019-02-02' method: PUT @@ -960,17 +951,17 @@ interactions: Content-MD5: - XrY7u+Ae7tCTyyK7j1rNww== Date: - - Wed, 02 Oct 2019 22:23:26 GMT + - Wed, 02 Oct 2019 23:29:57 GMT ETag: - - '"0x8D74787254750A7"' + - '"0x8D74790705C21CF"' Last-Modified: - - Wed, 02 Oct 2019 22:23:26 GMT + - Wed, 02 Oct 2019 23:29:58 GMT Server: - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 x-ms-content-crc64: - vo7q9sPVKY0= x-ms-request-id: - - 7f393fef-e01e-0012-7170-79048f000000 + - 39ef92c0-d01e-00b0-7279-793e96000000 x-ms-request-server-encrypted: - 'true' x-ms-version: @@ -998,9 +989,9 @@ interactions: x-ms-blob-type: - BlockBlob x-ms-client-request-id: - - 4164c29e-e563-11e9-bcaa-1831bf6ae40e + - 8c7e4f38-e56c-11e9-9dc9-1831bf6ae40e x-ms-date: - - Wed, 02 Oct 2019 22:23:27 GMT + - Wed, 02 Oct 2019 23:29:58 GMT x-ms-version: - '2019-02-02' method: PUT @@ -1014,17 +1005,17 @@ interactions: Content-MD5: - XrY7u+Ae7tCTyyK7j1rNww== Date: - - Wed, 02 Oct 2019 22:23:26 GMT + - Wed, 02 Oct 2019 23:29:57 GMT ETag: - - '"0x8D74787254D4420"' + - '"0x8D7479070623C2C"' Last-Modified: - - Wed, 02 Oct 2019 22:23:26 GMT + - Wed, 02 Oct 2019 23:29:58 GMT Server: - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 x-ms-content-crc64: - vo7q9sPVKY0= x-ms-request-id: - - 7f393ffd-e01e-0012-7f70-79048f000000 + - 39ef92e4-d01e-00b0-1379-793e96000000 x-ms-request-server-encrypted: - 'true' x-ms-version: @@ -1052,9 +1043,9 @@ interactions: x-ms-blob-type: - BlockBlob x-ms-client-request-id: - - 416ac328-e563-11e9-8fd1-1831bf6ae40e + - 8c847b58-e56c-11e9-ab05-1831bf6ae40e x-ms-date: - - Wed, 02 Oct 2019 22:23:27 GMT + - Wed, 02 Oct 2019 23:29:58 GMT x-ms-version: - '2019-02-02' method: PUT @@ -1068,17 +1059,17 @@ interactions: Content-MD5: - XrY7u+Ae7tCTyyK7j1rNww== Date: - - Wed, 02 Oct 2019 22:23:26 GMT + - Wed, 02 Oct 2019 23:29:57 GMT ETag: - - '"0x8D74787255385B3"' + - '"0x8D7479070682FA2"' Last-Modified: - - Wed, 02 Oct 2019 22:23:26 GMT + - Wed, 02 Oct 2019 23:29:58 GMT Server: - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 x-ms-content-crc64: - vo7q9sPVKY0= x-ms-request-id: - - 7f394018-e01e-0012-1a70-79048f000000 + - 39ef92fc-d01e-00b0-2879-793e96000000 x-ms-request-server-encrypted: - 'true' x-ms-version: @@ -1098,9 +1089,9 @@ interactions: User-Agent: - azsdk-python-storage-blob/12.0.0b4 Python/3.6.3 (Windows-10-10.0.18362-SP0) x-ms-client-request-id: - - 41723d48-e563-11e9-92cd-1831bf6ae40e + - 8c8a11b0-e56c-11e9-a069-1831bf6ae40e x-ms-date: - - Wed, 02 Oct 2019 22:23:27 GMT + - Wed, 02 Oct 2019 23:29:58 GMT x-ms-version: - '2019-02-02' method: HEAD @@ -1118,11 +1109,11 @@ interactions: Content-Type: - application/octet-stream Date: - - Wed, 02 Oct 2019 22:23:26 GMT + - Wed, 02 Oct 2019 23:29:57 GMT ETag: - - '"0x8D74787254750A7"' + - '"0x8D74790705C21CF"' Last-Modified: - - Wed, 02 Oct 2019 22:23:26 GMT + - Wed, 02 Oct 2019 23:29:58 GMT Server: - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 x-ms-access-tier: @@ -1132,13 +1123,13 @@ interactions: x-ms-blob-type: - BlockBlob x-ms-creation-time: - - Wed, 02 Oct 2019 22:23:26 GMT + - Wed, 02 Oct 2019 23:29:58 GMT x-ms-lease-state: - available x-ms-lease-status: - unlocked x-ms-request-id: - - 7f394040-e01e-0012-4170-79048f000000 + - 39ef930e-d01e-00b0-3979-793e96000000 x-ms-server-encrypted: - 'true' x-ms-version: @@ -1147,18 +1138,18 @@ interactions: code: 200 message: OK - request: - body: "--===============4995750794258649879==\r\nContent-Type: application/http\r\nContent-Transfer-Encoding: + body: "--===============5715678060279454027==\r\nContent-Type: application/http\r\nContent-Transfer-Encoding: binary\r\nContent-ID: 0\r\n\r\nPUT /containera687174a/blob1?comp=tier HTTP/1.1\r\nContent-Length: - 0\r\nx-ms-access-tier: Hot\r\nx-ms-date: Wed, 02 Oct 2019 22:23:27 GMT\r\nx-ms-client-request-id: - 4178a4dc-e563-11e9-96c3-1831bf6ae40e\r\nAuthorization: SharedKey storagename:6q6XgnWiUVm6Wavo5ioScyFBb/ecO3glBAdFci/xhEY=\r\n\r\n\r\n--===============4995750794258649879==\r\nContent-Type: + 0\r\nx-ms-access-tier: Hot\r\nx-ms-date: Wed, 02 Oct 2019 23:29:58 GMT\r\nx-ms-client-request-id: + 8c8e8452-e56c-11e9-8d77-1831bf6ae40e\r\nAuthorization: SharedKey storagename:IBVXRoHYodB+DIEIAOp1yfMyjn0910oOxBCjy/b3vWs=\r\n\r\n\r\n--===============5715678060279454027==\r\nContent-Type: application/http\r\nContent-Transfer-Encoding: binary\r\nContent-ID: 1\r\n\r\nPUT /containera687174a/blob2?comp=tier HTTP/1.1\r\nContent-Length: 0\r\nx-ms-access-tier: - Hot\r\nx-ms-date: Wed, 02 Oct 2019 22:23:27 GMT\r\nx-ms-client-request-id: 4178a4dd-e563-11e9-b32e-1831bf6ae40e\r\nAuthorization: - SharedKey storagename:cAjoJHNAYO5hx3wlaaWTmGzEkJxDRHqaf9ed+phcaYs=\r\n\r\n\r\n--===============4995750794258649879==\r\nContent-Type: + Hot\r\nx-ms-date: Wed, 02 Oct 2019 23:29:58 GMT\r\nx-ms-client-request-id: 8c8e8453-e56c-11e9-bee2-1831bf6ae40e\r\nAuthorization: + SharedKey storagename:PB6IJemRV6Vqt0Y/kQXUbIn+1kUX894/4XPZZLGmGyI=\r\n\r\n\r\n--===============5715678060279454027==\r\nContent-Type: application/http\r\nContent-Transfer-Encoding: binary\r\nContent-ID: 2\r\n\r\nPUT /containera687174a/blob3?comp=tier HTTP/1.1\r\nContent-Length: 0\r\nx-ms-access-tier: - Hot\r\nx-ms-date: Wed, 02 Oct 2019 22:23:27 GMT\r\nx-ms-client-request-id: 4178a4de-e563-11e9-bb63-1831bf6ae40e\r\nAuthorization: - SharedKey storagename:mwfxeCDLTAwCc9fb5qMuzoamw53aATx0dmnt6xZSaVI=\r\n\r\n\r\n--===============4995750794258649879==--\r\n" + Hot\r\nx-ms-date: Wed, 02 Oct 2019 23:29:58 GMT\r\nx-ms-client-request-id: 8c8eaa34-e56c-11e9-b171-1831bf6ae40e\r\nAuthorization: + SharedKey storagename:SeJxLYIwzrwfl5PoX4RyZ9SfdVtBpePzE5W6ObFOwP4=\r\n\r\n\r\n--===============5715678060279454027==--\r\n" headers: Accept: - '*/*' @@ -1169,40 +1160,40 @@ interactions: Content-Length: - '1281' Content-Type: - - multipart/mixed; boundary================4995750794258649879== + - multipart/mixed; boundary================5715678060279454027== User-Agent: - azsdk-python-storage-blob/12.0.0b4 Python/3.6.3 (Windows-10-10.0.18362-SP0) x-ms-client-request-id: - - 4178f3f4-e563-11e9-bdeb-1831bf6ae40e + - 8c8ef95a-e56c-11e9-9164-1831bf6ae40e x-ms-date: - - Wed, 02 Oct 2019 22:23:27 GMT + - Wed, 02 Oct 2019 23:29:58 GMT x-ms-version: - '2019-02-02' method: POST uri: https://storagename.blob.core.windows.net/?comp=batch response: body: - string: "--batchresponse_224910b8-8c80-4d1f-9f27-6e3ef9642776\r\nContent-Type: + string: "--batchresponse_b6816b40-aa4a-4e13-99f8-db84954be5db\r\nContent-Type: application/http\r\nContent-ID: 0\r\n\r\nHTTP/1.1 200 OK\r\nx-ms-request-id: - 7f394052-e01e-0012-5170-79048f1e11b2\r\nx-ms-version: 2019-02-02\r\nx-ms-client-request-id: - 4178a4dc-e563-11e9-96c3-1831bf6ae40e\r\nServer: Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_224910b8-8c80-4d1f-9f27-6e3ef9642776\r\nContent-Type: + 39ef9322-d01e-00b0-4c79-793e961e6148\r\nx-ms-version: 2019-02-02\r\nServer: + Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_b6816b40-aa4a-4e13-99f8-db84954be5db\r\nContent-Type: application/http\r\nContent-ID: 1\r\n\r\nHTTP/1.1 200 OK\r\nx-ms-request-id: - 7f394052-e01e-0012-5170-79048f1e11b3\r\nx-ms-version: 2019-02-02\r\nx-ms-client-request-id: - 4178a4dd-e563-11e9-b32e-1831bf6ae40e\r\nServer: Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_224910b8-8c80-4d1f-9f27-6e3ef9642776\r\nContent-Type: + 39ef9322-d01e-00b0-4c79-793e961e6149\r\nx-ms-version: 2019-02-02\r\nServer: + Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_b6816b40-aa4a-4e13-99f8-db84954be5db\r\nContent-Type: application/http\r\nContent-ID: 2\r\n\r\nHTTP/1.1 200 OK\r\nx-ms-request-id: - 7f394052-e01e-0012-5170-79048f1e11b4\r\nx-ms-version: 2019-02-02\r\nx-ms-client-request-id: - 4178a4de-e563-11e9-bb63-1831bf6ae40e\r\nServer: Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_224910b8-8c80-4d1f-9f27-6e3ef9642776--" + 39ef9322-d01e-00b0-4c79-793e961e614a\r\nx-ms-version: 2019-02-02\r\nServer: + Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_b6816b40-aa4a-4e13-99f8-db84954be5db--" headers: Content-Type: - - multipart/mixed; boundary=batchresponse_224910b8-8c80-4d1f-9f27-6e3ef9642776 + - multipart/mixed; boundary=batchresponse_b6816b40-aa4a-4e13-99f8-db84954be5db Date: - - Wed, 02 Oct 2019 22:23:26 GMT + - Wed, 02 Oct 2019 23:29:57 GMT Server: - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 Transfer-Encoding: - chunked x-ms-request-id: - - 7f394052-e01e-0012-5170-79048f000000 + - 39ef9322-d01e-00b0-4c79-793e96000000 x-ms-version: - '2019-02-02' status: @@ -1220,9 +1211,9 @@ interactions: User-Agent: - azsdk-python-storage-blob/12.0.0b4 Python/3.6.3 (Windows-10-10.0.18362-SP0) x-ms-client-request-id: - - 41817ea6-e563-11e9-a1f4-1831bf6ae40e + - 8c955074-e56c-11e9-9582-1831bf6ae40e x-ms-date: - - Wed, 02 Oct 2019 22:23:27 GMT + - Wed, 02 Oct 2019 23:29:58 GMT x-ms-version: - '2019-02-02' method: HEAD @@ -1240,27 +1231,27 @@ interactions: Content-Type: - application/octet-stream Date: - - Wed, 02 Oct 2019 22:23:26 GMT + - Wed, 02 Oct 2019 23:29:57 GMT ETag: - - '"0x8D74787254750A7"' + - '"0x8D74790705C21CF"' Last-Modified: - - Wed, 02 Oct 2019 22:23:26 GMT + - Wed, 02 Oct 2019 23:29:58 GMT Server: - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 x-ms-access-tier: - Hot x-ms-access-tier-change-time: - - Wed, 02 Oct 2019 22:23:26 GMT + - Wed, 02 Oct 2019 23:29:58 GMT x-ms-blob-type: - BlockBlob x-ms-creation-time: - - Wed, 02 Oct 2019 22:23:26 GMT + - Wed, 02 Oct 2019 23:29:58 GMT x-ms-lease-state: - available x-ms-lease-status: - unlocked x-ms-request-id: - - 7f394063-e01e-0012-6170-79048f000000 + - 39ef933a-d01e-00b0-6479-793e96000000 x-ms-server-encrypted: - 'true' x-ms-version: @@ -1269,16 +1260,16 @@ interactions: code: 200 message: OK - request: - body: "--===============3958731368272030847==\r\nContent-Type: application/http\r\nContent-Transfer-Encoding: + body: "--===============5183461022170956857==\r\nContent-Type: application/http\r\nContent-Transfer-Encoding: binary\r\nContent-ID: 0\r\n\r\nDELETE /containera687174a/blob1? HTTP/1.1\r\nx-ms-date: - Wed, 02 Oct 2019 22:23:27 GMT\r\nx-ms-client-request-id: 4186d6d0-e563-11e9-8ddd-1831bf6ae40e\r\nAuthorization: - SharedKey storagename:yR9lhwcV9VYJd+BDkfMY4ETVCTJtsQp0G8NWxWPnK5g=\r\n\r\n\r\n--===============3958731368272030847==\r\nContent-Type: + Wed, 02 Oct 2019 23:29:58 GMT\r\nx-ms-client-request-id: 8c9a348c-e56c-11e9-a98a-1831bf6ae40e\r\nAuthorization: + SharedKey storagename:zFylWRP5on4lmjkhDJAPiPu4vMpr7bxhVnmVu1dIe4U=\r\n\r\n\r\n--===============5183461022170956857==\r\nContent-Type: application/http\r\nContent-Transfer-Encoding: binary\r\nContent-ID: 1\r\n\r\nDELETE - /containera687174a/blob2? HTTP/1.1\r\nx-ms-date: Wed, 02 Oct 2019 22:23:27 GMT\r\nx-ms-client-request-id: - 4186d6d1-e563-11e9-bef6-1831bf6ae40e\r\nAuthorization: SharedKey storagename:U0EsvYPxDCaw+U+F8Tc6CdrILum9y7AbEU2Z77rkdUQ=\r\n\r\n\r\n--===============3958731368272030847==\r\nContent-Type: + /containera687174a/blob2? HTTP/1.1\r\nx-ms-date: Wed, 02 Oct 2019 23:29:58 GMT\r\nx-ms-client-request-id: + 8c9a5b9e-e56c-11e9-ba16-1831bf6ae40e\r\nAuthorization: SharedKey storagename:onp9uFerwAeLViyD1x+/Www+g2irtYcB3qeZ4DC272E=\r\n\r\n\r\n--===============5183461022170956857==\r\nContent-Type: application/http\r\nContent-Transfer-Encoding: binary\r\nContent-ID: 2\r\n\r\nDELETE - /containera687174a/blob3? HTTP/1.1\r\nx-ms-date: Wed, 02 Oct 2019 22:23:27 GMT\r\nx-ms-client-request-id: - 4186fcc2-e563-11e9-a498-1831bf6ae40e\r\nAuthorization: SharedKey storagename:DoRBL9oOOMv7wmus6vCFvUeRFh6pwrYfBwp/a3rrTEE=\r\n\r\n\r\n--===============3958731368272030847==--\r\n" + /containera687174a/blob3? HTTP/1.1\r\nx-ms-date: Wed, 02 Oct 2019 23:29:58 GMT\r\nx-ms-client-request-id: + 8c9a5b9f-e56c-11e9-9321-1831bf6ae40e\r\nAuthorization: SharedKey storagename:C/6xrthKyt7l5vPh2NgR7ONM++nRPP05R7h39Bb8iOU=\r\n\r\n\r\n--===============5183461022170956857==--\r\n" headers: Accept: - '*/*' @@ -1289,43 +1280,40 @@ interactions: Content-Length: - '1137' Content-Type: - - multipart/mixed; boundary================3958731368272030847== + - multipart/mixed; boundary================5183461022170956857== User-Agent: - azsdk-python-storage-blob/12.0.0b4 Python/3.6.3 (Windows-10-10.0.18362-SP0) x-ms-client-request-id: - - 41874ad8-e563-11e9-9b10-1831bf6ae40e + - 8c9aa9ba-e56c-11e9-96cb-1831bf6ae40e x-ms-date: - - Wed, 02 Oct 2019 22:23:27 GMT + - Wed, 02 Oct 2019 23:29:58 GMT x-ms-version: - '2019-02-02' method: POST uri: https://storagename.blob.core.windows.net/?comp=batch response: body: - string: "--batchresponse_d59b833b-fa4b-4b00-a061-1f8d32b29760\r\nContent-Type: + string: "--batchresponse_7a38dc67-c8ef-4d9b-ae64-2b04b11f284f\r\nContent-Type: application/http\r\nContent-ID: 0\r\n\r\nHTTP/1.1 202 Accepted\r\nx-ms-delete-type-permanent: - true\r\nx-ms-request-id: 7f394081-e01e-0012-7c70-79048f1e11bb\r\nx-ms-version: - 2019-02-02\r\nx-ms-client-request-id: 4186d6d0-e563-11e9-8ddd-1831bf6ae40e\r\nServer: - Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_d59b833b-fa4b-4b00-a061-1f8d32b29760\r\nContent-Type: + true\r\nx-ms-request-id: 39ef9351-d01e-00b0-7a79-793e961e614c\r\nx-ms-version: + 2019-02-02\r\nServer: Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_7a38dc67-c8ef-4d9b-ae64-2b04b11f284f\r\nContent-Type: application/http\r\nContent-ID: 1\r\n\r\nHTTP/1.1 202 Accepted\r\nx-ms-delete-type-permanent: - true\r\nx-ms-request-id: 7f394081-e01e-0012-7c70-79048f1e11bc\r\nx-ms-version: - 2019-02-02\r\nx-ms-client-request-id: 4186d6d1-e563-11e9-bef6-1831bf6ae40e\r\nServer: - Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_d59b833b-fa4b-4b00-a061-1f8d32b29760\r\nContent-Type: + true\r\nx-ms-request-id: 39ef9351-d01e-00b0-7a79-793e961e614d\r\nx-ms-version: + 2019-02-02\r\nServer: Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_7a38dc67-c8ef-4d9b-ae64-2b04b11f284f\r\nContent-Type: application/http\r\nContent-ID: 2\r\n\r\nHTTP/1.1 202 Accepted\r\nx-ms-delete-type-permanent: - true\r\nx-ms-request-id: 7f394081-e01e-0012-7c70-79048f1e11bd\r\nx-ms-version: - 2019-02-02\r\nx-ms-client-request-id: 4186fcc2-e563-11e9-a498-1831bf6ae40e\r\nServer: - Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_d59b833b-fa4b-4b00-a061-1f8d32b29760--" + true\r\nx-ms-request-id: 39ef9351-d01e-00b0-7a79-793e961e614e\r\nx-ms-version: + 2019-02-02\r\nServer: Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_7a38dc67-c8ef-4d9b-ae64-2b04b11f284f--" headers: Content-Type: - - multipart/mixed; boundary=batchresponse_d59b833b-fa4b-4b00-a061-1f8d32b29760 + - multipart/mixed; boundary=batchresponse_7a38dc67-c8ef-4d9b-ae64-2b04b11f284f Date: - - Wed, 02 Oct 2019 22:23:26 GMT + - Wed, 02 Oct 2019 23:29:57 GMT Server: - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 Transfer-Encoding: - chunked x-ms-request-id: - - 7f394081-e01e-0012-7c70-79048f000000 + - 39ef9351-d01e-00b0-7a79-793e96000000 x-ms-version: - '2019-02-02' status: diff --git a/sdk/storage/azure-storage-blob/tests/recordings/test_container_async.test_delete_blobs_simple.yaml b/sdk/storage/azure-storage-blob/tests/recordings/test_container_async.test_delete_blobs_simple.yaml index 3450dd134003..9cd848ab0010 100644 --- a/sdk/storage/azure-storage-blob/tests/recordings/test_container_async.test_delete_blobs_simple.yaml +++ b/sdk/storage/azure-storage-blob/tests/recordings/test_container_async.test_delete_blobs_simple.yaml @@ -5,9 +5,9 @@ interactions: User-Agent: - azsdk-python-storage-blob/12.0.0b4 Python/3.6.3 (Windows-10-10.0.18362-SP0) x-ms-client-request-id: - - 15cecdf8-e563-11e9-965e-1831bf6ae40e + - 24761c64-e56d-11e9-ad36-1831bf6ae40e x-ms-date: - - Wed, 02 Oct 2019 22:22:14 GMT + - Wed, 02 Oct 2019 23:34:13 GMT x-ms-version: - '2019-02-02' method: PUT @@ -21,17 +21,17 @@ interactions: : '0' ? !!python/object/new:multidict._istr.istr - Date - : Wed, 02 Oct 2019 22:22:13 GMT + : Wed, 02 Oct 2019 23:34:12 GMT ? !!python/object/new:multidict._istr.istr - Etag - : '"0x8D74786F9CB8B00"' + : '"0x8D747910865C811"' ? !!python/object/new:multidict._istr.istr - Last-Modified - : Wed, 02 Oct 2019 22:22:13 GMT + : Wed, 02 Oct 2019 23:34:13 GMT ? !!python/object/new:multidict._istr.istr - Server : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 - x-ms-request-id: a61d0239-f01e-0088-026f-799a56000000 + x-ms-request-id: 8c2c2a12-901e-006a-3a79-79a777000000 x-ms-version: '2019-02-02' status: code: 201 @@ -58,9 +58,9 @@ interactions: x-ms-blob-type: - BlockBlob x-ms-client-request-id: - - 15e9c1e8-e563-11e9-9541-1831bf6ae40e + - 24899374-e56d-11e9-b396-1831bf6ae40e x-ms-date: - - Wed, 02 Oct 2019 22:22:14 GMT + - Wed, 02 Oct 2019 23:34:13 GMT x-ms-version: - '2019-02-02' method: PUT @@ -77,18 +77,18 @@ interactions: : XrY7u+Ae7tCTyyK7j1rNww== ? !!python/object/new:multidict._istr.istr - Date - : Wed, 02 Oct 2019 22:22:13 GMT + : Wed, 02 Oct 2019 23:34:12 GMT ? !!python/object/new:multidict._istr.istr - Etag - : '"0x8D74786F9D16FD4"' + : '"0x8D74791086C714B"' ? !!python/object/new:multidict._istr.istr - Last-Modified - : Wed, 02 Oct 2019 22:22:13 GMT + : Wed, 02 Oct 2019 23:34:13 GMT ? !!python/object/new:multidict._istr.istr - Server : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 x-ms-content-crc64: vo7q9sPVKY0= - x-ms-request-id: a61d024d-f01e-0088-126f-799a56000000 + x-ms-request-id: 8c2c2a22-901e-006a-4679-79a777000000 x-ms-request-server-encrypted: 'true' x-ms-version: '2019-02-02' status: @@ -116,9 +116,9 @@ interactions: x-ms-blob-type: - BlockBlob x-ms-client-request-id: - - 15ef571c-e563-11e9-8df2-1831bf6ae40e + - 248f71fe-e56d-11e9-8379-1831bf6ae40e x-ms-date: - - Wed, 02 Oct 2019 22:22:14 GMT + - Wed, 02 Oct 2019 23:34:13 GMT x-ms-version: - '2019-02-02' method: PUT @@ -135,18 +135,18 @@ interactions: : XrY7u+Ae7tCTyyK7j1rNww== ? !!python/object/new:multidict._istr.istr - Date - : Wed, 02 Oct 2019 22:22:13 GMT + : Wed, 02 Oct 2019 23:34:12 GMT ? !!python/object/new:multidict._istr.istr - Etag - : '"0x8D74786F9D7FF81"' + : '"0x8D7479108734F45"' ? !!python/object/new:multidict._istr.istr - Last-Modified - : Wed, 02 Oct 2019 22:22:13 GMT + : Wed, 02 Oct 2019 23:34:13 GMT ? !!python/object/new:multidict._istr.istr - Server : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 x-ms-content-crc64: vo7q9sPVKY0= - x-ms-request-id: a61d025c-f01e-0088-206f-799a56000000 + x-ms-request-id: 8c2c2a32-901e-006a-5679-79a777000000 x-ms-request-server-encrypted: 'true' x-ms-version: '2019-02-02' status: @@ -174,9 +174,9 @@ interactions: x-ms-blob-type: - BlockBlob x-ms-client-request-id: - - 15f592cc-e563-11e9-9bab-1831bf6ae40e + - 249633d4-e56d-11e9-b40f-1831bf6ae40e x-ms-date: - - Wed, 02 Oct 2019 22:22:14 GMT + - Wed, 02 Oct 2019 23:34:13 GMT x-ms-version: - '2019-02-02' method: PUT @@ -193,18 +193,18 @@ interactions: : XrY7u+Ae7tCTyyK7j1rNww== ? !!python/object/new:multidict._istr.istr - Date - : Wed, 02 Oct 2019 22:22:13 GMT + : Wed, 02 Oct 2019 23:34:12 GMT ? !!python/object/new:multidict._istr.istr - Etag - : '"0x8D74786F9DDCC08"' + : '"0x8D74791087969BE"' ? !!python/object/new:multidict._istr.istr - Last-Modified - : Wed, 02 Oct 2019 22:22:13 GMT + : Wed, 02 Oct 2019 23:34:13 GMT ? !!python/object/new:multidict._istr.istr - Server : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 x-ms-content-crc64: vo7q9sPVKY0= - x-ms-request-id: a61d026b-f01e-0088-2d6f-799a56000000 + x-ms-request-id: 8c2c2a44-901e-006a-6779-79a777000000 x-ms-request-server-encrypted: 'true' x-ms-version: '2019-02-02' status: @@ -219,60 +219,57 @@ interactions: - '' - '' - request: - body: "--===============1767902573082227396==\r\nContent-Type: application/http\r\nContent-Transfer-Encoding: + body: "--===============0872275850216249893==\r\nContent-Type: application/http\r\nContent-Transfer-Encoding: binary\r\nContent-ID: 0\r\n\r\nDELETE /containeraa4e127a/blob1? HTTP/1.1\r\nx-ms-date: - Wed, 02 Oct 2019 22:22:14 GMT\r\nx-ms-client-request-id: 15faf514-e563-11e9-bb8c-1831bf6ae40e\r\nAuthorization: - SharedKey storagename:LMtzeg+TU9C2jHaPjcrsMMgmHv1dcbjCauIzZBDS54w=\r\n\r\n\r\n--===============1767902573082227396==\r\nContent-Type: + Wed, 02 Oct 2019 23:34:13 GMT\r\nx-ms-client-request-id: 249bc928-e56d-11e9-8a78-1831bf6ae40e\r\nAuthorization: + SharedKey storagename:FAA6wmBM/Vo50GKEBnkwrip4DbkSiizArLjJkjFJXbM=\r\n\r\n\r\n--===============0872275850216249893==\r\nContent-Type: application/http\r\nContent-Transfer-Encoding: binary\r\nContent-ID: 1\r\n\r\nDELETE - /containeraa4e127a/blob2? HTTP/1.1\r\nx-ms-date: Wed, 02 Oct 2019 22:22:14 GMT\r\nx-ms-client-request-id: - 15faf515-e563-11e9-bebc-1831bf6ae40e\r\nAuthorization: SharedKey storagename:cIMPDrz66JgsNorSQhr5S0FhOgRMxZ/0ljuuuuHEyfI=\r\n\r\n\r\n--===============1767902573082227396==\r\nContent-Type: + /containeraa4e127a/blob2? HTTP/1.1\r\nx-ms-date: Wed, 02 Oct 2019 23:34:13 GMT\r\nx-ms-client-request-id: + 249bc929-e56d-11e9-876d-1831bf6ae40e\r\nAuthorization: SharedKey storagename:vSUUco9xi+Wj/DwuuistZDbBrPsxEU9qo8xjqMSckT8=\r\n\r\n\r\n--===============0872275850216249893==\r\nContent-Type: application/http\r\nContent-Transfer-Encoding: binary\r\nContent-ID: 2\r\n\r\nDELETE - /containeraa4e127a/blob3? HTTP/1.1\r\nx-ms-date: Wed, 02 Oct 2019 22:22:14 GMT\r\nx-ms-client-request-id: - 15faf516-e563-11e9-a8df-1831bf6ae40e\r\nAuthorization: SharedKey storagename:RMD1n0JYXoWXRl0IXZ53qEdHHEa+q6GbGb8prLSUseY=\r\n\r\n\r\n--===============1767902573082227396==--\r\n" + /containeraa4e127a/blob3? HTTP/1.1\r\nx-ms-date: Wed, 02 Oct 2019 23:34:13 GMT\r\nx-ms-client-request-id: + 249bc92a-e56d-11e9-9c05-1831bf6ae40e\r\nAuthorization: SharedKey storagename:iP/wlodCCrYCWMYz4Vyrv6/dLwDgxfmUMr6dYOQMeYE=\r\n\r\n\r\n--===============0872275850216249893==--\r\n" headers: Content-Length: - '1137' Content-Type: - - multipart/mixed; boundary================1767902573082227396== + - multipart/mixed; boundary================0872275850216249893== User-Agent: - azsdk-python-storage-blob/12.0.0b4 Python/3.6.3 (Windows-10-10.0.18362-SP0) x-ms-client-request-id: - - 15fc0682-e563-11e9-90cd-1831bf6ae40e + - 249cb24c-e56d-11e9-a996-1831bf6ae40e x-ms-date: - - Wed, 02 Oct 2019 22:22:14 GMT + - Wed, 02 Oct 2019 23:34:13 GMT x-ms-version: - '2019-02-02' method: POST uri: https://storagename.blob.core.windows.net/?comp=batch response: body: - string: "--batchresponse_8ca736c5-0c3a-4a4b-8584-65fdaf8acf36\r\nContent-Type: + string: "--batchresponse_dc7ce28b-cd1c-4770-b051-98de0c310e58\r\nContent-Type: application/http\r\nContent-ID: 0\r\n\r\nHTTP/1.1 202 Accepted\r\nx-ms-delete-type-permanent: - true\r\nx-ms-request-id: a61d0272-f01e-0088-346f-799a561e2b28\r\nx-ms-version: - 2019-02-02\r\nx-ms-client-request-id: 15faf514-e563-11e9-bb8c-1831bf6ae40e\r\nServer: - Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_8ca736c5-0c3a-4a4b-8584-65fdaf8acf36\r\nContent-Type: + true\r\nx-ms-request-id: 8c2c2a5c-901e-006a-7d79-79a7771e842b\r\nx-ms-version: + 2019-02-02\r\nServer: Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_dc7ce28b-cd1c-4770-b051-98de0c310e58\r\nContent-Type: application/http\r\nContent-ID: 1\r\n\r\nHTTP/1.1 202 Accepted\r\nx-ms-delete-type-permanent: - true\r\nx-ms-request-id: a61d0272-f01e-0088-346f-799a561e2b2a\r\nx-ms-version: - 2019-02-02\r\nx-ms-client-request-id: 15faf515-e563-11e9-bebc-1831bf6ae40e\r\nServer: - Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_8ca736c5-0c3a-4a4b-8584-65fdaf8acf36\r\nContent-Type: + true\r\nx-ms-request-id: 8c2c2a5c-901e-006a-7d79-79a7771e842d\r\nx-ms-version: + 2019-02-02\r\nServer: Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_dc7ce28b-cd1c-4770-b051-98de0c310e58\r\nContent-Type: application/http\r\nContent-ID: 2\r\n\r\nHTTP/1.1 202 Accepted\r\nx-ms-delete-type-permanent: - true\r\nx-ms-request-id: a61d0272-f01e-0088-346f-799a561e2b2b\r\nx-ms-version: - 2019-02-02\r\nx-ms-client-request-id: 15faf516-e563-11e9-a8df-1831bf6ae40e\r\nServer: - Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_8ca736c5-0c3a-4a4b-8584-65fdaf8acf36--" + true\r\nx-ms-request-id: 8c2c2a5c-901e-006a-7d79-79a7771e842e\r\nx-ms-version: + 2019-02-02\r\nServer: Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_dc7ce28b-cd1c-4770-b051-98de0c310e58--" headers: ? !!python/object/new:multidict._istr.istr - Content-Type - : multipart/mixed; boundary=batchresponse_8ca736c5-0c3a-4a4b-8584-65fdaf8acf36 + : multipart/mixed; boundary=batchresponse_dc7ce28b-cd1c-4770-b051-98de0c310e58 ? !!python/object/new:multidict._istr.istr - Date - : Wed, 02 Oct 2019 22:22:13 GMT + : Wed, 02 Oct 2019 23:34:12 GMT ? !!python/object/new:multidict._istr.istr - Server : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 ? !!python/object/new:multidict._istr.istr - Transfer-Encoding : chunked - x-ms-request-id: a61d0272-f01e-0088-346f-799a56000000 + x-ms-request-id: 8c2c2a5c-901e-006a-7d79-79a777000000 x-ms-version: '2019-02-02' status: code: 202 diff --git a/sdk/storage/azure-storage-blob/tests/recordings/test_container_async.test_delete_blobs_snapshot.yaml b/sdk/storage/azure-storage-blob/tests/recordings/test_container_async.test_delete_blobs_snapshot.yaml index 6d47b9b04308..ce1d5be443c3 100644 --- a/sdk/storage/azure-storage-blob/tests/recordings/test_container_async.test_delete_blobs_snapshot.yaml +++ b/sdk/storage/azure-storage-blob/tests/recordings/test_container_async.test_delete_blobs_snapshot.yaml @@ -5,9 +5,9 @@ interactions: User-Agent: - azsdk-python-storage-blob/12.0.0b4 Python/3.6.3 (Windows-10-10.0.18362-SP0) x-ms-client-request-id: - - 160abb10-e563-11e9-82aa-1831bf6ae40e + - 24acbb7a-e56d-11e9-9b04-1831bf6ae40e x-ms-date: - - Wed, 02 Oct 2019 22:22:14 GMT + - Wed, 02 Oct 2019 23:34:14 GMT x-ms-version: - '2019-02-02' method: PUT @@ -21,17 +21,17 @@ interactions: : '0' ? !!python/object/new:multidict._istr.istr - Date - : Wed, 02 Oct 2019 22:22:14 GMT + : Wed, 02 Oct 2019 23:34:13 GMT ? !!python/object/new:multidict._istr.istr - Etag - : '"0x8D74786F9FD6495"' + : '"0x8D74791089B22BC"' ? !!python/object/new:multidict._istr.istr - Last-Modified - : Wed, 02 Oct 2019 22:22:14 GMT + : Wed, 02 Oct 2019 23:34:13 GMT ? !!python/object/new:multidict._istr.istr - Server : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 - x-ms-request-id: e84e4c9f-d01e-0044-586f-79f560000000 + x-ms-request-id: b242b8cb-b01e-0099-4679-7900e2000000 x-ms-version: '2019-02-02' status: code: 201 @@ -58,9 +58,9 @@ interactions: x-ms-blob-type: - BlockBlob x-ms-client-request-id: - - 161b68e6-e563-11e9-923c-1831bf6ae40e + - 24be1458-e56d-11e9-920d-1831bf6ae40e x-ms-date: - - Wed, 02 Oct 2019 22:22:14 GMT + - Wed, 02 Oct 2019 23:34:14 GMT x-ms-version: - '2019-02-02' method: PUT @@ -77,18 +77,18 @@ interactions: : XrY7u+Ae7tCTyyK7j1rNww== ? !!python/object/new:multidict._istr.istr - Date - : Wed, 02 Oct 2019 22:22:14 GMT + : Wed, 02 Oct 2019 23:34:13 GMT ? !!python/object/new:multidict._istr.istr - Etag - : '"0x8D74786FA03A39C"' + : '"0x8D7479108A0A118"' ? !!python/object/new:multidict._istr.istr - Last-Modified - : Wed, 02 Oct 2019 22:22:14 GMT + : Wed, 02 Oct 2019 23:34:13 GMT ? !!python/object/new:multidict._istr.istr - Server : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 x-ms-content-crc64: vo7q9sPVKY0= - x-ms-request-id: e84e4cb5-d01e-0044-6c6f-79f560000000 + x-ms-request-id: b242b8d8-b01e-0099-5179-7900e2000000 x-ms-request-server-encrypted: 'true' x-ms-version: '2019-02-02' status: @@ -108,9 +108,9 @@ interactions: User-Agent: - azsdk-python-storage-blob/12.0.0b4 Python/3.6.3 (Windows-10-10.0.18362-SP0) x-ms-client-request-id: - - 16207d7a-e563-11e9-9d8f-1831bf6ae40e + - 24c651c6-e56d-11e9-9542-1831bf6ae40e x-ms-date: - - Wed, 02 Oct 2019 22:22:14 GMT + - Wed, 02 Oct 2019 23:34:14 GMT x-ms-version: - '2019-02-02' method: PUT @@ -124,19 +124,19 @@ interactions: : '0' ? !!python/object/new:multidict._istr.istr - Date - : Wed, 02 Oct 2019 22:22:14 GMT + : Wed, 02 Oct 2019 23:34:13 GMT ? !!python/object/new:multidict._istr.istr - Etag - : '"0x8D74786FA03A39C"' + : '"0x8D7479108A0A118"' ? !!python/object/new:multidict._istr.istr - Last-Modified - : Wed, 02 Oct 2019 22:22:14 GMT + : Wed, 02 Oct 2019 23:34:13 GMT ? !!python/object/new:multidict._istr.istr - Server : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 - x-ms-request-id: e84e4cc5-d01e-0044-7a6f-79f560000000 + x-ms-request-id: b242b8ec-b01e-0099-6279-7900e2000000 x-ms-request-server-encrypted: 'false' - x-ms-snapshot: '2019-10-02T22:22:14.2226805Z' + x-ms-snapshot: '2019-10-02T23:34:13.7309250Z' x-ms-version: '2019-02-02' status: code: 201 @@ -163,9 +163,9 @@ interactions: x-ms-blob-type: - BlockBlob x-ms-client-request-id: - - 162607b8-e563-11e9-955e-1831bf6ae40e + - 24cba8e8-e56d-11e9-8af9-1831bf6ae40e x-ms-date: - - Wed, 02 Oct 2019 22:22:14 GMT + - Wed, 02 Oct 2019 23:34:14 GMT x-ms-version: - '2019-02-02' method: PUT @@ -182,18 +182,18 @@ interactions: : XrY7u+Ae7tCTyyK7j1rNww== ? !!python/object/new:multidict._istr.istr - Date - : Wed, 02 Oct 2019 22:22:14 GMT + : Wed, 02 Oct 2019 23:34:13 GMT ? !!python/object/new:multidict._istr.istr - Etag - : '"0x8D74786FA0E0404"' + : '"0x8D7479108AE359F"' ? !!python/object/new:multidict._istr.istr - Last-Modified - : Wed, 02 Oct 2019 22:22:14 GMT + : Wed, 02 Oct 2019 23:34:13 GMT ? !!python/object/new:multidict._istr.istr - Server : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 x-ms-content-crc64: vo7q9sPVKY0= - x-ms-request-id: e84e4cd8-d01e-0044-0c6f-79f560000000 + x-ms-request-id: b242b8f8-b01e-0099-6e79-7900e2000000 x-ms-request-server-encrypted: 'true' x-ms-version: '2019-02-02' status: @@ -221,9 +221,9 @@ interactions: x-ms-blob-type: - BlockBlob x-ms-client-request-id: - - 162bdf5e-e563-11e9-a647-1831bf6ae40e + - 24d1c366-e56d-11e9-b3ab-1831bf6ae40e x-ms-date: - - Wed, 02 Oct 2019 22:22:14 GMT + - Wed, 02 Oct 2019 23:34:14 GMT x-ms-version: - '2019-02-02' method: PUT @@ -240,18 +240,18 @@ interactions: : XrY7u+Ae7tCTyyK7j1rNww== ? !!python/object/new:multidict._istr.istr - Date - : Wed, 02 Oct 2019 22:22:14 GMT + : Wed, 02 Oct 2019 23:34:13 GMT ? !!python/object/new:multidict._istr.istr - Etag - : '"0x8D74786FA13D093"' + : '"0x8D7479108B4EC76"' ? !!python/object/new:multidict._istr.istr - Last-Modified - : Wed, 02 Oct 2019 22:22:14 GMT + : Wed, 02 Oct 2019 23:34:13 GMT ? !!python/object/new:multidict._istr.istr - Server : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 x-ms-content-crc64: vo7q9sPVKY0= - x-ms-request-id: e84e4ce9-d01e-0044-1b6f-79f560000000 + x-ms-request-id: b242b90e-b01e-0099-0379-7900e2000000 x-ms-request-server-encrypted: 'true' x-ms-version: '2019-02-02' status: @@ -273,9 +273,9 @@ interactions: User-Agent: - azsdk-python-storage-blob/12.0.0b4 Python/3.6.3 (Windows-10-10.0.18362-SP0) x-ms-client-request-id: - - 1630c040-e563-11e9-a828-1831bf6ae40e + - 24d70e40-e56d-11e9-a133-1831bf6ae40e x-ms-date: - - Wed, 02 Oct 2019 22:22:14 GMT + - Wed, 02 Oct 2019 23:34:14 GMT x-ms-version: - '2019-02-02' method: GET @@ -283,21 +283,21 @@ interactions: response: body: string: "\uFEFFblob12019-10-02T22:22:14.2226805ZWed, - 02 Oct 2019 22:22:14 GMTWed, 02 Oct 2019 22:22:14 - GMT0x8D74786FA03A39C11application/octet-streamblob12019-10-02T23:34:13.7309250ZWed, + 02 Oct 2019 23:34:13 GMTWed, 02 Oct 2019 23:34:13 + GMT0x8D7479108A0A11811application/octet-streamXrY7u+Ae7tCTyyK7j1rNww==BlockBlobHottruetrueblob1Wed, - 02 Oct 2019 22:22:14 GMTWed, 02 Oct 2019 22:22:14 - GMT0x8D74786FA03A39C11application/octet-streamWed, 02 Oct 2019 23:34:13 + GMT0x8D7479108A0A11811application/octet-streamXrY7u+Ae7tCTyyK7j1rNww==BlockBlobHottrueunlockedavailabletrueblob2Wed, - 02 Oct 2019 22:22:14 GMTWed, 02 Oct 2019 22:22:14 - GMT0x8D74786FA0E040411application/octet-streamWed, 02 Oct 2019 23:34:13 + GMT0x8D7479108AE359F11application/octet-streamXrY7u+Ae7tCTyyK7j1rNww==BlockBlobHottrueunlockedavailabletrueblob3Wed, - 02 Oct 2019 22:22:14 GMTWed, 02 Oct 2019 22:22:14 - GMT0x8D74786FA13D09311application/octet-streamWed, 02 Oct 2019 23:34:13 + GMT0x8D7479108B4EC7611application/octet-streamXrY7u+Ae7tCTyyK7j1rNww==BlockBlobHottrueunlockedavailabletrue" @@ -307,14 +307,14 @@ interactions: : application/xml ? !!python/object/new:multidict._istr.istr - Date - : Wed, 02 Oct 2019 22:22:14 GMT + : Wed, 02 Oct 2019 23:34:13 GMT ? !!python/object/new:multidict._istr.istr - Server : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 ? !!python/object/new:multidict._istr.istr - Transfer-Encoding : chunked - x-ms-request-id: e84e4cf7-d01e-0044-296f-79f560000000 + x-ms-request-id: b242b911-b01e-0099-0679-7900e2000000 x-ms-version: '2019-02-02' status: code: 200 @@ -328,66 +328,63 @@ interactions: - include=snapshots&restype=container&comp=list - '' - request: - body: "--===============6358121913393635088==\r\nContent-Type: application/http\r\nContent-Transfer-Encoding: + body: "--===============7998856315149802492==\r\nContent-Type: application/http\r\nContent-Transfer-Encoding: binary\r\nContent-ID: 0\r\n\r\nDELETE /containerd0941360/blob1? HTTP/1.1\r\nx-ms-delete-snapshots: - only\r\nx-ms-date: Wed, 02 Oct 2019 22:22:14 GMT\r\nx-ms-client-request-id: - 1637451e-e563-11e9-a84b-1831bf6ae40e\r\nAuthorization: SharedKey storagename:YIhlC/WC9tsvPhAq0fhc+K1/wv3VPQ67Nw+CzwoSetA=\r\n\r\n\r\n--===============6358121913393635088==\r\nContent-Type: + only\r\nx-ms-date: Wed, 02 Oct 2019 23:34:14 GMT\r\nx-ms-client-request-id: + 24dfc35b-e56d-11e9-9c49-1831bf6ae40e\r\nAuthorization: SharedKey storagename:UB7LfNetpvgQaiT0YsYkx6rPoiGJ1GWFVf90Pbht4PQ=\r\n\r\n\r\n--===============7998856315149802492==\r\nContent-Type: application/http\r\nContent-Transfer-Encoding: binary\r\nContent-ID: 1\r\n\r\nDELETE /containerd0941360/blob2? HTTP/1.1\r\nx-ms-delete-snapshots: only\r\nx-ms-date: - Wed, 02 Oct 2019 22:22:14 GMT\r\nx-ms-client-request-id: 16374520-e563-11e9-bbaa-1831bf6ae40e\r\nAuthorization: - SharedKey storagename:KZBl4EKoc1sdiqq6Y0zQx+yB7ZD67agQK6BXIY1UYYA=\r\n\r\n\r\n--===============6358121913393635088==\r\nContent-Type: + Wed, 02 Oct 2019 23:34:14 GMT\r\nx-ms-client-request-id: 24dfc35a-e56d-11e9-a261-1831bf6ae40e\r\nAuthorization: + SharedKey storagename:ga7dxFIMwaJN++JqWfrS5ArP5QVUtD7skKPBTBeCuO0=\r\n\r\n\r\n--===============7998856315149802492==\r\nContent-Type: application/http\r\nContent-Transfer-Encoding: binary\r\nContent-ID: 2\r\n\r\nDELETE /containerd0941360/blob3? HTTP/1.1\r\nx-ms-delete-snapshots: only\r\nx-ms-date: - Wed, 02 Oct 2019 22:22:14 GMT\r\nx-ms-client-request-id: 1637451f-e563-11e9-90a1-1831bf6ae40e\r\nAuthorization: - SharedKey storagename:i7S08LRj6CVLcB1jE123l6KOTKqsSclm53//ikVgTiw=\r\n\r\n\r\n--===============6358121913393635088==--\r\n" + Wed, 02 Oct 2019 23:34:14 GMT\r\nx-ms-client-request-id: 24dfc35c-e56d-11e9-882b-1831bf6ae40e\r\nAuthorization: + SharedKey storagename:8Dh1oNkS8omkQrhg1MZOxz9HX0Lhj+KyxPGkpNgUDlY=\r\n\r\n\r\n--===============7998856315149802492==--\r\n" headers: Content-Length: - '1224' Content-Type: - - multipart/mixed; boundary================6358121913393635088== + - multipart/mixed; boundary================7998856315149802492== User-Agent: - azsdk-python-storage-blob/12.0.0b4 Python/3.6.3 (Windows-10-10.0.18362-SP0) x-ms-client-request-id: - - 16379390-e563-11e9-b183-1831bf6ae40e + - 24e01178-e56d-11e9-9703-1831bf6ae40e x-ms-date: - - Wed, 02 Oct 2019 22:22:14 GMT + - Wed, 02 Oct 2019 23:34:14 GMT x-ms-version: - '2019-02-02' method: POST uri: https://storagename.blob.core.windows.net/?comp=batch response: body: - string: "--batchresponse_bde4fb82-2c91-44e5-8ce9-4578c1f5a0b7\r\nContent-Type: + string: "--batchresponse_35579099-eb20-4851-ad90-9521253e026e\r\nContent-Type: application/http\r\nContent-ID: 0\r\n\r\nHTTP/1.1 202 Accepted\r\nx-ms-delete-type-permanent: - true\r\nx-ms-request-id: e84e4d0e-d01e-0044-3c6f-79f5601eb3bd\r\nx-ms-version: - 2019-02-02\r\nx-ms-client-request-id: 1637451e-e563-11e9-a84b-1831bf6ae40e\r\nServer: - Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_bde4fb82-2c91-44e5-8ce9-4578c1f5a0b7\r\nContent-Type: + true\r\nx-ms-request-id: b242b924-b01e-0099-1879-7900e21e1483\r\nx-ms-version: + 2019-02-02\r\nServer: Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_35579099-eb20-4851-ad90-9521253e026e\r\nContent-Type: application/http\r\nContent-ID: 1\r\n\r\nHTTP/1.1 404 The specified blob does - not exist.\r\nx-ms-error-code: BlobNotFound\r\nx-ms-request-id: e84e4d0e-d01e-0044-3c6f-79f5601eb3bf\r\nx-ms-version: - 2019-02-02\r\nx-ms-client-request-id: 16374520-e563-11e9-bbaa-1831bf6ae40e\r\nContent-Length: - 216\r\nContent-Type: application/xml\r\nServer: Windows-Azure-Blob/1.0\r\n\r\n\uFEFF\nBlobNotFoundThe - specified blob does not exist.\nRequestId:e84e4d0e-d01e-0044-3c6f-79f5601eb3bf\nTime:2019-10-02T22:22:14.3789067Z\r\n--batchresponse_bde4fb82-2c91-44e5-8ce9-4578c1f5a0b7\r\nContent-Type: + not exist.\r\nx-ms-error-code: BlobNotFound\r\nx-ms-request-id: b242b924-b01e-0099-1879-7900e21e1485\r\nx-ms-version: + 2019-02-02\r\nContent-Length: 216\r\nContent-Type: application/xml\r\nServer: + Windows-Azure-Blob/1.0\r\n\r\n\uFEFF\nBlobNotFoundThe + specified blob does not exist.\nRequestId:b242b924-b01e-0099-1879-7900e21e1485\nTime:2019-10-02T23:34:13.9769390Z\r\n--batchresponse_35579099-eb20-4851-ad90-9521253e026e\r\nContent-Type: application/http\r\nContent-ID: 2\r\n\r\nHTTP/1.1 404 The specified blob does - not exist.\r\nx-ms-error-code: BlobNotFound\r\nx-ms-request-id: e84e4d0e-d01e-0044-3c6f-79f5601eb3c0\r\nx-ms-version: - 2019-02-02\r\nx-ms-client-request-id: 1637451f-e563-11e9-90a1-1831bf6ae40e\r\nContent-Length: - 216\r\nContent-Type: application/xml\r\nServer: Windows-Azure-Blob/1.0\r\n\r\n\uFEFF\nBlobNotFoundThe - specified blob does not exist.\nRequestId:e84e4d0e-d01e-0044-3c6f-79f5601eb3c0\nTime:2019-10-02T22:22:14.3789067Z\r\n--batchresponse_bde4fb82-2c91-44e5-8ce9-4578c1f5a0b7--" + not exist.\r\nx-ms-error-code: BlobNotFound\r\nx-ms-request-id: b242b924-b01e-0099-1879-7900e21e1486\r\nx-ms-version: + 2019-02-02\r\nContent-Length: 216\r\nContent-Type: application/xml\r\nServer: + Windows-Azure-Blob/1.0\r\n\r\n\uFEFF\nBlobNotFoundThe + specified blob does not exist.\nRequestId:b242b924-b01e-0099-1879-7900e21e1486\nTime:2019-10-02T23:34:13.9769390Z\r\n--batchresponse_35579099-eb20-4851-ad90-9521253e026e--" headers: ? !!python/object/new:multidict._istr.istr - Content-Type - : multipart/mixed; boundary=batchresponse_bde4fb82-2c91-44e5-8ce9-4578c1f5a0b7 + : multipart/mixed; boundary=batchresponse_35579099-eb20-4851-ad90-9521253e026e ? !!python/object/new:multidict._istr.istr - Date - : Wed, 02 Oct 2019 22:22:14 GMT + : Wed, 02 Oct 2019 23:34:13 GMT ? !!python/object/new:multidict._istr.istr - Server : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 ? !!python/object/new:multidict._istr.istr - Transfer-Encoding : chunked - x-ms-request-id: e84e4d0e-d01e-0044-3c6f-79f560000000 + x-ms-request-id: b242b924-b01e-0099-1879-7900e2000000 x-ms-version: '2019-02-02' status: code: 202 @@ -408,9 +405,9 @@ interactions: User-Agent: - azsdk-python-storage-blob/12.0.0b4 Python/3.6.3 (Windows-10-10.0.18362-SP0) x-ms-client-request-id: - - 163cb92e-e563-11e9-9b8d-1831bf6ae40e + - 24f30692-e56d-11e9-a289-1831bf6ae40e x-ms-date: - - Wed, 02 Oct 2019 22:22:14 GMT + - Wed, 02 Oct 2019 23:34:14 GMT x-ms-version: - '2019-02-02' method: GET @@ -419,16 +416,16 @@ interactions: body: string: "\uFEFFblob1Wed, - 02 Oct 2019 22:22:14 GMTWed, 02 Oct 2019 22:22:14 - GMT0x8D74786FA03A39C11application/octet-streamWed, 02 Oct 2019 23:34:13 + GMT0x8D7479108A0A11811application/octet-streamXrY7u+Ae7tCTyyK7j1rNww==BlockBlobHottrueunlockedavailabletrueblob2Wed, - 02 Oct 2019 22:22:14 GMTWed, 02 Oct 2019 22:22:14 - GMT0x8D74786FA0E040411application/octet-streamWed, 02 Oct 2019 23:34:13 + GMT0x8D7479108AE359F11application/octet-streamXrY7u+Ae7tCTyyK7j1rNww==BlockBlobHottrueunlockedavailabletrueblob3Wed, - 02 Oct 2019 22:22:14 GMTWed, 02 Oct 2019 22:22:14 - GMT0x8D74786FA13D09311application/octet-streamWed, 02 Oct 2019 23:34:13 + GMT0x8D7479108B4EC7611application/octet-streamXrY7u+Ae7tCTyyK7j1rNww==BlockBlobHottrueunlockedavailabletrue" @@ -438,14 +435,14 @@ interactions: : application/xml ? !!python/object/new:multidict._istr.istr - Date - : Wed, 02 Oct 2019 22:22:14 GMT + : Wed, 02 Oct 2019 23:34:13 GMT ? !!python/object/new:multidict._istr.istr - Server : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 ? !!python/object/new:multidict._istr.istr - Transfer-Encoding : chunked - x-ms-request-id: e84e4d22-d01e-0044-4f6f-79f560000000 + x-ms-request-id: b242b942-b01e-0099-3579-7900e2000000 x-ms-version: '2019-02-02' status: code: 200 diff --git a/sdk/storage/azure-storage-blob/tests/recordings/test_container_async.test_standard_blob_tier_set_tier_api_batch.yaml b/sdk/storage/azure-storage-blob/tests/recordings/test_container_async.test_standard_blob_tier_set_tier_api_batch.yaml index 8b39c6c84ee8..b8925e6c4655 100644 --- a/sdk/storage/azure-storage-blob/tests/recordings/test_container_async.test_standard_blob_tier_set_tier_api_batch.yaml +++ b/sdk/storage/azure-storage-blob/tests/recordings/test_container_async.test_standard_blob_tier_set_tier_api_batch.yaml @@ -5,9 +5,9 @@ interactions: User-Agent: - azsdk-python-storage-blob/12.0.0b4 Python/3.6.3 (Windows-10-10.0.18362-SP0) x-ms-client-request-id: - - 41a80992-e563-11e9-bb1a-1831bf6ae40e + - 32d7c2dc-e56d-11e9-9db5-1831bf6ae40e x-ms-date: - - Wed, 02 Oct 2019 22:23:27 GMT + - Wed, 02 Oct 2019 23:34:37 GMT x-ms-version: - '2019-02-02' method: PUT @@ -21,17 +21,17 @@ interactions: : '0' ? !!python/object/new:multidict._istr.istr - Date - : Wed, 02 Oct 2019 22:23:27 GMT + : Wed, 02 Oct 2019 23:34:37 GMT ? !!python/object/new:multidict._istr.istr - Etag - : '"0x8D74787259C11DB"' + : '"0x8D7479116D2797E"' ? !!python/object/new:multidict._istr.istr - Last-Modified - : Wed, 02 Oct 2019 22:23:27 GMT + : Wed, 02 Oct 2019 23:34:37 GMT ? !!python/object/new:multidict._istr.istr - Server : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 - x-ms-request-id: c35c14d2-501e-0028-1e70-791ef7000000 + x-ms-request-id: c97a0e14-a01e-0071-7d79-799974000000 x-ms-version: '2019-02-02' status: code: 201 @@ -58,9 +58,9 @@ interactions: x-ms-blob-type: - BlockBlob x-ms-client-request-id: - - 41ba5946-e563-11e9-bb75-1831bf6ae40e + - 330081c6-e56d-11e9-87cc-1831bf6ae40e x-ms-date: - - Wed, 02 Oct 2019 22:23:27 GMT + - Wed, 02 Oct 2019 23:34:38 GMT x-ms-version: - '2019-02-02' method: PUT @@ -77,18 +77,18 @@ interactions: : XrY7u+Ae7tCTyyK7j1rNww== ? !!python/object/new:multidict._istr.istr - Date - : Wed, 02 Oct 2019 22:23:27 GMT + : Wed, 02 Oct 2019 23:34:37 GMT ? !!python/object/new:multidict._istr.istr - Etag - : '"0x8D7478725A2426B"' + : '"0x8D7479116E3383E"' ? !!python/object/new:multidict._istr.istr - Last-Modified - : Wed, 02 Oct 2019 22:23:27 GMT + : Wed, 02 Oct 2019 23:34:37 GMT ? !!python/object/new:multidict._istr.istr - Server : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 x-ms-content-crc64: vo7q9sPVKY0= - x-ms-request-id: c35c1504-501e-0028-4c70-791ef7000000 + x-ms-request-id: c97a0e59-a01e-0071-3b79-799974000000 x-ms-request-server-encrypted: 'true' x-ms-version: '2019-02-02' status: @@ -116,9 +116,9 @@ interactions: x-ms-blob-type: - BlockBlob x-ms-client-request-id: - - 41c06138-e563-11e9-b61f-1831bf6ae40e + - 33062838-e56d-11e9-8003-1831bf6ae40e x-ms-date: - - Wed, 02 Oct 2019 22:23:27 GMT + - Wed, 02 Oct 2019 23:34:38 GMT x-ms-version: - '2019-02-02' method: PUT @@ -135,18 +135,18 @@ interactions: : XrY7u+Ae7tCTyyK7j1rNww== ? !!python/object/new:multidict._istr.istr - Date - : Wed, 02 Oct 2019 22:23:27 GMT + : Wed, 02 Oct 2019 23:34:37 GMT ? !!python/object/new:multidict._istr.istr - Etag - : '"0x8D7478725A85D1B"' + : '"0x8D7479116E904C5"' ? !!python/object/new:multidict._istr.istr - Last-Modified - : Wed, 02 Oct 2019 22:23:27 GMT + : Wed, 02 Oct 2019 23:34:37 GMT ? !!python/object/new:multidict._istr.istr - Server : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 x-ms-content-crc64: vo7q9sPVKY0= - x-ms-request-id: c35c1530-501e-0028-7770-791ef7000000 + x-ms-request-id: c97a0e70-a01e-0071-5279-799974000000 x-ms-request-server-encrypted: 'true' x-ms-version: '2019-02-02' status: @@ -174,9 +174,9 @@ interactions: x-ms-blob-type: - BlockBlob x-ms-client-request-id: - - 41c632f8-e563-11e9-bf9b-1831bf6ae40e + - 330c27b0-e56d-11e9-afb2-1831bf6ae40e x-ms-date: - - Wed, 02 Oct 2019 22:23:27 GMT + - Wed, 02 Oct 2019 23:34:38 GMT x-ms-version: - '2019-02-02' method: PUT @@ -193,18 +193,18 @@ interactions: : XrY7u+Ae7tCTyyK7j1rNww== ? !!python/object/new:multidict._istr.istr - Date - : Wed, 02 Oct 2019 22:23:27 GMT + : Wed, 02 Oct 2019 23:34:37 GMT ? !!python/object/new:multidict._istr.istr - Etag - : '"0x8D7478725AD8D5A"' + : '"0x8D7479116EEF81E"' ? !!python/object/new:multidict._istr.istr - Last-Modified - : Wed, 02 Oct 2019 22:23:27 GMT + : Wed, 02 Oct 2019 23:34:37 GMT ? !!python/object/new:multidict._istr.istr - Server : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 x-ms-content-crc64: vo7q9sPVKY0= - x-ms-request-id: c35c154b-501e-0028-1270-791ef7000000 + x-ms-request-id: c97a0e91-a01e-0071-6e79-799974000000 x-ms-request-server-encrypted: 'true' x-ms-version: '2019-02-02' status: @@ -224,9 +224,9 @@ interactions: User-Agent: - azsdk-python-storage-blob/12.0.0b4 Python/3.6.3 (Windows-10-10.0.18362-SP0) x-ms-client-request-id: - - 41ca804a-e563-11e9-ac80-1831bf6ae40e + - 33132c9e-e56d-11e9-9723-1831bf6ae40e x-ms-date: - - Wed, 02 Oct 2019 22:23:27 GMT + - Wed, 02 Oct 2019 23:34:38 GMT x-ms-version: - '2019-02-02' method: HEAD @@ -249,23 +249,23 @@ interactions: : application/octet-stream ? !!python/object/new:multidict._istr.istr - Date - : Wed, 02 Oct 2019 22:23:27 GMT + : Wed, 02 Oct 2019 23:34:37 GMT ? !!python/object/new:multidict._istr.istr - Etag - : '"0x8D7478725A2426B"' + : '"0x8D7479116E3383E"' ? !!python/object/new:multidict._istr.istr - Last-Modified - : Wed, 02 Oct 2019 22:23:27 GMT + : Wed, 02 Oct 2019 23:34:37 GMT ? !!python/object/new:multidict._istr.istr - Server : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 x-ms-access-tier: Hot x-ms-access-tier-inferred: 'true' x-ms-blob-type: BlockBlob - x-ms-creation-time: Wed, 02 Oct 2019 22:23:27 GMT + x-ms-creation-time: Wed, 02 Oct 2019 23:34:37 GMT x-ms-lease-state: available x-ms-lease-status: unlocked - x-ms-request-id: c35c1564-501e-0028-2b70-791ef7000000 + x-ms-request-id: c97a0eb5-a01e-0071-1279-799974000000 x-ms-server-encrypted: 'true' x-ms-version: '2019-02-02' status: @@ -280,59 +280,59 @@ interactions: - '' - '' - request: - body: "--===============9199888853215659553==\r\nContent-Type: application/http\r\nContent-Transfer-Encoding: + body: "--===============5802361980353224357==\r\nContent-Type: application/http\r\nContent-Transfer-Encoding: binary\r\nContent-ID: 0\r\n\r\nPUT /container3d7c19c7/blob1?comp=tier HTTP/1.1\r\nContent-Length: - 0\r\nx-ms-access-tier: Archive\r\nx-ms-date: Wed, 02 Oct 2019 22:23:28 GMT\r\nx-ms-client-request-id: - 41ce5af0-e563-11e9-b214-1831bf6ae40e\r\nAuthorization: SharedKey storagename:JdtVWVncdncVVBRi8AIkhptKyoMyrRY0bgi6w0ofbXw=\r\n\r\n\r\n--===============9199888853215659553==\r\nContent-Type: + 0\r\nx-ms-access-tier: Archive\r\nx-ms-date: Wed, 02 Oct 2019 23:34:38 GMT\r\nx-ms-client-request-id: + 331a7fa0-e56d-11e9-801a-1831bf6ae40e\r\nAuthorization: SharedKey storagename:pOd7Li6+PCp6RwpB/8txWn9enj72uZqNDJM/yxgW/qg=\r\n\r\n\r\n--===============5802361980353224357==\r\nContent-Type: application/http\r\nContent-Transfer-Encoding: binary\r\nContent-ID: 1\r\n\r\nPUT /container3d7c19c7/blob2?comp=tier HTTP/1.1\r\nContent-Length: 0\r\nx-ms-access-tier: - Archive\r\nx-ms-date: Wed, 02 Oct 2019 22:23:28 GMT\r\nx-ms-client-request-id: - 41ce33e2-e563-11e9-a785-1831bf6ae40e\r\nAuthorization: SharedKey storagename:P2a3c3dFDQIa4bu/ZeI7ajVhQVUnH/9G5zMwrI1pyds=\r\n\r\n\r\n--===============9199888853215659553==\r\nContent-Type: + Archive\r\nx-ms-date: Wed, 02 Oct 2019 23:34:38 GMT\r\nx-ms-client-request-id: + 331a7f9f-e56d-11e9-a0cb-1831bf6ae40e\r\nAuthorization: SharedKey storagename:CL0F6M5fMpKwC/g/ZQllS3FNuC/ZERZLdkb5FNVHTSk=\r\n\r\n\r\n--===============5802361980353224357==\r\nContent-Type: application/http\r\nContent-Transfer-Encoding: binary\r\nContent-ID: 2\r\n\r\nPUT /container3d7c19c7/blob3?comp=tier HTTP/1.1\r\nContent-Length: 0\r\nx-ms-access-tier: - Archive\r\nx-ms-date: Wed, 02 Oct 2019 22:23:28 GMT\r\nx-ms-client-request-id: - 41ce5af1-e563-11e9-9960-1831bf6ae40e\r\nAuthorization: SharedKey storagename:y2QZ/Rrc95ywFtTCzlHxmEQz6bmBg2tDshTYqQbLbZ4=\r\n\r\n\r\n--===============9199888853215659553==--\r\n" + Archive\r\nx-ms-date: Wed, 02 Oct 2019 23:34:38 GMT\r\nx-ms-client-request-id: + 331a7f9e-e56d-11e9-8142-1831bf6ae40e\r\nAuthorization: SharedKey storagename:kT/BrdmwrkWixIKsFwKs+JtmhDH4JycbB/X6kAXod14=\r\n\r\n\r\n--===============5802361980353224357==--\r\n" headers: Content-Length: - '1293' Content-Type: - - multipart/mixed; boundary================9199888853215659553== + - multipart/mixed; boundary================5802361980353224357== User-Agent: - azsdk-python-storage-blob/12.0.0b4 Python/3.6.3 (Windows-10-10.0.18362-SP0) x-ms-client-request-id: - - 41ce8200-e563-11e9-a962-1831bf6ae40e + - 331b68c0-e56d-11e9-903c-1831bf6ae40e x-ms-date: - - Wed, 02 Oct 2019 22:23:28 GMT + - Wed, 02 Oct 2019 23:34:38 GMT x-ms-version: - '2019-02-02' method: POST uri: https://storagename.blob.core.windows.net/?comp=batch response: body: - string: "--batchresponse_f5948b86-6eb7-4aca-8096-b2f47d9cfdd9\r\nContent-Type: + string: "--batchresponse_238f34ad-2ef1-4e8f-ad72-4e053dd442d8\r\nContent-Type: application/http\r\nContent-ID: 0\r\n\r\nHTTP/1.1 200 OK\r\nx-ms-request-id: - e4bca4f1-601e-0041-7d70-7927bb1e008d\r\nx-ms-version: 2019-02-02\r\nx-ms-client-request-id: - 41ce5af0-e563-11e9-b214-1831bf6ae40e\r\nServer: Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_f5948b86-6eb7-4aca-8096-b2f47d9cfdd9\r\nContent-Type: + 2ea12eb8-501e-0091-3c79-791aed1e5238\r\nx-ms-version: 2019-02-02\r\nServer: + Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_238f34ad-2ef1-4e8f-ad72-4e053dd442d8\r\nContent-Type: application/http\r\nContent-ID: 1\r\n\r\nHTTP/1.1 200 OK\r\nx-ms-request-id: - e4bca4f1-601e-0041-7d70-7927bb1e008f\r\nx-ms-version: 2019-02-02\r\nx-ms-client-request-id: - 41ce33e2-e563-11e9-a785-1831bf6ae40e\r\nServer: Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_f5948b86-6eb7-4aca-8096-b2f47d9cfdd9\r\nContent-Type: + 2ea12eb8-501e-0091-3c79-791aed1e523a\r\nx-ms-version: 2019-02-02\r\nServer: + Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_238f34ad-2ef1-4e8f-ad72-4e053dd442d8\r\nContent-Type: application/http\r\nContent-ID: 2\r\n\r\nHTTP/1.1 200 OK\r\nx-ms-request-id: - e4bca4f1-601e-0041-7d70-7927bb1e0090\r\nx-ms-version: 2019-02-02\r\nx-ms-client-request-id: - 41ce5af1-e563-11e9-9960-1831bf6ae40e\r\nServer: Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_f5948b86-6eb7-4aca-8096-b2f47d9cfdd9--" + 2ea12eb8-501e-0091-3c79-791aed1e523b\r\nx-ms-version: 2019-02-02\r\nServer: + Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_238f34ad-2ef1-4e8f-ad72-4e053dd442d8--" headers: ? !!python/object/new:multidict._istr.istr - Content-Type - : multipart/mixed; boundary=batchresponse_f5948b86-6eb7-4aca-8096-b2f47d9cfdd9 + : multipart/mixed; boundary=batchresponse_238f34ad-2ef1-4e8f-ad72-4e053dd442d8 ? !!python/object/new:multidict._istr.istr - Date - : Wed, 02 Oct 2019 22:23:27 GMT + : Wed, 02 Oct 2019 23:34:37 GMT ? !!python/object/new:multidict._istr.istr - Server : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 ? !!python/object/new:multidict._istr.istr - Transfer-Encoding : chunked - x-ms-request-id: e4bca4f1-601e-0041-7d70-7927bb000000 + x-ms-request-id: 2ea12eb8-501e-0091-3c79-791aed000000 x-ms-version: '2019-02-02' status: code: 202 @@ -351,9 +351,9 @@ interactions: User-Agent: - azsdk-python-storage-blob/12.0.0b4 Python/3.6.3 (Windows-10-10.0.18362-SP0) x-ms-client-request-id: - - 41df3936-e563-11e9-a98b-1831bf6ae40e + - 3331ab86-e56d-11e9-ba5b-1831bf6ae40e x-ms-date: - - Wed, 02 Oct 2019 22:23:28 GMT + - Wed, 02 Oct 2019 23:34:38 GMT x-ms-version: - '2019-02-02' method: HEAD @@ -376,23 +376,23 @@ interactions: : application/octet-stream ? !!python/object/new:multidict._istr.istr - Date - : Wed, 02 Oct 2019 22:23:27 GMT + : Wed, 02 Oct 2019 23:34:37 GMT ? !!python/object/new:multidict._istr.istr - Etag - : '"0x8D7478725A2426B"' + : '"0x8D7479116E3383E"' ? !!python/object/new:multidict._istr.istr - Last-Modified - : Wed, 02 Oct 2019 22:23:27 GMT + : Wed, 02 Oct 2019 23:34:37 GMT ? !!python/object/new:multidict._istr.istr - Server : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 x-ms-access-tier: Archive - x-ms-access-tier-change-time: Wed, 02 Oct 2019 22:23:27 GMT + x-ms-access-tier-change-time: Wed, 02 Oct 2019 23:34:37 GMT x-ms-blob-type: BlockBlob - x-ms-creation-time: Wed, 02 Oct 2019 22:23:27 GMT + x-ms-creation-time: Wed, 02 Oct 2019 23:34:37 GMT x-ms-lease-state: available x-ms-lease-status: unlocked - x-ms-request-id: e4bca4fc-601e-0041-0870-7927bb000000 + x-ms-request-id: 2ea12ee9-501e-0091-6c79-791aed000000 x-ms-server-encrypted: 'true' x-ms-version: '2019-02-02' status: @@ -407,60 +407,57 @@ interactions: - '' - '' - request: - body: "--===============4611818641927203127==\r\nContent-Type: application/http\r\nContent-Transfer-Encoding: + body: "--===============1060753039404979828==\r\nContent-Type: application/http\r\nContent-Transfer-Encoding: binary\r\nContent-ID: 0\r\n\r\nDELETE /container3d7c19c7/blob1? HTTP/1.1\r\nx-ms-date: - Wed, 02 Oct 2019 22:23:28 GMT\r\nx-ms-client-request-id: 41e4b781-e563-11e9-827e-1831bf6ae40e\r\nAuthorization: - SharedKey storagename:QZenZ/VwH2ox49VRa/SuUxrke7fL5cFctqR4JzK8q3o=\r\n\r\n\r\n--===============4611818641927203127==\r\nContent-Type: + Wed, 02 Oct 2019 23:34:38 GMT\r\nx-ms-client-request-id: 33364540-e56d-11e9-9878-1831bf6ae40e\r\nAuthorization: + SharedKey storagename:S/N5AIT6JVVz+ukPIvBmhvBn0W4T70Owrh+l6c5KLR8=\r\n\r\n\r\n--===============1060753039404979828==\r\nContent-Type: application/http\r\nContent-Transfer-Encoding: binary\r\nContent-ID: 1\r\n\r\nDELETE - /container3d7c19c7/blob2? HTTP/1.1\r\nx-ms-date: Wed, 02 Oct 2019 22:23:28 GMT\r\nx-ms-client-request-id: - 41e4b782-e563-11e9-9e4e-1831bf6ae40e\r\nAuthorization: SharedKey storagename:xoJKPM5ef2tyd26RiaMPKP+dHIWkkuiEVN0tNge7pIU=\r\n\r\n\r\n--===============4611818641927203127==\r\nContent-Type: + /container3d7c19c7/blob2? HTTP/1.1\r\nx-ms-date: Wed, 02 Oct 2019 23:34:38 GMT\r\nx-ms-client-request-id: + 33364542-e56d-11e9-81f7-1831bf6ae40e\r\nAuthorization: SharedKey storagename:So7Kdr7n2sIOs+nXBTkdhIvoqzqf1Ix5xV6O4+uDnLc=\r\n\r\n\r\n--===============1060753039404979828==\r\nContent-Type: application/http\r\nContent-Transfer-Encoding: binary\r\nContent-ID: 2\r\n\r\nDELETE - /container3d7c19c7/blob3? HTTP/1.1\r\nx-ms-date: Wed, 02 Oct 2019 22:23:28 GMT\r\nx-ms-client-request-id: - 41e4b780-e563-11e9-909e-1831bf6ae40e\r\nAuthorization: SharedKey storagename:/EREPByEKNkXxaz2jMTV/MGvZyfe/rzmNRUlbxJqpqs=\r\n\r\n\r\n--===============4611818641927203127==--\r\n" + /container3d7c19c7/blob3? HTTP/1.1\r\nx-ms-date: Wed, 02 Oct 2019 23:34:38 GMT\r\nx-ms-client-request-id: + 33364541-e56d-11e9-bec3-1831bf6ae40e\r\nAuthorization: SharedKey storagename:uNeVcTa0IZsOaAmu9WDWWe4MJeUITSfGDKrfEjjC5sU=\r\n\r\n\r\n--===============1060753039404979828==--\r\n" headers: Content-Length: - '1137' Content-Type: - - multipart/mixed; boundary================4611818641927203127== + - multipart/mixed; boundary================1060753039404979828== User-Agent: - azsdk-python-storage-blob/12.0.0b4 Python/3.6.3 (Windows-10-10.0.18362-SP0) x-ms-client-request-id: - - 41e505a6-e563-11e9-986a-1831bf6ae40e + - 33366c52-e56d-11e9-ac00-1831bf6ae40e x-ms-date: - - Wed, 02 Oct 2019 22:23:28 GMT + - Wed, 02 Oct 2019 23:34:38 GMT x-ms-version: - '2019-02-02' method: POST uri: https://storagename.blob.core.windows.net/?comp=batch response: body: - string: "--batchresponse_17ac98fe-bac0-4d12-996d-b8e5d89c318d\r\nContent-Type: + string: "--batchresponse_e11492a4-5f25-48ff-8839-65ee748cdcd1\r\nContent-Type: application/http\r\nContent-ID: 0\r\n\r\nHTTP/1.1 202 Accepted\r\nx-ms-delete-type-permanent: - true\r\nx-ms-request-id: a52f56e0-501e-0081-5570-79df851eb203\r\nx-ms-version: - 2019-02-02\r\nx-ms-client-request-id: 41e4b781-e563-11e9-827e-1831bf6ae40e\r\nServer: - Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_17ac98fe-bac0-4d12-996d-b8e5d89c318d\r\nContent-Type: + true\r\nx-ms-request-id: 45b83b52-601e-0023-1679-79e59c1e6f0e\r\nx-ms-version: + 2019-02-02\r\nServer: Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_e11492a4-5f25-48ff-8839-65ee748cdcd1\r\nContent-Type: application/http\r\nContent-ID: 1\r\n\r\nHTTP/1.1 202 Accepted\r\nx-ms-delete-type-permanent: - true\r\nx-ms-request-id: a52f56e0-501e-0081-5570-79df851eb205\r\nx-ms-version: - 2019-02-02\r\nx-ms-client-request-id: 41e4b782-e563-11e9-9e4e-1831bf6ae40e\r\nServer: - Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_17ac98fe-bac0-4d12-996d-b8e5d89c318d\r\nContent-Type: + true\r\nx-ms-request-id: 45b83b52-601e-0023-1679-79e59c1e6f10\r\nx-ms-version: + 2019-02-02\r\nServer: Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_e11492a4-5f25-48ff-8839-65ee748cdcd1\r\nContent-Type: application/http\r\nContent-ID: 2\r\n\r\nHTTP/1.1 202 Accepted\r\nx-ms-delete-type-permanent: - true\r\nx-ms-request-id: a52f56e0-501e-0081-5570-79df851eb206\r\nx-ms-version: - 2019-02-02\r\nx-ms-client-request-id: 41e4b780-e563-11e9-909e-1831bf6ae40e\r\nServer: - Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_17ac98fe-bac0-4d12-996d-b8e5d89c318d--" + true\r\nx-ms-request-id: 45b83b52-601e-0023-1679-79e59c1e6f11\r\nx-ms-version: + 2019-02-02\r\nServer: Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_e11492a4-5f25-48ff-8839-65ee748cdcd1--" headers: ? !!python/object/new:multidict._istr.istr - Content-Type - : multipart/mixed; boundary=batchresponse_17ac98fe-bac0-4d12-996d-b8e5d89c318d + : multipart/mixed; boundary=batchresponse_e11492a4-5f25-48ff-8839-65ee748cdcd1 ? !!python/object/new:multidict._istr.istr - Date - : Wed, 02 Oct 2019 22:23:26 GMT + : Wed, 02 Oct 2019 23:34:37 GMT ? !!python/object/new:multidict._istr.istr - Server : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 ? !!python/object/new:multidict._istr.istr - Transfer-Encoding : chunked - x-ms-request-id: a52f56e0-501e-0081-5570-79df85000000 + x-ms-request-id: 45b83b52-601e-0023-1679-79e59c000000 x-ms-version: '2019-02-02' status: code: 202 @@ -487,9 +484,9 @@ interactions: x-ms-blob-type: - BlockBlob x-ms-client-request-id: - - 41f901ac-e563-11e9-9e52-1831bf6ae40e + - 3349d806-e56d-11e9-b52f-1831bf6ae40e x-ms-date: - - Wed, 02 Oct 2019 22:23:28 GMT + - Wed, 02 Oct 2019 23:34:38 GMT x-ms-version: - '2019-02-02' method: PUT @@ -506,18 +503,18 @@ interactions: : XrY7u+Ae7tCTyyK7j1rNww== ? !!python/object/new:multidict._istr.istr - Date - : Wed, 02 Oct 2019 22:23:26 GMT + : Wed, 02 Oct 2019 23:34:37 GMT ? !!python/object/new:multidict._istr.istr - Etag - : '"0x8D7478725E12092"' + : '"0x8D74791172CC4B3"' ? !!python/object/new:multidict._istr.istr - Last-Modified - : Wed, 02 Oct 2019 22:23:27 GMT + : Wed, 02 Oct 2019 23:34:38 GMT ? !!python/object/new:multidict._istr.istr - Server : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 x-ms-content-crc64: vo7q9sPVKY0= - x-ms-request-id: a52f5702-501e-0081-7470-79df85000000 + x-ms-request-id: 45b83b7b-601e-0023-3e79-79e59c000000 x-ms-request-server-encrypted: 'true' x-ms-version: '2019-02-02' status: @@ -545,9 +542,9 @@ interactions: x-ms-blob-type: - BlockBlob x-ms-client-request-id: - - 41ff1c2c-e563-11e9-8d3d-1831bf6ae40e + - 334fcb74-e56d-11e9-8b65-1831bf6ae40e x-ms-date: - - Wed, 02 Oct 2019 22:23:28 GMT + - Wed, 02 Oct 2019 23:34:38 GMT x-ms-version: - '2019-02-02' method: PUT @@ -564,18 +561,18 @@ interactions: : XrY7u+Ae7tCTyyK7j1rNww== ? !!python/object/new:multidict._istr.istr - Date - : Wed, 02 Oct 2019 22:23:26 GMT + : Wed, 02 Oct 2019 23:34:37 GMT ? !!python/object/new:multidict._istr.istr - Etag - : '"0x8D7478725E6ECE0"' + : '"0x8D7479117335494"' ? !!python/object/new:multidict._istr.istr - Last-Modified - : Wed, 02 Oct 2019 22:23:27 GMT + : Wed, 02 Oct 2019 23:34:38 GMT ? !!python/object/new:multidict._istr.istr - Server : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 x-ms-content-crc64: vo7q9sPVKY0= - x-ms-request-id: a52f5715-501e-0081-0670-79df85000000 + x-ms-request-id: 45b83b97-601e-0023-5779-79e59c000000 x-ms-request-server-encrypted: 'true' x-ms-version: '2019-02-02' status: @@ -603,9 +600,9 @@ interactions: x-ms-blob-type: - BlockBlob x-ms-client-request-id: - - 420536b0-e563-11e9-902f-1831bf6ae40e + - 335673a8-e56d-11e9-ba2e-1831bf6ae40e x-ms-date: - - Wed, 02 Oct 2019 22:23:28 GMT + - Wed, 02 Oct 2019 23:34:38 GMT x-ms-version: - '2019-02-02' method: PUT @@ -622,18 +619,18 @@ interactions: : XrY7u+Ae7tCTyyK7j1rNww== ? !!python/object/new:multidict._istr.istr - Date - : Wed, 02 Oct 2019 22:23:26 GMT + : Wed, 02 Oct 2019 23:34:37 GMT ? !!python/object/new:multidict._istr.istr - Etag - : '"0x8D7478725ED2E75"' + : '"0x8D747911738F9CB"' ? !!python/object/new:multidict._istr.istr - Last-Modified - : Wed, 02 Oct 2019 22:23:27 GMT + : Wed, 02 Oct 2019 23:34:38 GMT ? !!python/object/new:multidict._istr.istr - Server : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 x-ms-content-crc64: vo7q9sPVKY0= - x-ms-request-id: a52f5728-501e-0081-1970-79df85000000 + x-ms-request-id: 45b83bac-601e-0023-6979-79e59c000000 x-ms-request-server-encrypted: 'true' x-ms-version: '2019-02-02' status: @@ -653,9 +650,9 @@ interactions: User-Agent: - azsdk-python-storage-blob/12.0.0b4 Python/3.6.3 (Windows-10-10.0.18362-SP0) x-ms-client-request-id: - - 420b0312-e563-11e9-9ac2-1831bf6ae40e + - 335b0d1e-e56d-11e9-a3fe-1831bf6ae40e x-ms-date: - - Wed, 02 Oct 2019 22:23:28 GMT + - Wed, 02 Oct 2019 23:34:38 GMT x-ms-version: - '2019-02-02' method: HEAD @@ -678,23 +675,23 @@ interactions: : application/octet-stream ? !!python/object/new:multidict._istr.istr - Date - : Wed, 02 Oct 2019 22:23:26 GMT + : Wed, 02 Oct 2019 23:34:37 GMT ? !!python/object/new:multidict._istr.istr - Etag - : '"0x8D7478725E12092"' + : '"0x8D74791172CC4B3"' ? !!python/object/new:multidict._istr.istr - Last-Modified - : Wed, 02 Oct 2019 22:23:27 GMT + : Wed, 02 Oct 2019 23:34:38 GMT ? !!python/object/new:multidict._istr.istr - Server : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 x-ms-access-tier: Hot x-ms-access-tier-inferred: 'true' x-ms-blob-type: BlockBlob - x-ms-creation-time: Wed, 02 Oct 2019 22:23:27 GMT + x-ms-creation-time: Wed, 02 Oct 2019 23:34:38 GMT x-ms-lease-state: available x-ms-lease-status: unlocked - x-ms-request-id: a52f573c-501e-0081-2b70-79df85000000 + x-ms-request-id: 45b83bbb-601e-0023-7879-79e59c000000 x-ms-server-encrypted: 'true' x-ms-version: '2019-02-02' status: @@ -709,59 +706,59 @@ interactions: - '' - '' - request: - body: "--===============2796322368600226439==\r\nContent-Type: application/http\r\nContent-Transfer-Encoding: + body: "--===============8384162589281376436==\r\nContent-Type: application/http\r\nContent-Transfer-Encoding: binary\r\nContent-ID: 0\r\n\r\nPUT /container3d7c19c7/blob1?comp=tier HTTP/1.1\r\nContent-Length: - 0\r\nx-ms-access-tier: Cool\r\nx-ms-date: Wed, 02 Oct 2019 22:23:28 GMT\r\nx-ms-client-request-id: - 420efaad-e563-11e9-9ca8-1831bf6ae40e\r\nAuthorization: SharedKey storagename:d7rHSsbFfOpxrV2ctq95nUIl45MkMhRDZZKmw8Utros=\r\n\r\n\r\n--===============2796322368600226439==\r\nContent-Type: + 0\r\nx-ms-access-tier: Cool\r\nx-ms-date: Wed, 02 Oct 2019 23:34:38 GMT\r\nx-ms-client-request-id: + 335eddaf-e56d-11e9-97ff-1831bf6ae40e\r\nAuthorization: SharedKey storagename:xHmMZBjPWfFYaqAsg09EcYnZ7jutQTmjF/x7RUdEnOw=\r\n\r\n\r\n--===============8384162589281376436==\r\nContent-Type: application/http\r\nContent-Transfer-Encoding: binary\r\nContent-ID: 1\r\n\r\nPUT /container3d7c19c7/blob2?comp=tier HTTP/1.1\r\nContent-Length: 0\r\nx-ms-access-tier: - Cool\r\nx-ms-date: Wed, 02 Oct 2019 22:23:28 GMT\r\nx-ms-client-request-id: - 420efaae-e563-11e9-94b3-1831bf6ae40e\r\nAuthorization: SharedKey storagename:ktdqXV88w0DgkPg8B8rYhbVY7R1E3+WqiOoyCB/En78=\r\n\r\n\r\n--===============2796322368600226439==\r\nContent-Type: + Cool\r\nx-ms-date: Wed, 02 Oct 2019 23:34:38 GMT\r\nx-ms-client-request-id: + 335eddb0-e56d-11e9-a0bf-1831bf6ae40e\r\nAuthorization: SharedKey storagename:pR8Mfuwg8CQy83Kl8Yk4NJMuHW85CDQAj/sqb47yS8U=\r\n\r\n\r\n--===============8384162589281376436==\r\nContent-Type: application/http\r\nContent-Transfer-Encoding: binary\r\nContent-ID: 2\r\n\r\nPUT /container3d7c19c7/blob3?comp=tier HTTP/1.1\r\nContent-Length: 0\r\nx-ms-access-tier: - Cool\r\nx-ms-date: Wed, 02 Oct 2019 22:23:28 GMT\r\nx-ms-client-request-id: - 420efaac-e563-11e9-b217-1831bf6ae40e\r\nAuthorization: SharedKey storagename:i4dpWsHV5Y6R3TiImBsgvroySAelwaU0PEatcg/zbd0=\r\n\r\n\r\n--===============2796322368600226439==--\r\n" + Cool\r\nx-ms-date: Wed, 02 Oct 2019 23:34:38 GMT\r\nx-ms-client-request-id: + 335eddae-e56d-11e9-ab2e-1831bf6ae40e\r\nAuthorization: SharedKey storagename:HfM90lZP+SwJ1TzA2C3ZA7WrwuZ9VIxOZCArKq57f8w=\r\n\r\n\r\n--===============8384162589281376436==--\r\n" headers: Content-Length: - '1284' Content-Type: - - multipart/mixed; boundary================2796322368600226439== + - multipart/mixed; boundary================8384162589281376436== User-Agent: - azsdk-python-storage-blob/12.0.0b4 Python/3.6.3 (Windows-10-10.0.18362-SP0) x-ms-client-request-id: - - 420f48cc-e563-11e9-bf2c-1831bf6ae40e + - 335f2cfe-e56d-11e9-8b67-1831bf6ae40e x-ms-date: - - Wed, 02 Oct 2019 22:23:28 GMT + - Wed, 02 Oct 2019 23:34:38 GMT x-ms-version: - '2019-02-02' method: POST uri: https://storagename.blob.core.windows.net/?comp=batch response: body: - string: "--batchresponse_4796fad0-8e87-44ed-832c-e2f0ebabef33\r\nContent-Type: + string: "--batchresponse_3773e08a-4ca7-48ed-8a17-b8f3e4587693\r\nContent-Type: application/http\r\nContent-ID: 0\r\n\r\nHTTP/1.1 200 OK\r\nx-ms-request-id: - 97c87446-101e-00af-1970-798d921ed560\r\nx-ms-version: 2019-02-02\r\nx-ms-client-request-id: - 420efaad-e563-11e9-9ca8-1831bf6ae40e\r\nServer: Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_4796fad0-8e87-44ed-832c-e2f0ebabef33\r\nContent-Type: + 4d079d02-201e-006f-4479-7975ac1e00d4\r\nx-ms-version: 2019-02-02\r\nServer: + Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_3773e08a-4ca7-48ed-8a17-b8f3e4587693\r\nContent-Type: application/http\r\nContent-ID: 1\r\n\r\nHTTP/1.1 200 OK\r\nx-ms-request-id: - 97c87446-101e-00af-1970-798d921ed562\r\nx-ms-version: 2019-02-02\r\nx-ms-client-request-id: - 420efaae-e563-11e9-94b3-1831bf6ae40e\r\nServer: Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_4796fad0-8e87-44ed-832c-e2f0ebabef33\r\nContent-Type: + 4d079d02-201e-006f-4479-7975ac1e00d6\r\nx-ms-version: 2019-02-02\r\nServer: + Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_3773e08a-4ca7-48ed-8a17-b8f3e4587693\r\nContent-Type: application/http\r\nContent-ID: 2\r\n\r\nHTTP/1.1 200 OK\r\nx-ms-request-id: - 97c87446-101e-00af-1970-798d921ed563\r\nx-ms-version: 2019-02-02\r\nx-ms-client-request-id: - 420efaac-e563-11e9-b217-1831bf6ae40e\r\nServer: Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_4796fad0-8e87-44ed-832c-e2f0ebabef33--" + 4d079d02-201e-006f-4479-7975ac1e00d7\r\nx-ms-version: 2019-02-02\r\nServer: + Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_3773e08a-4ca7-48ed-8a17-b8f3e4587693--" headers: ? !!python/object/new:multidict._istr.istr - Content-Type - : multipart/mixed; boundary=batchresponse_4796fad0-8e87-44ed-832c-e2f0ebabef33 + : multipart/mixed; boundary=batchresponse_3773e08a-4ca7-48ed-8a17-b8f3e4587693 ? !!python/object/new:multidict._istr.istr - Date - : Wed, 02 Oct 2019 22:23:27 GMT + : Wed, 02 Oct 2019 23:34:37 GMT ? !!python/object/new:multidict._istr.istr - Server : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 ? !!python/object/new:multidict._istr.istr - Transfer-Encoding : chunked - x-ms-request-id: 97c87446-101e-00af-1970-798d92000000 + x-ms-request-id: 4d079d02-201e-006f-4479-7975ac000000 x-ms-version: '2019-02-02' status: code: 202 @@ -780,9 +777,9 @@ interactions: User-Agent: - azsdk-python-storage-blob/12.0.0b4 Python/3.6.3 (Windows-10-10.0.18362-SP0) x-ms-client-request-id: - - 4224cc98-e563-11e9-b874-1831bf6ae40e + - 3370a074-e56d-11e9-97be-1831bf6ae40e x-ms-date: - - Wed, 02 Oct 2019 22:23:28 GMT + - Wed, 02 Oct 2019 23:34:38 GMT x-ms-version: - '2019-02-02' method: HEAD @@ -805,23 +802,23 @@ interactions: : application/octet-stream ? !!python/object/new:multidict._istr.istr - Date - : Wed, 02 Oct 2019 22:23:27 GMT + : Wed, 02 Oct 2019 23:34:37 GMT ? !!python/object/new:multidict._istr.istr - Etag - : '"0x8D7478725E12092"' + : '"0x8D74791172CC4B3"' ? !!python/object/new:multidict._istr.istr - Last-Modified - : Wed, 02 Oct 2019 22:23:27 GMT + : Wed, 02 Oct 2019 23:34:38 GMT ? !!python/object/new:multidict._istr.istr - Server : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 x-ms-access-tier: Cool - x-ms-access-tier-change-time: Wed, 02 Oct 2019 22:23:28 GMT + x-ms-access-tier-change-time: Wed, 02 Oct 2019 23:34:38 GMT x-ms-blob-type: BlockBlob - x-ms-creation-time: Wed, 02 Oct 2019 22:23:27 GMT + x-ms-creation-time: Wed, 02 Oct 2019 23:34:38 GMT x-ms-lease-state: available x-ms-lease-status: unlocked - x-ms-request-id: 97c87467-101e-00af-3970-798d92000000 + x-ms-request-id: 4d079d15-201e-006f-5379-7975ac000000 x-ms-server-encrypted: 'true' x-ms-version: '2019-02-02' status: @@ -836,60 +833,57 @@ interactions: - '' - '' - request: - body: "--===============8354157604598802095==\r\nContent-Type: application/http\r\nContent-Transfer-Encoding: + body: "--===============7887429700725587355==\r\nContent-Type: application/http\r\nContent-Transfer-Encoding: binary\r\nContent-ID: 0\r\n\r\nDELETE /container3d7c19c7/blob1? HTTP/1.1\r\nx-ms-date: - Wed, 02 Oct 2019 22:23:28 GMT\r\nx-ms-client-request-id: 42298d09-e563-11e9-9cc1-1831bf6ae40e\r\nAuthorization: - SharedKey storagename:8JWQtMoJLXmP+08GXgv2zLn1lsfp3rkS2VXyHgTo/jU=\r\n\r\n\r\n--===============8354157604598802095==\r\nContent-Type: + Wed, 02 Oct 2019 23:34:38 GMT\r\nx-ms-client-request-id: 33753486-e56d-11e9-ac79-1831bf6ae40e\r\nAuthorization: + SharedKey storagename:XlGV2pwHKZ3Hg9KU4oEVkF+mI9W3OKMdof+MUpG9o0s=\r\n\r\n\r\n--===============7887429700725587355==\r\nContent-Type: application/http\r\nContent-Transfer-Encoding: binary\r\nContent-ID: 1\r\n\r\nDELETE - /container3d7c19c7/blob2? HTTP/1.1\r\nx-ms-date: Wed, 02 Oct 2019 22:23:28 GMT\r\nx-ms-client-request-id: - 42298d08-e563-11e9-8bd0-1831bf6ae40e\r\nAuthorization: SharedKey storagename:XtdrbHaqBQP79Y9lTBrnGIhHxdRwaGAQqNy9v1Kv+D4=\r\n\r\n\r\n--===============8354157604598802095==\r\nContent-Type: + /container3d7c19c7/blob2? HTTP/1.1\r\nx-ms-date: Wed, 02 Oct 2019 23:34:38 GMT\r\nx-ms-client-request-id: + 33753487-e56d-11e9-86cb-1831bf6ae40e\r\nAuthorization: SharedKey storagename:LB/lqbwvfs2uQJznVaKaGU1qvoLnhQwNo3kKrMephTA=\r\n\r\n\r\n--===============7887429700725587355==\r\nContent-Type: application/http\r\nContent-Transfer-Encoding: binary\r\nContent-ID: 2\r\n\r\nDELETE - /container3d7c19c7/blob3? HTTP/1.1\r\nx-ms-date: Wed, 02 Oct 2019 22:23:28 GMT\r\nx-ms-client-request-id: - 42298d0a-e563-11e9-bad1-1831bf6ae40e\r\nAuthorization: SharedKey storagename:RDzu1sstCQcAXQuRCeU/QUi5r/qWPb1n2Dkxb0IPCBw=\r\n\r\n\r\n--===============8354157604598802095==--\r\n" + /container3d7c19c7/blob3? HTTP/1.1\r\nx-ms-date: Wed, 02 Oct 2019 23:34:38 GMT\r\nx-ms-client-request-id: + 33753488-e56d-11e9-aac5-1831bf6ae40e\r\nAuthorization: SharedKey storagename:fa+vsvA91rRiFZVC+TjzGkOW5wF0JeTnWkEOJy7LF48=\r\n\r\n\r\n--===============7887429700725587355==--\r\n" headers: Content-Length: - '1137' Content-Type: - - multipart/mixed; boundary================8354157604598802095== + - multipart/mixed; boundary================7887429700725587355== User-Agent: - azsdk-python-storage-blob/12.0.0b4 Python/3.6.3 (Windows-10-10.0.18362-SP0) x-ms-client-request-id: - - 4229b41a-e563-11e9-ba94-1831bf6ae40e + - 33755ba6-e56d-11e9-9b92-1831bf6ae40e x-ms-date: - - Wed, 02 Oct 2019 22:23:28 GMT + - Wed, 02 Oct 2019 23:34:38 GMT x-ms-version: - '2019-02-02' method: POST uri: https://storagename.blob.core.windows.net/?comp=batch response: body: - string: "--batchresponse_4effd794-1ad1-409a-91ee-f2e46ae7d474\r\nContent-Type: + string: "--batchresponse_897df75a-6226-4fd4-9055-18ca7f162434\r\nContent-Type: application/http\r\nContent-ID: 0\r\n\r\nHTTP/1.1 202 Accepted\r\nx-ms-delete-type-permanent: - true\r\nx-ms-request-id: cf6f7d88-c01e-0093-1070-79a4551e8b82\r\nx-ms-version: - 2019-02-02\r\nx-ms-client-request-id: 42298d09-e563-11e9-9cc1-1831bf6ae40e\r\nServer: - Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_4effd794-1ad1-409a-91ee-f2e46ae7d474\r\nContent-Type: + true\r\nx-ms-request-id: 5c3c0e4c-101e-0064-2d79-798ec71e3e2d\r\nx-ms-version: + 2019-02-02\r\nServer: Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_897df75a-6226-4fd4-9055-18ca7f162434\r\nContent-Type: application/http\r\nContent-ID: 1\r\n\r\nHTTP/1.1 202 Accepted\r\nx-ms-delete-type-permanent: - true\r\nx-ms-request-id: cf6f7d88-c01e-0093-1070-79a4551e8b84\r\nx-ms-version: - 2019-02-02\r\nx-ms-client-request-id: 42298d08-e563-11e9-8bd0-1831bf6ae40e\r\nServer: - Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_4effd794-1ad1-409a-91ee-f2e46ae7d474\r\nContent-Type: + true\r\nx-ms-request-id: 5c3c0e4c-101e-0064-2d79-798ec71e3e2f\r\nx-ms-version: + 2019-02-02\r\nServer: Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_897df75a-6226-4fd4-9055-18ca7f162434\r\nContent-Type: application/http\r\nContent-ID: 2\r\n\r\nHTTP/1.1 202 Accepted\r\nx-ms-delete-type-permanent: - true\r\nx-ms-request-id: cf6f7d88-c01e-0093-1070-79a4551e8b85\r\nx-ms-version: - 2019-02-02\r\nx-ms-client-request-id: 42298d0a-e563-11e9-bad1-1831bf6ae40e\r\nServer: - Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_4effd794-1ad1-409a-91ee-f2e46ae7d474--" + true\r\nx-ms-request-id: 5c3c0e4c-101e-0064-2d79-798ec71e3e30\r\nx-ms-version: + 2019-02-02\r\nServer: Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_897df75a-6226-4fd4-9055-18ca7f162434--" headers: ? !!python/object/new:multidict._istr.istr - Content-Type - : multipart/mixed; boundary=batchresponse_4effd794-1ad1-409a-91ee-f2e46ae7d474 + : multipart/mixed; boundary=batchresponse_897df75a-6226-4fd4-9055-18ca7f162434 ? !!python/object/new:multidict._istr.istr - Date - : Wed, 02 Oct 2019 22:23:27 GMT + : Wed, 02 Oct 2019 23:34:38 GMT ? !!python/object/new:multidict._istr.istr - Server : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 ? !!python/object/new:multidict._istr.istr - Transfer-Encoding : chunked - x-ms-request-id: cf6f7d88-c01e-0093-1070-79a455000000 + x-ms-request-id: 5c3c0e4c-101e-0064-2d79-798ec7000000 x-ms-version: '2019-02-02' status: code: 202 @@ -916,9 +910,9 @@ interactions: x-ms-blob-type: - BlockBlob x-ms-client-request-id: - - 4241a32e-e563-11e9-8bc7-1831bf6ae40e + - 3387b018-e56d-11e9-9dea-1831bf6ae40e x-ms-date: - - Wed, 02 Oct 2019 22:23:28 GMT + - Wed, 02 Oct 2019 23:34:39 GMT x-ms-version: - '2019-02-02' method: PUT @@ -935,18 +929,18 @@ interactions: : XrY7u+Ae7tCTyyK7j1rNww== ? !!python/object/new:multidict._istr.istr - Date - : Wed, 02 Oct 2019 22:23:27 GMT + : Wed, 02 Oct 2019 23:34:38 GMT ? !!python/object/new:multidict._istr.istr - Etag - : '"0x8D74787262A10BA"' + : '"0x8D74791176A4362"' ? !!python/object/new:multidict._istr.istr - Last-Modified - : Wed, 02 Oct 2019 22:23:28 GMT + : Wed, 02 Oct 2019 23:34:38 GMT ? !!python/object/new:multidict._istr.istr - Server : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 x-ms-content-crc64: vo7q9sPVKY0= - x-ms-request-id: cf6f7db3-c01e-0093-3670-79a455000000 + x-ms-request-id: 5c3c0e5e-101e-0064-3f79-798ec7000000 x-ms-request-server-encrypted: 'true' x-ms-version: '2019-02-02' status: @@ -974,9 +968,9 @@ interactions: x-ms-blob-type: - BlockBlob x-ms-client-request-id: - - 42483400-e563-11e9-ab85-1831bf6ae40e + - 338d3aa6-e56d-11e9-a062-1831bf6ae40e x-ms-date: - - Wed, 02 Oct 2019 22:23:28 GMT + - Wed, 02 Oct 2019 23:34:39 GMT x-ms-version: - '2019-02-02' method: PUT @@ -993,18 +987,18 @@ interactions: : XrY7u+Ae7tCTyyK7j1rNww== ? !!python/object/new:multidict._istr.istr - Date - : Wed, 02 Oct 2019 22:23:27 GMT + : Wed, 02 Oct 2019 23:34:38 GMT ? !!python/object/new:multidict._istr.istr - Etag - : '"0x8D7478726300453"' + : '"0x8D7479117700FA4"' ? !!python/object/new:multidict._istr.istr - Last-Modified - : Wed, 02 Oct 2019 22:23:28 GMT + : Wed, 02 Oct 2019 23:34:38 GMT ? !!python/object/new:multidict._istr.istr - Server : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 x-ms-content-crc64: vo7q9sPVKY0= - x-ms-request-id: cf6f7dc9-c01e-0093-4a70-79a455000000 + x-ms-request-id: 5c3c0e73-101e-0064-5379-798ec7000000 x-ms-request-server-encrypted: 'true' x-ms-version: '2019-02-02' status: @@ -1032,9 +1026,9 @@ interactions: x-ms-blob-type: - BlockBlob x-ms-client-request-id: - - 424eead2-e563-11e9-86cb-1831bf6ae40e + - 3392f6c0-e56d-11e9-bafd-1831bf6ae40e x-ms-date: - - Wed, 02 Oct 2019 22:23:28 GMT + - Wed, 02 Oct 2019 23:34:39 GMT x-ms-version: - '2019-02-02' method: PUT @@ -1051,18 +1045,18 @@ interactions: : XrY7u+Ae7tCTyyK7j1rNww== ? !!python/object/new:multidict._istr.istr - Date - : Wed, 02 Oct 2019 22:23:27 GMT + : Wed, 02 Oct 2019 23:34:38 GMT ? !!python/object/new:multidict._istr.istr - Etag - : '"0x8D7478726375735"' + : '"0x8D747911776514E"' ? !!python/object/new:multidict._istr.istr - Last-Modified - : Wed, 02 Oct 2019 22:23:28 GMT + : Wed, 02 Oct 2019 23:34:38 GMT ? !!python/object/new:multidict._istr.istr - Server : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 x-ms-content-crc64: vo7q9sPVKY0= - x-ms-request-id: cf6f7deb-c01e-0093-6a70-79a455000000 + x-ms-request-id: 5c3c0e8c-101e-0064-6b79-798ec7000000 x-ms-request-server-encrypted: 'true' x-ms-version: '2019-02-02' status: @@ -1082,9 +1076,9 @@ interactions: User-Agent: - azsdk-python-storage-blob/12.0.0b4 Python/3.6.3 (Windows-10-10.0.18362-SP0) x-ms-client-request-id: - - 425440e2-e563-11e9-b75c-1831bf6ae40e + - 33986614-e56d-11e9-8a77-1831bf6ae40e x-ms-date: - - Wed, 02 Oct 2019 22:23:28 GMT + - Wed, 02 Oct 2019 23:34:39 GMT x-ms-version: - '2019-02-02' method: HEAD @@ -1107,23 +1101,23 @@ interactions: : application/octet-stream ? !!python/object/new:multidict._istr.istr - Date - : Wed, 02 Oct 2019 22:23:27 GMT + : Wed, 02 Oct 2019 23:34:38 GMT ? !!python/object/new:multidict._istr.istr - Etag - : '"0x8D74787262A10BA"' + : '"0x8D74791176A4362"' ? !!python/object/new:multidict._istr.istr - Last-Modified - : Wed, 02 Oct 2019 22:23:28 GMT + : Wed, 02 Oct 2019 23:34:38 GMT ? !!python/object/new:multidict._istr.istr - Server : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 x-ms-access-tier: Hot x-ms-access-tier-inferred: 'true' x-ms-blob-type: BlockBlob - x-ms-creation-time: Wed, 02 Oct 2019 22:23:28 GMT + x-ms-creation-time: Wed, 02 Oct 2019 23:34:38 GMT x-ms-lease-state: available x-ms-lease-status: unlocked - x-ms-request-id: cf6f7dfc-c01e-0093-7870-79a455000000 + x-ms-request-id: 5c3c0e9a-101e-0064-7879-798ec7000000 x-ms-server-encrypted: 'true' x-ms-version: '2019-02-02' status: @@ -1138,59 +1132,59 @@ interactions: - '' - '' - request: - body: "--===============3644625750107480914==\r\nContent-Type: application/http\r\nContent-Transfer-Encoding: + body: "--===============5308695583842449546==\r\nContent-Type: application/http\r\nContent-Transfer-Encoding: binary\r\nContent-ID: 0\r\n\r\nPUT /container3d7c19c7/blob1?comp=tier HTTP/1.1\r\nContent-Length: - 0\r\nx-ms-access-tier: Hot\r\nx-ms-date: Wed, 02 Oct 2019 22:23:28 GMT\r\nx-ms-client-request-id: - 42581282-e563-11e9-9a0d-1831bf6ae40e\r\nAuthorization: SharedKey storagename:QgsNLPSUlHKWcHVxeKhc5fpIILU1FTnFarOr0OKVcCI=\r\n\r\n\r\n--===============3644625750107480914==\r\nContent-Type: + 0\r\nx-ms-access-tier: Hot\r\nx-ms-date: Wed, 02 Oct 2019 23:34:39 GMT\r\nx-ms-client-request-id: + 339d5392-e56d-11e9-bdea-1831bf6ae40e\r\nAuthorization: SharedKey storagename:F8yhqZPmXO7EmiNQsZqPDblUYl2LSr/wt4JsJca8Bkw=\r\n\r\n\r\n--===============5308695583842449546==\r\nContent-Type: application/http\r\nContent-Transfer-Encoding: binary\r\nContent-ID: 1\r\n\r\nPUT /container3d7c19c7/blob2?comp=tier HTTP/1.1\r\nContent-Length: 0\r\nx-ms-access-tier: - Hot\r\nx-ms-date: Wed, 02 Oct 2019 22:23:28 GMT\r\nx-ms-client-request-id: 42581283-e563-11e9-af68-1831bf6ae40e\r\nAuthorization: - SharedKey storagename:Ur1PygTdI18ZMQx8yABEcy5nYFPJdg3sWtnXyUkA5tY=\r\n\r\n\r\n--===============3644625750107480914==\r\nContent-Type: + Hot\r\nx-ms-date: Wed, 02 Oct 2019 23:34:39 GMT\r\nx-ms-client-request-id: 339d5393-e56d-11e9-8c80-1831bf6ae40e\r\nAuthorization: + SharedKey storagename:jS+sQ29jp/GPf4SIiyCib+NVcI9R9fcaHs8seL/csLw=\r\n\r\n\r\n--===============5308695583842449546==\r\nContent-Type: application/http\r\nContent-Transfer-Encoding: binary\r\nContent-ID: 2\r\n\r\nPUT /container3d7c19c7/blob3?comp=tier HTTP/1.1\r\nContent-Length: 0\r\nx-ms-access-tier: - Hot\r\nx-ms-date: Wed, 02 Oct 2019 22:23:28 GMT\r\nx-ms-client-request-id: 42581284-e563-11e9-bc51-1831bf6ae40e\r\nAuthorization: - SharedKey storagename:GevDuLNOOITPLZKzdCtYr0AB0zkl6RRCnv8K+Qes4iE=\r\n\r\n\r\n--===============3644625750107480914==--\r\n" + Hot\r\nx-ms-date: Wed, 02 Oct 2019 23:34:39 GMT\r\nx-ms-client-request-id: 339d7ae8-e56d-11e9-8a88-1831bf6ae40e\r\nAuthorization: + SharedKey storagename:zbgDbDKApE1bOVrD67DNARCB6ADMz371RZcEXpwRPI8=\r\n\r\n\r\n--===============5308695583842449546==--\r\n" headers: Content-Length: - '1281' Content-Type: - - multipart/mixed; boundary================3644625750107480914== + - multipart/mixed; boundary================5308695583842449546== User-Agent: - azsdk-python-storage-blob/12.0.0b4 Python/3.6.3 (Windows-10-10.0.18362-SP0) x-ms-client-request-id: - - 425860ae-e563-11e9-886c-1831bf6ae40e + - 339da1b8-e56d-11e9-a989-1831bf6ae40e x-ms-date: - - Wed, 02 Oct 2019 22:23:28 GMT + - Wed, 02 Oct 2019 23:34:39 GMT x-ms-version: - '2019-02-02' method: POST uri: https://storagename.blob.core.windows.net/?comp=batch response: body: - string: "--batchresponse_61a4fdde-bf42-46bc-9599-fe615cd22502\r\nContent-Type: + string: "--batchresponse_55bf2fbc-6cf3-43b3-b7f7-6b3e79f1a866\r\nContent-Type: application/http\r\nContent-ID: 0\r\n\r\nHTTP/1.1 200 OK\r\nx-ms-request-id: - 4f6b1f78-e01e-0060-4470-7903c01ebdbc\r\nx-ms-version: 2019-02-02\r\nx-ms-client-request-id: - 42581282-e563-11e9-9a0d-1831bf6ae40e\r\nServer: Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_61a4fdde-bf42-46bc-9599-fe615cd22502\r\nContent-Type: + 88f6ede9-901e-009e-4279-796c811e4a8b\r\nx-ms-version: 2019-02-02\r\nServer: + Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_55bf2fbc-6cf3-43b3-b7f7-6b3e79f1a866\r\nContent-Type: application/http\r\nContent-ID: 1\r\n\r\nHTTP/1.1 200 OK\r\nx-ms-request-id: - 4f6b1f78-e01e-0060-4470-7903c01ebdbe\r\nx-ms-version: 2019-02-02\r\nx-ms-client-request-id: - 42581283-e563-11e9-af68-1831bf6ae40e\r\nServer: Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_61a4fdde-bf42-46bc-9599-fe615cd22502\r\nContent-Type: + 88f6ede9-901e-009e-4279-796c811e4a8d\r\nx-ms-version: 2019-02-02\r\nServer: + Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_55bf2fbc-6cf3-43b3-b7f7-6b3e79f1a866\r\nContent-Type: application/http\r\nContent-ID: 2\r\n\r\nHTTP/1.1 200 OK\r\nx-ms-request-id: - 4f6b1f78-e01e-0060-4470-7903c01ebdbf\r\nx-ms-version: 2019-02-02\r\nx-ms-client-request-id: - 42581284-e563-11e9-bc51-1831bf6ae40e\r\nServer: Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_61a4fdde-bf42-46bc-9599-fe615cd22502--" + 88f6ede9-901e-009e-4279-796c811e4a8e\r\nx-ms-version: 2019-02-02\r\nServer: + Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_55bf2fbc-6cf3-43b3-b7f7-6b3e79f1a866--" headers: ? !!python/object/new:multidict._istr.istr - Content-Type - : multipart/mixed; boundary=batchresponse_61a4fdde-bf42-46bc-9599-fe615cd22502 + : multipart/mixed; boundary=batchresponse_55bf2fbc-6cf3-43b3-b7f7-6b3e79f1a866 ? !!python/object/new:multidict._istr.istr - Date - : Wed, 02 Oct 2019 22:23:28 GMT + : Wed, 02 Oct 2019 23:34:38 GMT ? !!python/object/new:multidict._istr.istr - Server : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 ? !!python/object/new:multidict._istr.istr - Transfer-Encoding : chunked - x-ms-request-id: 4f6b1f78-e01e-0060-4470-7903c0000000 + x-ms-request-id: 88f6ede9-901e-009e-4279-796c81000000 x-ms-version: '2019-02-02' status: code: 202 @@ -1209,9 +1203,9 @@ interactions: User-Agent: - azsdk-python-storage-blob/12.0.0b4 Python/3.6.3 (Windows-10-10.0.18362-SP0) x-ms-client-request-id: - - 42696738-e563-11e9-bd6c-1831bf6ae40e + - 33af96ba-e56d-11e9-b793-1831bf6ae40e x-ms-date: - - Wed, 02 Oct 2019 22:23:29 GMT + - Wed, 02 Oct 2019 23:34:39 GMT x-ms-version: - '2019-02-02' method: HEAD @@ -1234,23 +1228,23 @@ interactions: : application/octet-stream ? !!python/object/new:multidict._istr.istr - Date - : Wed, 02 Oct 2019 22:23:28 GMT + : Wed, 02 Oct 2019 23:34:38 GMT ? !!python/object/new:multidict._istr.istr - Etag - : '"0x8D74787262A10BA"' + : '"0x8D74791176A4362"' ? !!python/object/new:multidict._istr.istr - Last-Modified - : Wed, 02 Oct 2019 22:23:28 GMT + : Wed, 02 Oct 2019 23:34:38 GMT ? !!python/object/new:multidict._istr.istr - Server : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 x-ms-access-tier: Hot - x-ms-access-tier-change-time: Wed, 02 Oct 2019 22:23:28 GMT + x-ms-access-tier-change-time: Wed, 02 Oct 2019 23:34:38 GMT x-ms-blob-type: BlockBlob - x-ms-creation-time: Wed, 02 Oct 2019 22:23:28 GMT + x-ms-creation-time: Wed, 02 Oct 2019 23:34:38 GMT x-ms-lease-state: available x-ms-lease-status: unlocked - x-ms-request-id: 4f6b1f81-e01e-0060-4c70-7903c0000000 + x-ms-request-id: 88f6edfc-901e-009e-5379-796c81000000 x-ms-server-encrypted: 'true' x-ms-version: '2019-02-02' status: @@ -1265,60 +1259,57 @@ interactions: - '' - '' - request: - body: "--===============7385144878769807392==\r\nContent-Type: application/http\r\nContent-Transfer-Encoding: + body: "--===============7945161974409073757==\r\nContent-Type: application/http\r\nContent-Transfer-Encoding: binary\r\nContent-ID: 0\r\n\r\nDELETE /container3d7c19c7/blob1? HTTP/1.1\r\nx-ms-date: - Wed, 02 Oct 2019 22:23:29 GMT\r\nx-ms-client-request-id: 426ea412-e563-11e9-b997-1831bf6ae40e\r\nAuthorization: - SharedKey storagename:Y6nnh/gNF7EjSda0utFfzh2E2ZpO/N8YOjGxeOBOv0Q=\r\n\r\n\r\n--===============7385144878769807392==\r\nContent-Type: + Wed, 02 Oct 2019 23:34:39 GMT\r\nx-ms-client-request-id: 33b48407-e56d-11e9-b0f2-1831bf6ae40e\r\nAuthorization: + SharedKey storagename:/a55a5lsjdYZH/P4BP8+lIEVg7081pVLBbc6PpOeT/A=\r\n\r\n\r\n--===============7945161974409073757==\r\nContent-Type: application/http\r\nContent-Transfer-Encoding: binary\r\nContent-ID: 1\r\n\r\nDELETE - /container3d7c19c7/blob2? HTTP/1.1\r\nx-ms-date: Wed, 02 Oct 2019 22:23:29 GMT\r\nx-ms-client-request-id: - 426ea413-e563-11e9-a72f-1831bf6ae40e\r\nAuthorization: SharedKey storagename:yEVkjI5dQ184NhJYEBSiH8kbzD5tUbH5tt/4s7HE8fU=\r\n\r\n\r\n--===============7385144878769807392==\r\nContent-Type: + /container3d7c19c7/blob2? HTTP/1.1\r\nx-ms-date: Wed, 02 Oct 2019 23:34:39 GMT\r\nx-ms-client-request-id: + 33b48406-e56d-11e9-a2f1-1831bf6ae40e\r\nAuthorization: SharedKey storagename:hElc6IUrPeXujnB6wgiYK0sNnswHh5tCFsVJs7CN6DM=\r\n\r\n\r\n--===============7945161974409073757==\r\nContent-Type: application/http\r\nContent-Transfer-Encoding: binary\r\nContent-ID: 2\r\n\r\nDELETE - /container3d7c19c7/blob3? HTTP/1.1\r\nx-ms-date: Wed, 02 Oct 2019 22:23:29 GMT\r\nx-ms-client-request-id: - 426e7d12-e563-11e9-8c7e-1831bf6ae40e\r\nAuthorization: SharedKey storagename:x6ItiaLDwGUdh0HbmO57899ObdyyOnC+1jEprXYg1/g=\r\n\r\n\r\n--===============7385144878769807392==--\r\n" + /container3d7c19c7/blob3? HTTP/1.1\r\nx-ms-date: Wed, 02 Oct 2019 23:34:39 GMT\r\nx-ms-client-request-id: + 33b48408-e56d-11e9-ac61-1831bf6ae40e\r\nAuthorization: SharedKey storagename:3PdTre1M5TkyIu9t5eKepJ96YdCN4oJQKGVoqs0gPyM=\r\n\r\n\r\n--===============7945161974409073757==--\r\n" headers: Content-Length: - '1137' Content-Type: - - multipart/mixed; boundary================7385144878769807392== + - multipart/mixed; boundary================7945161974409073757== User-Agent: - azsdk-python-storage-blob/12.0.0b4 Python/3.6.3 (Windows-10-10.0.18362-SP0) x-ms-client-request-id: - - 426ecb28-e563-11e9-9cf8-1831bf6ae40e + - 33b4d222-e56d-11e9-a947-1831bf6ae40e x-ms-date: - - Wed, 02 Oct 2019 22:23:29 GMT + - Wed, 02 Oct 2019 23:34:39 GMT x-ms-version: - '2019-02-02' method: POST uri: https://storagename.blob.core.windows.net/?comp=batch response: body: - string: "--batchresponse_78555a90-7773-43c3-b204-88eacc5bba40\r\nContent-Type: + string: "--batchresponse_9d6d9a0c-eba6-4b69-966f-c5a214183f04\r\nContent-Type: application/http\r\nContent-ID: 0\r\n\r\nHTTP/1.1 202 Accepted\r\nx-ms-delete-type-permanent: - true\r\nx-ms-request-id: 7ca34ad1-e01e-0002-4c70-79c1e71eed6f\r\nx-ms-version: - 2019-02-02\r\nx-ms-client-request-id: 426ea412-e563-11e9-b997-1831bf6ae40e\r\nServer: - Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_78555a90-7773-43c3-b204-88eacc5bba40\r\nContent-Type: + true\r\nx-ms-request-id: ea41c276-901e-0055-5b79-796fd41ed228\r\nx-ms-version: + 2019-02-02\r\nServer: Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_9d6d9a0c-eba6-4b69-966f-c5a214183f04\r\nContent-Type: application/http\r\nContent-ID: 1\r\n\r\nHTTP/1.1 202 Accepted\r\nx-ms-delete-type-permanent: - true\r\nx-ms-request-id: 7ca34ad1-e01e-0002-4c70-79c1e71eed71\r\nx-ms-version: - 2019-02-02\r\nx-ms-client-request-id: 426ea413-e563-11e9-a72f-1831bf6ae40e\r\nServer: - Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_78555a90-7773-43c3-b204-88eacc5bba40\r\nContent-Type: + true\r\nx-ms-request-id: ea41c276-901e-0055-5b79-796fd41ed22a\r\nx-ms-version: + 2019-02-02\r\nServer: Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_9d6d9a0c-eba6-4b69-966f-c5a214183f04\r\nContent-Type: application/http\r\nContent-ID: 2\r\n\r\nHTTP/1.1 202 Accepted\r\nx-ms-delete-type-permanent: - true\r\nx-ms-request-id: 7ca34ad1-e01e-0002-4c70-79c1e71eed72\r\nx-ms-version: - 2019-02-02\r\nx-ms-client-request-id: 426e7d12-e563-11e9-8c7e-1831bf6ae40e\r\nServer: - Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_78555a90-7773-43c3-b204-88eacc5bba40--" + true\r\nx-ms-request-id: ea41c276-901e-0055-5b79-796fd41ed22b\r\nx-ms-version: + 2019-02-02\r\nServer: Windows-Azure-Blob/1.0\r\n\r\n--batchresponse_9d6d9a0c-eba6-4b69-966f-c5a214183f04--" headers: ? !!python/object/new:multidict._istr.istr - Content-Type - : multipart/mixed; boundary=batchresponse_78555a90-7773-43c3-b204-88eacc5bba40 + : multipart/mixed; boundary=batchresponse_9d6d9a0c-eba6-4b69-966f-c5a214183f04 ? !!python/object/new:multidict._istr.istr - Date - : Wed, 02 Oct 2019 22:23:28 GMT + : Wed, 02 Oct 2019 23:34:38 GMT ? !!python/object/new:multidict._istr.istr - Server : Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 ? !!python/object/new:multidict._istr.istr - Transfer-Encoding : chunked - x-ms-request-id: 7ca34ad1-e01e-0002-4c70-79c1e7000000 + x-ms-request-id: ea41c276-901e-0055-5b79-796fd4000000 x-ms-version: '2019-02-02' status: code: 202 diff --git a/sdk/storage/azure-storage-blob/tests/test_container.py b/sdk/storage/azure-storage-blob/tests/test_container.py index 475f887695d6..999ea19a7ca4 100644 --- a/sdk/storage/azure-storage-blob/tests/test_container.py +++ b/sdk/storage/azure-storage-blob/tests/test_container.py @@ -7,6 +7,7 @@ # -------------------------------------------------------------------------- import pytest import unittest +import re from dateutil.tz import tzutc import requests diff --git a/sdk/storage/azure-storage-blob/tests/testcase.py b/sdk/storage/azure-storage-blob/tests/testcase.py index 3304b2ed3638..5a171f0395ae 100644 --- a/sdk/storage/azure-storage-blob/tests/testcase.py +++ b/sdk/storage/azure-storage-blob/tests/testcase.py @@ -10,6 +10,7 @@ import inspect import os import os.path +import re import time from unittest import SkipTest @@ -348,6 +349,12 @@ def internal_scrub(key, val): if body_str: response['body']['string'] = self._scrub(body_str) + content_type = response.get('headers', {}).get('Content-Type', '') + if content_type: + content_type = (content_type[0] if isinstance(content_type, list) else content_type).lower() + if 'multipart/mixed' in content_type: + response['body']['string'] = re.sub("x-ms-client-request-id: [a-f0-9-]+\r\n", "", body_str.decode()).encode() + return response def _scrub(self, val): From f16282eb062412210c93d06a6d6aa97ecdeab887 Mon Sep 17 00:00:00 2001 From: Laurent Mazuel Date: Thu, 3 Oct 2019 10:54:23 -0700 Subject: [PATCH 19/21] remove duplicated comp=tier --- .../azure/storage/blob/aio/container_client_async.py | 4 ++-- .../azure-storage-blob/azure/storage/blob/container_client.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/sdk/storage/azure-storage-blob/azure/storage/blob/aio/container_client_async.py b/sdk/storage/azure-storage-blob/azure/storage/blob/aio/container_client_async.py index 9bb657a3cdb9..f18080032fe3 100644 --- a/sdk/storage/azure-storage-blob/azure/storage/blob/aio/container_client_async.py +++ b/sdk/storage/azure-storage-blob/azure/storage/blob/aio/container_client_async.py @@ -911,7 +911,7 @@ async def set_standard_blob_tier_blobs( for blob in blobs: req = HttpRequest( "PUT", - "/{}/{}?comp=tier".format(self.container_name, blob), + "/{}/{}".format(self.container_name, blob), headers=header_parameters ) req.format_parameters(query_parameters) @@ -963,7 +963,7 @@ async def set_premium_page_blob_tier_blobs( for blob in blobs: req = HttpRequest( "PUT", - "/{}/{}?comp=tier".format(self.container_name, blob), + "/{}/{}".format(self.container_name, blob), headers=header_parameters ) req.format_parameters(query_parameters) diff --git a/sdk/storage/azure-storage-blob/azure/storage/blob/container_client.py b/sdk/storage/azure-storage-blob/azure/storage/blob/container_client.py index f90c248fb99d..aec217dd43a1 100644 --- a/sdk/storage/azure-storage-blob/azure/storage/blob/container_client.py +++ b/sdk/storage/azure-storage-blob/azure/storage/blob/container_client.py @@ -1200,7 +1200,7 @@ def set_premium_page_blob_tier_blobs( for blob in blobs: req = HttpRequest( "PUT", - "/{}/{}?comp=tier".format(self.container_name, blob), + "/{}/{}".format(self.container_name, blob), headers=header_parameters ) req.format_parameters(query_parameters) From 5ab99a01e3ebdd29badbcf8b440c0097703e8013 Mon Sep 17 00:00:00 2001 From: Laurent Mazuel Date: Thu, 3 Oct 2019 10:54:50 -0700 Subject: [PATCH 20/21] Disable batch tests on Python 2.7 --- sdk/storage/azure-storage-blob/tests/test_container.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/sdk/storage/azure-storage-blob/tests/test_container.py b/sdk/storage/azure-storage-blob/tests/test_container.py index 999ea19a7ca4..cf707fe22095 100644 --- a/sdk/storage/azure-storage-blob/tests/test_container.py +++ b/sdk/storage/azure-storage-blob/tests/test_container.py @@ -8,6 +8,7 @@ import pytest import unittest import re +import sys from dateutil.tz import tzutc import requests @@ -30,6 +31,8 @@ from azure.identity import ClientSecretCredential from testcase import StorageTestCase, TestMode, record, LogCaptured +import pytest + #------------------------------------------------------------------------------ TEST_CONTAINER_PREFIX = 'container' #------------------------------------------------------------------------------ @@ -964,6 +967,7 @@ def test_list_blobs_with_delimiter(self): self.assertNamedItemInContainer(resp, 'b/') self.assertNamedItemInContainer(resp, 'blob4') + @pytest.mark.skipif(sys.version_info < (3, 0), reason="Batch not supported on Python 2.7") @record def test_delete_blobs_simple(self): # Arrange @@ -988,6 +992,7 @@ def test_delete_blobs_simple(self): assert response[1].status_code == 202 assert response[2].status_code == 202 + @pytest.mark.skipif(sys.version_info < (3, 0), reason="Batch not supported on Python 2.7") @record def test_delete_blobs_snapshot(self): # Arrange @@ -1020,6 +1025,7 @@ def test_delete_blobs_snapshot(self): blobs = list(container.list_blobs(include='snapshots')) assert len(blobs) == 3 # 3 blobs + @pytest.mark.skipif(sys.version_info < (3, 0), reason="Batch not supported on Python 2.7") @record def test_standard_blob_tier_set_tier_api_batch(self): container = self._create_container() @@ -1069,6 +1075,8 @@ def test_standard_blob_tier_set_tier_api_batch(self): ) @pytest.mark.skip(reason="Wasn't able to get premium account with batch enabled") + # once we have premium tests, still we don't want to test Py 2.7 + # @pytest.mark.skipif(sys.version_info < (3, 0), reason="Batch not supported on Python 2.7") @record def test_premium_tier_set_tier_api_batch(self): url = self._get_premium_account_url() From b8674cc6eac9574256702dc8216c94d246d446f6 Mon Sep 17 00:00:00 2001 From: Laurent Mazuel Date: Thu, 3 Oct 2019 12:03:23 -0700 Subject: [PATCH 21/21] pylint --- .../blob/aio/container_client_async.py | 5 +- .../azure/storage/blob/container_client.py | 63 +++++++++++++------ 2 files changed, 47 insertions(+), 21 deletions(-) diff --git a/sdk/storage/azure-storage-blob/azure/storage/blob/aio/container_client_async.py b/sdk/storage/azure-storage-blob/azure/storage/blob/aio/container_client_async.py index f18080032fe3..b4611d3a29d6 100644 --- a/sdk/storage/azure-storage-blob/azure/storage/blob/aio/container_client_async.py +++ b/sdk/storage/azure-storage-blob/azure/storage/blob/aio/container_client_async.py @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # ------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for @@ -778,7 +779,7 @@ async def delete_blob( **kwargs) @distributed_trace_async - async def delete_blobs( + async def delete_blobs( # pylint: disable=arguments-differ self, *blobs, # type: Union[str, BlobProperties] delete_snapshots=None, # type: Optional[str] lease=None, # type: Optional[Union[str, LeaseClient]] @@ -839,7 +840,7 @@ async def delete_blobs( The timeout parameter is expressed in seconds. :rtype: None """ - options = BlobClient._generic_delete_blob_options( + options = BlobClient._generic_delete_blob_options( # pylint: disable=protected-access delete_snapshots=delete_snapshots, lease=lease, timeout=timeout, diff --git a/sdk/storage/azure-storage-blob/azure/storage/blob/container_client.py b/sdk/storage/azure-storage-blob/azure/storage/blob/container_client.py index aec217dd43a1..a4f176c35685 100644 --- a/sdk/storage/azure-storage-blob/azure/storage/blob/container_client.py +++ b/sdk/storage/azure-storage-blob/azure/storage/blob/container_client.py @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # ------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for @@ -952,8 +953,18 @@ def delete_blob( timeout=timeout, **kwargs) - def _generate_delete_blobs_options(self, snapshot=None, timeout=None, delete_snapshots=None, request_id=None, lease_access_conditions=None, modified_access_conditions=None): - """This code is a copy from _generated. Once Autorest is able to provide request preparation this code should be removed""" + def _generate_delete_blobs_options( + self, snapshot=None, + timeout=None, + delete_snapshots=None, + request_id=None, + lease_access_conditions=None, + modified_access_conditions=None + ): + """This code is a copy from _generated. + + Once Autorest is able to provide request preparation this code should be removed. + """ lease_id = None if lease_access_conditions is not None: lease_id = lease_access_conditions.lease_id @@ -973,26 +984,33 @@ def _generate_delete_blobs_options(self, snapshot=None, timeout=None, delete_sna # Construct parameters query_parameters = {} if snapshot is not None: - query_parameters['snapshot'] = self._client._serialize.query("snapshot", snapshot, 'str') + query_parameters['snapshot'] = self._client._serialize.query("snapshot", snapshot, 'str') # pylint: disable=protected-access if timeout is not None: - query_parameters['timeout'] = self._client._serialize.query("timeout", timeout, 'int', minimum=0) + query_parameters['timeout'] = self._client._serialize.query("timeout", timeout, 'int', minimum=0) # pylint: disable=protected-access # Construct headers header_parameters = {} if delete_snapshots is not None: - header_parameters['x-ms-delete-snapshots'] = self._client._serialize.header("delete_snapshots", delete_snapshots, 'DeleteSnapshotsOptionType') + header_parameters['x-ms-delete-snapshots'] = self._client._serialize.header( # pylint: disable=protected-access + "delete_snapshots", delete_snapshots, 'DeleteSnapshotsOptionType') if request_id is not None: - header_parameters['x-ms-client-request-id'] = self._client._serialize.header("request_id", request_id, 'str') + header_parameters['x-ms-client-request-id'] = self._client._serialize.header( # pylint: disable=protected-access + "request_id", request_id, 'str') if lease_id is not None: - header_parameters['x-ms-lease-id'] = self._client._serialize.header("lease_id", lease_id, 'str') + header_parameters['x-ms-lease-id'] = self._client._serialize.header( # pylint: disable=protected-access + "lease_id", lease_id, 'str') if if_modified_since is not None: - header_parameters['If-Modified-Since'] = self._client._serialize.header("if_modified_since", if_modified_since, 'rfc-1123') + header_parameters['If-Modified-Since'] = self._client._serialize.header( # pylint: disable=protected-access + "if_modified_since", if_modified_since, 'rfc-1123') if if_unmodified_since is not None: - header_parameters['If-Unmodified-Since'] = self._client._serialize.header("if_unmodified_since", if_unmodified_since, 'rfc-1123') + header_parameters['If-Unmodified-Since'] = self._client._serialize.header( # pylint: disable=protected-access + "if_unmodified_since", if_unmodified_since, 'rfc-1123') if if_match is not None: - header_parameters['If-Match'] = self._client._serialize.header("if_match", if_match, 'str') + header_parameters['If-Match'] = self._client._serialize.header( # pylint: disable=protected-access + "if_match", if_match, 'str') if if_none_match is not None: - header_parameters['If-None-Match'] = self._client._serialize.header("if_none_match", if_none_match, 'str') + header_parameters['If-None-Match'] = self._client._serialize.header( # pylint: disable=protected-access + "if_none_match", if_none_match, 'str') return query_parameters, header_parameters @@ -1072,8 +1090,13 @@ def delete_blobs(self, *blobs, **kwargs): return self._batch_send(*reqs, **options) - def _generate_set_tier_options(self, tier, timeout=None, rehydrate_priority=None, request_id=None, lease_access_conditions=None): - """This code is a copy from _generated. Once Autorest is able to provide request preparation this code should be removed""" + def _generate_set_tier_options( + self, tier, timeout=None, rehydrate_priority=None, request_id=None, lease_access_conditions=None + ): + """This code is a copy from _generated. + + Once Autorest is able to provide request preparation this code should be removed. + """ lease_id = None if lease_access_conditions is not None: lease_id = lease_access_conditions.lease_id @@ -1083,18 +1106,20 @@ def _generate_set_tier_options(self, tier, timeout=None, rehydrate_priority=None # Construct parameters query_parameters = {} if timeout is not None: - query_parameters['timeout'] = self._client._serialize.query("timeout", timeout, 'int', minimum=0) - query_parameters['comp'] = self._client._serialize.query("comp", comp, 'str') + query_parameters['timeout'] = self._client._serialize.query("timeout", timeout, 'int', minimum=0) # pylint: disable=protected-access + query_parameters['comp'] = self._client._serialize.query("comp", comp, 'str') # pylint: disable=protected-access, specify-parameter-names-in-call # Construct headers header_parameters = {} - header_parameters['x-ms-access-tier'] = self._client._serialize.header("tier", tier, 'str') + header_parameters['x-ms-access-tier'] = self._client._serialize.header("tier", tier, 'str') # pylint: disable=protected-access, specify-parameter-names-in-call if rehydrate_priority is not None: - header_parameters['x-ms-rehydrate-priority'] = self._client._serialize.header("rehydrate_priority", rehydrate_priority, 'str') + header_parameters['x-ms-rehydrate-priority'] = self._client._serialize.header( # pylint: disable=protected-access + "rehydrate_priority", rehydrate_priority, 'str') if request_id is not None: - header_parameters['x-ms-client-request-id'] = self._client._serialize.header("request_id", request_id, 'str') + header_parameters['x-ms-client-request-id'] = self._client._serialize.header( # pylint: disable=protected-access + "request_id", request_id, 'str') if lease_id is not None: - header_parameters['x-ms-lease-id'] = self._client._serialize.header("lease_id", lease_id, 'str') + header_parameters['x-ms-lease-id'] = self._client._serialize.header("lease_id", lease_id, 'str') # pylint: disable=protected-access return query_parameters, header_parameters