azure-storage-blob 12.24.0b1__py3-none-any.whl → 12.25.0b1__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/_blob_client.py +6 -3
- azure/storage/blob/_download.py +2 -2
- 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 +17 -15
- azure/storage/blob/_generated/aio/operations/_blob_operations.py +55 -52
- azure/storage/blob/_generated/aio/operations/_block_blob_operations.py +21 -18
- azure/storage/blob/_generated/aio/operations/_container_operations.py +41 -38
- azure/storage/blob/_generated/aio/operations/_page_blob_operations.py +26 -23
- azure/storage/blob/_generated/aio/operations/_patch.py +2 -8
- azure/storage/blob/_generated/aio/operations/_service_operations.py +19 -17
- 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 +14 -12
- azure/storage/blob/_generated/operations/_blob_operations.py +34 -32
- azure/storage/blob/_generated/operations/_block_blob_operations.py +16 -14
- azure/storage/blob/_generated/operations/_container_operations.py +28 -26
- azure/storage/blob/_generated/operations/_page_blob_operations.py +19 -17
- azure/storage/blob/_generated/operations/_patch.py +2 -8
- azure/storage/blob/_generated/operations/_service_operations.py +18 -16
- azure/storage/blob/_models.py +1 -1
- azure/storage/blob/_serialize.py +1 -0
- azure/storage/blob/_shared/authentication.py +1 -1
- azure/storage/blob/_shared/base_client.py +1 -1
- azure/storage/blob/_shared/parser.py +2 -10
- azure/storage/blob/_shared/policies_async.py +2 -2
- azure/storage/blob/_shared/request_handlers.py +3 -4
- azure/storage/blob/_shared/response_handlers.py +2 -2
- azure/storage/blob/_shared/shared_access_signature.py +2 -2
- azure/storage/blob/_version.py +1 -1
- azure/storage/blob/aio/_blob_client_async.py +6 -3
- azure/storage/blob/aio/_download_async.py +3 -3
- {azure_storage_blob-12.24.0b1.dist-info → azure_storage_blob-12.25.0b1.dist-info}/METADATA +20 -20
- {azure_storage_blob-12.24.0b1.dist-info → azure_storage_blob-12.25.0b1.dist-info}/RECORD +45 -45
- {azure_storage_blob-12.24.0b1.dist-info → azure_storage_blob-12.25.0b1.dist-info}/WHEEL +1 -1
- {azure_storage_blob-12.24.0b1.dist-info → azure_storage_blob-12.25.0b1.dist-info}/LICENSE +0 -0
- {azure_storage_blob-12.24.0b1.dist-info → azure_storage_blob-12.25.0b1.dist-info}/top_level.txt +0 -0
@@ -5,16 +5,22 @@
|
|
5
5
|
# Code generated by Microsoft (R) AutoRest Code Generator.
|
6
6
|
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
7
7
|
# --------------------------------------------------------------------------
|
8
|
+
# pylint: disable=wrong-import-position
|
8
9
|
|
9
|
-
from
|
10
|
-
|
11
|
-
|
12
|
-
from .
|
13
|
-
|
14
|
-
from .
|
10
|
+
from typing import TYPE_CHECKING
|
11
|
+
|
12
|
+
if TYPE_CHECKING:
|
13
|
+
from ._patch import * # pylint: disable=unused-wildcard-import
|
14
|
+
|
15
|
+
from ._service_operations import ServiceOperations # type: ignore
|
16
|
+
from ._container_operations import ContainerOperations # type: ignore
|
17
|
+
from ._blob_operations import BlobOperations # type: ignore
|
18
|
+
from ._page_blob_operations import PageBlobOperations # type: ignore
|
19
|
+
from ._append_blob_operations import AppendBlobOperations # type: ignore
|
20
|
+
from ._block_blob_operations import BlockBlobOperations # type: ignore
|
15
21
|
|
16
22
|
from ._patch import __all__ as _patch_all
|
17
|
-
from ._patch import *
|
23
|
+
from ._patch import *
|
18
24
|
from ._patch import patch_sdk as _patch_sdk
|
19
25
|
|
20
26
|
__all__ = [
|
@@ -25,5 +31,5 @@ __all__ = [
|
|
25
31
|
"AppendBlobOperations",
|
26
32
|
"BlockBlobOperations",
|
27
33
|
]
|
28
|
-
__all__.extend([p for p in _patch_all if p not in __all__])
|
34
|
+
__all__.extend([p for p in _patch_all if p not in __all__]) # pyright: ignore
|
29
35
|
_patch_sdk()
|
@@ -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,
|
@@ -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],
|
@@ -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,
|
@@ -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,
|
@@ -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,
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# pylint: disable=too-many-lines
|
1
|
+
# pylint: disable=too-many-lines
|
2
2
|
# coding=utf-8
|
3
3
|
# --------------------------------------------------------------------------
|
4
4
|
# Copyright (c) Microsoft Corporation. All rights reserved.
|
@@ -8,8 +8,9 @@
|
|
8
8
|
# --------------------------------------------------------------------------
|
9
9
|
import datetime
|
10
10
|
import sys
|
11
|
-
from typing import Any, AsyncIterator, Callable, Dict, Literal, Optional,
|
11
|
+
from typing import Any, AsyncIterator, Callable, Dict, Literal, Optional, TypeVar, Union
|
12
12
|
|
13
|
+
from azure.core import AsyncPipelineClient
|
13
14
|
from azure.core.exceptions import (
|
14
15
|
ClientAuthenticationError,
|
15
16
|
HttpResponseError,
|
@@ -26,6 +27,7 @@ from azure.core.tracing.decorator_async import distributed_trace_async
|
|
26
27
|
from azure.core.utils import case_insensitive_dict
|
27
28
|
|
28
29
|
from ... import models as _models
|
30
|
+
from ..._serialization import Deserializer, Serializer
|
29
31
|
from ...operations._blob_operations import (
|
30
32
|
build_abort_copy_from_url_request,
|
31
33
|
build_acquire_lease_request,
|
@@ -52,11 +54,12 @@ from ...operations._blob_operations import (
|
|
52
54
|
build_start_copy_from_url_request,
|
53
55
|
build_undelete_request,
|
54
56
|
)
|
57
|
+
from .._configuration import AzureBlobStorageConfiguration
|
55
58
|
|
56
59
|
if sys.version_info >= (3, 9):
|
57
60
|
from collections.abc import MutableMapping
|
58
61
|
else:
|
59
|
-
from typing import MutableMapping # type: ignore
|
62
|
+
from typing import MutableMapping # type: ignore
|
60
63
|
T = TypeVar("T")
|
61
64
|
ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]]
|
62
65
|
|
@@ -75,10 +78,10 @@ class BlobOperations: # pylint: disable=too-many-public-methods
|
|
75
78
|
|
76
79
|
def __init__(self, *args, **kwargs) -> None:
|
77
80
|
input_args = list(args)
|
78
|
-
self._client = input_args.pop(0) if input_args else kwargs.pop("client")
|
79
|
-
self._config = input_args.pop(0) if input_args else kwargs.pop("config")
|
80
|
-
self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer")
|
81
|
-
self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer")
|
81
|
+
self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client")
|
82
|
+
self._config: AzureBlobStorageConfiguration = input_args.pop(0) if input_args else kwargs.pop("config")
|
83
|
+
self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer")
|
84
|
+
self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer")
|
82
85
|
|
83
86
|
@distributed_trace_async
|
84
87
|
async def download(
|
@@ -142,7 +145,7 @@ class BlobOperations: # pylint: disable=too-many-public-methods
|
|
142
145
|
:rtype: AsyncIterator[bytes]
|
143
146
|
:raises ~azure.core.exceptions.HttpResponseError:
|
144
147
|
"""
|
145
|
-
error_map: MutableMapping
|
148
|
+
error_map: MutableMapping = {
|
146
149
|
401: ClientAuthenticationError,
|
147
150
|
404: ResourceNotFoundError,
|
148
151
|
409: ResourceExistsError,
|
@@ -401,7 +404,7 @@ class BlobOperations: # pylint: disable=too-many-public-methods
|
|
401
404
|
return deserialized # type: ignore
|
402
405
|
|
403
406
|
@distributed_trace_async
|
404
|
-
async def get_properties(
|
407
|
+
async def get_properties(
|
405
408
|
self,
|
406
409
|
snapshot: Optional[str] = None,
|
407
410
|
version_id: Optional[str] = None,
|
@@ -445,7 +448,7 @@ class BlobOperations: # pylint: disable=too-many-public-methods
|
|
445
448
|
:rtype: None
|
446
449
|
:raises ~azure.core.exceptions.HttpResponseError:
|
447
450
|
"""
|
448
|
-
error_map: MutableMapping
|
451
|
+
error_map: MutableMapping = {
|
449
452
|
401: ClientAuthenticationError,
|
450
453
|
404: ResourceNotFoundError,
|
451
454
|
409: ResourceExistsError,
|
@@ -604,7 +607,7 @@ class BlobOperations: # pylint: disable=too-many-public-methods
|
|
604
607
|
return cls(pipeline_response, None, response_headers) # type: ignore
|
605
608
|
|
606
609
|
@distributed_trace_async
|
607
|
-
async def delete(
|
610
|
+
async def delete(
|
608
611
|
self,
|
609
612
|
snapshot: Optional[str] = None,
|
610
613
|
version_id: Optional[str] = None,
|
@@ -666,7 +669,7 @@ class BlobOperations: # pylint: disable=too-many-public-methods
|
|
666
669
|
:rtype: None
|
667
670
|
:raises ~azure.core.exceptions.HttpResponseError:
|
668
671
|
"""
|
669
|
-
error_map: MutableMapping
|
672
|
+
error_map: MutableMapping = {
|
670
673
|
401: ClientAuthenticationError,
|
671
674
|
404: ResourceNotFoundError,
|
672
675
|
409: ResourceExistsError,
|
@@ -738,7 +741,7 @@ class BlobOperations: # pylint: disable=too-many-public-methods
|
|
738
741
|
return cls(pipeline_response, None, response_headers) # type: ignore
|
739
742
|
|
740
743
|
@distributed_trace_async
|
741
|
-
async def undelete(
|
744
|
+
async def undelete(
|
742
745
|
self, timeout: Optional[int] = None, request_id_parameter: Optional[str] = None, **kwargs: Any
|
743
746
|
) -> None:
|
744
747
|
# pylint: disable=line-too-long
|
@@ -757,7 +760,7 @@ class BlobOperations: # pylint: disable=too-many-public-methods
|
|
757
760
|
:rtype: None
|
758
761
|
:raises ~azure.core.exceptions.HttpResponseError:
|
759
762
|
"""
|
760
|
-
error_map: MutableMapping
|
763
|
+
error_map: MutableMapping = {
|
761
764
|
401: ClientAuthenticationError,
|
762
765
|
404: ResourceNotFoundError,
|
763
766
|
409: ResourceExistsError,
|
@@ -806,7 +809,7 @@ class BlobOperations: # pylint: disable=too-many-public-methods
|
|
806
809
|
return cls(pipeline_response, None, response_headers) # type: ignore
|
807
810
|
|
808
811
|
@distributed_trace_async
|
809
|
-
async def set_expiry(
|
812
|
+
async def set_expiry(
|
810
813
|
self,
|
811
814
|
expiry_options: Union[str, _models.BlobExpiryOptions],
|
812
815
|
timeout: Optional[int] = None,
|
@@ -835,7 +838,7 @@ class BlobOperations: # pylint: disable=too-many-public-methods
|
|
835
838
|
:rtype: None
|
836
839
|
:raises ~azure.core.exceptions.HttpResponseError:
|
837
840
|
"""
|
838
|
-
error_map: MutableMapping
|
841
|
+
error_map: MutableMapping = {
|
839
842
|
401: ClientAuthenticationError,
|
840
843
|
404: ResourceNotFoundError,
|
841
844
|
409: ResourceExistsError,
|
@@ -888,7 +891,7 @@ class BlobOperations: # pylint: disable=too-many-public-methods
|
|
888
891
|
return cls(pipeline_response, None, response_headers) # type: ignore
|
889
892
|
|
890
893
|
@distributed_trace_async
|
891
|
-
async def set_http_headers(
|
894
|
+
async def set_http_headers(
|
892
895
|
self,
|
893
896
|
timeout: Optional[int] = None,
|
894
897
|
request_id_parameter: Optional[str] = None,
|
@@ -919,7 +922,7 @@ class BlobOperations: # pylint: disable=too-many-public-methods
|
|
919
922
|
:rtype: None
|
920
923
|
:raises ~azure.core.exceptions.HttpResponseError:
|
921
924
|
"""
|
922
|
-
error_map: MutableMapping
|
925
|
+
error_map: MutableMapping = {
|
923
926
|
401: ClientAuthenticationError,
|
924
927
|
404: ResourceNotFoundError,
|
925
928
|
409: ResourceExistsError,
|
@@ -1013,7 +1016,7 @@ class BlobOperations: # pylint: disable=too-many-public-methods
|
|
1013
1016
|
return cls(pipeline_response, None, response_headers) # type: ignore
|
1014
1017
|
|
1015
1018
|
@distributed_trace_async
|
1016
|
-
async def set_immutability_policy(
|
1019
|
+
async def set_immutability_policy(
|
1017
1020
|
self,
|
1018
1021
|
timeout: Optional[int] = None,
|
1019
1022
|
request_id_parameter: Optional[str] = None,
|
@@ -1058,7 +1061,7 @@ class BlobOperations: # pylint: disable=too-many-public-methods
|
|
1058
1061
|
:rtype: None
|
1059
1062
|
:raises ~azure.core.exceptions.HttpResponseError:
|
1060
1063
|
"""
|
1061
|
-
error_map: MutableMapping
|
1064
|
+
error_map: MutableMapping = {
|
1062
1065
|
401: ClientAuthenticationError,
|
1063
1066
|
404: ResourceNotFoundError,
|
1064
1067
|
409: ResourceExistsError,
|
@@ -1122,7 +1125,7 @@ class BlobOperations: # pylint: disable=too-many-public-methods
|
|
1122
1125
|
return cls(pipeline_response, None, response_headers) # type: ignore
|
1123
1126
|
|
1124
1127
|
@distributed_trace_async
|
1125
|
-
async def delete_immutability_policy(
|
1128
|
+
async def delete_immutability_policy(
|
1126
1129
|
self,
|
1127
1130
|
timeout: Optional[int] = None,
|
1128
1131
|
request_id_parameter: Optional[str] = None,
|
@@ -1156,7 +1159,7 @@ class BlobOperations: # pylint: disable=too-many-public-methods
|
|
1156
1159
|
:rtype: None
|
1157
1160
|
:raises ~azure.core.exceptions.HttpResponseError:
|
1158
1161
|
"""
|
1159
|
-
error_map: MutableMapping
|
1162
|
+
error_map: MutableMapping = {
|
1160
1163
|
401: ClientAuthenticationError,
|
1161
1164
|
404: ResourceNotFoundError,
|
1162
1165
|
409: ResourceExistsError,
|
@@ -1207,7 +1210,7 @@ class BlobOperations: # pylint: disable=too-many-public-methods
|
|
1207
1210
|
return cls(pipeline_response, None, response_headers) # type: ignore
|
1208
1211
|
|
1209
1212
|
@distributed_trace_async
|
1210
|
-
async def set_legal_hold(
|
1213
|
+
async def set_legal_hold(
|
1211
1214
|
self,
|
1212
1215
|
legal_hold: bool,
|
1213
1216
|
timeout: Optional[int] = None,
|
@@ -1244,7 +1247,7 @@ class BlobOperations: # pylint: disable=too-many-public-methods
|
|
1244
1247
|
:rtype: None
|
1245
1248
|
:raises ~azure.core.exceptions.HttpResponseError:
|
1246
1249
|
"""
|
1247
|
-
error_map: MutableMapping
|
1250
|
+
error_map: MutableMapping = {
|
1248
1251
|
401: ClientAuthenticationError,
|
1249
1252
|
404: ResourceNotFoundError,
|
1250
1253
|
409: ResourceExistsError,
|
@@ -1297,7 +1300,7 @@ class BlobOperations: # pylint: disable=too-many-public-methods
|
|
1297
1300
|
return cls(pipeline_response, None, response_headers) # type: ignore
|
1298
1301
|
|
1299
1302
|
@distributed_trace_async
|
1300
|
-
async def set_metadata(
|
1303
|
+
async def set_metadata(
|
1301
1304
|
self,
|
1302
1305
|
timeout: Optional[int] = None,
|
1303
1306
|
metadata: Optional[Dict[str, str]] = None,
|
@@ -1341,7 +1344,7 @@ class BlobOperations: # pylint: disable=too-many-public-methods
|
|
1341
1344
|
:rtype: None
|
1342
1345
|
:raises ~azure.core.exceptions.HttpResponseError:
|
1343
1346
|
"""
|
1344
|
-
error_map: MutableMapping
|
1347
|
+
error_map: MutableMapping = {
|
1345
1348
|
401: ClientAuthenticationError,
|
1346
1349
|
404: ResourceNotFoundError,
|
1347
1350
|
409: ResourceExistsError,
|
@@ -1438,7 +1441,7 @@ class BlobOperations: # pylint: disable=too-many-public-methods
|
|
1438
1441
|
return cls(pipeline_response, None, response_headers) # type: ignore
|
1439
1442
|
|
1440
1443
|
@distributed_trace_async
|
1441
|
-
async def acquire_lease(
|
1444
|
+
async def acquire_lease(
|
1442
1445
|
self,
|
1443
1446
|
timeout: Optional[int] = None,
|
1444
1447
|
duration: Optional[int] = None,
|
@@ -1474,7 +1477,7 @@ class BlobOperations: # pylint: disable=too-many-public-methods
|
|
1474
1477
|
:rtype: None
|
1475
1478
|
:raises ~azure.core.exceptions.HttpResponseError:
|
1476
1479
|
"""
|
1477
|
-
error_map: MutableMapping
|
1480
|
+
error_map: MutableMapping = {
|
1478
1481
|
401: ClientAuthenticationError,
|
1479
1482
|
404: ResourceNotFoundError,
|
1480
1483
|
409: ResourceExistsError,
|
@@ -1547,7 +1550,7 @@ class BlobOperations: # pylint: disable=too-many-public-methods
|
|
1547
1550
|
return cls(pipeline_response, None, response_headers) # type: ignore
|
1548
1551
|
|
1549
1552
|
@distributed_trace_async
|
1550
|
-
async def release_lease(
|
1553
|
+
async def release_lease(
|
1551
1554
|
self,
|
1552
1555
|
lease_id: str,
|
1553
1556
|
timeout: Optional[int] = None,
|
@@ -1576,7 +1579,7 @@ class BlobOperations: # pylint: disable=too-many-public-methods
|
|
1576
1579
|
:rtype: None
|
1577
1580
|
:raises ~azure.core.exceptions.HttpResponseError:
|
1578
1581
|
"""
|
1579
|
-
error_map: MutableMapping
|
1582
|
+
error_map: MutableMapping = {
|
1580
1583
|
401: ClientAuthenticationError,
|
1581
1584
|
404: ResourceNotFoundError,
|
1582
1585
|
409: ResourceExistsError,
|
@@ -1647,7 +1650,7 @@ class BlobOperations: # pylint: disable=too-many-public-methods
|
|
1647
1650
|
return cls(pipeline_response, None, response_headers) # type: ignore
|
1648
1651
|
|
1649
1652
|
@distributed_trace_async
|
1650
|
-
async def renew_lease(
|
1653
|
+
async def renew_lease(
|
1651
1654
|
self,
|
1652
1655
|
lease_id: str,
|
1653
1656
|
timeout: Optional[int] = None,
|
@@ -1676,7 +1679,7 @@ class BlobOperations: # pylint: disable=too-many-public-methods
|
|
1676
1679
|
:rtype: None
|
1677
1680
|
:raises ~azure.core.exceptions.HttpResponseError:
|
1678
1681
|
"""
|
1679
|
-
error_map: MutableMapping
|
1682
|
+
error_map: MutableMapping = {
|
1680
1683
|
401: ClientAuthenticationError,
|
1681
1684
|
404: ResourceNotFoundError,
|
1682
1685
|
409: ResourceExistsError,
|
@@ -1748,7 +1751,7 @@ class BlobOperations: # pylint: disable=too-many-public-methods
|
|
1748
1751
|
return cls(pipeline_response, None, response_headers) # type: ignore
|
1749
1752
|
|
1750
1753
|
@distributed_trace_async
|
1751
|
-
async def change_lease(
|
1754
|
+
async def change_lease(
|
1752
1755
|
self,
|
1753
1756
|
lease_id: str,
|
1754
1757
|
proposed_lease_id: str,
|
@@ -1782,7 +1785,7 @@ class BlobOperations: # pylint: disable=too-many-public-methods
|
|
1782
1785
|
:rtype: None
|
1783
1786
|
:raises ~azure.core.exceptions.HttpResponseError:
|
1784
1787
|
"""
|
1785
|
-
error_map: MutableMapping
|
1788
|
+
error_map: MutableMapping = {
|
1786
1789
|
401: ClientAuthenticationError,
|
1787
1790
|
404: ResourceNotFoundError,
|
1788
1791
|
409: ResourceExistsError,
|
@@ -1855,7 +1858,7 @@ class BlobOperations: # pylint: disable=too-many-public-methods
|
|
1855
1858
|
return cls(pipeline_response, None, response_headers) # type: ignore
|
1856
1859
|
|
1857
1860
|
@distributed_trace_async
|
1858
|
-
async def break_lease(
|
1861
|
+
async def break_lease(
|
1859
1862
|
self,
|
1860
1863
|
timeout: Optional[int] = None,
|
1861
1864
|
break_period: Optional[int] = None,
|
@@ -1890,7 +1893,7 @@ class BlobOperations: # pylint: disable=too-many-public-methods
|
|
1890
1893
|
:rtype: None
|
1891
1894
|
:raises ~azure.core.exceptions.HttpResponseError:
|
1892
1895
|
"""
|
1893
|
-
error_map: MutableMapping
|
1896
|
+
error_map: MutableMapping = {
|
1894
1897
|
401: ClientAuthenticationError,
|
1895
1898
|
404: ResourceNotFoundError,
|
1896
1899
|
409: ResourceExistsError,
|
@@ -1962,7 +1965,7 @@ class BlobOperations: # pylint: disable=too-many-public-methods
|
|
1962
1965
|
return cls(pipeline_response, None, response_headers) # type: ignore
|
1963
1966
|
|
1964
1967
|
@distributed_trace_async
|
1965
|
-
async def create_snapshot(
|
1968
|
+
async def create_snapshot(
|
1966
1969
|
self,
|
1967
1970
|
timeout: Optional[int] = None,
|
1968
1971
|
metadata: Optional[Dict[str, str]] = None,
|
@@ -2005,7 +2008,7 @@ class BlobOperations: # pylint: disable=too-many-public-methods
|
|
2005
2008
|
:rtype: None
|
2006
2009
|
:raises ~azure.core.exceptions.HttpResponseError:
|
2007
2010
|
"""
|
2008
|
-
error_map: MutableMapping
|
2011
|
+
error_map: MutableMapping = {
|
2009
2012
|
401: ClientAuthenticationError,
|
2010
2013
|
404: ResourceNotFoundError,
|
2011
2014
|
409: ResourceExistsError,
|
@@ -2097,7 +2100,7 @@ class BlobOperations: # pylint: disable=too-many-public-methods
|
|
2097
2100
|
return cls(pipeline_response, None, response_headers) # type: ignore
|
2098
2101
|
|
2099
2102
|
@distributed_trace_async
|
2100
|
-
async def start_copy_from_url(
|
2103
|
+
async def start_copy_from_url(
|
2101
2104
|
self,
|
2102
2105
|
copy_source: str,
|
2103
2106
|
timeout: Optional[int] = None,
|
@@ -2172,7 +2175,7 @@ class BlobOperations: # pylint: disable=too-many-public-methods
|
|
2172
2175
|
:rtype: None
|
2173
2176
|
:raises ~azure.core.exceptions.HttpResponseError:
|
2174
2177
|
"""
|
2175
|
-
error_map: MutableMapping
|
2178
|
+
error_map: MutableMapping = {
|
2176
2179
|
401: ClientAuthenticationError,
|
2177
2180
|
404: ResourceNotFoundError,
|
2178
2181
|
409: ResourceExistsError,
|
@@ -2270,7 +2273,7 @@ class BlobOperations: # pylint: disable=too-many-public-methods
|
|
2270
2273
|
return cls(pipeline_response, None, response_headers) # type: ignore
|
2271
2274
|
|
2272
2275
|
@distributed_trace_async
|
2273
|
-
async def copy_from_url(
|
2276
|
+
async def copy_from_url(
|
2274
2277
|
self,
|
2275
2278
|
copy_source: str,
|
2276
2279
|
timeout: Optional[int] = None,
|
@@ -2354,7 +2357,7 @@ class BlobOperations: # pylint: disable=too-many-public-methods
|
|
2354
2357
|
:rtype: None
|
2355
2358
|
:raises ~azure.core.exceptions.HttpResponseError:
|
2356
2359
|
"""
|
2357
|
-
error_map: MutableMapping
|
2360
|
+
error_map: MutableMapping = {
|
2358
2361
|
401: ClientAuthenticationError,
|
2359
2362
|
404: ResourceNotFoundError,
|
2360
2363
|
409: ResourceExistsError,
|
@@ -2465,7 +2468,7 @@ class BlobOperations: # pylint: disable=too-many-public-methods
|
|
2465
2468
|
return cls(pipeline_response, None, response_headers) # type: ignore
|
2466
2469
|
|
2467
2470
|
@distributed_trace_async
|
2468
|
-
async def abort_copy_from_url(
|
2471
|
+
async def abort_copy_from_url(
|
2469
2472
|
self,
|
2470
2473
|
copy_id: str,
|
2471
2474
|
timeout: Optional[int] = None,
|
@@ -2495,7 +2498,7 @@ class BlobOperations: # pylint: disable=too-many-public-methods
|
|
2495
2498
|
:rtype: None
|
2496
2499
|
:raises ~azure.core.exceptions.HttpResponseError:
|
2497
2500
|
"""
|
2498
|
-
error_map: MutableMapping
|
2501
|
+
error_map: MutableMapping = {
|
2499
2502
|
401: ClientAuthenticationError,
|
2500
2503
|
404: ResourceNotFoundError,
|
2501
2504
|
409: ResourceExistsError,
|
@@ -2554,7 +2557,7 @@ class BlobOperations: # pylint: disable=too-many-public-methods
|
|
2554
2557
|
return cls(pipeline_response, None, response_headers) # type: ignore
|
2555
2558
|
|
2556
2559
|
@distributed_trace_async
|
2557
|
-
async def set_tier(
|
2560
|
+
async def set_tier(
|
2558
2561
|
self,
|
2559
2562
|
tier: Union[str, _models.AccessTierRequired],
|
2560
2563
|
snapshot: Optional[str] = None,
|
@@ -2607,7 +2610,7 @@ class BlobOperations: # pylint: disable=too-many-public-methods
|
|
2607
2610
|
:rtype: None
|
2608
2611
|
:raises ~azure.core.exceptions.HttpResponseError:
|
2609
2612
|
"""
|
2610
|
-
error_map: MutableMapping
|
2613
|
+
error_map: MutableMapping = {
|
2611
2614
|
401: ClientAuthenticationError,
|
2612
2615
|
404: ResourceNotFoundError,
|
2613
2616
|
409: ResourceExistsError,
|
@@ -2668,7 +2671,7 @@ class BlobOperations: # pylint: disable=too-many-public-methods
|
|
2668
2671
|
return cls(pipeline_response, None, response_headers) # type: ignore
|
2669
2672
|
|
2670
2673
|
@distributed_trace_async
|
2671
|
-
async def get_account_info(
|
2674
|
+
async def get_account_info(
|
2672
2675
|
self, timeout: Optional[int] = None, request_id_parameter: Optional[str] = None, **kwargs: Any
|
2673
2676
|
) -> None:
|
2674
2677
|
# pylint: disable=line-too-long
|
@@ -2687,7 +2690,7 @@ class BlobOperations: # pylint: disable=too-many-public-methods
|
|
2687
2690
|
:rtype: None
|
2688
2691
|
:raises ~azure.core.exceptions.HttpResponseError:
|
2689
2692
|
"""
|
2690
|
-
error_map: MutableMapping
|
2693
|
+
error_map: MutableMapping = {
|
2691
2694
|
401: ClientAuthenticationError,
|
2692
2695
|
404: ResourceNotFoundError,
|
2693
2696
|
409: ResourceExistsError,
|
@@ -2783,7 +2786,7 @@ class BlobOperations: # pylint: disable=too-many-public-methods
|
|
2783
2786
|
:rtype: AsyncIterator[bytes]
|
2784
2787
|
:raises ~azure.core.exceptions.HttpResponseError:
|
2785
2788
|
"""
|
2786
|
-
error_map: MutableMapping
|
2789
|
+
error_map: MutableMapping = {
|
2787
2790
|
401: ClientAuthenticationError,
|
2788
2791
|
404: ResourceNotFoundError,
|
2789
2792
|
409: ResourceExistsError,
|
@@ -3032,7 +3035,7 @@ class BlobOperations: # pylint: disable=too-many-public-methods
|
|
3032
3035
|
:rtype: ~azure.storage.blob.models.BlobTags
|
3033
3036
|
:raises ~azure.core.exceptions.HttpResponseError:
|
3034
3037
|
"""
|
3035
|
-
error_map: MutableMapping
|
3038
|
+
error_map: MutableMapping = {
|
3036
3039
|
401: ClientAuthenticationError,
|
3037
3040
|
404: ResourceNotFoundError,
|
3038
3041
|
409: ResourceExistsError,
|
@@ -3096,7 +3099,7 @@ class BlobOperations: # pylint: disable=too-many-public-methods
|
|
3096
3099
|
return deserialized # type: ignore
|
3097
3100
|
|
3098
3101
|
@distributed_trace_async
|
3099
|
-
async def set_tags(
|
3102
|
+
async def set_tags(
|
3100
3103
|
self,
|
3101
3104
|
timeout: Optional[int] = None,
|
3102
3105
|
version_id: Optional[str] = None,
|
@@ -3140,7 +3143,7 @@ class BlobOperations: # pylint: disable=too-many-public-methods
|
|
3140
3143
|
:rtype: None
|
3141
3144
|
:raises ~azure.core.exceptions.HttpResponseError:
|
3142
3145
|
"""
|
3143
|
-
error_map: MutableMapping
|
3146
|
+
error_map: MutableMapping = {
|
3144
3147
|
401: ClientAuthenticationError,
|
3145
3148
|
404: ResourceNotFoundError,
|
3146
3149
|
409: ResourceExistsError,
|