azure-storage-blob 12.23.1__py3-none-any.whl → 12.24.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 (49) hide show
  1. azure/storage/blob/_blob_client.py +28 -7
  2. azure/storage/blob/_blob_client_helpers.py +7 -3
  3. azure/storage/blob/_blob_service_client.py +1 -1
  4. azure/storage/blob/_container_client.py +2 -2
  5. azure/storage/blob/_container_client_helpers.py +4 -4
  6. azure/storage/blob/_deserialize.py +2 -2
  7. azure/storage/blob/_encryption.py +2 -0
  8. azure/storage/blob/_generated/_azure_blob_storage.py +1 -1
  9. azure/storage/blob/_generated/_configuration.py +2 -2
  10. azure/storage/blob/_generated/_serialization.py +265 -150
  11. azure/storage/blob/_generated/aio/_azure_blob_storage.py +1 -1
  12. azure/storage/blob/_generated/aio/_configuration.py +2 -2
  13. azure/storage/blob/_generated/aio/operations/_append_blob_operations.py +22 -4
  14. azure/storage/blob/_generated/aio/operations/_blob_operations.py +116 -26
  15. azure/storage/blob/_generated/aio/operations/_block_blob_operations.py +40 -6
  16. azure/storage/blob/_generated/aio/operations/_container_operations.py +36 -18
  17. azure/storage/blob/_generated/aio/operations/_page_blob_operations.py +32 -9
  18. azure/storage/blob/_generated/aio/operations/_service_operations.py +16 -8
  19. azure/storage/blob/_generated/models/_azure_blob_storage_enums.py +1 -0
  20. azure/storage/blob/_generated/operations/_append_blob_operations.py +34 -8
  21. azure/storage/blob/_generated/operations/_blob_operations.py +166 -51
  22. azure/storage/blob/_generated/operations/_block_blob_operations.py +62 -12
  23. azure/storage/blob/_generated/operations/_container_operations.py +54 -36
  24. azure/storage/blob/_generated/operations/_page_blob_operations.py +49 -18
  25. azure/storage/blob/_generated/operations/_service_operations.py +24 -16
  26. azure/storage/blob/_list_blobs_helper.py +1 -1
  27. azure/storage/blob/_models.py +4 -3
  28. azure/storage/blob/_serialize.py +1 -0
  29. azure/storage/blob/_shared/avro/schema.py +1 -0
  30. azure/storage/blob/_shared/base_client.py +8 -8
  31. azure/storage/blob/_shared/base_client_async.py +5 -5
  32. azure/storage/blob/_shared/models.py +5 -2
  33. azure/storage/blob/_shared/policies.py +6 -7
  34. azure/storage/blob/_shared/policies_async.py +1 -1
  35. azure/storage/blob/_shared/uploads.py +4 -4
  36. azure/storage/blob/_shared/uploads_async.py +4 -4
  37. azure/storage/blob/_shared_access_signature.py +0 -1
  38. azure/storage/blob/_version.py +1 -1
  39. azure/storage/blob/aio/_blob_client_async.py +30 -10
  40. azure/storage/blob/aio/_blob_service_client_async.py +7 -3
  41. azure/storage/blob/aio/_container_client_async.py +4 -4
  42. azure/storage/blob/aio/_lease_async.py +1 -1
  43. azure/storage/blob/aio/_list_blobs_helper.py +1 -2
  44. azure/storage/blob/aio/_models.py +1 -2
  45. {azure_storage_blob-12.23.1.dist-info → azure_storage_blob-12.24.0b1.dist-info}/METADATA +10 -10
  46. {azure_storage_blob-12.23.1.dist-info → azure_storage_blob-12.24.0b1.dist-info}/RECORD +49 -49
  47. {azure_storage_blob-12.23.1.dist-info → azure_storage_blob-12.24.0b1.dist-info}/LICENSE +0 -0
  48. {azure_storage_blob-12.23.1.dist-info → azure_storage_blob-12.24.0b1.dist-info}/WHEEL +0 -0
  49. {azure_storage_blob-12.23.1.dist-info → azure_storage_blob-12.24.0b1.dist-info}/top_level.txt +0 -0
@@ -75,6 +75,8 @@ class BlockBlobOperations:
75
75
  immutability_policy_mode: Optional[Union[str, _models.BlobImmutabilityPolicyMode]] = None,
76
76
  legal_hold: Optional[bool] = None,
77
77
  transactional_content_crc64: Optional[bytes] = None,
78
+ structured_body_type: Optional[str] = None,
79
+ structured_content_length: Optional[int] = None,
78
80
  blob_http_headers: Optional[_models.BlobHTTPHeaders] = None,
79
81
  lease_access_conditions: Optional[_models.LeaseAccessConditions] = None,
80
82
  cpk_info: Optional[_models.CpkInfo] = None,
@@ -82,6 +84,7 @@ class BlockBlobOperations:
82
84
  modified_access_conditions: Optional[_models.ModifiedAccessConditions] = None,
83
85
  **kwargs: Any
84
86
  ) -> None:
87
+ # pylint: disable=line-too-long
85
88
  """The Upload Block Blob operation updates the content of an existing block blob. Updating an
86
89
  existing block blob overwrites any existing metadata on the blob. Partial updates are not
87
90
  supported with Put Blob; the content of the existing blob is overwritten with the content of
@@ -130,6 +133,13 @@ class BlockBlobOperations:
130
133
  :param transactional_content_crc64: Specify the transactional crc64 for the body, to be
131
134
  validated by the service. Default value is None.
132
135
  :type transactional_content_crc64: bytes
136
+ :param structured_body_type: Required if the request body is a structured message. Specifies
137
+ the message schema version and properties. Default value is None.
138
+ :type structured_body_type: str
139
+ :param structured_content_length: Required if the request body is a structured message.
140
+ Specifies the length of the blob/file content inside the message body. Will always be smaller
141
+ than Content-Length. Default value is None.
142
+ :type structured_content_length: int
133
143
  :param blob_http_headers: Parameter group. Default value is None.
134
144
  :type blob_http_headers: ~azure.storage.blob.models.BlobHTTPHeaders
135
145
  :param lease_access_conditions: Parameter group. Default value is None.
@@ -144,7 +154,7 @@ class BlockBlobOperations:
144
154
  :rtype: None
145
155
  :raises ~azure.core.exceptions.HttpResponseError:
146
156
  """
147
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
157
+ error_map: MutableMapping[int, Type[HttpResponseError]] = { # pylint: disable=unsubscriptable-object
148
158
  401: ClientAuthenticationError,
149
159
  404: ResourceNotFoundError,
150
160
  409: ResourceExistsError,
@@ -227,6 +237,8 @@ class BlockBlobOperations:
227
237
  immutability_policy_mode=immutability_policy_mode,
228
238
  legal_hold=legal_hold,
229
239
  transactional_content_crc64=transactional_content_crc64,
240
+ structured_body_type=structured_body_type,
241
+ structured_content_length=structured_content_length,
230
242
  blob_type=blob_type,
231
243
  content_type=content_type,
232
244
  version=self._config.version,
@@ -268,6 +280,9 @@ class BlockBlobOperations:
268
280
  response_headers["x-ms-encryption-scope"] = self._deserialize(
269
281
  "str", response.headers.get("x-ms-encryption-scope")
270
282
  )
283
+ response_headers["x-ms-structured-body"] = self._deserialize(
284
+ "str", response.headers.get("x-ms-structured-body")
285
+ )
271
286
 
272
287
  if cls:
273
288
  return cls(pipeline_response, None, response_headers) # type: ignore
@@ -295,6 +310,7 @@ class BlockBlobOperations:
295
310
  source_modified_access_conditions: Optional[_models.SourceModifiedAccessConditions] = None,
296
311
  **kwargs: Any
297
312
  ) -> None:
313
+ # pylint: disable=line-too-long
298
314
  """The Put Blob from URL operation creates a new Block Blob where the contents of the blob are
299
315
  read from a given URL. This API is supported beginning with the 2020-04-08 version. Partial
300
316
  updates are not supported with Put Blob from URL; the content of an existing blob is
@@ -365,7 +381,7 @@ class BlockBlobOperations:
365
381
  :rtype: None
366
382
  :raises ~azure.core.exceptions.HttpResponseError:
367
383
  """
368
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
384
+ error_map: MutableMapping[int, Type[HttpResponseError]] = { # pylint: disable=unsubscriptable-object
369
385
  401: ClientAuthenticationError,
370
386
  404: ResourceNotFoundError,
371
387
  409: ResourceExistsError,
@@ -516,11 +532,14 @@ class BlockBlobOperations:
516
532
  transactional_content_crc64: Optional[bytes] = None,
517
533
  timeout: Optional[int] = None,
518
534
  request_id_parameter: Optional[str] = None,
535
+ structured_body_type: Optional[str] = None,
536
+ structured_content_length: Optional[int] = None,
519
537
  lease_access_conditions: Optional[_models.LeaseAccessConditions] = None,
520
538
  cpk_info: Optional[_models.CpkInfo] = None,
521
539
  cpk_scope_info: Optional[_models.CpkScopeInfo] = None,
522
540
  **kwargs: Any
523
541
  ) -> None:
542
+ # pylint: disable=line-too-long
524
543
  """The Stage Block operation creates a new block to be committed as part of a blob.
525
544
 
526
545
  :param block_id: A valid Base64 string value that identifies the block. Prior to encoding, the
@@ -546,6 +565,13 @@ class BlockBlobOperations:
546
565
  limit that is recorded in the analytics logs when storage analytics logging is enabled. Default
547
566
  value is None.
548
567
  :type request_id_parameter: str
568
+ :param structured_body_type: Required if the request body is a structured message. Specifies
569
+ the message schema version and properties. Default value is None.
570
+ :type structured_body_type: str
571
+ :param structured_content_length: Required if the request body is a structured message.
572
+ Specifies the length of the blob/file content inside the message body. Will always be smaller
573
+ than Content-Length. Default value is None.
574
+ :type structured_content_length: int
549
575
  :param lease_access_conditions: Parameter group. Default value is None.
550
576
  :type lease_access_conditions: ~azure.storage.blob.models.LeaseAccessConditions
551
577
  :param cpk_info: Parameter group. Default value is None.
@@ -556,7 +582,7 @@ class BlockBlobOperations:
556
582
  :rtype: None
557
583
  :raises ~azure.core.exceptions.HttpResponseError:
558
584
  """
559
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
585
+ error_map: MutableMapping[int, Type[HttpResponseError]] = { # pylint: disable=unsubscriptable-object
560
586
  401: ClientAuthenticationError,
561
587
  404: ResourceNotFoundError,
562
588
  409: ResourceExistsError,
@@ -599,6 +625,8 @@ class BlockBlobOperations:
599
625
  encryption_algorithm=_encryption_algorithm,
600
626
  encryption_scope=_encryption_scope,
601
627
  request_id_parameter=request_id_parameter,
628
+ structured_body_type=structured_body_type,
629
+ structured_content_length=structured_content_length,
602
630
  comp=comp,
603
631
  content_type=content_type,
604
632
  version=self._config.version,
@@ -640,6 +668,9 @@ class BlockBlobOperations:
640
668
  response_headers["x-ms-encryption-scope"] = self._deserialize(
641
669
  "str", response.headers.get("x-ms-encryption-scope")
642
670
  )
671
+ response_headers["x-ms-structured-body"] = self._deserialize(
672
+ "str", response.headers.get("x-ms-structured-body")
673
+ )
643
674
 
644
675
  if cls:
645
676
  return cls(pipeline_response, None, response_headers) # type: ignore
@@ -662,6 +693,7 @@ class BlockBlobOperations:
662
693
  source_modified_access_conditions: Optional[_models.SourceModifiedAccessConditions] = None,
663
694
  **kwargs: Any
664
695
  ) -> None:
696
+ # pylint: disable=line-too-long
665
697
  """The Stage Block operation creates a new block to be committed as part of a blob where the
666
698
  contents are read from a URL.
667
699
 
@@ -706,7 +738,7 @@ class BlockBlobOperations:
706
738
  :rtype: None
707
739
  :raises ~azure.core.exceptions.HttpResponseError:
708
740
  """
709
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
741
+ error_map: MutableMapping[int, Type[HttpResponseError]] = { # pylint: disable=unsubscriptable-object
710
742
  401: ClientAuthenticationError,
711
743
  404: ResourceNotFoundError,
712
744
  409: ResourceExistsError,
@@ -827,6 +859,7 @@ class BlockBlobOperations:
827
859
  modified_access_conditions: Optional[_models.ModifiedAccessConditions] = None,
828
860
  **kwargs: Any
829
861
  ) -> None:
862
+ # pylint: disable=line-too-long
830
863
  """The Commit Block List operation writes a blob by specifying the list of block IDs that make up
831
864
  the blob. In order to be written as part of a blob, a block must have been successfully written
832
865
  to the server in a prior Put Block operation. You can call Put Block List to update a blob by
@@ -889,7 +922,7 @@ class BlockBlobOperations:
889
922
  :rtype: None
890
923
  :raises ~azure.core.exceptions.HttpResponseError:
891
924
  """
892
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
925
+ error_map: MutableMapping[int, Type[HttpResponseError]] = { # pylint: disable=unsubscriptable-object
893
926
  401: ClientAuthenticationError,
894
927
  404: ResourceNotFoundError,
895
928
  409: ResourceExistsError,
@@ -1030,6 +1063,7 @@ class BlockBlobOperations:
1030
1063
  modified_access_conditions: Optional[_models.ModifiedAccessConditions] = None,
1031
1064
  **kwargs: Any
1032
1065
  ) -> _models.BlockList:
1066
+ # pylint: disable=line-too-long
1033
1067
  """The Get Block List operation retrieves the list of blocks that have been uploaded as part of a
1034
1068
  block blob.
1035
1069
 
@@ -1060,7 +1094,7 @@ class BlockBlobOperations:
1060
1094
  :rtype: ~azure.storage.blob.models.BlockList
1061
1095
  :raises ~azure.core.exceptions.HttpResponseError:
1062
1096
  """
1063
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
1097
+ error_map: MutableMapping[int, Type[HttpResponseError]] = { # pylint: disable=unsubscriptable-object
1064
1098
  401: ClientAuthenticationError,
1065
1099
  404: ResourceNotFoundError,
1066
1100
  409: ResourceExistsError,
@@ -83,6 +83,7 @@ class ContainerOperations:
83
83
  container_cpk_scope_info: Optional[_models.ContainerCpkScopeInfo] = None,
84
84
  **kwargs: Any
85
85
  ) -> None:
86
+ # pylint: disable=line-too-long
86
87
  """creates a new container under the specified account. If the container with the same name
87
88
  already exists, the operation fails.
88
89
 
@@ -112,7 +113,7 @@ class ContainerOperations:
112
113
  :rtype: None
113
114
  :raises ~azure.core.exceptions.HttpResponseError:
114
115
  """
115
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
116
+ error_map: MutableMapping[int, Type[HttpResponseError]] = { # pylint: disable=unsubscriptable-object
116
117
  401: ClientAuthenticationError,
117
118
  404: ResourceNotFoundError,
118
119
  409: ResourceExistsError,
@@ -180,6 +181,7 @@ class ContainerOperations:
180
181
  lease_access_conditions: Optional[_models.LeaseAccessConditions] = None,
181
182
  **kwargs: Any
182
183
  ) -> None:
184
+ # pylint: disable=line-too-long
183
185
  """returns all user-defined metadata and system properties for the specified container. The data
184
186
  returned does not include the container's list of blobs.
185
187
 
@@ -198,7 +200,7 @@ class ContainerOperations:
198
200
  :rtype: None
199
201
  :raises ~azure.core.exceptions.HttpResponseError:
200
202
  """
201
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
203
+ error_map: MutableMapping[int, Type[HttpResponseError]] = { # pylint: disable=unsubscriptable-object
202
204
  401: ClientAuthenticationError,
203
205
  404: ResourceNotFoundError,
204
206
  409: ResourceExistsError,
@@ -282,6 +284,7 @@ class ContainerOperations:
282
284
  modified_access_conditions: Optional[_models.ModifiedAccessConditions] = None,
283
285
  **kwargs: Any
284
286
  ) -> None:
287
+ # pylint: disable=line-too-long
285
288
  """operation marks the specified container for deletion. The container and any blobs contained
286
289
  within it are later deleted during garbage collection.
287
290
 
@@ -302,7 +305,7 @@ class ContainerOperations:
302
305
  :rtype: None
303
306
  :raises ~azure.core.exceptions.HttpResponseError:
304
307
  """
305
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
308
+ error_map: MutableMapping[int, Type[HttpResponseError]] = { # pylint: disable=unsubscriptable-object
306
309
  401: ClientAuthenticationError,
307
310
  404: ResourceNotFoundError,
308
311
  409: ResourceExistsError,
@@ -372,6 +375,7 @@ class ContainerOperations:
372
375
  modified_access_conditions: Optional[_models.ModifiedAccessConditions] = None,
373
376
  **kwargs: Any
374
377
  ) -> None:
378
+ # pylint: disable=line-too-long
375
379
  """operation sets one or more user-defined name-value pairs for the specified container.
376
380
 
377
381
  :param timeout: The timeout parameter is expressed in seconds. For more information, see
@@ -399,7 +403,7 @@ class ContainerOperations:
399
403
  :rtype: None
400
404
  :raises ~azure.core.exceptions.HttpResponseError:
401
405
  """
402
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
406
+ error_map: MutableMapping[int, Type[HttpResponseError]] = { # pylint: disable=unsubscriptable-object
403
407
  401: ClientAuthenticationError,
404
408
  404: ResourceNotFoundError,
405
409
  409: ResourceExistsError,
@@ -469,6 +473,7 @@ class ContainerOperations:
469
473
  lease_access_conditions: Optional[_models.LeaseAccessConditions] = None,
470
474
  **kwargs: Any
471
475
  ) -> List[_models.SignedIdentifier]:
476
+ # pylint: disable=line-too-long
472
477
  """gets the permissions for the specified container. The permissions indicate whether container
473
478
  data may be accessed publicly.
474
479
 
@@ -487,7 +492,7 @@ class ContainerOperations:
487
492
  :rtype: list[~azure.storage.blob.models.SignedIdentifier]
488
493
  :raises ~azure.core.exceptions.HttpResponseError:
489
494
  """
490
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
495
+ error_map: MutableMapping[int, Type[HttpResponseError]] = { # pylint: disable=unsubscriptable-object
491
496
  401: ClientAuthenticationError,
492
497
  404: ResourceNotFoundError,
493
498
  409: ResourceExistsError,
@@ -562,6 +567,7 @@ class ContainerOperations:
562
567
  container_acl: Optional[List[_models.SignedIdentifier]] = None,
563
568
  **kwargs: Any
564
569
  ) -> None:
570
+ # pylint: disable=line-too-long
565
571
  """sets the permissions for the specified container. The permissions indicate whether blobs in a
566
572
  container may be accessed publicly.
567
573
 
@@ -587,7 +593,7 @@ class ContainerOperations:
587
593
  :rtype: None
588
594
  :raises ~azure.core.exceptions.HttpResponseError:
589
595
  """
590
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
596
+ error_map: MutableMapping[int, Type[HttpResponseError]] = { # pylint: disable=unsubscriptable-object
591
597
  401: ClientAuthenticationError,
592
598
  404: ResourceNotFoundError,
593
599
  409: ResourceExistsError,
@@ -671,6 +677,7 @@ class ContainerOperations:
671
677
  deleted_container_version: Optional[str] = None,
672
678
  **kwargs: Any
673
679
  ) -> None:
680
+ # pylint: disable=line-too-long
674
681
  """Restores a previously-deleted container.
675
682
 
676
683
  :param timeout: The timeout parameter is expressed in seconds. For more information, see
@@ -692,7 +699,7 @@ class ContainerOperations:
692
699
  :rtype: None
693
700
  :raises ~azure.core.exceptions.HttpResponseError:
694
701
  """
695
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
702
+ error_map: MutableMapping[int, Type[HttpResponseError]] = { # pylint: disable=unsubscriptable-object
696
703
  401: ClientAuthenticationError,
697
704
  404: ResourceNotFoundError,
698
705
  409: ResourceExistsError,
@@ -753,6 +760,7 @@ class ContainerOperations:
753
760
  source_lease_id: Optional[str] = None,
754
761
  **kwargs: Any
755
762
  ) -> None:
763
+ # pylint: disable=line-too-long
756
764
  """Renames an existing container.
757
765
 
758
766
  :param source_container_name: Required. Specifies the name of the container to rename.
@@ -774,7 +782,7 @@ class ContainerOperations:
774
782
  :rtype: None
775
783
  :raises ~azure.core.exceptions.HttpResponseError:
776
784
  """
777
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
785
+ error_map: MutableMapping[int, Type[HttpResponseError]] = { # pylint: disable=unsubscriptable-object
778
786
  401: ClientAuthenticationError,
779
787
  404: ResourceNotFoundError,
780
788
  409: ResourceExistsError,
@@ -835,6 +843,7 @@ class ContainerOperations:
835
843
  request_id_parameter: Optional[str] = None,
836
844
  **kwargs: Any
837
845
  ) -> AsyncIterator[bytes]:
846
+ # pylint: disable=line-too-long
838
847
  """The Batch operation allows multiple API calls to be embedded into a single HTTP request.
839
848
 
840
849
  :param content_length: The length of the request. Required.
@@ -854,7 +863,7 @@ class ContainerOperations:
854
863
  :rtype: AsyncIterator[bytes]
855
864
  :raises ~azure.core.exceptions.HttpResponseError:
856
865
  """
857
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
866
+ error_map: MutableMapping[int, Type[HttpResponseError]] = { # pylint: disable=unsubscriptable-object
858
867
  401: ClientAuthenticationError,
859
868
  404: ResourceNotFoundError,
860
869
  409: ResourceExistsError,
@@ -929,6 +938,7 @@ class ContainerOperations:
929
938
  include: Optional[List[Union[str, _models.FilterBlobsIncludeItem]]] = None,
930
939
  **kwargs: Any
931
940
  ) -> _models.FilterBlobSegment:
941
+ # pylint: disable=line-too-long
932
942
  """The Filter Blobs operation enables callers to list blobs in a container whose tags match a
933
943
  given search expression. Filter blobs searches within the given container.
934
944
 
@@ -965,7 +975,7 @@ class ContainerOperations:
965
975
  :rtype: ~azure.storage.blob.models.FilterBlobSegment
966
976
  :raises ~azure.core.exceptions.HttpResponseError:
967
977
  """
968
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
978
+ error_map: MutableMapping[int, Type[HttpResponseError]] = { # pylint: disable=unsubscriptable-object
969
979
  401: ClientAuthenticationError,
970
980
  404: ResourceNotFoundError,
971
981
  409: ResourceExistsError,
@@ -1033,6 +1043,7 @@ class ContainerOperations:
1033
1043
  modified_access_conditions: Optional[_models.ModifiedAccessConditions] = None,
1034
1044
  **kwargs: Any
1035
1045
  ) -> None:
1046
+ # pylint: disable=line-too-long
1036
1047
  """[Update] establishes and manages a lock on a container for delete operations. The lock duration
1037
1048
  can be 15 to 60 seconds, or can be infinite.
1038
1049
 
@@ -1059,7 +1070,7 @@ class ContainerOperations:
1059
1070
  :rtype: None
1060
1071
  :raises ~azure.core.exceptions.HttpResponseError:
1061
1072
  """
1062
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
1073
+ error_map: MutableMapping[int, Type[HttpResponseError]] = { # pylint: disable=unsubscriptable-object
1063
1074
  401: ClientAuthenticationError,
1064
1075
  404: ResourceNotFoundError,
1065
1076
  409: ResourceExistsError,
@@ -1133,6 +1144,7 @@ class ContainerOperations:
1133
1144
  modified_access_conditions: Optional[_models.ModifiedAccessConditions] = None,
1134
1145
  **kwargs: Any
1135
1146
  ) -> None:
1147
+ # pylint: disable=line-too-long
1136
1148
  """[Update] establishes and manages a lock on a container for delete operations. The lock duration
1137
1149
  can be 15 to 60 seconds, or can be infinite.
1138
1150
 
@@ -1153,7 +1165,7 @@ class ContainerOperations:
1153
1165
  :rtype: None
1154
1166
  :raises ~azure.core.exceptions.HttpResponseError:
1155
1167
  """
1156
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
1168
+ error_map: MutableMapping[int, Type[HttpResponseError]] = { # pylint: disable=unsubscriptable-object
1157
1169
  401: ClientAuthenticationError,
1158
1170
  404: ResourceNotFoundError,
1159
1171
  409: ResourceExistsError,
@@ -1225,6 +1237,7 @@ class ContainerOperations:
1225
1237
  modified_access_conditions: Optional[_models.ModifiedAccessConditions] = None,
1226
1238
  **kwargs: Any
1227
1239
  ) -> None:
1240
+ # pylint: disable=line-too-long
1228
1241
  """[Update] establishes and manages a lock on a container for delete operations. The lock duration
1229
1242
  can be 15 to 60 seconds, or can be infinite.
1230
1243
 
@@ -1245,7 +1258,7 @@ class ContainerOperations:
1245
1258
  :rtype: None
1246
1259
  :raises ~azure.core.exceptions.HttpResponseError:
1247
1260
  """
1248
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
1261
+ error_map: MutableMapping[int, Type[HttpResponseError]] = { # pylint: disable=unsubscriptable-object
1249
1262
  401: ClientAuthenticationError,
1250
1263
  404: ResourceNotFoundError,
1251
1264
  409: ResourceExistsError,
@@ -1318,6 +1331,7 @@ class ContainerOperations:
1318
1331
  modified_access_conditions: Optional[_models.ModifiedAccessConditions] = None,
1319
1332
  **kwargs: Any
1320
1333
  ) -> None:
1334
+ # pylint: disable=line-too-long
1321
1335
  """[Update] establishes and manages a lock on a container for delete operations. The lock duration
1322
1336
  can be 15 to 60 seconds, or can be infinite.
1323
1337
 
@@ -1344,7 +1358,7 @@ class ContainerOperations:
1344
1358
  :rtype: None
1345
1359
  :raises ~azure.core.exceptions.HttpResponseError:
1346
1360
  """
1347
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
1361
+ error_map: MutableMapping[int, Type[HttpResponseError]] = { # pylint: disable=unsubscriptable-object
1348
1362
  401: ClientAuthenticationError,
1349
1363
  404: ResourceNotFoundError,
1350
1364
  409: ResourceExistsError,
@@ -1418,6 +1432,7 @@ class ContainerOperations:
1418
1432
  modified_access_conditions: Optional[_models.ModifiedAccessConditions] = None,
1419
1433
  **kwargs: Any
1420
1434
  ) -> None:
1435
+ # pylint: disable=line-too-long
1421
1436
  """[Update] establishes and manages a lock on a container for delete operations. The lock duration
1422
1437
  can be 15 to 60 seconds, or can be infinite.
1423
1438
 
@@ -1442,7 +1457,7 @@ class ContainerOperations:
1442
1457
  :rtype: None
1443
1458
  :raises ~azure.core.exceptions.HttpResponseError:
1444
1459
  """
1445
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
1460
+ error_map: MutableMapping[int, Type[HttpResponseError]] = { # pylint: disable=unsubscriptable-object
1446
1461
  401: ClientAuthenticationError,
1447
1462
  404: ResourceNotFoundError,
1448
1463
  409: ResourceExistsError,
@@ -1518,6 +1533,7 @@ class ContainerOperations:
1518
1533
  request_id_parameter: Optional[str] = None,
1519
1534
  **kwargs: Any
1520
1535
  ) -> _models.ListBlobsFlatSegmentResponse:
1536
+ # pylint: disable=line-too-long
1521
1537
  """[Update] The List Blobs operation returns a list of the blobs under the specified container.
1522
1538
 
1523
1539
  :param prefix: Filters the results to return only containers whose name begins with the
@@ -1553,7 +1569,7 @@ class ContainerOperations:
1553
1569
  :rtype: ~azure.storage.blob.models.ListBlobsFlatSegmentResponse
1554
1570
  :raises ~azure.core.exceptions.HttpResponseError:
1555
1571
  """
1556
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
1572
+ error_map: MutableMapping[int, Type[HttpResponseError]] = { # pylint: disable=unsubscriptable-object
1557
1573
  401: ClientAuthenticationError,
1558
1574
  404: ResourceNotFoundError,
1559
1575
  409: ResourceExistsError,
@@ -1624,6 +1640,7 @@ class ContainerOperations:
1624
1640
  request_id_parameter: Optional[str] = None,
1625
1641
  **kwargs: Any
1626
1642
  ) -> _models.ListBlobsHierarchySegmentResponse:
1643
+ # pylint: disable=line-too-long
1627
1644
  """[Update] The List Blobs operation returns a list of the blobs under the specified container.
1628
1645
 
1629
1646
  :param delimiter: When the request includes this parameter, the operation returns a BlobPrefix
@@ -1664,7 +1681,7 @@ class ContainerOperations:
1664
1681
  :rtype: ~azure.storage.blob.models.ListBlobsHierarchySegmentResponse
1665
1682
  :raises ~azure.core.exceptions.HttpResponseError:
1666
1683
  """
1667
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
1684
+ error_map: MutableMapping[int, Type[HttpResponseError]] = { # pylint: disable=unsubscriptable-object
1668
1685
  401: ClientAuthenticationError,
1669
1686
  404: ResourceNotFoundError,
1670
1687
  409: ResourceExistsError,
@@ -1728,6 +1745,7 @@ class ContainerOperations:
1728
1745
  async def get_account_info( # pylint: disable=inconsistent-return-statements
1729
1746
  self, timeout: Optional[int] = None, request_id_parameter: Optional[str] = None, **kwargs: Any
1730
1747
  ) -> None:
1748
+ # pylint: disable=line-too-long
1731
1749
  """Returns the sku name and account kind.
1732
1750
 
1733
1751
  :param timeout: The timeout parameter is expressed in seconds. For more information, see
@@ -1743,7 +1761,7 @@ class ContainerOperations:
1743
1761
  :rtype: None
1744
1762
  :raises ~azure.core.exceptions.HttpResponseError:
1745
1763
  """
1746
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
1764
+ error_map: MutableMapping[int, Type[HttpResponseError]] = { # pylint: disable=unsubscriptable-object
1747
1765
  401: ClientAuthenticationError,
1748
1766
  404: ResourceNotFoundError,
1749
1767
  409: ResourceExistsError,
@@ -84,6 +84,7 @@ class PageBlobOperations:
84
84
  modified_access_conditions: Optional[_models.ModifiedAccessConditions] = None,
85
85
  **kwargs: Any
86
86
  ) -> None:
87
+ # pylint: disable=line-too-long
87
88
  """The Create operation creates a new page blob.
88
89
 
89
90
  :param content_length: The length of the request. Required.
@@ -140,7 +141,7 @@ class PageBlobOperations:
140
141
  :rtype: None
141
142
  :raises ~azure.core.exceptions.HttpResponseError:
142
143
  """
143
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
144
+ error_map: MutableMapping[int, Type[HttpResponseError]] = { # pylint: disable=unsubscriptable-object
144
145
  401: ClientAuthenticationError,
145
146
  404: ResourceNotFoundError,
146
147
  409: ResourceExistsError,
@@ -274,6 +275,8 @@ class PageBlobOperations:
274
275
  timeout: Optional[int] = None,
275
276
  range: Optional[str] = None,
276
277
  request_id_parameter: Optional[str] = None,
278
+ structured_body_type: Optional[str] = None,
279
+ structured_content_length: Optional[int] = None,
277
280
  lease_access_conditions: Optional[_models.LeaseAccessConditions] = None,
278
281
  cpk_info: Optional[_models.CpkInfo] = None,
279
282
  cpk_scope_info: Optional[_models.CpkScopeInfo] = None,
@@ -281,6 +284,7 @@ class PageBlobOperations:
281
284
  modified_access_conditions: Optional[_models.ModifiedAccessConditions] = None,
282
285
  **kwargs: Any
283
286
  ) -> None:
287
+ # pylint: disable=line-too-long
284
288
  """The Upload Pages operation writes a range of pages to a page blob.
285
289
 
286
290
  :param content_length: The length of the request. Required.
@@ -304,6 +308,13 @@ class PageBlobOperations:
304
308
  limit that is recorded in the analytics logs when storage analytics logging is enabled. Default
305
309
  value is None.
306
310
  :type request_id_parameter: str
311
+ :param structured_body_type: Required if the request body is a structured message. Specifies
312
+ the message schema version and properties. Default value is None.
313
+ :type structured_body_type: str
314
+ :param structured_content_length: Required if the request body is a structured message.
315
+ Specifies the length of the blob/file content inside the message body. Will always be smaller
316
+ than Content-Length. Default value is None.
317
+ :type structured_content_length: int
307
318
  :param lease_access_conditions: Parameter group. Default value is None.
308
319
  :type lease_access_conditions: ~azure.storage.blob.models.LeaseAccessConditions
309
320
  :param cpk_info: Parameter group. Default value is None.
@@ -319,7 +330,7 @@ class PageBlobOperations:
319
330
  :rtype: None
320
331
  :raises ~azure.core.exceptions.HttpResponseError:
321
332
  """
322
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
333
+ error_map: MutableMapping[int, Type[HttpResponseError]] = { # pylint: disable=unsubscriptable-object
323
334
  401: ClientAuthenticationError,
324
335
  404: ResourceNotFoundError,
325
336
  409: ResourceExistsError,
@@ -391,6 +402,8 @@ class PageBlobOperations:
391
402
  if_none_match=_if_none_match,
392
403
  if_tags=_if_tags,
393
404
  request_id_parameter=request_id_parameter,
405
+ structured_body_type=structured_body_type,
406
+ structured_content_length=structured_content_length,
394
407
  comp=comp,
395
408
  page_write=page_write,
396
409
  content_type=content_type,
@@ -438,6 +451,9 @@ class PageBlobOperations:
438
451
  response_headers["x-ms-encryption-scope"] = self._deserialize(
439
452
  "str", response.headers.get("x-ms-encryption-scope")
440
453
  )
454
+ response_headers["x-ms-structured-body"] = self._deserialize(
455
+ "str", response.headers.get("x-ms-structured-body")
456
+ )
441
457
 
442
458
  if cls:
443
459
  return cls(pipeline_response, None, response_headers) # type: ignore
@@ -456,6 +472,7 @@ class PageBlobOperations:
456
472
  modified_access_conditions: Optional[_models.ModifiedAccessConditions] = None,
457
473
  **kwargs: Any
458
474
  ) -> None:
475
+ # pylint: disable=line-too-long
459
476
  """The Clear Pages operation clears a set of pages from a page blob.
460
477
 
461
478
  :param content_length: The length of the request. Required.
@@ -486,7 +503,7 @@ class PageBlobOperations:
486
503
  :rtype: None
487
504
  :raises ~azure.core.exceptions.HttpResponseError:
488
505
  """
489
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
506
+ error_map: MutableMapping[int, Type[HttpResponseError]] = { # pylint: disable=unsubscriptable-object
490
507
  401: ClientAuthenticationError,
491
508
  404: ResourceNotFoundError,
492
509
  409: ResourceExistsError,
@@ -614,6 +631,7 @@ class PageBlobOperations:
614
631
  source_modified_access_conditions: Optional[_models.SourceModifiedAccessConditions] = None,
615
632
  **kwargs: Any
616
633
  ) -> None:
634
+ # pylint: disable=line-too-long
617
635
  """The Upload Pages operation writes a range of pages to a page blob where the contents are read
618
636
  from a URL.
619
637
 
@@ -663,7 +681,7 @@ class PageBlobOperations:
663
681
  :rtype: None
664
682
  :raises ~azure.core.exceptions.HttpResponseError:
665
683
  """
666
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
684
+ error_map: MutableMapping[int, Type[HttpResponseError]] = { # pylint: disable=unsubscriptable-object
667
685
  401: ClientAuthenticationError,
668
686
  404: ResourceNotFoundError,
669
687
  409: ResourceExistsError,
@@ -808,6 +826,7 @@ class PageBlobOperations:
808
826
  modified_access_conditions: Optional[_models.ModifiedAccessConditions] = None,
809
827
  **kwargs: Any
810
828
  ) -> _models.PageList:
829
+ # pylint: disable=line-too-long
811
830
  """The Get Page Ranges operation returns the list of valid page ranges for a page blob or snapshot
812
831
  of a page blob.
813
832
 
@@ -850,7 +869,7 @@ class PageBlobOperations:
850
869
  :rtype: ~azure.storage.blob.models.PageList
851
870
  :raises ~azure.core.exceptions.HttpResponseError:
852
871
  """
853
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
872
+ error_map: MutableMapping[int, Type[HttpResponseError]] = { # pylint: disable=unsubscriptable-object
854
873
  401: ClientAuthenticationError,
855
874
  404: ResourceNotFoundError,
856
875
  409: ResourceExistsError,
@@ -947,6 +966,7 @@ class PageBlobOperations:
947
966
  modified_access_conditions: Optional[_models.ModifiedAccessConditions] = None,
948
967
  **kwargs: Any
949
968
  ) -> _models.PageList:
969
+ # pylint: disable=line-too-long
950
970
  """The Get Page Ranges Diff operation returns the list of valid page ranges for a page blob that
951
971
  were changed between target blob and previous snapshot.
952
972
 
@@ -1001,7 +1021,7 @@ class PageBlobOperations:
1001
1021
  :rtype: ~azure.storage.blob.models.PageList
1002
1022
  :raises ~azure.core.exceptions.HttpResponseError:
1003
1023
  """
1004
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
1024
+ error_map: MutableMapping[int, Type[HttpResponseError]] = { # pylint: disable=unsubscriptable-object
1005
1025
  401: ClientAuthenticationError,
1006
1026
  404: ResourceNotFoundError,
1007
1027
  409: ResourceExistsError,
@@ -1097,6 +1117,7 @@ class PageBlobOperations:
1097
1117
  modified_access_conditions: Optional[_models.ModifiedAccessConditions] = None,
1098
1118
  **kwargs: Any
1099
1119
  ) -> None:
1120
+ # pylint: disable=line-too-long
1100
1121
  """Resize the Blob.
1101
1122
 
1102
1123
  :param blob_content_length: This header specifies the maximum size for the page blob, up to 1
@@ -1123,7 +1144,7 @@ class PageBlobOperations:
1123
1144
  :rtype: None
1124
1145
  :raises ~azure.core.exceptions.HttpResponseError:
1125
1146
  """
1126
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
1147
+ error_map: MutableMapping[int, Type[HttpResponseError]] = { # pylint: disable=unsubscriptable-object
1127
1148
  401: ClientAuthenticationError,
1128
1149
  404: ResourceNotFoundError,
1129
1150
  409: ResourceExistsError,
@@ -1223,6 +1244,7 @@ class PageBlobOperations:
1223
1244
  modified_access_conditions: Optional[_models.ModifiedAccessConditions] = None,
1224
1245
  **kwargs: Any
1225
1246
  ) -> None:
1247
+ # pylint: disable=line-too-long
1226
1248
  """Update the sequence number of the blob.
1227
1249
 
1228
1250
  :param sequence_number_action: Required if the x-ms-blob-sequence-number header is set for the
@@ -1251,7 +1273,7 @@ class PageBlobOperations:
1251
1273
  :rtype: None
1252
1274
  :raises ~azure.core.exceptions.HttpResponseError:
1253
1275
  """
1254
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
1276
+ error_map: MutableMapping[int, Type[HttpResponseError]] = { # pylint: disable=unsubscriptable-object
1255
1277
  401: ClientAuthenticationError,
1256
1278
  404: ResourceNotFoundError,
1257
1279
  409: ResourceExistsError,
@@ -1336,6 +1358,7 @@ class PageBlobOperations:
1336
1358
  modified_access_conditions: Optional[_models.ModifiedAccessConditions] = None,
1337
1359
  **kwargs: Any
1338
1360
  ) -> None:
1361
+ # pylint: disable=line-too-long
1339
1362
  """The Copy Incremental operation copies a snapshot of the source page blob to a destination page
1340
1363
  blob. The snapshot is copied such that only the differential changes between the previously
1341
1364
  copied snapshot are transferred to the destination. The copied snapshots are complete copies of
@@ -1362,7 +1385,7 @@ class PageBlobOperations:
1362
1385
  :rtype: None
1363
1386
  :raises ~azure.core.exceptions.HttpResponseError:
1364
1387
  """
1365
- error_map: MutableMapping[int, Type[HttpResponseError]] = {
1388
+ error_map: MutableMapping[int, Type[HttpResponseError]] = { # pylint: disable=unsubscriptable-object
1366
1389
  401: ClientAuthenticationError,
1367
1390
  404: ResourceNotFoundError,
1368
1391
  409: ResourceExistsError,