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
@@ -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, Callable, Dict, Iterator, Literal, Optional,
|
11
|
+
from typing import Any, Callable, Dict, Iterator, Literal, Optional, TypeVar, Union
|
12
12
|
|
13
|
+
from azure.core import PipelineClient
|
13
14
|
from azure.core.exceptions import (
|
14
15
|
ClientAuthenticationError,
|
15
16
|
HttpResponseError,
|
@@ -26,12 +27,13 @@ from azure.core.tracing.decorator import distributed_trace
|
|
26
27
|
from azure.core.utils import case_insensitive_dict
|
27
28
|
|
28
29
|
from .. import models as _models
|
29
|
-
from ..
|
30
|
+
from .._configuration import AzureBlobStorageConfiguration
|
31
|
+
from .._serialization import Deserializer, Serializer
|
30
32
|
|
31
33
|
if sys.version_info >= (3, 9):
|
32
34
|
from collections.abc import MutableMapping
|
33
35
|
else:
|
34
|
-
from typing import MutableMapping # type: ignore
|
36
|
+
from typing import MutableMapping # type: ignore
|
35
37
|
T = TypeVar("T")
|
36
38
|
ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]]
|
37
39
|
|
@@ -1507,10 +1509,10 @@ class BlobOperations: # pylint: disable=too-many-public-methods
|
|
1507
1509
|
|
1508
1510
|
def __init__(self, *args, **kwargs):
|
1509
1511
|
input_args = list(args)
|
1510
|
-
self._client = input_args.pop(0) if input_args else kwargs.pop("client")
|
1511
|
-
self._config = input_args.pop(0) if input_args else kwargs.pop("config")
|
1512
|
-
self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer")
|
1513
|
-
self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer")
|
1512
|
+
self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client")
|
1513
|
+
self._config: AzureBlobStorageConfiguration = input_args.pop(0) if input_args else kwargs.pop("config")
|
1514
|
+
self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer")
|
1515
|
+
self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer")
|
1514
1516
|
|
1515
1517
|
@distributed_trace
|
1516
1518
|
def download(
|
@@ -1574,7 +1576,7 @@ class BlobOperations: # pylint: disable=too-many-public-methods
|
|
1574
1576
|
:rtype: Iterator[bytes]
|
1575
1577
|
:raises ~azure.core.exceptions.HttpResponseError:
|
1576
1578
|
"""
|
1577
|
-
error_map: MutableMapping
|
1579
|
+
error_map: MutableMapping = {
|
1578
1580
|
401: ClientAuthenticationError,
|
1579
1581
|
404: ResourceNotFoundError,
|
1580
1582
|
409: ResourceExistsError,
|
@@ -1877,7 +1879,7 @@ class BlobOperations: # pylint: disable=too-many-public-methods
|
|
1877
1879
|
:rtype: None
|
1878
1880
|
:raises ~azure.core.exceptions.HttpResponseError:
|
1879
1881
|
"""
|
1880
|
-
error_map: MutableMapping
|
1882
|
+
error_map: MutableMapping = {
|
1881
1883
|
401: ClientAuthenticationError,
|
1882
1884
|
404: ResourceNotFoundError,
|
1883
1885
|
409: ResourceExistsError,
|
@@ -2098,7 +2100,7 @@ class BlobOperations: # pylint: disable=too-many-public-methods
|
|
2098
2100
|
:rtype: None
|
2099
2101
|
:raises ~azure.core.exceptions.HttpResponseError:
|
2100
2102
|
"""
|
2101
|
-
error_map: MutableMapping
|
2103
|
+
error_map: MutableMapping = {
|
2102
2104
|
401: ClientAuthenticationError,
|
2103
2105
|
404: ResourceNotFoundError,
|
2104
2106
|
409: ResourceExistsError,
|
@@ -2189,7 +2191,7 @@ class BlobOperations: # pylint: disable=too-many-public-methods
|
|
2189
2191
|
:rtype: None
|
2190
2192
|
:raises ~azure.core.exceptions.HttpResponseError:
|
2191
2193
|
"""
|
2192
|
-
error_map: MutableMapping
|
2194
|
+
error_map: MutableMapping = {
|
2193
2195
|
401: ClientAuthenticationError,
|
2194
2196
|
404: ResourceNotFoundError,
|
2195
2197
|
409: ResourceExistsError,
|
@@ -2267,7 +2269,7 @@ class BlobOperations: # pylint: disable=too-many-public-methods
|
|
2267
2269
|
:rtype: None
|
2268
2270
|
:raises ~azure.core.exceptions.HttpResponseError:
|
2269
2271
|
"""
|
2270
|
-
error_map: MutableMapping
|
2272
|
+
error_map: MutableMapping = {
|
2271
2273
|
401: ClientAuthenticationError,
|
2272
2274
|
404: ResourceNotFoundError,
|
2273
2275
|
409: ResourceExistsError,
|
@@ -2351,7 +2353,7 @@ class BlobOperations: # pylint: disable=too-many-public-methods
|
|
2351
2353
|
:rtype: None
|
2352
2354
|
:raises ~azure.core.exceptions.HttpResponseError:
|
2353
2355
|
"""
|
2354
|
-
error_map: MutableMapping
|
2356
|
+
error_map: MutableMapping = {
|
2355
2357
|
401: ClientAuthenticationError,
|
2356
2358
|
404: ResourceNotFoundError,
|
2357
2359
|
409: ResourceExistsError,
|
@@ -2490,7 +2492,7 @@ class BlobOperations: # pylint: disable=too-many-public-methods
|
|
2490
2492
|
:rtype: None
|
2491
2493
|
:raises ~azure.core.exceptions.HttpResponseError:
|
2492
2494
|
"""
|
2493
|
-
error_map: MutableMapping
|
2495
|
+
error_map: MutableMapping = {
|
2494
2496
|
401: ClientAuthenticationError,
|
2495
2497
|
404: ResourceNotFoundError,
|
2496
2498
|
409: ResourceExistsError,
|
@@ -2588,7 +2590,7 @@ class BlobOperations: # pylint: disable=too-many-public-methods
|
|
2588
2590
|
:rtype: None
|
2589
2591
|
:raises ~azure.core.exceptions.HttpResponseError:
|
2590
2592
|
"""
|
2591
|
-
error_map: MutableMapping
|
2593
|
+
error_map: MutableMapping = {
|
2592
2594
|
401: ClientAuthenticationError,
|
2593
2595
|
404: ResourceNotFoundError,
|
2594
2596
|
409: ResourceExistsError,
|
@@ -2676,7 +2678,7 @@ class BlobOperations: # pylint: disable=too-many-public-methods
|
|
2676
2678
|
:rtype: None
|
2677
2679
|
:raises ~azure.core.exceptions.HttpResponseError:
|
2678
2680
|
"""
|
2679
|
-
error_map: MutableMapping
|
2681
|
+
error_map: MutableMapping = {
|
2680
2682
|
401: ClientAuthenticationError,
|
2681
2683
|
404: ResourceNotFoundError,
|
2682
2684
|
409: ResourceExistsError,
|
@@ -2773,7 +2775,7 @@ class BlobOperations: # pylint: disable=too-many-public-methods
|
|
2773
2775
|
:rtype: None
|
2774
2776
|
:raises ~azure.core.exceptions.HttpResponseError:
|
2775
2777
|
"""
|
2776
|
-
error_map: MutableMapping
|
2778
|
+
error_map: MutableMapping = {
|
2777
2779
|
401: ClientAuthenticationError,
|
2778
2780
|
404: ResourceNotFoundError,
|
2779
2781
|
409: ResourceExistsError,
|
@@ -2906,7 +2908,7 @@ class BlobOperations: # pylint: disable=too-many-public-methods
|
|
2906
2908
|
:rtype: None
|
2907
2909
|
:raises ~azure.core.exceptions.HttpResponseError:
|
2908
2910
|
"""
|
2909
|
-
error_map: MutableMapping
|
2911
|
+
error_map: MutableMapping = {
|
2910
2912
|
401: ClientAuthenticationError,
|
2911
2913
|
404: ResourceNotFoundError,
|
2912
2914
|
409: ResourceExistsError,
|
@@ -3008,7 +3010,7 @@ class BlobOperations: # pylint: disable=too-many-public-methods
|
|
3008
3010
|
:rtype: None
|
3009
3011
|
:raises ~azure.core.exceptions.HttpResponseError:
|
3010
3012
|
"""
|
3011
|
-
error_map: MutableMapping
|
3013
|
+
error_map: MutableMapping = {
|
3012
3014
|
401: ClientAuthenticationError,
|
3013
3015
|
404: ResourceNotFoundError,
|
3014
3016
|
409: ResourceExistsError,
|
@@ -3108,7 +3110,7 @@ class BlobOperations: # pylint: disable=too-many-public-methods
|
|
3108
3110
|
:rtype: None
|
3109
3111
|
:raises ~azure.core.exceptions.HttpResponseError:
|
3110
3112
|
"""
|
3111
|
-
error_map: MutableMapping
|
3113
|
+
error_map: MutableMapping = {
|
3112
3114
|
401: ClientAuthenticationError,
|
3113
3115
|
404: ResourceNotFoundError,
|
3114
3116
|
409: ResourceExistsError,
|
@@ -3214,7 +3216,7 @@ class BlobOperations: # pylint: disable=too-many-public-methods
|
|
3214
3216
|
:rtype: None
|
3215
3217
|
:raises ~azure.core.exceptions.HttpResponseError:
|
3216
3218
|
"""
|
3217
|
-
error_map: MutableMapping
|
3219
|
+
error_map: MutableMapping = {
|
3218
3220
|
401: ClientAuthenticationError,
|
3219
3221
|
404: ResourceNotFoundError,
|
3220
3222
|
409: ResourceExistsError,
|
@@ -3322,7 +3324,7 @@ class BlobOperations: # pylint: disable=too-many-public-methods
|
|
3322
3324
|
:rtype: None
|
3323
3325
|
:raises ~azure.core.exceptions.HttpResponseError:
|
3324
3326
|
"""
|
3325
|
-
error_map: MutableMapping
|
3327
|
+
error_map: MutableMapping = {
|
3326
3328
|
401: ClientAuthenticationError,
|
3327
3329
|
404: ResourceNotFoundError,
|
3328
3330
|
409: ResourceExistsError,
|
@@ -3437,7 +3439,7 @@ class BlobOperations: # pylint: disable=too-many-public-methods
|
|
3437
3439
|
:rtype: None
|
3438
3440
|
:raises ~azure.core.exceptions.HttpResponseError:
|
3439
3441
|
"""
|
3440
|
-
error_map: MutableMapping
|
3442
|
+
error_map: MutableMapping = {
|
3441
3443
|
401: ClientAuthenticationError,
|
3442
3444
|
404: ResourceNotFoundError,
|
3443
3445
|
409: ResourceExistsError,
|
@@ -3604,7 +3606,7 @@ class BlobOperations: # pylint: disable=too-many-public-methods
|
|
3604
3606
|
:rtype: None
|
3605
3607
|
:raises ~azure.core.exceptions.HttpResponseError:
|
3606
3608
|
"""
|
3607
|
-
error_map: MutableMapping
|
3609
|
+
error_map: MutableMapping = {
|
3608
3610
|
401: ClientAuthenticationError,
|
3609
3611
|
404: ResourceNotFoundError,
|
3610
3612
|
409: ResourceExistsError,
|
@@ -3786,7 +3788,7 @@ class BlobOperations: # pylint: disable=too-many-public-methods
|
|
3786
3788
|
:rtype: None
|
3787
3789
|
:raises ~azure.core.exceptions.HttpResponseError:
|
3788
3790
|
"""
|
3789
|
-
error_map: MutableMapping
|
3791
|
+
error_map: MutableMapping = {
|
3790
3792
|
401: ClientAuthenticationError,
|
3791
3793
|
404: ResourceNotFoundError,
|
3792
3794
|
409: ResourceExistsError,
|
@@ -3927,7 +3929,7 @@ class BlobOperations: # pylint: disable=too-many-public-methods
|
|
3927
3929
|
:rtype: None
|
3928
3930
|
:raises ~azure.core.exceptions.HttpResponseError:
|
3929
3931
|
"""
|
3930
|
-
error_map: MutableMapping
|
3932
|
+
error_map: MutableMapping = {
|
3931
3933
|
401: ClientAuthenticationError,
|
3932
3934
|
404: ResourceNotFoundError,
|
3933
3935
|
409: ResourceExistsError,
|
@@ -4039,7 +4041,7 @@ class BlobOperations: # pylint: disable=too-many-public-methods
|
|
4039
4041
|
:rtype: None
|
4040
4042
|
:raises ~azure.core.exceptions.HttpResponseError:
|
4041
4043
|
"""
|
4042
|
-
error_map: MutableMapping
|
4044
|
+
error_map: MutableMapping = {
|
4043
4045
|
401: ClientAuthenticationError,
|
4044
4046
|
404: ResourceNotFoundError,
|
4045
4047
|
409: ResourceExistsError,
|
@@ -4119,7 +4121,7 @@ class BlobOperations: # pylint: disable=too-many-public-methods
|
|
4119
4121
|
:rtype: None
|
4120
4122
|
:raises ~azure.core.exceptions.HttpResponseError:
|
4121
4123
|
"""
|
4122
|
-
error_map: MutableMapping
|
4124
|
+
error_map: MutableMapping = {
|
4123
4125
|
401: ClientAuthenticationError,
|
4124
4126
|
404: ResourceNotFoundError,
|
4125
4127
|
409: ResourceExistsError,
|
@@ -4215,7 +4217,7 @@ class BlobOperations: # pylint: disable=too-many-public-methods
|
|
4215
4217
|
:rtype: Iterator[bytes]
|
4216
4218
|
:raises ~azure.core.exceptions.HttpResponseError:
|
4217
4219
|
"""
|
4218
|
-
error_map: MutableMapping
|
4220
|
+
error_map: MutableMapping = {
|
4219
4221
|
401: ClientAuthenticationError,
|
4220
4222
|
404: ResourceNotFoundError,
|
4221
4223
|
409: ResourceExistsError,
|
@@ -4464,7 +4466,7 @@ class BlobOperations: # pylint: disable=too-many-public-methods
|
|
4464
4466
|
:rtype: ~azure.storage.blob.models.BlobTags
|
4465
4467
|
:raises ~azure.core.exceptions.HttpResponseError:
|
4466
4468
|
"""
|
4467
|
-
error_map: MutableMapping
|
4469
|
+
error_map: MutableMapping = {
|
4468
4470
|
401: ClientAuthenticationError,
|
4469
4471
|
404: ResourceNotFoundError,
|
4470
4472
|
409: ResourceExistsError,
|
@@ -4572,7 +4574,7 @@ class BlobOperations: # pylint: disable=too-many-public-methods
|
|
4572
4574
|
:rtype: None
|
4573
4575
|
:raises ~azure.core.exceptions.HttpResponseError:
|
4574
4576
|
"""
|
4575
|
-
error_map: MutableMapping
|
4577
|
+
error_map: MutableMapping = {
|
4576
4578
|
401: ClientAuthenticationError,
|
4577
4579
|
404: ResourceNotFoundError,
|
4578
4580
|
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, Callable, Dict, IO, Literal, Optional,
|
11
|
+
from typing import Any, Callable, Dict, IO, Literal, Optional, TypeVar, Union
|
12
12
|
|
13
|
+
from azure.core import PipelineClient
|
13
14
|
from azure.core.exceptions import (
|
14
15
|
ClientAuthenticationError,
|
15
16
|
HttpResponseError,
|
@@ -24,12 +25,13 @@ from azure.core.tracing.decorator import distributed_trace
|
|
24
25
|
from azure.core.utils import case_insensitive_dict
|
25
26
|
|
26
27
|
from .. import models as _models
|
27
|
-
from ..
|
28
|
+
from .._configuration import AzureBlobStorageConfiguration
|
29
|
+
from .._serialization import Deserializer, Serializer
|
28
30
|
|
29
31
|
if sys.version_info >= (3, 9):
|
30
32
|
from collections.abc import MutableMapping
|
31
33
|
else:
|
32
|
-
from typing import MutableMapping # type: ignore
|
34
|
+
from typing import MutableMapping # type: ignore
|
33
35
|
T = TypeVar("T")
|
34
36
|
ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]]
|
35
37
|
|
@@ -679,10 +681,10 @@ class BlockBlobOperations:
|
|
679
681
|
|
680
682
|
def __init__(self, *args, **kwargs):
|
681
683
|
input_args = list(args)
|
682
|
-
self._client = input_args.pop(0) if input_args else kwargs.pop("client")
|
683
|
-
self._config = input_args.pop(0) if input_args else kwargs.pop("config")
|
684
|
-
self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer")
|
685
|
-
self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer")
|
684
|
+
self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client")
|
685
|
+
self._config: AzureBlobStorageConfiguration = input_args.pop(0) if input_args else kwargs.pop("config")
|
686
|
+
self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer")
|
687
|
+
self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer")
|
686
688
|
|
687
689
|
@distributed_trace
|
688
690
|
def upload( # pylint: disable=inconsistent-return-statements
|
@@ -778,7 +780,7 @@ class BlockBlobOperations:
|
|
778
780
|
:rtype: None
|
779
781
|
:raises ~azure.core.exceptions.HttpResponseError:
|
780
782
|
"""
|
781
|
-
error_map: MutableMapping
|
783
|
+
error_map: MutableMapping = {
|
782
784
|
401: ClientAuthenticationError,
|
783
785
|
404: ResourceNotFoundError,
|
784
786
|
409: ResourceExistsError,
|
@@ -1005,7 +1007,7 @@ class BlockBlobOperations:
|
|
1005
1007
|
:rtype: None
|
1006
1008
|
:raises ~azure.core.exceptions.HttpResponseError:
|
1007
1009
|
"""
|
1008
|
-
error_map: MutableMapping
|
1010
|
+
error_map: MutableMapping = {
|
1009
1011
|
401: ClientAuthenticationError,
|
1010
1012
|
404: ResourceNotFoundError,
|
1011
1013
|
409: ResourceExistsError,
|
@@ -1206,7 +1208,7 @@ class BlockBlobOperations:
|
|
1206
1208
|
:rtype: None
|
1207
1209
|
:raises ~azure.core.exceptions.HttpResponseError:
|
1208
1210
|
"""
|
1209
|
-
error_map: MutableMapping
|
1211
|
+
error_map: MutableMapping = {
|
1210
1212
|
401: ClientAuthenticationError,
|
1211
1213
|
404: ResourceNotFoundError,
|
1212
1214
|
409: ResourceExistsError,
|
@@ -1362,7 +1364,7 @@ class BlockBlobOperations:
|
|
1362
1364
|
:rtype: None
|
1363
1365
|
:raises ~azure.core.exceptions.HttpResponseError:
|
1364
1366
|
"""
|
1365
|
-
error_map: MutableMapping
|
1367
|
+
error_map: MutableMapping = {
|
1366
1368
|
401: ClientAuthenticationError,
|
1367
1369
|
404: ResourceNotFoundError,
|
1368
1370
|
409: ResourceExistsError,
|
@@ -1546,7 +1548,7 @@ class BlockBlobOperations:
|
|
1546
1548
|
:rtype: None
|
1547
1549
|
:raises ~azure.core.exceptions.HttpResponseError:
|
1548
1550
|
"""
|
1549
|
-
error_map: MutableMapping
|
1551
|
+
error_map: MutableMapping = {
|
1550
1552
|
401: ClientAuthenticationError,
|
1551
1553
|
404: ResourceNotFoundError,
|
1552
1554
|
409: ResourceExistsError,
|
@@ -1718,7 +1720,7 @@ class BlockBlobOperations:
|
|
1718
1720
|
:rtype: ~azure.storage.blob.models.BlockList
|
1719
1721
|
:raises ~azure.core.exceptions.HttpResponseError:
|
1720
1722
|
"""
|
1721
|
-
error_map: MutableMapping
|
1723
|
+
error_map: MutableMapping = {
|
1722
1724
|
401: ClientAuthenticationError,
|
1723
1725
|
404: ResourceNotFoundError,
|
1724
1726
|
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, Callable, Dict, IO, Iterator, List, Literal, Optional,
|
11
|
+
from typing import Any, Callable, Dict, IO, Iterator, List, Literal, Optional, TypeVar, Union
|
12
12
|
|
13
|
+
from azure.core import PipelineClient
|
13
14
|
from azure.core.exceptions import (
|
14
15
|
ClientAuthenticationError,
|
15
16
|
HttpResponseError,
|
@@ -26,12 +27,13 @@ from azure.core.tracing.decorator import distributed_trace
|
|
26
27
|
from azure.core.utils import case_insensitive_dict
|
27
28
|
|
28
29
|
from .. import models as _models
|
29
|
-
from ..
|
30
|
+
from .._configuration import AzureBlobStorageConfiguration
|
31
|
+
from .._serialization import Deserializer, Serializer
|
30
32
|
|
31
33
|
if sys.version_info >= (3, 9):
|
32
34
|
from collections.abc import MutableMapping
|
33
35
|
else:
|
34
|
-
from typing import MutableMapping # type: ignore
|
36
|
+
from typing import MutableMapping # type: ignore
|
35
37
|
T = TypeVar("T")
|
36
38
|
ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]]
|
37
39
|
|
@@ -899,10 +901,10 @@ class ContainerOperations:
|
|
899
901
|
|
900
902
|
def __init__(self, *args, **kwargs):
|
901
903
|
input_args = list(args)
|
902
|
-
self._client = input_args.pop(0) if input_args else kwargs.pop("client")
|
903
|
-
self._config = input_args.pop(0) if input_args else kwargs.pop("config")
|
904
|
-
self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer")
|
905
|
-
self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer")
|
904
|
+
self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client")
|
905
|
+
self._config: AzureBlobStorageConfiguration = input_args.pop(0) if input_args else kwargs.pop("config")
|
906
|
+
self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer")
|
907
|
+
self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer")
|
906
908
|
|
907
909
|
@distributed_trace
|
908
910
|
def create( # pylint: disable=inconsistent-return-statements
|
@@ -944,7 +946,7 @@ class ContainerOperations:
|
|
944
946
|
:rtype: None
|
945
947
|
:raises ~azure.core.exceptions.HttpResponseError:
|
946
948
|
"""
|
947
|
-
error_map: MutableMapping
|
949
|
+
error_map: MutableMapping = {
|
948
950
|
401: ClientAuthenticationError,
|
949
951
|
404: ResourceNotFoundError,
|
950
952
|
409: ResourceExistsError,
|
@@ -1031,7 +1033,7 @@ class ContainerOperations:
|
|
1031
1033
|
:rtype: None
|
1032
1034
|
:raises ~azure.core.exceptions.HttpResponseError:
|
1033
1035
|
"""
|
1034
|
-
error_map: MutableMapping
|
1036
|
+
error_map: MutableMapping = {
|
1035
1037
|
401: ClientAuthenticationError,
|
1036
1038
|
404: ResourceNotFoundError,
|
1037
1039
|
409: ResourceExistsError,
|
@@ -1136,7 +1138,7 @@ class ContainerOperations:
|
|
1136
1138
|
:rtype: None
|
1137
1139
|
:raises ~azure.core.exceptions.HttpResponseError:
|
1138
1140
|
"""
|
1139
|
-
error_map: MutableMapping
|
1141
|
+
error_map: MutableMapping = {
|
1140
1142
|
401: ClientAuthenticationError,
|
1141
1143
|
404: ResourceNotFoundError,
|
1142
1144
|
409: ResourceExistsError,
|
@@ -1234,7 +1236,7 @@ class ContainerOperations:
|
|
1234
1236
|
:rtype: None
|
1235
1237
|
:raises ~azure.core.exceptions.HttpResponseError:
|
1236
1238
|
"""
|
1237
|
-
error_map: MutableMapping
|
1239
|
+
error_map: MutableMapping = {
|
1238
1240
|
401: ClientAuthenticationError,
|
1239
1241
|
404: ResourceNotFoundError,
|
1240
1242
|
409: ResourceExistsError,
|
@@ -1323,7 +1325,7 @@ class ContainerOperations:
|
|
1323
1325
|
:rtype: list[~azure.storage.blob.models.SignedIdentifier]
|
1324
1326
|
:raises ~azure.core.exceptions.HttpResponseError:
|
1325
1327
|
"""
|
1326
|
-
error_map: MutableMapping
|
1328
|
+
error_map: MutableMapping = {
|
1327
1329
|
401: ClientAuthenticationError,
|
1328
1330
|
404: ResourceNotFoundError,
|
1329
1331
|
409: ResourceExistsError,
|
@@ -1424,7 +1426,7 @@ class ContainerOperations:
|
|
1424
1426
|
:rtype: None
|
1425
1427
|
:raises ~azure.core.exceptions.HttpResponseError:
|
1426
1428
|
"""
|
1427
|
-
error_map: MutableMapping
|
1429
|
+
error_map: MutableMapping = {
|
1428
1430
|
401: ClientAuthenticationError,
|
1429
1431
|
404: ResourceNotFoundError,
|
1430
1432
|
409: ResourceExistsError,
|
@@ -1530,7 +1532,7 @@ class ContainerOperations:
|
|
1530
1532
|
:rtype: None
|
1531
1533
|
:raises ~azure.core.exceptions.HttpResponseError:
|
1532
1534
|
"""
|
1533
|
-
error_map: MutableMapping
|
1535
|
+
error_map: MutableMapping = {
|
1534
1536
|
401: ClientAuthenticationError,
|
1535
1537
|
404: ResourceNotFoundError,
|
1536
1538
|
409: ResourceExistsError,
|
@@ -1613,7 +1615,7 @@ class ContainerOperations:
|
|
1613
1615
|
:rtype: None
|
1614
1616
|
:raises ~azure.core.exceptions.HttpResponseError:
|
1615
1617
|
"""
|
1616
|
-
error_map: MutableMapping
|
1618
|
+
error_map: MutableMapping = {
|
1617
1619
|
401: ClientAuthenticationError,
|
1618
1620
|
404: ResourceNotFoundError,
|
1619
1621
|
409: ResourceExistsError,
|
@@ -1694,7 +1696,7 @@ class ContainerOperations:
|
|
1694
1696
|
:rtype: Iterator[bytes]
|
1695
1697
|
:raises ~azure.core.exceptions.HttpResponseError:
|
1696
1698
|
"""
|
1697
|
-
error_map: MutableMapping
|
1699
|
+
error_map: MutableMapping = {
|
1698
1700
|
401: ClientAuthenticationError,
|
1699
1701
|
404: ResourceNotFoundError,
|
1700
1702
|
409: ResourceExistsError,
|
@@ -1806,7 +1808,7 @@ class ContainerOperations:
|
|
1806
1808
|
:rtype: ~azure.storage.blob.models.FilterBlobSegment
|
1807
1809
|
:raises ~azure.core.exceptions.HttpResponseError:
|
1808
1810
|
"""
|
1809
|
-
error_map: MutableMapping
|
1811
|
+
error_map: MutableMapping = {
|
1810
1812
|
401: ClientAuthenticationError,
|
1811
1813
|
404: ResourceNotFoundError,
|
1812
1814
|
409: ResourceExistsError,
|
@@ -1901,7 +1903,7 @@ class ContainerOperations:
|
|
1901
1903
|
:rtype: None
|
1902
1904
|
:raises ~azure.core.exceptions.HttpResponseError:
|
1903
1905
|
"""
|
1904
|
-
error_map: MutableMapping
|
1906
|
+
error_map: MutableMapping = {
|
1905
1907
|
401: ClientAuthenticationError,
|
1906
1908
|
404: ResourceNotFoundError,
|
1907
1909
|
409: ResourceExistsError,
|
@@ -1996,7 +1998,7 @@ class ContainerOperations:
|
|
1996
1998
|
:rtype: None
|
1997
1999
|
:raises ~azure.core.exceptions.HttpResponseError:
|
1998
2000
|
"""
|
1999
|
-
error_map: MutableMapping
|
2001
|
+
error_map: MutableMapping = {
|
2000
2002
|
401: ClientAuthenticationError,
|
2001
2003
|
404: ResourceNotFoundError,
|
2002
2004
|
409: ResourceExistsError,
|
@@ -2089,7 +2091,7 @@ class ContainerOperations:
|
|
2089
2091
|
:rtype: None
|
2090
2092
|
:raises ~azure.core.exceptions.HttpResponseError:
|
2091
2093
|
"""
|
2092
|
-
error_map: MutableMapping
|
2094
|
+
error_map: MutableMapping = {
|
2093
2095
|
401: ClientAuthenticationError,
|
2094
2096
|
404: ResourceNotFoundError,
|
2095
2097
|
409: ResourceExistsError,
|
@@ -2189,7 +2191,7 @@ class ContainerOperations:
|
|
2189
2191
|
:rtype: None
|
2190
2192
|
:raises ~azure.core.exceptions.HttpResponseError:
|
2191
2193
|
"""
|
2192
|
-
error_map: MutableMapping
|
2194
|
+
error_map: MutableMapping = {
|
2193
2195
|
401: ClientAuthenticationError,
|
2194
2196
|
404: ResourceNotFoundError,
|
2195
2197
|
409: ResourceExistsError,
|
@@ -2288,7 +2290,7 @@ class ContainerOperations:
|
|
2288
2290
|
:rtype: None
|
2289
2291
|
:raises ~azure.core.exceptions.HttpResponseError:
|
2290
2292
|
"""
|
2291
|
-
error_map: MutableMapping
|
2293
|
+
error_map: MutableMapping = {
|
2292
2294
|
401: ClientAuthenticationError,
|
2293
2295
|
404: ResourceNotFoundError,
|
2294
2296
|
409: ResourceExistsError,
|
@@ -2400,7 +2402,7 @@ class ContainerOperations:
|
|
2400
2402
|
:rtype: ~azure.storage.blob.models.ListBlobsFlatSegmentResponse
|
2401
2403
|
:raises ~azure.core.exceptions.HttpResponseError:
|
2402
2404
|
"""
|
2403
|
-
error_map: MutableMapping
|
2405
|
+
error_map: MutableMapping = {
|
2404
2406
|
401: ClientAuthenticationError,
|
2405
2407
|
404: ResourceNotFoundError,
|
2406
2408
|
409: ResourceExistsError,
|
@@ -2512,7 +2514,7 @@ class ContainerOperations:
|
|
2512
2514
|
:rtype: ~azure.storage.blob.models.ListBlobsHierarchySegmentResponse
|
2513
2515
|
:raises ~azure.core.exceptions.HttpResponseError:
|
2514
2516
|
"""
|
2515
|
-
error_map: MutableMapping
|
2517
|
+
error_map: MutableMapping = {
|
2516
2518
|
401: ClientAuthenticationError,
|
2517
2519
|
404: ResourceNotFoundError,
|
2518
2520
|
409: ResourceExistsError,
|
@@ -2592,7 +2594,7 @@ class ContainerOperations:
|
|
2592
2594
|
:rtype: None
|
2593
2595
|
:raises ~azure.core.exceptions.HttpResponseError:
|
2594
2596
|
"""
|
2595
|
-
error_map: MutableMapping
|
2597
|
+
error_map: MutableMapping = {
|
2596
2598
|
401: ClientAuthenticationError,
|
2597
2599
|
404: ResourceNotFoundError,
|
2598
2600
|
409: ResourceExistsError,
|