azure-storage-blob 12.25.0b1__py3-none-any.whl → 12.26.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.
Files changed (64) 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 +1 -1
  10. azure/storage/blob/_generated/_configuration.py +2 -2
  11. azure/storage/blob/_generated/_serialization.py +3 -3
  12. azure/storage/blob/_generated/aio/_azure_blob_storage.py +1 -1
  13. azure/storage/blob/_generated/aio/_configuration.py +2 -2
  14. azure/storage/blob/_generated/aio/operations/_append_blob_operations.py +5 -4
  15. azure/storage/blob/_generated/aio/operations/_blob_operations.py +5 -25
  16. azure/storage/blob/_generated/aio/operations/_block_blob_operations.py +9 -7
  17. azure/storage/blob/_generated/aio/operations/_container_operations.py +1 -19
  18. azure/storage/blob/_generated/aio/operations/_page_blob_operations.py +5 -10
  19. azure/storage/blob/_generated/aio/operations/_service_operations.py +1 -8
  20. azure/storage/blob/_generated/models/__init__.py +2 -0
  21. azure/storage/blob/_generated/models/_azure_blob_storage_enums.py +6 -0
  22. azure/storage/blob/_generated/operations/_append_blob_operations.py +12 -9
  23. azure/storage/blob/_generated/operations/_blob_operations.py +32 -49
  24. azure/storage/blob/_generated/operations/_block_blob_operations.py +21 -13
  25. azure/storage/blob/_generated/operations/_container_operations.py +19 -37
  26. azure/storage/blob/_generated/operations/_page_blob_operations.py +17 -19
  27. azure/storage/blob/_generated/operations/_service_operations.py +9 -17
  28. azure/storage/blob/_lease.py +1 -0
  29. azure/storage/blob/_quick_query_helper.py +20 -24
  30. azure/storage/blob/_serialize.py +1 -0
  31. azure/storage/blob/_shared/__init__.py +7 -7
  32. azure/storage/blob/_shared/authentication.py +49 -32
  33. azure/storage/blob/_shared/avro/avro_io.py +45 -43
  34. azure/storage/blob/_shared/avro/avro_io_async.py +42 -41
  35. azure/storage/blob/_shared/avro/datafile.py +24 -21
  36. azure/storage/blob/_shared/avro/datafile_async.py +15 -15
  37. azure/storage/blob/_shared/avro/schema.py +196 -217
  38. azure/storage/blob/_shared/base_client.py +87 -61
  39. azure/storage/blob/_shared/base_client_async.py +58 -51
  40. azure/storage/blob/_shared/constants.py +1 -1
  41. azure/storage/blob/_shared/models.py +93 -92
  42. azure/storage/blob/_shared/parser.py +3 -3
  43. azure/storage/blob/_shared/policies.py +176 -145
  44. azure/storage/blob/_shared/policies_async.py +59 -70
  45. azure/storage/blob/_shared/request_handlers.py +51 -47
  46. azure/storage/blob/_shared/response_handlers.py +49 -45
  47. azure/storage/blob/_shared/shared_access_signature.py +67 -71
  48. azure/storage/blob/_shared/uploads.py +56 -49
  49. azure/storage/blob/_shared/uploads_async.py +72 -61
  50. azure/storage/blob/_shared_access_signature.py +3 -1
  51. azure/storage/blob/_version.py +1 -1
  52. azure/storage/blob/aio/__init__.py +3 -2
  53. azure/storage/blob/aio/_blob_client_async.py +241 -44
  54. azure/storage/blob/aio/_blob_service_client_async.py +13 -11
  55. azure/storage/blob/aio/_container_client_async.py +28 -25
  56. azure/storage/blob/aio/_download_async.py +16 -12
  57. azure/storage/blob/aio/_lease_async.py +1 -0
  58. azure/storage/blob/aio/_quick_query_helper_async.py +194 -0
  59. {azure_storage_blob-12.25.0b1.dist-info → azure_storage_blob-12.26.0.dist-info}/METADATA +7 -7
  60. azure_storage_blob-12.26.0.dist-info/RECORD +85 -0
  61. {azure_storage_blob-12.25.0b1.dist-info → azure_storage_blob-12.26.0.dist-info}/WHEEL +1 -1
  62. azure_storage_blob-12.25.0b1.dist-info/RECORD +0 -84
  63. {azure_storage_blob-12.25.0b1.dist-info → azure_storage_blob-12.26.0.dist-info}/LICENSE +0 -0
  64. {azure_storage_blob-12.25.0b1.dist-info → azure_storage_blob-12.26.0.dist-info}/top_level.txt +0 -0
@@ -48,7 +48,7 @@ class AzureBlobStorage: # pylint: disable=client-accepts-api-version-keyword
48
48
  :param base_url: Service URL. Required. Default value is "".
49
49
  :type base_url: str
50
50
  :keyword version: Specifies the version of the operation to use for this request. Default value
51
- is "2025-01-05". Note that overriding this default value may result in unsupported behavior.
51
+ is "2025-07-05". Note that overriding this default value may result in unsupported behavior.
52
52
  :paramtype version: str
53
53
  """
54
54
 
@@ -23,12 +23,12 @@ class AzureBlobStorageConfiguration: # pylint: disable=too-many-instance-attrib
23
23
  desired operation. Required.
24
24
  :type url: str
25
25
  :keyword version: Specifies the version of the operation to use for this request. Default value
26
- is "2025-01-05". Note that overriding this default value may result in unsupported behavior.
26
+ is "2025-07-05". Note that overriding this default value may result in unsupported behavior.
27
27
  :paramtype version: str
28
28
  """
29
29
 
30
30
  def __init__(self, url: str, **kwargs: Any) -> None:
31
- version: Literal["2025-01-05"] = kwargs.pop("version", "2025-01-05")
31
+ version: Literal["2025-07-05"] = kwargs.pop("version", "2025-07-05")
32
32
 
33
33
  if url is None:
34
34
  raise ValueError("Parameter 'url' must not be None.")
@@ -1,4 +1,4 @@
1
- # pylint: disable=too-many-lines
1
+ # pylint: disable=line-too-long,useless-suppression,too-many-lines
2
2
  # --------------------------------------------------------------------------
3
3
  #
4
4
  # Copyright (c) Microsoft Corporation. All rights reserved.
@@ -411,7 +411,7 @@ class Model:
411
411
  :param function key_extractors: A key extractor function.
412
412
  :param str content_type: JSON by default, set application/xml if XML.
413
413
  :returns: An instance of this model
414
- :raises: DeserializationError if something went wrong
414
+ :raises DeserializationError: if something went wrong
415
415
  :rtype: Self
416
416
  """
417
417
  deserializer = Deserializer(cls._infer_class_models())
@@ -1361,7 +1361,7 @@ def xml_key_extractor(attr, attr_desc, data): # pylint: disable=unused-argument
1361
1361
  # Iter and wrapped, should have found one node only (the wrap one)
1362
1362
  if len(children) != 1:
1363
1363
  raise DeserializationError(
1364
- "Tried to deserialize an array not wrapped, and found several nodes '{}'. Maybe you should declare this array as wrapped?".format( # pylint: disable=line-too-long
1364
+ "Tried to deserialize an array not wrapped, and found several nodes '{}'. Maybe you should declare this array as wrapped?".format(
1365
1365
  xml_name
1366
1366
  )
1367
1367
  )
@@ -48,7 +48,7 @@ class AzureBlobStorage: # pylint: disable=client-accepts-api-version-keyword
48
48
  :param base_url: Service URL. Required. Default value is "".
49
49
  :type base_url: str
50
50
  :keyword version: Specifies the version of the operation to use for this request. Default value
51
- is "2025-01-05". Note that overriding this default value may result in unsupported behavior.
51
+ is "2025-07-05". Note that overriding this default value may result in unsupported behavior.
52
52
  :paramtype version: str
53
53
  """
54
54
 
@@ -23,12 +23,12 @@ class AzureBlobStorageConfiguration: # pylint: disable=too-many-instance-attrib
23
23
  desired operation. Required.
24
24
  :type url: str
25
25
  :keyword version: Specifies the version of the operation to use for this request. Default value
26
- is "2025-01-05". Note that overriding this default value may result in unsupported behavior.
26
+ is "2025-07-05". Note that overriding this default value may result in unsupported behavior.
27
27
  :paramtype version: str
28
28
  """
29
29
 
30
30
  def __init__(self, url: str, **kwargs: Any) -> None:
31
- version: Literal["2025-01-05"] = kwargs.pop("version", "2025-01-05")
31
+ version: Literal["2025-07-05"] = kwargs.pop("version", "2025-07-05")
32
32
 
33
33
  if url is None:
34
34
  raise ValueError("Parameter 'url' must not be None.")
@@ -1,3 +1,4 @@
1
+ # pylint: disable=line-too-long,useless-suppression
1
2
  # coding=utf-8
2
3
  # --------------------------------------------------------------------------
3
4
  # Copyright (c) Microsoft Corporation. All rights reserved.
@@ -78,7 +79,6 @@ class AppendBlobOperations:
78
79
  modified_access_conditions: Optional[_models.ModifiedAccessConditions] = None,
79
80
  **kwargs: Any
80
81
  ) -> None:
81
- # pylint: disable=line-too-long
82
82
  """The Create Append Blob operation creates a new append blob.
83
83
 
84
84
  :param content_length: The length of the request. Required.
@@ -264,7 +264,6 @@ class AppendBlobOperations:
264
264
  modified_access_conditions: Optional[_models.ModifiedAccessConditions] = None,
265
265
  **kwargs: Any
266
266
  ) -> None:
267
- # pylint: disable=line-too-long
268
267
  """The Append Block operation commits a new block of data to the end of an existing append blob.
269
268
  The Append Block operation is permitted only if the blob was created with x-ms-blob-type set to
270
269
  AppendBlob. Append Block is supported only on version 2015-02-21 version or later.
@@ -445,6 +444,7 @@ class AppendBlobOperations:
445
444
  transactional_content_md5: Optional[bytes] = None,
446
445
  request_id_parameter: Optional[str] = None,
447
446
  copy_source_authorization: Optional[str] = None,
447
+ file_request_intent: Optional[Union[str, _models.FileShareTokenIntent]] = None,
448
448
  cpk_info: Optional[_models.CpkInfo] = None,
449
449
  cpk_scope_info: Optional[_models.CpkScopeInfo] = None,
450
450
  lease_access_conditions: Optional[_models.LeaseAccessConditions] = None,
@@ -453,7 +453,6 @@ class AppendBlobOperations:
453
453
  source_modified_access_conditions: Optional[_models.SourceModifiedAccessConditions] = None,
454
454
  **kwargs: Any
455
455
  ) -> None:
456
- # pylint: disable=line-too-long
457
456
  """The Append Block operation commits a new block of data to the end of an existing append blob
458
457
  where the contents are read from a source url. The Append Block operation is permitted only if
459
458
  the blob was created with x-ms-blob-type set to AppendBlob. Append Block is supported only on
@@ -486,6 +485,8 @@ class AppendBlobOperations:
486
485
  :param copy_source_authorization: Only Bearer type is supported. Credentials should be a valid
487
486
  OAuth access token to copy source. Default value is None.
488
487
  :type copy_source_authorization: str
488
+ :param file_request_intent: Valid value is backup. "backup" Default value is None.
489
+ :type file_request_intent: str or ~azure.storage.blob.models.FileShareTokenIntent
489
490
  :param cpk_info: Parameter group. Default value is None.
490
491
  :type cpk_info: ~azure.storage.blob.models.CpkInfo
491
492
  :param cpk_scope_info: Parameter group. Default value is None.
@@ -584,6 +585,7 @@ class AppendBlobOperations:
584
585
  source_if_none_match=_source_if_none_match,
585
586
  request_id_parameter=request_id_parameter,
586
587
  copy_source_authorization=copy_source_authorization,
588
+ file_request_intent=file_request_intent,
587
589
  comp=comp,
588
590
  version=self._config.version,
589
591
  headers=_headers,
@@ -642,7 +644,6 @@ class AppendBlobOperations:
642
644
  append_position_access_conditions: Optional[_models.AppendPositionAccessConditions] = None,
643
645
  **kwargs: Any
644
646
  ) -> None:
645
- # pylint: disable=line-too-long
646
647
  """The Seal operation seals the Append Blob to make it read-only. Seal is supported only on
647
648
  version 2019-12-12 version or later.
648
649
 
@@ -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.
@@ -99,7 +99,6 @@ class BlobOperations: # pylint: disable=too-many-public-methods
99
99
  modified_access_conditions: Optional[_models.ModifiedAccessConditions] = None,
100
100
  **kwargs: Any
101
101
  ) -> AsyncIterator[bytes]:
102
- # pylint: disable=line-too-long
103
102
  """The Download operation reads or downloads a blob from the system, including its metadata and
104
103
  properties. You can also call Download to read a snapshot.
105
104
 
@@ -415,7 +414,6 @@ class BlobOperations: # pylint: disable=too-many-public-methods
415
414
  modified_access_conditions: Optional[_models.ModifiedAccessConditions] = None,
416
415
  **kwargs: Any
417
416
  ) -> None:
418
- # pylint: disable=line-too-long
419
417
  """The Get Properties operation returns all user-defined metadata, standard HTTP properties, and
420
418
  system properties for the blob. It does not return the content of the blob.
421
419
 
@@ -619,7 +617,6 @@ class BlobOperations: # pylint: disable=too-many-public-methods
619
617
  modified_access_conditions: Optional[_models.ModifiedAccessConditions] = None,
620
618
  **kwargs: Any
621
619
  ) -> None:
622
- # pylint: disable=line-too-long
623
620
  """If the storage account's soft delete feature is disabled then, when a blob is deleted, it is
624
621
  permanently removed from the storage account. If the storage account's soft delete feature is
625
622
  enabled, then, when a blob is deleted, it is marked for deletion and becomes inaccessible
@@ -744,7 +741,6 @@ class BlobOperations: # pylint: disable=too-many-public-methods
744
741
  async def undelete(
745
742
  self, timeout: Optional[int] = None, request_id_parameter: Optional[str] = None, **kwargs: Any
746
743
  ) -> None:
747
- # pylint: disable=line-too-long
748
744
  """Undelete a blob that was previously soft deleted.
749
745
 
750
746
  :param timeout: The timeout parameter is expressed in seconds. For more information, see
@@ -817,7 +813,6 @@ class BlobOperations: # pylint: disable=too-many-public-methods
817
813
  expires_on: Optional[str] = None,
818
814
  **kwargs: Any
819
815
  ) -> None:
820
- # pylint: disable=line-too-long
821
816
  """Sets the time a blob will expire and be deleted.
822
817
 
823
818
  :param expiry_options: Required. Indicates mode of the expiry time. Known values are:
@@ -900,7 +895,6 @@ class BlobOperations: # pylint: disable=too-many-public-methods
900
895
  modified_access_conditions: Optional[_models.ModifiedAccessConditions] = None,
901
896
  **kwargs: Any
902
897
  ) -> None:
903
- # pylint: disable=line-too-long
904
898
  """The Set HTTP Headers operation sets system properties on the blob.
905
899
 
906
900
  :param timeout: The timeout parameter is expressed in seconds. For more information, see
@@ -1027,7 +1021,6 @@ class BlobOperations: # pylint: disable=too-many-public-methods
1027
1021
  modified_access_conditions: Optional[_models.ModifiedAccessConditions] = None,
1028
1022
  **kwargs: Any
1029
1023
  ) -> None:
1030
- # pylint: disable=line-too-long
1031
1024
  """The Set Immutability Policy operation sets the immutability policy on the blob.
1032
1025
 
1033
1026
  :param timeout: The timeout parameter is expressed in seconds. For more information, see
@@ -1133,7 +1126,6 @@ class BlobOperations: # pylint: disable=too-many-public-methods
1133
1126
  version_id: Optional[str] = None,
1134
1127
  **kwargs: Any
1135
1128
  ) -> None:
1136
- # pylint: disable=line-too-long
1137
1129
  """The Delete Immutability Policy operation deletes the immutability policy on the blob.
1138
1130
 
1139
1131
  :param timeout: The timeout parameter is expressed in seconds. For more information, see
@@ -1219,7 +1211,6 @@ class BlobOperations: # pylint: disable=too-many-public-methods
1219
1211
  version_id: Optional[str] = None,
1220
1212
  **kwargs: Any
1221
1213
  ) -> None:
1222
- # pylint: disable=line-too-long
1223
1214
  """The Set Legal Hold operation sets a legal hold on the blob.
1224
1215
 
1225
1216
  :param legal_hold: Specified if a legal hold should be set on the blob. Required.
@@ -1311,7 +1302,6 @@ class BlobOperations: # pylint: disable=too-many-public-methods
1311
1302
  modified_access_conditions: Optional[_models.ModifiedAccessConditions] = None,
1312
1303
  **kwargs: Any
1313
1304
  ) -> None:
1314
- # pylint: disable=line-too-long
1315
1305
  """The Set Blob Metadata operation sets user-defined metadata for the specified blob as one or
1316
1306
  more name-value pairs.
1317
1307
 
@@ -1450,7 +1440,6 @@ class BlobOperations: # pylint: disable=too-many-public-methods
1450
1440
  modified_access_conditions: Optional[_models.ModifiedAccessConditions] = None,
1451
1441
  **kwargs: Any
1452
1442
  ) -> None:
1453
- # pylint: disable=line-too-long
1454
1443
  """[Update] The Lease Blob operation establishes and manages a lock on a blob for write and delete
1455
1444
  operations.
1456
1445
 
@@ -1558,7 +1547,6 @@ class BlobOperations: # pylint: disable=too-many-public-methods
1558
1547
  modified_access_conditions: Optional[_models.ModifiedAccessConditions] = None,
1559
1548
  **kwargs: Any
1560
1549
  ) -> None:
1561
- # pylint: disable=line-too-long
1562
1550
  """[Update] The Lease Blob operation establishes and manages a lock on a blob for write and delete
1563
1551
  operations.
1564
1552
 
@@ -1658,7 +1646,6 @@ class BlobOperations: # pylint: disable=too-many-public-methods
1658
1646
  modified_access_conditions: Optional[_models.ModifiedAccessConditions] = None,
1659
1647
  **kwargs: Any
1660
1648
  ) -> None:
1661
- # pylint: disable=line-too-long
1662
1649
  """[Update] The Lease Blob operation establishes and manages a lock on a blob for write and delete
1663
1650
  operations.
1664
1651
 
@@ -1760,7 +1747,6 @@ class BlobOperations: # pylint: disable=too-many-public-methods
1760
1747
  modified_access_conditions: Optional[_models.ModifiedAccessConditions] = None,
1761
1748
  **kwargs: Any
1762
1749
  ) -> None:
1763
- # pylint: disable=line-too-long
1764
1750
  """[Update] The Lease Blob operation establishes and manages a lock on a blob for write and delete
1765
1751
  operations.
1766
1752
 
@@ -1866,7 +1852,6 @@ class BlobOperations: # pylint: disable=too-many-public-methods
1866
1852
  modified_access_conditions: Optional[_models.ModifiedAccessConditions] = None,
1867
1853
  **kwargs: Any
1868
1854
  ) -> None:
1869
- # pylint: disable=line-too-long
1870
1855
  """[Update] The Lease Blob operation establishes and manages a lock on a blob for write and delete
1871
1856
  operations.
1872
1857
 
@@ -1976,7 +1961,6 @@ class BlobOperations: # pylint: disable=too-many-public-methods
1976
1961
  lease_access_conditions: Optional[_models.LeaseAccessConditions] = None,
1977
1962
  **kwargs: Any
1978
1963
  ) -> None:
1979
- # pylint: disable=line-too-long
1980
1964
  """The Create Snapshot operation creates a read-only snapshot of a blob.
1981
1965
 
1982
1966
  :param timeout: The timeout parameter is expressed in seconds. For more information, see
@@ -2118,7 +2102,6 @@ class BlobOperations: # pylint: disable=too-many-public-methods
2118
2102
  lease_access_conditions: Optional[_models.LeaseAccessConditions] = None,
2119
2103
  **kwargs: Any
2120
2104
  ) -> None:
2121
- # pylint: disable=line-too-long
2122
2105
  """The Start Copy From URL operation copies a blob or an internet resource to a new blob.
2123
2106
 
2124
2107
  :param copy_source: Specifies the name of the source page blob snapshot. This value is a URL of
@@ -2287,13 +2270,13 @@ class BlobOperations: # pylint: disable=too-many-public-methods
2287
2270
  legal_hold: Optional[bool] = None,
2288
2271
  copy_source_authorization: Optional[str] = None,
2289
2272
  copy_source_tags: Optional[Union[str, _models.BlobCopySourceTags]] = None,
2273
+ file_request_intent: Optional[Union[str, _models.FileShareTokenIntent]] = None,
2290
2274
  source_modified_access_conditions: Optional[_models.SourceModifiedAccessConditions] = None,
2291
2275
  modified_access_conditions: Optional[_models.ModifiedAccessConditions] = None,
2292
2276
  lease_access_conditions: Optional[_models.LeaseAccessConditions] = None,
2293
2277
  cpk_scope_info: Optional[_models.CpkScopeInfo] = None,
2294
2278
  **kwargs: Any
2295
2279
  ) -> None:
2296
- # pylint: disable=line-too-long
2297
2280
  """The Copy From URL operation copies a blob or an internet resource to a new blob. It will not
2298
2281
  return a response until the copy is complete.
2299
2282
 
@@ -2344,6 +2327,8 @@ class BlobOperations: # pylint: disable=too-many-public-methods
2344
2327
  copied or replaced with the tags specified by x-ms-tags. Known values are: "REPLACE" and
2345
2328
  "COPY". Default value is None.
2346
2329
  :type copy_source_tags: str or ~azure.storage.blob.models.BlobCopySourceTags
2330
+ :param file_request_intent: Valid value is backup. "backup" Default value is None.
2331
+ :type file_request_intent: str or ~azure.storage.blob.models.FileShareTokenIntent
2347
2332
  :param source_modified_access_conditions: Parameter group. Default value is None.
2348
2333
  :type source_modified_access_conditions:
2349
2334
  ~azure.storage.blob.models.SourceModifiedAccessConditions
@@ -2425,6 +2410,7 @@ class BlobOperations: # pylint: disable=too-many-public-methods
2425
2410
  copy_source_authorization=copy_source_authorization,
2426
2411
  encryption_scope=_encryption_scope,
2427
2412
  copy_source_tags=copy_source_tags,
2413
+ file_request_intent=file_request_intent,
2428
2414
  x_ms_requires_sync=x_ms_requires_sync,
2429
2415
  version=self._config.version,
2430
2416
  headers=_headers,
@@ -2476,7 +2462,6 @@ class BlobOperations: # pylint: disable=too-many-public-methods
2476
2462
  lease_access_conditions: Optional[_models.LeaseAccessConditions] = None,
2477
2463
  **kwargs: Any
2478
2464
  ) -> None:
2479
- # pylint: disable=line-too-long
2480
2465
  """The Abort Copy From URL operation aborts a pending Copy From URL operation, and leaves a
2481
2466
  destination blob with zero length and full metadata.
2482
2467
 
@@ -2569,7 +2554,6 @@ class BlobOperations: # pylint: disable=too-many-public-methods
2569
2554
  modified_access_conditions: Optional[_models.ModifiedAccessConditions] = None,
2570
2555
  **kwargs: Any
2571
2556
  ) -> None:
2572
- # pylint: disable=line-too-long
2573
2557
  """The Set Tier operation sets the tier on a blob. The operation is allowed on a page blob in a
2574
2558
  premium storage account and on a block blob in a blob storage account (locally redundant
2575
2559
  storage only). A premium page blob's tier determines the allowed size, IOPS, and bandwidth of
@@ -2674,7 +2658,6 @@ class BlobOperations: # pylint: disable=too-many-public-methods
2674
2658
  async def get_account_info(
2675
2659
  self, timeout: Optional[int] = None, request_id_parameter: Optional[str] = None, **kwargs: Any
2676
2660
  ) -> None:
2677
- # pylint: disable=line-too-long
2678
2661
  """Returns the sku name and account kind.
2679
2662
 
2680
2663
  :param timeout: The timeout parameter is expressed in seconds. For more information, see
@@ -2755,7 +2738,6 @@ class BlobOperations: # pylint: disable=too-many-public-methods
2755
2738
  query_request: Optional[_models.QueryRequest] = None,
2756
2739
  **kwargs: Any
2757
2740
  ) -> AsyncIterator[bytes]:
2758
- # pylint: disable=line-too-long
2759
2741
  """The Query operation enables users to select/project on blob data by providing simple query
2760
2742
  expressions.
2761
2743
 
@@ -3005,7 +2987,6 @@ class BlobOperations: # pylint: disable=too-many-public-methods
3005
2987
  lease_access_conditions: Optional[_models.LeaseAccessConditions] = None,
3006
2988
  **kwargs: Any
3007
2989
  ) -> _models.BlobTags:
3008
- # pylint: disable=line-too-long
3009
2990
  """The Get Tags operation enables users to get the tags associated with a blob.
3010
2991
 
3011
2992
  :param timeout: The timeout parameter is expressed in seconds. For more information, see
@@ -3111,7 +3092,6 @@ class BlobOperations: # pylint: disable=too-many-public-methods
3111
3092
  tags: Optional[_models.BlobTags] = None,
3112
3093
  **kwargs: Any
3113
3094
  ) -> None:
3114
- # pylint: disable=line-too-long
3115
3095
  """The Set Tags operation enables users to set tags on a blob.
3116
3096
 
3117
3097
  :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.
@@ -87,7 +87,6 @@ class BlockBlobOperations:
87
87
  modified_access_conditions: Optional[_models.ModifiedAccessConditions] = None,
88
88
  **kwargs: Any
89
89
  ) -> None:
90
- # pylint: disable=line-too-long
91
90
  """The Upload Block Blob operation updates the content of an existing block blob. Updating an
92
91
  existing block blob overwrites any existing metadata on the blob. Partial updates are not
93
92
  supported with Put Blob; the content of the existing blob is overwritten with the content of
@@ -305,6 +304,7 @@ class BlockBlobOperations:
305
304
  copy_source_blob_properties: Optional[bool] = None,
306
305
  copy_source_authorization: Optional[str] = None,
307
306
  copy_source_tags: Optional[Union[str, _models.BlobCopySourceTags]] = None,
307
+ file_request_intent: Optional[Union[str, _models.FileShareTokenIntent]] = None,
308
308
  blob_http_headers: Optional[_models.BlobHTTPHeaders] = None,
309
309
  lease_access_conditions: Optional[_models.LeaseAccessConditions] = None,
310
310
  cpk_info: Optional[_models.CpkInfo] = None,
@@ -313,7 +313,6 @@ class BlockBlobOperations:
313
313
  source_modified_access_conditions: Optional[_models.SourceModifiedAccessConditions] = None,
314
314
  **kwargs: Any
315
315
  ) -> None:
316
- # pylint: disable=line-too-long
317
316
  """The Put Blob from URL operation creates a new Block Blob where the contents of the blob are
318
317
  read from a given URL. This API is supported beginning with the 2020-04-08 version. Partial
319
318
  updates are not supported with Put Blob from URL; the content of an existing blob is
@@ -367,6 +366,8 @@ class BlockBlobOperations:
367
366
  copied or replaced with the tags specified by x-ms-tags. Known values are: "REPLACE" and
368
367
  "COPY". Default value is None.
369
368
  :type copy_source_tags: str or ~azure.storage.blob.models.BlobCopySourceTags
369
+ :param file_request_intent: Valid value is backup. "backup" Default value is None.
370
+ :type file_request_intent: str or ~azure.storage.blob.models.FileShareTokenIntent
370
371
  :param blob_http_headers: Parameter group. Default value is None.
371
372
  :type blob_http_headers: ~azure.storage.blob.models.BlobHTTPHeaders
372
373
  :param lease_access_conditions: Parameter group. Default value is None.
@@ -482,6 +483,7 @@ class BlockBlobOperations:
482
483
  copy_source_blob_properties=copy_source_blob_properties,
483
484
  copy_source_authorization=copy_source_authorization,
484
485
  copy_source_tags=copy_source_tags,
486
+ file_request_intent=file_request_intent,
485
487
  blob_type=blob_type,
486
488
  version=self._config.version,
487
489
  headers=_headers,
@@ -542,7 +544,6 @@ class BlockBlobOperations:
542
544
  cpk_scope_info: Optional[_models.CpkScopeInfo] = None,
543
545
  **kwargs: Any
544
546
  ) -> None:
545
- # pylint: disable=line-too-long
546
547
  """The Stage Block operation creates a new block to be committed as part of a blob.
547
548
 
548
549
  :param block_id: A valid Base64 string value that identifies the block. Prior to encoding, the
@@ -690,13 +691,13 @@ class BlockBlobOperations:
690
691
  timeout: Optional[int] = None,
691
692
  request_id_parameter: Optional[str] = None,
692
693
  copy_source_authorization: Optional[str] = None,
694
+ file_request_intent: Optional[Union[str, _models.FileShareTokenIntent]] = None,
693
695
  cpk_info: Optional[_models.CpkInfo] = None,
694
696
  cpk_scope_info: Optional[_models.CpkScopeInfo] = None,
695
697
  lease_access_conditions: Optional[_models.LeaseAccessConditions] = None,
696
698
  source_modified_access_conditions: Optional[_models.SourceModifiedAccessConditions] = None,
697
699
  **kwargs: Any
698
700
  ) -> None:
699
- # pylint: disable=line-too-long
700
701
  """The Stage Block operation creates a new block to be committed as part of a blob where the
701
702
  contents are read from a URL.
702
703
 
@@ -728,6 +729,8 @@ class BlockBlobOperations:
728
729
  :param copy_source_authorization: Only Bearer type is supported. Credentials should be a valid
729
730
  OAuth access token to copy source. Default value is None.
730
731
  :type copy_source_authorization: str
732
+ :param file_request_intent: Valid value is backup. "backup" Default value is None.
733
+ :type file_request_intent: str or ~azure.storage.blob.models.FileShareTokenIntent
731
734
  :param cpk_info: Parameter group. Default value is None.
732
735
  :type cpk_info: ~azure.storage.blob.models.CpkInfo
733
736
  :param cpk_scope_info: Parameter group. Default value is None.
@@ -798,6 +801,7 @@ class BlockBlobOperations:
798
801
  source_if_none_match=_source_if_none_match,
799
802
  request_id_parameter=request_id_parameter,
800
803
  copy_source_authorization=copy_source_authorization,
804
+ file_request_intent=file_request_intent,
801
805
  comp=comp,
802
806
  version=self._config.version,
803
807
  headers=_headers,
@@ -862,7 +866,6 @@ class BlockBlobOperations:
862
866
  modified_access_conditions: Optional[_models.ModifiedAccessConditions] = None,
863
867
  **kwargs: Any
864
868
  ) -> None:
865
- # pylint: disable=line-too-long
866
869
  """The Commit Block List operation writes a blob by specifying the list of block IDs that make up
867
870
  the blob. In order to be written as part of a blob, a block must have been successfully written
868
871
  to the server in a prior Put Block operation. You can call Put Block List to update a blob by
@@ -1066,7 +1069,6 @@ class BlockBlobOperations:
1066
1069
  modified_access_conditions: Optional[_models.ModifiedAccessConditions] = None,
1067
1070
  **kwargs: Any
1068
1071
  ) -> _models.BlockList:
1069
- # pylint: disable=line-too-long
1070
1072
  """The Get Block List operation retrieves the list of blocks that have been uploaded as part of a
1071
1073
  block blob.
1072
1074
 
@@ -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.
@@ -86,7 +86,6 @@ class ContainerOperations:
86
86
  container_cpk_scope_info: Optional[_models.ContainerCpkScopeInfo] = None,
87
87
  **kwargs: Any
88
88
  ) -> None:
89
- # pylint: disable=line-too-long
90
89
  """creates a new container under the specified account. If the container with the same name
91
90
  already exists, the operation fails.
92
91
 
@@ -184,7 +183,6 @@ class ContainerOperations:
184
183
  lease_access_conditions: Optional[_models.LeaseAccessConditions] = None,
185
184
  **kwargs: Any
186
185
  ) -> None:
187
- # pylint: disable=line-too-long
188
186
  """returns all user-defined metadata and system properties for the specified container. The data
189
187
  returned does not include the container's list of blobs.
190
188
 
@@ -287,7 +285,6 @@ class ContainerOperations:
287
285
  modified_access_conditions: Optional[_models.ModifiedAccessConditions] = None,
288
286
  **kwargs: Any
289
287
  ) -> None:
290
- # pylint: disable=line-too-long
291
288
  """operation marks the specified container for deletion. The container and any blobs contained
292
289
  within it are later deleted during garbage collection.
293
290
 
@@ -378,7 +375,6 @@ class ContainerOperations:
378
375
  modified_access_conditions: Optional[_models.ModifiedAccessConditions] = None,
379
376
  **kwargs: Any
380
377
  ) -> None:
381
- # pylint: disable=line-too-long
382
378
  """operation sets one or more user-defined name-value pairs for the specified container.
383
379
 
384
380
  :param timeout: The timeout parameter is expressed in seconds. For more information, see
@@ -476,7 +472,6 @@ class ContainerOperations:
476
472
  lease_access_conditions: Optional[_models.LeaseAccessConditions] = None,
477
473
  **kwargs: Any
478
474
  ) -> List[_models.SignedIdentifier]:
479
- # pylint: disable=line-too-long
480
475
  """gets the permissions for the specified container. The permissions indicate whether container
481
476
  data may be accessed publicly.
482
477
 
@@ -570,7 +565,6 @@ class ContainerOperations:
570
565
  container_acl: Optional[List[_models.SignedIdentifier]] = None,
571
566
  **kwargs: Any
572
567
  ) -> None:
573
- # pylint: disable=line-too-long
574
568
  """sets the permissions for the specified container. The permissions indicate whether blobs in a
575
569
  container may be accessed publicly.
576
570
 
@@ -680,7 +674,6 @@ class ContainerOperations:
680
674
  deleted_container_version: Optional[str] = None,
681
675
  **kwargs: Any
682
676
  ) -> None:
683
- # pylint: disable=line-too-long
684
677
  """Restores a previously-deleted container.
685
678
 
686
679
  :param timeout: The timeout parameter is expressed in seconds. For more information, see
@@ -763,7 +756,6 @@ class ContainerOperations:
763
756
  source_lease_id: Optional[str] = None,
764
757
  **kwargs: Any
765
758
  ) -> None:
766
- # pylint: disable=line-too-long
767
759
  """Renames an existing container.
768
760
 
769
761
  :param source_container_name: Required. Specifies the name of the container to rename.
@@ -846,7 +838,6 @@ class ContainerOperations:
846
838
  request_id_parameter: Optional[str] = None,
847
839
  **kwargs: Any
848
840
  ) -> AsyncIterator[bytes]:
849
- # pylint: disable=line-too-long
850
841
  """The Batch operation allows multiple API calls to be embedded into a single HTTP request.
851
842
 
852
843
  :param content_length: The length of the request. Required.
@@ -941,7 +932,6 @@ class ContainerOperations:
941
932
  include: Optional[List[Union[str, _models.FilterBlobsIncludeItem]]] = None,
942
933
  **kwargs: Any
943
934
  ) -> _models.FilterBlobSegment:
944
- # pylint: disable=line-too-long
945
935
  """The Filter Blobs operation enables callers to list blobs in a container whose tags match a
946
936
  given search expression. Filter blobs searches within the given container.
947
937
 
@@ -1046,7 +1036,6 @@ class ContainerOperations:
1046
1036
  modified_access_conditions: Optional[_models.ModifiedAccessConditions] = None,
1047
1037
  **kwargs: Any
1048
1038
  ) -> None:
1049
- # pylint: disable=line-too-long
1050
1039
  """[Update] establishes and manages a lock on a container for delete operations. The lock duration
1051
1040
  can be 15 to 60 seconds, or can be infinite.
1052
1041
 
@@ -1147,7 +1136,6 @@ class ContainerOperations:
1147
1136
  modified_access_conditions: Optional[_models.ModifiedAccessConditions] = None,
1148
1137
  **kwargs: Any
1149
1138
  ) -> None:
1150
- # pylint: disable=line-too-long
1151
1139
  """[Update] establishes and manages a lock on a container for delete operations. The lock duration
1152
1140
  can be 15 to 60 seconds, or can be infinite.
1153
1141
 
@@ -1240,7 +1228,6 @@ class ContainerOperations:
1240
1228
  modified_access_conditions: Optional[_models.ModifiedAccessConditions] = None,
1241
1229
  **kwargs: Any
1242
1230
  ) -> None:
1243
- # pylint: disable=line-too-long
1244
1231
  """[Update] establishes and manages a lock on a container for delete operations. The lock duration
1245
1232
  can be 15 to 60 seconds, or can be infinite.
1246
1233
 
@@ -1334,7 +1321,6 @@ class ContainerOperations:
1334
1321
  modified_access_conditions: Optional[_models.ModifiedAccessConditions] = None,
1335
1322
  **kwargs: Any
1336
1323
  ) -> None:
1337
- # pylint: disable=line-too-long
1338
1324
  """[Update] establishes and manages a lock on a container for delete operations. The lock duration
1339
1325
  can be 15 to 60 seconds, or can be infinite.
1340
1326
 
@@ -1435,7 +1421,6 @@ class ContainerOperations:
1435
1421
  modified_access_conditions: Optional[_models.ModifiedAccessConditions] = None,
1436
1422
  **kwargs: Any
1437
1423
  ) -> None:
1438
- # pylint: disable=line-too-long
1439
1424
  """[Update] establishes and manages a lock on a container for delete operations. The lock duration
1440
1425
  can be 15 to 60 seconds, or can be infinite.
1441
1426
 
@@ -1536,7 +1521,6 @@ class ContainerOperations:
1536
1521
  request_id_parameter: Optional[str] = None,
1537
1522
  **kwargs: Any
1538
1523
  ) -> _models.ListBlobsFlatSegmentResponse:
1539
- # pylint: disable=line-too-long
1540
1524
  """[Update] The List Blobs operation returns a list of the blobs under the specified container.
1541
1525
 
1542
1526
  :param prefix: Filters the results to return only containers whose name begins with the
@@ -1643,7 +1627,6 @@ class ContainerOperations:
1643
1627
  request_id_parameter: Optional[str] = None,
1644
1628
  **kwargs: Any
1645
1629
  ) -> _models.ListBlobsHierarchySegmentResponse:
1646
- # pylint: disable=line-too-long
1647
1630
  """[Update] The List Blobs operation returns a list of the blobs under the specified container.
1648
1631
 
1649
1632
  :param delimiter: When the request includes this parameter, the operation returns a BlobPrefix
@@ -1748,7 +1731,6 @@ class ContainerOperations:
1748
1731
  async def get_account_info(
1749
1732
  self, timeout: Optional[int] = None, request_id_parameter: Optional[str] = None, **kwargs: Any
1750
1733
  ) -> None:
1751
- # pylint: disable=line-too-long
1752
1734
  """Returns the sku name and account kind.
1753
1735
 
1754
1736
  :param timeout: The timeout parameter is expressed in seconds. For more information, see