azure-storage-blob 12.23.1__py3-none-any.whl → 12.24.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/_blob_client.py +34 -10
- azure/storage/blob/_blob_client_helpers.py +7 -3
- azure/storage/blob/_blob_service_client.py +1 -1
- azure/storage/blob/_container_client.py +2 -2
- azure/storage/blob/_container_client_helpers.py +4 -4
- azure/storage/blob/_deserialize.py +2 -2
- azure/storage/blob/_encryption.py +2 -0
- azure/storage/blob/_generated/_azure_blob_storage.py +1 -1
- azure/storage/blob/_generated/_configuration.py +2 -2
- azure/storage/blob/_generated/_serialization.py +265 -150
- 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 +22 -4
- azure/storage/blob/_generated/aio/operations/_blob_operations.py +116 -26
- azure/storage/blob/_generated/aio/operations/_block_blob_operations.py +40 -6
- azure/storage/blob/_generated/aio/operations/_container_operations.py +36 -18
- azure/storage/blob/_generated/aio/operations/_page_blob_operations.py +32 -9
- azure/storage/blob/_generated/aio/operations/_service_operations.py +16 -8
- azure/storage/blob/_generated/models/_azure_blob_storage_enums.py +1 -0
- azure/storage/blob/_generated/operations/_append_blob_operations.py +34 -8
- azure/storage/blob/_generated/operations/_blob_operations.py +166 -51
- azure/storage/blob/_generated/operations/_block_blob_operations.py +62 -12
- azure/storage/blob/_generated/operations/_container_operations.py +54 -36
- azure/storage/blob/_generated/operations/_page_blob_operations.py +49 -18
- azure/storage/blob/_generated/operations/_service_operations.py +24 -16
- azure/storage/blob/_list_blobs_helper.py +1 -1
- azure/storage/blob/_models.py +4 -3
- azure/storage/blob/_serialize.py +1 -0
- azure/storage/blob/_shared/avro/schema.py +1 -0
- azure/storage/blob/_shared/base_client.py +8 -8
- azure/storage/blob/_shared/base_client_async.py +5 -5
- azure/storage/blob/_shared/models.py +5 -2
- azure/storage/blob/_shared/policies.py +6 -7
- azure/storage/blob/_shared/policies_async.py +1 -1
- azure/storage/blob/_shared/request_handlers.py +2 -3
- azure/storage/blob/_shared/response_handlers.py +2 -2
- azure/storage/blob/_shared/uploads.py +4 -4
- azure/storage/blob/_shared/uploads_async.py +4 -4
- azure/storage/blob/_shared_access_signature.py +0 -1
- azure/storage/blob/_version.py +1 -1
- azure/storage/blob/aio/_blob_client_async.py +36 -13
- azure/storage/blob/aio/_blob_service_client_async.py +7 -3
- azure/storage/blob/aio/_container_client_async.py +4 -4
- azure/storage/blob/aio/_lease_async.py +1 -1
- azure/storage/blob/aio/_list_blobs_helper.py +1 -2
- azure/storage/blob/aio/_models.py +1 -2
- {azure_storage_blob-12.23.1.dist-info → azure_storage_blob-12.24.0.dist-info}/METADATA +9 -9
- azure_storage_blob-12.24.0.dist-info/RECORD +84 -0
- {azure_storage_blob-12.23.1.dist-info → azure_storage_blob-12.24.0.dist-info}/WHEEL +1 -1
- azure_storage_blob-12.23.1.dist-info/RECORD +0 -84
- {azure_storage_blob-12.23.1.dist-info → azure_storage_blob-12.24.0.dist-info}/LICENSE +0 -0
- {azure_storage_blob-12.23.1.dist-info → azure_storage_blob-12.24.0.dist-info}/top_level.txt +0 -0
@@ -49,6 +49,7 @@ def build_download_request(
|
|
49
49
|
lease_id: Optional[str] = None,
|
50
50
|
range_get_content_md5: Optional[bool] = None,
|
51
51
|
range_get_content_crc64: Optional[bool] = None,
|
52
|
+
structured_body_type: Optional[str] = None,
|
52
53
|
encryption_key: Optional[str] = None,
|
53
54
|
encryption_key_sha256: Optional[str] = None,
|
54
55
|
encryption_algorithm: Optional[Union[str, _models.EncryptionAlgorithmType]] = None,
|
@@ -63,7 +64,7 @@ def build_download_request(
|
|
63
64
|
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
64
65
|
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
65
66
|
|
66
|
-
version: Literal["
|
67
|
+
version: Literal["2025-01-05"] = kwargs.pop("version", _headers.pop("x-ms-version", "2025-01-05"))
|
67
68
|
accept = _headers.pop("Accept", "application/xml")
|
68
69
|
|
69
70
|
# Construct URL
|
@@ -95,6 +96,8 @@ def build_download_request(
|
|
95
96
|
_headers["x-ms-range-get-content-crc64"] = _SERIALIZER.header(
|
96
97
|
"range_get_content_crc64", range_get_content_crc64, "bool"
|
97
98
|
)
|
99
|
+
if structured_body_type is not None:
|
100
|
+
_headers["x-ms-structured-body"] = _SERIALIZER.header("structured_body_type", structured_body_type, "str")
|
98
101
|
if encryption_key is not None:
|
99
102
|
_headers["x-ms-encryption-key"] = _SERIALIZER.header("encryption_key", encryption_key, "str")
|
100
103
|
if encryption_key_sha256 is not None:
|
@@ -142,7 +145,7 @@ def build_get_properties_request(
|
|
142
145
|
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
143
146
|
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
144
147
|
|
145
|
-
version: Literal["
|
148
|
+
version: Literal["2025-01-05"] = kwargs.pop("version", _headers.pop("x-ms-version", "2025-01-05"))
|
146
149
|
accept = _headers.pop("Accept", "application/xml")
|
147
150
|
|
148
151
|
# Construct URL
|
@@ -210,7 +213,7 @@ def build_delete_request(
|
|
210
213
|
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
211
214
|
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
212
215
|
|
213
|
-
version: Literal["
|
216
|
+
version: Literal["2025-01-05"] = kwargs.pop("version", _headers.pop("x-ms-version", "2025-01-05"))
|
214
217
|
accept = _headers.pop("Accept", "application/xml")
|
215
218
|
|
216
219
|
# Construct URL
|
@@ -261,7 +264,7 @@ def build_undelete_request(
|
|
261
264
|
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
262
265
|
|
263
266
|
comp: Literal["undelete"] = kwargs.pop("comp", _params.pop("comp", "undelete"))
|
264
|
-
version: Literal["
|
267
|
+
version: Literal["2025-01-05"] = kwargs.pop("version", _headers.pop("x-ms-version", "2025-01-05"))
|
265
268
|
accept = _headers.pop("Accept", "application/xml")
|
266
269
|
|
267
270
|
# Construct URL
|
@@ -299,7 +302,7 @@ def build_set_expiry_request(
|
|
299
302
|
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
300
303
|
|
301
304
|
comp: Literal["expiry"] = kwargs.pop("comp", _params.pop("comp", "expiry"))
|
302
|
-
version: Literal["
|
305
|
+
version: Literal["2025-01-05"] = kwargs.pop("version", _headers.pop("x-ms-version", "2025-01-05"))
|
303
306
|
accept = _headers.pop("Accept", "application/xml")
|
304
307
|
|
305
308
|
# Construct URL
|
@@ -350,7 +353,7 @@ def build_set_http_headers_request(
|
|
350
353
|
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
351
354
|
|
352
355
|
comp: Literal["properties"] = kwargs.pop("comp", _params.pop("comp", "properties"))
|
353
|
-
version: Literal["
|
356
|
+
version: Literal["2025-01-05"] = kwargs.pop("version", _headers.pop("x-ms-version", "2025-01-05"))
|
354
357
|
accept = _headers.pop("Accept", "application/xml")
|
355
358
|
|
356
359
|
# Construct URL
|
@@ -413,13 +416,15 @@ def build_set_immutability_policy_request(
|
|
413
416
|
if_unmodified_since: Optional[datetime.datetime] = None,
|
414
417
|
immutability_policy_expiry: Optional[datetime.datetime] = None,
|
415
418
|
immutability_policy_mode: Optional[Union[str, _models.BlobImmutabilityPolicyMode]] = None,
|
419
|
+
snapshot: Optional[str] = None,
|
420
|
+
version_id: Optional[str] = None,
|
416
421
|
**kwargs: Any
|
417
422
|
) -> HttpRequest:
|
418
423
|
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
419
424
|
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
420
425
|
|
421
426
|
comp: Literal["immutabilityPolicies"] = kwargs.pop("comp", _params.pop("comp", "immutabilityPolicies"))
|
422
|
-
version: Literal["
|
427
|
+
version: Literal["2025-01-05"] = kwargs.pop("version", _headers.pop("x-ms-version", "2025-01-05"))
|
423
428
|
accept = _headers.pop("Accept", "application/xml")
|
424
429
|
|
425
430
|
# Construct URL
|
@@ -434,6 +439,10 @@ def build_set_immutability_policy_request(
|
|
434
439
|
_params["comp"] = _SERIALIZER.query("comp", comp, "str")
|
435
440
|
if timeout is not None:
|
436
441
|
_params["timeout"] = _SERIALIZER.query("timeout", timeout, "int", minimum=0)
|
442
|
+
if snapshot is not None:
|
443
|
+
_params["snapshot"] = _SERIALIZER.query("snapshot", snapshot, "str")
|
444
|
+
if version_id is not None:
|
445
|
+
_params["versionid"] = _SERIALIZER.query("version_id", version_id, "str")
|
437
446
|
|
438
447
|
# Construct headers
|
439
448
|
_headers["x-ms-version"] = _SERIALIZER.header("version", version, "str")
|
@@ -455,13 +464,19 @@ def build_set_immutability_policy_request(
|
|
455
464
|
|
456
465
|
|
457
466
|
def build_delete_immutability_policy_request(
|
458
|
-
url: str,
|
467
|
+
url: str,
|
468
|
+
*,
|
469
|
+
timeout: Optional[int] = None,
|
470
|
+
request_id_parameter: Optional[str] = None,
|
471
|
+
snapshot: Optional[str] = None,
|
472
|
+
version_id: Optional[str] = None,
|
473
|
+
**kwargs: Any
|
459
474
|
) -> HttpRequest:
|
460
475
|
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
461
476
|
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
462
477
|
|
463
478
|
comp: Literal["immutabilityPolicies"] = kwargs.pop("comp", _params.pop("comp", "immutabilityPolicies"))
|
464
|
-
version: Literal["
|
479
|
+
version: Literal["2025-01-05"] = kwargs.pop("version", _headers.pop("x-ms-version", "2025-01-05"))
|
465
480
|
accept = _headers.pop("Accept", "application/xml")
|
466
481
|
|
467
482
|
# Construct URL
|
@@ -476,6 +491,10 @@ def build_delete_immutability_policy_request(
|
|
476
491
|
_params["comp"] = _SERIALIZER.query("comp", comp, "str")
|
477
492
|
if timeout is not None:
|
478
493
|
_params["timeout"] = _SERIALIZER.query("timeout", timeout, "int", minimum=0)
|
494
|
+
if snapshot is not None:
|
495
|
+
_params["snapshot"] = _SERIALIZER.query("snapshot", snapshot, "str")
|
496
|
+
if version_id is not None:
|
497
|
+
_params["versionid"] = _SERIALIZER.query("version_id", version_id, "str")
|
479
498
|
|
480
499
|
# Construct headers
|
481
500
|
_headers["x-ms-version"] = _SERIALIZER.header("version", version, "str")
|
@@ -492,13 +511,15 @@ def build_set_legal_hold_request(
|
|
492
511
|
legal_hold: bool,
|
493
512
|
timeout: Optional[int] = None,
|
494
513
|
request_id_parameter: Optional[str] = None,
|
514
|
+
snapshot: Optional[str] = None,
|
515
|
+
version_id: Optional[str] = None,
|
495
516
|
**kwargs: Any
|
496
517
|
) -> HttpRequest:
|
497
518
|
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
498
519
|
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
499
520
|
|
500
521
|
comp: Literal["legalhold"] = kwargs.pop("comp", _params.pop("comp", "legalhold"))
|
501
|
-
version: Literal["
|
522
|
+
version: Literal["2025-01-05"] = kwargs.pop("version", _headers.pop("x-ms-version", "2025-01-05"))
|
502
523
|
accept = _headers.pop("Accept", "application/xml")
|
503
524
|
|
504
525
|
# Construct URL
|
@@ -513,6 +534,10 @@ def build_set_legal_hold_request(
|
|
513
534
|
_params["comp"] = _SERIALIZER.query("comp", comp, "str")
|
514
535
|
if timeout is not None:
|
515
536
|
_params["timeout"] = _SERIALIZER.query("timeout", timeout, "int", minimum=0)
|
537
|
+
if snapshot is not None:
|
538
|
+
_params["snapshot"] = _SERIALIZER.query("snapshot", snapshot, "str")
|
539
|
+
if version_id is not None:
|
540
|
+
_params["versionid"] = _SERIALIZER.query("version_id", version_id, "str")
|
516
541
|
|
517
542
|
# Construct headers
|
518
543
|
_headers["x-ms-version"] = _SERIALIZER.header("version", version, "str")
|
@@ -546,7 +571,7 @@ def build_set_metadata_request(
|
|
546
571
|
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
547
572
|
|
548
573
|
comp: Literal["metadata"] = kwargs.pop("comp", _params.pop("comp", "metadata"))
|
549
|
-
version: Literal["
|
574
|
+
version: Literal["2025-01-05"] = kwargs.pop("version", _headers.pop("x-ms-version", "2025-01-05"))
|
550
575
|
accept = _headers.pop("Accept", "application/xml")
|
551
576
|
|
552
577
|
# Construct URL
|
@@ -614,7 +639,7 @@ def build_acquire_lease_request(
|
|
614
639
|
|
615
640
|
comp: Literal["lease"] = kwargs.pop("comp", _params.pop("comp", "lease"))
|
616
641
|
action: Literal["acquire"] = kwargs.pop("action", _headers.pop("x-ms-lease-action", "acquire"))
|
617
|
-
version: Literal["
|
642
|
+
version: Literal["2025-01-05"] = kwargs.pop("version", _headers.pop("x-ms-version", "2025-01-05"))
|
618
643
|
accept = _headers.pop("Accept", "application/xml")
|
619
644
|
|
620
645
|
# Construct URL
|
@@ -672,7 +697,7 @@ def build_release_lease_request(
|
|
672
697
|
|
673
698
|
comp: Literal["lease"] = kwargs.pop("comp", _params.pop("comp", "lease"))
|
674
699
|
action: Literal["release"] = kwargs.pop("action", _headers.pop("x-ms-lease-action", "release"))
|
675
|
-
version: Literal["
|
700
|
+
version: Literal["2025-01-05"] = kwargs.pop("version", _headers.pop("x-ms-version", "2025-01-05"))
|
676
701
|
accept = _headers.pop("Accept", "application/xml")
|
677
702
|
|
678
703
|
# Construct URL
|
@@ -727,7 +752,7 @@ def build_renew_lease_request(
|
|
727
752
|
|
728
753
|
comp: Literal["lease"] = kwargs.pop("comp", _params.pop("comp", "lease"))
|
729
754
|
action: Literal["renew"] = kwargs.pop("action", _headers.pop("x-ms-lease-action", "renew"))
|
730
|
-
version: Literal["
|
755
|
+
version: Literal["2025-01-05"] = kwargs.pop("version", _headers.pop("x-ms-version", "2025-01-05"))
|
731
756
|
accept = _headers.pop("Accept", "application/xml")
|
732
757
|
|
733
758
|
# Construct URL
|
@@ -783,7 +808,7 @@ def build_change_lease_request(
|
|
783
808
|
|
784
809
|
comp: Literal["lease"] = kwargs.pop("comp", _params.pop("comp", "lease"))
|
785
810
|
action: Literal["change"] = kwargs.pop("action", _headers.pop("x-ms-lease-action", "change"))
|
786
|
-
version: Literal["
|
811
|
+
version: Literal["2025-01-05"] = kwargs.pop("version", _headers.pop("x-ms-version", "2025-01-05"))
|
787
812
|
accept = _headers.pop("Accept", "application/xml")
|
788
813
|
|
789
814
|
# Construct URL
|
@@ -839,7 +864,7 @@ def build_break_lease_request(
|
|
839
864
|
|
840
865
|
comp: Literal["lease"] = kwargs.pop("comp", _params.pop("comp", "lease"))
|
841
866
|
action: Literal["break"] = kwargs.pop("action", _headers.pop("x-ms-lease-action", "break"))
|
842
|
-
version: Literal["
|
867
|
+
version: Literal["2025-01-05"] = kwargs.pop("version", _headers.pop("x-ms-version", "2025-01-05"))
|
843
868
|
accept = _headers.pop("Accept", "application/xml")
|
844
869
|
|
845
870
|
# Construct URL
|
@@ -899,7 +924,7 @@ def build_create_snapshot_request(
|
|
899
924
|
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
900
925
|
|
901
926
|
comp: Literal["snapshot"] = kwargs.pop("comp", _params.pop("comp", "snapshot"))
|
902
|
-
version: Literal["
|
927
|
+
version: Literal["2025-01-05"] = kwargs.pop("version", _headers.pop("x-ms-version", "2025-01-05"))
|
903
928
|
accept = _headers.pop("Accept", "application/xml")
|
904
929
|
|
905
930
|
# Construct URL
|
@@ -978,7 +1003,7 @@ def build_start_copy_from_url_request(
|
|
978
1003
|
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
979
1004
|
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
980
1005
|
|
981
|
-
version: Literal["
|
1006
|
+
version: Literal["2025-01-05"] = kwargs.pop("version", _headers.pop("x-ms-version", "2025-01-05"))
|
982
1007
|
accept = _headers.pop("Accept", "application/xml")
|
983
1008
|
|
984
1009
|
# Construct URL
|
@@ -1081,7 +1106,7 @@ def build_copy_from_url_request(
|
|
1081
1106
|
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
1082
1107
|
|
1083
1108
|
x_ms_requires_sync: Literal["true"] = kwargs.pop("x_ms_requires_sync", _headers.pop("x-ms-requires-sync", "true"))
|
1084
|
-
version: Literal["
|
1109
|
+
version: Literal["2025-01-05"] = kwargs.pop("version", _headers.pop("x-ms-version", "2025-01-05"))
|
1085
1110
|
accept = _headers.pop("Accept", "application/xml")
|
1086
1111
|
|
1087
1112
|
# Construct URL
|
@@ -1173,7 +1198,7 @@ def build_abort_copy_from_url_request(
|
|
1173
1198
|
copy_action_abort_constant: Literal["abort"] = kwargs.pop(
|
1174
1199
|
"copy_action_abort_constant", _headers.pop("x-ms-copy-action", "abort")
|
1175
1200
|
)
|
1176
|
-
version: Literal["
|
1201
|
+
version: Literal["2025-01-05"] = kwargs.pop("version", _headers.pop("x-ms-version", "2025-01-05"))
|
1177
1202
|
accept = _headers.pop("Accept", "application/xml")
|
1178
1203
|
|
1179
1204
|
# Construct URL
|
@@ -1219,7 +1244,7 @@ def build_set_tier_request(
|
|
1219
1244
|
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
1220
1245
|
|
1221
1246
|
comp: Literal["tier"] = kwargs.pop("comp", _params.pop("comp", "tier"))
|
1222
|
-
version: Literal["
|
1247
|
+
version: Literal["2025-01-05"] = kwargs.pop("version", _headers.pop("x-ms-version", "2025-01-05"))
|
1223
1248
|
accept = _headers.pop("Accept", "application/xml")
|
1224
1249
|
|
1225
1250
|
# Construct URL
|
@@ -1263,7 +1288,7 @@ def build_get_account_info_request(
|
|
1263
1288
|
|
1264
1289
|
restype: Literal["account"] = kwargs.pop("restype", _params.pop("restype", "account"))
|
1265
1290
|
comp: Literal["properties"] = kwargs.pop("comp", _params.pop("comp", "properties"))
|
1266
|
-
version: Literal["
|
1291
|
+
version: Literal["2025-01-05"] = kwargs.pop("version", _headers.pop("x-ms-version", "2025-01-05"))
|
1267
1292
|
accept = _headers.pop("Accept", "application/xml")
|
1268
1293
|
|
1269
1294
|
# Construct URL
|
@@ -1312,7 +1337,7 @@ def build_query_request(
|
|
1312
1337
|
|
1313
1338
|
comp: Literal["query"] = kwargs.pop("comp", _params.pop("comp", "query"))
|
1314
1339
|
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
1315
|
-
version: Literal["
|
1340
|
+
version: Literal["2025-01-05"] = kwargs.pop("version", _headers.pop("x-ms-version", "2025-01-05"))
|
1316
1341
|
accept = _headers.pop("Accept", "application/xml")
|
1317
1342
|
|
1318
1343
|
# Construct URL
|
@@ -1376,7 +1401,7 @@ def build_get_tags_request(
|
|
1376
1401
|
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
1377
1402
|
|
1378
1403
|
comp: Literal["tags"] = kwargs.pop("comp", _params.pop("comp", "tags"))
|
1379
|
-
version: Literal["
|
1404
|
+
version: Literal["2025-01-05"] = kwargs.pop("version", _headers.pop("x-ms-version", "2025-01-05"))
|
1380
1405
|
accept = _headers.pop("Accept", "application/xml")
|
1381
1406
|
|
1382
1407
|
# Construct URL
|
@@ -1427,7 +1452,7 @@ def build_set_tags_request(
|
|
1427
1452
|
|
1428
1453
|
comp: Literal["tags"] = kwargs.pop("comp", _params.pop("comp", "tags"))
|
1429
1454
|
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
1430
|
-
version: Literal["
|
1455
|
+
version: Literal["2025-01-05"] = kwargs.pop("version", _headers.pop("x-ms-version", "2025-01-05"))
|
1431
1456
|
accept = _headers.pop("Accept", "application/xml")
|
1432
1457
|
|
1433
1458
|
# Construct URL
|
@@ -1496,12 +1521,14 @@ class BlobOperations: # pylint: disable=too-many-public-methods
|
|
1496
1521
|
range: Optional[str] = None,
|
1497
1522
|
range_get_content_md5: Optional[bool] = None,
|
1498
1523
|
range_get_content_crc64: Optional[bool] = None,
|
1524
|
+
structured_body_type: Optional[str] = None,
|
1499
1525
|
request_id_parameter: Optional[str] = None,
|
1500
1526
|
lease_access_conditions: Optional[_models.LeaseAccessConditions] = None,
|
1501
1527
|
cpk_info: Optional[_models.CpkInfo] = None,
|
1502
1528
|
modified_access_conditions: Optional[_models.ModifiedAccessConditions] = None,
|
1503
1529
|
**kwargs: Any
|
1504
1530
|
) -> Iterator[bytes]:
|
1531
|
+
# pylint: disable=line-too-long
|
1505
1532
|
"""The Download operation reads or downloads a blob from the system, including its metadata and
|
1506
1533
|
properties. You can also call Download to read a snapshot.
|
1507
1534
|
|
@@ -1530,6 +1557,9 @@ class BlobOperations: # pylint: disable=too-many-public-methods
|
|
1530
1557
|
service returns the CRC64 hash for the range, as long as the range is less than or equal to 4
|
1531
1558
|
MB in size. Default value is None.
|
1532
1559
|
:type range_get_content_crc64: bool
|
1560
|
+
:param structured_body_type: Specifies the response content should be returned as a structured
|
1561
|
+
message and specifies the message schema version and properties. Default value is None.
|
1562
|
+
:type structured_body_type: str
|
1533
1563
|
:param request_id_parameter: Provides a client-generated, opaque value with a 1 KB character
|
1534
1564
|
limit that is recorded in the analytics logs when storage analytics logging is enabled. Default
|
1535
1565
|
value is None.
|
@@ -1544,7 +1574,7 @@ class BlobOperations: # pylint: disable=too-many-public-methods
|
|
1544
1574
|
:rtype: Iterator[bytes]
|
1545
1575
|
:raises ~azure.core.exceptions.HttpResponseError:
|
1546
1576
|
"""
|
1547
|
-
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
1577
|
+
error_map: MutableMapping[int, Type[HttpResponseError]] = { # pylint: disable=unsubscriptable-object
|
1548
1578
|
401: ClientAuthenticationError,
|
1549
1579
|
404: ResourceNotFoundError,
|
1550
1580
|
409: ResourceExistsError,
|
@@ -1588,6 +1618,7 @@ class BlobOperations: # pylint: disable=too-many-public-methods
|
|
1588
1618
|
lease_id=_lease_id,
|
1589
1619
|
range_get_content_md5=range_get_content_md5,
|
1590
1620
|
range_get_content_crc64=range_get_content_crc64,
|
1621
|
+
structured_body_type=structured_body_type,
|
1591
1622
|
encryption_key=_encryption_key,
|
1592
1623
|
encryption_key_sha256=_encryption_key_sha256,
|
1593
1624
|
encryption_algorithm=_encryption_algorithm,
|
@@ -1699,6 +1730,12 @@ class BlobOperations: # pylint: disable=too-many-public-methods
|
|
1699
1730
|
"str", response.headers.get("x-ms-immutability-policy-mode")
|
1700
1731
|
)
|
1701
1732
|
response_headers["x-ms-legal-hold"] = self._deserialize("bool", response.headers.get("x-ms-legal-hold"))
|
1733
|
+
response_headers["x-ms-structured-body"] = self._deserialize(
|
1734
|
+
"str", response.headers.get("x-ms-structured-body")
|
1735
|
+
)
|
1736
|
+
response_headers["x-ms-structured-content-length"] = self._deserialize(
|
1737
|
+
"int", response.headers.get("x-ms-structured-content-length")
|
1738
|
+
)
|
1702
1739
|
|
1703
1740
|
if response.status_code == 206:
|
1704
1741
|
response_headers["Last-Modified"] = self._deserialize("rfc-1123", response.headers.get("Last-Modified"))
|
@@ -1781,6 +1818,12 @@ class BlobOperations: # pylint: disable=too-many-public-methods
|
|
1781
1818
|
"str", response.headers.get("x-ms-immutability-policy-mode")
|
1782
1819
|
)
|
1783
1820
|
response_headers["x-ms-legal-hold"] = self._deserialize("bool", response.headers.get("x-ms-legal-hold"))
|
1821
|
+
response_headers["x-ms-structured-body"] = self._deserialize(
|
1822
|
+
"str", response.headers.get("x-ms-structured-body")
|
1823
|
+
)
|
1824
|
+
response_headers["x-ms-structured-content-length"] = self._deserialize(
|
1825
|
+
"int", response.headers.get("x-ms-structured-content-length")
|
1826
|
+
)
|
1784
1827
|
|
1785
1828
|
deserialized = response.stream_download(self._client._pipeline, decompress=_decompress)
|
1786
1829
|
|
@@ -1801,6 +1844,7 @@ class BlobOperations: # pylint: disable=too-many-public-methods
|
|
1801
1844
|
modified_access_conditions: Optional[_models.ModifiedAccessConditions] = None,
|
1802
1845
|
**kwargs: Any
|
1803
1846
|
) -> None:
|
1847
|
+
# pylint: disable=line-too-long
|
1804
1848
|
"""The Get Properties operation returns all user-defined metadata, standard HTTP properties, and
|
1805
1849
|
system properties for the blob. It does not return the content of the blob.
|
1806
1850
|
|
@@ -1833,7 +1877,7 @@ class BlobOperations: # pylint: disable=too-many-public-methods
|
|
1833
1877
|
:rtype: None
|
1834
1878
|
:raises ~azure.core.exceptions.HttpResponseError:
|
1835
1879
|
"""
|
1836
|
-
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
1880
|
+
error_map: MutableMapping[int, Type[HttpResponseError]] = { # pylint: disable=unsubscriptable-object
|
1837
1881
|
401: ClientAuthenticationError,
|
1838
1882
|
404: ResourceNotFoundError,
|
1839
1883
|
409: ResourceExistsError,
|
@@ -2004,6 +2048,7 @@ class BlobOperations: # pylint: disable=too-many-public-methods
|
|
2004
2048
|
modified_access_conditions: Optional[_models.ModifiedAccessConditions] = None,
|
2005
2049
|
**kwargs: Any
|
2006
2050
|
) -> None:
|
2051
|
+
# pylint: disable=line-too-long
|
2007
2052
|
"""If the storage account's soft delete feature is disabled then, when a blob is deleted, it is
|
2008
2053
|
permanently removed from the storage account. If the storage account's soft delete feature is
|
2009
2054
|
enabled, then, when a blob is deleted, it is marked for deletion and becomes inaccessible
|
@@ -2053,7 +2098,7 @@ class BlobOperations: # pylint: disable=too-many-public-methods
|
|
2053
2098
|
:rtype: None
|
2054
2099
|
:raises ~azure.core.exceptions.HttpResponseError:
|
2055
2100
|
"""
|
2056
|
-
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
2101
|
+
error_map: MutableMapping[int, Type[HttpResponseError]] = { # pylint: disable=unsubscriptable-object
|
2057
2102
|
401: ClientAuthenticationError,
|
2058
2103
|
404: ResourceNotFoundError,
|
2059
2104
|
409: ResourceExistsError,
|
@@ -2128,6 +2173,7 @@ class BlobOperations: # pylint: disable=too-many-public-methods
|
|
2128
2173
|
def undelete( # pylint: disable=inconsistent-return-statements
|
2129
2174
|
self, timeout: Optional[int] = None, request_id_parameter: Optional[str] = None, **kwargs: Any
|
2130
2175
|
) -> None:
|
2176
|
+
# pylint: disable=line-too-long
|
2131
2177
|
"""Undelete a blob that was previously soft deleted.
|
2132
2178
|
|
2133
2179
|
:param timeout: The timeout parameter is expressed in seconds. For more information, see
|
@@ -2143,7 +2189,7 @@ class BlobOperations: # pylint: disable=too-many-public-methods
|
|
2143
2189
|
:rtype: None
|
2144
2190
|
:raises ~azure.core.exceptions.HttpResponseError:
|
2145
2191
|
"""
|
2146
|
-
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
2192
|
+
error_map: MutableMapping[int, Type[HttpResponseError]] = { # pylint: disable=unsubscriptable-object
|
2147
2193
|
401: ClientAuthenticationError,
|
2148
2194
|
404: ResourceNotFoundError,
|
2149
2195
|
409: ResourceExistsError,
|
@@ -2200,6 +2246,7 @@ class BlobOperations: # pylint: disable=too-many-public-methods
|
|
2200
2246
|
expires_on: Optional[str] = None,
|
2201
2247
|
**kwargs: Any
|
2202
2248
|
) -> None:
|
2249
|
+
# pylint: disable=line-too-long
|
2203
2250
|
"""Sets the time a blob will expire and be deleted.
|
2204
2251
|
|
2205
2252
|
:param expiry_options: Required. Indicates mode of the expiry time. Known values are:
|
@@ -2220,7 +2267,7 @@ class BlobOperations: # pylint: disable=too-many-public-methods
|
|
2220
2267
|
:rtype: None
|
2221
2268
|
:raises ~azure.core.exceptions.HttpResponseError:
|
2222
2269
|
"""
|
2223
|
-
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
2270
|
+
error_map: MutableMapping[int, Type[HttpResponseError]] = { # pylint: disable=unsubscriptable-object
|
2224
2271
|
401: ClientAuthenticationError,
|
2225
2272
|
404: ResourceNotFoundError,
|
2226
2273
|
409: ResourceExistsError,
|
@@ -2282,6 +2329,7 @@ class BlobOperations: # pylint: disable=too-many-public-methods
|
|
2282
2329
|
modified_access_conditions: Optional[_models.ModifiedAccessConditions] = None,
|
2283
2330
|
**kwargs: Any
|
2284
2331
|
) -> None:
|
2332
|
+
# pylint: disable=line-too-long
|
2285
2333
|
"""The Set HTTP Headers operation sets system properties on the blob.
|
2286
2334
|
|
2287
2335
|
:param timeout: The timeout parameter is expressed in seconds. For more information, see
|
@@ -2303,7 +2351,7 @@ class BlobOperations: # pylint: disable=too-many-public-methods
|
|
2303
2351
|
:rtype: None
|
2304
2352
|
:raises ~azure.core.exceptions.HttpResponseError:
|
2305
2353
|
"""
|
2306
|
-
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
2354
|
+
error_map: MutableMapping[int, Type[HttpResponseError]] = { # pylint: disable=unsubscriptable-object
|
2307
2355
|
401: ClientAuthenticationError,
|
2308
2356
|
404: ResourceNotFoundError,
|
2309
2357
|
409: ResourceExistsError,
|
@@ -2403,9 +2451,12 @@ class BlobOperations: # pylint: disable=too-many-public-methods
|
|
2403
2451
|
request_id_parameter: Optional[str] = None,
|
2404
2452
|
immutability_policy_expiry: Optional[datetime.datetime] = None,
|
2405
2453
|
immutability_policy_mode: Optional[Union[str, _models.BlobImmutabilityPolicyMode]] = None,
|
2454
|
+
snapshot: Optional[str] = None,
|
2455
|
+
version_id: Optional[str] = None,
|
2406
2456
|
modified_access_conditions: Optional[_models.ModifiedAccessConditions] = None,
|
2407
2457
|
**kwargs: Any
|
2408
2458
|
) -> None:
|
2459
|
+
# pylint: disable=line-too-long
|
2409
2460
|
"""The Set Immutability Policy operation sets the immutability policy on the blob.
|
2410
2461
|
|
2411
2462
|
:param timeout: The timeout parameter is expressed in seconds. For more information, see
|
@@ -2423,13 +2474,23 @@ class BlobOperations: # pylint: disable=too-many-public-methods
|
|
2423
2474
|
:param immutability_policy_mode: Specifies the immutability policy mode to set on the blob.
|
2424
2475
|
Known values are: "Mutable", "Unlocked", and "Locked". Default value is None.
|
2425
2476
|
:type immutability_policy_mode: str or ~azure.storage.blob.models.BlobImmutabilityPolicyMode
|
2477
|
+
:param snapshot: The snapshot parameter is an opaque DateTime value that, when present,
|
2478
|
+
specifies the blob snapshot to retrieve. For more information on working with blob snapshots,
|
2479
|
+
see :code:`<a
|
2480
|
+
href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/creating-a-snapshot-of-a-blob">Creating
|
2481
|
+
a Snapshot of a Blob.</a>`. Default value is None.
|
2482
|
+
:type snapshot: str
|
2483
|
+
:param version_id: The version id parameter is an opaque DateTime value that, when present,
|
2484
|
+
specifies the version of the blob to operate on. It's for service version 2019-10-10 and newer.
|
2485
|
+
Default value is None.
|
2486
|
+
:type version_id: str
|
2426
2487
|
:param modified_access_conditions: Parameter group. Default value is None.
|
2427
2488
|
:type modified_access_conditions: ~azure.storage.blob.models.ModifiedAccessConditions
|
2428
2489
|
:return: None or the result of cls(response)
|
2429
2490
|
:rtype: None
|
2430
2491
|
:raises ~azure.core.exceptions.HttpResponseError:
|
2431
2492
|
"""
|
2432
|
-
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
2493
|
+
error_map: MutableMapping[int, Type[HttpResponseError]] = { # pylint: disable=unsubscriptable-object
|
2433
2494
|
401: ClientAuthenticationError,
|
2434
2495
|
404: ResourceNotFoundError,
|
2435
2496
|
409: ResourceExistsError,
|
@@ -2454,6 +2515,8 @@ class BlobOperations: # pylint: disable=too-many-public-methods
|
|
2454
2515
|
if_unmodified_since=_if_unmodified_since,
|
2455
2516
|
immutability_policy_expiry=immutability_policy_expiry,
|
2456
2517
|
immutability_policy_mode=immutability_policy_mode,
|
2518
|
+
snapshot=snapshot,
|
2519
|
+
version_id=version_id,
|
2457
2520
|
comp=comp,
|
2458
2521
|
version=self._config.version,
|
2459
2522
|
headers=_headers,
|
@@ -2492,8 +2555,14 @@ class BlobOperations: # pylint: disable=too-many-public-methods
|
|
2492
2555
|
|
2493
2556
|
@distributed_trace
|
2494
2557
|
def delete_immutability_policy( # pylint: disable=inconsistent-return-statements
|
2495
|
-
self,
|
2558
|
+
self,
|
2559
|
+
timeout: Optional[int] = None,
|
2560
|
+
request_id_parameter: Optional[str] = None,
|
2561
|
+
snapshot: Optional[str] = None,
|
2562
|
+
version_id: Optional[str] = None,
|
2563
|
+
**kwargs: Any
|
2496
2564
|
) -> None:
|
2565
|
+
# pylint: disable=line-too-long
|
2497
2566
|
"""The Delete Immutability Policy operation deletes the immutability policy on the blob.
|
2498
2567
|
|
2499
2568
|
:param timeout: The timeout parameter is expressed in seconds. For more information, see
|
@@ -2505,11 +2574,21 @@ class BlobOperations: # pylint: disable=too-many-public-methods
|
|
2505
2574
|
limit that is recorded in the analytics logs when storage analytics logging is enabled. Default
|
2506
2575
|
value is None.
|
2507
2576
|
:type request_id_parameter: str
|
2577
|
+
:param snapshot: The snapshot parameter is an opaque DateTime value that, when present,
|
2578
|
+
specifies the blob snapshot to retrieve. For more information on working with blob snapshots,
|
2579
|
+
see :code:`<a
|
2580
|
+
href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/creating-a-snapshot-of-a-blob">Creating
|
2581
|
+
a Snapshot of a Blob.</a>`. Default value is None.
|
2582
|
+
:type snapshot: str
|
2583
|
+
:param version_id: The version id parameter is an opaque DateTime value that, when present,
|
2584
|
+
specifies the version of the blob to operate on. It's for service version 2019-10-10 and newer.
|
2585
|
+
Default value is None.
|
2586
|
+
:type version_id: str
|
2508
2587
|
:return: None or the result of cls(response)
|
2509
2588
|
:rtype: None
|
2510
2589
|
:raises ~azure.core.exceptions.HttpResponseError:
|
2511
2590
|
"""
|
2512
|
-
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
2591
|
+
error_map: MutableMapping[int, Type[HttpResponseError]] = { # pylint: disable=unsubscriptable-object
|
2513
2592
|
401: ClientAuthenticationError,
|
2514
2593
|
404: ResourceNotFoundError,
|
2515
2594
|
409: ResourceExistsError,
|
@@ -2527,6 +2606,8 @@ class BlobOperations: # pylint: disable=too-many-public-methods
|
|
2527
2606
|
url=self._config.url,
|
2528
2607
|
timeout=timeout,
|
2529
2608
|
request_id_parameter=request_id_parameter,
|
2609
|
+
snapshot=snapshot,
|
2610
|
+
version_id=version_id,
|
2530
2611
|
comp=comp,
|
2531
2612
|
version=self._config.version,
|
2532
2613
|
headers=_headers,
|
@@ -2559,8 +2640,15 @@ class BlobOperations: # pylint: disable=too-many-public-methods
|
|
2559
2640
|
|
2560
2641
|
@distributed_trace
|
2561
2642
|
def set_legal_hold( # pylint: disable=inconsistent-return-statements
|
2562
|
-
self,
|
2643
|
+
self,
|
2644
|
+
legal_hold: bool,
|
2645
|
+
timeout: Optional[int] = None,
|
2646
|
+
request_id_parameter: Optional[str] = None,
|
2647
|
+
snapshot: Optional[str] = None,
|
2648
|
+
version_id: Optional[str] = None,
|
2649
|
+
**kwargs: Any
|
2563
2650
|
) -> None:
|
2651
|
+
# pylint: disable=line-too-long
|
2564
2652
|
"""The Set Legal Hold operation sets a legal hold on the blob.
|
2565
2653
|
|
2566
2654
|
:param legal_hold: Specified if a legal hold should be set on the blob. Required.
|
@@ -2574,11 +2662,21 @@ class BlobOperations: # pylint: disable=too-many-public-methods
|
|
2574
2662
|
limit that is recorded in the analytics logs when storage analytics logging is enabled. Default
|
2575
2663
|
value is None.
|
2576
2664
|
:type request_id_parameter: str
|
2665
|
+
:param snapshot: The snapshot parameter is an opaque DateTime value that, when present,
|
2666
|
+
specifies the blob snapshot to retrieve. For more information on working with blob snapshots,
|
2667
|
+
see :code:`<a
|
2668
|
+
href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/creating-a-snapshot-of-a-blob">Creating
|
2669
|
+
a Snapshot of a Blob.</a>`. Default value is None.
|
2670
|
+
:type snapshot: str
|
2671
|
+
:param version_id: The version id parameter is an opaque DateTime value that, when present,
|
2672
|
+
specifies the version of the blob to operate on. It's for service version 2019-10-10 and newer.
|
2673
|
+
Default value is None.
|
2674
|
+
:type version_id: str
|
2577
2675
|
:return: None or the result of cls(response)
|
2578
2676
|
:rtype: None
|
2579
2677
|
:raises ~azure.core.exceptions.HttpResponseError:
|
2580
2678
|
"""
|
2581
|
-
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
2679
|
+
error_map: MutableMapping[int, Type[HttpResponseError]] = { # pylint: disable=unsubscriptable-object
|
2582
2680
|
401: ClientAuthenticationError,
|
2583
2681
|
404: ResourceNotFoundError,
|
2584
2682
|
409: ResourceExistsError,
|
@@ -2597,6 +2695,8 @@ class BlobOperations: # pylint: disable=too-many-public-methods
|
|
2597
2695
|
legal_hold=legal_hold,
|
2598
2696
|
timeout=timeout,
|
2599
2697
|
request_id_parameter=request_id_parameter,
|
2698
|
+
snapshot=snapshot,
|
2699
|
+
version_id=version_id,
|
2600
2700
|
comp=comp,
|
2601
2701
|
version=self._config.version,
|
2602
2702
|
headers=_headers,
|
@@ -2640,6 +2740,7 @@ class BlobOperations: # pylint: disable=too-many-public-methods
|
|
2640
2740
|
modified_access_conditions: Optional[_models.ModifiedAccessConditions] = None,
|
2641
2741
|
**kwargs: Any
|
2642
2742
|
) -> None:
|
2743
|
+
# pylint: disable=line-too-long
|
2643
2744
|
"""The Set Blob Metadata operation sets user-defined metadata for the specified blob as one or
|
2644
2745
|
more name-value pairs.
|
2645
2746
|
|
@@ -2672,7 +2773,7 @@ class BlobOperations: # pylint: disable=too-many-public-methods
|
|
2672
2773
|
:rtype: None
|
2673
2774
|
:raises ~azure.core.exceptions.HttpResponseError:
|
2674
2775
|
"""
|
2675
|
-
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
2776
|
+
error_map: MutableMapping[int, Type[HttpResponseError]] = { # pylint: disable=unsubscriptable-object
|
2676
2777
|
401: ClientAuthenticationError,
|
2677
2778
|
404: ResourceNotFoundError,
|
2678
2779
|
409: ResourceExistsError,
|
@@ -2778,6 +2879,7 @@ class BlobOperations: # pylint: disable=too-many-public-methods
|
|
2778
2879
|
modified_access_conditions: Optional[_models.ModifiedAccessConditions] = None,
|
2779
2880
|
**kwargs: Any
|
2780
2881
|
) -> None:
|
2882
|
+
# pylint: disable=line-too-long
|
2781
2883
|
"""[Update] The Lease Blob operation establishes and manages a lock on a blob for write and delete
|
2782
2884
|
operations.
|
2783
2885
|
|
@@ -2804,7 +2906,7 @@ class BlobOperations: # pylint: disable=too-many-public-methods
|
|
2804
2906
|
:rtype: None
|
2805
2907
|
:raises ~azure.core.exceptions.HttpResponseError:
|
2806
2908
|
"""
|
2807
|
-
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
2909
|
+
error_map: MutableMapping[int, Type[HttpResponseError]] = { # pylint: disable=unsubscriptable-object
|
2808
2910
|
401: ClientAuthenticationError,
|
2809
2911
|
404: ResourceNotFoundError,
|
2810
2912
|
409: ResourceExistsError,
|
@@ -2885,6 +2987,7 @@ class BlobOperations: # pylint: disable=too-many-public-methods
|
|
2885
2987
|
modified_access_conditions: Optional[_models.ModifiedAccessConditions] = None,
|
2886
2988
|
**kwargs: Any
|
2887
2989
|
) -> None:
|
2990
|
+
# pylint: disable=line-too-long
|
2888
2991
|
"""[Update] The Lease Blob operation establishes and manages a lock on a blob for write and delete
|
2889
2992
|
operations.
|
2890
2993
|
|
@@ -2905,7 +3008,7 @@ class BlobOperations: # pylint: disable=too-many-public-methods
|
|
2905
3008
|
:rtype: None
|
2906
3009
|
:raises ~azure.core.exceptions.HttpResponseError:
|
2907
3010
|
"""
|
2908
|
-
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
3011
|
+
error_map: MutableMapping[int, Type[HttpResponseError]] = { # pylint: disable=unsubscriptable-object
|
2909
3012
|
401: ClientAuthenticationError,
|
2910
3013
|
404: ResourceNotFoundError,
|
2911
3014
|
409: ResourceExistsError,
|
@@ -2984,6 +3087,7 @@ class BlobOperations: # pylint: disable=too-many-public-methods
|
|
2984
3087
|
modified_access_conditions: Optional[_models.ModifiedAccessConditions] = None,
|
2985
3088
|
**kwargs: Any
|
2986
3089
|
) -> None:
|
3090
|
+
# pylint: disable=line-too-long
|
2987
3091
|
"""[Update] The Lease Blob operation establishes and manages a lock on a blob for write and delete
|
2988
3092
|
operations.
|
2989
3093
|
|
@@ -3004,7 +3108,7 @@ class BlobOperations: # pylint: disable=too-many-public-methods
|
|
3004
3108
|
:rtype: None
|
3005
3109
|
:raises ~azure.core.exceptions.HttpResponseError:
|
3006
3110
|
"""
|
3007
|
-
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
3111
|
+
error_map: MutableMapping[int, Type[HttpResponseError]] = { # pylint: disable=unsubscriptable-object
|
3008
3112
|
401: ClientAuthenticationError,
|
3009
3113
|
404: ResourceNotFoundError,
|
3010
3114
|
409: ResourceExistsError,
|
@@ -3085,6 +3189,7 @@ class BlobOperations: # pylint: disable=too-many-public-methods
|
|
3085
3189
|
modified_access_conditions: Optional[_models.ModifiedAccessConditions] = None,
|
3086
3190
|
**kwargs: Any
|
3087
3191
|
) -> None:
|
3192
|
+
# pylint: disable=line-too-long
|
3088
3193
|
"""[Update] The Lease Blob operation establishes and manages a lock on a blob for write and delete
|
3089
3194
|
operations.
|
3090
3195
|
|
@@ -3109,7 +3214,7 @@ class BlobOperations: # pylint: disable=too-many-public-methods
|
|
3109
3214
|
:rtype: None
|
3110
3215
|
:raises ~azure.core.exceptions.HttpResponseError:
|
3111
3216
|
"""
|
3112
|
-
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
3217
|
+
error_map: MutableMapping[int, Type[HttpResponseError]] = { # pylint: disable=unsubscriptable-object
|
3113
3218
|
401: ClientAuthenticationError,
|
3114
3219
|
404: ResourceNotFoundError,
|
3115
3220
|
409: ResourceExistsError,
|
@@ -3190,6 +3295,7 @@ class BlobOperations: # pylint: disable=too-many-public-methods
|
|
3190
3295
|
modified_access_conditions: Optional[_models.ModifiedAccessConditions] = None,
|
3191
3296
|
**kwargs: Any
|
3192
3297
|
) -> None:
|
3298
|
+
# pylint: disable=line-too-long
|
3193
3299
|
"""[Update] The Lease Blob operation establishes and manages a lock on a blob for write and delete
|
3194
3300
|
operations.
|
3195
3301
|
|
@@ -3216,7 +3322,7 @@ class BlobOperations: # pylint: disable=too-many-public-methods
|
|
3216
3322
|
:rtype: None
|
3217
3323
|
:raises ~azure.core.exceptions.HttpResponseError:
|
3218
3324
|
"""
|
3219
|
-
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
3325
|
+
error_map: MutableMapping[int, Type[HttpResponseError]] = { # pylint: disable=unsubscriptable-object
|
3220
3326
|
401: ClientAuthenticationError,
|
3221
3327
|
404: ResourceNotFoundError,
|
3222
3328
|
409: ResourceExistsError,
|
@@ -3299,6 +3405,7 @@ class BlobOperations: # pylint: disable=too-many-public-methods
|
|
3299
3405
|
lease_access_conditions: Optional[_models.LeaseAccessConditions] = None,
|
3300
3406
|
**kwargs: Any
|
3301
3407
|
) -> None:
|
3408
|
+
# pylint: disable=line-too-long
|
3302
3409
|
"""The Create Snapshot operation creates a read-only snapshot of a blob.
|
3303
3410
|
|
3304
3411
|
:param timeout: The timeout parameter is expressed in seconds. For more information, see
|
@@ -3330,7 +3437,7 @@ class BlobOperations: # pylint: disable=too-many-public-methods
|
|
3330
3437
|
:rtype: None
|
3331
3438
|
:raises ~azure.core.exceptions.HttpResponseError:
|
3332
3439
|
"""
|
3333
|
-
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
3440
|
+
error_map: MutableMapping[int, Type[HttpResponseError]] = { # pylint: disable=unsubscriptable-object
|
3334
3441
|
401: ClientAuthenticationError,
|
3335
3442
|
404: ResourceNotFoundError,
|
3336
3443
|
409: ResourceExistsError,
|
@@ -3440,6 +3547,7 @@ class BlobOperations: # pylint: disable=too-many-public-methods
|
|
3440
3547
|
lease_access_conditions: Optional[_models.LeaseAccessConditions] = None,
|
3441
3548
|
**kwargs: Any
|
3442
3549
|
) -> None:
|
3550
|
+
# pylint: disable=line-too-long
|
3443
3551
|
"""The Start Copy From URL operation copies a blob or an internet resource to a new blob.
|
3444
3552
|
|
3445
3553
|
:param copy_source: Specifies the name of the source page blob snapshot. This value is a URL of
|
@@ -3496,7 +3604,7 @@ class BlobOperations: # pylint: disable=too-many-public-methods
|
|
3496
3604
|
:rtype: None
|
3497
3605
|
:raises ~azure.core.exceptions.HttpResponseError:
|
3498
3606
|
"""
|
3499
|
-
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
3607
|
+
error_map: MutableMapping[int, Type[HttpResponseError]] = { # pylint: disable=unsubscriptable-object
|
3500
3608
|
401: ClientAuthenticationError,
|
3501
3609
|
404: ResourceNotFoundError,
|
3502
3610
|
409: ResourceExistsError,
|
@@ -3614,6 +3722,7 @@ class BlobOperations: # pylint: disable=too-many-public-methods
|
|
3614
3722
|
cpk_scope_info: Optional[_models.CpkScopeInfo] = None,
|
3615
3723
|
**kwargs: Any
|
3616
3724
|
) -> None:
|
3725
|
+
# pylint: disable=line-too-long
|
3617
3726
|
"""The Copy From URL operation copies a blob or an internet resource to a new blob. It will not
|
3618
3727
|
return a response until the copy is complete.
|
3619
3728
|
|
@@ -3677,7 +3786,7 @@ class BlobOperations: # pylint: disable=too-many-public-methods
|
|
3677
3786
|
:rtype: None
|
3678
3787
|
:raises ~azure.core.exceptions.HttpResponseError:
|
3679
3788
|
"""
|
3680
|
-
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
3789
|
+
error_map: MutableMapping[int, Type[HttpResponseError]] = { # pylint: disable=unsubscriptable-object
|
3681
3790
|
401: ClientAuthenticationError,
|
3682
3791
|
404: ResourceNotFoundError,
|
3683
3792
|
409: ResourceExistsError,
|
@@ -3796,6 +3905,7 @@ class BlobOperations: # pylint: disable=too-many-public-methods
|
|
3796
3905
|
lease_access_conditions: Optional[_models.LeaseAccessConditions] = None,
|
3797
3906
|
**kwargs: Any
|
3798
3907
|
) -> None:
|
3908
|
+
# pylint: disable=line-too-long
|
3799
3909
|
"""The Abort Copy From URL operation aborts a pending Copy From URL operation, and leaves a
|
3800
3910
|
destination blob with zero length and full metadata.
|
3801
3911
|
|
@@ -3817,7 +3927,7 @@ class BlobOperations: # pylint: disable=too-many-public-methods
|
|
3817
3927
|
:rtype: None
|
3818
3928
|
:raises ~azure.core.exceptions.HttpResponseError:
|
3819
3929
|
"""
|
3820
|
-
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
3930
|
+
error_map: MutableMapping[int, Type[HttpResponseError]] = { # pylint: disable=unsubscriptable-object
|
3821
3931
|
401: ClientAuthenticationError,
|
3822
3932
|
404: ResourceNotFoundError,
|
3823
3933
|
409: ResourceExistsError,
|
@@ -3888,6 +3998,7 @@ class BlobOperations: # pylint: disable=too-many-public-methods
|
|
3888
3998
|
modified_access_conditions: Optional[_models.ModifiedAccessConditions] = None,
|
3889
3999
|
**kwargs: Any
|
3890
4000
|
) -> None:
|
4001
|
+
# pylint: disable=line-too-long
|
3891
4002
|
"""The Set Tier operation sets the tier on a blob. The operation is allowed on a page blob in a
|
3892
4003
|
premium storage account and on a block blob in a blob storage account (locally redundant
|
3893
4004
|
storage only). A premium page blob's tier determines the allowed size, IOPS, and bandwidth of
|
@@ -3928,7 +4039,7 @@ class BlobOperations: # pylint: disable=too-many-public-methods
|
|
3928
4039
|
:rtype: None
|
3929
4040
|
:raises ~azure.core.exceptions.HttpResponseError:
|
3930
4041
|
"""
|
3931
|
-
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
4042
|
+
error_map: MutableMapping[int, Type[HttpResponseError]] = { # pylint: disable=unsubscriptable-object
|
3932
4043
|
401: ClientAuthenticationError,
|
3933
4044
|
404: ResourceNotFoundError,
|
3934
4045
|
409: ResourceExistsError,
|
@@ -3992,6 +4103,7 @@ class BlobOperations: # pylint: disable=too-many-public-methods
|
|
3992
4103
|
def get_account_info( # pylint: disable=inconsistent-return-statements
|
3993
4104
|
self, timeout: Optional[int] = None, request_id_parameter: Optional[str] = None, **kwargs: Any
|
3994
4105
|
) -> None:
|
4106
|
+
# pylint: disable=line-too-long
|
3995
4107
|
"""Returns the sku name and account kind.
|
3996
4108
|
|
3997
4109
|
:param timeout: The timeout parameter is expressed in seconds. For more information, see
|
@@ -4007,7 +4119,7 @@ class BlobOperations: # pylint: disable=too-many-public-methods
|
|
4007
4119
|
:rtype: None
|
4008
4120
|
:raises ~azure.core.exceptions.HttpResponseError:
|
4009
4121
|
"""
|
4010
|
-
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
4122
|
+
error_map: MutableMapping[int, Type[HttpResponseError]] = { # pylint: disable=unsubscriptable-object
|
4011
4123
|
401: ClientAuthenticationError,
|
4012
4124
|
404: ResourceNotFoundError,
|
4013
4125
|
409: ResourceExistsError,
|
@@ -4072,6 +4184,7 @@ class BlobOperations: # pylint: disable=too-many-public-methods
|
|
4072
4184
|
query_request: Optional[_models.QueryRequest] = None,
|
4073
4185
|
**kwargs: Any
|
4074
4186
|
) -> Iterator[bytes]:
|
4187
|
+
# pylint: disable=line-too-long
|
4075
4188
|
"""The Query operation enables users to select/project on blob data by providing simple query
|
4076
4189
|
expressions.
|
4077
4190
|
|
@@ -4102,7 +4215,7 @@ class BlobOperations: # pylint: disable=too-many-public-methods
|
|
4102
4215
|
:rtype: Iterator[bytes]
|
4103
4216
|
:raises ~azure.core.exceptions.HttpResponseError:
|
4104
4217
|
"""
|
4105
|
-
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
4218
|
+
error_map: MutableMapping[int, Type[HttpResponseError]] = { # pylint: disable=unsubscriptable-object
|
4106
4219
|
401: ClientAuthenticationError,
|
4107
4220
|
404: ResourceNotFoundError,
|
4108
4221
|
409: ResourceExistsError,
|
@@ -4321,6 +4434,7 @@ class BlobOperations: # pylint: disable=too-many-public-methods
|
|
4321
4434
|
lease_access_conditions: Optional[_models.LeaseAccessConditions] = None,
|
4322
4435
|
**kwargs: Any
|
4323
4436
|
) -> _models.BlobTags:
|
4437
|
+
# pylint: disable=line-too-long
|
4324
4438
|
"""The Get Tags operation enables users to get the tags associated with a blob.
|
4325
4439
|
|
4326
4440
|
:param timeout: The timeout parameter is expressed in seconds. For more information, see
|
@@ -4350,7 +4464,7 @@ class BlobOperations: # pylint: disable=too-many-public-methods
|
|
4350
4464
|
:rtype: ~azure.storage.blob.models.BlobTags
|
4351
4465
|
:raises ~azure.core.exceptions.HttpResponseError:
|
4352
4466
|
"""
|
4353
|
-
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
4467
|
+
error_map: MutableMapping[int, Type[HttpResponseError]] = { # pylint: disable=unsubscriptable-object
|
4354
4468
|
401: ClientAuthenticationError,
|
4355
4469
|
404: ResourceNotFoundError,
|
4356
4470
|
409: ResourceExistsError,
|
@@ -4426,6 +4540,7 @@ class BlobOperations: # pylint: disable=too-many-public-methods
|
|
4426
4540
|
tags: Optional[_models.BlobTags] = None,
|
4427
4541
|
**kwargs: Any
|
4428
4542
|
) -> None:
|
4543
|
+
# pylint: disable=line-too-long
|
4429
4544
|
"""The Set Tags operation enables users to set tags on a blob.
|
4430
4545
|
|
4431
4546
|
:param timeout: The timeout parameter is expressed in seconds. For more information, see
|
@@ -4457,7 +4572,7 @@ class BlobOperations: # pylint: disable=too-many-public-methods
|
|
4457
4572
|
:rtype: None
|
4458
4573
|
:raises ~azure.core.exceptions.HttpResponseError:
|
4459
4574
|
"""
|
4460
|
-
error_map: MutableMapping[int, Type[HttpResponseError]] = {
|
4575
|
+
error_map: MutableMapping[int, Type[HttpResponseError]] = { # pylint: disable=unsubscriptable-object
|
4461
4576
|
401: ClientAuthenticationError,
|
4462
4577
|
404: ResourceNotFoundError,
|
4463
4578
|
409: ResourceExistsError,
|