azure-storage-blob 12.26.0__py3-none-any.whl → 12.27.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/__init__.py +3 -3
- azure/storage/blob/_blob_client.py +16 -0
- azure/storage/blob/_blob_client.pyi +780 -0
- azure/storage/blob/_blob_service_client.py +41 -4
- azure/storage/blob/_blob_service_client.pyi +182 -0
- azure/storage/blob/_container_client.py +22 -0
- azure/storage/blob/_container_client.pyi +380 -0
- azure/storage/blob/_generated/_azure_blob_storage.py +3 -2
- azure/storage/blob/_generated/_configuration.py +2 -2
- azure/storage/blob/_generated/_utils/__init__.py +6 -0
- azure/storage/blob/_generated/{_serialization.py → _utils/serialization.py} +4 -22
- azure/storage/blob/_generated/aio/_azure_blob_storage.py +3 -2
- azure/storage/blob/_generated/aio/_configuration.py +2 -2
- azure/storage/blob/_generated/aio/operations/_append_blob_operations.py +6 -10
- azure/storage/blob/_generated/aio/operations/_blob_operations.py +35 -39
- azure/storage/blob/_generated/aio/operations/_block_blob_operations.py +9 -13
- azure/storage/blob/_generated/aio/operations/_container_operations.py +20 -24
- azure/storage/blob/_generated/aio/operations/_page_blob_operations.py +13 -17
- azure/storage/blob/_generated/aio/operations/_service_operations.py +10 -14
- azure/storage/blob/_generated/models/_models_py3.py +30 -9
- azure/storage/blob/_generated/operations/_append_blob_operations.py +11 -15
- azure/storage/blob/_generated/operations/_blob_operations.py +60 -64
- azure/storage/blob/_generated/operations/_block_blob_operations.py +16 -20
- azure/storage/blob/_generated/operations/_container_operations.py +39 -43
- azure/storage/blob/_generated/operations/_page_blob_operations.py +23 -27
- azure/storage/blob/_generated/operations/_service_operations.py +19 -23
- azure/storage/blob/_lease.py +2 -2
- azure/storage/blob/_lease.pyi +81 -0
- azure/storage/blob/_list_blobs_helper.py +1 -1
- azure/storage/blob/_serialize.py +1 -0
- azure/storage/blob/_shared/base_client.py +0 -13
- azure/storage/blob/_shared/base_client_async.py +0 -22
- azure/storage/blob/_shared/models.py +1 -0
- azure/storage/blob/_shared/policies.py +10 -2
- azure/storage/blob/_shared/response_handlers.py +5 -0
- azure/storage/blob/_version.py +1 -1
- azure/storage/blob/aio/__init__.py +5 -8
- azure/storage/blob/aio/_blob_client_async.py +28 -8
- azure/storage/blob/aio/_blob_client_async.pyi +763 -0
- azure/storage/blob/aio/_blob_service_client_async.py +41 -4
- azure/storage/blob/aio/_blob_service_client_async.pyi +187 -0
- azure/storage/blob/aio/_container_client_async.py +27 -1
- azure/storage/blob/aio/_container_client_async.pyi +384 -0
- azure/storage/blob/aio/_lease_async.py +2 -2
- azure/storage/blob/aio/_lease_async.pyi +81 -0
- {azure_storage_blob-12.26.0.dist-info → azure_storage_blob-12.27.0.dist-info}/METADATA +17 -5
- {azure_storage_blob-12.26.0.dist-info → azure_storage_blob-12.27.0.dist-info}/RECORD +50 -41
- {azure_storage_blob-12.26.0.dist-info → azure_storage_blob-12.27.0.dist-info}/WHEEL +1 -1
- {azure_storage_blob-12.26.0.dist-info → azure_storage_blob-12.27.0.dist-info/licenses}/LICENSE +0 -0
- {azure_storage_blob-12.26.0.dist-info → azure_storage_blob-12.27.0.dist-info}/top_level.txt +0 -0
@@ -6,8 +6,8 @@
|
|
6
6
|
# Code generated by Microsoft (R) AutoRest Code Generator.
|
7
7
|
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
8
8
|
# --------------------------------------------------------------------------
|
9
|
+
from collections.abc import MutableMapping
|
9
10
|
import datetime
|
10
|
-
import sys
|
11
11
|
from typing import Any, Callable, Dict, IO, Literal, Optional, TypeVar, Union
|
12
12
|
|
13
13
|
from azure.core import PipelineClient
|
@@ -26,12 +26,8 @@ from azure.core.utils import case_insensitive_dict
|
|
26
26
|
|
27
27
|
from .. import models as _models
|
28
28
|
from .._configuration import AzureBlobStorageConfiguration
|
29
|
-
from ..
|
29
|
+
from .._utils.serialization import Deserializer, Serializer
|
30
30
|
|
31
|
-
if sys.version_info >= (3, 9):
|
32
|
-
from collections.abc import MutableMapping
|
33
|
-
else:
|
34
|
-
from typing import MutableMapping # type: ignore
|
35
31
|
T = TypeVar("T")
|
36
32
|
ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]]
|
37
33
|
|
@@ -79,7 +75,7 @@ def build_upload_request(
|
|
79
75
|
|
80
76
|
blob_type: Literal["BlockBlob"] = kwargs.pop("blob_type", _headers.pop("x-ms-blob-type", "BlockBlob"))
|
81
77
|
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
82
|
-
version: Literal["2025-
|
78
|
+
version: Literal["2025-11-05"] = kwargs.pop("version", _headers.pop("x-ms-version", "2025-11-05"))
|
83
79
|
accept = _headers.pop("Accept", "application/xml")
|
84
80
|
|
85
81
|
# Construct URL
|
@@ -220,7 +216,7 @@ def build_put_blob_from_url_request(
|
|
220
216
|
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
221
217
|
|
222
218
|
blob_type: Literal["BlockBlob"] = kwargs.pop("blob_type", _headers.pop("x-ms-blob-type", "BlockBlob"))
|
223
|
-
version: Literal["2025-
|
219
|
+
version: Literal["2025-11-05"] = kwargs.pop("version", _headers.pop("x-ms-version", "2025-11-05"))
|
224
220
|
accept = _headers.pop("Accept", "application/xml")
|
225
221
|
|
226
222
|
# Construct URL
|
@@ -349,7 +345,7 @@ def build_stage_block_request(
|
|
349
345
|
|
350
346
|
comp: Literal["block"] = kwargs.pop("comp", _params.pop("comp", "block"))
|
351
347
|
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
352
|
-
version: Literal["2025-
|
348
|
+
version: Literal["2025-11-05"] = kwargs.pop("version", _headers.pop("x-ms-version", "2025-11-05"))
|
353
349
|
accept = _headers.pop("Accept", "application/xml")
|
354
350
|
|
355
351
|
# Construct URL
|
@@ -432,7 +428,7 @@ def build_stage_block_from_url_request(
|
|
432
428
|
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
433
429
|
|
434
430
|
comp: Literal["block"] = kwargs.pop("comp", _params.pop("comp", "block"))
|
435
|
-
version: Literal["2025-
|
431
|
+
version: Literal["2025-11-05"] = kwargs.pop("version", _headers.pop("x-ms-version", "2025-11-05"))
|
436
432
|
accept = _headers.pop("Accept", "application/xml")
|
437
433
|
|
438
434
|
# Construct URL
|
@@ -535,7 +531,7 @@ def build_commit_block_list_request(
|
|
535
531
|
|
536
532
|
comp: Literal["blocklist"] = kwargs.pop("comp", _params.pop("comp", "blocklist"))
|
537
533
|
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
538
|
-
version: Literal["2025-
|
534
|
+
version: Literal["2025-11-05"] = kwargs.pop("version", _headers.pop("x-ms-version", "2025-11-05"))
|
539
535
|
accept = _headers.pop("Accept", "application/xml")
|
540
536
|
|
541
537
|
# Construct URL
|
@@ -641,7 +637,7 @@ def build_get_block_list_request(
|
|
641
637
|
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
642
638
|
|
643
639
|
comp: Literal["blocklist"] = kwargs.pop("comp", _params.pop("comp", "blocklist"))
|
644
|
-
version: Literal["2025-
|
640
|
+
version: Literal["2025-11-05"] = kwargs.pop("version", _headers.pop("x-ms-version", "2025-11-05"))
|
645
641
|
accept = _headers.pop("Accept", "application/xml")
|
646
642
|
|
647
643
|
# Construct URL
|
@@ -685,7 +681,7 @@ class BlockBlobOperations:
|
|
685
681
|
|
686
682
|
models = _models
|
687
683
|
|
688
|
-
def __init__(self, *args, **kwargs):
|
684
|
+
def __init__(self, *args, **kwargs) -> None:
|
689
685
|
input_args = list(args)
|
690
686
|
self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client")
|
691
687
|
self._config: AzureBlobStorageConfiguration = input_args.pop(0) if input_args else kwargs.pop("config")
|
@@ -728,7 +724,7 @@ class BlockBlobOperations:
|
|
728
724
|
:type body: IO[bytes]
|
729
725
|
:param timeout: The timeout parameter is expressed in seconds. For more information, see
|
730
726
|
:code:`<a
|
731
|
-
href="https://
|
727
|
+
href="https://learn.microsoft.com/rest/api/storageservices/setting-timeouts-for-blob-service-operations">Setting
|
732
728
|
Timeouts for Blob Service Operations.</a>`. Default value is None.
|
733
729
|
:type timeout: int
|
734
730
|
:param transactional_content_md5: Specify the transactional md5 for the body, to be validated
|
@@ -957,7 +953,7 @@ class BlockBlobOperations:
|
|
957
953
|
:type copy_source: str
|
958
954
|
:param timeout: The timeout parameter is expressed in seconds. For more information, see
|
959
955
|
:code:`<a
|
960
|
-
href="https://
|
956
|
+
href="https://learn.microsoft.com/rest/api/storageservices/setting-timeouts-for-blob-service-operations">Setting
|
961
957
|
Timeouts for Blob Service Operations.</a>`. Default value is None.
|
962
958
|
:type timeout: int
|
963
959
|
:param transactional_content_md5: Specify the transactional md5 for the body, to be validated
|
@@ -1191,7 +1187,7 @@ class BlockBlobOperations:
|
|
1191
1187
|
:type transactional_content_crc64: bytes
|
1192
1188
|
:param timeout: The timeout parameter is expressed in seconds. For more information, see
|
1193
1189
|
:code:`<a
|
1194
|
-
href="https://
|
1190
|
+
href="https://learn.microsoft.com/rest/api/storageservices/setting-timeouts-for-blob-service-operations">Setting
|
1195
1191
|
Timeouts for Blob Service Operations.</a>`. Default value is None.
|
1196
1192
|
:type timeout: int
|
1197
1193
|
:param request_id_parameter: Provides a client-generated, opaque value with a 1 KB character
|
@@ -1348,7 +1344,7 @@ class BlockBlobOperations:
|
|
1348
1344
|
:type source_contentcrc64: bytes
|
1349
1345
|
:param timeout: The timeout parameter is expressed in seconds. For more information, see
|
1350
1346
|
:code:`<a
|
1351
|
-
href="https://
|
1347
|
+
href="https://learn.microsoft.com/rest/api/storageservices/setting-timeouts-for-blob-service-operations">Setting
|
1352
1348
|
Timeouts for Blob Service Operations.</a>`. Default value is None.
|
1353
1349
|
:type timeout: int
|
1354
1350
|
:param request_id_parameter: Provides a client-generated, opaque value with a 1 KB character
|
@@ -1507,7 +1503,7 @@ class BlockBlobOperations:
|
|
1507
1503
|
:type blocks: ~azure.storage.blob.models.BlockLookupList
|
1508
1504
|
:param timeout: The timeout parameter is expressed in seconds. For more information, see
|
1509
1505
|
:code:`<a
|
1510
|
-
href="https://
|
1506
|
+
href="https://learn.microsoft.com/rest/api/storageservices/setting-timeouts-for-blob-service-operations">Setting
|
1511
1507
|
Timeouts for Blob Service Operations.</a>`. Default value is None.
|
1512
1508
|
:type timeout: int
|
1513
1509
|
:param transactional_content_md5: Specify the transactional md5 for the body, to be validated
|
@@ -1704,7 +1700,7 @@ class BlockBlobOperations:
|
|
1704
1700
|
:param snapshot: The snapshot parameter is an opaque DateTime value that, when present,
|
1705
1701
|
specifies the blob snapshot to retrieve. For more information on working with blob snapshots,
|
1706
1702
|
see :code:`<a
|
1707
|
-
href="https://
|
1703
|
+
href="https://learn.microsoft.com/rest/api/storageservices/creating-a-snapshot-of-a-blob">Creating
|
1708
1704
|
a Snapshot of a Blob.</a>`. Default value is None.
|
1709
1705
|
:type snapshot: str
|
1710
1706
|
:param list_type: Specifies whether to return the list of committed blocks, the list of
|
@@ -1713,7 +1709,7 @@ class BlockBlobOperations:
|
|
1713
1709
|
:type list_type: str or ~azure.storage.blob.models.BlockListType
|
1714
1710
|
:param timeout: The timeout parameter is expressed in seconds. For more information, see
|
1715
1711
|
:code:`<a
|
1716
|
-
href="https://
|
1712
|
+
href="https://learn.microsoft.com/rest/api/storageservices/setting-timeouts-for-blob-service-operations">Setting
|
1717
1713
|
Timeouts for Blob Service Operations.</a>`. Default value is None.
|
1718
1714
|
:type timeout: int
|
1719
1715
|
:param request_id_parameter: Provides a client-generated, opaque value with a 1 KB character
|
@@ -6,8 +6,8 @@
|
|
6
6
|
# Code generated by Microsoft (R) AutoRest Code Generator.
|
7
7
|
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
8
8
|
# --------------------------------------------------------------------------
|
9
|
+
from collections.abc import MutableMapping
|
9
10
|
import datetime
|
10
|
-
import sys
|
11
11
|
from typing import Any, Callable, Dict, IO, Iterator, List, Literal, Optional, TypeVar, Union
|
12
12
|
|
13
13
|
from azure.core import PipelineClient
|
@@ -28,12 +28,8 @@ from azure.core.utils import case_insensitive_dict
|
|
28
28
|
|
29
29
|
from .. import models as _models
|
30
30
|
from .._configuration import AzureBlobStorageConfiguration
|
31
|
-
from ..
|
31
|
+
from .._utils.serialization import Deserializer, Serializer
|
32
32
|
|
33
|
-
if sys.version_info >= (3, 9):
|
34
|
-
from collections.abc import MutableMapping
|
35
|
-
else:
|
36
|
-
from typing import MutableMapping # type: ignore
|
37
33
|
T = TypeVar("T")
|
38
34
|
ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]]
|
39
35
|
|
@@ -56,7 +52,7 @@ def build_create_request(
|
|
56
52
|
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
57
53
|
|
58
54
|
restype: Literal["container"] = kwargs.pop("restype", _params.pop("restype", "container"))
|
59
|
-
version: Literal["2025-
|
55
|
+
version: Literal["2025-11-05"] = kwargs.pop("version", _headers.pop("x-ms-version", "2025-11-05"))
|
60
56
|
accept = _headers.pop("Accept", "application/xml")
|
61
57
|
|
62
58
|
# Construct URL
|
@@ -105,7 +101,7 @@ def build_get_properties_request(
|
|
105
101
|
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
106
102
|
|
107
103
|
restype: Literal["container"] = kwargs.pop("restype", _params.pop("restype", "container"))
|
108
|
-
version: Literal["2025-
|
104
|
+
version: Literal["2025-11-05"] = kwargs.pop("version", _headers.pop("x-ms-version", "2025-11-05"))
|
109
105
|
accept = _headers.pop("Accept", "application/xml")
|
110
106
|
|
111
107
|
# Construct URL
|
@@ -146,7 +142,7 @@ def build_delete_request(
|
|
146
142
|
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
147
143
|
|
148
144
|
restype: Literal["container"] = kwargs.pop("restype", _params.pop("restype", "container"))
|
149
|
-
version: Literal["2025-
|
145
|
+
version: Literal["2025-11-05"] = kwargs.pop("version", _headers.pop("x-ms-version", "2025-11-05"))
|
150
146
|
accept = _headers.pop("Accept", "application/xml")
|
151
147
|
|
152
148
|
# Construct URL
|
@@ -192,7 +188,7 @@ def build_set_metadata_request(
|
|
192
188
|
|
193
189
|
restype: Literal["container"] = kwargs.pop("restype", _params.pop("restype", "container"))
|
194
190
|
comp: Literal["metadata"] = kwargs.pop("comp", _params.pop("comp", "metadata"))
|
195
|
-
version: Literal["2025-
|
191
|
+
version: Literal["2025-11-05"] = kwargs.pop("version", _headers.pop("x-ms-version", "2025-11-05"))
|
196
192
|
accept = _headers.pop("Accept", "application/xml")
|
197
193
|
|
198
194
|
# Construct URL
|
@@ -237,7 +233,7 @@ def build_get_access_policy_request(
|
|
237
233
|
|
238
234
|
restype: Literal["container"] = kwargs.pop("restype", _params.pop("restype", "container"))
|
239
235
|
comp: Literal["acl"] = kwargs.pop("comp", _params.pop("comp", "acl"))
|
240
|
-
version: Literal["2025-
|
236
|
+
version: Literal["2025-11-05"] = kwargs.pop("version", _headers.pop("x-ms-version", "2025-11-05"))
|
241
237
|
accept = _headers.pop("Accept", "application/xml")
|
242
238
|
|
243
239
|
# Construct URL
|
@@ -283,7 +279,7 @@ def build_set_access_policy_request(
|
|
283
279
|
restype: Literal["container"] = kwargs.pop("restype", _params.pop("restype", "container"))
|
284
280
|
comp: Literal["acl"] = kwargs.pop("comp", _params.pop("comp", "acl"))
|
285
281
|
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
286
|
-
version: Literal["2025-
|
282
|
+
version: Literal["2025-11-05"] = kwargs.pop("version", _headers.pop("x-ms-version", "2025-11-05"))
|
287
283
|
accept = _headers.pop("Accept", "application/xml")
|
288
284
|
|
289
285
|
# Construct URL
|
@@ -333,7 +329,7 @@ def build_restore_request(
|
|
333
329
|
|
334
330
|
restype: Literal["container"] = kwargs.pop("restype", _params.pop("restype", "container"))
|
335
331
|
comp: Literal["undelete"] = kwargs.pop("comp", _params.pop("comp", "undelete"))
|
336
|
-
version: Literal["2025-
|
332
|
+
version: Literal["2025-11-05"] = kwargs.pop("version", _headers.pop("x-ms-version", "2025-11-05"))
|
337
333
|
accept = _headers.pop("Accept", "application/xml")
|
338
334
|
|
339
335
|
# Construct URL
|
@@ -381,7 +377,7 @@ def build_rename_request(
|
|
381
377
|
|
382
378
|
restype: Literal["container"] = kwargs.pop("restype", _params.pop("restype", "container"))
|
383
379
|
comp: Literal["rename"] = kwargs.pop("comp", _params.pop("comp", "rename"))
|
384
|
-
version: Literal["2025-
|
380
|
+
version: Literal["2025-11-05"] = kwargs.pop("version", _headers.pop("x-ms-version", "2025-11-05"))
|
385
381
|
accept = _headers.pop("Accept", "application/xml")
|
386
382
|
|
387
383
|
# Construct URL
|
@@ -425,7 +421,7 @@ def build_submit_batch_request(
|
|
425
421
|
restype: Literal["container"] = kwargs.pop("restype", _params.pop("restype", "container"))
|
426
422
|
comp: Literal["batch"] = kwargs.pop("comp", _params.pop("comp", "batch"))
|
427
423
|
multipart_content_type: Optional[str] = kwargs.pop("multipart_content_type", _headers.pop("Content-Type", None))
|
428
|
-
version: Literal["2025-
|
424
|
+
version: Literal["2025-11-05"] = kwargs.pop("version", _headers.pop("x-ms-version", "2025-11-05"))
|
429
425
|
accept = _headers.pop("Accept", "application/xml")
|
430
426
|
|
431
427
|
# Construct URL
|
@@ -470,7 +466,7 @@ def build_filter_blobs_request(
|
|
470
466
|
|
471
467
|
restype: Literal["container"] = kwargs.pop("restype", _params.pop("restype", "container"))
|
472
468
|
comp: Literal["blobs"] = kwargs.pop("comp", _params.pop("comp", "blobs"))
|
473
|
-
version: Literal["2025-
|
469
|
+
version: Literal["2025-11-05"] = kwargs.pop("version", _headers.pop("x-ms-version", "2025-11-05"))
|
474
470
|
accept = _headers.pop("Accept", "application/xml")
|
475
471
|
|
476
472
|
# Construct URL
|
@@ -521,7 +517,7 @@ def build_acquire_lease_request(
|
|
521
517
|
comp: Literal["lease"] = kwargs.pop("comp", _params.pop("comp", "lease"))
|
522
518
|
restype: Literal["container"] = kwargs.pop("restype", _params.pop("restype", "container"))
|
523
519
|
action: Literal["acquire"] = kwargs.pop("action", _headers.pop("x-ms-lease-action", "acquire"))
|
524
|
-
version: Literal["2025-
|
520
|
+
version: Literal["2025-11-05"] = kwargs.pop("version", _headers.pop("x-ms-version", "2025-11-05"))
|
525
521
|
accept = _headers.pop("Accept", "application/xml")
|
526
522
|
|
527
523
|
# Construct URL
|
@@ -572,7 +568,7 @@ def build_release_lease_request(
|
|
572
568
|
comp: Literal["lease"] = kwargs.pop("comp", _params.pop("comp", "lease"))
|
573
569
|
restype: Literal["container"] = kwargs.pop("restype", _params.pop("restype", "container"))
|
574
570
|
action: Literal["release"] = kwargs.pop("action", _headers.pop("x-ms-lease-action", "release"))
|
575
|
-
version: Literal["2025-
|
571
|
+
version: Literal["2025-11-05"] = kwargs.pop("version", _headers.pop("x-ms-version", "2025-11-05"))
|
576
572
|
accept = _headers.pop("Accept", "application/xml")
|
577
573
|
|
578
574
|
# Construct URL
|
@@ -620,7 +616,7 @@ def build_renew_lease_request(
|
|
620
616
|
comp: Literal["lease"] = kwargs.pop("comp", _params.pop("comp", "lease"))
|
621
617
|
restype: Literal["container"] = kwargs.pop("restype", _params.pop("restype", "container"))
|
622
618
|
action: Literal["renew"] = kwargs.pop("action", _headers.pop("x-ms-lease-action", "renew"))
|
623
|
-
version: Literal["2025-
|
619
|
+
version: Literal["2025-11-05"] = kwargs.pop("version", _headers.pop("x-ms-version", "2025-11-05"))
|
624
620
|
accept = _headers.pop("Accept", "application/xml")
|
625
621
|
|
626
622
|
# Construct URL
|
@@ -668,7 +664,7 @@ def build_break_lease_request(
|
|
668
664
|
comp: Literal["lease"] = kwargs.pop("comp", _params.pop("comp", "lease"))
|
669
665
|
restype: Literal["container"] = kwargs.pop("restype", _params.pop("restype", "container"))
|
670
666
|
action: Literal["break"] = kwargs.pop("action", _headers.pop("x-ms-lease-action", "break"))
|
671
|
-
version: Literal["2025-
|
667
|
+
version: Literal["2025-11-05"] = kwargs.pop("version", _headers.pop("x-ms-version", "2025-11-05"))
|
672
668
|
accept = _headers.pop("Accept", "application/xml")
|
673
669
|
|
674
670
|
# Construct URL
|
@@ -718,7 +714,7 @@ def build_change_lease_request(
|
|
718
714
|
comp: Literal["lease"] = kwargs.pop("comp", _params.pop("comp", "lease"))
|
719
715
|
restype: Literal["container"] = kwargs.pop("restype", _params.pop("restype", "container"))
|
720
716
|
action: Literal["change"] = kwargs.pop("action", _headers.pop("x-ms-lease-action", "change"))
|
721
|
-
version: Literal["2025-
|
717
|
+
version: Literal["2025-11-05"] = kwargs.pop("version", _headers.pop("x-ms-version", "2025-11-05"))
|
722
718
|
accept = _headers.pop("Accept", "application/xml")
|
723
719
|
|
724
720
|
# Construct URL
|
@@ -767,7 +763,7 @@ def build_list_blob_flat_segment_request(
|
|
767
763
|
|
768
764
|
restype: Literal["container"] = kwargs.pop("restype", _params.pop("restype", "container"))
|
769
765
|
comp: Literal["list"] = kwargs.pop("comp", _params.pop("comp", "list"))
|
770
|
-
version: Literal["2025-
|
766
|
+
version: Literal["2025-11-05"] = kwargs.pop("version", _headers.pop("x-ms-version", "2025-11-05"))
|
771
767
|
accept = _headers.pop("Accept", "application/xml")
|
772
768
|
|
773
769
|
# Construct URL
|
@@ -818,7 +814,7 @@ def build_list_blob_hierarchy_segment_request( # pylint: disable=name-too-long
|
|
818
814
|
|
819
815
|
restype: Literal["container"] = kwargs.pop("restype", _params.pop("restype", "container"))
|
820
816
|
comp: Literal["list"] = kwargs.pop("comp", _params.pop("comp", "list"))
|
821
|
-
version: Literal["2025-
|
817
|
+
version: Literal["2025-11-05"] = kwargs.pop("version", _headers.pop("x-ms-version", "2025-11-05"))
|
822
818
|
accept = _headers.pop("Accept", "application/xml")
|
823
819
|
|
824
820
|
# Construct URL
|
@@ -861,7 +857,7 @@ def build_get_account_info_request(
|
|
861
857
|
|
862
858
|
restype: Literal["account"] = kwargs.pop("restype", _params.pop("restype", "account"))
|
863
859
|
comp: Literal["properties"] = kwargs.pop("comp", _params.pop("comp", "properties"))
|
864
|
-
version: Literal["2025-
|
860
|
+
version: Literal["2025-11-05"] = kwargs.pop("version", _headers.pop("x-ms-version", "2025-11-05"))
|
865
861
|
accept = _headers.pop("Accept", "application/xml")
|
866
862
|
|
867
863
|
# Construct URL
|
@@ -899,7 +895,7 @@ class ContainerOperations:
|
|
899
895
|
|
900
896
|
models = _models
|
901
897
|
|
902
|
-
def __init__(self, *args, **kwargs):
|
898
|
+
def __init__(self, *args, **kwargs) -> None:
|
903
899
|
input_args = list(args)
|
904
900
|
self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client")
|
905
901
|
self._config: AzureBlobStorageConfiguration = input_args.pop(0) if input_args else kwargs.pop("config")
|
@@ -921,7 +917,7 @@ class ContainerOperations:
|
|
921
917
|
|
922
918
|
:param timeout: The timeout parameter is expressed in seconds. For more information, see
|
923
919
|
:code:`<a
|
924
|
-
href="https://
|
920
|
+
href="https://learn.microsoft.com/rest/api/storageservices/setting-timeouts-for-blob-service-operations">Setting
|
925
921
|
Timeouts for Blob Service Operations.</a>`. Default value is None.
|
926
922
|
:type timeout: int
|
927
923
|
:param metadata: Optional. Specifies a user-defined name-value pair associated with the blob.
|
@@ -1018,7 +1014,7 @@ class ContainerOperations:
|
|
1018
1014
|
|
1019
1015
|
:param timeout: The timeout parameter is expressed in seconds. For more information, see
|
1020
1016
|
:code:`<a
|
1021
|
-
href="https://
|
1017
|
+
href="https://learn.microsoft.com/rest/api/storageservices/setting-timeouts-for-blob-service-operations">Setting
|
1022
1018
|
Timeouts for Blob Service Operations.</a>`. Default value is None.
|
1023
1019
|
:type timeout: int
|
1024
1020
|
:param request_id_parameter: Provides a client-generated, opaque value with a 1 KB character
|
@@ -1120,7 +1116,7 @@ class ContainerOperations:
|
|
1120
1116
|
|
1121
1117
|
:param timeout: The timeout parameter is expressed in seconds. For more information, see
|
1122
1118
|
:code:`<a
|
1123
|
-
href="https://
|
1119
|
+
href="https://learn.microsoft.com/rest/api/storageservices/setting-timeouts-for-blob-service-operations">Setting
|
1124
1120
|
Timeouts for Blob Service Operations.</a>`. Default value is None.
|
1125
1121
|
:type timeout: int
|
1126
1122
|
:param request_id_parameter: Provides a client-generated, opaque value with a 1 KB character
|
@@ -1209,7 +1205,7 @@ class ContainerOperations:
|
|
1209
1205
|
|
1210
1206
|
:param timeout: The timeout parameter is expressed in seconds. For more information, see
|
1211
1207
|
:code:`<a
|
1212
|
-
href="https://
|
1208
|
+
href="https://learn.microsoft.com/rest/api/storageservices/setting-timeouts-for-blob-service-operations">Setting
|
1213
1209
|
Timeouts for Blob Service Operations.</a>`. Default value is None.
|
1214
1210
|
:type timeout: int
|
1215
1211
|
:param metadata: Optional. Specifies a user-defined name-value pair associated with the blob.
|
@@ -1307,7 +1303,7 @@ class ContainerOperations:
|
|
1307
1303
|
|
1308
1304
|
:param timeout: The timeout parameter is expressed in seconds. For more information, see
|
1309
1305
|
:code:`<a
|
1310
|
-
href="https://
|
1306
|
+
href="https://learn.microsoft.com/rest/api/storageservices/setting-timeouts-for-blob-service-operations">Setting
|
1311
1307
|
Timeouts for Blob Service Operations.</a>`. Default value is None.
|
1312
1308
|
:type timeout: int
|
1313
1309
|
:param request_id_parameter: Provides a client-generated, opaque value with a 1 KB character
|
@@ -1400,7 +1396,7 @@ class ContainerOperations:
|
|
1400
1396
|
|
1401
1397
|
:param timeout: The timeout parameter is expressed in seconds. For more information, see
|
1402
1398
|
:code:`<a
|
1403
|
-
href="https://
|
1399
|
+
href="https://learn.microsoft.com/rest/api/storageservices/setting-timeouts-for-blob-service-operations">Setting
|
1404
1400
|
Timeouts for Blob Service Operations.</a>`. Default value is None.
|
1405
1401
|
:type timeout: int
|
1406
1402
|
:param access: Specifies whether data in the container may be accessed publicly and the level
|
@@ -1508,7 +1504,7 @@ class ContainerOperations:
|
|
1508
1504
|
|
1509
1505
|
:param timeout: The timeout parameter is expressed in seconds. For more information, see
|
1510
1506
|
:code:`<a
|
1511
|
-
href="https://
|
1507
|
+
href="https://learn.microsoft.com/rest/api/storageservices/setting-timeouts-for-blob-service-operations">Setting
|
1512
1508
|
Timeouts for Blob Service Operations.</a>`. Default value is None.
|
1513
1509
|
:type timeout: int
|
1514
1510
|
:param request_id_parameter: Provides a client-generated, opaque value with a 1 KB character
|
@@ -1593,7 +1589,7 @@ class ContainerOperations:
|
|
1593
1589
|
:type source_container_name: str
|
1594
1590
|
:param timeout: The timeout parameter is expressed in seconds. For more information, see
|
1595
1591
|
:code:`<a
|
1596
|
-
href="https://
|
1592
|
+
href="https://learn.microsoft.com/rest/api/storageservices/setting-timeouts-for-blob-service-operations">Setting
|
1597
1593
|
Timeouts for Blob Service Operations.</a>`. Default value is None.
|
1598
1594
|
:type timeout: int
|
1599
1595
|
:param request_id_parameter: Provides a client-generated, opaque value with a 1 KB character
|
@@ -1676,7 +1672,7 @@ class ContainerOperations:
|
|
1676
1672
|
:type body: IO[bytes]
|
1677
1673
|
:param timeout: The timeout parameter is expressed in seconds. For more information, see
|
1678
1674
|
:code:`<a
|
1679
|
-
href="https://
|
1675
|
+
href="https://learn.microsoft.com/rest/api/storageservices/setting-timeouts-for-blob-service-operations">Setting
|
1680
1676
|
Timeouts for Blob Service Operations.</a>`. Default value is None.
|
1681
1677
|
:type timeout: int
|
1682
1678
|
:param request_id_parameter: Provides a client-generated, opaque value with a 1 KB character
|
@@ -1767,7 +1763,7 @@ class ContainerOperations:
|
|
1767
1763
|
|
1768
1764
|
:param timeout: The timeout parameter is expressed in seconds. For more information, see
|
1769
1765
|
:code:`<a
|
1770
|
-
href="https://
|
1766
|
+
href="https://learn.microsoft.com/rest/api/storageservices/setting-timeouts-for-blob-service-operations">Setting
|
1771
1767
|
Timeouts for Blob Service Operations.</a>`. Default value is None.
|
1772
1768
|
:type timeout: int
|
1773
1769
|
:param request_id_parameter: Provides a client-generated, opaque value with a 1 KB character
|
@@ -1871,7 +1867,7 @@ class ContainerOperations:
|
|
1871
1867
|
|
1872
1868
|
:param timeout: The timeout parameter is expressed in seconds. For more information, see
|
1873
1869
|
:code:`<a
|
1874
|
-
href="https://
|
1870
|
+
href="https://learn.microsoft.com/rest/api/storageservices/setting-timeouts-for-blob-service-operations">Setting
|
1875
1871
|
Timeouts for Blob Service Operations.</a>`. Default value is None.
|
1876
1872
|
:type timeout: int
|
1877
1873
|
:param duration: Specifies the duration of the lease, in seconds, or negative one (-1) for a
|
@@ -1973,7 +1969,7 @@ class ContainerOperations:
|
|
1973
1969
|
:type lease_id: str
|
1974
1970
|
:param timeout: The timeout parameter is expressed in seconds. For more information, see
|
1975
1971
|
:code:`<a
|
1976
|
-
href="https://
|
1972
|
+
href="https://learn.microsoft.com/rest/api/storageservices/setting-timeouts-for-blob-service-operations">Setting
|
1977
1973
|
Timeouts for Blob Service Operations.</a>`. Default value is None.
|
1978
1974
|
:type timeout: int
|
1979
1975
|
:param request_id_parameter: Provides a client-generated, opaque value with a 1 KB character
|
@@ -2065,7 +2061,7 @@ class ContainerOperations:
|
|
2065
2061
|
:type lease_id: str
|
2066
2062
|
:param timeout: The timeout parameter is expressed in seconds. For more information, see
|
2067
2063
|
:code:`<a
|
2068
|
-
href="https://
|
2064
|
+
href="https://learn.microsoft.com/rest/api/storageservices/setting-timeouts-for-blob-service-operations">Setting
|
2069
2065
|
Timeouts for Blob Service Operations.</a>`. Default value is None.
|
2070
2066
|
:type timeout: int
|
2071
2067
|
:param request_id_parameter: Provides a client-generated, opaque value with a 1 KB character
|
@@ -2156,7 +2152,7 @@ class ContainerOperations:
|
|
2156
2152
|
|
2157
2153
|
:param timeout: The timeout parameter is expressed in seconds. For more information, see
|
2158
2154
|
:code:`<a
|
2159
|
-
href="https://
|
2155
|
+
href="https://learn.microsoft.com/rest/api/storageservices/setting-timeouts-for-blob-service-operations">Setting
|
2160
2156
|
Timeouts for Blob Service Operations.</a>`. Default value is None.
|
2161
2157
|
:type timeout: int
|
2162
2158
|
:param break_period: For a break operation, proposed duration the lease should continue before
|
@@ -2262,7 +2258,7 @@ class ContainerOperations:
|
|
2262
2258
|
:type proposed_lease_id: str
|
2263
2259
|
:param timeout: The timeout parameter is expressed in seconds. For more information, see
|
2264
2260
|
:code:`<a
|
2265
|
-
href="https://
|
2261
|
+
href="https://learn.microsoft.com/rest/api/storageservices/setting-timeouts-for-blob-service-operations">Setting
|
2266
2262
|
Timeouts for Blob Service Operations.</a>`. Default value is None.
|
2267
2263
|
:type timeout: int
|
2268
2264
|
:param request_id_parameter: Provides a client-generated, opaque value with a 1 KB character
|
@@ -2375,7 +2371,7 @@ class ContainerOperations:
|
|
2375
2371
|
:type include: list[str or ~azure.storage.blob.models.ListBlobsIncludeItem]
|
2376
2372
|
:param timeout: The timeout parameter is expressed in seconds. For more information, see
|
2377
2373
|
:code:`<a
|
2378
|
-
href="https://
|
2374
|
+
href="https://learn.microsoft.com/rest/api/storageservices/setting-timeouts-for-blob-service-operations">Setting
|
2379
2375
|
Timeouts for Blob Service Operations.</a>`. Default value is None.
|
2380
2376
|
:type timeout: int
|
2381
2377
|
:param request_id_parameter: Provides a client-generated, opaque value with a 1 KB character
|
@@ -2486,7 +2482,7 @@ class ContainerOperations:
|
|
2486
2482
|
:type include: list[str or ~azure.storage.blob.models.ListBlobsIncludeItem]
|
2487
2483
|
:param timeout: The timeout parameter is expressed in seconds. For more information, see
|
2488
2484
|
:code:`<a
|
2489
|
-
href="https://
|
2485
|
+
href="https://learn.microsoft.com/rest/api/storageservices/setting-timeouts-for-blob-service-operations">Setting
|
2490
2486
|
Timeouts for Blob Service Operations.</a>`. Default value is None.
|
2491
2487
|
:type timeout: int
|
2492
2488
|
:param request_id_parameter: Provides a client-generated, opaque value with a 1 KB character
|
@@ -2565,7 +2561,7 @@ class ContainerOperations:
|
|
2565
2561
|
|
2566
2562
|
:param timeout: The timeout parameter is expressed in seconds. For more information, see
|
2567
2563
|
:code:`<a
|
2568
|
-
href="https://
|
2564
|
+
href="https://learn.microsoft.com/rest/api/storageservices/setting-timeouts-for-blob-service-operations">Setting
|
2569
2565
|
Timeouts for Blob Service Operations.</a>`. Default value is None.
|
2570
2566
|
:type timeout: int
|
2571
2567
|
:param request_id_parameter: Provides a client-generated, opaque value with a 1 KB character
|