azure-storage-blob 12.24.1__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/_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.0b1.dist-info}/METADATA +1 -1
- {azure_storage_blob-12.24.1.dist-info → azure_storage_blob-12.25.0b1.dist-info}/RECORD +33 -33
- {azure_storage_blob-12.24.1.dist-info → azure_storage_blob-12.25.0b1.dist-info}/LICENSE +0 -0
- {azure_storage_blob-12.24.1.dist-info → azure_storage_blob-12.25.0b1.dist-info}/WHEEL +0 -0
- {azure_storage_blob-12.24.1.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, IO, Literal, Optional,
|
11
|
+
from typing import Any, Callable, Dict, IO, 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,
|
@@ -24,6 +25,7 @@ from azure.core.tracing.decorator_async import distributed_trace_async
|
|
24
25
|
from azure.core.utils import case_insensitive_dict
|
25
26
|
|
26
27
|
from ... import models as _models
|
28
|
+
from ..._serialization import Deserializer, Serializer
|
27
29
|
from ...operations._page_blob_operations import (
|
28
30
|
build_clear_pages_request,
|
29
31
|
build_copy_incremental_request,
|
@@ -35,11 +37,12 @@ from ...operations._page_blob_operations import (
|
|
35
37
|
build_upload_pages_from_url_request,
|
36
38
|
build_upload_pages_request,
|
37
39
|
)
|
40
|
+
from .._configuration import AzureBlobStorageConfiguration
|
38
41
|
|
39
42
|
if sys.version_info >= (3, 9):
|
40
43
|
from collections.abc import MutableMapping
|
41
44
|
else:
|
42
|
-
from typing import MutableMapping # type: ignore
|
45
|
+
from typing import MutableMapping # type: ignore
|
43
46
|
T = TypeVar("T")
|
44
47
|
ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]]
|
45
48
|
|
@@ -58,13 +61,13 @@ class PageBlobOperations:
|
|
58
61
|
|
59
62
|
def __init__(self, *args, **kwargs) -> None:
|
60
63
|
input_args = list(args)
|
61
|
-
self._client = input_args.pop(0) if input_args else kwargs.pop("client")
|
62
|
-
self._config = input_args.pop(0) if input_args else kwargs.pop("config")
|
63
|
-
self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer")
|
64
|
-
self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer")
|
64
|
+
self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client")
|
65
|
+
self._config: AzureBlobStorageConfiguration = input_args.pop(0) if input_args else kwargs.pop("config")
|
66
|
+
self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer")
|
67
|
+
self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer")
|
65
68
|
|
66
69
|
@distributed_trace_async
|
67
|
-
async def create(
|
70
|
+
async def create(
|
68
71
|
self,
|
69
72
|
content_length: int,
|
70
73
|
blob_content_length: int,
|
@@ -94,7 +97,7 @@ class PageBlobOperations:
|
|
94
97
|
:type blob_content_length: int
|
95
98
|
:param timeout: The timeout parameter is expressed in seconds. For more information, see
|
96
99
|
:code:`<a
|
97
|
-
href="https://
|
100
|
+
href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
|
98
101
|
Timeouts for Blob Service Operations.</a>`. Default value is None.
|
99
102
|
:type timeout: int
|
100
103
|
:param tier: Optional. Indicates the tier to be set on the page blob. Known values are: "P4",
|
@@ -141,7 +144,7 @@ class PageBlobOperations:
|
|
141
144
|
:rtype: None
|
142
145
|
:raises ~azure.core.exceptions.HttpResponseError:
|
143
146
|
"""
|
144
|
-
error_map: MutableMapping
|
147
|
+
error_map: MutableMapping = {
|
145
148
|
401: ClientAuthenticationError,
|
146
149
|
404: ResourceNotFoundError,
|
147
150
|
409: ResourceExistsError,
|
@@ -266,7 +269,7 @@ class PageBlobOperations:
|
|
266
269
|
return cls(pipeline_response, None, response_headers) # type: ignore
|
267
270
|
|
268
271
|
@distributed_trace_async
|
269
|
-
async def upload_pages(
|
272
|
+
async def upload_pages(
|
270
273
|
self,
|
271
274
|
content_length: int,
|
272
275
|
body: IO[bytes],
|
@@ -299,7 +302,7 @@ class PageBlobOperations:
|
|
299
302
|
:type transactional_content_crc64: bytes
|
300
303
|
:param timeout: The timeout parameter is expressed in seconds. For more information, see
|
301
304
|
:code:`<a
|
302
|
-
href="https://
|
305
|
+
href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
|
303
306
|
Timeouts for Blob Service Operations.</a>`. Default value is None.
|
304
307
|
:type timeout: int
|
305
308
|
:param range: Return only the bytes of the blob in the specified range. Default value is None.
|
@@ -330,7 +333,7 @@ class PageBlobOperations:
|
|
330
333
|
:rtype: None
|
331
334
|
:raises ~azure.core.exceptions.HttpResponseError:
|
332
335
|
"""
|
333
|
-
error_map: MutableMapping
|
336
|
+
error_map: MutableMapping = {
|
334
337
|
401: ClientAuthenticationError,
|
335
338
|
404: ResourceNotFoundError,
|
336
339
|
409: ResourceExistsError,
|
@@ -459,7 +462,7 @@ class PageBlobOperations:
|
|
459
462
|
return cls(pipeline_response, None, response_headers) # type: ignore
|
460
463
|
|
461
464
|
@distributed_trace_async
|
462
|
-
async def clear_pages(
|
465
|
+
async def clear_pages(
|
463
466
|
self,
|
464
467
|
content_length: int,
|
465
468
|
timeout: Optional[int] = None,
|
@@ -479,7 +482,7 @@ class PageBlobOperations:
|
|
479
482
|
:type content_length: int
|
480
483
|
:param timeout: The timeout parameter is expressed in seconds. For more information, see
|
481
484
|
:code:`<a
|
482
|
-
href="https://
|
485
|
+
href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
|
483
486
|
Timeouts for Blob Service Operations.</a>`. Default value is None.
|
484
487
|
:type timeout: int
|
485
488
|
:param range: Return only the bytes of the blob in the specified range. Default value is None.
|
@@ -503,7 +506,7 @@ class PageBlobOperations:
|
|
503
506
|
:rtype: None
|
504
507
|
:raises ~azure.core.exceptions.HttpResponseError:
|
505
508
|
"""
|
506
|
-
error_map: MutableMapping
|
509
|
+
error_map: MutableMapping = {
|
507
510
|
401: ClientAuthenticationError,
|
508
511
|
404: ResourceNotFoundError,
|
509
512
|
409: ResourceExistsError,
|
@@ -612,7 +615,7 @@ class PageBlobOperations:
|
|
612
615
|
return cls(pipeline_response, None, response_headers) # type: ignore
|
613
616
|
|
614
617
|
@distributed_trace_async
|
615
|
-
async def upload_pages_from_url(
|
618
|
+
async def upload_pages_from_url(
|
616
619
|
self,
|
617
620
|
source_url: str,
|
618
621
|
source_range: str,
|
@@ -653,7 +656,7 @@ class PageBlobOperations:
|
|
653
656
|
:type source_contentcrc64: bytes
|
654
657
|
:param timeout: The timeout parameter is expressed in seconds. For more information, see
|
655
658
|
:code:`<a
|
656
|
-
href="https://
|
659
|
+
href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
|
657
660
|
Timeouts for Blob Service Operations.</a>`. Default value is None.
|
658
661
|
:type timeout: int
|
659
662
|
:param request_id_parameter: Provides a client-generated, opaque value with a 1 KB character
|
@@ -681,7 +684,7 @@ class PageBlobOperations:
|
|
681
684
|
:rtype: None
|
682
685
|
:raises ~azure.core.exceptions.HttpResponseError:
|
683
686
|
"""
|
684
|
-
error_map: MutableMapping
|
687
|
+
error_map: MutableMapping = {
|
685
688
|
401: ClientAuthenticationError,
|
686
689
|
404: ResourceNotFoundError,
|
687
690
|
409: ResourceExistsError,
|
@@ -833,12 +836,12 @@ class PageBlobOperations:
|
|
833
836
|
:param snapshot: The snapshot parameter is an opaque DateTime value that, when present,
|
834
837
|
specifies the blob snapshot to retrieve. For more information on working with blob snapshots,
|
835
838
|
see :code:`<a
|
836
|
-
href="https://
|
839
|
+
href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/creating-a-snapshot-of-a-blob">Creating
|
837
840
|
a Snapshot of a Blob.</a>`. Default value is None.
|
838
841
|
:type snapshot: str
|
839
842
|
:param timeout: The timeout parameter is expressed in seconds. For more information, see
|
840
843
|
:code:`<a
|
841
|
-
href="https://
|
844
|
+
href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
|
842
845
|
Timeouts for Blob Service Operations.</a>`. Default value is None.
|
843
846
|
:type timeout: int
|
844
847
|
:param range: Return only the bytes of the blob in the specified range. Default value is None.
|
@@ -869,7 +872,7 @@ class PageBlobOperations:
|
|
869
872
|
:rtype: ~azure.storage.blob.models.PageList
|
870
873
|
:raises ~azure.core.exceptions.HttpResponseError:
|
871
874
|
"""
|
872
|
-
error_map: MutableMapping
|
875
|
+
error_map: MutableMapping = {
|
873
876
|
401: ClientAuthenticationError,
|
874
877
|
404: ResourceNotFoundError,
|
875
878
|
409: ResourceExistsError,
|
@@ -973,12 +976,12 @@ class PageBlobOperations:
|
|
973
976
|
:param snapshot: The snapshot parameter is an opaque DateTime value that, when present,
|
974
977
|
specifies the blob snapshot to retrieve. For more information on working with blob snapshots,
|
975
978
|
see :code:`<a
|
976
|
-
href="https://
|
979
|
+
href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/creating-a-snapshot-of-a-blob">Creating
|
977
980
|
a Snapshot of a Blob.</a>`. Default value is None.
|
978
981
|
:type snapshot: str
|
979
982
|
:param timeout: The timeout parameter is expressed in seconds. For more information, see
|
980
983
|
:code:`<a
|
981
|
-
href="https://
|
984
|
+
href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
|
982
985
|
Timeouts for Blob Service Operations.</a>`. Default value is None.
|
983
986
|
:type timeout: int
|
984
987
|
:param prevsnapshot: Optional in version 2015-07-08 and newer. The prevsnapshot parameter is a
|
@@ -1021,7 +1024,7 @@ class PageBlobOperations:
|
|
1021
1024
|
:rtype: ~azure.storage.blob.models.PageList
|
1022
1025
|
:raises ~azure.core.exceptions.HttpResponseError:
|
1023
1026
|
"""
|
1024
|
-
error_map: MutableMapping
|
1027
|
+
error_map: MutableMapping = {
|
1025
1028
|
401: ClientAuthenticationError,
|
1026
1029
|
404: ResourceNotFoundError,
|
1027
1030
|
409: ResourceExistsError,
|
@@ -1106,7 +1109,7 @@ class PageBlobOperations:
|
|
1106
1109
|
return deserialized # type: ignore
|
1107
1110
|
|
1108
1111
|
@distributed_trace_async
|
1109
|
-
async def resize(
|
1112
|
+
async def resize(
|
1110
1113
|
self,
|
1111
1114
|
blob_content_length: int,
|
1112
1115
|
timeout: Optional[int] = None,
|
@@ -1125,7 +1128,7 @@ class PageBlobOperations:
|
|
1125
1128
|
:type blob_content_length: int
|
1126
1129
|
:param timeout: The timeout parameter is expressed in seconds. For more information, see
|
1127
1130
|
:code:`<a
|
1128
|
-
href="https://
|
1131
|
+
href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
|
1129
1132
|
Timeouts for Blob Service Operations.</a>`. Default value is None.
|
1130
1133
|
:type timeout: int
|
1131
1134
|
:param request_id_parameter: Provides a client-generated, opaque value with a 1 KB character
|
@@ -1144,7 +1147,7 @@ class PageBlobOperations:
|
|
1144
1147
|
:rtype: None
|
1145
1148
|
:raises ~azure.core.exceptions.HttpResponseError:
|
1146
1149
|
"""
|
1147
|
-
error_map: MutableMapping
|
1150
|
+
error_map: MutableMapping = {
|
1148
1151
|
401: ClientAuthenticationError,
|
1149
1152
|
404: ResourceNotFoundError,
|
1150
1153
|
409: ResourceExistsError,
|
@@ -1234,7 +1237,7 @@ class PageBlobOperations:
|
|
1234
1237
|
return cls(pipeline_response, None, response_headers) # type: ignore
|
1235
1238
|
|
1236
1239
|
@distributed_trace_async
|
1237
|
-
async def update_sequence_number(
|
1240
|
+
async def update_sequence_number(
|
1238
1241
|
self,
|
1239
1242
|
sequence_number_action: Union[str, _models.SequenceNumberActionType],
|
1240
1243
|
timeout: Optional[int] = None,
|
@@ -1254,7 +1257,7 @@ class PageBlobOperations:
|
|
1254
1257
|
:type sequence_number_action: str or ~azure.storage.blob.models.SequenceNumberActionType
|
1255
1258
|
:param timeout: The timeout parameter is expressed in seconds. For more information, see
|
1256
1259
|
:code:`<a
|
1257
|
-
href="https://
|
1260
|
+
href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
|
1258
1261
|
Timeouts for Blob Service Operations.</a>`. Default value is None.
|
1259
1262
|
:type timeout: int
|
1260
1263
|
:param blob_sequence_number: Set for page blobs only. The sequence number is a user-controlled
|
@@ -1273,7 +1276,7 @@ class PageBlobOperations:
|
|
1273
1276
|
:rtype: None
|
1274
1277
|
:raises ~azure.core.exceptions.HttpResponseError:
|
1275
1278
|
"""
|
1276
|
-
error_map: MutableMapping
|
1279
|
+
error_map: MutableMapping = {
|
1277
1280
|
401: ClientAuthenticationError,
|
1278
1281
|
404: ResourceNotFoundError,
|
1279
1282
|
409: ResourceExistsError,
|
@@ -1350,7 +1353,7 @@ class PageBlobOperations:
|
|
1350
1353
|
return cls(pipeline_response, None, response_headers) # type: ignore
|
1351
1354
|
|
1352
1355
|
@distributed_trace_async
|
1353
|
-
async def copy_incremental(
|
1356
|
+
async def copy_incremental(
|
1354
1357
|
self,
|
1355
1358
|
copy_source: str,
|
1356
1359
|
timeout: Optional[int] = None,
|
@@ -1372,7 +1375,7 @@ class PageBlobOperations:
|
|
1372
1375
|
:type copy_source: str
|
1373
1376
|
:param timeout: The timeout parameter is expressed in seconds. For more information, see
|
1374
1377
|
:code:`<a
|
1375
|
-
href="https://
|
1378
|
+
href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
|
1376
1379
|
Timeouts for Blob Service Operations.</a>`. Default value is None.
|
1377
1380
|
:type timeout: int
|
1378
1381
|
:param request_id_parameter: Provides a client-generated, opaque value with a 1 KB character
|
@@ -1385,7 +1388,7 @@ class PageBlobOperations:
|
|
1385
1388
|
:rtype: None
|
1386
1389
|
:raises ~azure.core.exceptions.HttpResponseError:
|
1387
1390
|
"""
|
1388
|
-
error_map: MutableMapping
|
1391
|
+
error_map: MutableMapping = {
|
1389
1392
|
401: ClientAuthenticationError,
|
1390
1393
|
404: ResourceNotFoundError,
|
1391
1394
|
409: ResourceExistsError,
|
@@ -2,19 +2,13 @@
|
|
2
2
|
# Copyright (c) Microsoft Corporation.
|
3
3
|
# Licensed under the MIT License.
|
4
4
|
# ------------------------------------
|
5
|
-
|
6
|
-
|
7
5
|
"""Customize generated code here.
|
8
6
|
|
9
7
|
Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize
|
10
8
|
"""
|
11
|
-
from typing import
|
12
|
-
|
13
|
-
if TYPE_CHECKING:
|
14
|
-
# pylint: disable=unused-import,ungrouped-imports
|
9
|
+
from typing import List
|
15
10
|
|
16
|
-
|
17
|
-
__all__ = [] # type: List[str] # Add all objects you want publicly available to users at this package level
|
11
|
+
__all__: List[str] = [] # Add all objects you want publicly available to users at this package level
|
18
12
|
|
19
13
|
|
20
14
|
def 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.
|
@@ -7,8 +6,9 @@
|
|
7
6
|
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
8
7
|
# --------------------------------------------------------------------------
|
9
8
|
import sys
|
10
|
-
from typing import Any, AsyncIterator, Callable, Dict, IO, List, Literal, Optional,
|
9
|
+
from typing import Any, AsyncIterator, Callable, Dict, IO, List, Literal, Optional, TypeVar, Union
|
11
10
|
|
11
|
+
from azure.core import AsyncPipelineClient
|
12
12
|
from azure.core.exceptions import (
|
13
13
|
ClientAuthenticationError,
|
14
14
|
HttpResponseError,
|
@@ -25,6 +25,7 @@ from azure.core.tracing.decorator_async import distributed_trace_async
|
|
25
25
|
from azure.core.utils import case_insensitive_dict
|
26
26
|
|
27
27
|
from ... import models as _models
|
28
|
+
from ..._serialization import Deserializer, Serializer
|
28
29
|
from ...operations._service_operations import (
|
29
30
|
build_filter_blobs_request,
|
30
31
|
build_get_account_info_request,
|
@@ -35,11 +36,12 @@ from ...operations._service_operations import (
|
|
35
36
|
build_set_properties_request,
|
36
37
|
build_submit_batch_request,
|
37
38
|
)
|
39
|
+
from .._configuration import AzureBlobStorageConfiguration
|
38
40
|
|
39
41
|
if sys.version_info >= (3, 9):
|
40
42
|
from collections.abc import MutableMapping
|
41
43
|
else:
|
42
|
-
from typing import MutableMapping # type: ignore
|
44
|
+
from typing import MutableMapping # type: ignore
|
43
45
|
T = TypeVar("T")
|
44
46
|
ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]]
|
45
47
|
|
@@ -58,13 +60,13 @@ class ServiceOperations:
|
|
58
60
|
|
59
61
|
def __init__(self, *args, **kwargs) -> None:
|
60
62
|
input_args = list(args)
|
61
|
-
self._client = input_args.pop(0) if input_args else kwargs.pop("client")
|
62
|
-
self._config = input_args.pop(0) if input_args else kwargs.pop("config")
|
63
|
-
self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer")
|
64
|
-
self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer")
|
63
|
+
self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client")
|
64
|
+
self._config: AzureBlobStorageConfiguration = input_args.pop(0) if input_args else kwargs.pop("config")
|
65
|
+
self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer")
|
66
|
+
self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer")
|
65
67
|
|
66
68
|
@distributed_trace_async
|
67
|
-
async def set_properties(
|
69
|
+
async def set_properties(
|
68
70
|
self,
|
69
71
|
storage_service_properties: _models.StorageServiceProperties,
|
70
72
|
timeout: Optional[int] = None,
|
@@ -79,7 +81,7 @@ class ServiceOperations:
|
|
79
81
|
:type storage_service_properties: ~azure.storage.blob.models.StorageServiceProperties
|
80
82
|
:param timeout: The timeout parameter is expressed in seconds. For more information, see
|
81
83
|
:code:`<a
|
82
|
-
href="https://
|
84
|
+
href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
|
83
85
|
Timeouts for Blob Service Operations.</a>`. Default value is None.
|
84
86
|
:type timeout: int
|
85
87
|
:param request_id_parameter: Provides a client-generated, opaque value with a 1 KB character
|
@@ -90,7 +92,7 @@ class ServiceOperations:
|
|
90
92
|
:rtype: None
|
91
93
|
:raises ~azure.core.exceptions.HttpResponseError:
|
92
94
|
"""
|
93
|
-
error_map: MutableMapping
|
95
|
+
error_map: MutableMapping = {
|
94
96
|
401: ClientAuthenticationError,
|
95
97
|
404: ResourceNotFoundError,
|
96
98
|
409: ResourceExistsError,
|
@@ -154,7 +156,7 @@ class ServiceOperations:
|
|
154
156
|
|
155
157
|
:param timeout: The timeout parameter is expressed in seconds. For more information, see
|
156
158
|
:code:`<a
|
157
|
-
href="https://
|
159
|
+
href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
|
158
160
|
Timeouts for Blob Service Operations.</a>`. Default value is None.
|
159
161
|
:type timeout: int
|
160
162
|
:param request_id_parameter: Provides a client-generated, opaque value with a 1 KB character
|
@@ -165,7 +167,7 @@ class ServiceOperations:
|
|
165
167
|
:rtype: ~azure.storage.blob.models.StorageServiceProperties
|
166
168
|
:raises ~azure.core.exceptions.HttpResponseError:
|
167
169
|
"""
|
168
|
-
error_map: MutableMapping
|
170
|
+
error_map: MutableMapping = {
|
169
171
|
401: ClientAuthenticationError,
|
170
172
|
404: ResourceNotFoundError,
|
171
173
|
409: ResourceExistsError,
|
@@ -229,7 +231,7 @@ class ServiceOperations:
|
|
229
231
|
|
230
232
|
:param timeout: The timeout parameter is expressed in seconds. For more information, see
|
231
233
|
:code:`<a
|
232
|
-
href="https://
|
234
|
+
href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
|
233
235
|
Timeouts for Blob Service Operations.</a>`. Default value is None.
|
234
236
|
:type timeout: int
|
235
237
|
:param request_id_parameter: Provides a client-generated, opaque value with a 1 KB character
|
@@ -240,7 +242,7 @@ class ServiceOperations:
|
|
240
242
|
:rtype: ~azure.storage.blob.models.StorageServiceStats
|
241
243
|
:raises ~azure.core.exceptions.HttpResponseError:
|
242
244
|
"""
|
243
|
-
error_map: MutableMapping
|
245
|
+
error_map: MutableMapping = {
|
244
246
|
401: ClientAuthenticationError,
|
245
247
|
404: ResourceNotFoundError,
|
246
248
|
409: ResourceExistsError,
|
@@ -331,7 +333,7 @@ class ServiceOperations:
|
|
331
333
|
:type include: list[str or ~azure.storage.blob.models.ListContainersIncludeType]
|
332
334
|
:param timeout: The timeout parameter is expressed in seconds. For more information, see
|
333
335
|
:code:`<a
|
334
|
-
href="https://
|
336
|
+
href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
|
335
337
|
Timeouts for Blob Service Operations.</a>`. Default value is None.
|
336
338
|
:type timeout: int
|
337
339
|
:param request_id_parameter: Provides a client-generated, opaque value with a 1 KB character
|
@@ -342,7 +344,7 @@ class ServiceOperations:
|
|
342
344
|
:rtype: ~azure.storage.blob.models.ListContainersSegmentResponse
|
343
345
|
:raises ~azure.core.exceptions.HttpResponseError:
|
344
346
|
"""
|
345
|
-
error_map: MutableMapping
|
347
|
+
error_map: MutableMapping = {
|
346
348
|
401: ClientAuthenticationError,
|
347
349
|
404: ResourceNotFoundError,
|
348
350
|
409: ResourceExistsError,
|
@@ -413,7 +415,7 @@ class ServiceOperations:
|
|
413
415
|
:type key_info: ~azure.storage.blob.models.KeyInfo
|
414
416
|
:param timeout: The timeout parameter is expressed in seconds. For more information, see
|
415
417
|
:code:`<a
|
416
|
-
href="https://
|
418
|
+
href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
|
417
419
|
Timeouts for Blob Service Operations.</a>`. Default value is None.
|
418
420
|
:type timeout: int
|
419
421
|
:param request_id_parameter: Provides a client-generated, opaque value with a 1 KB character
|
@@ -424,7 +426,7 @@ class ServiceOperations:
|
|
424
426
|
:rtype: ~azure.storage.blob.models.UserDelegationKey
|
425
427
|
:raises ~azure.core.exceptions.HttpResponseError:
|
426
428
|
"""
|
427
|
-
error_map: MutableMapping
|
429
|
+
error_map: MutableMapping = {
|
428
430
|
401: ClientAuthenticationError,
|
429
431
|
404: ResourceNotFoundError,
|
430
432
|
409: ResourceExistsError,
|
@@ -484,7 +486,7 @@ class ServiceOperations:
|
|
484
486
|
return deserialized # type: ignore
|
485
487
|
|
486
488
|
@distributed_trace_async
|
487
|
-
async def get_account_info(
|
489
|
+
async def get_account_info(
|
488
490
|
self, timeout: Optional[int] = None, request_id_parameter: Optional[str] = None, **kwargs: Any
|
489
491
|
) -> None:
|
490
492
|
# pylint: disable=line-too-long
|
@@ -492,7 +494,7 @@ class ServiceOperations:
|
|
492
494
|
|
493
495
|
:param timeout: The timeout parameter is expressed in seconds. For more information, see
|
494
496
|
:code:`<a
|
495
|
-
href="https://
|
497
|
+
href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
|
496
498
|
Timeouts for Blob Service Operations.</a>`. Default value is None.
|
497
499
|
:type timeout: int
|
498
500
|
:param request_id_parameter: Provides a client-generated, opaque value with a 1 KB character
|
@@ -503,7 +505,7 @@ class ServiceOperations:
|
|
503
505
|
:rtype: None
|
504
506
|
:raises ~azure.core.exceptions.HttpResponseError:
|
505
507
|
"""
|
506
|
-
error_map: MutableMapping
|
508
|
+
error_map: MutableMapping = {
|
507
509
|
401: ClientAuthenticationError,
|
508
510
|
404: ResourceNotFoundError,
|
509
511
|
409: ResourceExistsError,
|
@@ -574,7 +576,7 @@ class ServiceOperations:
|
|
574
576
|
:type body: IO[bytes]
|
575
577
|
:param timeout: The timeout parameter is expressed in seconds. For more information, see
|
576
578
|
:code:`<a
|
577
|
-
href="https://
|
579
|
+
href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
|
578
580
|
Timeouts for Blob Service Operations.</a>`. Default value is None.
|
579
581
|
:type timeout: int
|
580
582
|
:param request_id_parameter: Provides a client-generated, opaque value with a 1 KB character
|
@@ -585,7 +587,7 @@ class ServiceOperations:
|
|
585
587
|
:rtype: AsyncIterator[bytes]
|
586
588
|
:raises ~azure.core.exceptions.HttpResponseError:
|
587
589
|
"""
|
588
|
-
error_map: MutableMapping
|
590
|
+
error_map: MutableMapping = {
|
589
591
|
401: ClientAuthenticationError,
|
590
592
|
404: ResourceNotFoundError,
|
591
593
|
409: ResourceExistsError,
|
@@ -665,7 +667,7 @@ class ServiceOperations:
|
|
665
667
|
|
666
668
|
:param timeout: The timeout parameter is expressed in seconds. For more information, see
|
667
669
|
:code:`<a
|
668
|
-
href="https://
|
670
|
+
href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
|
669
671
|
Timeouts for Blob Service Operations.</a>`. Default value is None.
|
670
672
|
:type timeout: int
|
671
673
|
:param request_id_parameter: Provides a client-generated, opaque value with a 1 KB character
|
@@ -696,7 +698,7 @@ class ServiceOperations:
|
|
696
698
|
:rtype: ~azure.storage.blob.models.FilterBlobSegment
|
697
699
|
:raises ~azure.core.exceptions.HttpResponseError:
|
698
700
|
"""
|
699
|
-
error_map: MutableMapping
|
701
|
+
error_map: MutableMapping = {
|
700
702
|
401: ClientAuthenticationError,
|
701
703
|
404: ResourceNotFoundError,
|
702
704
|
409: ResourceExistsError,
|