diracx-client 0.0.1a18__py3-none-any.whl → 0.0.1a20__py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- diracx/client/__init__.py +4 -18
- diracx/client/aio.py +1 -0
- diracx/client/extensions.py +90 -0
- diracx/client/{aio → generated}/__init__.py +2 -2
- diracx/client/{_client.py → generated/_client.py} +7 -6
- diracx/client/{_configuration.py → generated/_configuration.py} +1 -1
- diracx/client/generated/_patch.py +47 -0
- diracx/client/{_serialization.py → generated/_serialization.py} +303 -154
- diracx/client/{_vendor.py → generated/_vendor.py} +1 -1
- diracx/client/generated/aio/__init__.py +21 -0
- diracx/client/{aio → generated/aio}/_client.py +7 -6
- diracx/client/{aio → generated/aio}/_configuration.py +1 -1
- diracx/client/generated/aio/_patch.py +23 -0
- diracx/client/{aio → generated/aio}/_vendor.py +1 -1
- diracx/client/{aio → generated/aio}/operations/__init__.py +2 -2
- diracx/client/{aio → generated/aio}/operations/_operations.py +139 -209
- diracx/client/{models → generated/models}/__init__.py +4 -2
- diracx/client/{models → generated/models}/_enums.py +2 -2
- diracx/client/{models → generated/models}/_models.py +86 -46
- diracx/client/{operations → generated/operations}/__init__.py +2 -2
- diracx/client/{operations → generated/operations}/_operations.py +139 -209
- diracx/client/generated/py.typed +1 -0
- diracx/client/models.py +5 -0
- diracx/client/patches/__init__.py +19 -0
- diracx/client/patches/aio/__init__.py +18 -0
- diracx/client/{aio/_patch.py → patches/aio/utils.py} +25 -19
- diracx/client/{_patch.py → patches/utils.py} +115 -122
- {diracx_client-0.0.1a18.dist-info → diracx_client-0.0.1a20.dist-info}/METADATA +1 -2
- diracx_client-0.0.1a20.dist-info/RECORD +36 -0
- {diracx_client-0.0.1a18.dist-info → diracx_client-0.0.1a20.dist-info}/WHEEL +1 -1
- diracx_client-0.0.1a20.dist-info/entry_points.txt +3 -0
- diracx_client-0.0.1a18.dist-info/RECORD +0 -26
- /diracx/client/{aio → generated/aio}/operations/_patch.py +0 -0
- /diracx/client/{models → generated/models}/_patch.py +0 -0
- /diracx/client/{operations → generated/operations}/_patch.py +0 -0
- {diracx_client-0.0.1a18.dist-info → diracx_client-0.0.1a20.dist-info}/top_level.txt +0 -0
@@ -1,23 +1,12 @@
|
|
1
|
-
# pylint: disable=too-many-lines
|
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.2, generator: @autorest/python@6.
|
4
|
+
# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.2, generator: @autorest/python@6.26.0)
|
5
5
|
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
6
6
|
# --------------------------------------------------------------------------
|
7
7
|
from io import IOBase
|
8
8
|
import sys
|
9
|
-
from typing import
|
10
|
-
Any,
|
11
|
-
Callable,
|
12
|
-
Dict,
|
13
|
-
IO,
|
14
|
-
List,
|
15
|
-
Optional,
|
16
|
-
Type,
|
17
|
-
TypeVar,
|
18
|
-
Union,
|
19
|
-
overload,
|
20
|
-
)
|
9
|
+
from typing import Any, Callable, Dict, IO, List, Optional, TypeVar, Union, overload
|
21
10
|
|
22
11
|
from azure.core import MatchConditions
|
23
12
|
from azure.core.exceptions import (
|
@@ -41,7 +30,7 @@ from .._vendor import prep_if_match, prep_if_none_match, raise_if_not_implemente
|
|
41
30
|
if sys.version_info >= (3, 9):
|
42
31
|
from collections.abc import MutableMapping
|
43
32
|
else:
|
44
|
-
from typing import MutableMapping # type: ignore
|
33
|
+
from typing import MutableMapping # type: ignore
|
45
34
|
T = TypeVar("T")
|
46
35
|
ClsType = Optional[
|
47
36
|
Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]
|
@@ -918,7 +907,7 @@ class WellKnownOperations:
|
|
918
907
|
**DO NOT** instantiate this class directly.
|
919
908
|
|
920
909
|
Instead, you should access the following operations through
|
921
|
-
:class:`~
|
910
|
+
:class:`~generated.Dirac`'s
|
922
911
|
:attr:`well_known` attribute.
|
923
912
|
"""
|
924
913
|
|
@@ -943,7 +932,7 @@ class WellKnownOperations:
|
|
943
932
|
:rtype: any
|
944
933
|
:raises ~azure.core.exceptions.HttpResponseError:
|
945
934
|
"""
|
946
|
-
error_map: MutableMapping
|
935
|
+
error_map: MutableMapping = {
|
947
936
|
401: ClientAuthenticationError,
|
948
937
|
404: ResourceNotFoundError,
|
949
938
|
409: ResourceExistsError,
|
@@ -972,14 +961,12 @@ class WellKnownOperations:
|
|
972
961
|
response = pipeline_response.http_response
|
973
962
|
|
974
963
|
if response.status_code not in [200]:
|
975
|
-
if _stream:
|
976
|
-
response.read() # Load the body in memory and close the socket
|
977
964
|
map_error(
|
978
965
|
status_code=response.status_code, response=response, error_map=error_map
|
979
966
|
)
|
980
967
|
raise HttpResponseError(response=response)
|
981
968
|
|
982
|
-
deserialized = self._deserialize("object", pipeline_response)
|
969
|
+
deserialized = self._deserialize("object", pipeline_response.http_response)
|
983
970
|
|
984
971
|
if cls:
|
985
972
|
return cls(pipeline_response, deserialized, {}) # type: ignore
|
@@ -993,10 +980,10 @@ class WellKnownOperations:
|
|
993
980
|
Get metadata about the dirac installation.
|
994
981
|
|
995
982
|
:return: Metadata
|
996
|
-
:rtype: ~
|
983
|
+
:rtype: ~generated.models.Metadata
|
997
984
|
:raises ~azure.core.exceptions.HttpResponseError:
|
998
985
|
"""
|
999
|
-
error_map: MutableMapping
|
986
|
+
error_map: MutableMapping = {
|
1000
987
|
401: ClientAuthenticationError,
|
1001
988
|
404: ResourceNotFoundError,
|
1002
989
|
409: ResourceExistsError,
|
@@ -1025,14 +1012,12 @@ class WellKnownOperations:
|
|
1025
1012
|
response = pipeline_response.http_response
|
1026
1013
|
|
1027
1014
|
if response.status_code not in [200]:
|
1028
|
-
if _stream:
|
1029
|
-
response.read() # Load the body in memory and close the socket
|
1030
1015
|
map_error(
|
1031
1016
|
status_code=response.status_code, response=response, error_map=error_map
|
1032
1017
|
)
|
1033
1018
|
raise HttpResponseError(response=response)
|
1034
1019
|
|
1035
|
-
deserialized = self._deserialize("Metadata", pipeline_response)
|
1020
|
+
deserialized = self._deserialize("Metadata", pipeline_response.http_response)
|
1036
1021
|
|
1037
1022
|
if cls:
|
1038
1023
|
return cls(pipeline_response, deserialized, {}) # type: ignore
|
@@ -1046,7 +1031,7 @@ class AuthOperations: # pylint: disable=abstract-class-instantiated
|
|
1046
1031
|
**DO NOT** instantiate this class directly.
|
1047
1032
|
|
1048
1033
|
Instead, you should access the following operations through
|
1049
|
-
:class:`~
|
1034
|
+
:class:`~generated.Dirac`'s
|
1050
1035
|
:attr:`auth` attribute.
|
1051
1036
|
"""
|
1052
1037
|
|
@@ -1077,7 +1062,7 @@ class AuthOperations: # pylint: disable=abstract-class-instantiated
|
|
1077
1062
|
Initiate the device flow against DIRAC authorization Server.
|
1078
1063
|
Scope must have exactly up to one ``group`` (otherwise default) and
|
1079
1064
|
one or more ``property`` scope.
|
1080
|
-
If no property, then get default one
|
1065
|
+
If no property, then get default one.
|
1081
1066
|
|
1082
1067
|
Offers the user to go with the browser to
|
1083
1068
|
``auth/<vo>/device?user_code=XYZ``.
|
@@ -1087,10 +1072,10 @@ class AuthOperations: # pylint: disable=abstract-class-instantiated
|
|
1087
1072
|
:keyword scope: Required.
|
1088
1073
|
:paramtype scope: str
|
1089
1074
|
:return: InitiateDeviceFlowResponse
|
1090
|
-
:rtype: ~
|
1075
|
+
:rtype: ~generated.models.InitiateDeviceFlowResponse
|
1091
1076
|
:raises ~azure.core.exceptions.HttpResponseError:
|
1092
1077
|
"""
|
1093
|
-
error_map: MutableMapping
|
1078
|
+
error_map: MutableMapping = {
|
1094
1079
|
401: ClientAuthenticationError,
|
1095
1080
|
404: ResourceNotFoundError,
|
1096
1081
|
409: ResourceExistsError,
|
@@ -1121,15 +1106,13 @@ class AuthOperations: # pylint: disable=abstract-class-instantiated
|
|
1121
1106
|
response = pipeline_response.http_response
|
1122
1107
|
|
1123
1108
|
if response.status_code not in [200]:
|
1124
|
-
if _stream:
|
1125
|
-
response.read() # Load the body in memory and close the socket
|
1126
1109
|
map_error(
|
1127
1110
|
status_code=response.status_code, response=response, error_map=error_map
|
1128
1111
|
)
|
1129
1112
|
raise HttpResponseError(response=response)
|
1130
1113
|
|
1131
1114
|
deserialized = self._deserialize(
|
1132
|
-
"InitiateDeviceFlowResponse", pipeline_response
|
1115
|
+
"InitiateDeviceFlowResponse", pipeline_response.http_response
|
1133
1116
|
)
|
1134
1117
|
|
1135
1118
|
if cls:
|
@@ -1156,7 +1139,7 @@ class AuthOperations: # pylint: disable=abstract-class-instantiated
|
|
1156
1139
|
:rtype: any
|
1157
1140
|
:raises ~azure.core.exceptions.HttpResponseError:
|
1158
1141
|
"""
|
1159
|
-
error_map: MutableMapping
|
1142
|
+
error_map: MutableMapping = {
|
1160
1143
|
401: ClientAuthenticationError,
|
1161
1144
|
404: ResourceNotFoundError,
|
1162
1145
|
409: ResourceExistsError,
|
@@ -1186,14 +1169,12 @@ class AuthOperations: # pylint: disable=abstract-class-instantiated
|
|
1186
1169
|
response = pipeline_response.http_response
|
1187
1170
|
|
1188
1171
|
if response.status_code not in [200]:
|
1189
|
-
if _stream:
|
1190
|
-
response.read() # Load the body in memory and close the socket
|
1191
1172
|
map_error(
|
1192
1173
|
status_code=response.status_code, response=response, error_map=error_map
|
1193
1174
|
)
|
1194
1175
|
raise HttpResponseError(response=response)
|
1195
1176
|
|
1196
|
-
deserialized = self._deserialize("object", pipeline_response)
|
1177
|
+
deserialized = self._deserialize("object", pipeline_response.http_response)
|
1197
1178
|
|
1198
1179
|
if cls:
|
1199
1180
|
return cls(pipeline_response, deserialized, {}) # type: ignore
|
@@ -1218,7 +1199,7 @@ class AuthOperations: # pylint: disable=abstract-class-instantiated
|
|
1218
1199
|
:rtype: any
|
1219
1200
|
:raises ~azure.core.exceptions.HttpResponseError:
|
1220
1201
|
"""
|
1221
|
-
error_map: MutableMapping
|
1202
|
+
error_map: MutableMapping = {
|
1222
1203
|
401: ClientAuthenticationError,
|
1223
1204
|
404: ResourceNotFoundError,
|
1224
1205
|
409: ResourceExistsError,
|
@@ -1249,14 +1230,12 @@ class AuthOperations: # pylint: disable=abstract-class-instantiated
|
|
1249
1230
|
response = pipeline_response.http_response
|
1250
1231
|
|
1251
1232
|
if response.status_code not in [200]:
|
1252
|
-
if _stream:
|
1253
|
-
response.read() # Load the body in memory and close the socket
|
1254
1233
|
map_error(
|
1255
1234
|
status_code=response.status_code, response=response, error_map=error_map
|
1256
1235
|
)
|
1257
1236
|
raise HttpResponseError(response=response)
|
1258
1237
|
|
1259
|
-
deserialized = self._deserialize("object", pipeline_response)
|
1238
|
+
deserialized = self._deserialize("object", pipeline_response.http_response)
|
1260
1239
|
|
1261
1240
|
if cls:
|
1262
1241
|
return cls(pipeline_response, deserialized, {}) # type: ignore
|
@@ -1273,7 +1252,7 @@ class AuthOperations: # pylint: disable=abstract-class-instantiated
|
|
1273
1252
|
:rtype: any
|
1274
1253
|
:raises ~azure.core.exceptions.HttpResponseError:
|
1275
1254
|
"""
|
1276
|
-
error_map: MutableMapping
|
1255
|
+
error_map: MutableMapping = {
|
1277
1256
|
401: ClientAuthenticationError,
|
1278
1257
|
404: ResourceNotFoundError,
|
1279
1258
|
409: ResourceExistsError,
|
@@ -1302,14 +1281,12 @@ class AuthOperations: # pylint: disable=abstract-class-instantiated
|
|
1302
1281
|
response = pipeline_response.http_response
|
1303
1282
|
|
1304
1283
|
if response.status_code not in [200]:
|
1305
|
-
if _stream:
|
1306
|
-
response.read() # Load the body in memory and close the socket
|
1307
1284
|
map_error(
|
1308
1285
|
status_code=response.status_code, response=response, error_map=error_map
|
1309
1286
|
)
|
1310
1287
|
raise HttpResponseError(response=response)
|
1311
1288
|
|
1312
|
-
deserialized = self._deserialize("object", pipeline_response)
|
1289
|
+
deserialized = self._deserialize("object", pipeline_response.http_response)
|
1313
1290
|
|
1314
1291
|
if cls:
|
1315
1292
|
return cls(pipeline_response, deserialized, {}) # type: ignore
|
@@ -1327,7 +1304,7 @@ class AuthOperations: # pylint: disable=abstract-class-instantiated
|
|
1327
1304
|
:rtype: list[any]
|
1328
1305
|
:raises ~azure.core.exceptions.HttpResponseError:
|
1329
1306
|
"""
|
1330
|
-
error_map: MutableMapping
|
1307
|
+
error_map: MutableMapping = {
|
1331
1308
|
401: ClientAuthenticationError,
|
1332
1309
|
404: ResourceNotFoundError,
|
1333
1310
|
409: ResourceExistsError,
|
@@ -1356,14 +1333,12 @@ class AuthOperations: # pylint: disable=abstract-class-instantiated
|
|
1356
1333
|
response = pipeline_response.http_response
|
1357
1334
|
|
1358
1335
|
if response.status_code not in [200]:
|
1359
|
-
if _stream:
|
1360
|
-
response.read() # Load the body in memory and close the socket
|
1361
1336
|
map_error(
|
1362
1337
|
status_code=response.status_code, response=response, error_map=error_map
|
1363
1338
|
)
|
1364
1339
|
raise HttpResponseError(response=response)
|
1365
1340
|
|
1366
|
-
deserialized = self._deserialize("[object]", pipeline_response)
|
1341
|
+
deserialized = self._deserialize("[object]", pipeline_response.http_response)
|
1367
1342
|
|
1368
1343
|
if cls:
|
1369
1344
|
return cls(pipeline_response, deserialized, {}) # type: ignore
|
@@ -1383,7 +1358,7 @@ class AuthOperations: # pylint: disable=abstract-class-instantiated
|
|
1383
1358
|
:rtype: str
|
1384
1359
|
:raises ~azure.core.exceptions.HttpResponseError:
|
1385
1360
|
"""
|
1386
|
-
error_map: MutableMapping
|
1361
|
+
error_map: MutableMapping = {
|
1387
1362
|
401: ClientAuthenticationError,
|
1388
1363
|
404: ResourceNotFoundError,
|
1389
1364
|
409: ResourceExistsError,
|
@@ -1413,14 +1388,12 @@ class AuthOperations: # pylint: disable=abstract-class-instantiated
|
|
1413
1388
|
response = pipeline_response.http_response
|
1414
1389
|
|
1415
1390
|
if response.status_code not in [200]:
|
1416
|
-
if _stream:
|
1417
|
-
response.read() # Load the body in memory and close the socket
|
1418
1391
|
map_error(
|
1419
1392
|
status_code=response.status_code, response=response, error_map=error_map
|
1420
1393
|
)
|
1421
1394
|
raise HttpResponseError(response=response)
|
1422
1395
|
|
1423
|
-
deserialized = self._deserialize("str", pipeline_response)
|
1396
|
+
deserialized = self._deserialize("str", pipeline_response.http_response)
|
1424
1397
|
|
1425
1398
|
if cls:
|
1426
1399
|
return cls(pipeline_response, deserialized, {}) # type: ignore
|
@@ -1434,10 +1407,10 @@ class AuthOperations: # pylint: disable=abstract-class-instantiated
|
|
1434
1407
|
Get information about the user's identity.
|
1435
1408
|
|
1436
1409
|
:return: UserInfoResponse
|
1437
|
-
:rtype: ~
|
1410
|
+
:rtype: ~generated.models.UserInfoResponse
|
1438
1411
|
:raises ~azure.core.exceptions.HttpResponseError:
|
1439
1412
|
"""
|
1440
|
-
error_map: MutableMapping
|
1413
|
+
error_map: MutableMapping = {
|
1441
1414
|
401: ClientAuthenticationError,
|
1442
1415
|
404: ResourceNotFoundError,
|
1443
1416
|
409: ResourceExistsError,
|
@@ -1466,14 +1439,14 @@ class AuthOperations: # pylint: disable=abstract-class-instantiated
|
|
1466
1439
|
response = pipeline_response.http_response
|
1467
1440
|
|
1468
1441
|
if response.status_code not in [200]:
|
1469
|
-
if _stream:
|
1470
|
-
response.read() # Load the body in memory and close the socket
|
1471
1442
|
map_error(
|
1472
1443
|
status_code=response.status_code, response=response, error_map=error_map
|
1473
1444
|
)
|
1474
1445
|
raise HttpResponseError(response=response)
|
1475
1446
|
|
1476
|
-
deserialized = self._deserialize(
|
1447
|
+
deserialized = self._deserialize(
|
1448
|
+
"UserInfoResponse", pipeline_response.http_response
|
1449
|
+
)
|
1477
1450
|
|
1478
1451
|
if cls:
|
1479
1452
|
return cls(pipeline_response, deserialized, {}) # type: ignore
|
@@ -1504,11 +1477,11 @@ class AuthOperations: # pylint: disable=abstract-class-instantiated
|
|
1504
1477
|
user authorize flow.
|
1505
1478
|
|
1506
1479
|
:keyword response_type: "code" Required.
|
1507
|
-
:paramtype response_type: str or ~
|
1480
|
+
:paramtype response_type: str or ~generated.models.Enum0
|
1508
1481
|
:keyword code_challenge: Required.
|
1509
1482
|
:paramtype code_challenge: str
|
1510
1483
|
:keyword code_challenge_method: "S256" Required.
|
1511
|
-
:paramtype code_challenge_method: str or ~
|
1484
|
+
:paramtype code_challenge_method: str or ~generated.models.Enum1
|
1512
1485
|
:keyword client_id: Required.
|
1513
1486
|
:paramtype client_id: str
|
1514
1487
|
:keyword redirect_uri: Required.
|
@@ -1521,7 +1494,7 @@ class AuthOperations: # pylint: disable=abstract-class-instantiated
|
|
1521
1494
|
:rtype: any
|
1522
1495
|
:raises ~azure.core.exceptions.HttpResponseError:
|
1523
1496
|
"""
|
1524
|
-
error_map: MutableMapping
|
1497
|
+
error_map: MutableMapping = {
|
1525
1498
|
401: ClientAuthenticationError,
|
1526
1499
|
404: ResourceNotFoundError,
|
1527
1500
|
409: ResourceExistsError,
|
@@ -1557,14 +1530,12 @@ class AuthOperations: # pylint: disable=abstract-class-instantiated
|
|
1557
1530
|
response = pipeline_response.http_response
|
1558
1531
|
|
1559
1532
|
if response.status_code not in [200]:
|
1560
|
-
if _stream:
|
1561
|
-
response.read() # Load the body in memory and close the socket
|
1562
1533
|
map_error(
|
1563
1534
|
status_code=response.status_code, response=response, error_map=error_map
|
1564
1535
|
)
|
1565
1536
|
raise HttpResponseError(response=response)
|
1566
1537
|
|
1567
|
-
deserialized = self._deserialize("object", pipeline_response)
|
1538
|
+
deserialized = self._deserialize("object", pipeline_response.http_response)
|
1568
1539
|
|
1569
1540
|
if cls:
|
1570
1541
|
return cls(pipeline_response, deserialized, {}) # type: ignore
|
@@ -1593,7 +1564,7 @@ class AuthOperations: # pylint: disable=abstract-class-instantiated
|
|
1593
1564
|
:rtype: any
|
1594
1565
|
:raises ~azure.core.exceptions.HttpResponseError:
|
1595
1566
|
"""
|
1596
|
-
error_map: MutableMapping
|
1567
|
+
error_map: MutableMapping = {
|
1597
1568
|
401: ClientAuthenticationError,
|
1598
1569
|
404: ResourceNotFoundError,
|
1599
1570
|
409: ResourceExistsError,
|
@@ -1624,14 +1595,12 @@ class AuthOperations: # pylint: disable=abstract-class-instantiated
|
|
1624
1595
|
response = pipeline_response.http_response
|
1625
1596
|
|
1626
1597
|
if response.status_code not in [200]:
|
1627
|
-
if _stream:
|
1628
|
-
response.read() # Load the body in memory and close the socket
|
1629
1598
|
map_error(
|
1630
1599
|
status_code=response.status_code, response=response, error_map=error_map
|
1631
1600
|
)
|
1632
1601
|
raise HttpResponseError(response=response)
|
1633
1602
|
|
1634
|
-
deserialized = self._deserialize("object", pipeline_response)
|
1603
|
+
deserialized = self._deserialize("object", pipeline_response.http_response)
|
1635
1604
|
|
1636
1605
|
if cls:
|
1637
1606
|
return cls(pipeline_response, deserialized, {}) # type: ignore
|
@@ -1645,7 +1614,7 @@ class ConfigOperations:
|
|
1645
1614
|
**DO NOT** instantiate this class directly.
|
1646
1615
|
|
1647
1616
|
Instead, you should access the following operations through
|
1648
|
-
:class:`~
|
1617
|
+
:class:`~generated.Dirac`'s
|
1649
1618
|
:attr:`config` attribute.
|
1650
1619
|
"""
|
1651
1620
|
|
@@ -1689,7 +1658,7 @@ class ConfigOperations:
|
|
1689
1658
|
:rtype: any
|
1690
1659
|
:raises ~azure.core.exceptions.HttpResponseError:
|
1691
1660
|
"""
|
1692
|
-
error_map: MutableMapping
|
1661
|
+
error_map: MutableMapping = {
|
1693
1662
|
401: ClientAuthenticationError,
|
1694
1663
|
404: ResourceNotFoundError,
|
1695
1664
|
409: ResourceExistsError,
|
@@ -1727,14 +1696,12 @@ class ConfigOperations:
|
|
1727
1696
|
response = pipeline_response.http_response
|
1728
1697
|
|
1729
1698
|
if response.status_code not in [200]:
|
1730
|
-
if _stream:
|
1731
|
-
response.read() # Load the body in memory and close the socket
|
1732
1699
|
map_error(
|
1733
1700
|
status_code=response.status_code, response=response, error_map=error_map
|
1734
1701
|
)
|
1735
1702
|
raise HttpResponseError(response=response)
|
1736
1703
|
|
1737
|
-
deserialized = self._deserialize("object", pipeline_response)
|
1704
|
+
deserialized = self._deserialize("object", pipeline_response.http_response)
|
1738
1705
|
|
1739
1706
|
if cls:
|
1740
1707
|
return cls(pipeline_response, deserialized, {}) # type: ignore
|
@@ -1748,7 +1715,7 @@ class JobsOperations: # pylint: disable=too-many-public-methods
|
|
1748
1715
|
**DO NOT** instantiate this class directly.
|
1749
1716
|
|
1750
1717
|
Instead, you should access the following operations through
|
1751
|
-
:class:`~
|
1718
|
+
:class:`~generated.Dirac`'s
|
1752
1719
|
:attr:`jobs` attribute.
|
1753
1720
|
"""
|
1754
1721
|
|
@@ -1782,12 +1749,12 @@ class JobsOperations: # pylint: disable=too-many-public-methods
|
|
1782
1749
|
should be used to upload the sandbox to the storage backend.
|
1783
1750
|
|
1784
1751
|
:param body: Required.
|
1785
|
-
:type body: ~
|
1752
|
+
:type body: ~generated.models.SandboxInfo
|
1786
1753
|
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
|
1787
1754
|
Default value is "application/json".
|
1788
1755
|
:paramtype content_type: str
|
1789
1756
|
:return: SandboxUploadResponse
|
1790
|
-
:rtype: ~
|
1757
|
+
:rtype: ~generated.models.SandboxUploadResponse
|
1791
1758
|
:raises ~azure.core.exceptions.HttpResponseError:
|
1792
1759
|
"""
|
1793
1760
|
|
@@ -1811,7 +1778,7 @@ class JobsOperations: # pylint: disable=too-many-public-methods
|
|
1811
1778
|
Default value is "application/json".
|
1812
1779
|
:paramtype content_type: str
|
1813
1780
|
:return: SandboxUploadResponse
|
1814
|
-
:rtype: ~
|
1781
|
+
:rtype: ~generated.models.SandboxUploadResponse
|
1815
1782
|
:raises ~azure.core.exceptions.HttpResponseError:
|
1816
1783
|
"""
|
1817
1784
|
|
@@ -1830,12 +1797,12 @@ class JobsOperations: # pylint: disable=too-many-public-methods
|
|
1830
1797
|
should be used to upload the sandbox to the storage backend.
|
1831
1798
|
|
1832
1799
|
:param body: Is either a SandboxInfo type or a IO[bytes] type. Required.
|
1833
|
-
:type body: ~
|
1800
|
+
:type body: ~generated.models.SandboxInfo or IO[bytes]
|
1834
1801
|
:return: SandboxUploadResponse
|
1835
|
-
:rtype: ~
|
1802
|
+
:rtype: ~generated.models.SandboxUploadResponse
|
1836
1803
|
:raises ~azure.core.exceptions.HttpResponseError:
|
1837
1804
|
"""
|
1838
|
-
error_map: MutableMapping
|
1805
|
+
error_map: MutableMapping = {
|
1839
1806
|
401: ClientAuthenticationError,
|
1840
1807
|
404: ResourceNotFoundError,
|
1841
1808
|
409: ResourceExistsError,
|
@@ -1878,14 +1845,14 @@ class JobsOperations: # pylint: disable=too-many-public-methods
|
|
1878
1845
|
response = pipeline_response.http_response
|
1879
1846
|
|
1880
1847
|
if response.status_code not in [200]:
|
1881
|
-
if _stream:
|
1882
|
-
response.read() # Load the body in memory and close the socket
|
1883
1848
|
map_error(
|
1884
1849
|
status_code=response.status_code, response=response, error_map=error_map
|
1885
1850
|
)
|
1886
1851
|
raise HttpResponseError(response=response)
|
1887
1852
|
|
1888
|
-
deserialized = self._deserialize(
|
1853
|
+
deserialized = self._deserialize(
|
1854
|
+
"SandboxUploadResponse", pipeline_response.http_response
|
1855
|
+
)
|
1889
1856
|
|
1890
1857
|
if cls:
|
1891
1858
|
return cls(pipeline_response, deserialized, {}) # type: ignore
|
@@ -1898,7 +1865,7 @@ class JobsOperations: # pylint: disable=too-many-public-methods
|
|
1898
1865
|
) -> _models.SandboxDownloadResponse:
|
1899
1866
|
"""Get Sandbox File.
|
1900
1867
|
|
1901
|
-
Get a presigned URL to download a sandbox file
|
1868
|
+
Get a presigned URL to download a sandbox file.
|
1902
1869
|
|
1903
1870
|
This route cannot use a redirect response most clients will also send the
|
1904
1871
|
authorization header when following a redirect. This is not desirable as
|
@@ -1909,10 +1876,10 @@ class JobsOperations: # pylint: disable=too-many-public-methods
|
|
1909
1876
|
:keyword pfn: Required.
|
1910
1877
|
:paramtype pfn: str
|
1911
1878
|
:return: SandboxDownloadResponse
|
1912
|
-
:rtype: ~
|
1879
|
+
:rtype: ~generated.models.SandboxDownloadResponse
|
1913
1880
|
:raises ~azure.core.exceptions.HttpResponseError:
|
1914
1881
|
"""
|
1915
|
-
error_map: MutableMapping
|
1882
|
+
error_map: MutableMapping = {
|
1916
1883
|
401: ClientAuthenticationError,
|
1917
1884
|
404: ResourceNotFoundError,
|
1918
1885
|
409: ResourceExistsError,
|
@@ -1942,14 +1909,14 @@ class JobsOperations: # pylint: disable=too-many-public-methods
|
|
1942
1909
|
response = pipeline_response.http_response
|
1943
1910
|
|
1944
1911
|
if response.status_code not in [200]:
|
1945
|
-
if _stream:
|
1946
|
-
response.read() # Load the body in memory and close the socket
|
1947
1912
|
map_error(
|
1948
1913
|
status_code=response.status_code, response=response, error_map=error_map
|
1949
1914
|
)
|
1950
1915
|
raise HttpResponseError(response=response)
|
1951
1916
|
|
1952
|
-
deserialized = self._deserialize(
|
1917
|
+
deserialized = self._deserialize(
|
1918
|
+
"SandboxDownloadResponse", pipeline_response.http_response
|
1919
|
+
)
|
1953
1920
|
|
1954
1921
|
if cls:
|
1955
1922
|
return cls(pipeline_response, deserialized, {}) # type: ignore
|
@@ -1970,7 +1937,7 @@ class JobsOperations: # pylint: disable=too-many-public-methods
|
|
1970
1937
|
:rtype: any
|
1971
1938
|
:raises ~azure.core.exceptions.HttpResponseError:
|
1972
1939
|
"""
|
1973
|
-
error_map: MutableMapping
|
1940
|
+
error_map: MutableMapping = {
|
1974
1941
|
401: ClientAuthenticationError,
|
1975
1942
|
404: ResourceNotFoundError,
|
1976
1943
|
409: ResourceExistsError,
|
@@ -2000,14 +1967,12 @@ class JobsOperations: # pylint: disable=too-many-public-methods
|
|
2000
1967
|
response = pipeline_response.http_response
|
2001
1968
|
|
2002
1969
|
if response.status_code not in [200]:
|
2003
|
-
if _stream:
|
2004
|
-
response.read() # Load the body in memory and close the socket
|
2005
1970
|
map_error(
|
2006
1971
|
status_code=response.status_code, response=response, error_map=error_map
|
2007
1972
|
)
|
2008
1973
|
raise HttpResponseError(response=response)
|
2009
1974
|
|
2010
|
-
deserialized = self._deserialize("object", pipeline_response)
|
1975
|
+
deserialized = self._deserialize("object", pipeline_response.http_response)
|
2011
1976
|
|
2012
1977
|
if cls:
|
2013
1978
|
return cls(pipeline_response, deserialized, {}) # type: ignore
|
@@ -2026,7 +1991,7 @@ class JobsOperations: # pylint: disable=too-many-public-methods
|
|
2026
1991
|
:rtype: dict[str, list[any]]
|
2027
1992
|
:raises ~azure.core.exceptions.HttpResponseError:
|
2028
1993
|
"""
|
2029
|
-
error_map: MutableMapping
|
1994
|
+
error_map: MutableMapping = {
|
2030
1995
|
401: ClientAuthenticationError,
|
2031
1996
|
404: ResourceNotFoundError,
|
2032
1997
|
409: ResourceExistsError,
|
@@ -2056,14 +2021,12 @@ class JobsOperations: # pylint: disable=too-many-public-methods
|
|
2056
2021
|
response = pipeline_response.http_response
|
2057
2022
|
|
2058
2023
|
if response.status_code not in [200]:
|
2059
|
-
if _stream:
|
2060
|
-
response.read() # Load the body in memory and close the socket
|
2061
2024
|
map_error(
|
2062
2025
|
status_code=response.status_code, response=response, error_map=error_map
|
2063
2026
|
)
|
2064
2027
|
raise HttpResponseError(response=response)
|
2065
2028
|
|
2066
|
-
deserialized = self._deserialize("{[object]}", pipeline_response)
|
2029
|
+
deserialized = self._deserialize("{[object]}", pipeline_response.http_response)
|
2067
2030
|
|
2068
2031
|
if cls:
|
2069
2032
|
return cls(pipeline_response, deserialized, {}) # type: ignore
|
@@ -2082,7 +2045,7 @@ class JobsOperations: # pylint: disable=too-many-public-methods
|
|
2082
2045
|
:rtype: any
|
2083
2046
|
:raises ~azure.core.exceptions.HttpResponseError:
|
2084
2047
|
"""
|
2085
|
-
error_map: MutableMapping
|
2048
|
+
error_map: MutableMapping = {
|
2086
2049
|
401: ClientAuthenticationError,
|
2087
2050
|
404: ResourceNotFoundError,
|
2088
2051
|
409: ResourceExistsError,
|
@@ -2112,14 +2075,12 @@ class JobsOperations: # pylint: disable=too-many-public-methods
|
|
2112
2075
|
response = pipeline_response.http_response
|
2113
2076
|
|
2114
2077
|
if response.status_code not in [200]:
|
2115
|
-
if _stream:
|
2116
|
-
response.read() # Load the body in memory and close the socket
|
2117
2078
|
map_error(
|
2118
2079
|
status_code=response.status_code, response=response, error_map=error_map
|
2119
2080
|
)
|
2120
2081
|
raise HttpResponseError(response=response)
|
2121
2082
|
|
2122
|
-
deserialized = self._deserialize("object", pipeline_response)
|
2083
|
+
deserialized = self._deserialize("object", pipeline_response.http_response)
|
2123
2084
|
|
2124
2085
|
if cls:
|
2125
2086
|
return cls(pipeline_response, deserialized, {}) # type: ignore
|
@@ -2137,12 +2098,12 @@ class JobsOperations: # pylint: disable=too-many-public-methods
|
|
2137
2098
|
:param job_id: Required.
|
2138
2099
|
:type job_id: int
|
2139
2100
|
:param sandbox_type: Known values are: "input" and "output". Required.
|
2140
|
-
:type sandbox_type: str or ~
|
2101
|
+
:type sandbox_type: str or ~generated.models.SandboxType
|
2141
2102
|
:return: list of any
|
2142
2103
|
:rtype: list[any]
|
2143
2104
|
:raises ~azure.core.exceptions.HttpResponseError:
|
2144
2105
|
"""
|
2145
|
-
error_map: MutableMapping
|
2106
|
+
error_map: MutableMapping = {
|
2146
2107
|
401: ClientAuthenticationError,
|
2147
2108
|
404: ResourceNotFoundError,
|
2148
2109
|
409: ResourceExistsError,
|
@@ -2173,14 +2134,12 @@ class JobsOperations: # pylint: disable=too-many-public-methods
|
|
2173
2134
|
response = pipeline_response.http_response
|
2174
2135
|
|
2175
2136
|
if response.status_code not in [200]:
|
2176
|
-
if _stream:
|
2177
|
-
response.read() # Load the body in memory and close the socket
|
2178
2137
|
map_error(
|
2179
2138
|
status_code=response.status_code, response=response, error_map=error_map
|
2180
2139
|
)
|
2181
2140
|
raise HttpResponseError(response=response)
|
2182
2141
|
|
2183
|
-
deserialized = self._deserialize("[object]", pipeline_response)
|
2142
|
+
deserialized = self._deserialize("[object]", pipeline_response.http_response)
|
2184
2143
|
|
2185
2144
|
if cls:
|
2186
2145
|
return cls(pipeline_response, deserialized, {}) # type: ignore
|
@@ -2201,7 +2160,7 @@ class JobsOperations: # pylint: disable=too-many-public-methods
|
|
2201
2160
|
:rtype: any
|
2202
2161
|
:raises ~azure.core.exceptions.HttpResponseError:
|
2203
2162
|
"""
|
2204
|
-
error_map: MutableMapping
|
2163
|
+
error_map: MutableMapping = {
|
2205
2164
|
401: ClientAuthenticationError,
|
2206
2165
|
404: ResourceNotFoundError,
|
2207
2166
|
409: ResourceExistsError,
|
@@ -2238,14 +2197,12 @@ class JobsOperations: # pylint: disable=too-many-public-methods
|
|
2238
2197
|
response = pipeline_response.http_response
|
2239
2198
|
|
2240
2199
|
if response.status_code not in [200]:
|
2241
|
-
if _stream:
|
2242
|
-
response.read() # Load the body in memory and close the socket
|
2243
2200
|
map_error(
|
2244
2201
|
status_code=response.status_code, response=response, error_map=error_map
|
2245
2202
|
)
|
2246
2203
|
raise HttpResponseError(response=response)
|
2247
2204
|
|
2248
|
-
deserialized = self._deserialize("object", pipeline_response)
|
2205
|
+
deserialized = self._deserialize("object", pipeline_response.http_response)
|
2249
2206
|
|
2250
2207
|
if cls:
|
2251
2208
|
return cls(pipeline_response, deserialized, {}) # type: ignore
|
@@ -2266,7 +2223,7 @@ class JobsOperations: # pylint: disable=too-many-public-methods
|
|
2266
2223
|
Default value is "application/json".
|
2267
2224
|
:paramtype content_type: str
|
2268
2225
|
:return: list of InsertedJob
|
2269
|
-
:rtype: list[~
|
2226
|
+
:rtype: list[~generated.models.InsertedJob]
|
2270
2227
|
:raises ~azure.core.exceptions.HttpResponseError:
|
2271
2228
|
"""
|
2272
2229
|
|
@@ -2284,7 +2241,7 @@ class JobsOperations: # pylint: disable=too-many-public-methods
|
|
2284
2241
|
Default value is "application/json".
|
2285
2242
|
:paramtype content_type: str
|
2286
2243
|
:return: list of InsertedJob
|
2287
|
-
:rtype: list[~
|
2244
|
+
:rtype: list[~generated.models.InsertedJob]
|
2288
2245
|
:raises ~azure.core.exceptions.HttpResponseError:
|
2289
2246
|
"""
|
2290
2247
|
|
@@ -2299,10 +2256,10 @@ class JobsOperations: # pylint: disable=too-many-public-methods
|
|
2299
2256
|
:param body: Is either a [str] type or a IO[bytes] type. Required.
|
2300
2257
|
:type body: list[str] or IO[bytes]
|
2301
2258
|
:return: list of InsertedJob
|
2302
|
-
:rtype: list[~
|
2259
|
+
:rtype: list[~generated.models.InsertedJob]
|
2303
2260
|
:raises ~azure.core.exceptions.HttpResponseError:
|
2304
2261
|
"""
|
2305
|
-
error_map: MutableMapping
|
2262
|
+
error_map: MutableMapping = {
|
2306
2263
|
401: ClientAuthenticationError,
|
2307
2264
|
404: ResourceNotFoundError,
|
2308
2265
|
409: ResourceExistsError,
|
@@ -2345,14 +2302,14 @@ class JobsOperations: # pylint: disable=too-many-public-methods
|
|
2345
2302
|
response = pipeline_response.http_response
|
2346
2303
|
|
2347
2304
|
if response.status_code not in [200]:
|
2348
|
-
if _stream:
|
2349
|
-
response.read() # Load the body in memory and close the socket
|
2350
2305
|
map_error(
|
2351
2306
|
status_code=response.status_code, response=response, error_map=error_map
|
2352
2307
|
)
|
2353
2308
|
raise HttpResponseError(response=response)
|
2354
2309
|
|
2355
|
-
deserialized = self._deserialize(
|
2310
|
+
deserialized = self._deserialize(
|
2311
|
+
"[InsertedJob]", pipeline_response.http_response
|
2312
|
+
)
|
2356
2313
|
|
2357
2314
|
if cls:
|
2358
2315
|
return cls(pipeline_response, deserialized, {}) # type: ignore
|
@@ -2371,7 +2328,7 @@ class JobsOperations: # pylint: disable=too-many-public-methods
|
|
2371
2328
|
:rtype: any
|
2372
2329
|
:raises ~azure.core.exceptions.HttpResponseError:
|
2373
2330
|
"""
|
2374
|
-
error_map: MutableMapping
|
2331
|
+
error_map: MutableMapping = {
|
2375
2332
|
401: ClientAuthenticationError,
|
2376
2333
|
404: ResourceNotFoundError,
|
2377
2334
|
409: ResourceExistsError,
|
@@ -2401,14 +2358,12 @@ class JobsOperations: # pylint: disable=too-many-public-methods
|
|
2401
2358
|
response = pipeline_response.http_response
|
2402
2359
|
|
2403
2360
|
if response.status_code not in [200]:
|
2404
|
-
if _stream:
|
2405
|
-
response.read() # Load the body in memory and close the socket
|
2406
2361
|
map_error(
|
2407
2362
|
status_code=response.status_code, response=response, error_map=error_map
|
2408
2363
|
)
|
2409
2364
|
raise HttpResponseError(response=response)
|
2410
2365
|
|
2411
|
-
deserialized = self._deserialize("object", pipeline_response)
|
2366
|
+
deserialized = self._deserialize("object", pipeline_response.http_response)
|
2412
2367
|
|
2413
2368
|
if cls:
|
2414
2369
|
return cls(pipeline_response, deserialized, {}) # type: ignore
|
@@ -2427,7 +2382,7 @@ class JobsOperations: # pylint: disable=too-many-public-methods
|
|
2427
2382
|
:rtype: any
|
2428
2383
|
:raises ~azure.core.exceptions.HttpResponseError:
|
2429
2384
|
"""
|
2430
|
-
error_map: MutableMapping
|
2385
|
+
error_map: MutableMapping = {
|
2431
2386
|
401: ClientAuthenticationError,
|
2432
2387
|
404: ResourceNotFoundError,
|
2433
2388
|
409: ResourceExistsError,
|
@@ -2457,14 +2412,12 @@ class JobsOperations: # pylint: disable=too-many-public-methods
|
|
2457
2412
|
response = pipeline_response.http_response
|
2458
2413
|
|
2459
2414
|
if response.status_code not in [200]:
|
2460
|
-
if _stream:
|
2461
|
-
response.read() # Load the body in memory and close the socket
|
2462
2415
|
map_error(
|
2463
2416
|
status_code=response.status_code, response=response, error_map=error_map
|
2464
2417
|
)
|
2465
2418
|
raise HttpResponseError(response=response)
|
2466
2419
|
|
2467
|
-
deserialized = self._deserialize("object", pipeline_response)
|
2420
|
+
deserialized = self._deserialize("object", pipeline_response.http_response)
|
2468
2421
|
|
2469
2422
|
if cls:
|
2470
2423
|
return cls(pipeline_response, deserialized, {}) # type: ignore
|
@@ -2487,7 +2440,7 @@ class JobsOperations: # pylint: disable=too-many-public-methods
|
|
2487
2440
|
:rtype: any
|
2488
2441
|
:raises ~azure.core.exceptions.HttpResponseError:
|
2489
2442
|
"""
|
2490
|
-
error_map: MutableMapping
|
2443
|
+
error_map: MutableMapping = {
|
2491
2444
|
401: ClientAuthenticationError,
|
2492
2445
|
404: ResourceNotFoundError,
|
2493
2446
|
409: ResourceExistsError,
|
@@ -2517,14 +2470,12 @@ class JobsOperations: # pylint: disable=too-many-public-methods
|
|
2517
2470
|
response = pipeline_response.http_response
|
2518
2471
|
|
2519
2472
|
if response.status_code not in [200]:
|
2520
|
-
if _stream:
|
2521
|
-
response.read() # Load the body in memory and close the socket
|
2522
2473
|
map_error(
|
2523
2474
|
status_code=response.status_code, response=response, error_map=error_map
|
2524
2475
|
)
|
2525
2476
|
raise HttpResponseError(response=response)
|
2526
2477
|
|
2527
|
-
deserialized = self._deserialize("object", pipeline_response)
|
2478
|
+
deserialized = self._deserialize("object", pipeline_response.http_response)
|
2528
2479
|
|
2529
2480
|
if cls:
|
2530
2481
|
return cls(pipeline_response, deserialized, {}) # type: ignore
|
@@ -2542,10 +2493,10 @@ class JobsOperations: # pylint: disable=too-many-public-methods
|
|
2542
2493
|
:keyword job_ids: Required.
|
2543
2494
|
:paramtype job_ids: list[int]
|
2544
2495
|
:return: dict mapping str to LimitedJobStatusReturn
|
2545
|
-
:rtype: dict[str, ~
|
2496
|
+
:rtype: dict[str, ~generated.models.LimitedJobStatusReturn]
|
2546
2497
|
:raises ~azure.core.exceptions.HttpResponseError:
|
2547
2498
|
"""
|
2548
|
-
error_map: MutableMapping
|
2499
|
+
error_map: MutableMapping = {
|
2549
2500
|
401: ClientAuthenticationError,
|
2550
2501
|
404: ResourceNotFoundError,
|
2551
2502
|
409: ResourceExistsError,
|
@@ -2577,14 +2528,14 @@ class JobsOperations: # pylint: disable=too-many-public-methods
|
|
2577
2528
|
response = pipeline_response.http_response
|
2578
2529
|
|
2579
2530
|
if response.status_code not in [200]:
|
2580
|
-
if _stream:
|
2581
|
-
response.read() # Load the body in memory and close the socket
|
2582
2531
|
map_error(
|
2583
2532
|
status_code=response.status_code, response=response, error_map=error_map
|
2584
2533
|
)
|
2585
2534
|
raise HttpResponseError(response=response)
|
2586
2535
|
|
2587
|
-
deserialized = self._deserialize(
|
2536
|
+
deserialized = self._deserialize(
|
2537
|
+
"{LimitedJobStatusReturn}", pipeline_response.http_response
|
2538
|
+
)
|
2588
2539
|
|
2589
2540
|
if cls:
|
2590
2541
|
return cls(pipeline_response, deserialized, {}) # type: ignore
|
@@ -2605,14 +2556,14 @@ class JobsOperations: # pylint: disable=too-many-public-methods
|
|
2605
2556
|
Set Job Status Bulk.
|
2606
2557
|
|
2607
2558
|
:param body: Required.
|
2608
|
-
:type body: dict[str, dict[str, ~
|
2559
|
+
:type body: dict[str, dict[str, ~generated.models.JobStatusUpdate]]
|
2609
2560
|
:keyword force: Default value is False.
|
2610
2561
|
:paramtype force: bool
|
2611
2562
|
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
|
2612
2563
|
Default value is "application/json".
|
2613
2564
|
:paramtype content_type: str
|
2614
2565
|
:return: dict mapping str to SetJobStatusReturn
|
2615
|
-
:rtype: dict[str, ~
|
2566
|
+
:rtype: dict[str, ~generated.models.SetJobStatusReturn]
|
2616
2567
|
:raises ~azure.core.exceptions.HttpResponseError:
|
2617
2568
|
"""
|
2618
2569
|
|
@@ -2637,7 +2588,7 @@ class JobsOperations: # pylint: disable=too-many-public-methods
|
|
2637
2588
|
Default value is "application/json".
|
2638
2589
|
:paramtype content_type: str
|
2639
2590
|
:return: dict mapping str to SetJobStatusReturn
|
2640
|
-
:rtype: dict[str, ~
|
2591
|
+
:rtype: dict[str, ~generated.models.SetJobStatusReturn]
|
2641
2592
|
:raises ~azure.core.exceptions.HttpResponseError:
|
2642
2593
|
"""
|
2643
2594
|
|
@@ -2654,14 +2605,14 @@ class JobsOperations: # pylint: disable=too-many-public-methods
|
|
2654
2605
|
Set Job Status Bulk.
|
2655
2606
|
|
2656
2607
|
:param body: Is either a {str: {str: JobStatusUpdate}} type or a IO[bytes] type. Required.
|
2657
|
-
:type body: dict[str, dict[str, ~
|
2608
|
+
:type body: dict[str, dict[str, ~generated.models.JobStatusUpdate]] or IO[bytes]
|
2658
2609
|
:keyword force: Default value is False.
|
2659
2610
|
:paramtype force: bool
|
2660
2611
|
:return: dict mapping str to SetJobStatusReturn
|
2661
|
-
:rtype: dict[str, ~
|
2612
|
+
:rtype: dict[str, ~generated.models.SetJobStatusReturn]
|
2662
2613
|
:raises ~azure.core.exceptions.HttpResponseError:
|
2663
2614
|
"""
|
2664
|
-
error_map: MutableMapping
|
2615
|
+
error_map: MutableMapping = {
|
2665
2616
|
401: ClientAuthenticationError,
|
2666
2617
|
404: ResourceNotFoundError,
|
2667
2618
|
409: ResourceExistsError,
|
@@ -2705,14 +2656,14 @@ class JobsOperations: # pylint: disable=too-many-public-methods
|
|
2705
2656
|
response = pipeline_response.http_response
|
2706
2657
|
|
2707
2658
|
if response.status_code not in [200]:
|
2708
|
-
if _stream:
|
2709
|
-
response.read() # Load the body in memory and close the socket
|
2710
2659
|
map_error(
|
2711
2660
|
status_code=response.status_code, response=response, error_map=error_map
|
2712
2661
|
)
|
2713
2662
|
raise HttpResponseError(response=response)
|
2714
2663
|
|
2715
|
-
deserialized = self._deserialize(
|
2664
|
+
deserialized = self._deserialize(
|
2665
|
+
"{SetJobStatusReturn}", pipeline_response.http_response
|
2666
|
+
)
|
2716
2667
|
|
2717
2668
|
if cls:
|
2718
2669
|
return cls(pipeline_response, deserialized, {}) # type: ignore
|
@@ -2730,10 +2681,10 @@ class JobsOperations: # pylint: disable=too-many-public-methods
|
|
2730
2681
|
:keyword job_ids: Required.
|
2731
2682
|
:paramtype job_ids: list[int]
|
2732
2683
|
:return: dict mapping str to list of JobStatusReturn
|
2733
|
-
:rtype: dict[str, list[~
|
2684
|
+
:rtype: dict[str, list[~generated.models.JobStatusReturn]]
|
2734
2685
|
:raises ~azure.core.exceptions.HttpResponseError:
|
2735
2686
|
"""
|
2736
|
-
error_map: MutableMapping
|
2687
|
+
error_map: MutableMapping = {
|
2737
2688
|
401: ClientAuthenticationError,
|
2738
2689
|
404: ResourceNotFoundError,
|
2739
2690
|
409: ResourceExistsError,
|
@@ -2763,14 +2714,14 @@ class JobsOperations: # pylint: disable=too-many-public-methods
|
|
2763
2714
|
response = pipeline_response.http_response
|
2764
2715
|
|
2765
2716
|
if response.status_code not in [200]:
|
2766
|
-
if _stream:
|
2767
|
-
response.read() # Load the body in memory and close the socket
|
2768
2717
|
map_error(
|
2769
2718
|
status_code=response.status_code, response=response, error_map=error_map
|
2770
2719
|
)
|
2771
2720
|
raise HttpResponseError(response=response)
|
2772
2721
|
|
2773
|
-
deserialized = self._deserialize(
|
2722
|
+
deserialized = self._deserialize(
|
2723
|
+
"{[JobStatusReturn]}", pipeline_response.http_response
|
2724
|
+
)
|
2774
2725
|
|
2775
2726
|
if cls:
|
2776
2727
|
return cls(pipeline_response, deserialized, {}) # type: ignore
|
@@ -2789,7 +2740,7 @@ class JobsOperations: # pylint: disable=too-many-public-methods
|
|
2789
2740
|
:rtype: any
|
2790
2741
|
:raises ~azure.core.exceptions.HttpResponseError:
|
2791
2742
|
"""
|
2792
|
-
error_map: MutableMapping
|
2743
|
+
error_map: MutableMapping = {
|
2793
2744
|
401: ClientAuthenticationError,
|
2794
2745
|
404: ResourceNotFoundError,
|
2795
2746
|
409: ResourceExistsError,
|
@@ -2819,14 +2770,12 @@ class JobsOperations: # pylint: disable=too-many-public-methods
|
|
2819
2770
|
response = pipeline_response.http_response
|
2820
2771
|
|
2821
2772
|
if response.status_code not in [200]:
|
2822
|
-
if _stream:
|
2823
|
-
response.read() # Load the body in memory and close the socket
|
2824
2773
|
map_error(
|
2825
2774
|
status_code=response.status_code, response=response, error_map=error_map
|
2826
2775
|
)
|
2827
2776
|
raise HttpResponseError(response=response)
|
2828
2777
|
|
2829
|
-
deserialized = self._deserialize("object", pipeline_response)
|
2778
|
+
deserialized = self._deserialize("object", pipeline_response.http_response)
|
2830
2779
|
|
2831
2780
|
if cls:
|
2832
2781
|
return cls(pipeline_response, deserialized, {}) # type: ignore
|
@@ -2845,7 +2794,7 @@ class JobsOperations: # pylint: disable=too-many-public-methods
|
|
2845
2794
|
:rtype: any
|
2846
2795
|
:raises ~azure.core.exceptions.HttpResponseError:
|
2847
2796
|
"""
|
2848
|
-
error_map: MutableMapping
|
2797
|
+
error_map: MutableMapping = {
|
2849
2798
|
401: ClientAuthenticationError,
|
2850
2799
|
404: ResourceNotFoundError,
|
2851
2800
|
409: ResourceExistsError,
|
@@ -2875,14 +2824,12 @@ class JobsOperations: # pylint: disable=too-many-public-methods
|
|
2875
2824
|
response = pipeline_response.http_response
|
2876
2825
|
|
2877
2826
|
if response.status_code not in [200]:
|
2878
|
-
if _stream:
|
2879
|
-
response.read() # Load the body in memory and close the socket
|
2880
2827
|
map_error(
|
2881
2828
|
status_code=response.status_code, response=response, error_map=error_map
|
2882
2829
|
)
|
2883
2830
|
raise HttpResponseError(response=response)
|
2884
2831
|
|
2885
|
-
deserialized = self._deserialize("object", pipeline_response)
|
2832
|
+
deserialized = self._deserialize("object", pipeline_response.http_response)
|
2886
2833
|
|
2887
2834
|
if cls:
|
2888
2835
|
return cls(pipeline_response, deserialized, {}) # type: ignore
|
@@ -2906,7 +2853,7 @@ class JobsOperations: # pylint: disable=too-many-public-methods
|
|
2906
2853
|
**TODO: Add more docs**.
|
2907
2854
|
|
2908
2855
|
:param body: Default value is None.
|
2909
|
-
:type body: ~
|
2856
|
+
:type body: ~generated.models.JobSearchParams
|
2910
2857
|
:keyword page: Default value is 1.
|
2911
2858
|
:paramtype page: int
|
2912
2859
|
:keyword per_page: Default value is 100.
|
@@ -2965,7 +2912,7 @@ class JobsOperations: # pylint: disable=too-many-public-methods
|
|
2965
2912
|
**TODO: Add more docs**.
|
2966
2913
|
|
2967
2914
|
:param body: Is either a JobSearchParams type or a IO[bytes] type. Default value is None.
|
2968
|
-
:type body: ~
|
2915
|
+
:type body: ~generated.models.JobSearchParams or IO[bytes]
|
2969
2916
|
:keyword page: Default value is 1.
|
2970
2917
|
:paramtype page: int
|
2971
2918
|
:keyword per_page: Default value is 100.
|
@@ -2974,7 +2921,7 @@ class JobsOperations: # pylint: disable=too-many-public-methods
|
|
2974
2921
|
:rtype: list[JSON]
|
2975
2922
|
:raises ~azure.core.exceptions.HttpResponseError:
|
2976
2923
|
"""
|
2977
|
-
error_map: MutableMapping
|
2924
|
+
error_map: MutableMapping = {
|
2978
2925
|
401: ClientAuthenticationError,
|
2979
2926
|
404: ResourceNotFoundError,
|
2980
2927
|
409: ResourceExistsError,
|
@@ -3022,23 +2969,18 @@ class JobsOperations: # pylint: disable=too-many-public-methods
|
|
3022
2969
|
response = pipeline_response.http_response
|
3023
2970
|
|
3024
2971
|
if response.status_code not in [200, 206]:
|
3025
|
-
if _stream:
|
3026
|
-
response.read() # Load the body in memory and close the socket
|
3027
2972
|
map_error(
|
3028
2973
|
status_code=response.status_code, response=response, error_map=error_map
|
3029
2974
|
)
|
3030
2975
|
raise HttpResponseError(response=response)
|
3031
2976
|
|
3032
2977
|
response_headers = {}
|
3033
|
-
if response.status_code == 200:
|
3034
|
-
deserialized = self._deserialize("[object]", pipeline_response)
|
3035
|
-
|
3036
2978
|
if response.status_code == 206:
|
3037
2979
|
response_headers["Content-Range"] = self._deserialize(
|
3038
2980
|
"str", response.headers.get("Content-Range")
|
3039
2981
|
)
|
3040
2982
|
|
3041
|
-
|
2983
|
+
deserialized = self._deserialize("[object]", pipeline_response.http_response)
|
3042
2984
|
|
3043
2985
|
if cls:
|
3044
2986
|
return cls(pipeline_response, deserialized, response_headers) # type: ignore
|
@@ -3058,7 +3000,7 @@ class JobsOperations: # pylint: disable=too-many-public-methods
|
|
3058
3000
|
Show information suitable for plotting.
|
3059
3001
|
|
3060
3002
|
:param body: Required.
|
3061
|
-
:type body: ~
|
3003
|
+
:type body: ~generated.models.JobSummaryParams
|
3062
3004
|
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
|
3063
3005
|
Default value is "application/json".
|
3064
3006
|
:paramtype content_type: str
|
@@ -3094,12 +3036,12 @@ class JobsOperations: # pylint: disable=too-many-public-methods
|
|
3094
3036
|
Show information suitable for plotting.
|
3095
3037
|
|
3096
3038
|
:param body: Is either a JobSummaryParams type or a IO[bytes] type. Required.
|
3097
|
-
:type body: ~
|
3039
|
+
:type body: ~generated.models.JobSummaryParams or IO[bytes]
|
3098
3040
|
:return: any
|
3099
3041
|
:rtype: any
|
3100
3042
|
:raises ~azure.core.exceptions.HttpResponseError:
|
3101
3043
|
"""
|
3102
|
-
error_map: MutableMapping
|
3044
|
+
error_map: MutableMapping = {
|
3103
3045
|
401: ClientAuthenticationError,
|
3104
3046
|
404: ResourceNotFoundError,
|
3105
3047
|
409: ResourceExistsError,
|
@@ -3142,14 +3084,12 @@ class JobsOperations: # pylint: disable=too-many-public-methods
|
|
3142
3084
|
response = pipeline_response.http_response
|
3143
3085
|
|
3144
3086
|
if response.status_code not in [200]:
|
3145
|
-
if _stream:
|
3146
|
-
response.read() # Load the body in memory and close the socket
|
3147
3087
|
map_error(
|
3148
3088
|
status_code=response.status_code, response=response, error_map=error_map
|
3149
3089
|
)
|
3150
3090
|
raise HttpResponseError(response=response)
|
3151
3091
|
|
3152
|
-
deserialized = self._deserialize("object", pipeline_response)
|
3092
|
+
deserialized = self._deserialize("object", pipeline_response.http_response)
|
3153
3093
|
|
3154
3094
|
if cls:
|
3155
3095
|
return cls(pipeline_response, deserialized, {}) # type: ignore
|
@@ -3168,7 +3108,7 @@ class JobsOperations: # pylint: disable=too-many-public-methods
|
|
3168
3108
|
:rtype: any
|
3169
3109
|
:raises ~azure.core.exceptions.HttpResponseError:
|
3170
3110
|
"""
|
3171
|
-
error_map: MutableMapping
|
3111
|
+
error_map: MutableMapping = {
|
3172
3112
|
401: ClientAuthenticationError,
|
3173
3113
|
404: ResourceNotFoundError,
|
3174
3114
|
409: ResourceExistsError,
|
@@ -3198,14 +3138,12 @@ class JobsOperations: # pylint: disable=too-many-public-methods
|
|
3198
3138
|
response = pipeline_response.http_response
|
3199
3139
|
|
3200
3140
|
if response.status_code not in [200]:
|
3201
|
-
if _stream:
|
3202
|
-
response.read() # Load the body in memory and close the socket
|
3203
3141
|
map_error(
|
3204
3142
|
status_code=response.status_code, response=response, error_map=error_map
|
3205
3143
|
)
|
3206
3144
|
raise HttpResponseError(response=response)
|
3207
3145
|
|
3208
|
-
deserialized = self._deserialize("object", pipeline_response)
|
3146
|
+
deserialized = self._deserialize("object", pipeline_response.http_response)
|
3209
3147
|
|
3210
3148
|
if cls:
|
3211
3149
|
return cls(pipeline_response, deserialized, {}) # type: ignore
|
@@ -3224,7 +3162,7 @@ class JobsOperations: # pylint: disable=too-many-public-methods
|
|
3224
3162
|
:rtype: any
|
3225
3163
|
:raises ~azure.core.exceptions.HttpResponseError:
|
3226
3164
|
"""
|
3227
|
-
error_map: MutableMapping
|
3165
|
+
error_map: MutableMapping = {
|
3228
3166
|
401: ClientAuthenticationError,
|
3229
3167
|
404: ResourceNotFoundError,
|
3230
3168
|
409: ResourceExistsError,
|
@@ -3254,14 +3192,12 @@ class JobsOperations: # pylint: disable=too-many-public-methods
|
|
3254
3192
|
response = pipeline_response.http_response
|
3255
3193
|
|
3256
3194
|
if response.status_code not in [200]:
|
3257
|
-
if _stream:
|
3258
|
-
response.read() # Load the body in memory and close the socket
|
3259
3195
|
map_error(
|
3260
3196
|
status_code=response.status_code, response=response, error_map=error_map
|
3261
3197
|
)
|
3262
3198
|
raise HttpResponseError(response=response)
|
3263
3199
|
|
3264
|
-
deserialized = self._deserialize("object", pipeline_response)
|
3200
|
+
deserialized = self._deserialize("object", pipeline_response.http_response)
|
3265
3201
|
|
3266
3202
|
if cls:
|
3267
3203
|
return cls(pipeline_response, deserialized, {}) # type: ignore
|
@@ -3286,7 +3222,7 @@ class JobsOperations: # pylint: disable=too-many-public-methods
|
|
3286
3222
|
:rtype: any
|
3287
3223
|
:raises ~azure.core.exceptions.HttpResponseError:
|
3288
3224
|
"""
|
3289
|
-
error_map: MutableMapping
|
3225
|
+
error_map: MutableMapping = {
|
3290
3226
|
401: ClientAuthenticationError,
|
3291
3227
|
404: ResourceNotFoundError,
|
3292
3228
|
409: ResourceExistsError,
|
@@ -3324,14 +3260,12 @@ class JobsOperations: # pylint: disable=too-many-public-methods
|
|
3324
3260
|
response = pipeline_response.http_response
|
3325
3261
|
|
3326
3262
|
if response.status_code not in [200]:
|
3327
|
-
if _stream:
|
3328
|
-
response.read() # Load the body in memory and close the socket
|
3329
3263
|
map_error(
|
3330
3264
|
status_code=response.status_code, response=response, error_map=error_map
|
3331
3265
|
)
|
3332
3266
|
raise HttpResponseError(response=response)
|
3333
3267
|
|
3334
|
-
deserialized = self._deserialize("object", pipeline_response)
|
3268
|
+
deserialized = self._deserialize("object", pipeline_response.http_response)
|
3335
3269
|
|
3336
3270
|
if cls:
|
3337
3271
|
return cls(pipeline_response, deserialized, {}) # type: ignore
|
@@ -3350,7 +3284,7 @@ class JobsOperations: # pylint: disable=too-many-public-methods
|
|
3350
3284
|
:rtype: any
|
3351
3285
|
:raises ~azure.core.exceptions.HttpResponseError:
|
3352
3286
|
"""
|
3353
|
-
error_map: MutableMapping
|
3287
|
+
error_map: MutableMapping = {
|
3354
3288
|
401: ClientAuthenticationError,
|
3355
3289
|
404: ResourceNotFoundError,
|
3356
3290
|
409: ResourceExistsError,
|
@@ -3380,14 +3314,12 @@ class JobsOperations: # pylint: disable=too-many-public-methods
|
|
3380
3314
|
response = pipeline_response.http_response
|
3381
3315
|
|
3382
3316
|
if response.status_code not in [200]:
|
3383
|
-
if _stream:
|
3384
|
-
response.read() # Load the body in memory and close the socket
|
3385
3317
|
map_error(
|
3386
3318
|
status_code=response.status_code, response=response, error_map=error_map
|
3387
3319
|
)
|
3388
3320
|
raise HttpResponseError(response=response)
|
3389
3321
|
|
3390
|
-
deserialized = self._deserialize("object", pipeline_response)
|
3322
|
+
deserialized = self._deserialize("object", pipeline_response.http_response)
|
3391
3323
|
|
3392
3324
|
if cls:
|
3393
3325
|
return cls(pipeline_response, deserialized, {}) # type: ignore
|
@@ -3410,7 +3342,7 @@ class JobsOperations: # pylint: disable=too-many-public-methods
|
|
3410
3342
|
:rtype: any
|
3411
3343
|
:raises ~azure.core.exceptions.HttpResponseError:
|
3412
3344
|
"""
|
3413
|
-
error_map: MutableMapping
|
3345
|
+
error_map: MutableMapping = {
|
3414
3346
|
401: ClientAuthenticationError,
|
3415
3347
|
404: ResourceNotFoundError,
|
3416
3348
|
409: ResourceExistsError,
|
@@ -3440,14 +3372,12 @@ class JobsOperations: # pylint: disable=too-many-public-methods
|
|
3440
3372
|
response = pipeline_response.http_response
|
3441
3373
|
|
3442
3374
|
if response.status_code not in [200]:
|
3443
|
-
if _stream:
|
3444
|
-
response.read() # Load the body in memory and close the socket
|
3445
3375
|
map_error(
|
3446
3376
|
status_code=response.status_code, response=response, error_map=error_map
|
3447
3377
|
)
|
3448
3378
|
raise HttpResponseError(response=response)
|
3449
3379
|
|
3450
|
-
deserialized = self._deserialize("object", pipeline_response)
|
3380
|
+
deserialized = self._deserialize("object", pipeline_response.http_response)
|
3451
3381
|
|
3452
3382
|
if cls:
|
3453
3383
|
return cls(pipeline_response, deserialized, {}) # type: ignore
|
@@ -3465,10 +3395,10 @@ class JobsOperations: # pylint: disable=too-many-public-methods
|
|
3465
3395
|
:param job_id: Required.
|
3466
3396
|
:type job_id: int
|
3467
3397
|
:return: dict mapping str to LimitedJobStatusReturn
|
3468
|
-
:rtype: dict[str, ~
|
3398
|
+
:rtype: dict[str, ~generated.models.LimitedJobStatusReturn]
|
3469
3399
|
:raises ~azure.core.exceptions.HttpResponseError:
|
3470
3400
|
"""
|
3471
|
-
error_map: MutableMapping
|
3401
|
+
error_map: MutableMapping = {
|
3472
3402
|
401: ClientAuthenticationError,
|
3473
3403
|
404: ResourceNotFoundError,
|
3474
3404
|
409: ResourceExistsError,
|
@@ -3500,14 +3430,14 @@ class JobsOperations: # pylint: disable=too-many-public-methods
|
|
3500
3430
|
response = pipeline_response.http_response
|
3501
3431
|
|
3502
3432
|
if response.status_code not in [200]:
|
3503
|
-
if _stream:
|
3504
|
-
response.read() # Load the body in memory and close the socket
|
3505
3433
|
map_error(
|
3506
3434
|
status_code=response.status_code, response=response, error_map=error_map
|
3507
3435
|
)
|
3508
3436
|
raise HttpResponseError(response=response)
|
3509
3437
|
|
3510
|
-
deserialized = self._deserialize(
|
3438
|
+
deserialized = self._deserialize(
|
3439
|
+
"{LimitedJobStatusReturn}", pipeline_response.http_response
|
3440
|
+
)
|
3511
3441
|
|
3512
3442
|
if cls:
|
3513
3443
|
return cls(pipeline_response, deserialized, {}) # type: ignore
|
@@ -3531,14 +3461,14 @@ class JobsOperations: # pylint: disable=too-many-public-methods
|
|
3531
3461
|
:param job_id: Required.
|
3532
3462
|
:type job_id: int
|
3533
3463
|
:param body: Required.
|
3534
|
-
:type body: dict[str, ~
|
3464
|
+
:type body: dict[str, ~generated.models.JobStatusUpdate]
|
3535
3465
|
:keyword force: Default value is False.
|
3536
3466
|
:paramtype force: bool
|
3537
3467
|
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
|
3538
3468
|
Default value is "application/json".
|
3539
3469
|
:paramtype content_type: str
|
3540
3470
|
:return: dict mapping str to SetJobStatusReturn
|
3541
|
-
:rtype: dict[str, ~
|
3471
|
+
:rtype: dict[str, ~generated.models.SetJobStatusReturn]
|
3542
3472
|
:raises ~azure.core.exceptions.HttpResponseError:
|
3543
3473
|
"""
|
3544
3474
|
|
@@ -3566,7 +3496,7 @@ class JobsOperations: # pylint: disable=too-many-public-methods
|
|
3566
3496
|
Default value is "application/json".
|
3567
3497
|
:paramtype content_type: str
|
3568
3498
|
:return: dict mapping str to SetJobStatusReturn
|
3569
|
-
:rtype: dict[str, ~
|
3499
|
+
:rtype: dict[str, ~generated.models.SetJobStatusReturn]
|
3570
3500
|
:raises ~azure.core.exceptions.HttpResponseError:
|
3571
3501
|
"""
|
3572
3502
|
|
@@ -3586,14 +3516,14 @@ class JobsOperations: # pylint: disable=too-many-public-methods
|
|
3586
3516
|
:param job_id: Required.
|
3587
3517
|
:type job_id: int
|
3588
3518
|
:param body: Is either a {str: JobStatusUpdate} type or a IO[bytes] type. Required.
|
3589
|
-
:type body: dict[str, ~
|
3519
|
+
:type body: dict[str, ~generated.models.JobStatusUpdate] or IO[bytes]
|
3590
3520
|
:keyword force: Default value is False.
|
3591
3521
|
:paramtype force: bool
|
3592
3522
|
:return: dict mapping str to SetJobStatusReturn
|
3593
|
-
:rtype: dict[str, ~
|
3523
|
+
:rtype: dict[str, ~generated.models.SetJobStatusReturn]
|
3594
3524
|
:raises ~azure.core.exceptions.HttpResponseError:
|
3595
3525
|
"""
|
3596
|
-
error_map: MutableMapping
|
3526
|
+
error_map: MutableMapping = {
|
3597
3527
|
401: ClientAuthenticationError,
|
3598
3528
|
404: ResourceNotFoundError,
|
3599
3529
|
409: ResourceExistsError,
|
@@ -3638,14 +3568,14 @@ class JobsOperations: # pylint: disable=too-many-public-methods
|
|
3638
3568
|
response = pipeline_response.http_response
|
3639
3569
|
|
3640
3570
|
if response.status_code not in [200]:
|
3641
|
-
if _stream:
|
3642
|
-
response.read() # Load the body in memory and close the socket
|
3643
3571
|
map_error(
|
3644
3572
|
status_code=response.status_code, response=response, error_map=error_map
|
3645
3573
|
)
|
3646
3574
|
raise HttpResponseError(response=response)
|
3647
3575
|
|
3648
|
-
deserialized = self._deserialize(
|
3576
|
+
deserialized = self._deserialize(
|
3577
|
+
"{SetJobStatusReturn}", pipeline_response.http_response
|
3578
|
+
)
|
3649
3579
|
|
3650
3580
|
if cls:
|
3651
3581
|
return cls(pipeline_response, deserialized, {}) # type: ignore
|
@@ -3663,10 +3593,10 @@ class JobsOperations: # pylint: disable=too-many-public-methods
|
|
3663
3593
|
:param job_id: Required.
|
3664
3594
|
:type job_id: int
|
3665
3595
|
:return: dict mapping str to list of JobStatusReturn
|
3666
|
-
:rtype: dict[str, list[~
|
3596
|
+
:rtype: dict[str, list[~generated.models.JobStatusReturn]]
|
3667
3597
|
:raises ~azure.core.exceptions.HttpResponseError:
|
3668
3598
|
"""
|
3669
|
-
error_map: MutableMapping
|
3599
|
+
error_map: MutableMapping = {
|
3670
3600
|
401: ClientAuthenticationError,
|
3671
3601
|
404: ResourceNotFoundError,
|
3672
3602
|
409: ResourceExistsError,
|
@@ -3696,14 +3626,14 @@ class JobsOperations: # pylint: disable=too-many-public-methods
|
|
3696
3626
|
response = pipeline_response.http_response
|
3697
3627
|
|
3698
3628
|
if response.status_code not in [200]:
|
3699
|
-
if _stream:
|
3700
|
-
response.read() # Load the body in memory and close the socket
|
3701
3629
|
map_error(
|
3702
3630
|
status_code=response.status_code, response=response, error_map=error_map
|
3703
3631
|
)
|
3704
3632
|
raise HttpResponseError(response=response)
|
3705
3633
|
|
3706
|
-
deserialized = self._deserialize(
|
3634
|
+
deserialized = self._deserialize(
|
3635
|
+
"{[JobStatusReturn]}", pipeline_response.http_response
|
3636
|
+
)
|
3707
3637
|
|
3708
3638
|
if cls:
|
3709
3639
|
return cls(pipeline_response, deserialized, {}) # type: ignore
|