azure-storage-blob 12.19.1__py3-none-any.whl → 12.20.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 (59) hide show
  1. azure/storage/blob/__init__.py +17 -5
  2. azure/storage/blob/_blob_client.py +23 -7
  3. azure/storage/blob/_blob_service_client.py +9 -3
  4. azure/storage/blob/_container_client.py +37 -13
  5. azure/storage/blob/_download.py +3 -3
  6. azure/storage/blob/_encryption.py +254 -165
  7. azure/storage/blob/_generated/_azure_blob_storage.py +21 -3
  8. azure/storage/blob/_generated/_configuration.py +4 -11
  9. azure/storage/blob/_generated/_serialization.py +41 -49
  10. azure/storage/blob/_generated/aio/_azure_blob_storage.py +23 -3
  11. azure/storage/blob/_generated/aio/_configuration.py +4 -11
  12. azure/storage/blob/_generated/aio/operations/_append_blob_operations.py +24 -58
  13. azure/storage/blob/_generated/aio/operations/_blob_operations.py +123 -306
  14. azure/storage/blob/_generated/aio/operations/_block_blob_operations.py +37 -86
  15. azure/storage/blob/_generated/aio/operations/_container_operations.py +98 -289
  16. azure/storage/blob/_generated/aio/operations/_page_blob_operations.py +51 -150
  17. azure/storage/blob/_generated/aio/operations/_service_operations.py +49 -125
  18. azure/storage/blob/_generated/models/_models_py3.py +31 -31
  19. azure/storage/blob/_generated/operations/_append_blob_operations.py +25 -59
  20. azure/storage/blob/_generated/operations/_blob_operations.py +123 -306
  21. azure/storage/blob/_generated/operations/_block_blob_operations.py +39 -88
  22. azure/storage/blob/_generated/operations/_container_operations.py +100 -291
  23. azure/storage/blob/_generated/operations/_page_blob_operations.py +52 -151
  24. azure/storage/blob/_generated/operations/_service_operations.py +50 -126
  25. azure/storage/blob/_lease.py +1 -0
  26. azure/storage/blob/_models.py +3 -4
  27. azure/storage/blob/_serialize.py +1 -0
  28. azure/storage/blob/_shared/authentication.py +1 -1
  29. azure/storage/blob/_shared/avro/avro_io.py +0 -6
  30. azure/storage/blob/_shared/avro/avro_io_async.py +0 -6
  31. azure/storage/blob/_shared/avro/datafile.py +0 -4
  32. azure/storage/blob/_shared/avro/datafile_async.py +0 -4
  33. azure/storage/blob/_shared/avro/schema.py +4 -4
  34. azure/storage/blob/_shared/base_client.py +72 -87
  35. azure/storage/blob/_shared/base_client_async.py +115 -27
  36. azure/storage/blob/_shared/models.py +120 -27
  37. azure/storage/blob/_shared/parser.py +7 -6
  38. azure/storage/blob/_shared/policies.py +96 -66
  39. azure/storage/blob/_shared/policies_async.py +48 -21
  40. azure/storage/blob/_shared/response_handlers.py +14 -16
  41. azure/storage/blob/_shared/shared_access_signature.py +3 -3
  42. azure/storage/blob/_shared_access_signature.py +38 -27
  43. azure/storage/blob/_upload_helpers.py +4 -7
  44. azure/storage/blob/_version.py +1 -1
  45. azure/storage/blob/aio/__init__.py +13 -4
  46. azure/storage/blob/aio/_blob_client_async.py +17 -6
  47. azure/storage/blob/aio/_blob_service_client_async.py +4 -2
  48. azure/storage/blob/aio/_container_client_async.py +26 -9
  49. azure/storage/blob/aio/_download_async.py +9 -9
  50. azure/storage/blob/aio/_encryption_async.py +72 -0
  51. azure/storage/blob/aio/_lease_async.py +1 -1
  52. azure/storage/blob/aio/_upload_helpers.py +8 -10
  53. {azure_storage_blob-12.19.1.dist-info → azure_storage_blob-12.20.0.dist-info}/METADATA +10 -10
  54. azure_storage_blob-12.20.0.dist-info/RECORD +81 -0
  55. {azure_storage_blob-12.19.1.dist-info → azure_storage_blob-12.20.0.dist-info}/WHEEL +1 -1
  56. azure/storage/blob/_generated/py.typed +0 -1
  57. azure_storage_blob-12.19.1.dist-info/RECORD +0 -81
  58. {azure_storage_blob-12.19.1.dist-info → azure_storage_blob-12.20.0.dist-info}/LICENSE +0 -0
  59. {azure_storage_blob-12.19.1.dist-info → azure_storage_blob-12.20.0.dist-info}/top_level.txt +0 -0
@@ -1,4 +1,4 @@
1
- # pylint: disable=too-many-lines
1
+ # pylint: disable=too-many-lines,too-many-statements
2
2
  # coding=utf-8
3
3
  # --------------------------------------------------------------------------
4
4
  # Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6,8 +6,7 @@
6
6
  # Code generated by Microsoft (R) AutoRest Code Generator.
7
7
  # Changes may cause incorrect behavior and will be lost if the code is regenerated.
8
8
  # --------------------------------------------------------------------------
9
- import sys
10
- from typing import Any, AsyncIterator, Callable, Dict, IO, List, Optional, TypeVar, Union
9
+ from typing import Any, AsyncIterator, Callable, Dict, IO, List, Literal, Optional, TypeVar, Union
11
10
 
12
11
  from azure.core.exceptions import (
13
12
  ClientAuthenticationError,
@@ -36,10 +35,6 @@ from ...operations._service_operations import (
36
35
  build_submit_batch_request,
37
36
  )
38
37
 
39
- if sys.version_info >= (3, 8):
40
- from typing import Literal # pylint: disable=no-name-in-module, ungrouped-imports
41
- else:
42
- from typing_extensions import Literal # type: ignore # pylint: disable=ungrouped-imports
43
38
  T = TypeVar("T")
44
39
  ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]]
45
40
 
@@ -85,13 +80,6 @@ class ServiceOperations:
85
80
  limit that is recorded in the analytics logs when storage analytics logging is enabled. Default
86
81
  value is None.
87
82
  :type request_id_parameter: str
88
- :keyword restype: restype. Default value is "service". Note that overriding this default value
89
- may result in unsupported behavior.
90
- :paramtype restype: str
91
- :keyword comp: comp. Default value is "properties". Note that overriding this default value may
92
- result in unsupported behavior.
93
- :paramtype comp: str
94
- :keyword callable cls: A custom type or function that will be passed the direct response
95
83
  :return: None or the result of cls(response)
96
84
  :rtype: None
97
85
  :raises ~azure.core.exceptions.HttpResponseError:
@@ -114,7 +102,7 @@ class ServiceOperations:
114
102
 
115
103
  _content = self._serialize.body(storage_service_properties, "StorageServiceProperties", is_xml=True)
116
104
 
117
- request = build_set_properties_request(
105
+ _request = build_set_properties_request(
118
106
  url=self._config.url,
119
107
  timeout=timeout,
120
108
  request_id_parameter=request_id_parameter,
@@ -123,16 +111,15 @@ class ServiceOperations:
123
111
  content_type=content_type,
124
112
  version=self._config.version,
125
113
  content=_content,
126
- template_url=self.set_properties.metadata["url"],
127
114
  headers=_headers,
128
115
  params=_params,
129
116
  )
130
- request = _convert_request(request)
131
- request.url = self._client.format_url(request.url)
117
+ _request = _convert_request(_request)
118
+ _request.url = self._client.format_url(_request.url)
132
119
 
133
120
  _stream = False
134
121
  pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
135
- request, stream=_stream, **kwargs
122
+ _request, stream=_stream, **kwargs
136
123
  )
137
124
 
138
125
  response = pipeline_response.http_response
@@ -150,9 +137,7 @@ class ServiceOperations:
150
137
  response_headers["x-ms-version"] = self._deserialize("str", response.headers.get("x-ms-version"))
151
138
 
152
139
  if cls:
153
- return cls(pipeline_response, None, response_headers)
154
-
155
- set_properties.metadata = {"url": "{url}"}
140
+ return cls(pipeline_response, None, response_headers) # type: ignore
156
141
 
157
142
  @distributed_trace_async
158
143
  async def get_properties(
@@ -170,13 +155,6 @@ class ServiceOperations:
170
155
  limit that is recorded in the analytics logs when storage analytics logging is enabled. Default
171
156
  value is None.
172
157
  :type request_id_parameter: str
173
- :keyword restype: restype. Default value is "service". Note that overriding this default value
174
- may result in unsupported behavior.
175
- :paramtype restype: str
176
- :keyword comp: comp. Default value is "properties". Note that overriding this default value may
177
- result in unsupported behavior.
178
- :paramtype comp: str
179
- :keyword callable cls: A custom type or function that will be passed the direct response
180
158
  :return: StorageServiceProperties or the result of cls(response)
181
159
  :rtype: ~azure.storage.blob.models.StorageServiceProperties
182
160
  :raises ~azure.core.exceptions.HttpResponseError:
@@ -196,23 +174,22 @@ class ServiceOperations:
196
174
  comp: Literal["properties"] = kwargs.pop("comp", _params.pop("comp", "properties"))
197
175
  cls: ClsType[_models.StorageServiceProperties] = kwargs.pop("cls", None)
198
176
 
199
- request = build_get_properties_request(
177
+ _request = build_get_properties_request(
200
178
  url=self._config.url,
201
179
  timeout=timeout,
202
180
  request_id_parameter=request_id_parameter,
203
181
  restype=restype,
204
182
  comp=comp,
205
183
  version=self._config.version,
206
- template_url=self.get_properties.metadata["url"],
207
184
  headers=_headers,
208
185
  params=_params,
209
186
  )
210
- request = _convert_request(request)
211
- request.url = self._client.format_url(request.url)
187
+ _request = _convert_request(_request)
188
+ _request.url = self._client.format_url(_request.url)
212
189
 
213
190
  _stream = False
214
191
  pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
215
- request, stream=_stream, **kwargs
192
+ _request, stream=_stream, **kwargs
216
193
  )
217
194
 
218
195
  response = pipeline_response.http_response
@@ -232,11 +209,9 @@ class ServiceOperations:
232
209
  deserialized = self._deserialize("StorageServiceProperties", pipeline_response)
233
210
 
234
211
  if cls:
235
- return cls(pipeline_response, deserialized, response_headers)
236
-
237
- return deserialized
212
+ return cls(pipeline_response, deserialized, response_headers) # type: ignore
238
213
 
239
- get_properties.metadata = {"url": "{url}"}
214
+ return deserialized # type: ignore
240
215
 
241
216
  @distributed_trace_async
242
217
  async def get_statistics(
@@ -255,13 +230,6 @@ class ServiceOperations:
255
230
  limit that is recorded in the analytics logs when storage analytics logging is enabled. Default
256
231
  value is None.
257
232
  :type request_id_parameter: str
258
- :keyword restype: restype. Default value is "service". Note that overriding this default value
259
- may result in unsupported behavior.
260
- :paramtype restype: str
261
- :keyword comp: comp. Default value is "stats". Note that overriding this default value may
262
- result in unsupported behavior.
263
- :paramtype comp: str
264
- :keyword callable cls: A custom type or function that will be passed the direct response
265
233
  :return: StorageServiceStats or the result of cls(response)
266
234
  :rtype: ~azure.storage.blob.models.StorageServiceStats
267
235
  :raises ~azure.core.exceptions.HttpResponseError:
@@ -281,23 +249,22 @@ class ServiceOperations:
281
249
  comp: Literal["stats"] = kwargs.pop("comp", _params.pop("comp", "stats"))
282
250
  cls: ClsType[_models.StorageServiceStats] = kwargs.pop("cls", None)
283
251
 
284
- request = build_get_statistics_request(
252
+ _request = build_get_statistics_request(
285
253
  url=self._config.url,
286
254
  timeout=timeout,
287
255
  request_id_parameter=request_id_parameter,
288
256
  restype=restype,
289
257
  comp=comp,
290
258
  version=self._config.version,
291
- template_url=self.get_statistics.metadata["url"],
292
259
  headers=_headers,
293
260
  params=_params,
294
261
  )
295
- request = _convert_request(request)
296
- request.url = self._client.format_url(request.url)
262
+ _request = _convert_request(_request)
263
+ _request.url = self._client.format_url(_request.url)
297
264
 
298
265
  _stream = False
299
266
  pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
300
- request, stream=_stream, **kwargs
267
+ _request, stream=_stream, **kwargs
301
268
  )
302
269
 
303
270
  response = pipeline_response.http_response
@@ -318,11 +285,9 @@ class ServiceOperations:
318
285
  deserialized = self._deserialize("StorageServiceStats", pipeline_response)
319
286
 
320
287
  if cls:
321
- return cls(pipeline_response, deserialized, response_headers)
322
-
323
- return deserialized
288
+ return cls(pipeline_response, deserialized, response_headers) # type: ignore
324
289
 
325
- get_statistics.metadata = {"url": "{url}"}
290
+ return deserialized # type: ignore
326
291
 
327
292
  @distributed_trace_async
328
293
  async def list_containers_segment(
@@ -367,10 +332,6 @@ class ServiceOperations:
367
332
  limit that is recorded in the analytics logs when storage analytics logging is enabled. Default
368
333
  value is None.
369
334
  :type request_id_parameter: str
370
- :keyword comp: comp. Default value is "list". Note that overriding this default value may
371
- result in unsupported behavior.
372
- :paramtype comp: str
373
- :keyword callable cls: A custom type or function that will be passed the direct response
374
335
  :return: ListContainersSegmentResponse or the result of cls(response)
375
336
  :rtype: ~azure.storage.blob.models.ListContainersSegmentResponse
376
337
  :raises ~azure.core.exceptions.HttpResponseError:
@@ -389,7 +350,7 @@ class ServiceOperations:
389
350
  comp: Literal["list"] = kwargs.pop("comp", _params.pop("comp", "list"))
390
351
  cls: ClsType[_models.ListContainersSegmentResponse] = kwargs.pop("cls", None)
391
352
 
392
- request = build_list_containers_segment_request(
353
+ _request = build_list_containers_segment_request(
393
354
  url=self._config.url,
394
355
  prefix=prefix,
395
356
  marker=marker,
@@ -399,16 +360,15 @@ class ServiceOperations:
399
360
  request_id_parameter=request_id_parameter,
400
361
  comp=comp,
401
362
  version=self._config.version,
402
- template_url=self.list_containers_segment.metadata["url"],
403
363
  headers=_headers,
404
364
  params=_params,
405
365
  )
406
- request = _convert_request(request)
407
- request.url = self._client.format_url(request.url)
366
+ _request = _convert_request(_request)
367
+ _request.url = self._client.format_url(_request.url)
408
368
 
409
369
  _stream = False
410
370
  pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
411
- request, stream=_stream, **kwargs
371
+ _request, stream=_stream, **kwargs
412
372
  )
413
373
 
414
374
  response = pipeline_response.http_response
@@ -428,11 +388,9 @@ class ServiceOperations:
428
388
  deserialized = self._deserialize("ListContainersSegmentResponse", pipeline_response)
429
389
 
430
390
  if cls:
431
- return cls(pipeline_response, deserialized, response_headers)
432
-
433
- return deserialized
391
+ return cls(pipeline_response, deserialized, response_headers) # type: ignore
434
392
 
435
- list_containers_segment.metadata = {"url": "{url}"}
393
+ return deserialized # type: ignore
436
394
 
437
395
  @distributed_trace_async
438
396
  async def get_user_delegation_key(
@@ -456,13 +414,6 @@ class ServiceOperations:
456
414
  limit that is recorded in the analytics logs when storage analytics logging is enabled. Default
457
415
  value is None.
458
416
  :type request_id_parameter: str
459
- :keyword restype: restype. Default value is "service". Note that overriding this default value
460
- may result in unsupported behavior.
461
- :paramtype restype: str
462
- :keyword comp: comp. Default value is "userdelegationkey". Note that overriding this default
463
- value may result in unsupported behavior.
464
- :paramtype comp: str
465
- :keyword callable cls: A custom type or function that will be passed the direct response
466
417
  :return: UserDelegationKey or the result of cls(response)
467
418
  :rtype: ~azure.storage.blob.models.UserDelegationKey
468
419
  :raises ~azure.core.exceptions.HttpResponseError:
@@ -485,7 +436,7 @@ class ServiceOperations:
485
436
 
486
437
  _content = self._serialize.body(key_info, "KeyInfo", is_xml=True)
487
438
 
488
- request = build_get_user_delegation_key_request(
439
+ _request = build_get_user_delegation_key_request(
489
440
  url=self._config.url,
490
441
  timeout=timeout,
491
442
  request_id_parameter=request_id_parameter,
@@ -494,16 +445,15 @@ class ServiceOperations:
494
445
  content_type=content_type,
495
446
  version=self._config.version,
496
447
  content=_content,
497
- template_url=self.get_user_delegation_key.metadata["url"],
498
448
  headers=_headers,
499
449
  params=_params,
500
450
  )
501
- request = _convert_request(request)
502
- request.url = self._client.format_url(request.url)
451
+ _request = _convert_request(_request)
452
+ _request.url = self._client.format_url(_request.url)
503
453
 
504
454
  _stream = False
505
455
  pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
506
- request, stream=_stream, **kwargs
456
+ _request, stream=_stream, **kwargs
507
457
  )
508
458
 
509
459
  response = pipeline_response.http_response
@@ -524,23 +474,14 @@ class ServiceOperations:
524
474
  deserialized = self._deserialize("UserDelegationKey", pipeline_response)
525
475
 
526
476
  if cls:
527
- return cls(pipeline_response, deserialized, response_headers)
528
-
529
- return deserialized
477
+ return cls(pipeline_response, deserialized, response_headers) # type: ignore
530
478
 
531
- get_user_delegation_key.metadata = {"url": "{url}"}
479
+ return deserialized # type: ignore
532
480
 
533
481
  @distributed_trace_async
534
482
  async def get_account_info(self, **kwargs: Any) -> None: # pylint: disable=inconsistent-return-statements
535
483
  """Returns the sku name and account kind.
536
484
 
537
- :keyword restype: restype. Default value is "account". Note that overriding this default value
538
- may result in unsupported behavior.
539
- :paramtype restype: str
540
- :keyword comp: comp. Default value is "properties". Note that overriding this default value may
541
- result in unsupported behavior.
542
- :paramtype comp: str
543
- :keyword callable cls: A custom type or function that will be passed the direct response
544
485
  :return: None or the result of cls(response)
545
486
  :rtype: None
546
487
  :raises ~azure.core.exceptions.HttpResponseError:
@@ -560,21 +501,20 @@ class ServiceOperations:
560
501
  comp: Literal["properties"] = kwargs.pop("comp", _params.pop("comp", "properties"))
561
502
  cls: ClsType[None] = kwargs.pop("cls", None)
562
503
 
563
- request = build_get_account_info_request(
504
+ _request = build_get_account_info_request(
564
505
  url=self._config.url,
565
506
  restype=restype,
566
507
  comp=comp,
567
508
  version=self._config.version,
568
- template_url=self.get_account_info.metadata["url"],
569
509
  headers=_headers,
570
510
  params=_params,
571
511
  )
572
- request = _convert_request(request)
573
- request.url = self._client.format_url(request.url)
512
+ _request = _convert_request(_request)
513
+ _request.url = self._client.format_url(_request.url)
574
514
 
575
515
  _stream = False
576
516
  pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
577
- request, stream=_stream, **kwargs
517
+ _request, stream=_stream, **kwargs
578
518
  )
579
519
 
580
520
  response = pipeline_response.http_response
@@ -596,15 +536,13 @@ class ServiceOperations:
596
536
  response_headers["x-ms-is-hns-enabled"] = self._deserialize("bool", response.headers.get("x-ms-is-hns-enabled"))
597
537
 
598
538
  if cls:
599
- return cls(pipeline_response, None, response_headers)
600
-
601
- get_account_info.metadata = {"url": "{url}"}
539
+ return cls(pipeline_response, None, response_headers) # type: ignore
602
540
 
603
541
  @distributed_trace_async
604
542
  async def submit_batch(
605
543
  self,
606
544
  content_length: int,
607
- body: IO,
545
+ body: IO[bytes],
608
546
  timeout: Optional[int] = None,
609
547
  request_id_parameter: Optional[str] = None,
610
548
  **kwargs: Any
@@ -614,7 +552,7 @@ class ServiceOperations:
614
552
  :param content_length: The length of the request. Required.
615
553
  :type content_length: int
616
554
  :param body: Initial data. Required.
617
- :type body: IO
555
+ :type body: IO[bytes]
618
556
  :param timeout: The timeout parameter is expressed in seconds. For more information, see
619
557
  :code:`<a
620
558
  href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
@@ -624,11 +562,7 @@ class ServiceOperations:
624
562
  limit that is recorded in the analytics logs when storage analytics logging is enabled. Default
625
563
  value is None.
626
564
  :type request_id_parameter: str
627
- :keyword comp: comp. Default value is "batch". Note that overriding this default value may
628
- result in unsupported behavior.
629
- :paramtype comp: str
630
- :keyword callable cls: A custom type or function that will be passed the direct response
631
- :return: Async iterator of the response bytes or the result of cls(response)
565
+ :return: AsyncIterator[bytes] or the result of cls(response)
632
566
  :rtype: AsyncIterator[bytes]
633
567
  :raises ~azure.core.exceptions.HttpResponseError:
634
568
  """
@@ -651,7 +585,7 @@ class ServiceOperations:
651
585
 
652
586
  _content = body
653
587
 
654
- request = build_submit_batch_request(
588
+ _request = build_submit_batch_request(
655
589
  url=self._config.url,
656
590
  content_length=content_length,
657
591
  timeout=timeout,
@@ -660,16 +594,15 @@ class ServiceOperations:
660
594
  multipart_content_type=multipart_content_type,
661
595
  version=self._config.version,
662
596
  content=_content,
663
- template_url=self.submit_batch.metadata["url"],
664
597
  headers=_headers,
665
598
  params=_params,
666
599
  )
667
- request = _convert_request(request)
668
- request.url = self._client.format_url(request.url)
600
+ _request = _convert_request(_request)
601
+ _request.url = self._client.format_url(_request.url)
669
602
 
670
603
  _stream = True
671
604
  pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
672
- request, stream=_stream, **kwargs
605
+ _request, stream=_stream, **kwargs
673
606
  )
674
607
 
675
608
  response = pipeline_response.http_response
@@ -691,8 +624,6 @@ class ServiceOperations:
691
624
 
692
625
  return deserialized # type: ignore
693
626
 
694
- submit_batch.metadata = {"url": "{url}"}
695
-
696
627
  @distributed_trace_async
697
628
  async def filter_blobs(
698
629
  self,
@@ -737,10 +668,6 @@ class ServiceOperations:
737
668
  :param include: Include this parameter to specify one or more datasets to include in the
738
669
  response. Default value is None.
739
670
  :type include: list[str or ~azure.storage.blob.models.FilterBlobsIncludeItem]
740
- :keyword comp: comp. Default value is "blobs". Note that overriding this default value may
741
- result in unsupported behavior.
742
- :paramtype comp: str
743
- :keyword callable cls: A custom type or function that will be passed the direct response
744
671
  :return: FilterBlobSegment or the result of cls(response)
745
672
  :rtype: ~azure.storage.blob.models.FilterBlobSegment
746
673
  :raises ~azure.core.exceptions.HttpResponseError:
@@ -759,7 +686,7 @@ class ServiceOperations:
759
686
  comp: Literal["blobs"] = kwargs.pop("comp", _params.pop("comp", "blobs"))
760
687
  cls: ClsType[_models.FilterBlobSegment] = kwargs.pop("cls", None)
761
688
 
762
- request = build_filter_blobs_request(
689
+ _request = build_filter_blobs_request(
763
690
  url=self._config.url,
764
691
  timeout=timeout,
765
692
  request_id_parameter=request_id_parameter,
@@ -769,16 +696,15 @@ class ServiceOperations:
769
696
  include=include,
770
697
  comp=comp,
771
698
  version=self._config.version,
772
- template_url=self.filter_blobs.metadata["url"],
773
699
  headers=_headers,
774
700
  params=_params,
775
701
  )
776
- request = _convert_request(request)
777
- request.url = self._client.format_url(request.url)
702
+ _request = _convert_request(_request)
703
+ _request.url = self._client.format_url(_request.url)
778
704
 
779
705
  _stream = False
780
706
  pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
781
- request, stream=_stream, **kwargs
707
+ _request, stream=_stream, **kwargs
782
708
  )
783
709
 
784
710
  response = pipeline_response.http_response
@@ -799,8 +725,6 @@ class ServiceOperations:
799
725
  deserialized = self._deserialize("FilterBlobSegment", pipeline_response)
800
726
 
801
727
  if cls:
802
- return cls(pipeline_response, deserialized, response_headers)
803
-
804
- return deserialized
728
+ return cls(pipeline_response, deserialized, response_headers) # type: ignore
805
729
 
806
- filter_blobs.metadata = {"url": "{url}"}
730
+ return deserialized # type: ignore