azure-storage-blob 12.25.1__py3-none-any.whl → 12.26.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 +51 -3
- azure/storage/blob/_blob_client_helpers.py +15 -1
- azure/storage/blob/_generated/_azure_blob_storage.py +1 -1
- azure/storage/blob/_generated/_configuration.py +2 -2
- azure/storage/blob/_generated/_serialization.py +3 -3
- azure/storage/blob/_generated/aio/_azure_blob_storage.py +1 -1
- azure/storage/blob/_generated/aio/_configuration.py +2 -2
- azure/storage/blob/_generated/aio/operations/_append_blob_operations.py +5 -4
- azure/storage/blob/_generated/aio/operations/_blob_operations.py +5 -25
- azure/storage/blob/_generated/aio/operations/_block_blob_operations.py +9 -7
- azure/storage/blob/_generated/aio/operations/_container_operations.py +1 -19
- azure/storage/blob/_generated/aio/operations/_page_blob_operations.py +5 -10
- azure/storage/blob/_generated/aio/operations/_service_operations.py +1 -8
- azure/storage/blob/_generated/models/__init__.py +2 -0
- azure/storage/blob/_generated/models/_azure_blob_storage_enums.py +6 -0
- azure/storage/blob/_generated/operations/_append_blob_operations.py +12 -9
- azure/storage/blob/_generated/operations/_blob_operations.py +32 -49
- azure/storage/blob/_generated/operations/_block_blob_operations.py +21 -13
- azure/storage/blob/_generated/operations/_container_operations.py +19 -37
- azure/storage/blob/_generated/operations/_page_blob_operations.py +17 -19
- azure/storage/blob/_generated/operations/_service_operations.py +9 -17
- azure/storage/blob/_quick_query_helper.py +17 -21
- azure/storage/blob/_serialize.py +1 -0
- azure/storage/blob/_shared/base_client.py +1 -0
- azure/storage/blob/_shared/shared_access_signature.py +4 -0
- azure/storage/blob/_shared_access_signature.py +3 -1
- azure/storage/blob/_version.py +1 -1
- azure/storage/blob/aio/_blob_client_async.py +189 -5
- azure/storage/blob/aio/_quick_query_helper_async.py +194 -0
- {azure_storage_blob-12.25.1.dist-info → azure_storage_blob-12.26.0b1.dist-info}/METADATA +2 -2
- {azure_storage_blob-12.25.1.dist-info → azure_storage_blob-12.26.0b1.dist-info}/RECORD +34 -33
- {azure_storage_blob-12.25.1.dist-info → azure_storage_blob-12.26.0b1.dist-info}/LICENSE +0 -0
- {azure_storage_blob-12.25.1.dist-info → azure_storage_blob-12.26.0b1.dist-info}/WHEEL +0 -0
- {azure_storage_blob-12.25.1.dist-info → azure_storage_blob-12.26.0b1.dist-info}/top_level.txt +0 -0
@@ -1,4 +1,4 @@
|
|
1
|
-
# pylint: disable=too-many-lines
|
1
|
+
# pylint: disable=line-too-long,useless-suppression,too-many-lines
|
2
2
|
# coding=utf-8
|
3
3
|
# --------------------------------------------------------------------------
|
4
4
|
# Copyright (c) Microsoft Corporation. All rights reserved.
|
@@ -56,7 +56,7 @@ def build_create_request(
|
|
56
56
|
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
57
57
|
|
58
58
|
restype: Literal["container"] = kwargs.pop("restype", _params.pop("restype", "container"))
|
59
|
-
version: Literal["2025-
|
59
|
+
version: Literal["2025-07-05"] = kwargs.pop("version", _headers.pop("x-ms-version", "2025-07-05"))
|
60
60
|
accept = _headers.pop("Accept", "application/xml")
|
61
61
|
|
62
62
|
# Construct URL
|
@@ -105,7 +105,7 @@ def build_get_properties_request(
|
|
105
105
|
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
106
106
|
|
107
107
|
restype: Literal["container"] = kwargs.pop("restype", _params.pop("restype", "container"))
|
108
|
-
version: Literal["2025-
|
108
|
+
version: Literal["2025-07-05"] = kwargs.pop("version", _headers.pop("x-ms-version", "2025-07-05"))
|
109
109
|
accept = _headers.pop("Accept", "application/xml")
|
110
110
|
|
111
111
|
# Construct URL
|
@@ -146,7 +146,7 @@ def build_delete_request(
|
|
146
146
|
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
147
147
|
|
148
148
|
restype: Literal["container"] = kwargs.pop("restype", _params.pop("restype", "container"))
|
149
|
-
version: Literal["2025-
|
149
|
+
version: Literal["2025-07-05"] = kwargs.pop("version", _headers.pop("x-ms-version", "2025-07-05"))
|
150
150
|
accept = _headers.pop("Accept", "application/xml")
|
151
151
|
|
152
152
|
# Construct URL
|
@@ -192,7 +192,7 @@ def build_set_metadata_request(
|
|
192
192
|
|
193
193
|
restype: Literal["container"] = kwargs.pop("restype", _params.pop("restype", "container"))
|
194
194
|
comp: Literal["metadata"] = kwargs.pop("comp", _params.pop("comp", "metadata"))
|
195
|
-
version: Literal["2025-
|
195
|
+
version: Literal["2025-07-05"] = kwargs.pop("version", _headers.pop("x-ms-version", "2025-07-05"))
|
196
196
|
accept = _headers.pop("Accept", "application/xml")
|
197
197
|
|
198
198
|
# Construct URL
|
@@ -237,7 +237,7 @@ def build_get_access_policy_request(
|
|
237
237
|
|
238
238
|
restype: Literal["container"] = kwargs.pop("restype", _params.pop("restype", "container"))
|
239
239
|
comp: Literal["acl"] = kwargs.pop("comp", _params.pop("comp", "acl"))
|
240
|
-
version: Literal["2025-
|
240
|
+
version: Literal["2025-07-05"] = kwargs.pop("version", _headers.pop("x-ms-version", "2025-07-05"))
|
241
241
|
accept = _headers.pop("Accept", "application/xml")
|
242
242
|
|
243
243
|
# Construct URL
|
@@ -283,7 +283,7 @@ def build_set_access_policy_request(
|
|
283
283
|
restype: Literal["container"] = kwargs.pop("restype", _params.pop("restype", "container"))
|
284
284
|
comp: Literal["acl"] = kwargs.pop("comp", _params.pop("comp", "acl"))
|
285
285
|
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
286
|
-
version: Literal["2025-
|
286
|
+
version: Literal["2025-07-05"] = kwargs.pop("version", _headers.pop("x-ms-version", "2025-07-05"))
|
287
287
|
accept = _headers.pop("Accept", "application/xml")
|
288
288
|
|
289
289
|
# Construct URL
|
@@ -333,7 +333,7 @@ def build_restore_request(
|
|
333
333
|
|
334
334
|
restype: Literal["container"] = kwargs.pop("restype", _params.pop("restype", "container"))
|
335
335
|
comp: Literal["undelete"] = kwargs.pop("comp", _params.pop("comp", "undelete"))
|
336
|
-
version: Literal["2025-
|
336
|
+
version: Literal["2025-07-05"] = kwargs.pop("version", _headers.pop("x-ms-version", "2025-07-05"))
|
337
337
|
accept = _headers.pop("Accept", "application/xml")
|
338
338
|
|
339
339
|
# Construct URL
|
@@ -381,7 +381,7 @@ def build_rename_request(
|
|
381
381
|
|
382
382
|
restype: Literal["container"] = kwargs.pop("restype", _params.pop("restype", "container"))
|
383
383
|
comp: Literal["rename"] = kwargs.pop("comp", _params.pop("comp", "rename"))
|
384
|
-
version: Literal["2025-
|
384
|
+
version: Literal["2025-07-05"] = kwargs.pop("version", _headers.pop("x-ms-version", "2025-07-05"))
|
385
385
|
accept = _headers.pop("Accept", "application/xml")
|
386
386
|
|
387
387
|
# Construct URL
|
@@ -425,7 +425,7 @@ def build_submit_batch_request(
|
|
425
425
|
restype: Literal["container"] = kwargs.pop("restype", _params.pop("restype", "container"))
|
426
426
|
comp: Literal["batch"] = kwargs.pop("comp", _params.pop("comp", "batch"))
|
427
427
|
multipart_content_type: Optional[str] = kwargs.pop("multipart_content_type", _headers.pop("Content-Type", None))
|
428
|
-
version: Literal["2025-
|
428
|
+
version: Literal["2025-07-05"] = kwargs.pop("version", _headers.pop("x-ms-version", "2025-07-05"))
|
429
429
|
accept = _headers.pop("Accept", "application/xml")
|
430
430
|
|
431
431
|
# Construct URL
|
@@ -470,7 +470,7 @@ def build_filter_blobs_request(
|
|
470
470
|
|
471
471
|
restype: Literal["container"] = kwargs.pop("restype", _params.pop("restype", "container"))
|
472
472
|
comp: Literal["blobs"] = kwargs.pop("comp", _params.pop("comp", "blobs"))
|
473
|
-
version: Literal["2025-
|
473
|
+
version: Literal["2025-07-05"] = kwargs.pop("version", _headers.pop("x-ms-version", "2025-07-05"))
|
474
474
|
accept = _headers.pop("Accept", "application/xml")
|
475
475
|
|
476
476
|
# Construct URL
|
@@ -521,7 +521,7 @@ def build_acquire_lease_request(
|
|
521
521
|
comp: Literal["lease"] = kwargs.pop("comp", _params.pop("comp", "lease"))
|
522
522
|
restype: Literal["container"] = kwargs.pop("restype", _params.pop("restype", "container"))
|
523
523
|
action: Literal["acquire"] = kwargs.pop("action", _headers.pop("x-ms-lease-action", "acquire"))
|
524
|
-
version: Literal["2025-
|
524
|
+
version: Literal["2025-07-05"] = kwargs.pop("version", _headers.pop("x-ms-version", "2025-07-05"))
|
525
525
|
accept = _headers.pop("Accept", "application/xml")
|
526
526
|
|
527
527
|
# Construct URL
|
@@ -572,7 +572,7 @@ def build_release_lease_request(
|
|
572
572
|
comp: Literal["lease"] = kwargs.pop("comp", _params.pop("comp", "lease"))
|
573
573
|
restype: Literal["container"] = kwargs.pop("restype", _params.pop("restype", "container"))
|
574
574
|
action: Literal["release"] = kwargs.pop("action", _headers.pop("x-ms-lease-action", "release"))
|
575
|
-
version: Literal["2025-
|
575
|
+
version: Literal["2025-07-05"] = kwargs.pop("version", _headers.pop("x-ms-version", "2025-07-05"))
|
576
576
|
accept = _headers.pop("Accept", "application/xml")
|
577
577
|
|
578
578
|
# Construct URL
|
@@ -620,7 +620,7 @@ def build_renew_lease_request(
|
|
620
620
|
comp: Literal["lease"] = kwargs.pop("comp", _params.pop("comp", "lease"))
|
621
621
|
restype: Literal["container"] = kwargs.pop("restype", _params.pop("restype", "container"))
|
622
622
|
action: Literal["renew"] = kwargs.pop("action", _headers.pop("x-ms-lease-action", "renew"))
|
623
|
-
version: Literal["2025-
|
623
|
+
version: Literal["2025-07-05"] = kwargs.pop("version", _headers.pop("x-ms-version", "2025-07-05"))
|
624
624
|
accept = _headers.pop("Accept", "application/xml")
|
625
625
|
|
626
626
|
# Construct URL
|
@@ -668,7 +668,7 @@ def build_break_lease_request(
|
|
668
668
|
comp: Literal["lease"] = kwargs.pop("comp", _params.pop("comp", "lease"))
|
669
669
|
restype: Literal["container"] = kwargs.pop("restype", _params.pop("restype", "container"))
|
670
670
|
action: Literal["break"] = kwargs.pop("action", _headers.pop("x-ms-lease-action", "break"))
|
671
|
-
version: Literal["2025-
|
671
|
+
version: Literal["2025-07-05"] = kwargs.pop("version", _headers.pop("x-ms-version", "2025-07-05"))
|
672
672
|
accept = _headers.pop("Accept", "application/xml")
|
673
673
|
|
674
674
|
# Construct URL
|
@@ -718,7 +718,7 @@ def build_change_lease_request(
|
|
718
718
|
comp: Literal["lease"] = kwargs.pop("comp", _params.pop("comp", "lease"))
|
719
719
|
restype: Literal["container"] = kwargs.pop("restype", _params.pop("restype", "container"))
|
720
720
|
action: Literal["change"] = kwargs.pop("action", _headers.pop("x-ms-lease-action", "change"))
|
721
|
-
version: Literal["2025-
|
721
|
+
version: Literal["2025-07-05"] = kwargs.pop("version", _headers.pop("x-ms-version", "2025-07-05"))
|
722
722
|
accept = _headers.pop("Accept", "application/xml")
|
723
723
|
|
724
724
|
# Construct URL
|
@@ -767,7 +767,7 @@ def build_list_blob_flat_segment_request(
|
|
767
767
|
|
768
768
|
restype: Literal["container"] = kwargs.pop("restype", _params.pop("restype", "container"))
|
769
769
|
comp: Literal["list"] = kwargs.pop("comp", _params.pop("comp", "list"))
|
770
|
-
version: Literal["2025-
|
770
|
+
version: Literal["2025-07-05"] = kwargs.pop("version", _headers.pop("x-ms-version", "2025-07-05"))
|
771
771
|
accept = _headers.pop("Accept", "application/xml")
|
772
772
|
|
773
773
|
# Construct URL
|
@@ -818,7 +818,7 @@ def build_list_blob_hierarchy_segment_request( # pylint: disable=name-too-long
|
|
818
818
|
|
819
819
|
restype: Literal["container"] = kwargs.pop("restype", _params.pop("restype", "container"))
|
820
820
|
comp: Literal["list"] = kwargs.pop("comp", _params.pop("comp", "list"))
|
821
|
-
version: Literal["2025-
|
821
|
+
version: Literal["2025-07-05"] = kwargs.pop("version", _headers.pop("x-ms-version", "2025-07-05"))
|
822
822
|
accept = _headers.pop("Accept", "application/xml")
|
823
823
|
|
824
824
|
# Construct URL
|
@@ -861,7 +861,7 @@ def build_get_account_info_request(
|
|
861
861
|
|
862
862
|
restype: Literal["account"] = kwargs.pop("restype", _params.pop("restype", "account"))
|
863
863
|
comp: Literal["properties"] = kwargs.pop("comp", _params.pop("comp", "properties"))
|
864
|
-
version: Literal["2025-
|
864
|
+
version: Literal["2025-07-05"] = kwargs.pop("version", _headers.pop("x-ms-version", "2025-07-05"))
|
865
865
|
accept = _headers.pop("Accept", "application/xml")
|
866
866
|
|
867
867
|
# Construct URL
|
@@ -916,7 +916,6 @@ class ContainerOperations:
|
|
916
916
|
container_cpk_scope_info: Optional[_models.ContainerCpkScopeInfo] = None,
|
917
917
|
**kwargs: Any
|
918
918
|
) -> None:
|
919
|
-
# pylint: disable=line-too-long
|
920
919
|
"""creates a new container under the specified account. If the container with the same name
|
921
920
|
already exists, the operation fails.
|
922
921
|
|
@@ -1014,7 +1013,6 @@ class ContainerOperations:
|
|
1014
1013
|
lease_access_conditions: Optional[_models.LeaseAccessConditions] = None,
|
1015
1014
|
**kwargs: Any
|
1016
1015
|
) -> None:
|
1017
|
-
# pylint: disable=line-too-long
|
1018
1016
|
"""returns all user-defined metadata and system properties for the specified container. The data
|
1019
1017
|
returned does not include the container's list of blobs.
|
1020
1018
|
|
@@ -1117,7 +1115,6 @@ class ContainerOperations:
|
|
1117
1115
|
modified_access_conditions: Optional[_models.ModifiedAccessConditions] = None,
|
1118
1116
|
**kwargs: Any
|
1119
1117
|
) -> None:
|
1120
|
-
# pylint: disable=line-too-long
|
1121
1118
|
"""operation marks the specified container for deletion. The container and any blobs contained
|
1122
1119
|
within it are later deleted during garbage collection.
|
1123
1120
|
|
@@ -1208,7 +1205,6 @@ class ContainerOperations:
|
|
1208
1205
|
modified_access_conditions: Optional[_models.ModifiedAccessConditions] = None,
|
1209
1206
|
**kwargs: Any
|
1210
1207
|
) -> None:
|
1211
|
-
# pylint: disable=line-too-long
|
1212
1208
|
"""operation sets one or more user-defined name-value pairs for the specified container.
|
1213
1209
|
|
1214
1210
|
:param timeout: The timeout parameter is expressed in seconds. For more information, see
|
@@ -1306,7 +1302,6 @@ class ContainerOperations:
|
|
1306
1302
|
lease_access_conditions: Optional[_models.LeaseAccessConditions] = None,
|
1307
1303
|
**kwargs: Any
|
1308
1304
|
) -> List[_models.SignedIdentifier]:
|
1309
|
-
# pylint: disable=line-too-long
|
1310
1305
|
"""gets the permissions for the specified container. The permissions indicate whether container
|
1311
1306
|
data may be accessed publicly.
|
1312
1307
|
|
@@ -1400,7 +1395,6 @@ class ContainerOperations:
|
|
1400
1395
|
container_acl: Optional[List[_models.SignedIdentifier]] = None,
|
1401
1396
|
**kwargs: Any
|
1402
1397
|
) -> None:
|
1403
|
-
# pylint: disable=line-too-long
|
1404
1398
|
"""sets the permissions for the specified container. The permissions indicate whether blobs in a
|
1405
1399
|
container may be accessed publicly.
|
1406
1400
|
|
@@ -1510,7 +1504,6 @@ class ContainerOperations:
|
|
1510
1504
|
deleted_container_version: Optional[str] = None,
|
1511
1505
|
**kwargs: Any
|
1512
1506
|
) -> None:
|
1513
|
-
# pylint: disable=line-too-long
|
1514
1507
|
"""Restores a previously-deleted container.
|
1515
1508
|
|
1516
1509
|
:param timeout: The timeout parameter is expressed in seconds. For more information, see
|
@@ -1593,7 +1586,6 @@ class ContainerOperations:
|
|
1593
1586
|
source_lease_id: Optional[str] = None,
|
1594
1587
|
**kwargs: Any
|
1595
1588
|
) -> None:
|
1596
|
-
# pylint: disable=line-too-long
|
1597
1589
|
"""Renames an existing container.
|
1598
1590
|
|
1599
1591
|
:param source_container_name: Required. Specifies the name of the container to rename.
|
@@ -1676,7 +1668,6 @@ class ContainerOperations:
|
|
1676
1668
|
request_id_parameter: Optional[str] = None,
|
1677
1669
|
**kwargs: Any
|
1678
1670
|
) -> Iterator[bytes]:
|
1679
|
-
# pylint: disable=line-too-long
|
1680
1671
|
"""The Batch operation allows multiple API calls to be embedded into a single HTTP request.
|
1681
1672
|
|
1682
1673
|
:param content_length: The length of the request. Required.
|
@@ -1771,7 +1762,6 @@ class ContainerOperations:
|
|
1771
1762
|
include: Optional[List[Union[str, _models.FilterBlobsIncludeItem]]] = None,
|
1772
1763
|
**kwargs: Any
|
1773
1764
|
) -> _models.FilterBlobSegment:
|
1774
|
-
# pylint: disable=line-too-long
|
1775
1765
|
"""The Filter Blobs operation enables callers to list blobs in a container whose tags match a
|
1776
1766
|
given search expression. Filter blobs searches within the given container.
|
1777
1767
|
|
@@ -1876,7 +1866,6 @@ class ContainerOperations:
|
|
1876
1866
|
modified_access_conditions: Optional[_models.ModifiedAccessConditions] = None,
|
1877
1867
|
**kwargs: Any
|
1878
1868
|
) -> None:
|
1879
|
-
# pylint: disable=line-too-long
|
1880
1869
|
"""[Update] establishes and manages a lock on a container for delete operations. The lock duration
|
1881
1870
|
can be 15 to 60 seconds, or can be infinite.
|
1882
1871
|
|
@@ -1977,7 +1966,6 @@ class ContainerOperations:
|
|
1977
1966
|
modified_access_conditions: Optional[_models.ModifiedAccessConditions] = None,
|
1978
1967
|
**kwargs: Any
|
1979
1968
|
) -> None:
|
1980
|
-
# pylint: disable=line-too-long
|
1981
1969
|
"""[Update] establishes and manages a lock on a container for delete operations. The lock duration
|
1982
1970
|
can be 15 to 60 seconds, or can be infinite.
|
1983
1971
|
|
@@ -2070,7 +2058,6 @@ class ContainerOperations:
|
|
2070
2058
|
modified_access_conditions: Optional[_models.ModifiedAccessConditions] = None,
|
2071
2059
|
**kwargs: Any
|
2072
2060
|
) -> None:
|
2073
|
-
# pylint: disable=line-too-long
|
2074
2061
|
"""[Update] establishes and manages a lock on a container for delete operations. The lock duration
|
2075
2062
|
can be 15 to 60 seconds, or can be infinite.
|
2076
2063
|
|
@@ -2164,7 +2151,6 @@ class ContainerOperations:
|
|
2164
2151
|
modified_access_conditions: Optional[_models.ModifiedAccessConditions] = None,
|
2165
2152
|
**kwargs: Any
|
2166
2153
|
) -> None:
|
2167
|
-
# pylint: disable=line-too-long
|
2168
2154
|
"""[Update] establishes and manages a lock on a container for delete operations. The lock duration
|
2169
2155
|
can be 15 to 60 seconds, or can be infinite.
|
2170
2156
|
|
@@ -2265,7 +2251,6 @@ class ContainerOperations:
|
|
2265
2251
|
modified_access_conditions: Optional[_models.ModifiedAccessConditions] = None,
|
2266
2252
|
**kwargs: Any
|
2267
2253
|
) -> None:
|
2268
|
-
# pylint: disable=line-too-long
|
2269
2254
|
"""[Update] establishes and manages a lock on a container for delete operations. The lock duration
|
2270
2255
|
can be 15 to 60 seconds, or can be infinite.
|
2271
2256
|
|
@@ -2366,7 +2351,6 @@ class ContainerOperations:
|
|
2366
2351
|
request_id_parameter: Optional[str] = None,
|
2367
2352
|
**kwargs: Any
|
2368
2353
|
) -> _models.ListBlobsFlatSegmentResponse:
|
2369
|
-
# pylint: disable=line-too-long
|
2370
2354
|
"""[Update] The List Blobs operation returns a list of the blobs under the specified container.
|
2371
2355
|
|
2372
2356
|
:param prefix: Filters the results to return only containers whose name begins with the
|
@@ -2473,7 +2457,6 @@ class ContainerOperations:
|
|
2473
2457
|
request_id_parameter: Optional[str] = None,
|
2474
2458
|
**kwargs: Any
|
2475
2459
|
) -> _models.ListBlobsHierarchySegmentResponse:
|
2476
|
-
# pylint: disable=line-too-long
|
2477
2460
|
"""[Update] The List Blobs operation returns a list of the blobs under the specified container.
|
2478
2461
|
|
2479
2462
|
:param delimiter: When the request includes this parameter, the operation returns a BlobPrefix
|
@@ -2578,7 +2561,6 @@ class ContainerOperations:
|
|
2578
2561
|
def get_account_info( # pylint: disable=inconsistent-return-statements
|
2579
2562
|
self, timeout: Optional[int] = None, request_id_parameter: Optional[str] = None, **kwargs: Any
|
2580
2563
|
) -> None:
|
2581
|
-
# pylint: disable=line-too-long
|
2582
2564
|
"""Returns the sku name and account kind.
|
2583
2565
|
|
2584
2566
|
:param timeout: The timeout parameter is expressed in seconds. For more information, see
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# pylint: disable=too-many-lines
|
1
|
+
# pylint: disable=line-too-long,useless-suppression,too-many-lines
|
2
2
|
# coding=utf-8
|
3
3
|
# --------------------------------------------------------------------------
|
4
4
|
# Copyright (c) Microsoft Corporation. All rights reserved.
|
@@ -75,7 +75,7 @@ def build_create_request(
|
|
75
75
|
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
76
76
|
|
77
77
|
blob_type: Literal["PageBlob"] = kwargs.pop("blob_type", _headers.pop("x-ms-blob-type", "PageBlob"))
|
78
|
-
version: Literal["2025-
|
78
|
+
version: Literal["2025-07-05"] = kwargs.pop("version", _headers.pop("x-ms-version", "2025-07-05"))
|
79
79
|
accept = _headers.pop("Accept", "application/xml")
|
80
80
|
|
81
81
|
# Construct URL
|
@@ -193,7 +193,7 @@ def build_upload_pages_request(
|
|
193
193
|
comp: Literal["page"] = kwargs.pop("comp", _params.pop("comp", "page"))
|
194
194
|
page_write: Literal["update"] = kwargs.pop("page_write", _headers.pop("x-ms-page-write", "update"))
|
195
195
|
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
196
|
-
version: Literal["2025-
|
196
|
+
version: Literal["2025-07-05"] = kwargs.pop("version", _headers.pop("x-ms-version", "2025-07-05"))
|
197
197
|
accept = _headers.pop("Accept", "application/xml")
|
198
198
|
|
199
199
|
# Construct URL
|
@@ -299,7 +299,7 @@ def build_clear_pages_request(
|
|
299
299
|
|
300
300
|
comp: Literal["page"] = kwargs.pop("comp", _params.pop("comp", "page"))
|
301
301
|
page_write: Literal["clear"] = kwargs.pop("page_write", _headers.pop("x-ms-page-write", "clear"))
|
302
|
-
version: Literal["2025-
|
302
|
+
version: Literal["2025-07-05"] = kwargs.pop("version", _headers.pop("x-ms-version", "2025-07-05"))
|
303
303
|
accept = _headers.pop("Accept", "application/xml")
|
304
304
|
|
305
305
|
# Construct URL
|
@@ -391,6 +391,7 @@ def build_upload_pages_from_url_request(
|
|
391
391
|
source_if_none_match: Optional[str] = None,
|
392
392
|
request_id_parameter: Optional[str] = None,
|
393
393
|
copy_source_authorization: Optional[str] = None,
|
394
|
+
file_request_intent: Optional[Union[str, _models.FileShareTokenIntent]] = None,
|
394
395
|
**kwargs: Any
|
395
396
|
) -> HttpRequest:
|
396
397
|
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
@@ -398,7 +399,7 @@ def build_upload_pages_from_url_request(
|
|
398
399
|
|
399
400
|
comp: Literal["page"] = kwargs.pop("comp", _params.pop("comp", "page"))
|
400
401
|
page_write: Literal["update"] = kwargs.pop("page_write", _headers.pop("x-ms-page-write", "update"))
|
401
|
-
version: Literal["2025-
|
402
|
+
version: Literal["2025-07-05"] = kwargs.pop("version", _headers.pop("x-ms-version", "2025-07-05"))
|
402
403
|
accept = _headers.pop("Accept", "application/xml")
|
403
404
|
|
404
405
|
# Construct URL
|
@@ -479,6 +480,8 @@ def build_upload_pages_from_url_request(
|
|
479
480
|
_headers["x-ms-copy-source-authorization"] = _SERIALIZER.header(
|
480
481
|
"copy_source_authorization", copy_source_authorization, "str"
|
481
482
|
)
|
483
|
+
if file_request_intent is not None:
|
484
|
+
_headers["x-ms-file-request-intent"] = _SERIALIZER.header("file_request_intent", file_request_intent, "str")
|
482
485
|
_headers["Accept"] = _SERIALIZER.header("accept", accept, "str")
|
483
486
|
|
484
487
|
return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs)
|
@@ -505,7 +508,7 @@ def build_get_page_ranges_request(
|
|
505
508
|
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
506
509
|
|
507
510
|
comp: Literal["pagelist"] = kwargs.pop("comp", _params.pop("comp", "pagelist"))
|
508
|
-
version: Literal["2025-
|
511
|
+
version: Literal["2025-07-05"] = kwargs.pop("version", _headers.pop("x-ms-version", "2025-07-05"))
|
509
512
|
accept = _headers.pop("Accept", "application/xml")
|
510
513
|
|
511
514
|
# Construct URL
|
@@ -573,7 +576,7 @@ def build_get_page_ranges_diff_request(
|
|
573
576
|
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
574
577
|
|
575
578
|
comp: Literal["pagelist"] = kwargs.pop("comp", _params.pop("comp", "pagelist"))
|
576
|
-
version: Literal["2025-
|
579
|
+
version: Literal["2025-07-05"] = kwargs.pop("version", _headers.pop("x-ms-version", "2025-07-05"))
|
577
580
|
accept = _headers.pop("Accept", "application/xml")
|
578
581
|
|
579
582
|
# Construct URL
|
@@ -644,7 +647,7 @@ def build_resize_request(
|
|
644
647
|
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
645
648
|
|
646
649
|
comp: Literal["properties"] = kwargs.pop("comp", _params.pop("comp", "properties"))
|
647
|
-
version: Literal["2025-
|
650
|
+
version: Literal["2025-07-05"] = kwargs.pop("version", _headers.pop("x-ms-version", "2025-07-05"))
|
648
651
|
accept = _headers.pop("Accept", "application/xml")
|
649
652
|
|
650
653
|
# Construct URL
|
@@ -711,7 +714,7 @@ def build_update_sequence_number_request(
|
|
711
714
|
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
712
715
|
|
713
716
|
comp: Literal["properties"] = kwargs.pop("comp", _params.pop("comp", "properties"))
|
714
|
-
version: Literal["2025-
|
717
|
+
version: Literal["2025-07-05"] = kwargs.pop("version", _headers.pop("x-ms-version", "2025-07-05"))
|
715
718
|
accept = _headers.pop("Accept", "application/xml")
|
716
719
|
|
717
720
|
# Construct URL
|
@@ -770,7 +773,7 @@ def build_copy_incremental_request(
|
|
770
773
|
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
771
774
|
|
772
775
|
comp: Literal["incrementalcopy"] = kwargs.pop("comp", _params.pop("comp", "incrementalcopy"))
|
773
|
-
version: Literal["2025-
|
776
|
+
version: Literal["2025-07-05"] = kwargs.pop("version", _headers.pop("x-ms-version", "2025-07-05"))
|
774
777
|
accept = _headers.pop("Accept", "application/xml")
|
775
778
|
|
776
779
|
# Construct URL
|
@@ -846,7 +849,6 @@ class PageBlobOperations:
|
|
846
849
|
modified_access_conditions: Optional[_models.ModifiedAccessConditions] = None,
|
847
850
|
**kwargs: Any
|
848
851
|
) -> None:
|
849
|
-
# pylint: disable=line-too-long
|
850
852
|
"""The Create operation creates a new page blob.
|
851
853
|
|
852
854
|
:param content_length: The length of the request. Required.
|
@@ -1046,7 +1048,6 @@ class PageBlobOperations:
|
|
1046
1048
|
modified_access_conditions: Optional[_models.ModifiedAccessConditions] = None,
|
1047
1049
|
**kwargs: Any
|
1048
1050
|
) -> None:
|
1049
|
-
# pylint: disable=line-too-long
|
1050
1051
|
"""The Upload Pages operation writes a range of pages to a page blob.
|
1051
1052
|
|
1052
1053
|
:param content_length: The length of the request. Required.
|
@@ -1234,7 +1235,6 @@ class PageBlobOperations:
|
|
1234
1235
|
modified_access_conditions: Optional[_models.ModifiedAccessConditions] = None,
|
1235
1236
|
**kwargs: Any
|
1236
1237
|
) -> None:
|
1237
|
-
# pylint: disable=line-too-long
|
1238
1238
|
"""The Clear Pages operation clears a set of pages from a page blob.
|
1239
1239
|
|
1240
1240
|
:param content_length: The length of the request. Required.
|
@@ -1385,6 +1385,7 @@ class PageBlobOperations:
|
|
1385
1385
|
timeout: Optional[int] = None,
|
1386
1386
|
request_id_parameter: Optional[str] = None,
|
1387
1387
|
copy_source_authorization: Optional[str] = None,
|
1388
|
+
file_request_intent: Optional[Union[str, _models.FileShareTokenIntent]] = None,
|
1388
1389
|
cpk_info: Optional[_models.CpkInfo] = None,
|
1389
1390
|
cpk_scope_info: Optional[_models.CpkScopeInfo] = None,
|
1390
1391
|
lease_access_conditions: Optional[_models.LeaseAccessConditions] = None,
|
@@ -1393,7 +1394,6 @@ class PageBlobOperations:
|
|
1393
1394
|
source_modified_access_conditions: Optional[_models.SourceModifiedAccessConditions] = None,
|
1394
1395
|
**kwargs: Any
|
1395
1396
|
) -> None:
|
1396
|
-
# pylint: disable=line-too-long
|
1397
1397
|
"""The Upload Pages operation writes a range of pages to a page blob where the contents are read
|
1398
1398
|
from a URL.
|
1399
1399
|
|
@@ -1425,6 +1425,8 @@ class PageBlobOperations:
|
|
1425
1425
|
:param copy_source_authorization: Only Bearer type is supported. Credentials should be a valid
|
1426
1426
|
OAuth access token to copy source. Default value is None.
|
1427
1427
|
:type copy_source_authorization: str
|
1428
|
+
:param file_request_intent: Valid value is backup. "backup" Default value is None.
|
1429
|
+
:type file_request_intent: str or ~azure.storage.blob.models.FileShareTokenIntent
|
1428
1430
|
:param cpk_info: Parameter group. Default value is None.
|
1429
1431
|
:type cpk_info: ~azure.storage.blob.models.CpkInfo
|
1430
1432
|
:param cpk_scope_info: Parameter group. Default value is None.
|
@@ -1529,6 +1531,7 @@ class PageBlobOperations:
|
|
1529
1531
|
source_if_none_match=_source_if_none_match,
|
1530
1532
|
request_id_parameter=request_id_parameter,
|
1531
1533
|
copy_source_authorization=copy_source_authorization,
|
1534
|
+
file_request_intent=file_request_intent,
|
1532
1535
|
comp=comp,
|
1533
1536
|
page_write=page_write,
|
1534
1537
|
version=self._config.version,
|
@@ -1588,7 +1591,6 @@ class PageBlobOperations:
|
|
1588
1591
|
modified_access_conditions: Optional[_models.ModifiedAccessConditions] = None,
|
1589
1592
|
**kwargs: Any
|
1590
1593
|
) -> _models.PageList:
|
1591
|
-
# pylint: disable=line-too-long
|
1592
1594
|
"""The Get Page Ranges operation returns the list of valid page ranges for a page blob or snapshot
|
1593
1595
|
of a page blob.
|
1594
1596
|
|
@@ -1728,7 +1730,6 @@ class PageBlobOperations:
|
|
1728
1730
|
modified_access_conditions: Optional[_models.ModifiedAccessConditions] = None,
|
1729
1731
|
**kwargs: Any
|
1730
1732
|
) -> _models.PageList:
|
1731
|
-
# pylint: disable=line-too-long
|
1732
1733
|
"""The Get Page Ranges Diff operation returns the list of valid page ranges for a page blob that
|
1733
1734
|
were changed between target blob and previous snapshot.
|
1734
1735
|
|
@@ -1879,7 +1880,6 @@ class PageBlobOperations:
|
|
1879
1880
|
modified_access_conditions: Optional[_models.ModifiedAccessConditions] = None,
|
1880
1881
|
**kwargs: Any
|
1881
1882
|
) -> None:
|
1882
|
-
# pylint: disable=line-too-long
|
1883
1883
|
"""Resize the Blob.
|
1884
1884
|
|
1885
1885
|
:param blob_content_length: This header specifies the maximum size for the page blob, up to 1
|
@@ -2006,7 +2006,6 @@ class PageBlobOperations:
|
|
2006
2006
|
modified_access_conditions: Optional[_models.ModifiedAccessConditions] = None,
|
2007
2007
|
**kwargs: Any
|
2008
2008
|
) -> None:
|
2009
|
-
# pylint: disable=line-too-long
|
2010
2009
|
"""Update the sequence number of the blob.
|
2011
2010
|
|
2012
2011
|
:param sequence_number_action: Required if the x-ms-blob-sequence-number header is set for the
|
@@ -2120,7 +2119,6 @@ class PageBlobOperations:
|
|
2120
2119
|
modified_access_conditions: Optional[_models.ModifiedAccessConditions] = None,
|
2121
2120
|
**kwargs: Any
|
2122
2121
|
) -> None:
|
2123
|
-
# pylint: disable=line-too-long
|
2124
2122
|
"""The Copy Incremental operation copies a snapshot of the source page blob to a destination page
|
2125
2123
|
blob. The snapshot is copied such that only the differential changes between the previously
|
2126
2124
|
copied snapshot are transferred to the destination. The copied snapshots are complete copies of
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# pylint: disable=too-many-lines
|
1
|
+
# pylint: disable=line-too-long,useless-suppression,too-many-lines
|
2
2
|
# coding=utf-8
|
3
3
|
# --------------------------------------------------------------------------
|
4
4
|
# Copyright (c) Microsoft Corporation. All rights reserved.
|
@@ -49,7 +49,7 @@ def build_set_properties_request(
|
|
49
49
|
restype: Literal["service"] = kwargs.pop("restype", _params.pop("restype", "service"))
|
50
50
|
comp: Literal["properties"] = kwargs.pop("comp", _params.pop("comp", "properties"))
|
51
51
|
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
52
|
-
version: Literal["2025-
|
52
|
+
version: Literal["2025-07-05"] = kwargs.pop("version", _headers.pop("x-ms-version", "2025-07-05"))
|
53
53
|
accept = _headers.pop("Accept", "application/xml")
|
54
54
|
|
55
55
|
# Construct URL
|
@@ -85,7 +85,7 @@ def build_get_properties_request(
|
|
85
85
|
|
86
86
|
restype: Literal["service"] = kwargs.pop("restype", _params.pop("restype", "service"))
|
87
87
|
comp: Literal["properties"] = kwargs.pop("comp", _params.pop("comp", "properties"))
|
88
|
-
version: Literal["2025-
|
88
|
+
version: Literal["2025-07-05"] = kwargs.pop("version", _headers.pop("x-ms-version", "2025-07-05"))
|
89
89
|
accept = _headers.pop("Accept", "application/xml")
|
90
90
|
|
91
91
|
# Construct URL
|
@@ -119,7 +119,7 @@ def build_get_statistics_request(
|
|
119
119
|
|
120
120
|
restype: Literal["service"] = kwargs.pop("restype", _params.pop("restype", "service"))
|
121
121
|
comp: Literal["stats"] = kwargs.pop("comp", _params.pop("comp", "stats"))
|
122
|
-
version: Literal["2025-
|
122
|
+
version: Literal["2025-07-05"] = kwargs.pop("version", _headers.pop("x-ms-version", "2025-07-05"))
|
123
123
|
accept = _headers.pop("Accept", "application/xml")
|
124
124
|
|
125
125
|
# Construct URL
|
@@ -160,7 +160,7 @@ def build_list_containers_segment_request(
|
|
160
160
|
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
161
161
|
|
162
162
|
comp: Literal["list"] = kwargs.pop("comp", _params.pop("comp", "list"))
|
163
|
-
version: Literal["2025-
|
163
|
+
version: Literal["2025-07-05"] = kwargs.pop("version", _headers.pop("x-ms-version", "2025-07-05"))
|
164
164
|
accept = _headers.pop("Accept", "application/xml")
|
165
165
|
|
166
166
|
# Construct URL
|
@@ -202,7 +202,7 @@ def build_get_user_delegation_key_request(
|
|
202
202
|
restype: Literal["service"] = kwargs.pop("restype", _params.pop("restype", "service"))
|
203
203
|
comp: Literal["userdelegationkey"] = kwargs.pop("comp", _params.pop("comp", "userdelegationkey"))
|
204
204
|
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
205
|
-
version: Literal["2025-
|
205
|
+
version: Literal["2025-07-05"] = kwargs.pop("version", _headers.pop("x-ms-version", "2025-07-05"))
|
206
206
|
accept = _headers.pop("Accept", "application/xml")
|
207
207
|
|
208
208
|
# Construct URL
|
@@ -238,7 +238,7 @@ def build_get_account_info_request(
|
|
238
238
|
|
239
239
|
restype: Literal["account"] = kwargs.pop("restype", _params.pop("restype", "account"))
|
240
240
|
comp: Literal["properties"] = kwargs.pop("comp", _params.pop("comp", "properties"))
|
241
|
-
version: Literal["2025-
|
241
|
+
version: Literal["2025-07-05"] = kwargs.pop("version", _headers.pop("x-ms-version", "2025-07-05"))
|
242
242
|
accept = _headers.pop("Accept", "application/xml")
|
243
243
|
|
244
244
|
# Construct URL
|
@@ -278,7 +278,7 @@ def build_submit_batch_request(
|
|
278
278
|
|
279
279
|
comp: Literal["batch"] = kwargs.pop("comp", _params.pop("comp", "batch"))
|
280
280
|
multipart_content_type: Optional[str] = kwargs.pop("multipart_content_type", _headers.pop("Content-Type", None))
|
281
|
-
version: Literal["2025-
|
281
|
+
version: Literal["2025-07-05"] = kwargs.pop("version", _headers.pop("x-ms-version", "2025-07-05"))
|
282
282
|
accept = _headers.pop("Accept", "application/xml")
|
283
283
|
|
284
284
|
# Construct URL
|
@@ -321,7 +321,7 @@ def build_filter_blobs_request(
|
|
321
321
|
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
322
322
|
|
323
323
|
comp: Literal["blobs"] = kwargs.pop("comp", _params.pop("comp", "blobs"))
|
324
|
-
version: Literal["2025-
|
324
|
+
version: Literal["2025-07-05"] = kwargs.pop("version", _headers.pop("x-ms-version", "2025-07-05"))
|
325
325
|
accept = _headers.pop("Accept", "application/xml")
|
326
326
|
|
327
327
|
# Construct URL
|
@@ -381,7 +381,6 @@ class ServiceOperations:
|
|
381
381
|
request_id_parameter: Optional[str] = None,
|
382
382
|
**kwargs: Any
|
383
383
|
) -> None:
|
384
|
-
# pylint: disable=line-too-long
|
385
384
|
"""Sets properties for a storage account's Blob service endpoint, including properties for Storage
|
386
385
|
Analytics and CORS (Cross-Origin Resource Sharing) rules.
|
387
386
|
|
@@ -458,7 +457,6 @@ class ServiceOperations:
|
|
458
457
|
def get_properties(
|
459
458
|
self, timeout: Optional[int] = None, request_id_parameter: Optional[str] = None, **kwargs: Any
|
460
459
|
) -> _models.StorageServiceProperties:
|
461
|
-
# pylint: disable=line-too-long
|
462
460
|
"""gets the properties of a storage account's Blob service, including properties for Storage
|
463
461
|
Analytics and CORS (Cross-Origin Resource Sharing) rules.
|
464
462
|
|
@@ -532,7 +530,6 @@ class ServiceOperations:
|
|
532
530
|
def get_statistics(
|
533
531
|
self, timeout: Optional[int] = None, request_id_parameter: Optional[str] = None, **kwargs: Any
|
534
532
|
) -> _models.StorageServiceStats:
|
535
|
-
# pylint: disable=line-too-long
|
536
533
|
"""Retrieves statistics related to replication for the Blob service. It is only available on the
|
537
534
|
secondary location endpoint when read-access geo-redundant replication is enabled for the
|
538
535
|
storage account.
|
@@ -615,7 +612,6 @@ class ServiceOperations:
|
|
615
612
|
request_id_parameter: Optional[str] = None,
|
616
613
|
**kwargs: Any
|
617
614
|
) -> _models.ListContainersSegmentResponse:
|
618
|
-
# pylint: disable=line-too-long
|
619
615
|
"""The List Containers Segment operation returns a list of the containers under the specified
|
620
616
|
account.
|
621
617
|
|
@@ -715,7 +711,6 @@ class ServiceOperations:
|
|
715
711
|
request_id_parameter: Optional[str] = None,
|
716
712
|
**kwargs: Any
|
717
713
|
) -> _models.UserDelegationKey:
|
718
|
-
# pylint: disable=line-too-long
|
719
714
|
"""Retrieves a user delegation key for the Blob service. This is only a valid operation when using
|
720
715
|
bearer token authentication.
|
721
716
|
|
@@ -797,7 +792,6 @@ class ServiceOperations:
|
|
797
792
|
def get_account_info( # pylint: disable=inconsistent-return-statements
|
798
793
|
self, timeout: Optional[int] = None, request_id_parameter: Optional[str] = None, **kwargs: Any
|
799
794
|
) -> None:
|
800
|
-
# pylint: disable=line-too-long
|
801
795
|
"""Returns the sku name and account kind.
|
802
796
|
|
803
797
|
:param timeout: The timeout parameter is expressed in seconds. For more information, see
|
@@ -875,7 +869,6 @@ class ServiceOperations:
|
|
875
869
|
request_id_parameter: Optional[str] = None,
|
876
870
|
**kwargs: Any
|
877
871
|
) -> Iterator[bytes]:
|
878
|
-
# pylint: disable=line-too-long
|
879
872
|
"""The Batch operation allows multiple API calls to be embedded into a single HTTP request.
|
880
873
|
|
881
874
|
:param content_length: The length of the request. Required.
|
@@ -968,7 +961,6 @@ class ServiceOperations:
|
|
968
961
|
include: Optional[List[Union[str, _models.FilterBlobsIncludeItem]]] = None,
|
969
962
|
**kwargs: Any
|
970
963
|
) -> _models.FilterBlobSegment:
|
971
|
-
# pylint: disable=line-too-long
|
972
964
|
"""The Filter Blobs operation enables callers to list blobs across all containers whose tags match
|
973
965
|
a given search expression. Filter blobs searches across all containers within a storage
|
974
966
|
account but can be scoped within the expression to a single container.
|