azure-storage-blob 12.24.1__py3-none-any.whl → 12.25.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 (33) hide show
  1. azure/storage/blob/_generated/__init__.py +9 -3
  2. azure/storage/blob/_generated/_configuration.py +1 -1
  3. azure/storage/blob/_generated/_patch.py +16 -29
  4. azure/storage/blob/_generated/_serialization.py +52 -117
  5. azure/storage/blob/_generated/aio/__init__.py +9 -3
  6. azure/storage/blob/_generated/aio/_configuration.py +1 -1
  7. azure/storage/blob/_generated/aio/_patch.py +16 -29
  8. azure/storage/blob/_generated/aio/operations/__init__.py +14 -8
  9. azure/storage/blob/_generated/aio/operations/_append_blob_operations.py +21 -19
  10. azure/storage/blob/_generated/aio/operations/_blob_operations.py +88 -85
  11. azure/storage/blob/_generated/aio/operations/_block_blob_operations.py +28 -25
  12. azure/storage/blob/_generated/aio/operations/_container_operations.py +59 -56
  13. azure/storage/blob/_generated/aio/operations/_page_blob_operations.py +37 -34
  14. azure/storage/blob/_generated/aio/operations/_patch.py +2 -8
  15. azure/storage/blob/_generated/aio/operations/_service_operations.py +27 -25
  16. azure/storage/blob/_generated/models/__init__.py +91 -80
  17. azure/storage/blob/_generated/models/_models_py3.py +4 -5
  18. azure/storage/blob/_generated/models/_patch.py +2 -8
  19. azure/storage/blob/_generated/operations/__init__.py +14 -8
  20. azure/storage/blob/_generated/operations/_append_blob_operations.py +18 -16
  21. azure/storage/blob/_generated/operations/_blob_operations.py +67 -65
  22. azure/storage/blob/_generated/operations/_block_blob_operations.py +23 -21
  23. azure/storage/blob/_generated/operations/_container_operations.py +46 -44
  24. azure/storage/blob/_generated/operations/_page_blob_operations.py +30 -28
  25. azure/storage/blob/_generated/operations/_patch.py +2 -8
  26. azure/storage/blob/_generated/operations/_service_operations.py +26 -24
  27. azure/storage/blob/_serialize.py +1 -0
  28. azure/storage/blob/_version.py +1 -1
  29. {azure_storage_blob-12.24.1.dist-info → azure_storage_blob-12.25.0b1.dist-info}/METADATA +1 -1
  30. {azure_storage_blob-12.24.1.dist-info → azure_storage_blob-12.25.0b1.dist-info}/RECORD +33 -33
  31. {azure_storage_blob-12.24.1.dist-info → azure_storage_blob-12.25.0b1.dist-info}/LICENSE +0 -0
  32. {azure_storage_blob-12.24.1.dist-info → azure_storage_blob-12.25.0b1.dist-info}/WHEEL +0 -0
  33. {azure_storage_blob-12.24.1.dist-info → azure_storage_blob-12.25.0b1.dist-info}/top_level.txt +0 -0
@@ -1,4 +1,4 @@
1
- # pylint: disable=too-many-lines,too-many-statements
1
+ # pylint: disable=too-many-lines
2
2
  # coding=utf-8
3
3
  # --------------------------------------------------------------------------
4
4
  # Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7,8 +7,9 @@
7
7
  # Changes may cause incorrect behavior and will be lost if the code is regenerated.
8
8
  # --------------------------------------------------------------------------
9
9
  import sys
10
- from typing import Any, AsyncIterator, Callable, Dict, IO, List, Literal, Optional, Type, TypeVar, Union
10
+ from typing import Any, AsyncIterator, Callable, Dict, IO, List, Literal, Optional, TypeVar, Union
11
11
 
12
+ from azure.core import AsyncPipelineClient
12
13
  from azure.core.exceptions import (
13
14
  ClientAuthenticationError,
14
15
  HttpResponseError,
@@ -25,6 +26,7 @@ from azure.core.tracing.decorator_async import distributed_trace_async
25
26
  from azure.core.utils import case_insensitive_dict
26
27
 
27
28
  from ... import models as _models
29
+ from ..._serialization import Deserializer, Serializer
28
30
  from ...operations._container_operations import (
29
31
  build_acquire_lease_request,
30
32
  build_break_lease_request,
@@ -45,11 +47,12 @@ from ...operations._container_operations import (
45
47
  build_set_metadata_request,
46
48
  build_submit_batch_request,
47
49
  )
50
+ from .._configuration import AzureBlobStorageConfiguration
48
51
 
49
52
  if sys.version_info >= (3, 9):
50
53
  from collections.abc import MutableMapping
51
54
  else:
52
- from typing import MutableMapping # type: ignore # pylint: disable=ungrouped-imports
55
+ from typing import MutableMapping # type: ignore
53
56
  T = TypeVar("T")
54
57
  ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]]
55
58
 
@@ -68,13 +71,13 @@ class ContainerOperations:
68
71
 
69
72
  def __init__(self, *args, **kwargs) -> None:
70
73
  input_args = list(args)
71
- self._client = input_args.pop(0) if input_args else kwargs.pop("client")
72
- self._config = input_args.pop(0) if input_args else kwargs.pop("config")
73
- self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer")
74
- self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer")
74
+ self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client")
75
+ self._config: AzureBlobStorageConfiguration = input_args.pop(0) if input_args else kwargs.pop("config")
76
+ self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer")
77
+ self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer")
75
78
 
76
79
  @distributed_trace_async
77
- async def create( # pylint: disable=inconsistent-return-statements
80
+ async def create(
78
81
  self,
79
82
  timeout: Optional[int] = None,
80
83
  metadata: Optional[Dict[str, str]] = None,
@@ -89,7 +92,7 @@ class ContainerOperations:
89
92
 
90
93
  :param timeout: The timeout parameter is expressed in seconds. For more information, see
91
94
  :code:`<a
92
- href="https://learn.microsoft.com/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
95
+ href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
93
96
  Timeouts for Blob Service Operations.</a>`. Default value is None.
94
97
  :type timeout: int
95
98
  :param metadata: Optional. Specifies a user-defined name-value pair associated with the blob.
@@ -113,7 +116,7 @@ class ContainerOperations:
113
116
  :rtype: None
114
117
  :raises ~azure.core.exceptions.HttpResponseError:
115
118
  """
116
- error_map: MutableMapping[int, Type[HttpResponseError]] = { # pylint: disable=unsubscriptable-object
119
+ error_map: MutableMapping = {
117
120
  401: ClientAuthenticationError,
118
121
  404: ResourceNotFoundError,
119
122
  409: ResourceExistsError,
@@ -174,7 +177,7 @@ class ContainerOperations:
174
177
  return cls(pipeline_response, None, response_headers) # type: ignore
175
178
 
176
179
  @distributed_trace_async
177
- async def get_properties( # pylint: disable=inconsistent-return-statements
180
+ async def get_properties(
178
181
  self,
179
182
  timeout: Optional[int] = None,
180
183
  request_id_parameter: Optional[str] = None,
@@ -187,7 +190,7 @@ class ContainerOperations:
187
190
 
188
191
  :param timeout: The timeout parameter is expressed in seconds. For more information, see
189
192
  :code:`<a
190
- href="https://learn.microsoft.com/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
193
+ href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
191
194
  Timeouts for Blob Service Operations.</a>`. Default value is None.
192
195
  :type timeout: int
193
196
  :param request_id_parameter: Provides a client-generated, opaque value with a 1 KB character
@@ -200,7 +203,7 @@ class ContainerOperations:
200
203
  :rtype: None
201
204
  :raises ~azure.core.exceptions.HttpResponseError:
202
205
  """
203
- error_map: MutableMapping[int, Type[HttpResponseError]] = { # pylint: disable=unsubscriptable-object
206
+ error_map: MutableMapping = {
204
207
  401: ClientAuthenticationError,
205
208
  404: ResourceNotFoundError,
206
209
  409: ResourceExistsError,
@@ -276,7 +279,7 @@ class ContainerOperations:
276
279
  return cls(pipeline_response, None, response_headers) # type: ignore
277
280
 
278
281
  @distributed_trace_async
279
- async def delete( # pylint: disable=inconsistent-return-statements
282
+ async def delete(
280
283
  self,
281
284
  timeout: Optional[int] = None,
282
285
  request_id_parameter: Optional[str] = None,
@@ -290,7 +293,7 @@ class ContainerOperations:
290
293
 
291
294
  :param timeout: The timeout parameter is expressed in seconds. For more information, see
292
295
  :code:`<a
293
- href="https://learn.microsoft.com/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
296
+ href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
294
297
  Timeouts for Blob Service Operations.</a>`. Default value is None.
295
298
  :type timeout: int
296
299
  :param request_id_parameter: Provides a client-generated, opaque value with a 1 KB character
@@ -305,7 +308,7 @@ class ContainerOperations:
305
308
  :rtype: None
306
309
  :raises ~azure.core.exceptions.HttpResponseError:
307
310
  """
308
- error_map: MutableMapping[int, Type[HttpResponseError]] = { # pylint: disable=unsubscriptable-object
311
+ error_map: MutableMapping = {
309
312
  401: ClientAuthenticationError,
310
313
  404: ResourceNotFoundError,
311
314
  409: ResourceExistsError,
@@ -366,7 +369,7 @@ class ContainerOperations:
366
369
  return cls(pipeline_response, None, response_headers) # type: ignore
367
370
 
368
371
  @distributed_trace_async
369
- async def set_metadata( # pylint: disable=inconsistent-return-statements
372
+ async def set_metadata(
370
373
  self,
371
374
  timeout: Optional[int] = None,
372
375
  metadata: Optional[Dict[str, str]] = None,
@@ -380,7 +383,7 @@ class ContainerOperations:
380
383
 
381
384
  :param timeout: The timeout parameter is expressed in seconds. For more information, see
382
385
  :code:`<a
383
- href="https://learn.microsoft.com/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
386
+ href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
384
387
  Timeouts for Blob Service Operations.</a>`. Default value is None.
385
388
  :type timeout: int
386
389
  :param metadata: Optional. Specifies a user-defined name-value pair associated with the blob.
@@ -403,7 +406,7 @@ class ContainerOperations:
403
406
  :rtype: None
404
407
  :raises ~azure.core.exceptions.HttpResponseError:
405
408
  """
406
- error_map: MutableMapping[int, Type[HttpResponseError]] = { # pylint: disable=unsubscriptable-object
409
+ error_map: MutableMapping = {
407
410
  401: ClientAuthenticationError,
408
411
  404: ResourceNotFoundError,
409
412
  409: ResourceExistsError,
@@ -479,7 +482,7 @@ class ContainerOperations:
479
482
 
480
483
  :param timeout: The timeout parameter is expressed in seconds. For more information, see
481
484
  :code:`<a
482
- href="https://learn.microsoft.com/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
485
+ href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
483
486
  Timeouts for Blob Service Operations.</a>`. Default value is None.
484
487
  :type timeout: int
485
488
  :param request_id_parameter: Provides a client-generated, opaque value with a 1 KB character
@@ -492,7 +495,7 @@ class ContainerOperations:
492
495
  :rtype: list[~azure.storage.blob.models.SignedIdentifier]
493
496
  :raises ~azure.core.exceptions.HttpResponseError:
494
497
  """
495
- error_map: MutableMapping[int, Type[HttpResponseError]] = { # pylint: disable=unsubscriptable-object
498
+ error_map: MutableMapping = {
496
499
  401: ClientAuthenticationError,
497
500
  404: ResourceNotFoundError,
498
501
  409: ResourceExistsError,
@@ -557,7 +560,7 @@ class ContainerOperations:
557
560
  return deserialized # type: ignore
558
561
 
559
562
  @distributed_trace_async
560
- async def set_access_policy( # pylint: disable=inconsistent-return-statements
563
+ async def set_access_policy(
561
564
  self,
562
565
  timeout: Optional[int] = None,
563
566
  access: Optional[Union[str, _models.PublicAccessType]] = None,
@@ -573,7 +576,7 @@ class ContainerOperations:
573
576
 
574
577
  :param timeout: The timeout parameter is expressed in seconds. For more information, see
575
578
  :code:`<a
576
- href="https://learn.microsoft.com/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
579
+ href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
577
580
  Timeouts for Blob Service Operations.</a>`. Default value is None.
578
581
  :type timeout: int
579
582
  :param access: Specifies whether data in the container may be accessed publicly and the level
@@ -593,7 +596,7 @@ class ContainerOperations:
593
596
  :rtype: None
594
597
  :raises ~azure.core.exceptions.HttpResponseError:
595
598
  """
596
- error_map: MutableMapping[int, Type[HttpResponseError]] = { # pylint: disable=unsubscriptable-object
599
+ error_map: MutableMapping = {
597
600
  401: ClientAuthenticationError,
598
601
  404: ResourceNotFoundError,
599
602
  409: ResourceExistsError,
@@ -669,7 +672,7 @@ class ContainerOperations:
669
672
  return cls(pipeline_response, None, response_headers) # type: ignore
670
673
 
671
674
  @distributed_trace_async
672
- async def restore( # pylint: disable=inconsistent-return-statements
675
+ async def restore(
673
676
  self,
674
677
  timeout: Optional[int] = None,
675
678
  request_id_parameter: Optional[str] = None,
@@ -682,7 +685,7 @@ class ContainerOperations:
682
685
 
683
686
  :param timeout: The timeout parameter is expressed in seconds. For more information, see
684
687
  :code:`<a
685
- href="https://learn.microsoft.com/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
688
+ href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
686
689
  Timeouts for Blob Service Operations.</a>`. Default value is None.
687
690
  :type timeout: int
688
691
  :param request_id_parameter: Provides a client-generated, opaque value with a 1 KB character
@@ -699,7 +702,7 @@ class ContainerOperations:
699
702
  :rtype: None
700
703
  :raises ~azure.core.exceptions.HttpResponseError:
701
704
  """
702
- error_map: MutableMapping[int, Type[HttpResponseError]] = { # pylint: disable=unsubscriptable-object
705
+ error_map: MutableMapping = {
703
706
  401: ClientAuthenticationError,
704
707
  404: ResourceNotFoundError,
705
708
  409: ResourceExistsError,
@@ -752,7 +755,7 @@ class ContainerOperations:
752
755
  return cls(pipeline_response, None, response_headers) # type: ignore
753
756
 
754
757
  @distributed_trace_async
755
- async def rename( # pylint: disable=inconsistent-return-statements
758
+ async def rename(
756
759
  self,
757
760
  source_container_name: str,
758
761
  timeout: Optional[int] = None,
@@ -768,7 +771,7 @@ class ContainerOperations:
768
771
  :type source_container_name: str
769
772
  :param timeout: The timeout parameter is expressed in seconds. For more information, see
770
773
  :code:`<a
771
- href="https://learn.microsoft.com/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
774
+ href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
772
775
  Timeouts for Blob Service Operations.</a>`. Default value is None.
773
776
  :type timeout: int
774
777
  :param request_id_parameter: Provides a client-generated, opaque value with a 1 KB character
@@ -782,7 +785,7 @@ class ContainerOperations:
782
785
  :rtype: None
783
786
  :raises ~azure.core.exceptions.HttpResponseError:
784
787
  """
785
- error_map: MutableMapping[int, Type[HttpResponseError]] = { # pylint: disable=unsubscriptable-object
788
+ error_map: MutableMapping = {
786
789
  401: ClientAuthenticationError,
787
790
  404: ResourceNotFoundError,
788
791
  409: ResourceExistsError,
@@ -852,7 +855,7 @@ class ContainerOperations:
852
855
  :type body: IO[bytes]
853
856
  :param timeout: The timeout parameter is expressed in seconds. For more information, see
854
857
  :code:`<a
855
- href="https://learn.microsoft.com/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
858
+ href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
856
859
  Timeouts for Blob Service Operations.</a>`. Default value is None.
857
860
  :type timeout: int
858
861
  :param request_id_parameter: Provides a client-generated, opaque value with a 1 KB character
@@ -863,7 +866,7 @@ class ContainerOperations:
863
866
  :rtype: AsyncIterator[bytes]
864
867
  :raises ~azure.core.exceptions.HttpResponseError:
865
868
  """
866
- error_map: MutableMapping[int, Type[HttpResponseError]] = { # pylint: disable=unsubscriptable-object
869
+ error_map: MutableMapping = {
867
870
  401: ClientAuthenticationError,
868
871
  404: ResourceNotFoundError,
869
872
  409: ResourceExistsError,
@@ -944,7 +947,7 @@ class ContainerOperations:
944
947
 
945
948
  :param timeout: The timeout parameter is expressed in seconds. For more information, see
946
949
  :code:`<a
947
- href="https://learn.microsoft.com/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
950
+ href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
948
951
  Timeouts for Blob Service Operations.</a>`. Default value is None.
949
952
  :type timeout: int
950
953
  :param request_id_parameter: Provides a client-generated, opaque value with a 1 KB character
@@ -975,7 +978,7 @@ class ContainerOperations:
975
978
  :rtype: ~azure.storage.blob.models.FilterBlobSegment
976
979
  :raises ~azure.core.exceptions.HttpResponseError:
977
980
  """
978
- error_map: MutableMapping[int, Type[HttpResponseError]] = { # pylint: disable=unsubscriptable-object
981
+ error_map: MutableMapping = {
979
982
  401: ClientAuthenticationError,
980
983
  404: ResourceNotFoundError,
981
984
  409: ResourceExistsError,
@@ -1034,7 +1037,7 @@ class ContainerOperations:
1034
1037
  return deserialized # type: ignore
1035
1038
 
1036
1039
  @distributed_trace_async
1037
- async def acquire_lease( # pylint: disable=inconsistent-return-statements
1040
+ async def acquire_lease(
1038
1041
  self,
1039
1042
  timeout: Optional[int] = None,
1040
1043
  duration: Optional[int] = None,
@@ -1049,7 +1052,7 @@ class ContainerOperations:
1049
1052
 
1050
1053
  :param timeout: The timeout parameter is expressed in seconds. For more information, see
1051
1054
  :code:`<a
1052
- href="https://learn.microsoft.com/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
1055
+ href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
1053
1056
  Timeouts for Blob Service Operations.</a>`. Default value is None.
1054
1057
  :type timeout: int
1055
1058
  :param duration: Specifies the duration of the lease, in seconds, or negative one (-1) for a
@@ -1070,7 +1073,7 @@ class ContainerOperations:
1070
1073
  :rtype: None
1071
1074
  :raises ~azure.core.exceptions.HttpResponseError:
1072
1075
  """
1073
- error_map: MutableMapping[int, Type[HttpResponseError]] = { # pylint: disable=unsubscriptable-object
1076
+ error_map: MutableMapping = {
1074
1077
  401: ClientAuthenticationError,
1075
1078
  404: ResourceNotFoundError,
1076
1079
  409: ResourceExistsError,
@@ -1136,7 +1139,7 @@ class ContainerOperations:
1136
1139
  return cls(pipeline_response, None, response_headers) # type: ignore
1137
1140
 
1138
1141
  @distributed_trace_async
1139
- async def release_lease( # pylint: disable=inconsistent-return-statements
1142
+ async def release_lease(
1140
1143
  self,
1141
1144
  lease_id: str,
1142
1145
  timeout: Optional[int] = None,
@@ -1152,7 +1155,7 @@ class ContainerOperations:
1152
1155
  :type lease_id: str
1153
1156
  :param timeout: The timeout parameter is expressed in seconds. For more information, see
1154
1157
  :code:`<a
1155
- href="https://learn.microsoft.com/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
1158
+ href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
1156
1159
  Timeouts for Blob Service Operations.</a>`. Default value is None.
1157
1160
  :type timeout: int
1158
1161
  :param request_id_parameter: Provides a client-generated, opaque value with a 1 KB character
@@ -1165,7 +1168,7 @@ class ContainerOperations:
1165
1168
  :rtype: None
1166
1169
  :raises ~azure.core.exceptions.HttpResponseError:
1167
1170
  """
1168
- error_map: MutableMapping[int, Type[HttpResponseError]] = { # pylint: disable=unsubscriptable-object
1171
+ error_map: MutableMapping = {
1169
1172
  401: ClientAuthenticationError,
1170
1173
  404: ResourceNotFoundError,
1171
1174
  409: ResourceExistsError,
@@ -1229,7 +1232,7 @@ class ContainerOperations:
1229
1232
  return cls(pipeline_response, None, response_headers) # type: ignore
1230
1233
 
1231
1234
  @distributed_trace_async
1232
- async def renew_lease( # pylint: disable=inconsistent-return-statements
1235
+ async def renew_lease(
1233
1236
  self,
1234
1237
  lease_id: str,
1235
1238
  timeout: Optional[int] = None,
@@ -1245,7 +1248,7 @@ class ContainerOperations:
1245
1248
  :type lease_id: str
1246
1249
  :param timeout: The timeout parameter is expressed in seconds. For more information, see
1247
1250
  :code:`<a
1248
- href="https://learn.microsoft.com/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
1251
+ href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
1249
1252
  Timeouts for Blob Service Operations.</a>`. Default value is None.
1250
1253
  :type timeout: int
1251
1254
  :param request_id_parameter: Provides a client-generated, opaque value with a 1 KB character
@@ -1258,7 +1261,7 @@ class ContainerOperations:
1258
1261
  :rtype: None
1259
1262
  :raises ~azure.core.exceptions.HttpResponseError:
1260
1263
  """
1261
- error_map: MutableMapping[int, Type[HttpResponseError]] = { # pylint: disable=unsubscriptable-object
1264
+ error_map: MutableMapping = {
1262
1265
  401: ClientAuthenticationError,
1263
1266
  404: ResourceNotFoundError,
1264
1267
  409: ResourceExistsError,
@@ -1323,7 +1326,7 @@ class ContainerOperations:
1323
1326
  return cls(pipeline_response, None, response_headers) # type: ignore
1324
1327
 
1325
1328
  @distributed_trace_async
1326
- async def break_lease( # pylint: disable=inconsistent-return-statements
1329
+ async def break_lease(
1327
1330
  self,
1328
1331
  timeout: Optional[int] = None,
1329
1332
  break_period: Optional[int] = None,
@@ -1337,7 +1340,7 @@ class ContainerOperations:
1337
1340
 
1338
1341
  :param timeout: The timeout parameter is expressed in seconds. For more information, see
1339
1342
  :code:`<a
1340
- href="https://learn.microsoft.com/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
1343
+ href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
1341
1344
  Timeouts for Blob Service Operations.</a>`. Default value is None.
1342
1345
  :type timeout: int
1343
1346
  :param break_period: For a break operation, proposed duration the lease should continue before
@@ -1358,7 +1361,7 @@ class ContainerOperations:
1358
1361
  :rtype: None
1359
1362
  :raises ~azure.core.exceptions.HttpResponseError:
1360
1363
  """
1361
- error_map: MutableMapping[int, Type[HttpResponseError]] = { # pylint: disable=unsubscriptable-object
1364
+ error_map: MutableMapping = {
1362
1365
  401: ClientAuthenticationError,
1363
1366
  404: ResourceNotFoundError,
1364
1367
  409: ResourceExistsError,
@@ -1423,7 +1426,7 @@ class ContainerOperations:
1423
1426
  return cls(pipeline_response, None, response_headers) # type: ignore
1424
1427
 
1425
1428
  @distributed_trace_async
1426
- async def change_lease( # pylint: disable=inconsistent-return-statements
1429
+ async def change_lease(
1427
1430
  self,
1428
1431
  lease_id: str,
1429
1432
  proposed_lease_id: str,
@@ -1444,7 +1447,7 @@ class ContainerOperations:
1444
1447
  :type proposed_lease_id: str
1445
1448
  :param timeout: The timeout parameter is expressed in seconds. For more information, see
1446
1449
  :code:`<a
1447
- href="https://learn.microsoft.com/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
1450
+ href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
1448
1451
  Timeouts for Blob Service Operations.</a>`. Default value is None.
1449
1452
  :type timeout: int
1450
1453
  :param request_id_parameter: Provides a client-generated, opaque value with a 1 KB character
@@ -1457,7 +1460,7 @@ class ContainerOperations:
1457
1460
  :rtype: None
1458
1461
  :raises ~azure.core.exceptions.HttpResponseError:
1459
1462
  """
1460
- error_map: MutableMapping[int, Type[HttpResponseError]] = { # pylint: disable=unsubscriptable-object
1463
+ error_map: MutableMapping = {
1461
1464
  401: ClientAuthenticationError,
1462
1465
  404: ResourceNotFoundError,
1463
1466
  409: ResourceExistsError,
@@ -1558,7 +1561,7 @@ class ContainerOperations:
1558
1561
  :type include: list[str or ~azure.storage.blob.models.ListBlobsIncludeItem]
1559
1562
  :param timeout: The timeout parameter is expressed in seconds. For more information, see
1560
1563
  :code:`<a
1561
- href="https://learn.microsoft.com/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
1564
+ href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
1562
1565
  Timeouts for Blob Service Operations.</a>`. Default value is None.
1563
1566
  :type timeout: int
1564
1567
  :param request_id_parameter: Provides a client-generated, opaque value with a 1 KB character
@@ -1569,7 +1572,7 @@ class ContainerOperations:
1569
1572
  :rtype: ~azure.storage.blob.models.ListBlobsFlatSegmentResponse
1570
1573
  :raises ~azure.core.exceptions.HttpResponseError:
1571
1574
  """
1572
- error_map: MutableMapping[int, Type[HttpResponseError]] = { # pylint: disable=unsubscriptable-object
1575
+ error_map: MutableMapping = {
1573
1576
  401: ClientAuthenticationError,
1574
1577
  404: ResourceNotFoundError,
1575
1578
  409: ResourceExistsError,
@@ -1670,7 +1673,7 @@ class ContainerOperations:
1670
1673
  :type include: list[str or ~azure.storage.blob.models.ListBlobsIncludeItem]
1671
1674
  :param timeout: The timeout parameter is expressed in seconds. For more information, see
1672
1675
  :code:`<a
1673
- href="https://learn.microsoft.com/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
1676
+ href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
1674
1677
  Timeouts for Blob Service Operations.</a>`. Default value is None.
1675
1678
  :type timeout: int
1676
1679
  :param request_id_parameter: Provides a client-generated, opaque value with a 1 KB character
@@ -1681,7 +1684,7 @@ class ContainerOperations:
1681
1684
  :rtype: ~azure.storage.blob.models.ListBlobsHierarchySegmentResponse
1682
1685
  :raises ~azure.core.exceptions.HttpResponseError:
1683
1686
  """
1684
- error_map: MutableMapping[int, Type[HttpResponseError]] = { # pylint: disable=unsubscriptable-object
1687
+ error_map: MutableMapping = {
1685
1688
  401: ClientAuthenticationError,
1686
1689
  404: ResourceNotFoundError,
1687
1690
  409: ResourceExistsError,
@@ -1742,7 +1745,7 @@ class ContainerOperations:
1742
1745
  return deserialized # type: ignore
1743
1746
 
1744
1747
  @distributed_trace_async
1745
- async def get_account_info( # pylint: disable=inconsistent-return-statements
1748
+ async def get_account_info(
1746
1749
  self, timeout: Optional[int] = None, request_id_parameter: Optional[str] = None, **kwargs: Any
1747
1750
  ) -> None:
1748
1751
  # pylint: disable=line-too-long
@@ -1750,7 +1753,7 @@ class ContainerOperations:
1750
1753
 
1751
1754
  :param timeout: The timeout parameter is expressed in seconds. For more information, see
1752
1755
  :code:`<a
1753
- href="https://learn.microsoft.com/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
1756
+ href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
1754
1757
  Timeouts for Blob Service Operations.</a>`. Default value is None.
1755
1758
  :type timeout: int
1756
1759
  :param request_id_parameter: Provides a client-generated, opaque value with a 1 KB character
@@ -1761,7 +1764,7 @@ class ContainerOperations:
1761
1764
  :rtype: None
1762
1765
  :raises ~azure.core.exceptions.HttpResponseError:
1763
1766
  """
1764
- error_map: MutableMapping[int, Type[HttpResponseError]] = { # pylint: disable=unsubscriptable-object
1767
+ error_map: MutableMapping = {
1765
1768
  401: ClientAuthenticationError,
1766
1769
  404: ResourceNotFoundError,
1767
1770
  409: ResourceExistsError,