diracx-client 0.0.1a45__py3-none-any.whl → 0.0.1a46__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.
@@ -56,13 +56,12 @@ from ...operations._operations import (
56
56
  build_well_known_get_installation_metadata_request,
57
57
  build_well_known_get_jwks_request,
58
58
  build_well_known_get_openid_configuration_request,
59
+ build_well_known_get_security_txt_request,
59
60
  )
60
61
  from .._configuration import DiracConfiguration
61
62
 
62
63
  T = TypeVar("T")
63
- ClsType = Optional[
64
- Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]
65
- ]
64
+ ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]]
66
65
 
67
66
 
68
67
  class WellKnownOperations:
@@ -79,23 +78,13 @@ class WellKnownOperations:
79
78
 
80
79
  def __init__(self, *args, **kwargs) -> None:
81
80
  input_args = list(args)
82
- self._client: AsyncPipelineClient = (
83
- input_args.pop(0) if input_args else kwargs.pop("client")
84
- )
85
- self._config: DiracConfiguration = (
86
- input_args.pop(0) if input_args else kwargs.pop("config")
87
- )
88
- self._serialize: Serializer = (
89
- input_args.pop(0) if input_args else kwargs.pop("serializer")
90
- )
91
- self._deserialize: Deserializer = (
92
- input_args.pop(0) if input_args else kwargs.pop("deserializer")
93
- )
81
+ self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client")
82
+ self._config: DiracConfiguration = input_args.pop(0) if input_args else kwargs.pop("config")
83
+ self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer")
84
+ self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer")
94
85
 
95
86
  @distributed_trace_async
96
- async def get_openid_configuration(
97
- self, **kwargs: Any
98
- ) -> _models.OpenIDConfiguration:
87
+ async def get_openid_configuration(self, **kwargs: Any) -> _models.OpenIDConfiguration:
99
88
  """Get Openid Configuration.
100
89
 
101
90
  OpenID Connect discovery endpoint.
@@ -124,23 +113,17 @@ class WellKnownOperations:
124
113
  _request.url = self._client.format_url(_request.url)
125
114
 
126
115
  _stream = False
127
- pipeline_response: PipelineResponse = (
128
- await self._client._pipeline.run( # pylint: disable=protected-access
129
- _request, stream=_stream, **kwargs
130
- )
116
+ pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
117
+ _request, stream=_stream, **kwargs
131
118
  )
132
119
 
133
120
  response = pipeline_response.http_response
134
121
 
135
122
  if response.status_code not in [200]:
136
- map_error(
137
- status_code=response.status_code, response=response, error_map=error_map
138
- )
123
+ map_error(status_code=response.status_code, response=response, error_map=error_map)
139
124
  raise HttpResponseError(response=response)
140
125
 
141
- deserialized = self._deserialize(
142
- "OpenIDConfiguration", pipeline_response.http_response
143
- )
126
+ deserialized = self._deserialize("OpenIDConfiguration", pipeline_response.http_response)
144
127
 
145
128
  if cls:
146
129
  return cls(pipeline_response, deserialized, {}) # type: ignore
@@ -177,18 +160,14 @@ class WellKnownOperations:
177
160
  _request.url = self._client.format_url(_request.url)
178
161
 
179
162
  _stream = False
180
- pipeline_response: PipelineResponse = (
181
- await self._client._pipeline.run( # pylint: disable=protected-access
182
- _request, stream=_stream, **kwargs
183
- )
163
+ pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
164
+ _request, stream=_stream, **kwargs
184
165
  )
185
166
 
186
167
  response = pipeline_response.http_response
187
168
 
188
169
  if response.status_code not in [200]:
189
- map_error(
190
- status_code=response.status_code, response=response, error_map=error_map
191
- )
170
+ map_error(status_code=response.status_code, response=response, error_map=error_map)
192
171
  raise HttpResponseError(response=response)
193
172
 
194
173
  deserialized = self._deserialize("{object}", pipeline_response.http_response)
@@ -228,18 +207,14 @@ class WellKnownOperations:
228
207
  _request.url = self._client.format_url(_request.url)
229
208
 
230
209
  _stream = False
231
- pipeline_response: PipelineResponse = (
232
- await self._client._pipeline.run( # pylint: disable=protected-access
233
- _request, stream=_stream, **kwargs
234
- )
210
+ pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
211
+ _request, stream=_stream, **kwargs
235
212
  )
236
213
 
237
214
  response = pipeline_response.http_response
238
215
 
239
216
  if response.status_code not in [200]:
240
- map_error(
241
- status_code=response.status_code, response=response, error_map=error_map
242
- )
217
+ map_error(status_code=response.status_code, response=response, error_map=error_map)
243
218
  raise HttpResponseError(response=response)
244
219
 
245
220
  deserialized = self._deserialize("Metadata", pipeline_response.http_response)
@@ -249,6 +224,53 @@ class WellKnownOperations:
249
224
 
250
225
  return deserialized # type: ignore
251
226
 
227
+ @distributed_trace_async
228
+ async def get_security_txt(self, **kwargs: Any) -> str:
229
+ """Get Security Txt.
230
+
231
+ Get the security.txt file.
232
+
233
+ :return: str
234
+ :rtype: str
235
+ :raises ~azure.core.exceptions.HttpResponseError:
236
+ """
237
+ error_map: MutableMapping = {
238
+ 401: ClientAuthenticationError,
239
+ 404: ResourceNotFoundError,
240
+ 409: ResourceExistsError,
241
+ 304: ResourceNotModifiedError,
242
+ }
243
+ error_map.update(kwargs.pop("error_map", {}) or {})
244
+
245
+ _headers = kwargs.pop("headers", {}) or {}
246
+ _params = kwargs.pop("params", {}) or {}
247
+
248
+ cls: ClsType[str] = kwargs.pop("cls", None)
249
+
250
+ _request = build_well_known_get_security_txt_request(
251
+ headers=_headers,
252
+ params=_params,
253
+ )
254
+ _request.url = self._client.format_url(_request.url)
255
+
256
+ _stream = False
257
+ pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
258
+ _request, stream=_stream, **kwargs
259
+ )
260
+
261
+ response = pipeline_response.http_response
262
+
263
+ if response.status_code not in [200]:
264
+ map_error(status_code=response.status_code, response=response, error_map=error_map)
265
+ raise HttpResponseError(response=response)
266
+
267
+ deserialized = self._deserialize("str", pipeline_response.http_response)
268
+
269
+ if cls:
270
+ return cls(pipeline_response, deserialized, {}) # type: ignore
271
+
272
+ return deserialized # type: ignore
273
+
252
274
 
253
275
  class AuthOperations: # pylint: disable=abstract-class-instantiated
254
276
  """
@@ -264,18 +286,10 @@ class AuthOperations: # pylint: disable=abstract-class-instantiated
264
286
 
265
287
  def __init__(self, *args, **kwargs) -> None:
266
288
  input_args = list(args)
267
- self._client: AsyncPipelineClient = (
268
- input_args.pop(0) if input_args else kwargs.pop("client")
269
- )
270
- self._config: DiracConfiguration = (
271
- input_args.pop(0) if input_args else kwargs.pop("config")
272
- )
273
- self._serialize: Serializer = (
274
- input_args.pop(0) if input_args else kwargs.pop("serializer")
275
- )
276
- self._deserialize: Deserializer = (
277
- input_args.pop(0) if input_args else kwargs.pop("deserializer")
278
- )
289
+ self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client")
290
+ self._config: DiracConfiguration = input_args.pop(0) if input_args else kwargs.pop("config")
291
+ self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer")
292
+ self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer")
279
293
 
280
294
  raise_if_not_implemented(
281
295
  self.__class__,
@@ -344,23 +358,17 @@ class AuthOperations: # pylint: disable=abstract-class-instantiated
344
358
  _request.url = self._client.format_url(_request.url)
345
359
 
346
360
  _stream = False
347
- pipeline_response: PipelineResponse = (
348
- await self._client._pipeline.run( # pylint: disable=protected-access
349
- _request, stream=_stream, **kwargs
350
- )
361
+ pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
362
+ _request, stream=_stream, **kwargs
351
363
  )
352
364
 
353
365
  response = pipeline_response.http_response
354
366
 
355
367
  if response.status_code not in [200]:
356
- map_error(
357
- status_code=response.status_code, response=response, error_map=error_map
358
- )
368
+ map_error(status_code=response.status_code, response=response, error_map=error_map)
359
369
  raise HttpResponseError(response=response)
360
370
 
361
- deserialized = self._deserialize(
362
- "InitiateDeviceFlowResponse", pipeline_response.http_response
363
- )
371
+ deserialized = self._deserialize("InitiateDeviceFlowResponse", pipeline_response.http_response)
364
372
 
365
373
  if cls:
366
374
  return cls(pipeline_response, deserialized, {}) # type: ignore
@@ -407,18 +415,14 @@ class AuthOperations: # pylint: disable=abstract-class-instantiated
407
415
  _request.url = self._client.format_url(_request.url)
408
416
 
409
417
  _stream = False
410
- pipeline_response: PipelineResponse = (
411
- await self._client._pipeline.run( # pylint: disable=protected-access
412
- _request, stream=_stream, **kwargs
413
- )
418
+ pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
419
+ _request, stream=_stream, **kwargs
414
420
  )
415
421
 
416
422
  response = pipeline_response.http_response
417
423
 
418
424
  if response.status_code not in [200]:
419
- map_error(
420
- status_code=response.status_code, response=response, error_map=error_map
421
- )
425
+ map_error(status_code=response.status_code, response=response, error_map=error_map)
422
426
  raise HttpResponseError(response=response)
423
427
 
424
428
  deserialized = self._deserialize("object", pipeline_response.http_response)
@@ -468,18 +472,14 @@ class AuthOperations: # pylint: disable=abstract-class-instantiated
468
472
  _request.url = self._client.format_url(_request.url)
469
473
 
470
474
  _stream = False
471
- pipeline_response: PipelineResponse = (
472
- await self._client._pipeline.run( # pylint: disable=protected-access
473
- _request, stream=_stream, **kwargs
474
- )
475
+ pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
476
+ _request, stream=_stream, **kwargs
475
477
  )
476
478
 
477
479
  response = pipeline_response.http_response
478
480
 
479
481
  if response.status_code not in [200]:
480
- map_error(
481
- status_code=response.status_code, response=response, error_map=error_map
482
- )
482
+ map_error(status_code=response.status_code, response=response, error_map=error_map)
483
483
  raise HttpResponseError(response=response)
484
484
 
485
485
  deserialized = self._deserialize("object", pipeline_response.http_response)
@@ -519,18 +519,14 @@ class AuthOperations: # pylint: disable=abstract-class-instantiated
519
519
  _request.url = self._client.format_url(_request.url)
520
520
 
521
521
  _stream = False
522
- pipeline_response: PipelineResponse = (
523
- await self._client._pipeline.run( # pylint: disable=protected-access
524
- _request, stream=_stream, **kwargs
525
- )
522
+ pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
523
+ _request, stream=_stream, **kwargs
526
524
  )
527
525
 
528
526
  response = pipeline_response.http_response
529
527
 
530
528
  if response.status_code not in [200]:
531
- map_error(
532
- status_code=response.status_code, response=response, error_map=error_map
533
- )
529
+ map_error(status_code=response.status_code, response=response, error_map=error_map)
534
530
  raise HttpResponseError(response=response)
535
531
 
536
532
  deserialized = self._deserialize("object", pipeline_response.http_response)
@@ -571,18 +567,14 @@ class AuthOperations: # pylint: disable=abstract-class-instantiated
571
567
  _request.url = self._client.format_url(_request.url)
572
568
 
573
569
  _stream = False
574
- pipeline_response: PipelineResponse = (
575
- await self._client._pipeline.run( # pylint: disable=protected-access
576
- _request, stream=_stream, **kwargs
577
- )
570
+ pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
571
+ _request, stream=_stream, **kwargs
578
572
  )
579
573
 
580
574
  response = pipeline_response.http_response
581
575
 
582
576
  if response.status_code not in [200]:
583
- map_error(
584
- status_code=response.status_code, response=response, error_map=error_map
585
- )
577
+ map_error(status_code=response.status_code, response=response, error_map=error_map)
586
578
  raise HttpResponseError(response=response)
587
579
 
588
580
  deserialized = self._deserialize("[object]", pipeline_response.http_response)
@@ -593,9 +585,7 @@ class AuthOperations: # pylint: disable=abstract-class-instantiated
593
585
  return deserialized # type: ignore
594
586
 
595
587
  @distributed_trace_async
596
- async def revoke_refresh_token_by_refresh_token(
597
- self, *, refresh_token: str, client_id: str, **kwargs: Any
598
- ) -> str:
588
+ async def revoke_refresh_token_by_refresh_token(self, *, refresh_token: str, client_id: str, **kwargs: Any) -> str:
599
589
  """Revoke Refresh Token By Refresh Token.
600
590
 
601
591
  Revoke a refresh token.
@@ -630,18 +620,14 @@ class AuthOperations: # pylint: disable=abstract-class-instantiated
630
620
  _request.url = self._client.format_url(_request.url)
631
621
 
632
622
  _stream = False
633
- pipeline_response: PipelineResponse = (
634
- await self._client._pipeline.run( # pylint: disable=protected-access
635
- _request, stream=_stream, **kwargs
636
- )
623
+ pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
624
+ _request, stream=_stream, **kwargs
637
625
  )
638
626
 
639
627
  response = pipeline_response.http_response
640
628
 
641
629
  if response.status_code not in [200]:
642
- map_error(
643
- status_code=response.status_code, response=response, error_map=error_map
644
- )
630
+ map_error(status_code=response.status_code, response=response, error_map=error_map)
645
631
  raise HttpResponseError(response=response)
646
632
 
647
633
  deserialized = self._deserialize("str", pipeline_response.http_response)
@@ -685,18 +671,14 @@ class AuthOperations: # pylint: disable=abstract-class-instantiated
685
671
  _request.url = self._client.format_url(_request.url)
686
672
 
687
673
  _stream = False
688
- pipeline_response: PipelineResponse = (
689
- await self._client._pipeline.run( # pylint: disable=protected-access
690
- _request, stream=_stream, **kwargs
691
- )
674
+ pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
675
+ _request, stream=_stream, **kwargs
692
676
  )
693
677
 
694
678
  response = pipeline_response.http_response
695
679
 
696
680
  if response.status_code not in [200]:
697
- map_error(
698
- status_code=response.status_code, response=response, error_map=error_map
699
- )
681
+ map_error(status_code=response.status_code, response=response, error_map=error_map)
700
682
  raise HttpResponseError(response=response)
701
683
 
702
684
  deserialized = self._deserialize("str", pipeline_response.http_response)
@@ -736,23 +718,17 @@ class AuthOperations: # pylint: disable=abstract-class-instantiated
736
718
  _request.url = self._client.format_url(_request.url)
737
719
 
738
720
  _stream = False
739
- pipeline_response: PipelineResponse = (
740
- await self._client._pipeline.run( # pylint: disable=protected-access
741
- _request, stream=_stream, **kwargs
742
- )
721
+ pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
722
+ _request, stream=_stream, **kwargs
743
723
  )
744
724
 
745
725
  response = pipeline_response.http_response
746
726
 
747
727
  if response.status_code not in [200]:
748
- map_error(
749
- status_code=response.status_code, response=response, error_map=error_map
750
- )
728
+ map_error(status_code=response.status_code, response=response, error_map=error_map)
751
729
  raise HttpResponseError(response=response)
752
730
 
753
- deserialized = self._deserialize(
754
- "UserInfoResponse", pipeline_response.http_response
755
- )
731
+ deserialized = self._deserialize("UserInfoResponse", pipeline_response.http_response)
756
732
 
757
733
  if cls:
758
734
  return cls(pipeline_response, deserialized, {}) # type: ignore
@@ -770,7 +746,7 @@ class AuthOperations: # pylint: disable=abstract-class-instantiated
770
746
  redirect_uri: str,
771
747
  scope: str,
772
748
  state: str,
773
- **kwargs: Any,
749
+ **kwargs: Any
774
750
  ) -> Any:
775
751
  """Initiate Authorization Flow.
776
752
 
@@ -846,18 +822,14 @@ class AuthOperations: # pylint: disable=abstract-class-instantiated
846
822
  _request.url = self._client.format_url(_request.url)
847
823
 
848
824
  _stream = False
849
- pipeline_response: PipelineResponse = (
850
- await self._client._pipeline.run( # pylint: disable=protected-access
851
- _request, stream=_stream, **kwargs
852
- )
825
+ pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
826
+ _request, stream=_stream, **kwargs
853
827
  )
854
828
 
855
829
  response = pipeline_response.http_response
856
830
 
857
831
  if response.status_code not in [200]:
858
- map_error(
859
- status_code=response.status_code, response=response, error_map=error_map
860
- )
832
+ map_error(status_code=response.status_code, response=response, error_map=error_map)
861
833
  raise HttpResponseError(response=response)
862
834
 
863
835
  deserialized = self._deserialize("object", pipeline_response.http_response)
@@ -868,9 +840,7 @@ class AuthOperations: # pylint: disable=abstract-class-instantiated
868
840
  return deserialized # type: ignore
869
841
 
870
842
  @distributed_trace_async
871
- async def complete_authorization_flow(
872
- self, *, code: str, state: str, **kwargs: Any
873
- ) -> Any:
843
+ async def complete_authorization_flow(self, *, code: str, state: str, **kwargs: Any) -> Any:
874
844
  """Complete Authorization Flow.
875
845
 
876
846
  Complete the authorization flow.
@@ -911,18 +881,14 @@ class AuthOperations: # pylint: disable=abstract-class-instantiated
911
881
  _request.url = self._client.format_url(_request.url)
912
882
 
913
883
  _stream = False
914
- pipeline_response: PipelineResponse = (
915
- await self._client._pipeline.run( # pylint: disable=protected-access
916
- _request, stream=_stream, **kwargs
917
- )
884
+ pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
885
+ _request, stream=_stream, **kwargs
918
886
  )
919
887
 
920
888
  response = pipeline_response.http_response
921
889
 
922
890
  if response.status_code not in [200]:
923
- map_error(
924
- status_code=response.status_code, response=response, error_map=error_map
925
- )
891
+ map_error(status_code=response.status_code, response=response, error_map=error_map)
926
892
  raise HttpResponseError(response=response)
927
893
 
928
894
  deserialized = self._deserialize("object", pipeline_response.http_response)
@@ -947,18 +913,10 @@ class ConfigOperations:
947
913
 
948
914
  def __init__(self, *args, **kwargs) -> None:
949
915
  input_args = list(args)
950
- self._client: AsyncPipelineClient = (
951
- input_args.pop(0) if input_args else kwargs.pop("client")
952
- )
953
- self._config: DiracConfiguration = (
954
- input_args.pop(0) if input_args else kwargs.pop("config")
955
- )
956
- self._serialize: Serializer = (
957
- input_args.pop(0) if input_args else kwargs.pop("serializer")
958
- )
959
- self._deserialize: Deserializer = (
960
- input_args.pop(0) if input_args else kwargs.pop("deserializer")
961
- )
916
+ self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client")
917
+ self._config: DiracConfiguration = input_args.pop(0) if input_args else kwargs.pop("config")
918
+ self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer")
919
+ self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer")
962
920
 
963
921
  @distributed_trace_async
964
922
  async def serve_config(
@@ -967,7 +925,7 @@ class ConfigOperations:
967
925
  if_modified_since: Optional[str] = None,
968
926
  etag: Optional[str] = None,
969
927
  match_condition: Optional[MatchConditions] = None,
970
- **kwargs: Any,
928
+ **kwargs: Any
971
929
  ) -> Any:
972
930
  """Serve Config.
973
931
 
@@ -1018,18 +976,14 @@ class ConfigOperations:
1018
976
  _request.url = self._client.format_url(_request.url)
1019
977
 
1020
978
  _stream = False
1021
- pipeline_response: PipelineResponse = (
1022
- await self._client._pipeline.run( # pylint: disable=protected-access
1023
- _request, stream=_stream, **kwargs
1024
- )
979
+ pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
980
+ _request, stream=_stream, **kwargs
1025
981
  )
1026
982
 
1027
983
  response = pipeline_response.http_response
1028
984
 
1029
985
  if response.status_code not in [200]:
1030
- map_error(
1031
- status_code=response.status_code, response=response, error_map=error_map
1032
- )
986
+ map_error(status_code=response.status_code, response=response, error_map=error_map)
1033
987
  raise HttpResponseError(response=response)
1034
988
 
1035
989
  deserialized = self._deserialize("object", pipeline_response.http_response)
@@ -1054,26 +1008,14 @@ class JobsOperations:
1054
1008
 
1055
1009
  def __init__(self, *args, **kwargs) -> None:
1056
1010
  input_args = list(args)
1057
- self._client: AsyncPipelineClient = (
1058
- input_args.pop(0) if input_args else kwargs.pop("client")
1059
- )
1060
- self._config: DiracConfiguration = (
1061
- input_args.pop(0) if input_args else kwargs.pop("config")
1062
- )
1063
- self._serialize: Serializer = (
1064
- input_args.pop(0) if input_args else kwargs.pop("serializer")
1065
- )
1066
- self._deserialize: Deserializer = (
1067
- input_args.pop(0) if input_args else kwargs.pop("deserializer")
1068
- )
1011
+ self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client")
1012
+ self._config: DiracConfiguration = input_args.pop(0) if input_args else kwargs.pop("config")
1013
+ self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer")
1014
+ self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer")
1069
1015
 
1070
1016
  @overload
1071
1017
  async def initiate_sandbox_upload(
1072
- self,
1073
- body: _models.SandboxInfo,
1074
- *,
1075
- content_type: str = "application/json",
1076
- **kwargs: Any,
1018
+ self, body: _models.SandboxInfo, *, content_type: str = "application/json", **kwargs: Any
1077
1019
  ) -> _models.SandboxUploadResponse:
1078
1020
  """Initiate Sandbox Upload.
1079
1021
 
@@ -1150,9 +1092,7 @@ class JobsOperations:
1150
1092
  _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
1151
1093
  _params = kwargs.pop("params", {}) or {}
1152
1094
 
1153
- content_type: Optional[str] = kwargs.pop(
1154
- "content_type", _headers.pop("Content-Type", None)
1155
- )
1095
+ content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
1156
1096
  cls: ClsType[_models.SandboxUploadResponse] = kwargs.pop("cls", None)
1157
1097
 
1158
1098
  content_type = content_type or "application/json"
@@ -1173,23 +1113,17 @@ class JobsOperations:
1173
1113
  _request.url = self._client.format_url(_request.url)
1174
1114
 
1175
1115
  _stream = False
1176
- pipeline_response: PipelineResponse = (
1177
- await self._client._pipeline.run( # pylint: disable=protected-access
1178
- _request, stream=_stream, **kwargs
1179
- )
1116
+ pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
1117
+ _request, stream=_stream, **kwargs
1180
1118
  )
1181
1119
 
1182
1120
  response = pipeline_response.http_response
1183
1121
 
1184
1122
  if response.status_code not in [200]:
1185
- map_error(
1186
- status_code=response.status_code, response=response, error_map=error_map
1187
- )
1123
+ map_error(status_code=response.status_code, response=response, error_map=error_map)
1188
1124
  raise HttpResponseError(response=response)
1189
1125
 
1190
- deserialized = self._deserialize(
1191
- "SandboxUploadResponse", pipeline_response.http_response
1192
- )
1126
+ deserialized = self._deserialize("SandboxUploadResponse", pipeline_response.http_response)
1193
1127
 
1194
1128
  if cls:
1195
1129
  return cls(pipeline_response, deserialized, {}) # type: ignore
@@ -1197,9 +1131,7 @@ class JobsOperations:
1197
1131
  return deserialized # type: ignore
1198
1132
 
1199
1133
  @distributed_trace_async
1200
- async def get_sandbox_file(
1201
- self, *, pfn: str, **kwargs: Any
1202
- ) -> _models.SandboxDownloadResponse:
1134
+ async def get_sandbox_file(self, *, pfn: str, **kwargs: Any) -> _models.SandboxDownloadResponse:
1203
1135
  """Get Sandbox File.
1204
1136
 
1205
1137
  Get a presigned URL to download a sandbox file.
@@ -1237,23 +1169,17 @@ class JobsOperations:
1237
1169
  _request.url = self._client.format_url(_request.url)
1238
1170
 
1239
1171
  _stream = False
1240
- pipeline_response: PipelineResponse = (
1241
- await self._client._pipeline.run( # pylint: disable=protected-access
1242
- _request, stream=_stream, **kwargs
1243
- )
1172
+ pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
1173
+ _request, stream=_stream, **kwargs
1244
1174
  )
1245
1175
 
1246
1176
  response = pipeline_response.http_response
1247
1177
 
1248
1178
  if response.status_code not in [200]:
1249
- map_error(
1250
- status_code=response.status_code, response=response, error_map=error_map
1251
- )
1179
+ map_error(status_code=response.status_code, response=response, error_map=error_map)
1252
1180
  raise HttpResponseError(response=response)
1253
1181
 
1254
- deserialized = self._deserialize(
1255
- "SandboxDownloadResponse", pipeline_response.http_response
1256
- )
1182
+ deserialized = self._deserialize("SandboxDownloadResponse", pipeline_response.http_response)
1257
1183
 
1258
1184
  if cls:
1259
1185
  return cls(pipeline_response, deserialized, {}) # type: ignore
@@ -1261,9 +1187,7 @@ class JobsOperations:
1261
1187
  return deserialized # type: ignore
1262
1188
 
1263
1189
  @distributed_trace_async
1264
- async def unassign_bulk_jobs_sandboxes(
1265
- self, *, jobs_ids: List[int], **kwargs: Any
1266
- ) -> Any:
1190
+ async def unassign_bulk_jobs_sandboxes(self, *, jobs_ids: List[int], **kwargs: Any) -> Any:
1267
1191
  """Unassign Bulk Jobs Sandboxes.
1268
1192
 
1269
1193
  Delete bulk jobs sandbox mapping.
@@ -1295,18 +1219,14 @@ class JobsOperations:
1295
1219
  _request.url = self._client.format_url(_request.url)
1296
1220
 
1297
1221
  _stream = False
1298
- pipeline_response: PipelineResponse = (
1299
- await self._client._pipeline.run( # pylint: disable=protected-access
1300
- _request, stream=_stream, **kwargs
1301
- )
1222
+ pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
1223
+ _request, stream=_stream, **kwargs
1302
1224
  )
1303
1225
 
1304
1226
  response = pipeline_response.http_response
1305
1227
 
1306
1228
  if response.status_code not in [200]:
1307
- map_error(
1308
- status_code=response.status_code, response=response, error_map=error_map
1309
- )
1229
+ map_error(status_code=response.status_code, response=response, error_map=error_map)
1310
1230
  raise HttpResponseError(response=response)
1311
1231
 
1312
1232
  deserialized = self._deserialize("object", pipeline_response.http_response)
@@ -1317,9 +1237,7 @@ class JobsOperations:
1317
1237
  return deserialized # type: ignore
1318
1238
 
1319
1239
  @distributed_trace_async
1320
- async def get_job_sandboxes(
1321
- self, job_id: int, **kwargs: Any
1322
- ) -> Dict[str, List[Any]]:
1240
+ async def get_job_sandboxes(self, job_id: int, **kwargs: Any) -> Dict[str, List[Any]]:
1323
1241
  """Get Job Sandboxes.
1324
1242
 
1325
1243
  Get input and output sandboxes of given job.
@@ -1351,18 +1269,14 @@ class JobsOperations:
1351
1269
  _request.url = self._client.format_url(_request.url)
1352
1270
 
1353
1271
  _stream = False
1354
- pipeline_response: PipelineResponse = (
1355
- await self._client._pipeline.run( # pylint: disable=protected-access
1356
- _request, stream=_stream, **kwargs
1357
- )
1272
+ pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
1273
+ _request, stream=_stream, **kwargs
1358
1274
  )
1359
1275
 
1360
1276
  response = pipeline_response.http_response
1361
1277
 
1362
1278
  if response.status_code not in [200]:
1363
- map_error(
1364
- status_code=response.status_code, response=response, error_map=error_map
1365
- )
1279
+ map_error(status_code=response.status_code, response=response, error_map=error_map)
1366
1280
  raise HttpResponseError(response=response)
1367
1281
 
1368
1282
  deserialized = self._deserialize("{[object]}", pipeline_response.http_response)
@@ -1405,18 +1319,14 @@ class JobsOperations:
1405
1319
  _request.url = self._client.format_url(_request.url)
1406
1320
 
1407
1321
  _stream = False
1408
- pipeline_response: PipelineResponse = (
1409
- await self._client._pipeline.run( # pylint: disable=protected-access
1410
- _request, stream=_stream, **kwargs
1411
- )
1322
+ pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
1323
+ _request, stream=_stream, **kwargs
1412
1324
  )
1413
1325
 
1414
1326
  response = pipeline_response.http_response
1415
1327
 
1416
1328
  if response.status_code not in [200]:
1417
- map_error(
1418
- status_code=response.status_code, response=response, error_map=error_map
1419
- )
1329
+ map_error(status_code=response.status_code, response=response, error_map=error_map)
1420
1330
  raise HttpResponseError(response=response)
1421
1331
 
1422
1332
  deserialized = self._deserialize("object", pipeline_response.http_response)
@@ -1464,18 +1374,14 @@ class JobsOperations:
1464
1374
  _request.url = self._client.format_url(_request.url)
1465
1375
 
1466
1376
  _stream = False
1467
- pipeline_response: PipelineResponse = (
1468
- await self._client._pipeline.run( # pylint: disable=protected-access
1469
- _request, stream=_stream, **kwargs
1470
- )
1377
+ pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
1378
+ _request, stream=_stream, **kwargs
1471
1379
  )
1472
1380
 
1473
1381
  response = pipeline_response.http_response
1474
1382
 
1475
1383
  if response.status_code not in [200]:
1476
- map_error(
1477
- status_code=response.status_code, response=response, error_map=error_map
1478
- )
1384
+ map_error(status_code=response.status_code, response=response, error_map=error_map)
1479
1385
  raise HttpResponseError(response=response)
1480
1386
 
1481
1387
  deserialized = self._deserialize("[object]", pipeline_response.http_response)
@@ -1510,9 +1416,7 @@ class JobsOperations:
1510
1416
  _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
1511
1417
  _params = kwargs.pop("params", {}) or {}
1512
1418
 
1513
- content_type: str = kwargs.pop(
1514
- "content_type", _headers.pop("Content-Type", "application/json")
1515
- )
1419
+ content_type: str = kwargs.pop("content_type", _headers.pop("Content-Type", "application/json"))
1516
1420
  cls: ClsType[Any] = kwargs.pop("cls", None)
1517
1421
 
1518
1422
  _content = self._serialize.body(body, "str")
@@ -1527,18 +1431,14 @@ class JobsOperations:
1527
1431
  _request.url = self._client.format_url(_request.url)
1528
1432
 
1529
1433
  _stream = False
1530
- pipeline_response: PipelineResponse = (
1531
- await self._client._pipeline.run( # pylint: disable=protected-access
1532
- _request, stream=_stream, **kwargs
1533
- )
1434
+ pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
1435
+ _request, stream=_stream, **kwargs
1534
1436
  )
1535
1437
 
1536
1438
  response = pipeline_response.http_response
1537
1439
 
1538
1440
  if response.status_code not in [200]:
1539
- map_error(
1540
- status_code=response.status_code, response=response, error_map=error_map
1541
- )
1441
+ map_error(status_code=response.status_code, response=response, error_map=error_map)
1542
1442
  raise HttpResponseError(response=response)
1543
1443
 
1544
1444
  deserialized = self._deserialize("object", pipeline_response.http_response)
@@ -1586,18 +1486,14 @@ class JobsOperations:
1586
1486
  _request.url = self._client.format_url(_request.url)
1587
1487
 
1588
1488
  _stream = False
1589
- pipeline_response: PipelineResponse = (
1590
- await self._client._pipeline.run( # pylint: disable=protected-access
1591
- _request, stream=_stream, **kwargs
1592
- )
1489
+ pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
1490
+ _request, stream=_stream, **kwargs
1593
1491
  )
1594
1492
 
1595
1493
  response = pipeline_response.http_response
1596
1494
 
1597
1495
  if response.status_code not in [200]:
1598
- map_error(
1599
- status_code=response.status_code, response=response, error_map=error_map
1600
- )
1496
+ map_error(status_code=response.status_code, response=response, error_map=error_map)
1601
1497
  raise HttpResponseError(response=response)
1602
1498
 
1603
1499
  deserialized = self._deserialize("object", pipeline_response.http_response)
@@ -1614,7 +1510,7 @@ class JobsOperations:
1614
1510
  *,
1615
1511
  force: bool = False,
1616
1512
  content_type: str = "application/json",
1617
- **kwargs: Any,
1513
+ **kwargs: Any
1618
1514
  ) -> _models.SetJobStatusReturn:
1619
1515
  """Set Job Statuses.
1620
1516
 
@@ -1634,12 +1530,7 @@ class JobsOperations:
1634
1530
 
1635
1531
  @overload
1636
1532
  async def set_job_statuses(
1637
- self,
1638
- body: IO[bytes],
1639
- *,
1640
- force: bool = False,
1641
- content_type: str = "application/json",
1642
- **kwargs: Any,
1533
+ self, body: IO[bytes], *, force: bool = False, content_type: str = "application/json", **kwargs: Any
1643
1534
  ) -> _models.SetJobStatusReturn:
1644
1535
  """Set Job Statuses.
1645
1536
 
@@ -1663,7 +1554,7 @@ class JobsOperations:
1663
1554
  body: Union[Dict[str, Dict[str, _models.JobStatusUpdate]], IO[bytes]],
1664
1555
  *,
1665
1556
  force: bool = False,
1666
- **kwargs: Any,
1557
+ **kwargs: Any
1667
1558
  ) -> _models.SetJobStatusReturn:
1668
1559
  """Set Job Statuses.
1669
1560
 
@@ -1688,9 +1579,7 @@ class JobsOperations:
1688
1579
  _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
1689
1580
  _params = kwargs.pop("params", {}) or {}
1690
1581
 
1691
- content_type: Optional[str] = kwargs.pop(
1692
- "content_type", _headers.pop("Content-Type", None)
1693
- )
1582
+ content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
1694
1583
  cls: ClsType[_models.SetJobStatusReturn] = kwargs.pop("cls", None)
1695
1584
 
1696
1585
  content_type = content_type or "application/json"
@@ -1712,23 +1601,17 @@ class JobsOperations:
1712
1601
  _request.url = self._client.format_url(_request.url)
1713
1602
 
1714
1603
  _stream = False
1715
- pipeline_response: PipelineResponse = (
1716
- await self._client._pipeline.run( # pylint: disable=protected-access
1717
- _request, stream=_stream, **kwargs
1718
- )
1604
+ pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
1605
+ _request, stream=_stream, **kwargs
1719
1606
  )
1720
1607
 
1721
1608
  response = pipeline_response.http_response
1722
1609
 
1723
1610
  if response.status_code not in [200]:
1724
- map_error(
1725
- status_code=response.status_code, response=response, error_map=error_map
1726
- )
1611
+ map_error(status_code=response.status_code, response=response, error_map=error_map)
1727
1612
  raise HttpResponseError(response=response)
1728
1613
 
1729
- deserialized = self._deserialize(
1730
- "SetJobStatusReturn", pipeline_response.http_response
1731
- )
1614
+ deserialized = self._deserialize("SetJobStatusReturn", pipeline_response.http_response)
1732
1615
 
1733
1616
  if cls:
1734
1617
  return cls(pipeline_response, deserialized, {}) # type: ignore
@@ -1737,11 +1620,7 @@ class JobsOperations:
1737
1620
 
1738
1621
  @overload
1739
1622
  async def add_heartbeat(
1740
- self,
1741
- body: Dict[str, _models.HeartbeatData],
1742
- *,
1743
- content_type: str = "application/json",
1744
- **kwargs: Any,
1623
+ self, body: Dict[str, _models.HeartbeatData], *, content_type: str = "application/json", **kwargs: Any
1745
1624
  ) -> List[_models.JobCommand]:
1746
1625
  """Add Heartbeat.
1747
1626
 
@@ -1818,9 +1697,7 @@ class JobsOperations:
1818
1697
  _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
1819
1698
  _params = kwargs.pop("params", {}) or {}
1820
1699
 
1821
- content_type: Optional[str] = kwargs.pop(
1822
- "content_type", _headers.pop("Content-Type", None)
1823
- )
1700
+ content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
1824
1701
  cls: ClsType[List[_models.JobCommand]] = kwargs.pop("cls", None)
1825
1702
 
1826
1703
  content_type = content_type or "application/json"
@@ -1841,23 +1718,17 @@ class JobsOperations:
1841
1718
  _request.url = self._client.format_url(_request.url)
1842
1719
 
1843
1720
  _stream = False
1844
- pipeline_response: PipelineResponse = (
1845
- await self._client._pipeline.run( # pylint: disable=protected-access
1846
- _request, stream=_stream, **kwargs
1847
- )
1721
+ pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
1722
+ _request, stream=_stream, **kwargs
1848
1723
  )
1849
1724
 
1850
1725
  response = pipeline_response.http_response
1851
1726
 
1852
1727
  if response.status_code not in [200]:
1853
- map_error(
1854
- status_code=response.status_code, response=response, error_map=error_map
1855
- )
1728
+ map_error(status_code=response.status_code, response=response, error_map=error_map)
1856
1729
  raise HttpResponseError(response=response)
1857
1730
 
1858
- deserialized = self._deserialize(
1859
- "[JobCommand]", pipeline_response.http_response
1860
- )
1731
+ deserialized = self._deserialize("[JobCommand]", pipeline_response.http_response)
1861
1732
 
1862
1733
  if cls:
1863
1734
  return cls(pipeline_response, deserialized, {}) # type: ignore
@@ -1865,9 +1736,7 @@ class JobsOperations:
1865
1736
  return deserialized # type: ignore
1866
1737
 
1867
1738
  @distributed_trace_async
1868
- async def reschedule_jobs(
1869
- self, *, job_ids: List[int], reset_jobs: bool = False, **kwargs: Any
1870
- ) -> Dict[str, Any]:
1739
+ async def reschedule_jobs(self, *, job_ids: List[int], reset_jobs: bool = False, **kwargs: Any) -> Dict[str, Any]:
1871
1740
  """Reschedule Jobs.
1872
1741
 
1873
1742
  Reschedule Jobs.
@@ -1902,18 +1771,14 @@ class JobsOperations:
1902
1771
  _request.url = self._client.format_url(_request.url)
1903
1772
 
1904
1773
  _stream = False
1905
- pipeline_response: PipelineResponse = (
1906
- await self._client._pipeline.run( # pylint: disable=protected-access
1907
- _request, stream=_stream, **kwargs
1908
- )
1774
+ pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
1775
+ _request, stream=_stream, **kwargs
1909
1776
  )
1910
1777
 
1911
1778
  response = pipeline_response.http_response
1912
1779
 
1913
1780
  if response.status_code not in [200]:
1914
- map_error(
1915
- status_code=response.status_code, response=response, error_map=error_map
1916
- )
1781
+ map_error(status_code=response.status_code, response=response, error_map=error_map)
1917
1782
  raise HttpResponseError(response=response)
1918
1783
 
1919
1784
  deserialized = self._deserialize("{object}", pipeline_response.http_response)
@@ -1925,11 +1790,7 @@ class JobsOperations:
1925
1790
 
1926
1791
  @overload
1927
1792
  async def patch_metadata(
1928
- self,
1929
- body: Dict[str, Dict[str, Any]],
1930
- *,
1931
- content_type: str = "application/json",
1932
- **kwargs: Any,
1793
+ self, body: Dict[str, Dict[str, Any]], *, content_type: str = "application/json", **kwargs: Any
1933
1794
  ) -> None:
1934
1795
  """Patch Metadata.
1935
1796
 
@@ -1946,9 +1807,7 @@ class JobsOperations:
1946
1807
  """
1947
1808
 
1948
1809
  @overload
1949
- async def patch_metadata(
1950
- self, body: IO[bytes], *, content_type: str = "application/json", **kwargs: Any
1951
- ) -> None:
1810
+ async def patch_metadata(self, body: IO[bytes], *, content_type: str = "application/json", **kwargs: Any) -> None:
1952
1811
  """Patch Metadata.
1953
1812
 
1954
1813
  Patch Metadata.
@@ -1964,9 +1823,7 @@ class JobsOperations:
1964
1823
  """
1965
1824
 
1966
1825
  @distributed_trace_async
1967
- async def patch_metadata(
1968
- self, body: Union[Dict[str, Dict[str, Any]], IO[bytes]], **kwargs: Any
1969
- ) -> None:
1826
+ async def patch_metadata(self, body: Union[Dict[str, Dict[str, Any]], IO[bytes]], **kwargs: Any) -> None:
1970
1827
  """Patch Metadata.
1971
1828
 
1972
1829
  Patch Metadata.
@@ -1988,9 +1845,7 @@ class JobsOperations:
1988
1845
  _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
1989
1846
  _params = kwargs.pop("params", {}) or {}
1990
1847
 
1991
- content_type: Optional[str] = kwargs.pop(
1992
- "content_type", _headers.pop("Content-Type", None)
1993
- )
1848
+ content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
1994
1849
  cls: ClsType[None] = kwargs.pop("cls", None)
1995
1850
 
1996
1851
  content_type = content_type or "application/json"
@@ -2011,18 +1866,14 @@ class JobsOperations:
2011
1866
  _request.url = self._client.format_url(_request.url)
2012
1867
 
2013
1868
  _stream = False
2014
- pipeline_response: PipelineResponse = (
2015
- await self._client._pipeline.run( # pylint: disable=protected-access
2016
- _request, stream=_stream, **kwargs
2017
- )
1869
+ pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
1870
+ _request, stream=_stream, **kwargs
2018
1871
  )
2019
1872
 
2020
1873
  response = pipeline_response.http_response
2021
1874
 
2022
1875
  if response.status_code not in [204]:
2023
- map_error(
2024
- status_code=response.status_code, response=response, error_map=error_map
2025
- )
1876
+ map_error(status_code=response.status_code, response=response, error_map=error_map)
2026
1877
  raise HttpResponseError(response=response)
2027
1878
 
2028
1879
  if cls:
@@ -2036,7 +1887,7 @@ class JobsOperations:
2036
1887
  page: int = 1,
2037
1888
  per_page: int = 100,
2038
1889
  content_type: str = "application/json",
2039
- **kwargs: Any,
1890
+ **kwargs: Any
2040
1891
  ) -> List[Dict[str, Any]]:
2041
1892
  """Search.
2042
1893
 
@@ -2066,7 +1917,7 @@ class JobsOperations:
2066
1917
  page: int = 1,
2067
1918
  per_page: int = 100,
2068
1919
  content_type: str = "application/json",
2069
- **kwargs: Any,
1920
+ **kwargs: Any
2070
1921
  ) -> List[Dict[str, Any]]:
2071
1922
  """Search.
2072
1923
 
@@ -2095,7 +1946,7 @@ class JobsOperations:
2095
1946
  *,
2096
1947
  page: int = 1,
2097
1948
  per_page: int = 100,
2098
- **kwargs: Any,
1949
+ **kwargs: Any
2099
1950
  ) -> List[Dict[str, Any]]:
2100
1951
  """Search.
2101
1952
 
@@ -2124,9 +1975,7 @@ class JobsOperations:
2124
1975
  _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
2125
1976
  _params = kwargs.pop("params", {}) or {}
2126
1977
 
2127
- content_type: Optional[str] = kwargs.pop(
2128
- "content_type", _headers.pop("Content-Type", None)
2129
- )
1978
+ content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
2130
1979
  cls: ClsType[List[Dict[str, Any]]] = kwargs.pop("cls", None)
2131
1980
 
2132
1981
  content_type = content_type or "application/json"
@@ -2152,25 +2001,19 @@ class JobsOperations:
2152
2001
  _request.url = self._client.format_url(_request.url)
2153
2002
 
2154
2003
  _stream = False
2155
- pipeline_response: PipelineResponse = (
2156
- await self._client._pipeline.run( # pylint: disable=protected-access
2157
- _request, stream=_stream, **kwargs
2158
- )
2004
+ pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
2005
+ _request, stream=_stream, **kwargs
2159
2006
  )
2160
2007
 
2161
2008
  response = pipeline_response.http_response
2162
2009
 
2163
2010
  if response.status_code not in [200, 206]:
2164
- map_error(
2165
- status_code=response.status_code, response=response, error_map=error_map
2166
- )
2011
+ map_error(status_code=response.status_code, response=response, error_map=error_map)
2167
2012
  raise HttpResponseError(response=response)
2168
2013
 
2169
2014
  response_headers = {}
2170
2015
  if response.status_code == 206:
2171
- response_headers["Content-Range"] = self._deserialize(
2172
- "str", response.headers.get("Content-Range")
2173
- )
2016
+ response_headers["Content-Range"] = self._deserialize("str", response.headers.get("Content-Range"))
2174
2017
 
2175
2018
  deserialized = self._deserialize("[{object}]", pipeline_response.http_response)
2176
2019
 
@@ -2181,11 +2024,7 @@ class JobsOperations:
2181
2024
 
2182
2025
  @overload
2183
2026
  async def summary(
2184
- self,
2185
- body: _models.JobSummaryParams,
2186
- *,
2187
- content_type: str = "application/json",
2188
- **kwargs: Any,
2027
+ self, body: _models.JobSummaryParams, *, content_type: str = "application/json", **kwargs: Any
2189
2028
  ) -> Any:
2190
2029
  """Summary.
2191
2030
 
@@ -2202,9 +2041,7 @@ class JobsOperations:
2202
2041
  """
2203
2042
 
2204
2043
  @overload
2205
- async def summary(
2206
- self, body: IO[bytes], *, content_type: str = "application/json", **kwargs: Any
2207
- ) -> Any:
2044
+ async def summary(self, body: IO[bytes], *, content_type: str = "application/json", **kwargs: Any) -> Any:
2208
2045
  """Summary.
2209
2046
 
2210
2047
  Show information suitable for plotting.
@@ -2220,9 +2057,7 @@ class JobsOperations:
2220
2057
  """
2221
2058
 
2222
2059
  @distributed_trace_async
2223
- async def summary(
2224
- self, body: Union[_models.JobSummaryParams, IO[bytes]], **kwargs: Any
2225
- ) -> Any:
2060
+ async def summary(self, body: Union[_models.JobSummaryParams, IO[bytes]], **kwargs: Any) -> Any:
2226
2061
  """Summary.
2227
2062
 
2228
2063
  Show information suitable for plotting.
@@ -2244,9 +2079,7 @@ class JobsOperations:
2244
2079
  _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
2245
2080
  _params = kwargs.pop("params", {}) or {}
2246
2081
 
2247
- content_type: Optional[str] = kwargs.pop(
2248
- "content_type", _headers.pop("Content-Type", None)
2249
- )
2082
+ content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
2250
2083
  cls: ClsType[Any] = kwargs.pop("cls", None)
2251
2084
 
2252
2085
  content_type = content_type or "application/json"
@@ -2267,18 +2100,14 @@ class JobsOperations:
2267
2100
  _request.url = self._client.format_url(_request.url)
2268
2101
 
2269
2102
  _stream = False
2270
- pipeline_response: PipelineResponse = (
2271
- await self._client._pipeline.run( # pylint: disable=protected-access
2272
- _request, stream=_stream, **kwargs
2273
- )
2103
+ pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
2104
+ _request, stream=_stream, **kwargs
2274
2105
  )
2275
2106
 
2276
2107
  response = pipeline_response.http_response
2277
2108
 
2278
2109
  if response.status_code not in [200]:
2279
- map_error(
2280
- status_code=response.status_code, response=response, error_map=error_map
2281
- )
2110
+ map_error(status_code=response.status_code, response=response, error_map=error_map)
2282
2111
  raise HttpResponseError(response=response)
2283
2112
 
2284
2113
  deserialized = self._deserialize("object", pipeline_response.http_response)
@@ -2325,9 +2154,7 @@ class JobsOperations:
2325
2154
  """
2326
2155
 
2327
2156
  @distributed_trace_async
2328
- async def submit_jdl_jobs(
2329
- self, body: Union[List[str], IO[bytes]], **kwargs: Any
2330
- ) -> List[_models.InsertedJob]:
2157
+ async def submit_jdl_jobs(self, body: Union[List[str], IO[bytes]], **kwargs: Any) -> List[_models.InsertedJob]:
2331
2158
  """Submit Jdl Jobs.
2332
2159
 
2333
2160
  Submit a list of jobs in JDL format.
@@ -2349,9 +2176,7 @@ class JobsOperations:
2349
2176
  _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
2350
2177
  _params = kwargs.pop("params", {}) or {}
2351
2178
 
2352
- content_type: Optional[str] = kwargs.pop(
2353
- "content_type", _headers.pop("Content-Type", None)
2354
- )
2179
+ content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
2355
2180
  cls: ClsType[List[_models.InsertedJob]] = kwargs.pop("cls", None)
2356
2181
 
2357
2182
  content_type = content_type or "application/json"
@@ -2372,23 +2197,17 @@ class JobsOperations:
2372
2197
  _request.url = self._client.format_url(_request.url)
2373
2198
 
2374
2199
  _stream = False
2375
- pipeline_response: PipelineResponse = (
2376
- await self._client._pipeline.run( # pylint: disable=protected-access
2377
- _request, stream=_stream, **kwargs
2378
- )
2200
+ pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
2201
+ _request, stream=_stream, **kwargs
2379
2202
  )
2380
2203
 
2381
2204
  response = pipeline_response.http_response
2382
2205
 
2383
2206
  if response.status_code not in [200]:
2384
- map_error(
2385
- status_code=response.status_code, response=response, error_map=error_map
2386
- )
2207
+ map_error(status_code=response.status_code, response=response, error_map=error_map)
2387
2208
  raise HttpResponseError(response=response)
2388
2209
 
2389
- deserialized = self._deserialize(
2390
- "[InsertedJob]", pipeline_response.http_response
2391
- )
2210
+ deserialized = self._deserialize("[InsertedJob]", pipeline_response.http_response)
2392
2211
 
2393
2212
  if cls:
2394
2213
  return cls(pipeline_response, deserialized, {}) # type: ignore