diracx-client 0.0.1a44__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.
@@ -1,7 +1,7 @@
1
1
  # pylint: disable=too-many-lines
2
2
  # coding=utf-8
3
3
  # --------------------------------------------------------------------------
4
- # Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/python@6.34.1)
4
+ # Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/python@6.34.2)
5
5
  # Changes may cause incorrect behavior and will be lost if the code is regenerated.
6
6
  # --------------------------------------------------------------------------
7
7
  from collections.abc import MutableMapping
@@ -29,17 +29,13 @@ from .._utils.serialization import Deserializer, Serializer
29
29
  from .._utils.utils import prep_if_match, prep_if_none_match, raise_if_not_implemented
30
30
 
31
31
  T = TypeVar("T")
32
- ClsType = Optional[
33
- Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]
34
- ]
32
+ ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]]
35
33
 
36
34
  _SERIALIZER = Serializer()
37
35
  _SERIALIZER.client_side_validation = False
38
36
 
39
37
 
40
- def build_well_known_get_openid_configuration_request(
41
- **kwargs: Any,
42
- ) -> HttpRequest: # pylint: disable=name-too-long
38
+ def build_well_known_get_openid_configuration_request(**kwargs: Any) -> HttpRequest: # pylint: disable=name-too-long
43
39
  _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
44
40
 
45
41
  accept = _headers.pop("Accept", "application/json")
@@ -53,9 +49,21 @@ def build_well_known_get_openid_configuration_request(
53
49
  return HttpRequest(method="GET", url=_url, headers=_headers, **kwargs)
54
50
 
55
51
 
56
- def build_well_known_get_installation_metadata_request(
57
- **kwargs: Any,
58
- ) -> HttpRequest: # pylint: disable=name-too-long
52
+ def build_well_known_get_jwks_request(**kwargs: Any) -> HttpRequest:
53
+ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
54
+
55
+ accept = _headers.pop("Accept", "application/json")
56
+
57
+ # Construct URL
58
+ _url = "/.well-known/jwks.json"
59
+
60
+ # Construct headers
61
+ _headers["Accept"] = _SERIALIZER.header("accept", accept, "str")
62
+
63
+ return HttpRequest(method="GET", url=_url, headers=_headers, **kwargs)
64
+
65
+
66
+ def build_well_known_get_installation_metadata_request(**kwargs: Any) -> HttpRequest: # pylint: disable=name-too-long
59
67
  _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
60
68
 
61
69
  accept = _headers.pop("Accept", "application/json")
@@ -69,9 +77,21 @@ def build_well_known_get_installation_metadata_request(
69
77
  return HttpRequest(method="GET", url=_url, headers=_headers, **kwargs)
70
78
 
71
79
 
72
- def build_auth_initiate_device_flow_request(
73
- *, client_id: str, scope: str, **kwargs: Any
74
- ) -> HttpRequest:
80
+ def build_well_known_get_security_txt_request(**kwargs: Any) -> HttpRequest: # pylint: disable=name-too-long
81
+ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
82
+
83
+ accept = _headers.pop("Accept", "application/json")
84
+
85
+ # Construct URL
86
+ _url = "/.well-known/.well-known/security.txt"
87
+
88
+ # Construct headers
89
+ _headers["Accept"] = _SERIALIZER.header("accept", accept, "str")
90
+
91
+ return HttpRequest(method="GET", url=_url, headers=_headers, **kwargs)
92
+
93
+
94
+ def build_auth_initiate_device_flow_request(*, client_id: str, scope: str, **kwargs: Any) -> HttpRequest:
75
95
  _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
76
96
  _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
77
97
 
@@ -87,9 +107,7 @@ def build_auth_initiate_device_flow_request(
87
107
  # Construct headers
88
108
  _headers["Accept"] = _SERIALIZER.header("accept", accept, "str")
89
109
 
90
- return HttpRequest(
91
- method="POST", url=_url, params=_params, headers=_headers, **kwargs
92
- )
110
+ return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs)
93
111
 
94
112
 
95
113
  def build_auth_do_device_flow_request(*, user_code: str, **kwargs: Any) -> HttpRequest:
@@ -107,14 +125,10 @@ def build_auth_do_device_flow_request(*, user_code: str, **kwargs: Any) -> HttpR
107
125
  # Construct headers
108
126
  _headers["Accept"] = _SERIALIZER.header("accept", accept, "str")
109
127
 
110
- return HttpRequest(
111
- method="GET", url=_url, params=_params, headers=_headers, **kwargs
112
- )
128
+ return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs)
113
129
 
114
130
 
115
- def build_auth_finish_device_flow_request(
116
- *, code: str, state: str, **kwargs: Any
117
- ) -> HttpRequest:
131
+ def build_auth_finish_device_flow_request(*, code: str, state: str, **kwargs: Any) -> HttpRequest:
118
132
  _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
119
133
  _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
120
134
 
@@ -130,9 +144,7 @@ def build_auth_finish_device_flow_request(
130
144
  # Construct headers
131
145
  _headers["Accept"] = _SERIALIZER.header("accept", accept, "str")
132
146
 
133
- return HttpRequest(
134
- method="GET", url=_url, params=_params, headers=_headers, **kwargs
135
- )
147
+ return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs)
136
148
 
137
149
 
138
150
  def build_auth_finished_request(**kwargs: Any) -> HttpRequest:
@@ -181,9 +193,7 @@ def build_auth_revoke_refresh_token_by_refresh_token_request( # pylint: disable
181
193
  # Construct headers
182
194
  _headers["Accept"] = _SERIALIZER.header("accept", accept, "str")
183
195
 
184
- return HttpRequest(
185
- method="POST", url=_url, params=_params, headers=_headers, **kwargs
186
- )
196
+ return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs)
187
197
 
188
198
 
189
199
  def build_auth_revoke_refresh_token_by_jti_request( # pylint: disable=name-too-long
@@ -230,7 +240,7 @@ def build_auth_initiate_authorization_flow_request( # pylint: disable=name-too-
230
240
  redirect_uri: str,
231
241
  scope: str,
232
242
  state: str,
233
- **kwargs: Any,
243
+ **kwargs: Any
234
244
  ) -> HttpRequest:
235
245
  _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
236
246
  _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
@@ -242,12 +252,8 @@ def build_auth_initiate_authorization_flow_request( # pylint: disable=name-too-
242
252
 
243
253
  # Construct parameters
244
254
  _params["response_type"] = _SERIALIZER.query("response_type", response_type, "str")
245
- _params["code_challenge"] = _SERIALIZER.query(
246
- "code_challenge", code_challenge, "str"
247
- )
248
- _params["code_challenge_method"] = _SERIALIZER.query(
249
- "code_challenge_method", code_challenge_method, "str"
250
- )
255
+ _params["code_challenge"] = _SERIALIZER.query("code_challenge", code_challenge, "str")
256
+ _params["code_challenge_method"] = _SERIALIZER.query("code_challenge_method", code_challenge_method, "str")
251
257
  _params["client_id"] = _SERIALIZER.query("client_id", client_id, "str")
252
258
  _params["redirect_uri"] = _SERIALIZER.query("redirect_uri", redirect_uri, "str")
253
259
  _params["scope"] = _SERIALIZER.query("scope", scope, "str")
@@ -256,9 +262,7 @@ def build_auth_initiate_authorization_flow_request( # pylint: disable=name-too-
256
262
  # Construct headers
257
263
  _headers["Accept"] = _SERIALIZER.header("accept", accept, "str")
258
264
 
259
- return HttpRequest(
260
- method="GET", url=_url, params=_params, headers=_headers, **kwargs
261
- )
265
+ return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs)
262
266
 
263
267
 
264
268
  def build_auth_complete_authorization_flow_request( # pylint: disable=name-too-long
@@ -279,9 +283,7 @@ def build_auth_complete_authorization_flow_request( # pylint: disable=name-too-
279
283
  # Construct headers
280
284
  _headers["Accept"] = _SERIALIZER.header("accept", accept, "str")
281
285
 
282
- return HttpRequest(
283
- method="GET", url=_url, params=_params, headers=_headers, **kwargs
284
- )
286
+ return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs)
285
287
 
286
288
 
287
289
  def build_config_serve_config_request(
@@ -289,7 +291,7 @@ def build_config_serve_config_request(
289
291
  if_modified_since: Optional[str] = None,
290
292
  etag: Optional[str] = None,
291
293
  match_condition: Optional[MatchConditions] = None,
292
- **kwargs: Any,
294
+ **kwargs: Any
293
295
  ) -> HttpRequest:
294
296
  _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
295
297
 
@@ -300,30 +302,22 @@ def build_config_serve_config_request(
300
302
 
301
303
  # Construct headers
302
304
  if if_modified_since is not None:
303
- _headers["if-modified-since"] = _SERIALIZER.header(
304
- "if_modified_since", if_modified_since, "str"
305
- )
305
+ _headers["if-modified-since"] = _SERIALIZER.header("if_modified_since", if_modified_since, "str")
306
306
  _headers["Accept"] = _SERIALIZER.header("accept", accept, "str")
307
307
  if_match = prep_if_match(etag, match_condition)
308
308
  if if_match is not None:
309
309
  _headers["If-Match"] = _SERIALIZER.header("if_match", if_match, "str")
310
310
  if_none_match = prep_if_none_match(etag, match_condition)
311
311
  if if_none_match is not None:
312
- _headers["If-None-Match"] = _SERIALIZER.header(
313
- "if_none_match", if_none_match, "str"
314
- )
312
+ _headers["If-None-Match"] = _SERIALIZER.header("if_none_match", if_none_match, "str")
315
313
 
316
314
  return HttpRequest(method="GET", url=_url, headers=_headers, **kwargs)
317
315
 
318
316
 
319
- def build_jobs_initiate_sandbox_upload_request(
320
- **kwargs: Any,
321
- ) -> HttpRequest: # pylint: disable=name-too-long
317
+ def build_jobs_initiate_sandbox_upload_request(**kwargs: Any) -> HttpRequest: # pylint: disable=name-too-long
322
318
  _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
323
319
 
324
- content_type: Optional[str] = kwargs.pop(
325
- "content_type", _headers.pop("Content-Type", None)
326
- )
320
+ content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
327
321
  accept = _headers.pop("Accept", "application/json")
328
322
 
329
323
  # Construct URL
@@ -331,9 +325,7 @@ def build_jobs_initiate_sandbox_upload_request(
331
325
 
332
326
  # Construct headers
333
327
  if content_type is not None:
334
- _headers["Content-Type"] = _SERIALIZER.header(
335
- "content_type", content_type, "str"
336
- )
328
+ _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str")
337
329
  _headers["Accept"] = _SERIALIZER.header("accept", accept, "str")
338
330
 
339
331
  return HttpRequest(method="POST", url=_url, headers=_headers, **kwargs)
@@ -360,9 +352,7 @@ def build_jobs_get_sandbox_file_request(*, pfn: str, **kwargs: Any) -> HttpReque
360
352
  # Construct headers
361
353
  _headers["Accept"] = _SERIALIZER.header("accept", accept, "str")
362
354
 
363
- return HttpRequest(
364
- method="GET", url=_url, params=_params, headers=_headers, **kwargs
365
- )
355
+ return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs)
366
356
 
367
357
 
368
358
  def build_jobs_unassign_bulk_jobs_sandboxes_request( # pylint: disable=name-too-long
@@ -382,9 +372,7 @@ def build_jobs_unassign_bulk_jobs_sandboxes_request( # pylint: disable=name-too
382
372
  # Construct headers
383
373
  _headers["Accept"] = _SERIALIZER.header("accept", accept, "str")
384
374
 
385
- return HttpRequest(
386
- method="DELETE", url=_url, params=_params, headers=_headers, **kwargs
387
- )
375
+ return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs)
388
376
 
389
377
 
390
378
  def build_jobs_get_job_sandboxes_request(job_id: int, **kwargs: Any) -> HttpRequest:
@@ -449,14 +437,10 @@ def build_jobs_get_job_sandbox_request(
449
437
  return HttpRequest(method="GET", url=_url, headers=_headers, **kwargs)
450
438
 
451
439
 
452
- def build_jobs_assign_sandbox_to_job_request(
453
- job_id: int, *, content: str, **kwargs: Any
454
- ) -> HttpRequest:
440
+ def build_jobs_assign_sandbox_to_job_request(job_id: int, *, content: str, **kwargs: Any) -> HttpRequest:
455
441
  _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
456
442
 
457
- content_type: Optional[str] = kwargs.pop(
458
- "content_type", _headers.pop("Content-Type", None)
459
- )
443
+ content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
460
444
  accept = _headers.pop("Accept", "application/json")
461
445
 
462
446
  # Construct URL
@@ -469,14 +453,10 @@ def build_jobs_assign_sandbox_to_job_request(
469
453
 
470
454
  # Construct headers
471
455
  if content_type is not None:
472
- _headers["Content-Type"] = _SERIALIZER.header(
473
- "content_type", content_type, "str"
474
- )
456
+ _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str")
475
457
  _headers["Accept"] = _SERIALIZER.header("accept", accept, "str")
476
458
 
477
- return HttpRequest(
478
- method="PATCH", url=_url, headers=_headers, content=content, **kwargs
479
- )
459
+ return HttpRequest(method="PATCH", url=_url, headers=_headers, content=content, **kwargs)
480
460
 
481
461
 
482
462
  def build_jobs_remove_jobs_request(*, job_ids: List[int], **kwargs: Any) -> HttpRequest:
@@ -494,20 +474,14 @@ def build_jobs_remove_jobs_request(*, job_ids: List[int], **kwargs: Any) -> Http
494
474
  # Construct headers
495
475
  _headers["Accept"] = _SERIALIZER.header("accept", accept, "str")
496
476
 
497
- return HttpRequest(
498
- method="DELETE", url=_url, params=_params, headers=_headers, **kwargs
499
- )
477
+ return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs)
500
478
 
501
479
 
502
- def build_jobs_set_job_statuses_request(
503
- *, force: bool = False, **kwargs: Any
504
- ) -> HttpRequest:
480
+ def build_jobs_set_job_statuses_request(*, force: bool = False, **kwargs: Any) -> HttpRequest:
505
481
  _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
506
482
  _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
507
483
 
508
- content_type: Optional[str] = kwargs.pop(
509
- "content_type", _headers.pop("Content-Type", None)
510
- )
484
+ content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
511
485
  accept = _headers.pop("Accept", "application/json")
512
486
 
513
487
  # Construct URL
@@ -519,22 +493,16 @@ def build_jobs_set_job_statuses_request(
519
493
 
520
494
  # Construct headers
521
495
  if content_type is not None:
522
- _headers["Content-Type"] = _SERIALIZER.header(
523
- "content_type", content_type, "str"
524
- )
496
+ _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str")
525
497
  _headers["Accept"] = _SERIALIZER.header("accept", accept, "str")
526
498
 
527
- return HttpRequest(
528
- method="PATCH", url=_url, params=_params, headers=_headers, **kwargs
529
- )
499
+ return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs)
530
500
 
531
501
 
532
502
  def build_jobs_add_heartbeat_request(**kwargs: Any) -> HttpRequest:
533
503
  _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
534
504
 
535
- content_type: Optional[str] = kwargs.pop(
536
- "content_type", _headers.pop("Content-Type", None)
537
- )
505
+ content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
538
506
  accept = _headers.pop("Accept", "application/json")
539
507
 
540
508
  # Construct URL
@@ -542,17 +510,13 @@ def build_jobs_add_heartbeat_request(**kwargs: Any) -> HttpRequest:
542
510
 
543
511
  # Construct headers
544
512
  if content_type is not None:
545
- _headers["Content-Type"] = _SERIALIZER.header(
546
- "content_type", content_type, "str"
547
- )
513
+ _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str")
548
514
  _headers["Accept"] = _SERIALIZER.header("accept", accept, "str")
549
515
 
550
516
  return HttpRequest(method="PATCH", url=_url, headers=_headers, **kwargs)
551
517
 
552
518
 
553
- def build_jobs_reschedule_jobs_request(
554
- *, job_ids: List[int], reset_jobs: bool = False, **kwargs: Any
555
- ) -> HttpRequest:
519
+ def build_jobs_reschedule_jobs_request(*, job_ids: List[int], reset_jobs: bool = False, **kwargs: Any) -> HttpRequest:
556
520
  _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
557
521
  _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
558
522
 
@@ -569,38 +533,28 @@ def build_jobs_reschedule_jobs_request(
569
533
  # Construct headers
570
534
  _headers["Accept"] = _SERIALIZER.header("accept", accept, "str")
571
535
 
572
- return HttpRequest(
573
- method="POST", url=_url, params=_params, headers=_headers, **kwargs
574
- )
536
+ return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs)
575
537
 
576
538
 
577
539
  def build_jobs_patch_metadata_request(**kwargs: Any) -> HttpRequest:
578
540
  _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
579
541
 
580
- content_type: Optional[str] = kwargs.pop(
581
- "content_type", _headers.pop("Content-Type", None)
582
- )
542
+ content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
583
543
  # Construct URL
584
544
  _url = "/api/jobs/metadata"
585
545
 
586
546
  # Construct headers
587
547
  if content_type is not None:
588
- _headers["Content-Type"] = _SERIALIZER.header(
589
- "content_type", content_type, "str"
590
- )
548
+ _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str")
591
549
 
592
550
  return HttpRequest(method="PATCH", url=_url, headers=_headers, **kwargs)
593
551
 
594
552
 
595
- def build_jobs_search_request(
596
- *, page: int = 1, per_page: int = 100, **kwargs: Any
597
- ) -> HttpRequest:
553
+ def build_jobs_search_request(*, page: int = 1, per_page: int = 100, **kwargs: Any) -> HttpRequest:
598
554
  _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
599
555
  _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
600
556
 
601
- content_type: Optional[str] = kwargs.pop(
602
- "content_type", _headers.pop("Content-Type", None)
603
- )
557
+ content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
604
558
  accept = _headers.pop("Accept", "application/json")
605
559
 
606
560
  # Construct URL
@@ -614,22 +568,16 @@ def build_jobs_search_request(
614
568
 
615
569
  # Construct headers
616
570
  if content_type is not None:
617
- _headers["Content-Type"] = _SERIALIZER.header(
618
- "content_type", content_type, "str"
619
- )
571
+ _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str")
620
572
  _headers["Accept"] = _SERIALIZER.header("accept", accept, "str")
621
573
 
622
- return HttpRequest(
623
- method="POST", url=_url, params=_params, headers=_headers, **kwargs
624
- )
574
+ return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs)
625
575
 
626
576
 
627
577
  def build_jobs_summary_request(**kwargs: Any) -> HttpRequest:
628
578
  _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
629
579
 
630
- content_type: Optional[str] = kwargs.pop(
631
- "content_type", _headers.pop("Content-Type", None)
632
- )
580
+ content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
633
581
  accept = _headers.pop("Accept", "application/json")
634
582
 
635
583
  # Construct URL
@@ -637,9 +585,7 @@ def build_jobs_summary_request(**kwargs: Any) -> HttpRequest:
637
585
 
638
586
  # Construct headers
639
587
  if content_type is not None:
640
- _headers["Content-Type"] = _SERIALIZER.header(
641
- "content_type", content_type, "str"
642
- )
588
+ _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str")
643
589
  _headers["Accept"] = _SERIALIZER.header("accept", accept, "str")
644
590
 
645
591
  return HttpRequest(method="POST", url=_url, headers=_headers, **kwargs)
@@ -648,9 +594,7 @@ def build_jobs_summary_request(**kwargs: Any) -> HttpRequest:
648
594
  def build_jobs_submit_jdl_jobs_request(**kwargs: Any) -> HttpRequest:
649
595
  _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
650
596
 
651
- content_type: Optional[str] = kwargs.pop(
652
- "content_type", _headers.pop("Content-Type", None)
653
- )
597
+ content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
654
598
  accept = _headers.pop("Accept", "application/json")
655
599
 
656
600
  # Construct URL
@@ -658,9 +602,7 @@ def build_jobs_submit_jdl_jobs_request(**kwargs: Any) -> HttpRequest:
658
602
 
659
603
  # Construct headers
660
604
  if content_type is not None:
661
- _headers["Content-Type"] = _SERIALIZER.header(
662
- "content_type", content_type, "str"
663
- )
605
+ _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str")
664
606
  _headers["Accept"] = _SERIALIZER.header("accept", accept, "str")
665
607
 
666
608
  return HttpRequest(method="POST", url=_url, headers=_headers, **kwargs)
@@ -678,20 +620,12 @@ class WellKnownOperations:
678
620
 
679
621
  models = _models
680
622
 
681
- def __init__(self, *args, **kwargs):
623
+ def __init__(self, *args, **kwargs) -> None:
682
624
  input_args = list(args)
683
- self._client: PipelineClient = (
684
- input_args.pop(0) if input_args else kwargs.pop("client")
685
- )
686
- self._config: DiracConfiguration = (
687
- input_args.pop(0) if input_args else kwargs.pop("config")
688
- )
689
- self._serialize: Serializer = (
690
- input_args.pop(0) if input_args else kwargs.pop("serializer")
691
- )
692
- self._deserialize: Deserializer = (
693
- input_args.pop(0) if input_args else kwargs.pop("deserializer")
694
- )
625
+ self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client")
626
+ self._config: DiracConfiguration = input_args.pop(0) if input_args else kwargs.pop("config")
627
+ self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer")
628
+ self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer")
695
629
 
696
630
  @distributed_trace
697
631
  def get_openid_configuration(self, **kwargs: Any) -> _models.OpenIDConfiguration:
@@ -723,24 +657,65 @@ class WellKnownOperations:
723
657
  _request.url = self._client.format_url(_request.url)
724
658
 
725
659
  _stream = False
726
- pipeline_response: PipelineResponse = (
727
- self._client._pipeline.run( # pylint: disable=protected-access
728
- _request, stream=_stream, **kwargs
729
- )
660
+ pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
661
+ _request, stream=_stream, **kwargs
730
662
  )
731
663
 
732
664
  response = pipeline_response.http_response
733
665
 
734
666
  if response.status_code not in [200]:
735
- map_error(
736
- status_code=response.status_code, response=response, error_map=error_map
737
- )
667
+ map_error(status_code=response.status_code, response=response, error_map=error_map)
738
668
  raise HttpResponseError(response=response)
739
669
 
740
- deserialized = self._deserialize(
741
- "OpenIDConfiguration", pipeline_response.http_response
670
+ deserialized = self._deserialize("OpenIDConfiguration", pipeline_response.http_response)
671
+
672
+ if cls:
673
+ return cls(pipeline_response, deserialized, {}) # type: ignore
674
+
675
+ return deserialized # type: ignore
676
+
677
+ @distributed_trace
678
+ def get_jwks(self, **kwargs: Any) -> Dict[str, Any]:
679
+ """Get Jwks.
680
+
681
+ Get the JWKs (public keys).
682
+
683
+ :return: dict mapping str to any
684
+ :rtype: dict[str, any]
685
+ :raises ~azure.core.exceptions.HttpResponseError:
686
+ """
687
+ error_map: MutableMapping = {
688
+ 401: ClientAuthenticationError,
689
+ 404: ResourceNotFoundError,
690
+ 409: ResourceExistsError,
691
+ 304: ResourceNotModifiedError,
692
+ }
693
+ error_map.update(kwargs.pop("error_map", {}) or {})
694
+
695
+ _headers = kwargs.pop("headers", {}) or {}
696
+ _params = kwargs.pop("params", {}) or {}
697
+
698
+ cls: ClsType[Dict[str, Any]] = kwargs.pop("cls", None)
699
+
700
+ _request = build_well_known_get_jwks_request(
701
+ headers=_headers,
702
+ params=_params,
703
+ )
704
+ _request.url = self._client.format_url(_request.url)
705
+
706
+ _stream = False
707
+ pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
708
+ _request, stream=_stream, **kwargs
742
709
  )
743
710
 
711
+ response = pipeline_response.http_response
712
+
713
+ if response.status_code not in [200]:
714
+ map_error(status_code=response.status_code, response=response, error_map=error_map)
715
+ raise HttpResponseError(response=response)
716
+
717
+ deserialized = self._deserialize("{object}", pipeline_response.http_response)
718
+
744
719
  if cls:
745
720
  return cls(pipeline_response, deserialized, {}) # type: ignore
746
721
 
@@ -776,18 +751,14 @@ class WellKnownOperations:
776
751
  _request.url = self._client.format_url(_request.url)
777
752
 
778
753
  _stream = False
779
- pipeline_response: PipelineResponse = (
780
- self._client._pipeline.run( # pylint: disable=protected-access
781
- _request, stream=_stream, **kwargs
782
- )
754
+ pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
755
+ _request, stream=_stream, **kwargs
783
756
  )
784
757
 
785
758
  response = pipeline_response.http_response
786
759
 
787
760
  if response.status_code not in [200]:
788
- map_error(
789
- status_code=response.status_code, response=response, error_map=error_map
790
- )
761
+ map_error(status_code=response.status_code, response=response, error_map=error_map)
791
762
  raise HttpResponseError(response=response)
792
763
 
793
764
  deserialized = self._deserialize("Metadata", pipeline_response.http_response)
@@ -797,6 +768,53 @@ class WellKnownOperations:
797
768
 
798
769
  return deserialized # type: ignore
799
770
 
771
+ @distributed_trace
772
+ def get_security_txt(self, **kwargs: Any) -> str:
773
+ """Get Security Txt.
774
+
775
+ Get the security.txt file.
776
+
777
+ :return: str
778
+ :rtype: str
779
+ :raises ~azure.core.exceptions.HttpResponseError:
780
+ """
781
+ error_map: MutableMapping = {
782
+ 401: ClientAuthenticationError,
783
+ 404: ResourceNotFoundError,
784
+ 409: ResourceExistsError,
785
+ 304: ResourceNotModifiedError,
786
+ }
787
+ error_map.update(kwargs.pop("error_map", {}) or {})
788
+
789
+ _headers = kwargs.pop("headers", {}) or {}
790
+ _params = kwargs.pop("params", {}) or {}
791
+
792
+ cls: ClsType[str] = kwargs.pop("cls", None)
793
+
794
+ _request = build_well_known_get_security_txt_request(
795
+ headers=_headers,
796
+ params=_params,
797
+ )
798
+ _request.url = self._client.format_url(_request.url)
799
+
800
+ _stream = False
801
+ pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
802
+ _request, stream=_stream, **kwargs
803
+ )
804
+
805
+ response = pipeline_response.http_response
806
+
807
+ if response.status_code not in [200]:
808
+ map_error(status_code=response.status_code, response=response, error_map=error_map)
809
+ raise HttpResponseError(response=response)
810
+
811
+ deserialized = self._deserialize("str", pipeline_response.http_response)
812
+
813
+ if cls:
814
+ return cls(pipeline_response, deserialized, {}) # type: ignore
815
+
816
+ return deserialized # type: ignore
817
+
800
818
 
801
819
  class AuthOperations: # pylint: disable=abstract-class-instantiated
802
820
  """
@@ -810,20 +828,12 @@ class AuthOperations: # pylint: disable=abstract-class-instantiated
810
828
 
811
829
  models = _models
812
830
 
813
- def __init__(self, *args, **kwargs):
831
+ def __init__(self, *args, **kwargs) -> None:
814
832
  input_args = list(args)
815
- self._client: PipelineClient = (
816
- input_args.pop(0) if input_args else kwargs.pop("client")
817
- )
818
- self._config: DiracConfiguration = (
819
- input_args.pop(0) if input_args else kwargs.pop("config")
820
- )
821
- self._serialize: Serializer = (
822
- input_args.pop(0) if input_args else kwargs.pop("serializer")
823
- )
824
- self._deserialize: Deserializer = (
825
- input_args.pop(0) if input_args else kwargs.pop("deserializer")
826
- )
833
+ self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client")
834
+ self._config: DiracConfiguration = input_args.pop(0) if input_args else kwargs.pop("config")
835
+ self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer")
836
+ self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer")
827
837
 
828
838
  raise_if_not_implemented(
829
839
  self.__class__,
@@ -833,9 +843,7 @@ class AuthOperations: # pylint: disable=abstract-class-instantiated
833
843
  )
834
844
 
835
845
  @distributed_trace
836
- def initiate_device_flow(
837
- self, *, client_id: str, scope: str, **kwargs: Any
838
- ) -> _models.InitiateDeviceFlowResponse:
846
+ def initiate_device_flow(self, *, client_id: str, scope: str, **kwargs: Any) -> _models.InitiateDeviceFlowResponse:
839
847
  """Initiate Device Flow.
840
848
 
841
849
  Initiate the device flow against DIRAC authorization Server.
@@ -892,23 +900,17 @@ class AuthOperations: # pylint: disable=abstract-class-instantiated
892
900
  _request.url = self._client.format_url(_request.url)
893
901
 
894
902
  _stream = False
895
- pipeline_response: PipelineResponse = (
896
- self._client._pipeline.run( # pylint: disable=protected-access
897
- _request, stream=_stream, **kwargs
898
- )
903
+ pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
904
+ _request, stream=_stream, **kwargs
899
905
  )
900
906
 
901
907
  response = pipeline_response.http_response
902
908
 
903
909
  if response.status_code not in [200]:
904
- map_error(
905
- status_code=response.status_code, response=response, error_map=error_map
906
- )
910
+ map_error(status_code=response.status_code, response=response, error_map=error_map)
907
911
  raise HttpResponseError(response=response)
908
912
 
909
- deserialized = self._deserialize(
910
- "InitiateDeviceFlowResponse", pipeline_response.http_response
911
- )
913
+ deserialized = self._deserialize("InitiateDeviceFlowResponse", pipeline_response.http_response)
912
914
 
913
915
  if cls:
914
916
  return cls(pipeline_response, deserialized, {}) # type: ignore
@@ -955,18 +957,14 @@ class AuthOperations: # pylint: disable=abstract-class-instantiated
955
957
  _request.url = self._client.format_url(_request.url)
956
958
 
957
959
  _stream = False
958
- pipeline_response: PipelineResponse = (
959
- self._client._pipeline.run( # pylint: disable=protected-access
960
- _request, stream=_stream, **kwargs
961
- )
960
+ pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
961
+ _request, stream=_stream, **kwargs
962
962
  )
963
963
 
964
964
  response = pipeline_response.http_response
965
965
 
966
966
  if response.status_code not in [200]:
967
- map_error(
968
- status_code=response.status_code, response=response, error_map=error_map
969
- )
967
+ map_error(status_code=response.status_code, response=response, error_map=error_map)
970
968
  raise HttpResponseError(response=response)
971
969
 
972
970
  deserialized = self._deserialize("object", pipeline_response.http_response)
@@ -980,7 +978,7 @@ class AuthOperations: # pylint: disable=abstract-class-instantiated
980
978
  def finish_device_flow(self, *, code: str, state: str, **kwargs: Any) -> Any:
981
979
  """Finish Device Flow.
982
980
 
983
- This the url callbacked by IAM/Checkin after the authorization
981
+ This the url callbacked by IAM/CheckIn after the authorization
984
982
  flow was granted.
985
983
  It gets us the code we need for the authorization flow, and we
986
984
  can map it to the corresponding device flow using the user_code
@@ -1016,18 +1014,14 @@ class AuthOperations: # pylint: disable=abstract-class-instantiated
1016
1014
  _request.url = self._client.format_url(_request.url)
1017
1015
 
1018
1016
  _stream = False
1019
- pipeline_response: PipelineResponse = (
1020
- self._client._pipeline.run( # pylint: disable=protected-access
1021
- _request, stream=_stream, **kwargs
1022
- )
1017
+ pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
1018
+ _request, stream=_stream, **kwargs
1023
1019
  )
1024
1020
 
1025
1021
  response = pipeline_response.http_response
1026
1022
 
1027
1023
  if response.status_code not in [200]:
1028
- map_error(
1029
- status_code=response.status_code, response=response, error_map=error_map
1030
- )
1024
+ map_error(status_code=response.status_code, response=response, error_map=error_map)
1031
1025
  raise HttpResponseError(response=response)
1032
1026
 
1033
1027
  deserialized = self._deserialize("object", pipeline_response.http_response)
@@ -1067,18 +1061,14 @@ class AuthOperations: # pylint: disable=abstract-class-instantiated
1067
1061
  _request.url = self._client.format_url(_request.url)
1068
1062
 
1069
1063
  _stream = False
1070
- pipeline_response: PipelineResponse = (
1071
- self._client._pipeline.run( # pylint: disable=protected-access
1072
- _request, stream=_stream, **kwargs
1073
- )
1064
+ pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
1065
+ _request, stream=_stream, **kwargs
1074
1066
  )
1075
1067
 
1076
1068
  response = pipeline_response.http_response
1077
1069
 
1078
1070
  if response.status_code not in [200]:
1079
- map_error(
1080
- status_code=response.status_code, response=response, error_map=error_map
1081
- )
1071
+ map_error(status_code=response.status_code, response=response, error_map=error_map)
1082
1072
  raise HttpResponseError(response=response)
1083
1073
 
1084
1074
  deserialized = self._deserialize("object", pipeline_response.http_response)
@@ -1119,18 +1109,14 @@ class AuthOperations: # pylint: disable=abstract-class-instantiated
1119
1109
  _request.url = self._client.format_url(_request.url)
1120
1110
 
1121
1111
  _stream = False
1122
- pipeline_response: PipelineResponse = (
1123
- self._client._pipeline.run( # pylint: disable=protected-access
1124
- _request, stream=_stream, **kwargs
1125
- )
1112
+ pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
1113
+ _request, stream=_stream, **kwargs
1126
1114
  )
1127
1115
 
1128
1116
  response = pipeline_response.http_response
1129
1117
 
1130
1118
  if response.status_code not in [200]:
1131
- map_error(
1132
- status_code=response.status_code, response=response, error_map=error_map
1133
- )
1119
+ map_error(status_code=response.status_code, response=response, error_map=error_map)
1134
1120
  raise HttpResponseError(response=response)
1135
1121
 
1136
1122
  deserialized = self._deserialize("[object]", pipeline_response.http_response)
@@ -1141,9 +1127,7 @@ class AuthOperations: # pylint: disable=abstract-class-instantiated
1141
1127
  return deserialized # type: ignore
1142
1128
 
1143
1129
  @distributed_trace
1144
- def revoke_refresh_token_by_refresh_token(
1145
- self, *, refresh_token: str, client_id: str, **kwargs: Any
1146
- ) -> str:
1130
+ def revoke_refresh_token_by_refresh_token(self, *, refresh_token: str, client_id: str, **kwargs: Any) -> str:
1147
1131
  """Revoke Refresh Token By Refresh Token.
1148
1132
 
1149
1133
  Revoke a refresh token.
@@ -1178,18 +1162,14 @@ class AuthOperations: # pylint: disable=abstract-class-instantiated
1178
1162
  _request.url = self._client.format_url(_request.url)
1179
1163
 
1180
1164
  _stream = False
1181
- pipeline_response: PipelineResponse = (
1182
- self._client._pipeline.run( # pylint: disable=protected-access
1183
- _request, stream=_stream, **kwargs
1184
- )
1165
+ pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
1166
+ _request, stream=_stream, **kwargs
1185
1167
  )
1186
1168
 
1187
1169
  response = pipeline_response.http_response
1188
1170
 
1189
1171
  if response.status_code not in [200]:
1190
- map_error(
1191
- status_code=response.status_code, response=response, error_map=error_map
1192
- )
1172
+ map_error(status_code=response.status_code, response=response, error_map=error_map)
1193
1173
  raise HttpResponseError(response=response)
1194
1174
 
1195
1175
  deserialized = self._deserialize("str", pipeline_response.http_response)
@@ -1233,18 +1213,14 @@ class AuthOperations: # pylint: disable=abstract-class-instantiated
1233
1213
  _request.url = self._client.format_url(_request.url)
1234
1214
 
1235
1215
  _stream = False
1236
- pipeline_response: PipelineResponse = (
1237
- self._client._pipeline.run( # pylint: disable=protected-access
1238
- _request, stream=_stream, **kwargs
1239
- )
1216
+ pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
1217
+ _request, stream=_stream, **kwargs
1240
1218
  )
1241
1219
 
1242
1220
  response = pipeline_response.http_response
1243
1221
 
1244
1222
  if response.status_code not in [200]:
1245
- map_error(
1246
- status_code=response.status_code, response=response, error_map=error_map
1247
- )
1223
+ map_error(status_code=response.status_code, response=response, error_map=error_map)
1248
1224
  raise HttpResponseError(response=response)
1249
1225
 
1250
1226
  deserialized = self._deserialize("str", pipeline_response.http_response)
@@ -1284,23 +1260,17 @@ class AuthOperations: # pylint: disable=abstract-class-instantiated
1284
1260
  _request.url = self._client.format_url(_request.url)
1285
1261
 
1286
1262
  _stream = False
1287
- pipeline_response: PipelineResponse = (
1288
- self._client._pipeline.run( # pylint: disable=protected-access
1289
- _request, stream=_stream, **kwargs
1290
- )
1263
+ pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
1264
+ _request, stream=_stream, **kwargs
1291
1265
  )
1292
1266
 
1293
1267
  response = pipeline_response.http_response
1294
1268
 
1295
1269
  if response.status_code not in [200]:
1296
- map_error(
1297
- status_code=response.status_code, response=response, error_map=error_map
1298
- )
1270
+ map_error(status_code=response.status_code, response=response, error_map=error_map)
1299
1271
  raise HttpResponseError(response=response)
1300
1272
 
1301
- deserialized = self._deserialize(
1302
- "UserInfoResponse", pipeline_response.http_response
1303
- )
1273
+ deserialized = self._deserialize("UserInfoResponse", pipeline_response.http_response)
1304
1274
 
1305
1275
  if cls:
1306
1276
  return cls(pipeline_response, deserialized, {}) # type: ignore
@@ -1318,7 +1288,7 @@ class AuthOperations: # pylint: disable=abstract-class-instantiated
1318
1288
  redirect_uri: str,
1319
1289
  scope: str,
1320
1290
  state: str,
1321
- **kwargs: Any,
1291
+ **kwargs: Any
1322
1292
  ) -> Any:
1323
1293
  """Initiate Authorization Flow.
1324
1294
 
@@ -1394,18 +1364,14 @@ class AuthOperations: # pylint: disable=abstract-class-instantiated
1394
1364
  _request.url = self._client.format_url(_request.url)
1395
1365
 
1396
1366
  _stream = False
1397
- pipeline_response: PipelineResponse = (
1398
- self._client._pipeline.run( # pylint: disable=protected-access
1399
- _request, stream=_stream, **kwargs
1400
- )
1367
+ pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
1368
+ _request, stream=_stream, **kwargs
1401
1369
  )
1402
1370
 
1403
1371
  response = pipeline_response.http_response
1404
1372
 
1405
1373
  if response.status_code not in [200]:
1406
- map_error(
1407
- status_code=response.status_code, response=response, error_map=error_map
1408
- )
1374
+ map_error(status_code=response.status_code, response=response, error_map=error_map)
1409
1375
  raise HttpResponseError(response=response)
1410
1376
 
1411
1377
  deserialized = self._deserialize("object", pipeline_response.http_response)
@@ -1416,9 +1382,7 @@ class AuthOperations: # pylint: disable=abstract-class-instantiated
1416
1382
  return deserialized # type: ignore
1417
1383
 
1418
1384
  @distributed_trace
1419
- def complete_authorization_flow(
1420
- self, *, code: str, state: str, **kwargs: Any
1421
- ) -> Any:
1385
+ def complete_authorization_flow(self, *, code: str, state: str, **kwargs: Any) -> Any:
1422
1386
  """Complete Authorization Flow.
1423
1387
 
1424
1388
  Complete the authorization flow.
@@ -1459,18 +1423,14 @@ class AuthOperations: # pylint: disable=abstract-class-instantiated
1459
1423
  _request.url = self._client.format_url(_request.url)
1460
1424
 
1461
1425
  _stream = False
1462
- pipeline_response: PipelineResponse = (
1463
- self._client._pipeline.run( # pylint: disable=protected-access
1464
- _request, stream=_stream, **kwargs
1465
- )
1426
+ pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
1427
+ _request, stream=_stream, **kwargs
1466
1428
  )
1467
1429
 
1468
1430
  response = pipeline_response.http_response
1469
1431
 
1470
1432
  if response.status_code not in [200]:
1471
- map_error(
1472
- status_code=response.status_code, response=response, error_map=error_map
1473
- )
1433
+ map_error(status_code=response.status_code, response=response, error_map=error_map)
1474
1434
  raise HttpResponseError(response=response)
1475
1435
 
1476
1436
  deserialized = self._deserialize("object", pipeline_response.http_response)
@@ -1493,20 +1453,12 @@ class ConfigOperations:
1493
1453
 
1494
1454
  models = _models
1495
1455
 
1496
- def __init__(self, *args, **kwargs):
1456
+ def __init__(self, *args, **kwargs) -> None:
1497
1457
  input_args = list(args)
1498
- self._client: PipelineClient = (
1499
- input_args.pop(0) if input_args else kwargs.pop("client")
1500
- )
1501
- self._config: DiracConfiguration = (
1502
- input_args.pop(0) if input_args else kwargs.pop("config")
1503
- )
1504
- self._serialize: Serializer = (
1505
- input_args.pop(0) if input_args else kwargs.pop("serializer")
1506
- )
1507
- self._deserialize: Deserializer = (
1508
- input_args.pop(0) if input_args else kwargs.pop("deserializer")
1509
- )
1458
+ self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client")
1459
+ self._config: DiracConfiguration = input_args.pop(0) if input_args else kwargs.pop("config")
1460
+ self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer")
1461
+ self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer")
1510
1462
 
1511
1463
  @distributed_trace
1512
1464
  def serve_config(
@@ -1515,7 +1467,7 @@ class ConfigOperations:
1515
1467
  if_modified_since: Optional[str] = None,
1516
1468
  etag: Optional[str] = None,
1517
1469
  match_condition: Optional[MatchConditions] = None,
1518
- **kwargs: Any,
1470
+ **kwargs: Any
1519
1471
  ) -> Any:
1520
1472
  """Serve Config.
1521
1473
 
@@ -1566,18 +1518,14 @@ class ConfigOperations:
1566
1518
  _request.url = self._client.format_url(_request.url)
1567
1519
 
1568
1520
  _stream = False
1569
- pipeline_response: PipelineResponse = (
1570
- self._client._pipeline.run( # pylint: disable=protected-access
1571
- _request, stream=_stream, **kwargs
1572
- )
1521
+ pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
1522
+ _request, stream=_stream, **kwargs
1573
1523
  )
1574
1524
 
1575
1525
  response = pipeline_response.http_response
1576
1526
 
1577
1527
  if response.status_code not in [200]:
1578
- map_error(
1579
- status_code=response.status_code, response=response, error_map=error_map
1580
- )
1528
+ map_error(status_code=response.status_code, response=response, error_map=error_map)
1581
1529
  raise HttpResponseError(response=response)
1582
1530
 
1583
1531
  deserialized = self._deserialize("object", pipeline_response.http_response)
@@ -1600,28 +1548,16 @@ class JobsOperations:
1600
1548
 
1601
1549
  models = _models
1602
1550
 
1603
- def __init__(self, *args, **kwargs):
1551
+ def __init__(self, *args, **kwargs) -> None:
1604
1552
  input_args = list(args)
1605
- self._client: PipelineClient = (
1606
- input_args.pop(0) if input_args else kwargs.pop("client")
1607
- )
1608
- self._config: DiracConfiguration = (
1609
- input_args.pop(0) if input_args else kwargs.pop("config")
1610
- )
1611
- self._serialize: Serializer = (
1612
- input_args.pop(0) if input_args else kwargs.pop("serializer")
1613
- )
1614
- self._deserialize: Deserializer = (
1615
- input_args.pop(0) if input_args else kwargs.pop("deserializer")
1616
- )
1553
+ self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client")
1554
+ self._config: DiracConfiguration = input_args.pop(0) if input_args else kwargs.pop("config")
1555
+ self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer")
1556
+ self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer")
1617
1557
 
1618
1558
  @overload
1619
1559
  def initiate_sandbox_upload(
1620
- self,
1621
- body: _models.SandboxInfo,
1622
- *,
1623
- content_type: str = "application/json",
1624
- **kwargs: Any,
1560
+ self, body: _models.SandboxInfo, *, content_type: str = "application/json", **kwargs: Any
1625
1561
  ) -> _models.SandboxUploadResponse:
1626
1562
  """Initiate Sandbox Upload.
1627
1563
 
@@ -1698,9 +1634,7 @@ class JobsOperations:
1698
1634
  _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
1699
1635
  _params = kwargs.pop("params", {}) or {}
1700
1636
 
1701
- content_type: Optional[str] = kwargs.pop(
1702
- "content_type", _headers.pop("Content-Type", None)
1703
- )
1637
+ content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
1704
1638
  cls: ClsType[_models.SandboxUploadResponse] = kwargs.pop("cls", None)
1705
1639
 
1706
1640
  content_type = content_type or "application/json"
@@ -1721,23 +1655,17 @@ class JobsOperations:
1721
1655
  _request.url = self._client.format_url(_request.url)
1722
1656
 
1723
1657
  _stream = False
1724
- pipeline_response: PipelineResponse = (
1725
- self._client._pipeline.run( # pylint: disable=protected-access
1726
- _request, stream=_stream, **kwargs
1727
- )
1658
+ pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
1659
+ _request, stream=_stream, **kwargs
1728
1660
  )
1729
1661
 
1730
1662
  response = pipeline_response.http_response
1731
1663
 
1732
1664
  if response.status_code not in [200]:
1733
- map_error(
1734
- status_code=response.status_code, response=response, error_map=error_map
1735
- )
1665
+ map_error(status_code=response.status_code, response=response, error_map=error_map)
1736
1666
  raise HttpResponseError(response=response)
1737
1667
 
1738
- deserialized = self._deserialize(
1739
- "SandboxUploadResponse", pipeline_response.http_response
1740
- )
1668
+ deserialized = self._deserialize("SandboxUploadResponse", pipeline_response.http_response)
1741
1669
 
1742
1670
  if cls:
1743
1671
  return cls(pipeline_response, deserialized, {}) # type: ignore
@@ -1745,9 +1673,7 @@ class JobsOperations:
1745
1673
  return deserialized # type: ignore
1746
1674
 
1747
1675
  @distributed_trace
1748
- def get_sandbox_file(
1749
- self, *, pfn: str, **kwargs: Any
1750
- ) -> _models.SandboxDownloadResponse:
1676
+ def get_sandbox_file(self, *, pfn: str, **kwargs: Any) -> _models.SandboxDownloadResponse:
1751
1677
  """Get Sandbox File.
1752
1678
 
1753
1679
  Get a presigned URL to download a sandbox file.
@@ -1785,23 +1711,17 @@ class JobsOperations:
1785
1711
  _request.url = self._client.format_url(_request.url)
1786
1712
 
1787
1713
  _stream = False
1788
- pipeline_response: PipelineResponse = (
1789
- self._client._pipeline.run( # pylint: disable=protected-access
1790
- _request, stream=_stream, **kwargs
1791
- )
1714
+ pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
1715
+ _request, stream=_stream, **kwargs
1792
1716
  )
1793
1717
 
1794
1718
  response = pipeline_response.http_response
1795
1719
 
1796
1720
  if response.status_code not in [200]:
1797
- map_error(
1798
- status_code=response.status_code, response=response, error_map=error_map
1799
- )
1721
+ map_error(status_code=response.status_code, response=response, error_map=error_map)
1800
1722
  raise HttpResponseError(response=response)
1801
1723
 
1802
- deserialized = self._deserialize(
1803
- "SandboxDownloadResponse", pipeline_response.http_response
1804
- )
1724
+ deserialized = self._deserialize("SandboxDownloadResponse", pipeline_response.http_response)
1805
1725
 
1806
1726
  if cls:
1807
1727
  return cls(pipeline_response, deserialized, {}) # type: ignore
@@ -1809,9 +1729,7 @@ class JobsOperations:
1809
1729
  return deserialized # type: ignore
1810
1730
 
1811
1731
  @distributed_trace
1812
- def unassign_bulk_jobs_sandboxes(
1813
- self, *, jobs_ids: List[int], **kwargs: Any
1814
- ) -> Any:
1732
+ def unassign_bulk_jobs_sandboxes(self, *, jobs_ids: List[int], **kwargs: Any) -> Any:
1815
1733
  """Unassign Bulk Jobs Sandboxes.
1816
1734
 
1817
1735
  Delete bulk jobs sandbox mapping.
@@ -1843,18 +1761,14 @@ class JobsOperations:
1843
1761
  _request.url = self._client.format_url(_request.url)
1844
1762
 
1845
1763
  _stream = False
1846
- pipeline_response: PipelineResponse = (
1847
- self._client._pipeline.run( # pylint: disable=protected-access
1848
- _request, stream=_stream, **kwargs
1849
- )
1764
+ pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
1765
+ _request, stream=_stream, **kwargs
1850
1766
  )
1851
1767
 
1852
1768
  response = pipeline_response.http_response
1853
1769
 
1854
1770
  if response.status_code not in [200]:
1855
- map_error(
1856
- status_code=response.status_code, response=response, error_map=error_map
1857
- )
1771
+ map_error(status_code=response.status_code, response=response, error_map=error_map)
1858
1772
  raise HttpResponseError(response=response)
1859
1773
 
1860
1774
  deserialized = self._deserialize("object", pipeline_response.http_response)
@@ -1897,18 +1811,14 @@ class JobsOperations:
1897
1811
  _request.url = self._client.format_url(_request.url)
1898
1812
 
1899
1813
  _stream = False
1900
- pipeline_response: PipelineResponse = (
1901
- self._client._pipeline.run( # pylint: disable=protected-access
1902
- _request, stream=_stream, **kwargs
1903
- )
1814
+ pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
1815
+ _request, stream=_stream, **kwargs
1904
1816
  )
1905
1817
 
1906
1818
  response = pipeline_response.http_response
1907
1819
 
1908
1820
  if response.status_code not in [200]:
1909
- map_error(
1910
- status_code=response.status_code, response=response, error_map=error_map
1911
- )
1821
+ map_error(status_code=response.status_code, response=response, error_map=error_map)
1912
1822
  raise HttpResponseError(response=response)
1913
1823
 
1914
1824
  deserialized = self._deserialize("{[object]}", pipeline_response.http_response)
@@ -1951,18 +1861,14 @@ class JobsOperations:
1951
1861
  _request.url = self._client.format_url(_request.url)
1952
1862
 
1953
1863
  _stream = False
1954
- pipeline_response: PipelineResponse = (
1955
- self._client._pipeline.run( # pylint: disable=protected-access
1956
- _request, stream=_stream, **kwargs
1957
- )
1864
+ pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
1865
+ _request, stream=_stream, **kwargs
1958
1866
  )
1959
1867
 
1960
1868
  response = pipeline_response.http_response
1961
1869
 
1962
1870
  if response.status_code not in [200]:
1963
- map_error(
1964
- status_code=response.status_code, response=response, error_map=error_map
1965
- )
1871
+ map_error(status_code=response.status_code, response=response, error_map=error_map)
1966
1872
  raise HttpResponseError(response=response)
1967
1873
 
1968
1874
  deserialized = self._deserialize("object", pipeline_response.http_response)
@@ -1973,9 +1879,7 @@ class JobsOperations:
1973
1879
  return deserialized # type: ignore
1974
1880
 
1975
1881
  @distributed_trace
1976
- def get_job_sandbox(
1977
- self, job_id: int, sandbox_type: Union[str, _models.SandboxType], **kwargs: Any
1978
- ) -> List[Any]:
1882
+ def get_job_sandbox(self, job_id: int, sandbox_type: Union[str, _models.SandboxType], **kwargs: Any) -> List[Any]:
1979
1883
  """Get Job Sandbox.
1980
1884
 
1981
1885
  Get input or output sandbox of given job.
@@ -2010,18 +1914,14 @@ class JobsOperations:
2010
1914
  _request.url = self._client.format_url(_request.url)
2011
1915
 
2012
1916
  _stream = False
2013
- pipeline_response: PipelineResponse = (
2014
- self._client._pipeline.run( # pylint: disable=protected-access
2015
- _request, stream=_stream, **kwargs
2016
- )
1917
+ pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
1918
+ _request, stream=_stream, **kwargs
2017
1919
  )
2018
1920
 
2019
1921
  response = pipeline_response.http_response
2020
1922
 
2021
1923
  if response.status_code not in [200]:
2022
- map_error(
2023
- status_code=response.status_code, response=response, error_map=error_map
2024
- )
1924
+ map_error(status_code=response.status_code, response=response, error_map=error_map)
2025
1925
  raise HttpResponseError(response=response)
2026
1926
 
2027
1927
  deserialized = self._deserialize("[object]", pipeline_response.http_response)
@@ -2056,9 +1956,7 @@ class JobsOperations:
2056
1956
  _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
2057
1957
  _params = kwargs.pop("params", {}) or {}
2058
1958
 
2059
- content_type: str = kwargs.pop(
2060
- "content_type", _headers.pop("Content-Type", "application/json")
2061
- )
1959
+ content_type: str = kwargs.pop("content_type", _headers.pop("Content-Type", "application/json"))
2062
1960
  cls: ClsType[Any] = kwargs.pop("cls", None)
2063
1961
 
2064
1962
  _content = self._serialize.body(body, "str")
@@ -2073,18 +1971,14 @@ class JobsOperations:
2073
1971
  _request.url = self._client.format_url(_request.url)
2074
1972
 
2075
1973
  _stream = False
2076
- pipeline_response: PipelineResponse = (
2077
- self._client._pipeline.run( # pylint: disable=protected-access
2078
- _request, stream=_stream, **kwargs
2079
- )
1974
+ pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
1975
+ _request, stream=_stream, **kwargs
2080
1976
  )
2081
1977
 
2082
1978
  response = pipeline_response.http_response
2083
1979
 
2084
1980
  if response.status_code not in [200]:
2085
- map_error(
2086
- status_code=response.status_code, response=response, error_map=error_map
2087
- )
1981
+ map_error(status_code=response.status_code, response=response, error_map=error_map)
2088
1982
  raise HttpResponseError(response=response)
2089
1983
 
2090
1984
  deserialized = self._deserialize("object", pipeline_response.http_response)
@@ -2132,18 +2026,14 @@ class JobsOperations:
2132
2026
  _request.url = self._client.format_url(_request.url)
2133
2027
 
2134
2028
  _stream = False
2135
- pipeline_response: PipelineResponse = (
2136
- self._client._pipeline.run( # pylint: disable=protected-access
2137
- _request, stream=_stream, **kwargs
2138
- )
2029
+ pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
2030
+ _request, stream=_stream, **kwargs
2139
2031
  )
2140
2032
 
2141
2033
  response = pipeline_response.http_response
2142
2034
 
2143
2035
  if response.status_code not in [200]:
2144
- map_error(
2145
- status_code=response.status_code, response=response, error_map=error_map
2146
- )
2036
+ map_error(status_code=response.status_code, response=response, error_map=error_map)
2147
2037
  raise HttpResponseError(response=response)
2148
2038
 
2149
2039
  deserialized = self._deserialize("object", pipeline_response.http_response)
@@ -2160,7 +2050,7 @@ class JobsOperations:
2160
2050
  *,
2161
2051
  force: bool = False,
2162
2052
  content_type: str = "application/json",
2163
- **kwargs: Any,
2053
+ **kwargs: Any
2164
2054
  ) -> _models.SetJobStatusReturn:
2165
2055
  """Set Job Statuses.
2166
2056
 
@@ -2180,12 +2070,7 @@ class JobsOperations:
2180
2070
 
2181
2071
  @overload
2182
2072
  def set_job_statuses(
2183
- self,
2184
- body: IO[bytes],
2185
- *,
2186
- force: bool = False,
2187
- content_type: str = "application/json",
2188
- **kwargs: Any,
2073
+ self, body: IO[bytes], *, force: bool = False, content_type: str = "application/json", **kwargs: Any
2189
2074
  ) -> _models.SetJobStatusReturn:
2190
2075
  """Set Job Statuses.
2191
2076
 
@@ -2209,7 +2094,7 @@ class JobsOperations:
2209
2094
  body: Union[Dict[str, Dict[str, _models.JobStatusUpdate]], IO[bytes]],
2210
2095
  *,
2211
2096
  force: bool = False,
2212
- **kwargs: Any,
2097
+ **kwargs: Any
2213
2098
  ) -> _models.SetJobStatusReturn:
2214
2099
  """Set Job Statuses.
2215
2100
 
@@ -2234,9 +2119,7 @@ class JobsOperations:
2234
2119
  _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
2235
2120
  _params = kwargs.pop("params", {}) or {}
2236
2121
 
2237
- content_type: Optional[str] = kwargs.pop(
2238
- "content_type", _headers.pop("Content-Type", None)
2239
- )
2122
+ content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
2240
2123
  cls: ClsType[_models.SetJobStatusReturn] = kwargs.pop("cls", None)
2241
2124
 
2242
2125
  content_type = content_type or "application/json"
@@ -2258,23 +2141,17 @@ class JobsOperations:
2258
2141
  _request.url = self._client.format_url(_request.url)
2259
2142
 
2260
2143
  _stream = False
2261
- pipeline_response: PipelineResponse = (
2262
- self._client._pipeline.run( # pylint: disable=protected-access
2263
- _request, stream=_stream, **kwargs
2264
- )
2144
+ pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
2145
+ _request, stream=_stream, **kwargs
2265
2146
  )
2266
2147
 
2267
2148
  response = pipeline_response.http_response
2268
2149
 
2269
2150
  if response.status_code not in [200]:
2270
- map_error(
2271
- status_code=response.status_code, response=response, error_map=error_map
2272
- )
2151
+ map_error(status_code=response.status_code, response=response, error_map=error_map)
2273
2152
  raise HttpResponseError(response=response)
2274
2153
 
2275
- deserialized = self._deserialize(
2276
- "SetJobStatusReturn", pipeline_response.http_response
2277
- )
2154
+ deserialized = self._deserialize("SetJobStatusReturn", pipeline_response.http_response)
2278
2155
 
2279
2156
  if cls:
2280
2157
  return cls(pipeline_response, deserialized, {}) # type: ignore
@@ -2283,11 +2160,7 @@ class JobsOperations:
2283
2160
 
2284
2161
  @overload
2285
2162
  def add_heartbeat(
2286
- self,
2287
- body: Dict[str, _models.HeartbeatData],
2288
- *,
2289
- content_type: str = "application/json",
2290
- **kwargs: Any,
2163
+ self, body: Dict[str, _models.HeartbeatData], *, content_type: str = "application/json", **kwargs: Any
2291
2164
  ) -> List[_models.JobCommand]:
2292
2165
  """Add Heartbeat.
2293
2166
 
@@ -2364,9 +2237,7 @@ class JobsOperations:
2364
2237
  _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
2365
2238
  _params = kwargs.pop("params", {}) or {}
2366
2239
 
2367
- content_type: Optional[str] = kwargs.pop(
2368
- "content_type", _headers.pop("Content-Type", None)
2369
- )
2240
+ content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
2370
2241
  cls: ClsType[List[_models.JobCommand]] = kwargs.pop("cls", None)
2371
2242
 
2372
2243
  content_type = content_type or "application/json"
@@ -2387,23 +2258,17 @@ class JobsOperations:
2387
2258
  _request.url = self._client.format_url(_request.url)
2388
2259
 
2389
2260
  _stream = False
2390
- pipeline_response: PipelineResponse = (
2391
- self._client._pipeline.run( # pylint: disable=protected-access
2392
- _request, stream=_stream, **kwargs
2393
- )
2261
+ pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
2262
+ _request, stream=_stream, **kwargs
2394
2263
  )
2395
2264
 
2396
2265
  response = pipeline_response.http_response
2397
2266
 
2398
2267
  if response.status_code not in [200]:
2399
- map_error(
2400
- status_code=response.status_code, response=response, error_map=error_map
2401
- )
2268
+ map_error(status_code=response.status_code, response=response, error_map=error_map)
2402
2269
  raise HttpResponseError(response=response)
2403
2270
 
2404
- deserialized = self._deserialize(
2405
- "[JobCommand]", pipeline_response.http_response
2406
- )
2271
+ deserialized = self._deserialize("[JobCommand]", pipeline_response.http_response)
2407
2272
 
2408
2273
  if cls:
2409
2274
  return cls(pipeline_response, deserialized, {}) # type: ignore
@@ -2411,9 +2276,7 @@ class JobsOperations:
2411
2276
  return deserialized # type: ignore
2412
2277
 
2413
2278
  @distributed_trace
2414
- def reschedule_jobs(
2415
- self, *, job_ids: List[int], reset_jobs: bool = False, **kwargs: Any
2416
- ) -> Dict[str, Any]:
2279
+ def reschedule_jobs(self, *, job_ids: List[int], reset_jobs: bool = False, **kwargs: Any) -> Dict[str, Any]:
2417
2280
  """Reschedule Jobs.
2418
2281
 
2419
2282
  Reschedule Jobs.
@@ -2448,18 +2311,14 @@ class JobsOperations:
2448
2311
  _request.url = self._client.format_url(_request.url)
2449
2312
 
2450
2313
  _stream = False
2451
- pipeline_response: PipelineResponse = (
2452
- self._client._pipeline.run( # pylint: disable=protected-access
2453
- _request, stream=_stream, **kwargs
2454
- )
2314
+ pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
2315
+ _request, stream=_stream, **kwargs
2455
2316
  )
2456
2317
 
2457
2318
  response = pipeline_response.http_response
2458
2319
 
2459
2320
  if response.status_code not in [200]:
2460
- map_error(
2461
- status_code=response.status_code, response=response, error_map=error_map
2462
- )
2321
+ map_error(status_code=response.status_code, response=response, error_map=error_map)
2463
2322
  raise HttpResponseError(response=response)
2464
2323
 
2465
2324
  deserialized = self._deserialize("{object}", pipeline_response.http_response)
@@ -2471,11 +2330,7 @@ class JobsOperations:
2471
2330
 
2472
2331
  @overload
2473
2332
  def patch_metadata(
2474
- self,
2475
- body: Dict[str, Dict[str, Any]],
2476
- *,
2477
- content_type: str = "application/json",
2478
- **kwargs: Any,
2333
+ self, body: Dict[str, Dict[str, Any]], *, content_type: str = "application/json", **kwargs: Any
2479
2334
  ) -> None:
2480
2335
  """Patch Metadata.
2481
2336
 
@@ -2492,9 +2347,7 @@ class JobsOperations:
2492
2347
  """
2493
2348
 
2494
2349
  @overload
2495
- def patch_metadata(
2496
- self, body: IO[bytes], *, content_type: str = "application/json", **kwargs: Any
2497
- ) -> None:
2350
+ def patch_metadata(self, body: IO[bytes], *, content_type: str = "application/json", **kwargs: Any) -> None:
2498
2351
  """Patch Metadata.
2499
2352
 
2500
2353
  Patch Metadata.
@@ -2534,9 +2387,7 @@ class JobsOperations:
2534
2387
  _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
2535
2388
  _params = kwargs.pop("params", {}) or {}
2536
2389
 
2537
- content_type: Optional[str] = kwargs.pop(
2538
- "content_type", _headers.pop("Content-Type", None)
2539
- )
2390
+ content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
2540
2391
  cls: ClsType[None] = kwargs.pop("cls", None)
2541
2392
 
2542
2393
  content_type = content_type or "application/json"
@@ -2557,18 +2408,14 @@ class JobsOperations:
2557
2408
  _request.url = self._client.format_url(_request.url)
2558
2409
 
2559
2410
  _stream = False
2560
- pipeline_response: PipelineResponse = (
2561
- self._client._pipeline.run( # pylint: disable=protected-access
2562
- _request, stream=_stream, **kwargs
2563
- )
2411
+ pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
2412
+ _request, stream=_stream, **kwargs
2564
2413
  )
2565
2414
 
2566
2415
  response = pipeline_response.http_response
2567
2416
 
2568
2417
  if response.status_code not in [204]:
2569
- map_error(
2570
- status_code=response.status_code, response=response, error_map=error_map
2571
- )
2418
+ map_error(status_code=response.status_code, response=response, error_map=error_map)
2572
2419
  raise HttpResponseError(response=response)
2573
2420
 
2574
2421
  if cls:
@@ -2582,7 +2429,7 @@ class JobsOperations:
2582
2429
  page: int = 1,
2583
2430
  per_page: int = 100,
2584
2431
  content_type: str = "application/json",
2585
- **kwargs: Any,
2432
+ **kwargs: Any
2586
2433
  ) -> List[Dict[str, Any]]:
2587
2434
  """Search.
2588
2435
 
@@ -2612,7 +2459,7 @@ class JobsOperations:
2612
2459
  page: int = 1,
2613
2460
  per_page: int = 100,
2614
2461
  content_type: str = "application/json",
2615
- **kwargs: Any,
2462
+ **kwargs: Any
2616
2463
  ) -> List[Dict[str, Any]]:
2617
2464
  """Search.
2618
2465
 
@@ -2641,7 +2488,7 @@ class JobsOperations:
2641
2488
  *,
2642
2489
  page: int = 1,
2643
2490
  per_page: int = 100,
2644
- **kwargs: Any,
2491
+ **kwargs: Any
2645
2492
  ) -> List[Dict[str, Any]]:
2646
2493
  """Search.
2647
2494
 
@@ -2670,9 +2517,7 @@ class JobsOperations:
2670
2517
  _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
2671
2518
  _params = kwargs.pop("params", {}) or {}
2672
2519
 
2673
- content_type: Optional[str] = kwargs.pop(
2674
- "content_type", _headers.pop("Content-Type", None)
2675
- )
2520
+ content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
2676
2521
  cls: ClsType[List[Dict[str, Any]]] = kwargs.pop("cls", None)
2677
2522
 
2678
2523
  content_type = content_type or "application/json"
@@ -2698,25 +2543,19 @@ class JobsOperations:
2698
2543
  _request.url = self._client.format_url(_request.url)
2699
2544
 
2700
2545
  _stream = False
2701
- pipeline_response: PipelineResponse = (
2702
- self._client._pipeline.run( # pylint: disable=protected-access
2703
- _request, stream=_stream, **kwargs
2704
- )
2546
+ pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
2547
+ _request, stream=_stream, **kwargs
2705
2548
  )
2706
2549
 
2707
2550
  response = pipeline_response.http_response
2708
2551
 
2709
2552
  if response.status_code not in [200, 206]:
2710
- map_error(
2711
- status_code=response.status_code, response=response, error_map=error_map
2712
- )
2553
+ map_error(status_code=response.status_code, response=response, error_map=error_map)
2713
2554
  raise HttpResponseError(response=response)
2714
2555
 
2715
2556
  response_headers = {}
2716
2557
  if response.status_code == 206:
2717
- response_headers["Content-Range"] = self._deserialize(
2718
- "str", response.headers.get("Content-Range")
2719
- )
2558
+ response_headers["Content-Range"] = self._deserialize("str", response.headers.get("Content-Range"))
2720
2559
 
2721
2560
  deserialized = self._deserialize("[{object}]", pipeline_response.http_response)
2722
2561
 
@@ -2726,13 +2565,7 @@ class JobsOperations:
2726
2565
  return deserialized # type: ignore
2727
2566
 
2728
2567
  @overload
2729
- def summary(
2730
- self,
2731
- body: _models.JobSummaryParams,
2732
- *,
2733
- content_type: str = "application/json",
2734
- **kwargs: Any,
2735
- ) -> Any:
2568
+ def summary(self, body: _models.JobSummaryParams, *, content_type: str = "application/json", **kwargs: Any) -> Any:
2736
2569
  """Summary.
2737
2570
 
2738
2571
  Show information suitable for plotting.
@@ -2748,9 +2581,7 @@ class JobsOperations:
2748
2581
  """
2749
2582
 
2750
2583
  @overload
2751
- def summary(
2752
- self, body: IO[bytes], *, content_type: str = "application/json", **kwargs: Any
2753
- ) -> Any:
2584
+ def summary(self, body: IO[bytes], *, content_type: str = "application/json", **kwargs: Any) -> Any:
2754
2585
  """Summary.
2755
2586
 
2756
2587
  Show information suitable for plotting.
@@ -2766,9 +2597,7 @@ class JobsOperations:
2766
2597
  """
2767
2598
 
2768
2599
  @distributed_trace
2769
- def summary(
2770
- self, body: Union[_models.JobSummaryParams, IO[bytes]], **kwargs: Any
2771
- ) -> Any:
2600
+ def summary(self, body: Union[_models.JobSummaryParams, IO[bytes]], **kwargs: Any) -> Any:
2772
2601
  """Summary.
2773
2602
 
2774
2603
  Show information suitable for plotting.
@@ -2790,9 +2619,7 @@ class JobsOperations:
2790
2619
  _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
2791
2620
  _params = kwargs.pop("params", {}) or {}
2792
2621
 
2793
- content_type: Optional[str] = kwargs.pop(
2794
- "content_type", _headers.pop("Content-Type", None)
2795
- )
2622
+ content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
2796
2623
  cls: ClsType[Any] = kwargs.pop("cls", None)
2797
2624
 
2798
2625
  content_type = content_type or "application/json"
@@ -2813,18 +2640,14 @@ class JobsOperations:
2813
2640
  _request.url = self._client.format_url(_request.url)
2814
2641
 
2815
2642
  _stream = False
2816
- pipeline_response: PipelineResponse = (
2817
- self._client._pipeline.run( # pylint: disable=protected-access
2818
- _request, stream=_stream, **kwargs
2819
- )
2643
+ pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
2644
+ _request, stream=_stream, **kwargs
2820
2645
  )
2821
2646
 
2822
2647
  response = pipeline_response.http_response
2823
2648
 
2824
2649
  if response.status_code not in [200]:
2825
- map_error(
2826
- status_code=response.status_code, response=response, error_map=error_map
2827
- )
2650
+ map_error(status_code=response.status_code, response=response, error_map=error_map)
2828
2651
  raise HttpResponseError(response=response)
2829
2652
 
2830
2653
  deserialized = self._deserialize("object", pipeline_response.http_response)
@@ -2871,9 +2694,7 @@ class JobsOperations:
2871
2694
  """
2872
2695
 
2873
2696
  @distributed_trace
2874
- def submit_jdl_jobs(
2875
- self, body: Union[List[str], IO[bytes]], **kwargs: Any
2876
- ) -> List[_models.InsertedJob]:
2697
+ def submit_jdl_jobs(self, body: Union[List[str], IO[bytes]], **kwargs: Any) -> List[_models.InsertedJob]:
2877
2698
  """Submit Jdl Jobs.
2878
2699
 
2879
2700
  Submit a list of jobs in JDL format.
@@ -2895,9 +2716,7 @@ class JobsOperations:
2895
2716
  _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
2896
2717
  _params = kwargs.pop("params", {}) or {}
2897
2718
 
2898
- content_type: Optional[str] = kwargs.pop(
2899
- "content_type", _headers.pop("Content-Type", None)
2900
- )
2719
+ content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
2901
2720
  cls: ClsType[List[_models.InsertedJob]] = kwargs.pop("cls", None)
2902
2721
 
2903
2722
  content_type = content_type or "application/json"
@@ -2918,23 +2737,17 @@ class JobsOperations:
2918
2737
  _request.url = self._client.format_url(_request.url)
2919
2738
 
2920
2739
  _stream = False
2921
- pipeline_response: PipelineResponse = (
2922
- self._client._pipeline.run( # pylint: disable=protected-access
2923
- _request, stream=_stream, **kwargs
2924
- )
2740
+ pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
2741
+ _request, stream=_stream, **kwargs
2925
2742
  )
2926
2743
 
2927
2744
  response = pipeline_response.http_response
2928
2745
 
2929
2746
  if response.status_code not in [200]:
2930
- map_error(
2931
- status_code=response.status_code, response=response, error_map=error_map
2932
- )
2747
+ map_error(status_code=response.status_code, response=response, error_map=error_map)
2933
2748
  raise HttpResponseError(response=response)
2934
2749
 
2935
- deserialized = self._deserialize(
2936
- "[InsertedJob]", pipeline_response.http_response
2937
- )
2750
+ deserialized = self._deserialize("[InsertedJob]", pipeline_response.http_response)
2938
2751
 
2939
2752
  if cls:
2940
2753
  return cls(pipeline_response, deserialized, {}) # type: ignore