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.
- diracx/_client_importer.py +2 -2
- diracx/client/_generated/__init__.py +1 -1
- diracx/client/_generated/_client.py +11 -34
- diracx/client/_generated/_configuration.py +7 -19
- diracx/client/_generated/_utils/__init__.py +1 -1
- diracx/client/_generated/_utils/serialization.py +71 -225
- diracx/client/_generated/_utils/utils.py +4 -10
- diracx/client/_generated/aio/__init__.py +1 -1
- diracx/client/_generated/aio/_client.py +9 -30
- diracx/client/_generated/aio/_configuration.py +8 -22
- diracx/client/_generated/aio/_patch.py +1 -3
- diracx/client/_generated/aio/operations/__init__.py +1 -1
- diracx/client/_generated/aio/operations/_operations.py +239 -368
- diracx/client/_generated/models/__init__.py +2 -3
- diracx/client/_generated/models/_enums.py +1 -1
- diracx/client/_generated/models/_models.py +39 -91
- diracx/client/_generated/operations/__init__.py +1 -1
- diracx/client/_generated/operations/_operations.py +312 -499
- diracx/client/patches/client/common.py +1 -1
- diracx/client/patches/utils.py +1 -1
- {diracx_client-0.0.1a44.dist-info → diracx_client-0.0.1a46.dist-info}/METADATA +2 -1
- diracx_client-0.0.1a46.dist-info/RECORD +45 -0
- diracx_client-0.0.1a44.dist-info/RECORD +0 -45
- {diracx_client-0.0.1a44.dist-info → diracx_client-0.0.1a46.dist-info}/WHEEL +0 -0
@@ -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.
|
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
|
@@ -54,14 +54,14 @@ from ...operations._operations import (
|
|
54
54
|
build_jobs_unassign_bulk_jobs_sandboxes_request,
|
55
55
|
build_jobs_unassign_job_sandboxes_request,
|
56
56
|
build_well_known_get_installation_metadata_request,
|
57
|
+
build_well_known_get_jwks_request,
|
57
58
|
build_well_known_get_openid_configuration_request,
|
59
|
+
build_well_known_get_security_txt_request,
|
58
60
|
)
|
59
61
|
from .._configuration import DiracConfiguration
|
60
62
|
|
61
63
|
T = TypeVar("T")
|
62
|
-
ClsType = Optional[
|
63
|
-
Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]
|
64
|
-
]
|
64
|
+
ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]]
|
65
65
|
|
66
66
|
|
67
67
|
class WellKnownOperations:
|
@@ -78,23 +78,13 @@ class WellKnownOperations:
|
|
78
78
|
|
79
79
|
def __init__(self, *args, **kwargs) -> None:
|
80
80
|
input_args = list(args)
|
81
|
-
self._client: AsyncPipelineClient = (
|
82
|
-
|
83
|
-
)
|
84
|
-
self.
|
85
|
-
input_args.pop(0) if input_args else kwargs.pop("config")
|
86
|
-
)
|
87
|
-
self._serialize: Serializer = (
|
88
|
-
input_args.pop(0) if input_args else kwargs.pop("serializer")
|
89
|
-
)
|
90
|
-
self._deserialize: Deserializer = (
|
91
|
-
input_args.pop(0) if input_args else kwargs.pop("deserializer")
|
92
|
-
)
|
81
|
+
self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client")
|
82
|
+
self._config: DiracConfiguration = input_args.pop(0) if input_args else kwargs.pop("config")
|
83
|
+
self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer")
|
84
|
+
self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer")
|
93
85
|
|
94
86
|
@distributed_trace_async
|
95
|
-
async def get_openid_configuration(
|
96
|
-
self, **kwargs: Any
|
97
|
-
) -> _models.OpenIDConfiguration:
|
87
|
+
async def get_openid_configuration(self, **kwargs: Any) -> _models.OpenIDConfiguration:
|
98
88
|
"""Get Openid Configuration.
|
99
89
|
|
100
90
|
OpenID Connect discovery endpoint.
|
@@ -123,24 +113,65 @@ class WellKnownOperations:
|
|
123
113
|
_request.url = self._client.format_url(_request.url)
|
124
114
|
|
125
115
|
_stream = False
|
126
|
-
pipeline_response: PipelineResponse = (
|
127
|
-
|
128
|
-
_request, stream=_stream, **kwargs
|
129
|
-
)
|
116
|
+
pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
|
117
|
+
_request, stream=_stream, **kwargs
|
130
118
|
)
|
131
119
|
|
132
120
|
response = pipeline_response.http_response
|
133
121
|
|
134
122
|
if response.status_code not in [200]:
|
135
|
-
map_error(
|
136
|
-
status_code=response.status_code, response=response, error_map=error_map
|
137
|
-
)
|
123
|
+
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
138
124
|
raise HttpResponseError(response=response)
|
139
125
|
|
140
|
-
deserialized = self._deserialize(
|
141
|
-
|
126
|
+
deserialized = self._deserialize("OpenIDConfiguration", pipeline_response.http_response)
|
127
|
+
|
128
|
+
if cls:
|
129
|
+
return cls(pipeline_response, deserialized, {}) # type: ignore
|
130
|
+
|
131
|
+
return deserialized # type: ignore
|
132
|
+
|
133
|
+
@distributed_trace_async
|
134
|
+
async def get_jwks(self, **kwargs: Any) -> Dict[str, Any]:
|
135
|
+
"""Get Jwks.
|
136
|
+
|
137
|
+
Get the JWKs (public keys).
|
138
|
+
|
139
|
+
:return: dict mapping str to any
|
140
|
+
:rtype: dict[str, any]
|
141
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
142
|
+
"""
|
143
|
+
error_map: MutableMapping = {
|
144
|
+
401: ClientAuthenticationError,
|
145
|
+
404: ResourceNotFoundError,
|
146
|
+
409: ResourceExistsError,
|
147
|
+
304: ResourceNotModifiedError,
|
148
|
+
}
|
149
|
+
error_map.update(kwargs.pop("error_map", {}) or {})
|
150
|
+
|
151
|
+
_headers = kwargs.pop("headers", {}) or {}
|
152
|
+
_params = kwargs.pop("params", {}) or {}
|
153
|
+
|
154
|
+
cls: ClsType[Dict[str, Any]] = kwargs.pop("cls", None)
|
155
|
+
|
156
|
+
_request = build_well_known_get_jwks_request(
|
157
|
+
headers=_headers,
|
158
|
+
params=_params,
|
159
|
+
)
|
160
|
+
_request.url = self._client.format_url(_request.url)
|
161
|
+
|
162
|
+
_stream = False
|
163
|
+
pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
|
164
|
+
_request, stream=_stream, **kwargs
|
142
165
|
)
|
143
166
|
|
167
|
+
response = pipeline_response.http_response
|
168
|
+
|
169
|
+
if response.status_code not in [200]:
|
170
|
+
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
171
|
+
raise HttpResponseError(response=response)
|
172
|
+
|
173
|
+
deserialized = self._deserialize("{object}", pipeline_response.http_response)
|
174
|
+
|
144
175
|
if cls:
|
145
176
|
return cls(pipeline_response, deserialized, {}) # type: ignore
|
146
177
|
|
@@ -176,18 +207,14 @@ class WellKnownOperations:
|
|
176
207
|
_request.url = self._client.format_url(_request.url)
|
177
208
|
|
178
209
|
_stream = False
|
179
|
-
pipeline_response: PipelineResponse = (
|
180
|
-
|
181
|
-
_request, stream=_stream, **kwargs
|
182
|
-
)
|
210
|
+
pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
|
211
|
+
_request, stream=_stream, **kwargs
|
183
212
|
)
|
184
213
|
|
185
214
|
response = pipeline_response.http_response
|
186
215
|
|
187
216
|
if response.status_code not in [200]:
|
188
|
-
map_error(
|
189
|
-
status_code=response.status_code, response=response, error_map=error_map
|
190
|
-
)
|
217
|
+
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
191
218
|
raise HttpResponseError(response=response)
|
192
219
|
|
193
220
|
deserialized = self._deserialize("Metadata", pipeline_response.http_response)
|
@@ -197,6 +224,53 @@ class WellKnownOperations:
|
|
197
224
|
|
198
225
|
return deserialized # type: ignore
|
199
226
|
|
227
|
+
@distributed_trace_async
|
228
|
+
async def get_security_txt(self, **kwargs: Any) -> str:
|
229
|
+
"""Get Security Txt.
|
230
|
+
|
231
|
+
Get the security.txt file.
|
232
|
+
|
233
|
+
:return: str
|
234
|
+
:rtype: str
|
235
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
236
|
+
"""
|
237
|
+
error_map: MutableMapping = {
|
238
|
+
401: ClientAuthenticationError,
|
239
|
+
404: ResourceNotFoundError,
|
240
|
+
409: ResourceExistsError,
|
241
|
+
304: ResourceNotModifiedError,
|
242
|
+
}
|
243
|
+
error_map.update(kwargs.pop("error_map", {}) or {})
|
244
|
+
|
245
|
+
_headers = kwargs.pop("headers", {}) or {}
|
246
|
+
_params = kwargs.pop("params", {}) or {}
|
247
|
+
|
248
|
+
cls: ClsType[str] = kwargs.pop("cls", None)
|
249
|
+
|
250
|
+
_request = build_well_known_get_security_txt_request(
|
251
|
+
headers=_headers,
|
252
|
+
params=_params,
|
253
|
+
)
|
254
|
+
_request.url = self._client.format_url(_request.url)
|
255
|
+
|
256
|
+
_stream = False
|
257
|
+
pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
|
258
|
+
_request, stream=_stream, **kwargs
|
259
|
+
)
|
260
|
+
|
261
|
+
response = pipeline_response.http_response
|
262
|
+
|
263
|
+
if response.status_code not in [200]:
|
264
|
+
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
265
|
+
raise HttpResponseError(response=response)
|
266
|
+
|
267
|
+
deserialized = self._deserialize("str", pipeline_response.http_response)
|
268
|
+
|
269
|
+
if cls:
|
270
|
+
return cls(pipeline_response, deserialized, {}) # type: ignore
|
271
|
+
|
272
|
+
return deserialized # type: ignore
|
273
|
+
|
200
274
|
|
201
275
|
class AuthOperations: # pylint: disable=abstract-class-instantiated
|
202
276
|
"""
|
@@ -212,18 +286,10 @@ class AuthOperations: # pylint: disable=abstract-class-instantiated
|
|
212
286
|
|
213
287
|
def __init__(self, *args, **kwargs) -> None:
|
214
288
|
input_args = list(args)
|
215
|
-
self._client: AsyncPipelineClient = (
|
216
|
-
|
217
|
-
)
|
218
|
-
self.
|
219
|
-
input_args.pop(0) if input_args else kwargs.pop("config")
|
220
|
-
)
|
221
|
-
self._serialize: Serializer = (
|
222
|
-
input_args.pop(0) if input_args else kwargs.pop("serializer")
|
223
|
-
)
|
224
|
-
self._deserialize: Deserializer = (
|
225
|
-
input_args.pop(0) if input_args else kwargs.pop("deserializer")
|
226
|
-
)
|
289
|
+
self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client")
|
290
|
+
self._config: DiracConfiguration = input_args.pop(0) if input_args else kwargs.pop("config")
|
291
|
+
self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer")
|
292
|
+
self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer")
|
227
293
|
|
228
294
|
raise_if_not_implemented(
|
229
295
|
self.__class__,
|
@@ -292,23 +358,17 @@ class AuthOperations: # pylint: disable=abstract-class-instantiated
|
|
292
358
|
_request.url = self._client.format_url(_request.url)
|
293
359
|
|
294
360
|
_stream = False
|
295
|
-
pipeline_response: PipelineResponse = (
|
296
|
-
|
297
|
-
_request, stream=_stream, **kwargs
|
298
|
-
)
|
361
|
+
pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
|
362
|
+
_request, stream=_stream, **kwargs
|
299
363
|
)
|
300
364
|
|
301
365
|
response = pipeline_response.http_response
|
302
366
|
|
303
367
|
if response.status_code not in [200]:
|
304
|
-
map_error(
|
305
|
-
status_code=response.status_code, response=response, error_map=error_map
|
306
|
-
)
|
368
|
+
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
307
369
|
raise HttpResponseError(response=response)
|
308
370
|
|
309
|
-
deserialized = self._deserialize(
|
310
|
-
"InitiateDeviceFlowResponse", pipeline_response.http_response
|
311
|
-
)
|
371
|
+
deserialized = self._deserialize("InitiateDeviceFlowResponse", pipeline_response.http_response)
|
312
372
|
|
313
373
|
if cls:
|
314
374
|
return cls(pipeline_response, deserialized, {}) # type: ignore
|
@@ -355,18 +415,14 @@ class AuthOperations: # pylint: disable=abstract-class-instantiated
|
|
355
415
|
_request.url = self._client.format_url(_request.url)
|
356
416
|
|
357
417
|
_stream = False
|
358
|
-
pipeline_response: PipelineResponse = (
|
359
|
-
|
360
|
-
_request, stream=_stream, **kwargs
|
361
|
-
)
|
418
|
+
pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
|
419
|
+
_request, stream=_stream, **kwargs
|
362
420
|
)
|
363
421
|
|
364
422
|
response = pipeline_response.http_response
|
365
423
|
|
366
424
|
if response.status_code not in [200]:
|
367
|
-
map_error(
|
368
|
-
status_code=response.status_code, response=response, error_map=error_map
|
369
|
-
)
|
425
|
+
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
370
426
|
raise HttpResponseError(response=response)
|
371
427
|
|
372
428
|
deserialized = self._deserialize("object", pipeline_response.http_response)
|
@@ -380,7 +436,7 @@ class AuthOperations: # pylint: disable=abstract-class-instantiated
|
|
380
436
|
async def finish_device_flow(self, *, code: str, state: str, **kwargs: Any) -> Any:
|
381
437
|
"""Finish Device Flow.
|
382
438
|
|
383
|
-
This the url callbacked by IAM/
|
439
|
+
This the url callbacked by IAM/CheckIn after the authorization
|
384
440
|
flow was granted.
|
385
441
|
It gets us the code we need for the authorization flow, and we
|
386
442
|
can map it to the corresponding device flow using the user_code
|
@@ -416,18 +472,14 @@ class AuthOperations: # pylint: disable=abstract-class-instantiated
|
|
416
472
|
_request.url = self._client.format_url(_request.url)
|
417
473
|
|
418
474
|
_stream = False
|
419
|
-
pipeline_response: PipelineResponse = (
|
420
|
-
|
421
|
-
_request, stream=_stream, **kwargs
|
422
|
-
)
|
475
|
+
pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
|
476
|
+
_request, stream=_stream, **kwargs
|
423
477
|
)
|
424
478
|
|
425
479
|
response = pipeline_response.http_response
|
426
480
|
|
427
481
|
if response.status_code not in [200]:
|
428
|
-
map_error(
|
429
|
-
status_code=response.status_code, response=response, error_map=error_map
|
430
|
-
)
|
482
|
+
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
431
483
|
raise HttpResponseError(response=response)
|
432
484
|
|
433
485
|
deserialized = self._deserialize("object", pipeline_response.http_response)
|
@@ -467,18 +519,14 @@ class AuthOperations: # pylint: disable=abstract-class-instantiated
|
|
467
519
|
_request.url = self._client.format_url(_request.url)
|
468
520
|
|
469
521
|
_stream = False
|
470
|
-
pipeline_response: PipelineResponse = (
|
471
|
-
|
472
|
-
_request, stream=_stream, **kwargs
|
473
|
-
)
|
522
|
+
pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
|
523
|
+
_request, stream=_stream, **kwargs
|
474
524
|
)
|
475
525
|
|
476
526
|
response = pipeline_response.http_response
|
477
527
|
|
478
528
|
if response.status_code not in [200]:
|
479
|
-
map_error(
|
480
|
-
status_code=response.status_code, response=response, error_map=error_map
|
481
|
-
)
|
529
|
+
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
482
530
|
raise HttpResponseError(response=response)
|
483
531
|
|
484
532
|
deserialized = self._deserialize("object", pipeline_response.http_response)
|
@@ -519,18 +567,14 @@ class AuthOperations: # pylint: disable=abstract-class-instantiated
|
|
519
567
|
_request.url = self._client.format_url(_request.url)
|
520
568
|
|
521
569
|
_stream = False
|
522
|
-
pipeline_response: PipelineResponse = (
|
523
|
-
|
524
|
-
_request, stream=_stream, **kwargs
|
525
|
-
)
|
570
|
+
pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
|
571
|
+
_request, stream=_stream, **kwargs
|
526
572
|
)
|
527
573
|
|
528
574
|
response = pipeline_response.http_response
|
529
575
|
|
530
576
|
if response.status_code not in [200]:
|
531
|
-
map_error(
|
532
|
-
status_code=response.status_code, response=response, error_map=error_map
|
533
|
-
)
|
577
|
+
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
534
578
|
raise HttpResponseError(response=response)
|
535
579
|
|
536
580
|
deserialized = self._deserialize("[object]", pipeline_response.http_response)
|
@@ -541,9 +585,7 @@ class AuthOperations: # pylint: disable=abstract-class-instantiated
|
|
541
585
|
return deserialized # type: ignore
|
542
586
|
|
543
587
|
@distributed_trace_async
|
544
|
-
async def revoke_refresh_token_by_refresh_token(
|
545
|
-
self, *, refresh_token: str, client_id: str, **kwargs: Any
|
546
|
-
) -> str:
|
588
|
+
async def revoke_refresh_token_by_refresh_token(self, *, refresh_token: str, client_id: str, **kwargs: Any) -> str:
|
547
589
|
"""Revoke Refresh Token By Refresh Token.
|
548
590
|
|
549
591
|
Revoke a refresh token.
|
@@ -578,18 +620,14 @@ class AuthOperations: # pylint: disable=abstract-class-instantiated
|
|
578
620
|
_request.url = self._client.format_url(_request.url)
|
579
621
|
|
580
622
|
_stream = False
|
581
|
-
pipeline_response: PipelineResponse = (
|
582
|
-
|
583
|
-
_request, stream=_stream, **kwargs
|
584
|
-
)
|
623
|
+
pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
|
624
|
+
_request, stream=_stream, **kwargs
|
585
625
|
)
|
586
626
|
|
587
627
|
response = pipeline_response.http_response
|
588
628
|
|
589
629
|
if response.status_code not in [200]:
|
590
|
-
map_error(
|
591
|
-
status_code=response.status_code, response=response, error_map=error_map
|
592
|
-
)
|
630
|
+
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
593
631
|
raise HttpResponseError(response=response)
|
594
632
|
|
595
633
|
deserialized = self._deserialize("str", pipeline_response.http_response)
|
@@ -633,18 +671,14 @@ class AuthOperations: # pylint: disable=abstract-class-instantiated
|
|
633
671
|
_request.url = self._client.format_url(_request.url)
|
634
672
|
|
635
673
|
_stream = False
|
636
|
-
pipeline_response: PipelineResponse = (
|
637
|
-
|
638
|
-
_request, stream=_stream, **kwargs
|
639
|
-
)
|
674
|
+
pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
|
675
|
+
_request, stream=_stream, **kwargs
|
640
676
|
)
|
641
677
|
|
642
678
|
response = pipeline_response.http_response
|
643
679
|
|
644
680
|
if response.status_code not in [200]:
|
645
|
-
map_error(
|
646
|
-
status_code=response.status_code, response=response, error_map=error_map
|
647
|
-
)
|
681
|
+
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
648
682
|
raise HttpResponseError(response=response)
|
649
683
|
|
650
684
|
deserialized = self._deserialize("str", pipeline_response.http_response)
|
@@ -684,23 +718,17 @@ class AuthOperations: # pylint: disable=abstract-class-instantiated
|
|
684
718
|
_request.url = self._client.format_url(_request.url)
|
685
719
|
|
686
720
|
_stream = False
|
687
|
-
pipeline_response: PipelineResponse = (
|
688
|
-
|
689
|
-
_request, stream=_stream, **kwargs
|
690
|
-
)
|
721
|
+
pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
|
722
|
+
_request, stream=_stream, **kwargs
|
691
723
|
)
|
692
724
|
|
693
725
|
response = pipeline_response.http_response
|
694
726
|
|
695
727
|
if response.status_code not in [200]:
|
696
|
-
map_error(
|
697
|
-
status_code=response.status_code, response=response, error_map=error_map
|
698
|
-
)
|
728
|
+
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
699
729
|
raise HttpResponseError(response=response)
|
700
730
|
|
701
|
-
deserialized = self._deserialize(
|
702
|
-
"UserInfoResponse", pipeline_response.http_response
|
703
|
-
)
|
731
|
+
deserialized = self._deserialize("UserInfoResponse", pipeline_response.http_response)
|
704
732
|
|
705
733
|
if cls:
|
706
734
|
return cls(pipeline_response, deserialized, {}) # type: ignore
|
@@ -718,7 +746,7 @@ class AuthOperations: # pylint: disable=abstract-class-instantiated
|
|
718
746
|
redirect_uri: str,
|
719
747
|
scope: str,
|
720
748
|
state: str,
|
721
|
-
**kwargs: Any
|
749
|
+
**kwargs: Any
|
722
750
|
) -> Any:
|
723
751
|
"""Initiate Authorization Flow.
|
724
752
|
|
@@ -794,18 +822,14 @@ class AuthOperations: # pylint: disable=abstract-class-instantiated
|
|
794
822
|
_request.url = self._client.format_url(_request.url)
|
795
823
|
|
796
824
|
_stream = False
|
797
|
-
pipeline_response: PipelineResponse = (
|
798
|
-
|
799
|
-
_request, stream=_stream, **kwargs
|
800
|
-
)
|
825
|
+
pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
|
826
|
+
_request, stream=_stream, **kwargs
|
801
827
|
)
|
802
828
|
|
803
829
|
response = pipeline_response.http_response
|
804
830
|
|
805
831
|
if response.status_code not in [200]:
|
806
|
-
map_error(
|
807
|
-
status_code=response.status_code, response=response, error_map=error_map
|
808
|
-
)
|
832
|
+
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
809
833
|
raise HttpResponseError(response=response)
|
810
834
|
|
811
835
|
deserialized = self._deserialize("object", pipeline_response.http_response)
|
@@ -816,9 +840,7 @@ class AuthOperations: # pylint: disable=abstract-class-instantiated
|
|
816
840
|
return deserialized # type: ignore
|
817
841
|
|
818
842
|
@distributed_trace_async
|
819
|
-
async def complete_authorization_flow(
|
820
|
-
self, *, code: str, state: str, **kwargs: Any
|
821
|
-
) -> Any:
|
843
|
+
async def complete_authorization_flow(self, *, code: str, state: str, **kwargs: Any) -> Any:
|
822
844
|
"""Complete Authorization Flow.
|
823
845
|
|
824
846
|
Complete the authorization flow.
|
@@ -859,18 +881,14 @@ class AuthOperations: # pylint: disable=abstract-class-instantiated
|
|
859
881
|
_request.url = self._client.format_url(_request.url)
|
860
882
|
|
861
883
|
_stream = False
|
862
|
-
pipeline_response: PipelineResponse = (
|
863
|
-
|
864
|
-
_request, stream=_stream, **kwargs
|
865
|
-
)
|
884
|
+
pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
|
885
|
+
_request, stream=_stream, **kwargs
|
866
886
|
)
|
867
887
|
|
868
888
|
response = pipeline_response.http_response
|
869
889
|
|
870
890
|
if response.status_code not in [200]:
|
871
|
-
map_error(
|
872
|
-
status_code=response.status_code, response=response, error_map=error_map
|
873
|
-
)
|
891
|
+
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
874
892
|
raise HttpResponseError(response=response)
|
875
893
|
|
876
894
|
deserialized = self._deserialize("object", pipeline_response.http_response)
|
@@ -895,18 +913,10 @@ class ConfigOperations:
|
|
895
913
|
|
896
914
|
def __init__(self, *args, **kwargs) -> None:
|
897
915
|
input_args = list(args)
|
898
|
-
self._client: AsyncPipelineClient = (
|
899
|
-
|
900
|
-
)
|
901
|
-
self.
|
902
|
-
input_args.pop(0) if input_args else kwargs.pop("config")
|
903
|
-
)
|
904
|
-
self._serialize: Serializer = (
|
905
|
-
input_args.pop(0) if input_args else kwargs.pop("serializer")
|
906
|
-
)
|
907
|
-
self._deserialize: Deserializer = (
|
908
|
-
input_args.pop(0) if input_args else kwargs.pop("deserializer")
|
909
|
-
)
|
916
|
+
self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client")
|
917
|
+
self._config: DiracConfiguration = input_args.pop(0) if input_args else kwargs.pop("config")
|
918
|
+
self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer")
|
919
|
+
self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer")
|
910
920
|
|
911
921
|
@distributed_trace_async
|
912
922
|
async def serve_config(
|
@@ -915,7 +925,7 @@ class ConfigOperations:
|
|
915
925
|
if_modified_since: Optional[str] = None,
|
916
926
|
etag: Optional[str] = None,
|
917
927
|
match_condition: Optional[MatchConditions] = None,
|
918
|
-
**kwargs: Any
|
928
|
+
**kwargs: Any
|
919
929
|
) -> Any:
|
920
930
|
"""Serve Config.
|
921
931
|
|
@@ -966,18 +976,14 @@ class ConfigOperations:
|
|
966
976
|
_request.url = self._client.format_url(_request.url)
|
967
977
|
|
968
978
|
_stream = False
|
969
|
-
pipeline_response: PipelineResponse = (
|
970
|
-
|
971
|
-
_request, stream=_stream, **kwargs
|
972
|
-
)
|
979
|
+
pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
|
980
|
+
_request, stream=_stream, **kwargs
|
973
981
|
)
|
974
982
|
|
975
983
|
response = pipeline_response.http_response
|
976
984
|
|
977
985
|
if response.status_code not in [200]:
|
978
|
-
map_error(
|
979
|
-
status_code=response.status_code, response=response, error_map=error_map
|
980
|
-
)
|
986
|
+
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
981
987
|
raise HttpResponseError(response=response)
|
982
988
|
|
983
989
|
deserialized = self._deserialize("object", pipeline_response.http_response)
|
@@ -1002,26 +1008,14 @@ class JobsOperations:
|
|
1002
1008
|
|
1003
1009
|
def __init__(self, *args, **kwargs) -> None:
|
1004
1010
|
input_args = list(args)
|
1005
|
-
self._client: AsyncPipelineClient = (
|
1006
|
-
|
1007
|
-
)
|
1008
|
-
self.
|
1009
|
-
input_args.pop(0) if input_args else kwargs.pop("config")
|
1010
|
-
)
|
1011
|
-
self._serialize: Serializer = (
|
1012
|
-
input_args.pop(0) if input_args else kwargs.pop("serializer")
|
1013
|
-
)
|
1014
|
-
self._deserialize: Deserializer = (
|
1015
|
-
input_args.pop(0) if input_args else kwargs.pop("deserializer")
|
1016
|
-
)
|
1011
|
+
self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client")
|
1012
|
+
self._config: DiracConfiguration = input_args.pop(0) if input_args else kwargs.pop("config")
|
1013
|
+
self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer")
|
1014
|
+
self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer")
|
1017
1015
|
|
1018
1016
|
@overload
|
1019
1017
|
async def initiate_sandbox_upload(
|
1020
|
-
self,
|
1021
|
-
body: _models.SandboxInfo,
|
1022
|
-
*,
|
1023
|
-
content_type: str = "application/json",
|
1024
|
-
**kwargs: Any,
|
1018
|
+
self, body: _models.SandboxInfo, *, content_type: str = "application/json", **kwargs: Any
|
1025
1019
|
) -> _models.SandboxUploadResponse:
|
1026
1020
|
"""Initiate Sandbox Upload.
|
1027
1021
|
|
@@ -1098,9 +1092,7 @@ class JobsOperations:
|
|
1098
1092
|
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
1099
1093
|
_params = kwargs.pop("params", {}) or {}
|
1100
1094
|
|
1101
|
-
content_type: Optional[str] = kwargs.pop(
|
1102
|
-
"content_type", _headers.pop("Content-Type", None)
|
1103
|
-
)
|
1095
|
+
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
1104
1096
|
cls: ClsType[_models.SandboxUploadResponse] = kwargs.pop("cls", None)
|
1105
1097
|
|
1106
1098
|
content_type = content_type or "application/json"
|
@@ -1121,23 +1113,17 @@ class JobsOperations:
|
|
1121
1113
|
_request.url = self._client.format_url(_request.url)
|
1122
1114
|
|
1123
1115
|
_stream = False
|
1124
|
-
pipeline_response: PipelineResponse = (
|
1125
|
-
|
1126
|
-
_request, stream=_stream, **kwargs
|
1127
|
-
)
|
1116
|
+
pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
|
1117
|
+
_request, stream=_stream, **kwargs
|
1128
1118
|
)
|
1129
1119
|
|
1130
1120
|
response = pipeline_response.http_response
|
1131
1121
|
|
1132
1122
|
if response.status_code not in [200]:
|
1133
|
-
map_error(
|
1134
|
-
status_code=response.status_code, response=response, error_map=error_map
|
1135
|
-
)
|
1123
|
+
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
1136
1124
|
raise HttpResponseError(response=response)
|
1137
1125
|
|
1138
|
-
deserialized = self._deserialize(
|
1139
|
-
"SandboxUploadResponse", pipeline_response.http_response
|
1140
|
-
)
|
1126
|
+
deserialized = self._deserialize("SandboxUploadResponse", pipeline_response.http_response)
|
1141
1127
|
|
1142
1128
|
if cls:
|
1143
1129
|
return cls(pipeline_response, deserialized, {}) # type: ignore
|
@@ -1145,9 +1131,7 @@ class JobsOperations:
|
|
1145
1131
|
return deserialized # type: ignore
|
1146
1132
|
|
1147
1133
|
@distributed_trace_async
|
1148
|
-
async def get_sandbox_file(
|
1149
|
-
self, *, pfn: str, **kwargs: Any
|
1150
|
-
) -> _models.SandboxDownloadResponse:
|
1134
|
+
async def get_sandbox_file(self, *, pfn: str, **kwargs: Any) -> _models.SandboxDownloadResponse:
|
1151
1135
|
"""Get Sandbox File.
|
1152
1136
|
|
1153
1137
|
Get a presigned URL to download a sandbox file.
|
@@ -1185,23 +1169,17 @@ class JobsOperations:
|
|
1185
1169
|
_request.url = self._client.format_url(_request.url)
|
1186
1170
|
|
1187
1171
|
_stream = False
|
1188
|
-
pipeline_response: PipelineResponse = (
|
1189
|
-
|
1190
|
-
_request, stream=_stream, **kwargs
|
1191
|
-
)
|
1172
|
+
pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
|
1173
|
+
_request, stream=_stream, **kwargs
|
1192
1174
|
)
|
1193
1175
|
|
1194
1176
|
response = pipeline_response.http_response
|
1195
1177
|
|
1196
1178
|
if response.status_code not in [200]:
|
1197
|
-
map_error(
|
1198
|
-
status_code=response.status_code, response=response, error_map=error_map
|
1199
|
-
)
|
1179
|
+
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
1200
1180
|
raise HttpResponseError(response=response)
|
1201
1181
|
|
1202
|
-
deserialized = self._deserialize(
|
1203
|
-
"SandboxDownloadResponse", pipeline_response.http_response
|
1204
|
-
)
|
1182
|
+
deserialized = self._deserialize("SandboxDownloadResponse", pipeline_response.http_response)
|
1205
1183
|
|
1206
1184
|
if cls:
|
1207
1185
|
return cls(pipeline_response, deserialized, {}) # type: ignore
|
@@ -1209,9 +1187,7 @@ class JobsOperations:
|
|
1209
1187
|
return deserialized # type: ignore
|
1210
1188
|
|
1211
1189
|
@distributed_trace_async
|
1212
|
-
async def unassign_bulk_jobs_sandboxes(
|
1213
|
-
self, *, jobs_ids: List[int], **kwargs: Any
|
1214
|
-
) -> Any:
|
1190
|
+
async def unassign_bulk_jobs_sandboxes(self, *, jobs_ids: List[int], **kwargs: Any) -> Any:
|
1215
1191
|
"""Unassign Bulk Jobs Sandboxes.
|
1216
1192
|
|
1217
1193
|
Delete bulk jobs sandbox mapping.
|
@@ -1243,18 +1219,14 @@ class JobsOperations:
|
|
1243
1219
|
_request.url = self._client.format_url(_request.url)
|
1244
1220
|
|
1245
1221
|
_stream = False
|
1246
|
-
pipeline_response: PipelineResponse = (
|
1247
|
-
|
1248
|
-
_request, stream=_stream, **kwargs
|
1249
|
-
)
|
1222
|
+
pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
|
1223
|
+
_request, stream=_stream, **kwargs
|
1250
1224
|
)
|
1251
1225
|
|
1252
1226
|
response = pipeline_response.http_response
|
1253
1227
|
|
1254
1228
|
if response.status_code not in [200]:
|
1255
|
-
map_error(
|
1256
|
-
status_code=response.status_code, response=response, error_map=error_map
|
1257
|
-
)
|
1229
|
+
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
1258
1230
|
raise HttpResponseError(response=response)
|
1259
1231
|
|
1260
1232
|
deserialized = self._deserialize("object", pipeline_response.http_response)
|
@@ -1265,9 +1237,7 @@ class JobsOperations:
|
|
1265
1237
|
return deserialized # type: ignore
|
1266
1238
|
|
1267
1239
|
@distributed_trace_async
|
1268
|
-
async def get_job_sandboxes(
|
1269
|
-
self, job_id: int, **kwargs: Any
|
1270
|
-
) -> Dict[str, List[Any]]:
|
1240
|
+
async def get_job_sandboxes(self, job_id: int, **kwargs: Any) -> Dict[str, List[Any]]:
|
1271
1241
|
"""Get Job Sandboxes.
|
1272
1242
|
|
1273
1243
|
Get input and output sandboxes of given job.
|
@@ -1299,18 +1269,14 @@ class JobsOperations:
|
|
1299
1269
|
_request.url = self._client.format_url(_request.url)
|
1300
1270
|
|
1301
1271
|
_stream = False
|
1302
|
-
pipeline_response: PipelineResponse = (
|
1303
|
-
|
1304
|
-
_request, stream=_stream, **kwargs
|
1305
|
-
)
|
1272
|
+
pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
|
1273
|
+
_request, stream=_stream, **kwargs
|
1306
1274
|
)
|
1307
1275
|
|
1308
1276
|
response = pipeline_response.http_response
|
1309
1277
|
|
1310
1278
|
if response.status_code not in [200]:
|
1311
|
-
map_error(
|
1312
|
-
status_code=response.status_code, response=response, error_map=error_map
|
1313
|
-
)
|
1279
|
+
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
1314
1280
|
raise HttpResponseError(response=response)
|
1315
1281
|
|
1316
1282
|
deserialized = self._deserialize("{[object]}", pipeline_response.http_response)
|
@@ -1353,18 +1319,14 @@ class JobsOperations:
|
|
1353
1319
|
_request.url = self._client.format_url(_request.url)
|
1354
1320
|
|
1355
1321
|
_stream = False
|
1356
|
-
pipeline_response: PipelineResponse = (
|
1357
|
-
|
1358
|
-
_request, stream=_stream, **kwargs
|
1359
|
-
)
|
1322
|
+
pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
|
1323
|
+
_request, stream=_stream, **kwargs
|
1360
1324
|
)
|
1361
1325
|
|
1362
1326
|
response = pipeline_response.http_response
|
1363
1327
|
|
1364
1328
|
if response.status_code not in [200]:
|
1365
|
-
map_error(
|
1366
|
-
status_code=response.status_code, response=response, error_map=error_map
|
1367
|
-
)
|
1329
|
+
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
1368
1330
|
raise HttpResponseError(response=response)
|
1369
1331
|
|
1370
1332
|
deserialized = self._deserialize("object", pipeline_response.http_response)
|
@@ -1412,18 +1374,14 @@ class JobsOperations:
|
|
1412
1374
|
_request.url = self._client.format_url(_request.url)
|
1413
1375
|
|
1414
1376
|
_stream = False
|
1415
|
-
pipeline_response: PipelineResponse = (
|
1416
|
-
|
1417
|
-
_request, stream=_stream, **kwargs
|
1418
|
-
)
|
1377
|
+
pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
|
1378
|
+
_request, stream=_stream, **kwargs
|
1419
1379
|
)
|
1420
1380
|
|
1421
1381
|
response = pipeline_response.http_response
|
1422
1382
|
|
1423
1383
|
if response.status_code not in [200]:
|
1424
|
-
map_error(
|
1425
|
-
status_code=response.status_code, response=response, error_map=error_map
|
1426
|
-
)
|
1384
|
+
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
1427
1385
|
raise HttpResponseError(response=response)
|
1428
1386
|
|
1429
1387
|
deserialized = self._deserialize("[object]", pipeline_response.http_response)
|
@@ -1458,9 +1416,7 @@ class JobsOperations:
|
|
1458
1416
|
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
1459
1417
|
_params = kwargs.pop("params", {}) or {}
|
1460
1418
|
|
1461
|
-
content_type: str = kwargs.pop(
|
1462
|
-
"content_type", _headers.pop("Content-Type", "application/json")
|
1463
|
-
)
|
1419
|
+
content_type: str = kwargs.pop("content_type", _headers.pop("Content-Type", "application/json"))
|
1464
1420
|
cls: ClsType[Any] = kwargs.pop("cls", None)
|
1465
1421
|
|
1466
1422
|
_content = self._serialize.body(body, "str")
|
@@ -1475,18 +1431,14 @@ class JobsOperations:
|
|
1475
1431
|
_request.url = self._client.format_url(_request.url)
|
1476
1432
|
|
1477
1433
|
_stream = False
|
1478
|
-
pipeline_response: PipelineResponse = (
|
1479
|
-
|
1480
|
-
_request, stream=_stream, **kwargs
|
1481
|
-
)
|
1434
|
+
pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
|
1435
|
+
_request, stream=_stream, **kwargs
|
1482
1436
|
)
|
1483
1437
|
|
1484
1438
|
response = pipeline_response.http_response
|
1485
1439
|
|
1486
1440
|
if response.status_code not in [200]:
|
1487
|
-
map_error(
|
1488
|
-
status_code=response.status_code, response=response, error_map=error_map
|
1489
|
-
)
|
1441
|
+
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
1490
1442
|
raise HttpResponseError(response=response)
|
1491
1443
|
|
1492
1444
|
deserialized = self._deserialize("object", pipeline_response.http_response)
|
@@ -1534,18 +1486,14 @@ class JobsOperations:
|
|
1534
1486
|
_request.url = self._client.format_url(_request.url)
|
1535
1487
|
|
1536
1488
|
_stream = False
|
1537
|
-
pipeline_response: PipelineResponse = (
|
1538
|
-
|
1539
|
-
_request, stream=_stream, **kwargs
|
1540
|
-
)
|
1489
|
+
pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
|
1490
|
+
_request, stream=_stream, **kwargs
|
1541
1491
|
)
|
1542
1492
|
|
1543
1493
|
response = pipeline_response.http_response
|
1544
1494
|
|
1545
1495
|
if response.status_code not in [200]:
|
1546
|
-
map_error(
|
1547
|
-
status_code=response.status_code, response=response, error_map=error_map
|
1548
|
-
)
|
1496
|
+
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
1549
1497
|
raise HttpResponseError(response=response)
|
1550
1498
|
|
1551
1499
|
deserialized = self._deserialize("object", pipeline_response.http_response)
|
@@ -1562,7 +1510,7 @@ class JobsOperations:
|
|
1562
1510
|
*,
|
1563
1511
|
force: bool = False,
|
1564
1512
|
content_type: str = "application/json",
|
1565
|
-
**kwargs: Any
|
1513
|
+
**kwargs: Any
|
1566
1514
|
) -> _models.SetJobStatusReturn:
|
1567
1515
|
"""Set Job Statuses.
|
1568
1516
|
|
@@ -1582,12 +1530,7 @@ class JobsOperations:
|
|
1582
1530
|
|
1583
1531
|
@overload
|
1584
1532
|
async def set_job_statuses(
|
1585
|
-
self,
|
1586
|
-
body: IO[bytes],
|
1587
|
-
*,
|
1588
|
-
force: bool = False,
|
1589
|
-
content_type: str = "application/json",
|
1590
|
-
**kwargs: Any,
|
1533
|
+
self, body: IO[bytes], *, force: bool = False, content_type: str = "application/json", **kwargs: Any
|
1591
1534
|
) -> _models.SetJobStatusReturn:
|
1592
1535
|
"""Set Job Statuses.
|
1593
1536
|
|
@@ -1611,7 +1554,7 @@ class JobsOperations:
|
|
1611
1554
|
body: Union[Dict[str, Dict[str, _models.JobStatusUpdate]], IO[bytes]],
|
1612
1555
|
*,
|
1613
1556
|
force: bool = False,
|
1614
|
-
**kwargs: Any
|
1557
|
+
**kwargs: Any
|
1615
1558
|
) -> _models.SetJobStatusReturn:
|
1616
1559
|
"""Set Job Statuses.
|
1617
1560
|
|
@@ -1636,9 +1579,7 @@ class JobsOperations:
|
|
1636
1579
|
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
1637
1580
|
_params = kwargs.pop("params", {}) or {}
|
1638
1581
|
|
1639
|
-
content_type: Optional[str] = kwargs.pop(
|
1640
|
-
"content_type", _headers.pop("Content-Type", None)
|
1641
|
-
)
|
1582
|
+
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
1642
1583
|
cls: ClsType[_models.SetJobStatusReturn] = kwargs.pop("cls", None)
|
1643
1584
|
|
1644
1585
|
content_type = content_type or "application/json"
|
@@ -1660,23 +1601,17 @@ class JobsOperations:
|
|
1660
1601
|
_request.url = self._client.format_url(_request.url)
|
1661
1602
|
|
1662
1603
|
_stream = False
|
1663
|
-
pipeline_response: PipelineResponse = (
|
1664
|
-
|
1665
|
-
_request, stream=_stream, **kwargs
|
1666
|
-
)
|
1604
|
+
pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
|
1605
|
+
_request, stream=_stream, **kwargs
|
1667
1606
|
)
|
1668
1607
|
|
1669
1608
|
response = pipeline_response.http_response
|
1670
1609
|
|
1671
1610
|
if response.status_code not in [200]:
|
1672
|
-
map_error(
|
1673
|
-
status_code=response.status_code, response=response, error_map=error_map
|
1674
|
-
)
|
1611
|
+
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
1675
1612
|
raise HttpResponseError(response=response)
|
1676
1613
|
|
1677
|
-
deserialized = self._deserialize(
|
1678
|
-
"SetJobStatusReturn", pipeline_response.http_response
|
1679
|
-
)
|
1614
|
+
deserialized = self._deserialize("SetJobStatusReturn", pipeline_response.http_response)
|
1680
1615
|
|
1681
1616
|
if cls:
|
1682
1617
|
return cls(pipeline_response, deserialized, {}) # type: ignore
|
@@ -1685,11 +1620,7 @@ class JobsOperations:
|
|
1685
1620
|
|
1686
1621
|
@overload
|
1687
1622
|
async def add_heartbeat(
|
1688
|
-
self,
|
1689
|
-
body: Dict[str, _models.HeartbeatData],
|
1690
|
-
*,
|
1691
|
-
content_type: str = "application/json",
|
1692
|
-
**kwargs: Any,
|
1623
|
+
self, body: Dict[str, _models.HeartbeatData], *, content_type: str = "application/json", **kwargs: Any
|
1693
1624
|
) -> List[_models.JobCommand]:
|
1694
1625
|
"""Add Heartbeat.
|
1695
1626
|
|
@@ -1766,9 +1697,7 @@ class JobsOperations:
|
|
1766
1697
|
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
1767
1698
|
_params = kwargs.pop("params", {}) or {}
|
1768
1699
|
|
1769
|
-
content_type: Optional[str] = kwargs.pop(
|
1770
|
-
"content_type", _headers.pop("Content-Type", None)
|
1771
|
-
)
|
1700
|
+
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
1772
1701
|
cls: ClsType[List[_models.JobCommand]] = kwargs.pop("cls", None)
|
1773
1702
|
|
1774
1703
|
content_type = content_type or "application/json"
|
@@ -1789,23 +1718,17 @@ class JobsOperations:
|
|
1789
1718
|
_request.url = self._client.format_url(_request.url)
|
1790
1719
|
|
1791
1720
|
_stream = False
|
1792
|
-
pipeline_response: PipelineResponse = (
|
1793
|
-
|
1794
|
-
_request, stream=_stream, **kwargs
|
1795
|
-
)
|
1721
|
+
pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
|
1722
|
+
_request, stream=_stream, **kwargs
|
1796
1723
|
)
|
1797
1724
|
|
1798
1725
|
response = pipeline_response.http_response
|
1799
1726
|
|
1800
1727
|
if response.status_code not in [200]:
|
1801
|
-
map_error(
|
1802
|
-
status_code=response.status_code, response=response, error_map=error_map
|
1803
|
-
)
|
1728
|
+
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
1804
1729
|
raise HttpResponseError(response=response)
|
1805
1730
|
|
1806
|
-
deserialized = self._deserialize(
|
1807
|
-
"[JobCommand]", pipeline_response.http_response
|
1808
|
-
)
|
1731
|
+
deserialized = self._deserialize("[JobCommand]", pipeline_response.http_response)
|
1809
1732
|
|
1810
1733
|
if cls:
|
1811
1734
|
return cls(pipeline_response, deserialized, {}) # type: ignore
|
@@ -1813,9 +1736,7 @@ class JobsOperations:
|
|
1813
1736
|
return deserialized # type: ignore
|
1814
1737
|
|
1815
1738
|
@distributed_trace_async
|
1816
|
-
async def reschedule_jobs(
|
1817
|
-
self, *, job_ids: List[int], reset_jobs: bool = False, **kwargs: Any
|
1818
|
-
) -> Dict[str, Any]:
|
1739
|
+
async def reschedule_jobs(self, *, job_ids: List[int], reset_jobs: bool = False, **kwargs: Any) -> Dict[str, Any]:
|
1819
1740
|
"""Reschedule Jobs.
|
1820
1741
|
|
1821
1742
|
Reschedule Jobs.
|
@@ -1850,18 +1771,14 @@ class JobsOperations:
|
|
1850
1771
|
_request.url = self._client.format_url(_request.url)
|
1851
1772
|
|
1852
1773
|
_stream = False
|
1853
|
-
pipeline_response: PipelineResponse = (
|
1854
|
-
|
1855
|
-
_request, stream=_stream, **kwargs
|
1856
|
-
)
|
1774
|
+
pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
|
1775
|
+
_request, stream=_stream, **kwargs
|
1857
1776
|
)
|
1858
1777
|
|
1859
1778
|
response = pipeline_response.http_response
|
1860
1779
|
|
1861
1780
|
if response.status_code not in [200]:
|
1862
|
-
map_error(
|
1863
|
-
status_code=response.status_code, response=response, error_map=error_map
|
1864
|
-
)
|
1781
|
+
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
1865
1782
|
raise HttpResponseError(response=response)
|
1866
1783
|
|
1867
1784
|
deserialized = self._deserialize("{object}", pipeline_response.http_response)
|
@@ -1873,11 +1790,7 @@ class JobsOperations:
|
|
1873
1790
|
|
1874
1791
|
@overload
|
1875
1792
|
async def patch_metadata(
|
1876
|
-
self,
|
1877
|
-
body: Dict[str, Dict[str, Any]],
|
1878
|
-
*,
|
1879
|
-
content_type: str = "application/json",
|
1880
|
-
**kwargs: Any,
|
1793
|
+
self, body: Dict[str, Dict[str, Any]], *, content_type: str = "application/json", **kwargs: Any
|
1881
1794
|
) -> None:
|
1882
1795
|
"""Patch Metadata.
|
1883
1796
|
|
@@ -1894,9 +1807,7 @@ class JobsOperations:
|
|
1894
1807
|
"""
|
1895
1808
|
|
1896
1809
|
@overload
|
1897
|
-
async def patch_metadata(
|
1898
|
-
self, body: IO[bytes], *, content_type: str = "application/json", **kwargs: Any
|
1899
|
-
) -> None:
|
1810
|
+
async def patch_metadata(self, body: IO[bytes], *, content_type: str = "application/json", **kwargs: Any) -> None:
|
1900
1811
|
"""Patch Metadata.
|
1901
1812
|
|
1902
1813
|
Patch Metadata.
|
@@ -1912,9 +1823,7 @@ class JobsOperations:
|
|
1912
1823
|
"""
|
1913
1824
|
|
1914
1825
|
@distributed_trace_async
|
1915
|
-
async def patch_metadata(
|
1916
|
-
self, body: Union[Dict[str, Dict[str, Any]], IO[bytes]], **kwargs: Any
|
1917
|
-
) -> None:
|
1826
|
+
async def patch_metadata(self, body: Union[Dict[str, Dict[str, Any]], IO[bytes]], **kwargs: Any) -> None:
|
1918
1827
|
"""Patch Metadata.
|
1919
1828
|
|
1920
1829
|
Patch Metadata.
|
@@ -1936,9 +1845,7 @@ class JobsOperations:
|
|
1936
1845
|
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
1937
1846
|
_params = kwargs.pop("params", {}) or {}
|
1938
1847
|
|
1939
|
-
content_type: Optional[str] = kwargs.pop(
|
1940
|
-
"content_type", _headers.pop("Content-Type", None)
|
1941
|
-
)
|
1848
|
+
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
1942
1849
|
cls: ClsType[None] = kwargs.pop("cls", None)
|
1943
1850
|
|
1944
1851
|
content_type = content_type or "application/json"
|
@@ -1959,18 +1866,14 @@ class JobsOperations:
|
|
1959
1866
|
_request.url = self._client.format_url(_request.url)
|
1960
1867
|
|
1961
1868
|
_stream = False
|
1962
|
-
pipeline_response: PipelineResponse = (
|
1963
|
-
|
1964
|
-
_request, stream=_stream, **kwargs
|
1965
|
-
)
|
1869
|
+
pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
|
1870
|
+
_request, stream=_stream, **kwargs
|
1966
1871
|
)
|
1967
1872
|
|
1968
1873
|
response = pipeline_response.http_response
|
1969
1874
|
|
1970
1875
|
if response.status_code not in [204]:
|
1971
|
-
map_error(
|
1972
|
-
status_code=response.status_code, response=response, error_map=error_map
|
1973
|
-
)
|
1876
|
+
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
1974
1877
|
raise HttpResponseError(response=response)
|
1975
1878
|
|
1976
1879
|
if cls:
|
@@ -1984,7 +1887,7 @@ class JobsOperations:
|
|
1984
1887
|
page: int = 1,
|
1985
1888
|
per_page: int = 100,
|
1986
1889
|
content_type: str = "application/json",
|
1987
|
-
**kwargs: Any
|
1890
|
+
**kwargs: Any
|
1988
1891
|
) -> List[Dict[str, Any]]:
|
1989
1892
|
"""Search.
|
1990
1893
|
|
@@ -2014,7 +1917,7 @@ class JobsOperations:
|
|
2014
1917
|
page: int = 1,
|
2015
1918
|
per_page: int = 100,
|
2016
1919
|
content_type: str = "application/json",
|
2017
|
-
**kwargs: Any
|
1920
|
+
**kwargs: Any
|
2018
1921
|
) -> List[Dict[str, Any]]:
|
2019
1922
|
"""Search.
|
2020
1923
|
|
@@ -2043,7 +1946,7 @@ class JobsOperations:
|
|
2043
1946
|
*,
|
2044
1947
|
page: int = 1,
|
2045
1948
|
per_page: int = 100,
|
2046
|
-
**kwargs: Any
|
1949
|
+
**kwargs: Any
|
2047
1950
|
) -> List[Dict[str, Any]]:
|
2048
1951
|
"""Search.
|
2049
1952
|
|
@@ -2072,9 +1975,7 @@ class JobsOperations:
|
|
2072
1975
|
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
2073
1976
|
_params = kwargs.pop("params", {}) or {}
|
2074
1977
|
|
2075
|
-
content_type: Optional[str] = kwargs.pop(
|
2076
|
-
"content_type", _headers.pop("Content-Type", None)
|
2077
|
-
)
|
1978
|
+
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
2078
1979
|
cls: ClsType[List[Dict[str, Any]]] = kwargs.pop("cls", None)
|
2079
1980
|
|
2080
1981
|
content_type = content_type or "application/json"
|
@@ -2100,25 +2001,19 @@ class JobsOperations:
|
|
2100
2001
|
_request.url = self._client.format_url(_request.url)
|
2101
2002
|
|
2102
2003
|
_stream = False
|
2103
|
-
pipeline_response: PipelineResponse = (
|
2104
|
-
|
2105
|
-
_request, stream=_stream, **kwargs
|
2106
|
-
)
|
2004
|
+
pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
|
2005
|
+
_request, stream=_stream, **kwargs
|
2107
2006
|
)
|
2108
2007
|
|
2109
2008
|
response = pipeline_response.http_response
|
2110
2009
|
|
2111
2010
|
if response.status_code not in [200, 206]:
|
2112
|
-
map_error(
|
2113
|
-
status_code=response.status_code, response=response, error_map=error_map
|
2114
|
-
)
|
2011
|
+
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
2115
2012
|
raise HttpResponseError(response=response)
|
2116
2013
|
|
2117
2014
|
response_headers = {}
|
2118
2015
|
if response.status_code == 206:
|
2119
|
-
response_headers["Content-Range"] = self._deserialize(
|
2120
|
-
"str", response.headers.get("Content-Range")
|
2121
|
-
)
|
2016
|
+
response_headers["Content-Range"] = self._deserialize("str", response.headers.get("Content-Range"))
|
2122
2017
|
|
2123
2018
|
deserialized = self._deserialize("[{object}]", pipeline_response.http_response)
|
2124
2019
|
|
@@ -2129,11 +2024,7 @@ class JobsOperations:
|
|
2129
2024
|
|
2130
2025
|
@overload
|
2131
2026
|
async def summary(
|
2132
|
-
self,
|
2133
|
-
body: _models.JobSummaryParams,
|
2134
|
-
*,
|
2135
|
-
content_type: str = "application/json",
|
2136
|
-
**kwargs: Any,
|
2027
|
+
self, body: _models.JobSummaryParams, *, content_type: str = "application/json", **kwargs: Any
|
2137
2028
|
) -> Any:
|
2138
2029
|
"""Summary.
|
2139
2030
|
|
@@ -2150,9 +2041,7 @@ class JobsOperations:
|
|
2150
2041
|
"""
|
2151
2042
|
|
2152
2043
|
@overload
|
2153
|
-
async def summary(
|
2154
|
-
self, body: IO[bytes], *, content_type: str = "application/json", **kwargs: Any
|
2155
|
-
) -> Any:
|
2044
|
+
async def summary(self, body: IO[bytes], *, content_type: str = "application/json", **kwargs: Any) -> Any:
|
2156
2045
|
"""Summary.
|
2157
2046
|
|
2158
2047
|
Show information suitable for plotting.
|
@@ -2168,9 +2057,7 @@ class JobsOperations:
|
|
2168
2057
|
"""
|
2169
2058
|
|
2170
2059
|
@distributed_trace_async
|
2171
|
-
async def summary(
|
2172
|
-
self, body: Union[_models.JobSummaryParams, IO[bytes]], **kwargs: Any
|
2173
|
-
) -> Any:
|
2060
|
+
async def summary(self, body: Union[_models.JobSummaryParams, IO[bytes]], **kwargs: Any) -> Any:
|
2174
2061
|
"""Summary.
|
2175
2062
|
|
2176
2063
|
Show information suitable for plotting.
|
@@ -2192,9 +2079,7 @@ class JobsOperations:
|
|
2192
2079
|
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
2193
2080
|
_params = kwargs.pop("params", {}) or {}
|
2194
2081
|
|
2195
|
-
content_type: Optional[str] = kwargs.pop(
|
2196
|
-
"content_type", _headers.pop("Content-Type", None)
|
2197
|
-
)
|
2082
|
+
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
2198
2083
|
cls: ClsType[Any] = kwargs.pop("cls", None)
|
2199
2084
|
|
2200
2085
|
content_type = content_type or "application/json"
|
@@ -2215,18 +2100,14 @@ class JobsOperations:
|
|
2215
2100
|
_request.url = self._client.format_url(_request.url)
|
2216
2101
|
|
2217
2102
|
_stream = False
|
2218
|
-
pipeline_response: PipelineResponse = (
|
2219
|
-
|
2220
|
-
_request, stream=_stream, **kwargs
|
2221
|
-
)
|
2103
|
+
pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
|
2104
|
+
_request, stream=_stream, **kwargs
|
2222
2105
|
)
|
2223
2106
|
|
2224
2107
|
response = pipeline_response.http_response
|
2225
2108
|
|
2226
2109
|
if response.status_code not in [200]:
|
2227
|
-
map_error(
|
2228
|
-
status_code=response.status_code, response=response, error_map=error_map
|
2229
|
-
)
|
2110
|
+
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
2230
2111
|
raise HttpResponseError(response=response)
|
2231
2112
|
|
2232
2113
|
deserialized = self._deserialize("object", pipeline_response.http_response)
|
@@ -2273,9 +2154,7 @@ class JobsOperations:
|
|
2273
2154
|
"""
|
2274
2155
|
|
2275
2156
|
@distributed_trace_async
|
2276
|
-
async def submit_jdl_jobs(
|
2277
|
-
self, body: Union[List[str], IO[bytes]], **kwargs: Any
|
2278
|
-
) -> List[_models.InsertedJob]:
|
2157
|
+
async def submit_jdl_jobs(self, body: Union[List[str], IO[bytes]], **kwargs: Any) -> List[_models.InsertedJob]:
|
2279
2158
|
"""Submit Jdl Jobs.
|
2280
2159
|
|
2281
2160
|
Submit a list of jobs in JDL format.
|
@@ -2297,9 +2176,7 @@ class JobsOperations:
|
|
2297
2176
|
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
2298
2177
|
_params = kwargs.pop("params", {}) or {}
|
2299
2178
|
|
2300
|
-
content_type: Optional[str] = kwargs.pop(
|
2301
|
-
"content_type", _headers.pop("Content-Type", None)
|
2302
|
-
)
|
2179
|
+
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
2303
2180
|
cls: ClsType[List[_models.InsertedJob]] = kwargs.pop("cls", None)
|
2304
2181
|
|
2305
2182
|
content_type = content_type or "application/json"
|
@@ -2320,23 +2197,17 @@ class JobsOperations:
|
|
2320
2197
|
_request.url = self._client.format_url(_request.url)
|
2321
2198
|
|
2322
2199
|
_stream = False
|
2323
|
-
pipeline_response: PipelineResponse = (
|
2324
|
-
|
2325
|
-
_request, stream=_stream, **kwargs
|
2326
|
-
)
|
2200
|
+
pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
|
2201
|
+
_request, stream=_stream, **kwargs
|
2327
2202
|
)
|
2328
2203
|
|
2329
2204
|
response = pipeline_response.http_response
|
2330
2205
|
|
2331
2206
|
if response.status_code not in [200]:
|
2332
|
-
map_error(
|
2333
|
-
status_code=response.status_code, response=response, error_map=error_map
|
2334
|
-
)
|
2207
|
+
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
2335
2208
|
raise HttpResponseError(response=response)
|
2336
2209
|
|
2337
|
-
deserialized = self._deserialize(
|
2338
|
-
"[InsertedJob]", pipeline_response.http_response
|
2339
|
-
)
|
2210
|
+
deserialized = self._deserialize("[InsertedJob]", pipeline_response.http_response)
|
2340
2211
|
|
2341
2212
|
if cls:
|
2342
2213
|
return cls(pipeline_response, deserialized, {}) # type: ignore
|