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.
- diracx/client/_generated/_client.py +10 -33
- diracx/client/_generated/_configuration.py +6 -18
- diracx/client/_generated/_utils/serialization.py +70 -224
- diracx/client/_generated/_utils/utils.py +3 -9
- diracx/client/_generated/aio/_client.py +8 -29
- diracx/client/_generated/aio/_configuration.py +7 -21
- diracx/client/_generated/aio/_patch.py +1 -3
- diracx/client/_generated/aio/operations/_operations.py +193 -374
- diracx/client/_generated/models/__init__.py +1 -2
- diracx/client/_generated/models/_models.py +30 -90
- diracx/client/_generated/operations/_operations.py +249 -501
- {diracx_client-0.0.1a45.dist-info → diracx_client-0.0.1a46.dist-info}/METADATA +1 -1
- {diracx_client-0.0.1a45.dist-info → diracx_client-0.0.1a46.dist-info}/RECORD +14 -14
- {diracx_client-0.0.1a45.dist-info → diracx_client-0.0.1a46.dist-info}/WHEEL +0 -0
@@ -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")
|
@@ -67,9 +63,7 @@ def build_well_known_get_jwks_request(**kwargs: Any) -> HttpRequest:
|
|
67
63
|
return HttpRequest(method="GET", url=_url, headers=_headers, **kwargs)
|
68
64
|
|
69
65
|
|
70
|
-
def build_well_known_get_installation_metadata_request(
|
71
|
-
**kwargs: Any,
|
72
|
-
) -> HttpRequest: # pylint: disable=name-too-long
|
66
|
+
def build_well_known_get_installation_metadata_request(**kwargs: Any) -> HttpRequest: # pylint: disable=name-too-long
|
73
67
|
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
74
68
|
|
75
69
|
accept = _headers.pop("Accept", "application/json")
|
@@ -83,9 +77,21 @@ def build_well_known_get_installation_metadata_request(
|
|
83
77
|
return HttpRequest(method="GET", url=_url, headers=_headers, **kwargs)
|
84
78
|
|
85
79
|
|
86
|
-
def
|
87
|
-
|
88
|
-
|
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:
|
89
95
|
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
90
96
|
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
91
97
|
|
@@ -101,9 +107,7 @@ def build_auth_initiate_device_flow_request(
|
|
101
107
|
# Construct headers
|
102
108
|
_headers["Accept"] = _SERIALIZER.header("accept", accept, "str")
|
103
109
|
|
104
|
-
return HttpRequest(
|
105
|
-
method="POST", url=_url, params=_params, headers=_headers, **kwargs
|
106
|
-
)
|
110
|
+
return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs)
|
107
111
|
|
108
112
|
|
109
113
|
def build_auth_do_device_flow_request(*, user_code: str, **kwargs: Any) -> HttpRequest:
|
@@ -121,14 +125,10 @@ def build_auth_do_device_flow_request(*, user_code: str, **kwargs: Any) -> HttpR
|
|
121
125
|
# Construct headers
|
122
126
|
_headers["Accept"] = _SERIALIZER.header("accept", accept, "str")
|
123
127
|
|
124
|
-
return HttpRequest(
|
125
|
-
method="GET", url=_url, params=_params, headers=_headers, **kwargs
|
126
|
-
)
|
128
|
+
return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs)
|
127
129
|
|
128
130
|
|
129
|
-
def build_auth_finish_device_flow_request(
|
130
|
-
*, code: str, state: str, **kwargs: Any
|
131
|
-
) -> HttpRequest:
|
131
|
+
def build_auth_finish_device_flow_request(*, code: str, state: str, **kwargs: Any) -> HttpRequest:
|
132
132
|
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
133
133
|
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
134
134
|
|
@@ -144,9 +144,7 @@ def build_auth_finish_device_flow_request(
|
|
144
144
|
# Construct headers
|
145
145
|
_headers["Accept"] = _SERIALIZER.header("accept", accept, "str")
|
146
146
|
|
147
|
-
return HttpRequest(
|
148
|
-
method="GET", url=_url, params=_params, headers=_headers, **kwargs
|
149
|
-
)
|
147
|
+
return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs)
|
150
148
|
|
151
149
|
|
152
150
|
def build_auth_finished_request(**kwargs: Any) -> HttpRequest:
|
@@ -195,9 +193,7 @@ def build_auth_revoke_refresh_token_by_refresh_token_request( # pylint: disable
|
|
195
193
|
# Construct headers
|
196
194
|
_headers["Accept"] = _SERIALIZER.header("accept", accept, "str")
|
197
195
|
|
198
|
-
return HttpRequest(
|
199
|
-
method="POST", url=_url, params=_params, headers=_headers, **kwargs
|
200
|
-
)
|
196
|
+
return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs)
|
201
197
|
|
202
198
|
|
203
199
|
def build_auth_revoke_refresh_token_by_jti_request( # pylint: disable=name-too-long
|
@@ -244,7 +240,7 @@ def build_auth_initiate_authorization_flow_request( # pylint: disable=name-too-
|
|
244
240
|
redirect_uri: str,
|
245
241
|
scope: str,
|
246
242
|
state: str,
|
247
|
-
**kwargs: Any
|
243
|
+
**kwargs: Any
|
248
244
|
) -> HttpRequest:
|
249
245
|
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
250
246
|
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
@@ -256,12 +252,8 @@ def build_auth_initiate_authorization_flow_request( # pylint: disable=name-too-
|
|
256
252
|
|
257
253
|
# Construct parameters
|
258
254
|
_params["response_type"] = _SERIALIZER.query("response_type", response_type, "str")
|
259
|
-
_params["code_challenge"] = _SERIALIZER.query(
|
260
|
-
|
261
|
-
)
|
262
|
-
_params["code_challenge_method"] = _SERIALIZER.query(
|
263
|
-
"code_challenge_method", code_challenge_method, "str"
|
264
|
-
)
|
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")
|
265
257
|
_params["client_id"] = _SERIALIZER.query("client_id", client_id, "str")
|
266
258
|
_params["redirect_uri"] = _SERIALIZER.query("redirect_uri", redirect_uri, "str")
|
267
259
|
_params["scope"] = _SERIALIZER.query("scope", scope, "str")
|
@@ -270,9 +262,7 @@ def build_auth_initiate_authorization_flow_request( # pylint: disable=name-too-
|
|
270
262
|
# Construct headers
|
271
263
|
_headers["Accept"] = _SERIALIZER.header("accept", accept, "str")
|
272
264
|
|
273
|
-
return HttpRequest(
|
274
|
-
method="GET", url=_url, params=_params, headers=_headers, **kwargs
|
275
|
-
)
|
265
|
+
return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs)
|
276
266
|
|
277
267
|
|
278
268
|
def build_auth_complete_authorization_flow_request( # pylint: disable=name-too-long
|
@@ -293,9 +283,7 @@ def build_auth_complete_authorization_flow_request( # pylint: disable=name-too-
|
|
293
283
|
# Construct headers
|
294
284
|
_headers["Accept"] = _SERIALIZER.header("accept", accept, "str")
|
295
285
|
|
296
|
-
return HttpRequest(
|
297
|
-
method="GET", url=_url, params=_params, headers=_headers, **kwargs
|
298
|
-
)
|
286
|
+
return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs)
|
299
287
|
|
300
288
|
|
301
289
|
def build_config_serve_config_request(
|
@@ -303,7 +291,7 @@ def build_config_serve_config_request(
|
|
303
291
|
if_modified_since: Optional[str] = None,
|
304
292
|
etag: Optional[str] = None,
|
305
293
|
match_condition: Optional[MatchConditions] = None,
|
306
|
-
**kwargs: Any
|
294
|
+
**kwargs: Any
|
307
295
|
) -> HttpRequest:
|
308
296
|
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
309
297
|
|
@@ -314,30 +302,22 @@ def build_config_serve_config_request(
|
|
314
302
|
|
315
303
|
# Construct headers
|
316
304
|
if if_modified_since is not None:
|
317
|
-
_headers["if-modified-since"] = _SERIALIZER.header(
|
318
|
-
"if_modified_since", if_modified_since, "str"
|
319
|
-
)
|
305
|
+
_headers["if-modified-since"] = _SERIALIZER.header("if_modified_since", if_modified_since, "str")
|
320
306
|
_headers["Accept"] = _SERIALIZER.header("accept", accept, "str")
|
321
307
|
if_match = prep_if_match(etag, match_condition)
|
322
308
|
if if_match is not None:
|
323
309
|
_headers["If-Match"] = _SERIALIZER.header("if_match", if_match, "str")
|
324
310
|
if_none_match = prep_if_none_match(etag, match_condition)
|
325
311
|
if if_none_match is not None:
|
326
|
-
_headers["If-None-Match"] = _SERIALIZER.header(
|
327
|
-
"if_none_match", if_none_match, "str"
|
328
|
-
)
|
312
|
+
_headers["If-None-Match"] = _SERIALIZER.header("if_none_match", if_none_match, "str")
|
329
313
|
|
330
314
|
return HttpRequest(method="GET", url=_url, headers=_headers, **kwargs)
|
331
315
|
|
332
316
|
|
333
|
-
def build_jobs_initiate_sandbox_upload_request(
|
334
|
-
**kwargs: Any,
|
335
|
-
) -> HttpRequest: # pylint: disable=name-too-long
|
317
|
+
def build_jobs_initiate_sandbox_upload_request(**kwargs: Any) -> HttpRequest: # pylint: disable=name-too-long
|
336
318
|
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
337
319
|
|
338
|
-
content_type: Optional[str] = kwargs.pop(
|
339
|
-
"content_type", _headers.pop("Content-Type", None)
|
340
|
-
)
|
320
|
+
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
341
321
|
accept = _headers.pop("Accept", "application/json")
|
342
322
|
|
343
323
|
# Construct URL
|
@@ -345,9 +325,7 @@ def build_jobs_initiate_sandbox_upload_request(
|
|
345
325
|
|
346
326
|
# Construct headers
|
347
327
|
if content_type is not None:
|
348
|
-
_headers["Content-Type"] = _SERIALIZER.header(
|
349
|
-
"content_type", content_type, "str"
|
350
|
-
)
|
328
|
+
_headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str")
|
351
329
|
_headers["Accept"] = _SERIALIZER.header("accept", accept, "str")
|
352
330
|
|
353
331
|
return HttpRequest(method="POST", url=_url, headers=_headers, **kwargs)
|
@@ -374,9 +352,7 @@ def build_jobs_get_sandbox_file_request(*, pfn: str, **kwargs: Any) -> HttpReque
|
|
374
352
|
# Construct headers
|
375
353
|
_headers["Accept"] = _SERIALIZER.header("accept", accept, "str")
|
376
354
|
|
377
|
-
return HttpRequest(
|
378
|
-
method="GET", url=_url, params=_params, headers=_headers, **kwargs
|
379
|
-
)
|
355
|
+
return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs)
|
380
356
|
|
381
357
|
|
382
358
|
def build_jobs_unassign_bulk_jobs_sandboxes_request( # pylint: disable=name-too-long
|
@@ -396,9 +372,7 @@ def build_jobs_unassign_bulk_jobs_sandboxes_request( # pylint: disable=name-too
|
|
396
372
|
# Construct headers
|
397
373
|
_headers["Accept"] = _SERIALIZER.header("accept", accept, "str")
|
398
374
|
|
399
|
-
return HttpRequest(
|
400
|
-
method="DELETE", url=_url, params=_params, headers=_headers, **kwargs
|
401
|
-
)
|
375
|
+
return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs)
|
402
376
|
|
403
377
|
|
404
378
|
def build_jobs_get_job_sandboxes_request(job_id: int, **kwargs: Any) -> HttpRequest:
|
@@ -463,14 +437,10 @@ def build_jobs_get_job_sandbox_request(
|
|
463
437
|
return HttpRequest(method="GET", url=_url, headers=_headers, **kwargs)
|
464
438
|
|
465
439
|
|
466
|
-
def build_jobs_assign_sandbox_to_job_request(
|
467
|
-
job_id: int, *, content: str, **kwargs: Any
|
468
|
-
) -> HttpRequest:
|
440
|
+
def build_jobs_assign_sandbox_to_job_request(job_id: int, *, content: str, **kwargs: Any) -> HttpRequest:
|
469
441
|
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
470
442
|
|
471
|
-
content_type: Optional[str] = kwargs.pop(
|
472
|
-
"content_type", _headers.pop("Content-Type", None)
|
473
|
-
)
|
443
|
+
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
474
444
|
accept = _headers.pop("Accept", "application/json")
|
475
445
|
|
476
446
|
# Construct URL
|
@@ -483,14 +453,10 @@ def build_jobs_assign_sandbox_to_job_request(
|
|
483
453
|
|
484
454
|
# Construct headers
|
485
455
|
if content_type is not None:
|
486
|
-
_headers["Content-Type"] = _SERIALIZER.header(
|
487
|
-
"content_type", content_type, "str"
|
488
|
-
)
|
456
|
+
_headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str")
|
489
457
|
_headers["Accept"] = _SERIALIZER.header("accept", accept, "str")
|
490
458
|
|
491
|
-
return HttpRequest(
|
492
|
-
method="PATCH", url=_url, headers=_headers, content=content, **kwargs
|
493
|
-
)
|
459
|
+
return HttpRequest(method="PATCH", url=_url, headers=_headers, content=content, **kwargs)
|
494
460
|
|
495
461
|
|
496
462
|
def build_jobs_remove_jobs_request(*, job_ids: List[int], **kwargs: Any) -> HttpRequest:
|
@@ -508,20 +474,14 @@ def build_jobs_remove_jobs_request(*, job_ids: List[int], **kwargs: Any) -> Http
|
|
508
474
|
# Construct headers
|
509
475
|
_headers["Accept"] = _SERIALIZER.header("accept", accept, "str")
|
510
476
|
|
511
|
-
return HttpRequest(
|
512
|
-
method="DELETE", url=_url, params=_params, headers=_headers, **kwargs
|
513
|
-
)
|
477
|
+
return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs)
|
514
478
|
|
515
479
|
|
516
|
-
def build_jobs_set_job_statuses_request(
|
517
|
-
*, force: bool = False, **kwargs: Any
|
518
|
-
) -> HttpRequest:
|
480
|
+
def build_jobs_set_job_statuses_request(*, force: bool = False, **kwargs: Any) -> HttpRequest:
|
519
481
|
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
520
482
|
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
521
483
|
|
522
|
-
content_type: Optional[str] = kwargs.pop(
|
523
|
-
"content_type", _headers.pop("Content-Type", None)
|
524
|
-
)
|
484
|
+
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
525
485
|
accept = _headers.pop("Accept", "application/json")
|
526
486
|
|
527
487
|
# Construct URL
|
@@ -533,22 +493,16 @@ def build_jobs_set_job_statuses_request(
|
|
533
493
|
|
534
494
|
# Construct headers
|
535
495
|
if content_type is not None:
|
536
|
-
_headers["Content-Type"] = _SERIALIZER.header(
|
537
|
-
"content_type", content_type, "str"
|
538
|
-
)
|
496
|
+
_headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str")
|
539
497
|
_headers["Accept"] = _SERIALIZER.header("accept", accept, "str")
|
540
498
|
|
541
|
-
return HttpRequest(
|
542
|
-
method="PATCH", url=_url, params=_params, headers=_headers, **kwargs
|
543
|
-
)
|
499
|
+
return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs)
|
544
500
|
|
545
501
|
|
546
502
|
def build_jobs_add_heartbeat_request(**kwargs: Any) -> HttpRequest:
|
547
503
|
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
548
504
|
|
549
|
-
content_type: Optional[str] = kwargs.pop(
|
550
|
-
"content_type", _headers.pop("Content-Type", None)
|
551
|
-
)
|
505
|
+
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
552
506
|
accept = _headers.pop("Accept", "application/json")
|
553
507
|
|
554
508
|
# Construct URL
|
@@ -556,17 +510,13 @@ def build_jobs_add_heartbeat_request(**kwargs: Any) -> HttpRequest:
|
|
556
510
|
|
557
511
|
# Construct headers
|
558
512
|
if content_type is not None:
|
559
|
-
_headers["Content-Type"] = _SERIALIZER.header(
|
560
|
-
"content_type", content_type, "str"
|
561
|
-
)
|
513
|
+
_headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str")
|
562
514
|
_headers["Accept"] = _SERIALIZER.header("accept", accept, "str")
|
563
515
|
|
564
516
|
return HttpRequest(method="PATCH", url=_url, headers=_headers, **kwargs)
|
565
517
|
|
566
518
|
|
567
|
-
def build_jobs_reschedule_jobs_request(
|
568
|
-
*, job_ids: List[int], reset_jobs: bool = False, **kwargs: Any
|
569
|
-
) -> HttpRequest:
|
519
|
+
def build_jobs_reschedule_jobs_request(*, job_ids: List[int], reset_jobs: bool = False, **kwargs: Any) -> HttpRequest:
|
570
520
|
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
571
521
|
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
572
522
|
|
@@ -583,38 +533,28 @@ def build_jobs_reschedule_jobs_request(
|
|
583
533
|
# Construct headers
|
584
534
|
_headers["Accept"] = _SERIALIZER.header("accept", accept, "str")
|
585
535
|
|
586
|
-
return HttpRequest(
|
587
|
-
method="POST", url=_url, params=_params, headers=_headers, **kwargs
|
588
|
-
)
|
536
|
+
return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs)
|
589
537
|
|
590
538
|
|
591
539
|
def build_jobs_patch_metadata_request(**kwargs: Any) -> HttpRequest:
|
592
540
|
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
593
541
|
|
594
|
-
content_type: Optional[str] = kwargs.pop(
|
595
|
-
"content_type", _headers.pop("Content-Type", None)
|
596
|
-
)
|
542
|
+
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
597
543
|
# Construct URL
|
598
544
|
_url = "/api/jobs/metadata"
|
599
545
|
|
600
546
|
# Construct headers
|
601
547
|
if content_type is not None:
|
602
|
-
_headers["Content-Type"] = _SERIALIZER.header(
|
603
|
-
"content_type", content_type, "str"
|
604
|
-
)
|
548
|
+
_headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str")
|
605
549
|
|
606
550
|
return HttpRequest(method="PATCH", url=_url, headers=_headers, **kwargs)
|
607
551
|
|
608
552
|
|
609
|
-
def build_jobs_search_request(
|
610
|
-
*, page: int = 1, per_page: int = 100, **kwargs: Any
|
611
|
-
) -> HttpRequest:
|
553
|
+
def build_jobs_search_request(*, page: int = 1, per_page: int = 100, **kwargs: Any) -> HttpRequest:
|
612
554
|
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
613
555
|
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
614
556
|
|
615
|
-
content_type: Optional[str] = kwargs.pop(
|
616
|
-
"content_type", _headers.pop("Content-Type", None)
|
617
|
-
)
|
557
|
+
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
618
558
|
accept = _headers.pop("Accept", "application/json")
|
619
559
|
|
620
560
|
# Construct URL
|
@@ -628,22 +568,16 @@ def build_jobs_search_request(
|
|
628
568
|
|
629
569
|
# Construct headers
|
630
570
|
if content_type is not None:
|
631
|
-
_headers["Content-Type"] = _SERIALIZER.header(
|
632
|
-
"content_type", content_type, "str"
|
633
|
-
)
|
571
|
+
_headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str")
|
634
572
|
_headers["Accept"] = _SERIALIZER.header("accept", accept, "str")
|
635
573
|
|
636
|
-
return HttpRequest(
|
637
|
-
method="POST", url=_url, params=_params, headers=_headers, **kwargs
|
638
|
-
)
|
574
|
+
return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs)
|
639
575
|
|
640
576
|
|
641
577
|
def build_jobs_summary_request(**kwargs: Any) -> HttpRequest:
|
642
578
|
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
643
579
|
|
644
|
-
content_type: Optional[str] = kwargs.pop(
|
645
|
-
"content_type", _headers.pop("Content-Type", None)
|
646
|
-
)
|
580
|
+
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
647
581
|
accept = _headers.pop("Accept", "application/json")
|
648
582
|
|
649
583
|
# Construct URL
|
@@ -651,9 +585,7 @@ def build_jobs_summary_request(**kwargs: Any) -> HttpRequest:
|
|
651
585
|
|
652
586
|
# Construct headers
|
653
587
|
if content_type is not None:
|
654
|
-
_headers["Content-Type"] = _SERIALIZER.header(
|
655
|
-
"content_type", content_type, "str"
|
656
|
-
)
|
588
|
+
_headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str")
|
657
589
|
_headers["Accept"] = _SERIALIZER.header("accept", accept, "str")
|
658
590
|
|
659
591
|
return HttpRequest(method="POST", url=_url, headers=_headers, **kwargs)
|
@@ -662,9 +594,7 @@ def build_jobs_summary_request(**kwargs: Any) -> HttpRequest:
|
|
662
594
|
def build_jobs_submit_jdl_jobs_request(**kwargs: Any) -> HttpRequest:
|
663
595
|
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
664
596
|
|
665
|
-
content_type: Optional[str] = kwargs.pop(
|
666
|
-
"content_type", _headers.pop("Content-Type", None)
|
667
|
-
)
|
597
|
+
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
668
598
|
accept = _headers.pop("Accept", "application/json")
|
669
599
|
|
670
600
|
# Construct URL
|
@@ -672,9 +602,7 @@ def build_jobs_submit_jdl_jobs_request(**kwargs: Any) -> HttpRequest:
|
|
672
602
|
|
673
603
|
# Construct headers
|
674
604
|
if content_type is not None:
|
675
|
-
_headers["Content-Type"] = _SERIALIZER.header(
|
676
|
-
"content_type", content_type, "str"
|
677
|
-
)
|
605
|
+
_headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str")
|
678
606
|
_headers["Accept"] = _SERIALIZER.header("accept", accept, "str")
|
679
607
|
|
680
608
|
return HttpRequest(method="POST", url=_url, headers=_headers, **kwargs)
|
@@ -694,18 +622,10 @@ class WellKnownOperations:
|
|
694
622
|
|
695
623
|
def __init__(self, *args, **kwargs) -> None:
|
696
624
|
input_args = list(args)
|
697
|
-
self._client: PipelineClient = (
|
698
|
-
|
699
|
-
)
|
700
|
-
self.
|
701
|
-
input_args.pop(0) if input_args else kwargs.pop("config")
|
702
|
-
)
|
703
|
-
self._serialize: Serializer = (
|
704
|
-
input_args.pop(0) if input_args else kwargs.pop("serializer")
|
705
|
-
)
|
706
|
-
self._deserialize: Deserializer = (
|
707
|
-
input_args.pop(0) if input_args else kwargs.pop("deserializer")
|
708
|
-
)
|
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")
|
709
629
|
|
710
630
|
@distributed_trace
|
711
631
|
def get_openid_configuration(self, **kwargs: Any) -> _models.OpenIDConfiguration:
|
@@ -737,23 +657,17 @@ class WellKnownOperations:
|
|
737
657
|
_request.url = self._client.format_url(_request.url)
|
738
658
|
|
739
659
|
_stream = False
|
740
|
-
pipeline_response: PipelineResponse = (
|
741
|
-
|
742
|
-
_request, stream=_stream, **kwargs
|
743
|
-
)
|
660
|
+
pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
|
661
|
+
_request, stream=_stream, **kwargs
|
744
662
|
)
|
745
663
|
|
746
664
|
response = pipeline_response.http_response
|
747
665
|
|
748
666
|
if response.status_code not in [200]:
|
749
|
-
map_error(
|
750
|
-
status_code=response.status_code, response=response, error_map=error_map
|
751
|
-
)
|
667
|
+
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
752
668
|
raise HttpResponseError(response=response)
|
753
669
|
|
754
|
-
deserialized = self._deserialize(
|
755
|
-
"OpenIDConfiguration", pipeline_response.http_response
|
756
|
-
)
|
670
|
+
deserialized = self._deserialize("OpenIDConfiguration", pipeline_response.http_response)
|
757
671
|
|
758
672
|
if cls:
|
759
673
|
return cls(pipeline_response, deserialized, {}) # type: ignore
|
@@ -790,18 +704,14 @@ class WellKnownOperations:
|
|
790
704
|
_request.url = self._client.format_url(_request.url)
|
791
705
|
|
792
706
|
_stream = False
|
793
|
-
pipeline_response: PipelineResponse = (
|
794
|
-
|
795
|
-
_request, stream=_stream, **kwargs
|
796
|
-
)
|
707
|
+
pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
|
708
|
+
_request, stream=_stream, **kwargs
|
797
709
|
)
|
798
710
|
|
799
711
|
response = pipeline_response.http_response
|
800
712
|
|
801
713
|
if response.status_code not in [200]:
|
802
|
-
map_error(
|
803
|
-
status_code=response.status_code, response=response, error_map=error_map
|
804
|
-
)
|
714
|
+
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
805
715
|
raise HttpResponseError(response=response)
|
806
716
|
|
807
717
|
deserialized = self._deserialize("{object}", pipeline_response.http_response)
|
@@ -841,18 +751,14 @@ class WellKnownOperations:
|
|
841
751
|
_request.url = self._client.format_url(_request.url)
|
842
752
|
|
843
753
|
_stream = False
|
844
|
-
pipeline_response: PipelineResponse = (
|
845
|
-
|
846
|
-
_request, stream=_stream, **kwargs
|
847
|
-
)
|
754
|
+
pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
|
755
|
+
_request, stream=_stream, **kwargs
|
848
756
|
)
|
849
757
|
|
850
758
|
response = pipeline_response.http_response
|
851
759
|
|
852
760
|
if response.status_code not in [200]:
|
853
|
-
map_error(
|
854
|
-
status_code=response.status_code, response=response, error_map=error_map
|
855
|
-
)
|
761
|
+
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
856
762
|
raise HttpResponseError(response=response)
|
857
763
|
|
858
764
|
deserialized = self._deserialize("Metadata", pipeline_response.http_response)
|
@@ -862,6 +768,53 @@ class WellKnownOperations:
|
|
862
768
|
|
863
769
|
return deserialized # type: ignore
|
864
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
|
+
|
865
818
|
|
866
819
|
class AuthOperations: # pylint: disable=abstract-class-instantiated
|
867
820
|
"""
|
@@ -877,18 +830,10 @@ class AuthOperations: # pylint: disable=abstract-class-instantiated
|
|
877
830
|
|
878
831
|
def __init__(self, *args, **kwargs) -> None:
|
879
832
|
input_args = list(args)
|
880
|
-
self._client: PipelineClient = (
|
881
|
-
|
882
|
-
)
|
883
|
-
self.
|
884
|
-
input_args.pop(0) if input_args else kwargs.pop("config")
|
885
|
-
)
|
886
|
-
self._serialize: Serializer = (
|
887
|
-
input_args.pop(0) if input_args else kwargs.pop("serializer")
|
888
|
-
)
|
889
|
-
self._deserialize: Deserializer = (
|
890
|
-
input_args.pop(0) if input_args else kwargs.pop("deserializer")
|
891
|
-
)
|
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")
|
892
837
|
|
893
838
|
raise_if_not_implemented(
|
894
839
|
self.__class__,
|
@@ -898,9 +843,7 @@ class AuthOperations: # pylint: disable=abstract-class-instantiated
|
|
898
843
|
)
|
899
844
|
|
900
845
|
@distributed_trace
|
901
|
-
def initiate_device_flow(
|
902
|
-
self, *, client_id: str, scope: str, **kwargs: Any
|
903
|
-
) -> _models.InitiateDeviceFlowResponse:
|
846
|
+
def initiate_device_flow(self, *, client_id: str, scope: str, **kwargs: Any) -> _models.InitiateDeviceFlowResponse:
|
904
847
|
"""Initiate Device Flow.
|
905
848
|
|
906
849
|
Initiate the device flow against DIRAC authorization Server.
|
@@ -957,23 +900,17 @@ class AuthOperations: # pylint: disable=abstract-class-instantiated
|
|
957
900
|
_request.url = self._client.format_url(_request.url)
|
958
901
|
|
959
902
|
_stream = False
|
960
|
-
pipeline_response: PipelineResponse = (
|
961
|
-
|
962
|
-
_request, stream=_stream, **kwargs
|
963
|
-
)
|
903
|
+
pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
|
904
|
+
_request, stream=_stream, **kwargs
|
964
905
|
)
|
965
906
|
|
966
907
|
response = pipeline_response.http_response
|
967
908
|
|
968
909
|
if response.status_code not in [200]:
|
969
|
-
map_error(
|
970
|
-
status_code=response.status_code, response=response, error_map=error_map
|
971
|
-
)
|
910
|
+
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
972
911
|
raise HttpResponseError(response=response)
|
973
912
|
|
974
|
-
deserialized = self._deserialize(
|
975
|
-
"InitiateDeviceFlowResponse", pipeline_response.http_response
|
976
|
-
)
|
913
|
+
deserialized = self._deserialize("InitiateDeviceFlowResponse", pipeline_response.http_response)
|
977
914
|
|
978
915
|
if cls:
|
979
916
|
return cls(pipeline_response, deserialized, {}) # type: ignore
|
@@ -1020,18 +957,14 @@ class AuthOperations: # pylint: disable=abstract-class-instantiated
|
|
1020
957
|
_request.url = self._client.format_url(_request.url)
|
1021
958
|
|
1022
959
|
_stream = False
|
1023
|
-
pipeline_response: PipelineResponse = (
|
1024
|
-
|
1025
|
-
_request, stream=_stream, **kwargs
|
1026
|
-
)
|
960
|
+
pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
|
961
|
+
_request, stream=_stream, **kwargs
|
1027
962
|
)
|
1028
963
|
|
1029
964
|
response = pipeline_response.http_response
|
1030
965
|
|
1031
966
|
if response.status_code not in [200]:
|
1032
|
-
map_error(
|
1033
|
-
status_code=response.status_code, response=response, error_map=error_map
|
1034
|
-
)
|
967
|
+
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
1035
968
|
raise HttpResponseError(response=response)
|
1036
969
|
|
1037
970
|
deserialized = self._deserialize("object", pipeline_response.http_response)
|
@@ -1081,18 +1014,14 @@ class AuthOperations: # pylint: disable=abstract-class-instantiated
|
|
1081
1014
|
_request.url = self._client.format_url(_request.url)
|
1082
1015
|
|
1083
1016
|
_stream = False
|
1084
|
-
pipeline_response: PipelineResponse = (
|
1085
|
-
|
1086
|
-
_request, stream=_stream, **kwargs
|
1087
|
-
)
|
1017
|
+
pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
|
1018
|
+
_request, stream=_stream, **kwargs
|
1088
1019
|
)
|
1089
1020
|
|
1090
1021
|
response = pipeline_response.http_response
|
1091
1022
|
|
1092
1023
|
if response.status_code not in [200]:
|
1093
|
-
map_error(
|
1094
|
-
status_code=response.status_code, response=response, error_map=error_map
|
1095
|
-
)
|
1024
|
+
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
1096
1025
|
raise HttpResponseError(response=response)
|
1097
1026
|
|
1098
1027
|
deserialized = self._deserialize("object", pipeline_response.http_response)
|
@@ -1132,18 +1061,14 @@ class AuthOperations: # pylint: disable=abstract-class-instantiated
|
|
1132
1061
|
_request.url = self._client.format_url(_request.url)
|
1133
1062
|
|
1134
1063
|
_stream = False
|
1135
|
-
pipeline_response: PipelineResponse = (
|
1136
|
-
|
1137
|
-
_request, stream=_stream, **kwargs
|
1138
|
-
)
|
1064
|
+
pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
|
1065
|
+
_request, stream=_stream, **kwargs
|
1139
1066
|
)
|
1140
1067
|
|
1141
1068
|
response = pipeline_response.http_response
|
1142
1069
|
|
1143
1070
|
if response.status_code not in [200]:
|
1144
|
-
map_error(
|
1145
|
-
status_code=response.status_code, response=response, error_map=error_map
|
1146
|
-
)
|
1071
|
+
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
1147
1072
|
raise HttpResponseError(response=response)
|
1148
1073
|
|
1149
1074
|
deserialized = self._deserialize("object", pipeline_response.http_response)
|
@@ -1184,18 +1109,14 @@ class AuthOperations: # pylint: disable=abstract-class-instantiated
|
|
1184
1109
|
_request.url = self._client.format_url(_request.url)
|
1185
1110
|
|
1186
1111
|
_stream = False
|
1187
|
-
pipeline_response: PipelineResponse = (
|
1188
|
-
|
1189
|
-
_request, stream=_stream, **kwargs
|
1190
|
-
)
|
1112
|
+
pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
|
1113
|
+
_request, stream=_stream, **kwargs
|
1191
1114
|
)
|
1192
1115
|
|
1193
1116
|
response = pipeline_response.http_response
|
1194
1117
|
|
1195
1118
|
if response.status_code not in [200]:
|
1196
|
-
map_error(
|
1197
|
-
status_code=response.status_code, response=response, error_map=error_map
|
1198
|
-
)
|
1119
|
+
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
1199
1120
|
raise HttpResponseError(response=response)
|
1200
1121
|
|
1201
1122
|
deserialized = self._deserialize("[object]", pipeline_response.http_response)
|
@@ -1206,9 +1127,7 @@ class AuthOperations: # pylint: disable=abstract-class-instantiated
|
|
1206
1127
|
return deserialized # type: ignore
|
1207
1128
|
|
1208
1129
|
@distributed_trace
|
1209
|
-
def revoke_refresh_token_by_refresh_token(
|
1210
|
-
self, *, refresh_token: str, client_id: str, **kwargs: Any
|
1211
|
-
) -> str:
|
1130
|
+
def revoke_refresh_token_by_refresh_token(self, *, refresh_token: str, client_id: str, **kwargs: Any) -> str:
|
1212
1131
|
"""Revoke Refresh Token By Refresh Token.
|
1213
1132
|
|
1214
1133
|
Revoke a refresh token.
|
@@ -1243,18 +1162,14 @@ class AuthOperations: # pylint: disable=abstract-class-instantiated
|
|
1243
1162
|
_request.url = self._client.format_url(_request.url)
|
1244
1163
|
|
1245
1164
|
_stream = False
|
1246
|
-
pipeline_response: PipelineResponse = (
|
1247
|
-
|
1248
|
-
_request, stream=_stream, **kwargs
|
1249
|
-
)
|
1165
|
+
pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
|
1166
|
+
_request, stream=_stream, **kwargs
|
1250
1167
|
)
|
1251
1168
|
|
1252
1169
|
response = pipeline_response.http_response
|
1253
1170
|
|
1254
1171
|
if response.status_code not in [200]:
|
1255
|
-
map_error(
|
1256
|
-
status_code=response.status_code, response=response, error_map=error_map
|
1257
|
-
)
|
1172
|
+
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
1258
1173
|
raise HttpResponseError(response=response)
|
1259
1174
|
|
1260
1175
|
deserialized = self._deserialize("str", pipeline_response.http_response)
|
@@ -1298,18 +1213,14 @@ class AuthOperations: # pylint: disable=abstract-class-instantiated
|
|
1298
1213
|
_request.url = self._client.format_url(_request.url)
|
1299
1214
|
|
1300
1215
|
_stream = False
|
1301
|
-
pipeline_response: PipelineResponse = (
|
1302
|
-
|
1303
|
-
_request, stream=_stream, **kwargs
|
1304
|
-
)
|
1216
|
+
pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
|
1217
|
+
_request, stream=_stream, **kwargs
|
1305
1218
|
)
|
1306
1219
|
|
1307
1220
|
response = pipeline_response.http_response
|
1308
1221
|
|
1309
1222
|
if response.status_code not in [200]:
|
1310
|
-
map_error(
|
1311
|
-
status_code=response.status_code, response=response, error_map=error_map
|
1312
|
-
)
|
1223
|
+
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
1313
1224
|
raise HttpResponseError(response=response)
|
1314
1225
|
|
1315
1226
|
deserialized = self._deserialize("str", pipeline_response.http_response)
|
@@ -1349,23 +1260,17 @@ class AuthOperations: # pylint: disable=abstract-class-instantiated
|
|
1349
1260
|
_request.url = self._client.format_url(_request.url)
|
1350
1261
|
|
1351
1262
|
_stream = False
|
1352
|
-
pipeline_response: PipelineResponse = (
|
1353
|
-
|
1354
|
-
_request, stream=_stream, **kwargs
|
1355
|
-
)
|
1263
|
+
pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
|
1264
|
+
_request, stream=_stream, **kwargs
|
1356
1265
|
)
|
1357
1266
|
|
1358
1267
|
response = pipeline_response.http_response
|
1359
1268
|
|
1360
1269
|
if response.status_code not in [200]:
|
1361
|
-
map_error(
|
1362
|
-
status_code=response.status_code, response=response, error_map=error_map
|
1363
|
-
)
|
1270
|
+
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
1364
1271
|
raise HttpResponseError(response=response)
|
1365
1272
|
|
1366
|
-
deserialized = self._deserialize(
|
1367
|
-
"UserInfoResponse", pipeline_response.http_response
|
1368
|
-
)
|
1273
|
+
deserialized = self._deserialize("UserInfoResponse", pipeline_response.http_response)
|
1369
1274
|
|
1370
1275
|
if cls:
|
1371
1276
|
return cls(pipeline_response, deserialized, {}) # type: ignore
|
@@ -1383,7 +1288,7 @@ class AuthOperations: # pylint: disable=abstract-class-instantiated
|
|
1383
1288
|
redirect_uri: str,
|
1384
1289
|
scope: str,
|
1385
1290
|
state: str,
|
1386
|
-
**kwargs: Any
|
1291
|
+
**kwargs: Any
|
1387
1292
|
) -> Any:
|
1388
1293
|
"""Initiate Authorization Flow.
|
1389
1294
|
|
@@ -1459,18 +1364,14 @@ class AuthOperations: # pylint: disable=abstract-class-instantiated
|
|
1459
1364
|
_request.url = self._client.format_url(_request.url)
|
1460
1365
|
|
1461
1366
|
_stream = False
|
1462
|
-
pipeline_response: PipelineResponse = (
|
1463
|
-
|
1464
|
-
_request, stream=_stream, **kwargs
|
1465
|
-
)
|
1367
|
+
pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
|
1368
|
+
_request, stream=_stream, **kwargs
|
1466
1369
|
)
|
1467
1370
|
|
1468
1371
|
response = pipeline_response.http_response
|
1469
1372
|
|
1470
1373
|
if response.status_code not in [200]:
|
1471
|
-
map_error(
|
1472
|
-
status_code=response.status_code, response=response, error_map=error_map
|
1473
|
-
)
|
1374
|
+
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
1474
1375
|
raise HttpResponseError(response=response)
|
1475
1376
|
|
1476
1377
|
deserialized = self._deserialize("object", pipeline_response.http_response)
|
@@ -1481,9 +1382,7 @@ class AuthOperations: # pylint: disable=abstract-class-instantiated
|
|
1481
1382
|
return deserialized # type: ignore
|
1482
1383
|
|
1483
1384
|
@distributed_trace
|
1484
|
-
def complete_authorization_flow(
|
1485
|
-
self, *, code: str, state: str, **kwargs: Any
|
1486
|
-
) -> Any:
|
1385
|
+
def complete_authorization_flow(self, *, code: str, state: str, **kwargs: Any) -> Any:
|
1487
1386
|
"""Complete Authorization Flow.
|
1488
1387
|
|
1489
1388
|
Complete the authorization flow.
|
@@ -1524,18 +1423,14 @@ class AuthOperations: # pylint: disable=abstract-class-instantiated
|
|
1524
1423
|
_request.url = self._client.format_url(_request.url)
|
1525
1424
|
|
1526
1425
|
_stream = False
|
1527
|
-
pipeline_response: PipelineResponse = (
|
1528
|
-
|
1529
|
-
_request, stream=_stream, **kwargs
|
1530
|
-
)
|
1426
|
+
pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
|
1427
|
+
_request, stream=_stream, **kwargs
|
1531
1428
|
)
|
1532
1429
|
|
1533
1430
|
response = pipeline_response.http_response
|
1534
1431
|
|
1535
1432
|
if response.status_code not in [200]:
|
1536
|
-
map_error(
|
1537
|
-
status_code=response.status_code, response=response, error_map=error_map
|
1538
|
-
)
|
1433
|
+
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
1539
1434
|
raise HttpResponseError(response=response)
|
1540
1435
|
|
1541
1436
|
deserialized = self._deserialize("object", pipeline_response.http_response)
|
@@ -1560,18 +1455,10 @@ class ConfigOperations:
|
|
1560
1455
|
|
1561
1456
|
def __init__(self, *args, **kwargs) -> None:
|
1562
1457
|
input_args = list(args)
|
1563
|
-
self._client: PipelineClient = (
|
1564
|
-
|
1565
|
-
)
|
1566
|
-
self.
|
1567
|
-
input_args.pop(0) if input_args else kwargs.pop("config")
|
1568
|
-
)
|
1569
|
-
self._serialize: Serializer = (
|
1570
|
-
input_args.pop(0) if input_args else kwargs.pop("serializer")
|
1571
|
-
)
|
1572
|
-
self._deserialize: Deserializer = (
|
1573
|
-
input_args.pop(0) if input_args else kwargs.pop("deserializer")
|
1574
|
-
)
|
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")
|
1575
1462
|
|
1576
1463
|
@distributed_trace
|
1577
1464
|
def serve_config(
|
@@ -1580,7 +1467,7 @@ class ConfigOperations:
|
|
1580
1467
|
if_modified_since: Optional[str] = None,
|
1581
1468
|
etag: Optional[str] = None,
|
1582
1469
|
match_condition: Optional[MatchConditions] = None,
|
1583
|
-
**kwargs: Any
|
1470
|
+
**kwargs: Any
|
1584
1471
|
) -> Any:
|
1585
1472
|
"""Serve Config.
|
1586
1473
|
|
@@ -1631,18 +1518,14 @@ class ConfigOperations:
|
|
1631
1518
|
_request.url = self._client.format_url(_request.url)
|
1632
1519
|
|
1633
1520
|
_stream = False
|
1634
|
-
pipeline_response: PipelineResponse = (
|
1635
|
-
|
1636
|
-
_request, stream=_stream, **kwargs
|
1637
|
-
)
|
1521
|
+
pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
|
1522
|
+
_request, stream=_stream, **kwargs
|
1638
1523
|
)
|
1639
1524
|
|
1640
1525
|
response = pipeline_response.http_response
|
1641
1526
|
|
1642
1527
|
if response.status_code not in [200]:
|
1643
|
-
map_error(
|
1644
|
-
status_code=response.status_code, response=response, error_map=error_map
|
1645
|
-
)
|
1528
|
+
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
1646
1529
|
raise HttpResponseError(response=response)
|
1647
1530
|
|
1648
1531
|
deserialized = self._deserialize("object", pipeline_response.http_response)
|
@@ -1667,26 +1550,14 @@ class JobsOperations:
|
|
1667
1550
|
|
1668
1551
|
def __init__(self, *args, **kwargs) -> None:
|
1669
1552
|
input_args = list(args)
|
1670
|
-
self._client: PipelineClient = (
|
1671
|
-
|
1672
|
-
)
|
1673
|
-
self.
|
1674
|
-
input_args.pop(0) if input_args else kwargs.pop("config")
|
1675
|
-
)
|
1676
|
-
self._serialize: Serializer = (
|
1677
|
-
input_args.pop(0) if input_args else kwargs.pop("serializer")
|
1678
|
-
)
|
1679
|
-
self._deserialize: Deserializer = (
|
1680
|
-
input_args.pop(0) if input_args else kwargs.pop("deserializer")
|
1681
|
-
)
|
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")
|
1682
1557
|
|
1683
1558
|
@overload
|
1684
1559
|
def initiate_sandbox_upload(
|
1685
|
-
self,
|
1686
|
-
body: _models.SandboxInfo,
|
1687
|
-
*,
|
1688
|
-
content_type: str = "application/json",
|
1689
|
-
**kwargs: Any,
|
1560
|
+
self, body: _models.SandboxInfo, *, content_type: str = "application/json", **kwargs: Any
|
1690
1561
|
) -> _models.SandboxUploadResponse:
|
1691
1562
|
"""Initiate Sandbox Upload.
|
1692
1563
|
|
@@ -1763,9 +1634,7 @@ class JobsOperations:
|
|
1763
1634
|
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
1764
1635
|
_params = kwargs.pop("params", {}) or {}
|
1765
1636
|
|
1766
|
-
content_type: Optional[str] = kwargs.pop(
|
1767
|
-
"content_type", _headers.pop("Content-Type", None)
|
1768
|
-
)
|
1637
|
+
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
1769
1638
|
cls: ClsType[_models.SandboxUploadResponse] = kwargs.pop("cls", None)
|
1770
1639
|
|
1771
1640
|
content_type = content_type or "application/json"
|
@@ -1786,23 +1655,17 @@ class JobsOperations:
|
|
1786
1655
|
_request.url = self._client.format_url(_request.url)
|
1787
1656
|
|
1788
1657
|
_stream = False
|
1789
|
-
pipeline_response: PipelineResponse = (
|
1790
|
-
|
1791
|
-
_request, stream=_stream, **kwargs
|
1792
|
-
)
|
1658
|
+
pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
|
1659
|
+
_request, stream=_stream, **kwargs
|
1793
1660
|
)
|
1794
1661
|
|
1795
1662
|
response = pipeline_response.http_response
|
1796
1663
|
|
1797
1664
|
if response.status_code not in [200]:
|
1798
|
-
map_error(
|
1799
|
-
status_code=response.status_code, response=response, error_map=error_map
|
1800
|
-
)
|
1665
|
+
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
1801
1666
|
raise HttpResponseError(response=response)
|
1802
1667
|
|
1803
|
-
deserialized = self._deserialize(
|
1804
|
-
"SandboxUploadResponse", pipeline_response.http_response
|
1805
|
-
)
|
1668
|
+
deserialized = self._deserialize("SandboxUploadResponse", pipeline_response.http_response)
|
1806
1669
|
|
1807
1670
|
if cls:
|
1808
1671
|
return cls(pipeline_response, deserialized, {}) # type: ignore
|
@@ -1810,9 +1673,7 @@ class JobsOperations:
|
|
1810
1673
|
return deserialized # type: ignore
|
1811
1674
|
|
1812
1675
|
@distributed_trace
|
1813
|
-
def get_sandbox_file(
|
1814
|
-
self, *, pfn: str, **kwargs: Any
|
1815
|
-
) -> _models.SandboxDownloadResponse:
|
1676
|
+
def get_sandbox_file(self, *, pfn: str, **kwargs: Any) -> _models.SandboxDownloadResponse:
|
1816
1677
|
"""Get Sandbox File.
|
1817
1678
|
|
1818
1679
|
Get a presigned URL to download a sandbox file.
|
@@ -1850,23 +1711,17 @@ class JobsOperations:
|
|
1850
1711
|
_request.url = self._client.format_url(_request.url)
|
1851
1712
|
|
1852
1713
|
_stream = False
|
1853
|
-
pipeline_response: PipelineResponse = (
|
1854
|
-
|
1855
|
-
_request, stream=_stream, **kwargs
|
1856
|
-
)
|
1714
|
+
pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
|
1715
|
+
_request, stream=_stream, **kwargs
|
1857
1716
|
)
|
1858
1717
|
|
1859
1718
|
response = pipeline_response.http_response
|
1860
1719
|
|
1861
1720
|
if response.status_code not in [200]:
|
1862
|
-
map_error(
|
1863
|
-
status_code=response.status_code, response=response, error_map=error_map
|
1864
|
-
)
|
1721
|
+
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
1865
1722
|
raise HttpResponseError(response=response)
|
1866
1723
|
|
1867
|
-
deserialized = self._deserialize(
|
1868
|
-
"SandboxDownloadResponse", pipeline_response.http_response
|
1869
|
-
)
|
1724
|
+
deserialized = self._deserialize("SandboxDownloadResponse", pipeline_response.http_response)
|
1870
1725
|
|
1871
1726
|
if cls:
|
1872
1727
|
return cls(pipeline_response, deserialized, {}) # type: ignore
|
@@ -1874,9 +1729,7 @@ class JobsOperations:
|
|
1874
1729
|
return deserialized # type: ignore
|
1875
1730
|
|
1876
1731
|
@distributed_trace
|
1877
|
-
def unassign_bulk_jobs_sandboxes(
|
1878
|
-
self, *, jobs_ids: List[int], **kwargs: Any
|
1879
|
-
) -> Any:
|
1732
|
+
def unassign_bulk_jobs_sandboxes(self, *, jobs_ids: List[int], **kwargs: Any) -> Any:
|
1880
1733
|
"""Unassign Bulk Jobs Sandboxes.
|
1881
1734
|
|
1882
1735
|
Delete bulk jobs sandbox mapping.
|
@@ -1908,18 +1761,14 @@ class JobsOperations:
|
|
1908
1761
|
_request.url = self._client.format_url(_request.url)
|
1909
1762
|
|
1910
1763
|
_stream = False
|
1911
|
-
pipeline_response: PipelineResponse = (
|
1912
|
-
|
1913
|
-
_request, stream=_stream, **kwargs
|
1914
|
-
)
|
1764
|
+
pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
|
1765
|
+
_request, stream=_stream, **kwargs
|
1915
1766
|
)
|
1916
1767
|
|
1917
1768
|
response = pipeline_response.http_response
|
1918
1769
|
|
1919
1770
|
if response.status_code not in [200]:
|
1920
|
-
map_error(
|
1921
|
-
status_code=response.status_code, response=response, error_map=error_map
|
1922
|
-
)
|
1771
|
+
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
1923
1772
|
raise HttpResponseError(response=response)
|
1924
1773
|
|
1925
1774
|
deserialized = self._deserialize("object", pipeline_response.http_response)
|
@@ -1962,18 +1811,14 @@ class JobsOperations:
|
|
1962
1811
|
_request.url = self._client.format_url(_request.url)
|
1963
1812
|
|
1964
1813
|
_stream = False
|
1965
|
-
pipeline_response: PipelineResponse = (
|
1966
|
-
|
1967
|
-
_request, stream=_stream, **kwargs
|
1968
|
-
)
|
1814
|
+
pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
|
1815
|
+
_request, stream=_stream, **kwargs
|
1969
1816
|
)
|
1970
1817
|
|
1971
1818
|
response = pipeline_response.http_response
|
1972
1819
|
|
1973
1820
|
if response.status_code not in [200]:
|
1974
|
-
map_error(
|
1975
|
-
status_code=response.status_code, response=response, error_map=error_map
|
1976
|
-
)
|
1821
|
+
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
1977
1822
|
raise HttpResponseError(response=response)
|
1978
1823
|
|
1979
1824
|
deserialized = self._deserialize("{[object]}", pipeline_response.http_response)
|
@@ -2016,18 +1861,14 @@ class JobsOperations:
|
|
2016
1861
|
_request.url = self._client.format_url(_request.url)
|
2017
1862
|
|
2018
1863
|
_stream = False
|
2019
|
-
pipeline_response: PipelineResponse = (
|
2020
|
-
|
2021
|
-
_request, stream=_stream, **kwargs
|
2022
|
-
)
|
1864
|
+
pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
|
1865
|
+
_request, stream=_stream, **kwargs
|
2023
1866
|
)
|
2024
1867
|
|
2025
1868
|
response = pipeline_response.http_response
|
2026
1869
|
|
2027
1870
|
if response.status_code not in [200]:
|
2028
|
-
map_error(
|
2029
|
-
status_code=response.status_code, response=response, error_map=error_map
|
2030
|
-
)
|
1871
|
+
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
2031
1872
|
raise HttpResponseError(response=response)
|
2032
1873
|
|
2033
1874
|
deserialized = self._deserialize("object", pipeline_response.http_response)
|
@@ -2038,9 +1879,7 @@ class JobsOperations:
|
|
2038
1879
|
return deserialized # type: ignore
|
2039
1880
|
|
2040
1881
|
@distributed_trace
|
2041
|
-
def get_job_sandbox(
|
2042
|
-
self, job_id: int, sandbox_type: Union[str, _models.SandboxType], **kwargs: Any
|
2043
|
-
) -> List[Any]:
|
1882
|
+
def get_job_sandbox(self, job_id: int, sandbox_type: Union[str, _models.SandboxType], **kwargs: Any) -> List[Any]:
|
2044
1883
|
"""Get Job Sandbox.
|
2045
1884
|
|
2046
1885
|
Get input or output sandbox of given job.
|
@@ -2075,18 +1914,14 @@ class JobsOperations:
|
|
2075
1914
|
_request.url = self._client.format_url(_request.url)
|
2076
1915
|
|
2077
1916
|
_stream = False
|
2078
|
-
pipeline_response: PipelineResponse = (
|
2079
|
-
|
2080
|
-
_request, stream=_stream, **kwargs
|
2081
|
-
)
|
1917
|
+
pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
|
1918
|
+
_request, stream=_stream, **kwargs
|
2082
1919
|
)
|
2083
1920
|
|
2084
1921
|
response = pipeline_response.http_response
|
2085
1922
|
|
2086
1923
|
if response.status_code not in [200]:
|
2087
|
-
map_error(
|
2088
|
-
status_code=response.status_code, response=response, error_map=error_map
|
2089
|
-
)
|
1924
|
+
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
2090
1925
|
raise HttpResponseError(response=response)
|
2091
1926
|
|
2092
1927
|
deserialized = self._deserialize("[object]", pipeline_response.http_response)
|
@@ -2121,9 +1956,7 @@ class JobsOperations:
|
|
2121
1956
|
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
2122
1957
|
_params = kwargs.pop("params", {}) or {}
|
2123
1958
|
|
2124
|
-
content_type: str = kwargs.pop(
|
2125
|
-
"content_type", _headers.pop("Content-Type", "application/json")
|
2126
|
-
)
|
1959
|
+
content_type: str = kwargs.pop("content_type", _headers.pop("Content-Type", "application/json"))
|
2127
1960
|
cls: ClsType[Any] = kwargs.pop("cls", None)
|
2128
1961
|
|
2129
1962
|
_content = self._serialize.body(body, "str")
|
@@ -2138,18 +1971,14 @@ class JobsOperations:
|
|
2138
1971
|
_request.url = self._client.format_url(_request.url)
|
2139
1972
|
|
2140
1973
|
_stream = False
|
2141
|
-
pipeline_response: PipelineResponse = (
|
2142
|
-
|
2143
|
-
_request, stream=_stream, **kwargs
|
2144
|
-
)
|
1974
|
+
pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
|
1975
|
+
_request, stream=_stream, **kwargs
|
2145
1976
|
)
|
2146
1977
|
|
2147
1978
|
response = pipeline_response.http_response
|
2148
1979
|
|
2149
1980
|
if response.status_code not in [200]:
|
2150
|
-
map_error(
|
2151
|
-
status_code=response.status_code, response=response, error_map=error_map
|
2152
|
-
)
|
1981
|
+
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
2153
1982
|
raise HttpResponseError(response=response)
|
2154
1983
|
|
2155
1984
|
deserialized = self._deserialize("object", pipeline_response.http_response)
|
@@ -2197,18 +2026,14 @@ class JobsOperations:
|
|
2197
2026
|
_request.url = self._client.format_url(_request.url)
|
2198
2027
|
|
2199
2028
|
_stream = False
|
2200
|
-
pipeline_response: PipelineResponse = (
|
2201
|
-
|
2202
|
-
_request, stream=_stream, **kwargs
|
2203
|
-
)
|
2029
|
+
pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
|
2030
|
+
_request, stream=_stream, **kwargs
|
2204
2031
|
)
|
2205
2032
|
|
2206
2033
|
response = pipeline_response.http_response
|
2207
2034
|
|
2208
2035
|
if response.status_code not in [200]:
|
2209
|
-
map_error(
|
2210
|
-
status_code=response.status_code, response=response, error_map=error_map
|
2211
|
-
)
|
2036
|
+
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
2212
2037
|
raise HttpResponseError(response=response)
|
2213
2038
|
|
2214
2039
|
deserialized = self._deserialize("object", pipeline_response.http_response)
|
@@ -2225,7 +2050,7 @@ class JobsOperations:
|
|
2225
2050
|
*,
|
2226
2051
|
force: bool = False,
|
2227
2052
|
content_type: str = "application/json",
|
2228
|
-
**kwargs: Any
|
2053
|
+
**kwargs: Any
|
2229
2054
|
) -> _models.SetJobStatusReturn:
|
2230
2055
|
"""Set Job Statuses.
|
2231
2056
|
|
@@ -2245,12 +2070,7 @@ class JobsOperations:
|
|
2245
2070
|
|
2246
2071
|
@overload
|
2247
2072
|
def set_job_statuses(
|
2248
|
-
self,
|
2249
|
-
body: IO[bytes],
|
2250
|
-
*,
|
2251
|
-
force: bool = False,
|
2252
|
-
content_type: str = "application/json",
|
2253
|
-
**kwargs: Any,
|
2073
|
+
self, body: IO[bytes], *, force: bool = False, content_type: str = "application/json", **kwargs: Any
|
2254
2074
|
) -> _models.SetJobStatusReturn:
|
2255
2075
|
"""Set Job Statuses.
|
2256
2076
|
|
@@ -2274,7 +2094,7 @@ class JobsOperations:
|
|
2274
2094
|
body: Union[Dict[str, Dict[str, _models.JobStatusUpdate]], IO[bytes]],
|
2275
2095
|
*,
|
2276
2096
|
force: bool = False,
|
2277
|
-
**kwargs: Any
|
2097
|
+
**kwargs: Any
|
2278
2098
|
) -> _models.SetJobStatusReturn:
|
2279
2099
|
"""Set Job Statuses.
|
2280
2100
|
|
@@ -2299,9 +2119,7 @@ class JobsOperations:
|
|
2299
2119
|
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
2300
2120
|
_params = kwargs.pop("params", {}) or {}
|
2301
2121
|
|
2302
|
-
content_type: Optional[str] = kwargs.pop(
|
2303
|
-
"content_type", _headers.pop("Content-Type", None)
|
2304
|
-
)
|
2122
|
+
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
2305
2123
|
cls: ClsType[_models.SetJobStatusReturn] = kwargs.pop("cls", None)
|
2306
2124
|
|
2307
2125
|
content_type = content_type or "application/json"
|
@@ -2323,23 +2141,17 @@ class JobsOperations:
|
|
2323
2141
|
_request.url = self._client.format_url(_request.url)
|
2324
2142
|
|
2325
2143
|
_stream = False
|
2326
|
-
pipeline_response: PipelineResponse = (
|
2327
|
-
|
2328
|
-
_request, stream=_stream, **kwargs
|
2329
|
-
)
|
2144
|
+
pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
|
2145
|
+
_request, stream=_stream, **kwargs
|
2330
2146
|
)
|
2331
2147
|
|
2332
2148
|
response = pipeline_response.http_response
|
2333
2149
|
|
2334
2150
|
if response.status_code not in [200]:
|
2335
|
-
map_error(
|
2336
|
-
status_code=response.status_code, response=response, error_map=error_map
|
2337
|
-
)
|
2151
|
+
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
2338
2152
|
raise HttpResponseError(response=response)
|
2339
2153
|
|
2340
|
-
deserialized = self._deserialize(
|
2341
|
-
"SetJobStatusReturn", pipeline_response.http_response
|
2342
|
-
)
|
2154
|
+
deserialized = self._deserialize("SetJobStatusReturn", pipeline_response.http_response)
|
2343
2155
|
|
2344
2156
|
if cls:
|
2345
2157
|
return cls(pipeline_response, deserialized, {}) # type: ignore
|
@@ -2348,11 +2160,7 @@ class JobsOperations:
|
|
2348
2160
|
|
2349
2161
|
@overload
|
2350
2162
|
def add_heartbeat(
|
2351
|
-
self,
|
2352
|
-
body: Dict[str, _models.HeartbeatData],
|
2353
|
-
*,
|
2354
|
-
content_type: str = "application/json",
|
2355
|
-
**kwargs: Any,
|
2163
|
+
self, body: Dict[str, _models.HeartbeatData], *, content_type: str = "application/json", **kwargs: Any
|
2356
2164
|
) -> List[_models.JobCommand]:
|
2357
2165
|
"""Add Heartbeat.
|
2358
2166
|
|
@@ -2429,9 +2237,7 @@ class JobsOperations:
|
|
2429
2237
|
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
2430
2238
|
_params = kwargs.pop("params", {}) or {}
|
2431
2239
|
|
2432
|
-
content_type: Optional[str] = kwargs.pop(
|
2433
|
-
"content_type", _headers.pop("Content-Type", None)
|
2434
|
-
)
|
2240
|
+
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
2435
2241
|
cls: ClsType[List[_models.JobCommand]] = kwargs.pop("cls", None)
|
2436
2242
|
|
2437
2243
|
content_type = content_type or "application/json"
|
@@ -2452,23 +2258,17 @@ class JobsOperations:
|
|
2452
2258
|
_request.url = self._client.format_url(_request.url)
|
2453
2259
|
|
2454
2260
|
_stream = False
|
2455
|
-
pipeline_response: PipelineResponse = (
|
2456
|
-
|
2457
|
-
_request, stream=_stream, **kwargs
|
2458
|
-
)
|
2261
|
+
pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
|
2262
|
+
_request, stream=_stream, **kwargs
|
2459
2263
|
)
|
2460
2264
|
|
2461
2265
|
response = pipeline_response.http_response
|
2462
2266
|
|
2463
2267
|
if response.status_code not in [200]:
|
2464
|
-
map_error(
|
2465
|
-
status_code=response.status_code, response=response, error_map=error_map
|
2466
|
-
)
|
2268
|
+
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
2467
2269
|
raise HttpResponseError(response=response)
|
2468
2270
|
|
2469
|
-
deserialized = self._deserialize(
|
2470
|
-
"[JobCommand]", pipeline_response.http_response
|
2471
|
-
)
|
2271
|
+
deserialized = self._deserialize("[JobCommand]", pipeline_response.http_response)
|
2472
2272
|
|
2473
2273
|
if cls:
|
2474
2274
|
return cls(pipeline_response, deserialized, {}) # type: ignore
|
@@ -2476,9 +2276,7 @@ class JobsOperations:
|
|
2476
2276
|
return deserialized # type: ignore
|
2477
2277
|
|
2478
2278
|
@distributed_trace
|
2479
|
-
def reschedule_jobs(
|
2480
|
-
self, *, job_ids: List[int], reset_jobs: bool = False, **kwargs: Any
|
2481
|
-
) -> Dict[str, Any]:
|
2279
|
+
def reschedule_jobs(self, *, job_ids: List[int], reset_jobs: bool = False, **kwargs: Any) -> Dict[str, Any]:
|
2482
2280
|
"""Reschedule Jobs.
|
2483
2281
|
|
2484
2282
|
Reschedule Jobs.
|
@@ -2513,18 +2311,14 @@ class JobsOperations:
|
|
2513
2311
|
_request.url = self._client.format_url(_request.url)
|
2514
2312
|
|
2515
2313
|
_stream = False
|
2516
|
-
pipeline_response: PipelineResponse = (
|
2517
|
-
|
2518
|
-
_request, stream=_stream, **kwargs
|
2519
|
-
)
|
2314
|
+
pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
|
2315
|
+
_request, stream=_stream, **kwargs
|
2520
2316
|
)
|
2521
2317
|
|
2522
2318
|
response = pipeline_response.http_response
|
2523
2319
|
|
2524
2320
|
if response.status_code not in [200]:
|
2525
|
-
map_error(
|
2526
|
-
status_code=response.status_code, response=response, error_map=error_map
|
2527
|
-
)
|
2321
|
+
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
2528
2322
|
raise HttpResponseError(response=response)
|
2529
2323
|
|
2530
2324
|
deserialized = self._deserialize("{object}", pipeline_response.http_response)
|
@@ -2536,11 +2330,7 @@ class JobsOperations:
|
|
2536
2330
|
|
2537
2331
|
@overload
|
2538
2332
|
def patch_metadata(
|
2539
|
-
self,
|
2540
|
-
body: Dict[str, Dict[str, Any]],
|
2541
|
-
*,
|
2542
|
-
content_type: str = "application/json",
|
2543
|
-
**kwargs: Any,
|
2333
|
+
self, body: Dict[str, Dict[str, Any]], *, content_type: str = "application/json", **kwargs: Any
|
2544
2334
|
) -> None:
|
2545
2335
|
"""Patch Metadata.
|
2546
2336
|
|
@@ -2557,9 +2347,7 @@ class JobsOperations:
|
|
2557
2347
|
"""
|
2558
2348
|
|
2559
2349
|
@overload
|
2560
|
-
def patch_metadata(
|
2561
|
-
self, body: IO[bytes], *, content_type: str = "application/json", **kwargs: Any
|
2562
|
-
) -> None:
|
2350
|
+
def patch_metadata(self, body: IO[bytes], *, content_type: str = "application/json", **kwargs: Any) -> None:
|
2563
2351
|
"""Patch Metadata.
|
2564
2352
|
|
2565
2353
|
Patch Metadata.
|
@@ -2599,9 +2387,7 @@ class JobsOperations:
|
|
2599
2387
|
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
2600
2388
|
_params = kwargs.pop("params", {}) or {}
|
2601
2389
|
|
2602
|
-
content_type: Optional[str] = kwargs.pop(
|
2603
|
-
"content_type", _headers.pop("Content-Type", None)
|
2604
|
-
)
|
2390
|
+
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
2605
2391
|
cls: ClsType[None] = kwargs.pop("cls", None)
|
2606
2392
|
|
2607
2393
|
content_type = content_type or "application/json"
|
@@ -2622,18 +2408,14 @@ class JobsOperations:
|
|
2622
2408
|
_request.url = self._client.format_url(_request.url)
|
2623
2409
|
|
2624
2410
|
_stream = False
|
2625
|
-
pipeline_response: PipelineResponse = (
|
2626
|
-
|
2627
|
-
_request, stream=_stream, **kwargs
|
2628
|
-
)
|
2411
|
+
pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
|
2412
|
+
_request, stream=_stream, **kwargs
|
2629
2413
|
)
|
2630
2414
|
|
2631
2415
|
response = pipeline_response.http_response
|
2632
2416
|
|
2633
2417
|
if response.status_code not in [204]:
|
2634
|
-
map_error(
|
2635
|
-
status_code=response.status_code, response=response, error_map=error_map
|
2636
|
-
)
|
2418
|
+
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
2637
2419
|
raise HttpResponseError(response=response)
|
2638
2420
|
|
2639
2421
|
if cls:
|
@@ -2647,7 +2429,7 @@ class JobsOperations:
|
|
2647
2429
|
page: int = 1,
|
2648
2430
|
per_page: int = 100,
|
2649
2431
|
content_type: str = "application/json",
|
2650
|
-
**kwargs: Any
|
2432
|
+
**kwargs: Any
|
2651
2433
|
) -> List[Dict[str, Any]]:
|
2652
2434
|
"""Search.
|
2653
2435
|
|
@@ -2677,7 +2459,7 @@ class JobsOperations:
|
|
2677
2459
|
page: int = 1,
|
2678
2460
|
per_page: int = 100,
|
2679
2461
|
content_type: str = "application/json",
|
2680
|
-
**kwargs: Any
|
2462
|
+
**kwargs: Any
|
2681
2463
|
) -> List[Dict[str, Any]]:
|
2682
2464
|
"""Search.
|
2683
2465
|
|
@@ -2706,7 +2488,7 @@ class JobsOperations:
|
|
2706
2488
|
*,
|
2707
2489
|
page: int = 1,
|
2708
2490
|
per_page: int = 100,
|
2709
|
-
**kwargs: Any
|
2491
|
+
**kwargs: Any
|
2710
2492
|
) -> List[Dict[str, Any]]:
|
2711
2493
|
"""Search.
|
2712
2494
|
|
@@ -2735,9 +2517,7 @@ class JobsOperations:
|
|
2735
2517
|
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
2736
2518
|
_params = kwargs.pop("params", {}) or {}
|
2737
2519
|
|
2738
|
-
content_type: Optional[str] = kwargs.pop(
|
2739
|
-
"content_type", _headers.pop("Content-Type", None)
|
2740
|
-
)
|
2520
|
+
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
2741
2521
|
cls: ClsType[List[Dict[str, Any]]] = kwargs.pop("cls", None)
|
2742
2522
|
|
2743
2523
|
content_type = content_type or "application/json"
|
@@ -2763,25 +2543,19 @@ class JobsOperations:
|
|
2763
2543
|
_request.url = self._client.format_url(_request.url)
|
2764
2544
|
|
2765
2545
|
_stream = False
|
2766
|
-
pipeline_response: PipelineResponse = (
|
2767
|
-
|
2768
|
-
_request, stream=_stream, **kwargs
|
2769
|
-
)
|
2546
|
+
pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
|
2547
|
+
_request, stream=_stream, **kwargs
|
2770
2548
|
)
|
2771
2549
|
|
2772
2550
|
response = pipeline_response.http_response
|
2773
2551
|
|
2774
2552
|
if response.status_code not in [200, 206]:
|
2775
|
-
map_error(
|
2776
|
-
status_code=response.status_code, response=response, error_map=error_map
|
2777
|
-
)
|
2553
|
+
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
2778
2554
|
raise HttpResponseError(response=response)
|
2779
2555
|
|
2780
2556
|
response_headers = {}
|
2781
2557
|
if response.status_code == 206:
|
2782
|
-
response_headers["Content-Range"] = self._deserialize(
|
2783
|
-
"str", response.headers.get("Content-Range")
|
2784
|
-
)
|
2558
|
+
response_headers["Content-Range"] = self._deserialize("str", response.headers.get("Content-Range"))
|
2785
2559
|
|
2786
2560
|
deserialized = self._deserialize("[{object}]", pipeline_response.http_response)
|
2787
2561
|
|
@@ -2791,13 +2565,7 @@ class JobsOperations:
|
|
2791
2565
|
return deserialized # type: ignore
|
2792
2566
|
|
2793
2567
|
@overload
|
2794
|
-
def summary(
|
2795
|
-
self,
|
2796
|
-
body: _models.JobSummaryParams,
|
2797
|
-
*,
|
2798
|
-
content_type: str = "application/json",
|
2799
|
-
**kwargs: Any,
|
2800
|
-
) -> Any:
|
2568
|
+
def summary(self, body: _models.JobSummaryParams, *, content_type: str = "application/json", **kwargs: Any) -> Any:
|
2801
2569
|
"""Summary.
|
2802
2570
|
|
2803
2571
|
Show information suitable for plotting.
|
@@ -2813,9 +2581,7 @@ class JobsOperations:
|
|
2813
2581
|
"""
|
2814
2582
|
|
2815
2583
|
@overload
|
2816
|
-
def summary(
|
2817
|
-
self, body: IO[bytes], *, content_type: str = "application/json", **kwargs: Any
|
2818
|
-
) -> Any:
|
2584
|
+
def summary(self, body: IO[bytes], *, content_type: str = "application/json", **kwargs: Any) -> Any:
|
2819
2585
|
"""Summary.
|
2820
2586
|
|
2821
2587
|
Show information suitable for plotting.
|
@@ -2831,9 +2597,7 @@ class JobsOperations:
|
|
2831
2597
|
"""
|
2832
2598
|
|
2833
2599
|
@distributed_trace
|
2834
|
-
def summary(
|
2835
|
-
self, body: Union[_models.JobSummaryParams, IO[bytes]], **kwargs: Any
|
2836
|
-
) -> Any:
|
2600
|
+
def summary(self, body: Union[_models.JobSummaryParams, IO[bytes]], **kwargs: Any) -> Any:
|
2837
2601
|
"""Summary.
|
2838
2602
|
|
2839
2603
|
Show information suitable for plotting.
|
@@ -2855,9 +2619,7 @@ class JobsOperations:
|
|
2855
2619
|
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
2856
2620
|
_params = kwargs.pop("params", {}) or {}
|
2857
2621
|
|
2858
|
-
content_type: Optional[str] = kwargs.pop(
|
2859
|
-
"content_type", _headers.pop("Content-Type", None)
|
2860
|
-
)
|
2622
|
+
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
2861
2623
|
cls: ClsType[Any] = kwargs.pop("cls", None)
|
2862
2624
|
|
2863
2625
|
content_type = content_type or "application/json"
|
@@ -2878,18 +2640,14 @@ class JobsOperations:
|
|
2878
2640
|
_request.url = self._client.format_url(_request.url)
|
2879
2641
|
|
2880
2642
|
_stream = False
|
2881
|
-
pipeline_response: PipelineResponse = (
|
2882
|
-
|
2883
|
-
_request, stream=_stream, **kwargs
|
2884
|
-
)
|
2643
|
+
pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
|
2644
|
+
_request, stream=_stream, **kwargs
|
2885
2645
|
)
|
2886
2646
|
|
2887
2647
|
response = pipeline_response.http_response
|
2888
2648
|
|
2889
2649
|
if response.status_code not in [200]:
|
2890
|
-
map_error(
|
2891
|
-
status_code=response.status_code, response=response, error_map=error_map
|
2892
|
-
)
|
2650
|
+
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
2893
2651
|
raise HttpResponseError(response=response)
|
2894
2652
|
|
2895
2653
|
deserialized = self._deserialize("object", pipeline_response.http_response)
|
@@ -2936,9 +2694,7 @@ class JobsOperations:
|
|
2936
2694
|
"""
|
2937
2695
|
|
2938
2696
|
@distributed_trace
|
2939
|
-
def submit_jdl_jobs(
|
2940
|
-
self, body: Union[List[str], IO[bytes]], **kwargs: Any
|
2941
|
-
) -> List[_models.InsertedJob]:
|
2697
|
+
def submit_jdl_jobs(self, body: Union[List[str], IO[bytes]], **kwargs: Any) -> List[_models.InsertedJob]:
|
2942
2698
|
"""Submit Jdl Jobs.
|
2943
2699
|
|
2944
2700
|
Submit a list of jobs in JDL format.
|
@@ -2960,9 +2716,7 @@ class JobsOperations:
|
|
2960
2716
|
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
2961
2717
|
_params = kwargs.pop("params", {}) or {}
|
2962
2718
|
|
2963
|
-
content_type: Optional[str] = kwargs.pop(
|
2964
|
-
"content_type", _headers.pop("Content-Type", None)
|
2965
|
-
)
|
2719
|
+
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
2966
2720
|
cls: ClsType[List[_models.InsertedJob]] = kwargs.pop("cls", None)
|
2967
2721
|
|
2968
2722
|
content_type = content_type or "application/json"
|
@@ -2983,23 +2737,17 @@ class JobsOperations:
|
|
2983
2737
|
_request.url = self._client.format_url(_request.url)
|
2984
2738
|
|
2985
2739
|
_stream = False
|
2986
|
-
pipeline_response: PipelineResponse = (
|
2987
|
-
|
2988
|
-
_request, stream=_stream, **kwargs
|
2989
|
-
)
|
2740
|
+
pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
|
2741
|
+
_request, stream=_stream, **kwargs
|
2990
2742
|
)
|
2991
2743
|
|
2992
2744
|
response = pipeline_response.http_response
|
2993
2745
|
|
2994
2746
|
if response.status_code not in [200]:
|
2995
|
-
map_error(
|
2996
|
-
status_code=response.status_code, response=response, error_map=error_map
|
2997
|
-
)
|
2747
|
+
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
2998
2748
|
raise HttpResponseError(response=response)
|
2999
2749
|
|
3000
|
-
deserialized = self._deserialize(
|
3001
|
-
"[InsertedJob]", pipeline_response.http_response
|
3002
|
-
)
|
2750
|
+
deserialized = self._deserialize("[InsertedJob]", pipeline_response.http_response)
|
3003
2751
|
|
3004
2752
|
if cls:
|
3005
2753
|
return cls(pipeline_response, deserialized, {}) # type: ignore
|