azure-storage-blob 12.25.1__py3-none-any.whl → 12.27.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.
Files changed (67) hide show
  1. azure/storage/blob/__init__.py +3 -2
  2. azure/storage/blob/_blob_client.py +94 -41
  3. azure/storage/blob/_blob_client_helpers.py +19 -4
  4. azure/storage/blob/_blob_service_client.py +16 -13
  5. azure/storage/blob/_container_client.py +25 -22
  6. azure/storage/blob/_deserialize.py +1 -1
  7. azure/storage/blob/_download.py +7 -7
  8. azure/storage/blob/_encryption.py +177 -184
  9. azure/storage/blob/_generated/_azure_blob_storage.py +3 -2
  10. azure/storage/blob/_generated/_configuration.py +2 -2
  11. azure/storage/blob/_generated/_utils/__init__.py +6 -0
  12. azure/storage/blob/_generated/{_serialization.py → _utils/serialization.py} +7 -25
  13. azure/storage/blob/_generated/aio/_azure_blob_storage.py +3 -2
  14. azure/storage/blob/_generated/aio/_configuration.py +2 -2
  15. azure/storage/blob/_generated/aio/operations/_append_blob_operations.py +11 -14
  16. azure/storage/blob/_generated/aio/operations/_blob_operations.py +40 -64
  17. azure/storage/blob/_generated/aio/operations/_block_blob_operations.py +18 -20
  18. azure/storage/blob/_generated/aio/operations/_container_operations.py +21 -43
  19. azure/storage/blob/_generated/aio/operations/_page_blob_operations.py +18 -27
  20. azure/storage/blob/_generated/aio/operations/_service_operations.py +11 -22
  21. azure/storage/blob/_generated/models/__init__.py +2 -0
  22. azure/storage/blob/_generated/models/_azure_blob_storage_enums.py +6 -0
  23. azure/storage/blob/_generated/models/_models_py3.py +30 -9
  24. azure/storage/blob/_generated/operations/_append_blob_operations.py +19 -20
  25. azure/storage/blob/_generated/operations/_blob_operations.py +68 -89
  26. azure/storage/blob/_generated/operations/_block_blob_operations.py +31 -27
  27. azure/storage/blob/_generated/operations/_container_operations.py +40 -62
  28. azure/storage/blob/_generated/operations/_page_blob_operations.py +31 -37
  29. azure/storage/blob/_generated/operations/_service_operations.py +20 -32
  30. azure/storage/blob/_lease.py +1 -0
  31. azure/storage/blob/_list_blobs_helper.py +1 -1
  32. azure/storage/blob/_quick_query_helper.py +20 -24
  33. azure/storage/blob/_serialize.py +2 -0
  34. azure/storage/blob/_shared/__init__.py +7 -7
  35. azure/storage/blob/_shared/authentication.py +49 -32
  36. azure/storage/blob/_shared/avro/avro_io.py +44 -42
  37. azure/storage/blob/_shared/avro/avro_io_async.py +42 -41
  38. azure/storage/blob/_shared/avro/datafile.py +24 -21
  39. azure/storage/blob/_shared/avro/datafile_async.py +15 -15
  40. azure/storage/blob/_shared/avro/schema.py +196 -217
  41. azure/storage/blob/_shared/base_client.py +82 -59
  42. azure/storage/blob/_shared/base_client_async.py +58 -51
  43. azure/storage/blob/_shared/constants.py +1 -1
  44. azure/storage/blob/_shared/models.py +94 -92
  45. azure/storage/blob/_shared/parser.py +3 -3
  46. azure/storage/blob/_shared/policies.py +186 -147
  47. azure/storage/blob/_shared/policies_async.py +53 -65
  48. azure/storage/blob/_shared/request_handlers.py +50 -45
  49. azure/storage/blob/_shared/response_handlers.py +54 -45
  50. azure/storage/blob/_shared/shared_access_signature.py +67 -71
  51. azure/storage/blob/_shared/uploads.py +56 -49
  52. azure/storage/blob/_shared/uploads_async.py +70 -58
  53. azure/storage/blob/_shared_access_signature.py +3 -1
  54. azure/storage/blob/_version.py +1 -1
  55. azure/storage/blob/aio/__init__.py +3 -2
  56. azure/storage/blob/aio/_blob_client_async.py +241 -44
  57. azure/storage/blob/aio/_blob_service_client_async.py +13 -11
  58. azure/storage/blob/aio/_container_client_async.py +28 -25
  59. azure/storage/blob/aio/_download_async.py +7 -7
  60. azure/storage/blob/aio/_lease_async.py +1 -0
  61. azure/storage/blob/aio/_quick_query_helper_async.py +194 -0
  62. {azure_storage_blob-12.25.1.dist-info → azure_storage_blob-12.27.0b1.dist-info}/METADATA +4 -5
  63. azure_storage_blob-12.27.0b1.dist-info/RECORD +86 -0
  64. azure_storage_blob-12.25.1.dist-info/RECORD +0 -84
  65. {azure_storage_blob-12.25.1.dist-info → azure_storage_blob-12.27.0b1.dist-info}/LICENSE +0 -0
  66. {azure_storage_blob-12.25.1.dist-info → azure_storage_blob-12.27.0b1.dist-info}/WHEEL +0 -0
  67. {azure_storage_blob-12.25.1.dist-info → azure_storage_blob-12.27.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.
@@ -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, AsyncIterator, Callable, Dict, Literal, Optional, TypeVar, Union
12
12
 
13
13
  from azure.core import AsyncPipelineClient
@@ -27,7 +27,7 @@ from azure.core.tracing.decorator_async import distributed_trace_async
27
27
  from azure.core.utils import case_insensitive_dict
28
28
 
29
29
  from ... import models as _models
30
- from ..._serialization import Deserializer, Serializer
30
+ from ..._utils.serialization import Deserializer, Serializer
31
31
  from ...operations._blob_operations import (
32
32
  build_abort_copy_from_url_request,
33
33
  build_acquire_lease_request,
@@ -56,10 +56,6 @@ from ...operations._blob_operations import (
56
56
  )
57
57
  from .._configuration import AzureBlobStorageConfiguration
58
58
 
59
- if sys.version_info >= (3, 9):
60
- from collections.abc import MutableMapping
61
- else:
62
- from typing import MutableMapping # type: ignore
63
59
  T = TypeVar("T")
64
60
  ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]]
65
61
 
@@ -99,14 +95,13 @@ class BlobOperations: # pylint: disable=too-many-public-methods
99
95
  modified_access_conditions: Optional[_models.ModifiedAccessConditions] = None,
100
96
  **kwargs: Any
101
97
  ) -> AsyncIterator[bytes]:
102
- # pylint: disable=line-too-long
103
98
  """The Download operation reads or downloads a blob from the system, including its metadata and
104
99
  properties. You can also call Download to read a snapshot.
105
100
 
106
101
  :param snapshot: The snapshot parameter is an opaque DateTime value that, when present,
107
102
  specifies the blob snapshot to retrieve. For more information on working with blob snapshots,
108
103
  see :code:`<a
109
- href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/creating-a-snapshot-of-a-blob">Creating
104
+ href="https://learn.microsoft.com/rest/api/storageservices/creating-a-snapshot-of-a-blob">Creating
110
105
  a Snapshot of a Blob.</a>`. Default value is None.
111
106
  :type snapshot: str
112
107
  :param version_id: The version id parameter is an opaque DateTime value that, when present,
@@ -115,7 +110,7 @@ class BlobOperations: # pylint: disable=too-many-public-methods
115
110
  :type version_id: str
116
111
  :param timeout: The timeout parameter is expressed in seconds. For more information, see
117
112
  :code:`<a
118
- href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
113
+ href="https://learn.microsoft.com/rest/api/storageservices/setting-timeouts-for-blob-service-operations">Setting
119
114
  Timeouts for Blob Service Operations.</a>`. Default value is None.
120
115
  :type timeout: int
121
116
  :param range: Return only the bytes of the blob in the specified range. Default value is None.
@@ -415,14 +410,13 @@ class BlobOperations: # pylint: disable=too-many-public-methods
415
410
  modified_access_conditions: Optional[_models.ModifiedAccessConditions] = None,
416
411
  **kwargs: Any
417
412
  ) -> None:
418
- # pylint: disable=line-too-long
419
413
  """The Get Properties operation returns all user-defined metadata, standard HTTP properties, and
420
414
  system properties for the blob. It does not return the content of the blob.
421
415
 
422
416
  :param snapshot: The snapshot parameter is an opaque DateTime value that, when present,
423
417
  specifies the blob snapshot to retrieve. For more information on working with blob snapshots,
424
418
  see :code:`<a
425
- href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/creating-a-snapshot-of-a-blob">Creating
419
+ href="https://learn.microsoft.com/rest/api/storageservices/creating-a-snapshot-of-a-blob">Creating
426
420
  a Snapshot of a Blob.</a>`. Default value is None.
427
421
  :type snapshot: str
428
422
  :param version_id: The version id parameter is an opaque DateTime value that, when present,
@@ -431,7 +425,7 @@ class BlobOperations: # pylint: disable=too-many-public-methods
431
425
  :type version_id: str
432
426
  :param timeout: The timeout parameter is expressed in seconds. For more information, see
433
427
  :code:`<a
434
- href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
428
+ href="https://learn.microsoft.com/rest/api/storageservices/setting-timeouts-for-blob-service-operations">Setting
435
429
  Timeouts for Blob Service Operations.</a>`. Default value is None.
436
430
  :type timeout: int
437
431
  :param request_id_parameter: Provides a client-generated, opaque value with a 1 KB character
@@ -619,7 +613,6 @@ class BlobOperations: # pylint: disable=too-many-public-methods
619
613
  modified_access_conditions: Optional[_models.ModifiedAccessConditions] = None,
620
614
  **kwargs: Any
621
615
  ) -> None:
622
- # pylint: disable=line-too-long
623
616
  """If the storage account's soft delete feature is disabled then, when a blob is deleted, it is
624
617
  permanently removed from the storage account. If the storage account's soft delete feature is
625
618
  enabled, then, when a blob is deleted, it is marked for deletion and becomes inaccessible
@@ -636,7 +629,7 @@ class BlobOperations: # pylint: disable=too-many-public-methods
636
629
  :param snapshot: The snapshot parameter is an opaque DateTime value that, when present,
637
630
  specifies the blob snapshot to retrieve. For more information on working with blob snapshots,
638
631
  see :code:`<a
639
- href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/creating-a-snapshot-of-a-blob">Creating
632
+ href="https://learn.microsoft.com/rest/api/storageservices/creating-a-snapshot-of-a-blob">Creating
640
633
  a Snapshot of a Blob.</a>`. Default value is None.
641
634
  :type snapshot: str
642
635
  :param version_id: The version id parameter is an opaque DateTime value that, when present,
@@ -645,7 +638,7 @@ class BlobOperations: # pylint: disable=too-many-public-methods
645
638
  :type version_id: str
646
639
  :param timeout: The timeout parameter is expressed in seconds. For more information, see
647
640
  :code:`<a
648
- href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
641
+ href="https://learn.microsoft.com/rest/api/storageservices/setting-timeouts-for-blob-service-operations">Setting
649
642
  Timeouts for Blob Service Operations.</a>`. Default value is None.
650
643
  :type timeout: int
651
644
  :param delete_snapshots: Required if the blob has associated snapshots. Specify one of the
@@ -744,12 +737,11 @@ class BlobOperations: # pylint: disable=too-many-public-methods
744
737
  async def undelete(
745
738
  self, timeout: Optional[int] = None, request_id_parameter: Optional[str] = None, **kwargs: Any
746
739
  ) -> None:
747
- # pylint: disable=line-too-long
748
740
  """Undelete a blob that was previously soft deleted.
749
741
 
750
742
  :param timeout: The timeout parameter is expressed in seconds. For more information, see
751
743
  :code:`<a
752
- href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
744
+ href="https://learn.microsoft.com/rest/api/storageservices/setting-timeouts-for-blob-service-operations">Setting
753
745
  Timeouts for Blob Service Operations.</a>`. Default value is None.
754
746
  :type timeout: int
755
747
  :param request_id_parameter: Provides a client-generated, opaque value with a 1 KB character
@@ -817,7 +809,6 @@ class BlobOperations: # pylint: disable=too-many-public-methods
817
809
  expires_on: Optional[str] = None,
818
810
  **kwargs: Any
819
811
  ) -> None:
820
- # pylint: disable=line-too-long
821
812
  """Sets the time a blob will expire and be deleted.
822
813
 
823
814
  :param expiry_options: Required. Indicates mode of the expiry time. Known values are:
@@ -825,7 +816,7 @@ class BlobOperations: # pylint: disable=too-many-public-methods
825
816
  :type expiry_options: str or ~azure.storage.blob.models.BlobExpiryOptions
826
817
  :param timeout: The timeout parameter is expressed in seconds. For more information, see
827
818
  :code:`<a
828
- href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
819
+ href="https://learn.microsoft.com/rest/api/storageservices/setting-timeouts-for-blob-service-operations">Setting
829
820
  Timeouts for Blob Service Operations.</a>`. Default value is None.
830
821
  :type timeout: int
831
822
  :param request_id_parameter: Provides a client-generated, opaque value with a 1 KB character
@@ -900,12 +891,11 @@ class BlobOperations: # pylint: disable=too-many-public-methods
900
891
  modified_access_conditions: Optional[_models.ModifiedAccessConditions] = None,
901
892
  **kwargs: Any
902
893
  ) -> None:
903
- # pylint: disable=line-too-long
904
894
  """The Set HTTP Headers operation sets system properties on the blob.
905
895
 
906
896
  :param timeout: The timeout parameter is expressed in seconds. For more information, see
907
897
  :code:`<a
908
- href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
898
+ href="https://learn.microsoft.com/rest/api/storageservices/setting-timeouts-for-blob-service-operations">Setting
909
899
  Timeouts for Blob Service Operations.</a>`. Default value is None.
910
900
  :type timeout: int
911
901
  :param request_id_parameter: Provides a client-generated, opaque value with a 1 KB character
@@ -1027,12 +1017,11 @@ class BlobOperations: # pylint: disable=too-many-public-methods
1027
1017
  modified_access_conditions: Optional[_models.ModifiedAccessConditions] = None,
1028
1018
  **kwargs: Any
1029
1019
  ) -> None:
1030
- # pylint: disable=line-too-long
1031
1020
  """The Set Immutability Policy operation sets the immutability policy on the blob.
1032
1021
 
1033
1022
  :param timeout: The timeout parameter is expressed in seconds. For more information, see
1034
1023
  :code:`<a
1035
- href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
1024
+ href="https://learn.microsoft.com/rest/api/storageservices/setting-timeouts-for-blob-service-operations">Setting
1036
1025
  Timeouts for Blob Service Operations.</a>`. Default value is None.
1037
1026
  :type timeout: int
1038
1027
  :param request_id_parameter: Provides a client-generated, opaque value with a 1 KB character
@@ -1048,7 +1037,7 @@ class BlobOperations: # pylint: disable=too-many-public-methods
1048
1037
  :param snapshot: The snapshot parameter is an opaque DateTime value that, when present,
1049
1038
  specifies the blob snapshot to retrieve. For more information on working with blob snapshots,
1050
1039
  see :code:`<a
1051
- href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/creating-a-snapshot-of-a-blob">Creating
1040
+ href="https://learn.microsoft.com/rest/api/storageservices/creating-a-snapshot-of-a-blob">Creating
1052
1041
  a Snapshot of a Blob.</a>`. Default value is None.
1053
1042
  :type snapshot: str
1054
1043
  :param version_id: The version id parameter is an opaque DateTime value that, when present,
@@ -1133,12 +1122,11 @@ class BlobOperations: # pylint: disable=too-many-public-methods
1133
1122
  version_id: Optional[str] = None,
1134
1123
  **kwargs: Any
1135
1124
  ) -> None:
1136
- # pylint: disable=line-too-long
1137
1125
  """The Delete Immutability Policy operation deletes the immutability policy on the blob.
1138
1126
 
1139
1127
  :param timeout: The timeout parameter is expressed in seconds. For more information, see
1140
1128
  :code:`<a
1141
- href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
1129
+ href="https://learn.microsoft.com/rest/api/storageservices/setting-timeouts-for-blob-service-operations">Setting
1142
1130
  Timeouts for Blob Service Operations.</a>`. Default value is None.
1143
1131
  :type timeout: int
1144
1132
  :param request_id_parameter: Provides a client-generated, opaque value with a 1 KB character
@@ -1148,7 +1136,7 @@ class BlobOperations: # pylint: disable=too-many-public-methods
1148
1136
  :param snapshot: The snapshot parameter is an opaque DateTime value that, when present,
1149
1137
  specifies the blob snapshot to retrieve. For more information on working with blob snapshots,
1150
1138
  see :code:`<a
1151
- href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/creating-a-snapshot-of-a-blob">Creating
1139
+ href="https://learn.microsoft.com/rest/api/storageservices/creating-a-snapshot-of-a-blob">Creating
1152
1140
  a Snapshot of a Blob.</a>`. Default value is None.
1153
1141
  :type snapshot: str
1154
1142
  :param version_id: The version id parameter is an opaque DateTime value that, when present,
@@ -1219,14 +1207,13 @@ class BlobOperations: # pylint: disable=too-many-public-methods
1219
1207
  version_id: Optional[str] = None,
1220
1208
  **kwargs: Any
1221
1209
  ) -> None:
1222
- # pylint: disable=line-too-long
1223
1210
  """The Set Legal Hold operation sets a legal hold on the blob.
1224
1211
 
1225
1212
  :param legal_hold: Specified if a legal hold should be set on the blob. Required.
1226
1213
  :type legal_hold: bool
1227
1214
  :param timeout: The timeout parameter is expressed in seconds. For more information, see
1228
1215
  :code:`<a
1229
- href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
1216
+ href="https://learn.microsoft.com/rest/api/storageservices/setting-timeouts-for-blob-service-operations">Setting
1230
1217
  Timeouts for Blob Service Operations.</a>`. Default value is None.
1231
1218
  :type timeout: int
1232
1219
  :param request_id_parameter: Provides a client-generated, opaque value with a 1 KB character
@@ -1236,7 +1223,7 @@ class BlobOperations: # pylint: disable=too-many-public-methods
1236
1223
  :param snapshot: The snapshot parameter is an opaque DateTime value that, when present,
1237
1224
  specifies the blob snapshot to retrieve. For more information on working with blob snapshots,
1238
1225
  see :code:`<a
1239
- href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/creating-a-snapshot-of-a-blob">Creating
1226
+ href="https://learn.microsoft.com/rest/api/storageservices/creating-a-snapshot-of-a-blob">Creating
1240
1227
  a Snapshot of a Blob.</a>`. Default value is None.
1241
1228
  :type snapshot: str
1242
1229
  :param version_id: The version id parameter is an opaque DateTime value that, when present,
@@ -1311,13 +1298,12 @@ class BlobOperations: # pylint: disable=too-many-public-methods
1311
1298
  modified_access_conditions: Optional[_models.ModifiedAccessConditions] = None,
1312
1299
  **kwargs: Any
1313
1300
  ) -> None:
1314
- # pylint: disable=line-too-long
1315
1301
  """The Set Blob Metadata operation sets user-defined metadata for the specified blob as one or
1316
1302
  more name-value pairs.
1317
1303
 
1318
1304
  :param timeout: The timeout parameter is expressed in seconds. For more information, see
1319
1305
  :code:`<a
1320
- href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
1306
+ href="https://learn.microsoft.com/rest/api/storageservices/setting-timeouts-for-blob-service-operations">Setting
1321
1307
  Timeouts for Blob Service Operations.</a>`. Default value is None.
1322
1308
  :type timeout: int
1323
1309
  :param metadata: Optional. Specifies a user-defined name-value pair associated with the blob.
@@ -1450,13 +1436,12 @@ class BlobOperations: # pylint: disable=too-many-public-methods
1450
1436
  modified_access_conditions: Optional[_models.ModifiedAccessConditions] = None,
1451
1437
  **kwargs: Any
1452
1438
  ) -> None:
1453
- # pylint: disable=line-too-long
1454
1439
  """[Update] The Lease Blob operation establishes and manages a lock on a blob for write and delete
1455
1440
  operations.
1456
1441
 
1457
1442
  :param timeout: The timeout parameter is expressed in seconds. For more information, see
1458
1443
  :code:`<a
1459
- href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
1444
+ href="https://learn.microsoft.com/rest/api/storageservices/setting-timeouts-for-blob-service-operations">Setting
1460
1445
  Timeouts for Blob Service Operations.</a>`. Default value is None.
1461
1446
  :type timeout: int
1462
1447
  :param duration: Specifies the duration of the lease, in seconds, or negative one (-1) for a
@@ -1558,7 +1543,6 @@ class BlobOperations: # pylint: disable=too-many-public-methods
1558
1543
  modified_access_conditions: Optional[_models.ModifiedAccessConditions] = None,
1559
1544
  **kwargs: Any
1560
1545
  ) -> None:
1561
- # pylint: disable=line-too-long
1562
1546
  """[Update] The Lease Blob operation establishes and manages a lock on a blob for write and delete
1563
1547
  operations.
1564
1548
 
@@ -1566,7 +1550,7 @@ class BlobOperations: # pylint: disable=too-many-public-methods
1566
1550
  :type lease_id: str
1567
1551
  :param timeout: The timeout parameter is expressed in seconds. For more information, see
1568
1552
  :code:`<a
1569
- href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
1553
+ href="https://learn.microsoft.com/rest/api/storageservices/setting-timeouts-for-blob-service-operations">Setting
1570
1554
  Timeouts for Blob Service Operations.</a>`. Default value is None.
1571
1555
  :type timeout: int
1572
1556
  :param request_id_parameter: Provides a client-generated, opaque value with a 1 KB character
@@ -1658,7 +1642,6 @@ class BlobOperations: # pylint: disable=too-many-public-methods
1658
1642
  modified_access_conditions: Optional[_models.ModifiedAccessConditions] = None,
1659
1643
  **kwargs: Any
1660
1644
  ) -> None:
1661
- # pylint: disable=line-too-long
1662
1645
  """[Update] The Lease Blob operation establishes and manages a lock on a blob for write and delete
1663
1646
  operations.
1664
1647
 
@@ -1666,7 +1649,7 @@ class BlobOperations: # pylint: disable=too-many-public-methods
1666
1649
  :type lease_id: str
1667
1650
  :param timeout: The timeout parameter is expressed in seconds. For more information, see
1668
1651
  :code:`<a
1669
- href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
1652
+ href="https://learn.microsoft.com/rest/api/storageservices/setting-timeouts-for-blob-service-operations">Setting
1670
1653
  Timeouts for Blob Service Operations.</a>`. Default value is None.
1671
1654
  :type timeout: int
1672
1655
  :param request_id_parameter: Provides a client-generated, opaque value with a 1 KB character
@@ -1760,7 +1743,6 @@ class BlobOperations: # pylint: disable=too-many-public-methods
1760
1743
  modified_access_conditions: Optional[_models.ModifiedAccessConditions] = None,
1761
1744
  **kwargs: Any
1762
1745
  ) -> None:
1763
- # pylint: disable=line-too-long
1764
1746
  """[Update] The Lease Blob operation establishes and manages a lock on a blob for write and delete
1765
1747
  operations.
1766
1748
 
@@ -1772,7 +1754,7 @@ class BlobOperations: # pylint: disable=too-many-public-methods
1772
1754
  :type proposed_lease_id: str
1773
1755
  :param timeout: The timeout parameter is expressed in seconds. For more information, see
1774
1756
  :code:`<a
1775
- href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
1757
+ href="https://learn.microsoft.com/rest/api/storageservices/setting-timeouts-for-blob-service-operations">Setting
1776
1758
  Timeouts for Blob Service Operations.</a>`. Default value is None.
1777
1759
  :type timeout: int
1778
1760
  :param request_id_parameter: Provides a client-generated, opaque value with a 1 KB character
@@ -1866,13 +1848,12 @@ class BlobOperations: # pylint: disable=too-many-public-methods
1866
1848
  modified_access_conditions: Optional[_models.ModifiedAccessConditions] = None,
1867
1849
  **kwargs: Any
1868
1850
  ) -> None:
1869
- # pylint: disable=line-too-long
1870
1851
  """[Update] The Lease Blob operation establishes and manages a lock on a blob for write and delete
1871
1852
  operations.
1872
1853
 
1873
1854
  :param timeout: The timeout parameter is expressed in seconds. For more information, see
1874
1855
  :code:`<a
1875
- href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
1856
+ href="https://learn.microsoft.com/rest/api/storageservices/setting-timeouts-for-blob-service-operations">Setting
1876
1857
  Timeouts for Blob Service Operations.</a>`. Default value is None.
1877
1858
  :type timeout: int
1878
1859
  :param break_period: For a break operation, proposed duration the lease should continue before
@@ -1976,12 +1957,11 @@ class BlobOperations: # pylint: disable=too-many-public-methods
1976
1957
  lease_access_conditions: Optional[_models.LeaseAccessConditions] = None,
1977
1958
  **kwargs: Any
1978
1959
  ) -> None:
1979
- # pylint: disable=line-too-long
1980
1960
  """The Create Snapshot operation creates a read-only snapshot of a blob.
1981
1961
 
1982
1962
  :param timeout: The timeout parameter is expressed in seconds. For more information, see
1983
1963
  :code:`<a
1984
- href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
1964
+ href="https://learn.microsoft.com/rest/api/storageservices/setting-timeouts-for-blob-service-operations">Setting
1985
1965
  Timeouts for Blob Service Operations.</a>`. Default value is None.
1986
1966
  :type timeout: int
1987
1967
  :param metadata: Optional. Specifies a user-defined name-value pair associated with the blob.
@@ -2118,7 +2098,6 @@ class BlobOperations: # pylint: disable=too-many-public-methods
2118
2098
  lease_access_conditions: Optional[_models.LeaseAccessConditions] = None,
2119
2099
  **kwargs: Any
2120
2100
  ) -> None:
2121
- # pylint: disable=line-too-long
2122
2101
  """The Start Copy From URL operation copies a blob or an internet resource to a new blob.
2123
2102
 
2124
2103
  :param copy_source: Specifies the name of the source page blob snapshot. This value is a URL of
@@ -2128,7 +2107,7 @@ class BlobOperations: # pylint: disable=too-many-public-methods
2128
2107
  :type copy_source: str
2129
2108
  :param timeout: The timeout parameter is expressed in seconds. For more information, see
2130
2109
  :code:`<a
2131
- href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
2110
+ href="https://learn.microsoft.com/rest/api/storageservices/setting-timeouts-for-blob-service-operations">Setting
2132
2111
  Timeouts for Blob Service Operations.</a>`. Default value is None.
2133
2112
  :type timeout: int
2134
2113
  :param metadata: Optional. Specifies a user-defined name-value pair associated with the blob.
@@ -2287,13 +2266,13 @@ class BlobOperations: # pylint: disable=too-many-public-methods
2287
2266
  legal_hold: Optional[bool] = None,
2288
2267
  copy_source_authorization: Optional[str] = None,
2289
2268
  copy_source_tags: Optional[Union[str, _models.BlobCopySourceTags]] = None,
2269
+ file_request_intent: Optional[Union[str, _models.FileShareTokenIntent]] = None,
2290
2270
  source_modified_access_conditions: Optional[_models.SourceModifiedAccessConditions] = None,
2291
2271
  modified_access_conditions: Optional[_models.ModifiedAccessConditions] = None,
2292
2272
  lease_access_conditions: Optional[_models.LeaseAccessConditions] = None,
2293
2273
  cpk_scope_info: Optional[_models.CpkScopeInfo] = None,
2294
2274
  **kwargs: Any
2295
2275
  ) -> None:
2296
- # pylint: disable=line-too-long
2297
2276
  """The Copy From URL operation copies a blob or an internet resource to a new blob. It will not
2298
2277
  return a response until the copy is complete.
2299
2278
 
@@ -2304,7 +2283,7 @@ class BlobOperations: # pylint: disable=too-many-public-methods
2304
2283
  :type copy_source: str
2305
2284
  :param timeout: The timeout parameter is expressed in seconds. For more information, see
2306
2285
  :code:`<a
2307
- href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
2286
+ href="https://learn.microsoft.com/rest/api/storageservices/setting-timeouts-for-blob-service-operations">Setting
2308
2287
  Timeouts for Blob Service Operations.</a>`. Default value is None.
2309
2288
  :type timeout: int
2310
2289
  :param metadata: Optional. Specifies a user-defined name-value pair associated with the blob.
@@ -2344,6 +2323,8 @@ class BlobOperations: # pylint: disable=too-many-public-methods
2344
2323
  copied or replaced with the tags specified by x-ms-tags. Known values are: "REPLACE" and
2345
2324
  "COPY". Default value is None.
2346
2325
  :type copy_source_tags: str or ~azure.storage.blob.models.BlobCopySourceTags
2326
+ :param file_request_intent: Valid value is backup. "backup" Default value is None.
2327
+ :type file_request_intent: str or ~azure.storage.blob.models.FileShareTokenIntent
2347
2328
  :param source_modified_access_conditions: Parameter group. Default value is None.
2348
2329
  :type source_modified_access_conditions:
2349
2330
  ~azure.storage.blob.models.SourceModifiedAccessConditions
@@ -2425,6 +2406,7 @@ class BlobOperations: # pylint: disable=too-many-public-methods
2425
2406
  copy_source_authorization=copy_source_authorization,
2426
2407
  encryption_scope=_encryption_scope,
2427
2408
  copy_source_tags=copy_source_tags,
2409
+ file_request_intent=file_request_intent,
2428
2410
  x_ms_requires_sync=x_ms_requires_sync,
2429
2411
  version=self._config.version,
2430
2412
  headers=_headers,
@@ -2476,7 +2458,6 @@ class BlobOperations: # pylint: disable=too-many-public-methods
2476
2458
  lease_access_conditions: Optional[_models.LeaseAccessConditions] = None,
2477
2459
  **kwargs: Any
2478
2460
  ) -> None:
2479
- # pylint: disable=line-too-long
2480
2461
  """The Abort Copy From URL operation aborts a pending Copy From URL operation, and leaves a
2481
2462
  destination blob with zero length and full metadata.
2482
2463
 
@@ -2485,7 +2466,7 @@ class BlobOperations: # pylint: disable=too-many-public-methods
2485
2466
  :type copy_id: str
2486
2467
  :param timeout: The timeout parameter is expressed in seconds. For more information, see
2487
2468
  :code:`<a
2488
- href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
2469
+ href="https://learn.microsoft.com/rest/api/storageservices/setting-timeouts-for-blob-service-operations">Setting
2489
2470
  Timeouts for Blob Service Operations.</a>`. Default value is None.
2490
2471
  :type timeout: int
2491
2472
  :param request_id_parameter: Provides a client-generated, opaque value with a 1 KB character
@@ -2569,7 +2550,6 @@ class BlobOperations: # pylint: disable=too-many-public-methods
2569
2550
  modified_access_conditions: Optional[_models.ModifiedAccessConditions] = None,
2570
2551
  **kwargs: Any
2571
2552
  ) -> None:
2572
- # pylint: disable=line-too-long
2573
2553
  """The Set Tier operation sets the tier on a blob. The operation is allowed on a page blob in a
2574
2554
  premium storage account and on a block blob in a blob storage account (locally redundant
2575
2555
  storage only). A premium page blob's tier determines the allowed size, IOPS, and bandwidth of
@@ -2583,7 +2563,7 @@ class BlobOperations: # pylint: disable=too-many-public-methods
2583
2563
  :param snapshot: The snapshot parameter is an opaque DateTime value that, when present,
2584
2564
  specifies the blob snapshot to retrieve. For more information on working with blob snapshots,
2585
2565
  see :code:`<a
2586
- href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/creating-a-snapshot-of-a-blob">Creating
2566
+ href="https://learn.microsoft.com/rest/api/storageservices/creating-a-snapshot-of-a-blob">Creating
2587
2567
  a Snapshot of a Blob.</a>`. Default value is None.
2588
2568
  :type snapshot: str
2589
2569
  :param version_id: The version id parameter is an opaque DateTime value that, when present,
@@ -2592,7 +2572,7 @@ class BlobOperations: # pylint: disable=too-many-public-methods
2592
2572
  :type version_id: str
2593
2573
  :param timeout: The timeout parameter is expressed in seconds. For more information, see
2594
2574
  :code:`<a
2595
- href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
2575
+ href="https://learn.microsoft.com/rest/api/storageservices/setting-timeouts-for-blob-service-operations">Setting
2596
2576
  Timeouts for Blob Service Operations.</a>`. Default value is None.
2597
2577
  :type timeout: int
2598
2578
  :param rehydrate_priority: Optional: Indicates the priority with which to rehydrate an archived
@@ -2674,12 +2654,11 @@ class BlobOperations: # pylint: disable=too-many-public-methods
2674
2654
  async def get_account_info(
2675
2655
  self, timeout: Optional[int] = None, request_id_parameter: Optional[str] = None, **kwargs: Any
2676
2656
  ) -> None:
2677
- # pylint: disable=line-too-long
2678
2657
  """Returns the sku name and account kind.
2679
2658
 
2680
2659
  :param timeout: The timeout parameter is expressed in seconds. For more information, see
2681
2660
  :code:`<a
2682
- href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
2661
+ href="https://learn.microsoft.com/rest/api/storageservices/setting-timeouts-for-blob-service-operations">Setting
2683
2662
  Timeouts for Blob Service Operations.</a>`. Default value is None.
2684
2663
  :type timeout: int
2685
2664
  :param request_id_parameter: Provides a client-generated, opaque value with a 1 KB character
@@ -2755,19 +2734,18 @@ class BlobOperations: # pylint: disable=too-many-public-methods
2755
2734
  query_request: Optional[_models.QueryRequest] = None,
2756
2735
  **kwargs: Any
2757
2736
  ) -> AsyncIterator[bytes]:
2758
- # pylint: disable=line-too-long
2759
2737
  """The Query operation enables users to select/project on blob data by providing simple query
2760
2738
  expressions.
2761
2739
 
2762
2740
  :param snapshot: The snapshot parameter is an opaque DateTime value that, when present,
2763
2741
  specifies the blob snapshot to retrieve. For more information on working with blob snapshots,
2764
2742
  see :code:`<a
2765
- href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/creating-a-snapshot-of-a-blob">Creating
2743
+ href="https://learn.microsoft.com/rest/api/storageservices/creating-a-snapshot-of-a-blob">Creating
2766
2744
  a Snapshot of a Blob.</a>`. Default value is None.
2767
2745
  :type snapshot: str
2768
2746
  :param timeout: The timeout parameter is expressed in seconds. For more information, see
2769
2747
  :code:`<a
2770
- href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
2748
+ href="https://learn.microsoft.com/rest/api/storageservices/setting-timeouts-for-blob-service-operations">Setting
2771
2749
  Timeouts for Blob Service Operations.</a>`. Default value is None.
2772
2750
  :type timeout: int
2773
2751
  :param request_id_parameter: Provides a client-generated, opaque value with a 1 KB character
@@ -3005,12 +2983,11 @@ class BlobOperations: # pylint: disable=too-many-public-methods
3005
2983
  lease_access_conditions: Optional[_models.LeaseAccessConditions] = None,
3006
2984
  **kwargs: Any
3007
2985
  ) -> _models.BlobTags:
3008
- # pylint: disable=line-too-long
3009
2986
  """The Get Tags operation enables users to get the tags associated with a blob.
3010
2987
 
3011
2988
  :param timeout: The timeout parameter is expressed in seconds. For more information, see
3012
2989
  :code:`<a
3013
- href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
2990
+ href="https://learn.microsoft.com/rest/api/storageservices/setting-timeouts-for-blob-service-operations">Setting
3014
2991
  Timeouts for Blob Service Operations.</a>`. Default value is None.
3015
2992
  :type timeout: int
3016
2993
  :param request_id_parameter: Provides a client-generated, opaque value with a 1 KB character
@@ -3020,7 +2997,7 @@ class BlobOperations: # pylint: disable=too-many-public-methods
3020
2997
  :param snapshot: The snapshot parameter is an opaque DateTime value that, when present,
3021
2998
  specifies the blob snapshot to retrieve. For more information on working with blob snapshots,
3022
2999
  see :code:`<a
3023
- href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/creating-a-snapshot-of-a-blob">Creating
3000
+ href="https://learn.microsoft.com/rest/api/storageservices/creating-a-snapshot-of-a-blob">Creating
3024
3001
  a Snapshot of a Blob.</a>`. Default value is None.
3025
3002
  :type snapshot: str
3026
3003
  :param version_id: The version id parameter is an opaque DateTime value that, when present,
@@ -3111,12 +3088,11 @@ class BlobOperations: # pylint: disable=too-many-public-methods
3111
3088
  tags: Optional[_models.BlobTags] = None,
3112
3089
  **kwargs: Any
3113
3090
  ) -> None:
3114
- # pylint: disable=line-too-long
3115
3091
  """The Set Tags operation enables users to set tags on a blob.
3116
3092
 
3117
3093
  :param timeout: The timeout parameter is expressed in seconds. For more information, see
3118
3094
  :code:`<a
3119
- href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
3095
+ href="https://learn.microsoft.com/rest/api/storageservices/setting-timeouts-for-blob-service-operations">Setting
3120
3096
  Timeouts for Blob Service Operations.</a>`. Default value is None.
3121
3097
  :type timeout: int
3122
3098
  :param version_id: The version id parameter is an opaque DateTime value that, when present,