azure-storage-blob 12.24.1__py3-none-any.whl → 12.25.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- azure/storage/blob/_generated/__init__.py +9 -3
- azure/storage/blob/_generated/_configuration.py +1 -1
- azure/storage/blob/_generated/_patch.py +16 -29
- azure/storage/blob/_generated/_serialization.py +52 -117
- azure/storage/blob/_generated/aio/__init__.py +9 -3
- azure/storage/blob/_generated/aio/_configuration.py +1 -1
- azure/storage/blob/_generated/aio/_patch.py +16 -29
- azure/storage/blob/_generated/aio/operations/__init__.py +14 -8
- azure/storage/blob/_generated/aio/operations/_append_blob_operations.py +21 -19
- azure/storage/blob/_generated/aio/operations/_blob_operations.py +88 -85
- azure/storage/blob/_generated/aio/operations/_block_blob_operations.py +28 -25
- azure/storage/blob/_generated/aio/operations/_container_operations.py +59 -56
- azure/storage/blob/_generated/aio/operations/_page_blob_operations.py +37 -34
- azure/storage/blob/_generated/aio/operations/_patch.py +2 -8
- azure/storage/blob/_generated/aio/operations/_service_operations.py +27 -25
- azure/storage/blob/_generated/models/__init__.py +91 -80
- azure/storage/blob/_generated/models/_models_py3.py +4 -5
- azure/storage/blob/_generated/models/_patch.py +2 -8
- azure/storage/blob/_generated/operations/__init__.py +14 -8
- azure/storage/blob/_generated/operations/_append_blob_operations.py +18 -16
- azure/storage/blob/_generated/operations/_blob_operations.py +67 -65
- azure/storage/blob/_generated/operations/_block_blob_operations.py +23 -21
- azure/storage/blob/_generated/operations/_container_operations.py +46 -44
- azure/storage/blob/_generated/operations/_page_blob_operations.py +30 -28
- azure/storage/blob/_generated/operations/_patch.py +2 -8
- azure/storage/blob/_generated/operations/_service_operations.py +26 -24
- azure/storage/blob/_serialize.py +1 -0
- azure/storage/blob/_version.py +1 -1
- {azure_storage_blob-12.24.1.dist-info → azure_storage_blob-12.25.0.dist-info}/METADATA +2 -2
- {azure_storage_blob-12.24.1.dist-info → azure_storage_blob-12.25.0.dist-info}/RECORD +33 -33
- {azure_storage_blob-12.24.1.dist-info → azure_storage_blob-12.25.0.dist-info}/LICENSE +0 -0
- {azure_storage_blob-12.24.1.dist-info → azure_storage_blob-12.25.0.dist-info}/WHEEL +0 -0
- {azure_storage_blob-12.24.1.dist-info → azure_storage_blob-12.25.0.dist-info}/top_level.txt +0 -0
@@ -1,4 +1,3 @@
|
|
1
|
-
# pylint: disable=too-many-lines,too-many-statements
|
2
1
|
# coding=utf-8
|
3
2
|
# --------------------------------------------------------------------------
|
4
3
|
# Copyright (c) Microsoft Corporation. All rights reserved.
|
@@ -8,8 +7,9 @@
|
|
8
7
|
# --------------------------------------------------------------------------
|
9
8
|
import datetime
|
10
9
|
import sys
|
11
|
-
from typing import Any, Callable, Dict, IO, Literal, Optional,
|
10
|
+
from typing import Any, Callable, Dict, IO, Literal, Optional, TypeVar, Union
|
12
11
|
|
12
|
+
from azure.core import AsyncPipelineClient
|
13
13
|
from azure.core.exceptions import (
|
14
14
|
ClientAuthenticationError,
|
15
15
|
HttpResponseError,
|
@@ -24,17 +24,19 @@ from azure.core.tracing.decorator_async import distributed_trace_async
|
|
24
24
|
from azure.core.utils import case_insensitive_dict
|
25
25
|
|
26
26
|
from ... import models as _models
|
27
|
+
from ..._serialization import Deserializer, Serializer
|
27
28
|
from ...operations._append_blob_operations import (
|
28
29
|
build_append_block_from_url_request,
|
29
30
|
build_append_block_request,
|
30
31
|
build_create_request,
|
31
32
|
build_seal_request,
|
32
33
|
)
|
34
|
+
from .._configuration import AzureBlobStorageConfiguration
|
33
35
|
|
34
36
|
if sys.version_info >= (3, 9):
|
35
37
|
from collections.abc import MutableMapping
|
36
38
|
else:
|
37
|
-
from typing import MutableMapping # type: ignore
|
39
|
+
from typing import MutableMapping # type: ignore
|
38
40
|
T = TypeVar("T")
|
39
41
|
ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]]
|
40
42
|
|
@@ -53,13 +55,13 @@ class AppendBlobOperations:
|
|
53
55
|
|
54
56
|
def __init__(self, *args, **kwargs) -> None:
|
55
57
|
input_args = list(args)
|
56
|
-
self._client = input_args.pop(0) if input_args else kwargs.pop("client")
|
57
|
-
self._config = input_args.pop(0) if input_args else kwargs.pop("config")
|
58
|
-
self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer")
|
59
|
-
self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer")
|
58
|
+
self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client")
|
59
|
+
self._config: AzureBlobStorageConfiguration = input_args.pop(0) if input_args else kwargs.pop("config")
|
60
|
+
self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer")
|
61
|
+
self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer")
|
60
62
|
|
61
63
|
@distributed_trace_async
|
62
|
-
async def create(
|
64
|
+
async def create(
|
63
65
|
self,
|
64
66
|
content_length: int,
|
65
67
|
timeout: Optional[int] = None,
|
@@ -83,7 +85,7 @@ class AppendBlobOperations:
|
|
83
85
|
:type content_length: int
|
84
86
|
:param timeout: The timeout parameter is expressed in seconds. For more information, see
|
85
87
|
:code:`<a
|
86
|
-
href="https://
|
88
|
+
href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
|
87
89
|
Timeouts for Blob Service Operations.</a>`. Default value is None.
|
88
90
|
:type timeout: int
|
89
91
|
:param metadata: Optional. Specifies a user-defined name-value pair associated with the blob.
|
@@ -123,7 +125,7 @@ class AppendBlobOperations:
|
|
123
125
|
:rtype: None
|
124
126
|
:raises ~azure.core.exceptions.HttpResponseError:
|
125
127
|
"""
|
126
|
-
error_map: MutableMapping
|
128
|
+
error_map: MutableMapping = {
|
127
129
|
401: ClientAuthenticationError,
|
128
130
|
404: ResourceNotFoundError,
|
129
131
|
409: ResourceExistsError,
|
@@ -245,7 +247,7 @@ class AppendBlobOperations:
|
|
245
247
|
return cls(pipeline_response, None, response_headers) # type: ignore
|
246
248
|
|
247
249
|
@distributed_trace_async
|
248
|
-
async def append_block(
|
250
|
+
async def append_block(
|
249
251
|
self,
|
250
252
|
content_length: int,
|
251
253
|
body: IO[bytes],
|
@@ -273,7 +275,7 @@ class AppendBlobOperations:
|
|
273
275
|
:type body: IO[bytes]
|
274
276
|
:param timeout: The timeout parameter is expressed in seconds. For more information, see
|
275
277
|
:code:`<a
|
276
|
-
href="https://
|
278
|
+
href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
|
277
279
|
Timeouts for Blob Service Operations.</a>`. Default value is None.
|
278
280
|
:type timeout: int
|
279
281
|
:param transactional_content_md5: Specify the transactional md5 for the body, to be validated
|
@@ -308,7 +310,7 @@ class AppendBlobOperations:
|
|
308
310
|
:rtype: None
|
309
311
|
:raises ~azure.core.exceptions.HttpResponseError:
|
310
312
|
"""
|
311
|
-
error_map: MutableMapping
|
313
|
+
error_map: MutableMapping = {
|
312
314
|
401: ClientAuthenticationError,
|
313
315
|
404: ResourceNotFoundError,
|
314
316
|
409: ResourceExistsError,
|
@@ -432,7 +434,7 @@ class AppendBlobOperations:
|
|
432
434
|
return cls(pipeline_response, None, response_headers) # type: ignore
|
433
435
|
|
434
436
|
@distributed_trace_async
|
435
|
-
async def append_block_from_url(
|
437
|
+
async def append_block_from_url(
|
436
438
|
self,
|
437
439
|
source_url: str,
|
438
440
|
content_length: int,
|
@@ -471,7 +473,7 @@ class AppendBlobOperations:
|
|
471
473
|
:type source_contentcrc64: bytes
|
472
474
|
:param timeout: The timeout parameter is expressed in seconds. For more information, see
|
473
475
|
:code:`<a
|
474
|
-
href="https://
|
476
|
+
href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
|
475
477
|
Timeouts for Blob Service Operations.</a>`. Default value is None.
|
476
478
|
:type timeout: int
|
477
479
|
:param transactional_content_md5: Specify the transactional md5 for the body, to be validated
|
@@ -502,7 +504,7 @@ class AppendBlobOperations:
|
|
502
504
|
:rtype: None
|
503
505
|
:raises ~azure.core.exceptions.HttpResponseError:
|
504
506
|
"""
|
505
|
-
error_map: MutableMapping
|
507
|
+
error_map: MutableMapping = {
|
506
508
|
401: ClientAuthenticationError,
|
507
509
|
404: ResourceNotFoundError,
|
508
510
|
409: ResourceExistsError,
|
@@ -631,7 +633,7 @@ class AppendBlobOperations:
|
|
631
633
|
return cls(pipeline_response, None, response_headers) # type: ignore
|
632
634
|
|
633
635
|
@distributed_trace_async
|
634
|
-
async def seal(
|
636
|
+
async def seal(
|
635
637
|
self,
|
636
638
|
timeout: Optional[int] = None,
|
637
639
|
request_id_parameter: Optional[str] = None,
|
@@ -646,7 +648,7 @@ class AppendBlobOperations:
|
|
646
648
|
|
647
649
|
:param timeout: The timeout parameter is expressed in seconds. For more information, see
|
648
650
|
:code:`<a
|
649
|
-
href="https://
|
651
|
+
href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
|
650
652
|
Timeouts for Blob Service Operations.</a>`. Default value is None.
|
651
653
|
:type timeout: int
|
652
654
|
:param request_id_parameter: Provides a client-generated, opaque value with a 1 KB character
|
@@ -664,7 +666,7 @@ class AppendBlobOperations:
|
|
664
666
|
:rtype: None
|
665
667
|
:raises ~azure.core.exceptions.HttpResponseError:
|
666
668
|
"""
|
667
|
-
error_map: MutableMapping
|
669
|
+
error_map: MutableMapping = {
|
668
670
|
401: ClientAuthenticationError,
|
669
671
|
404: ResourceNotFoundError,
|
670
672
|
409: ResourceExistsError,
|