diracx-client 0.0.1a19__py3-none-any.whl → 0.0.1a20__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,23 +1,12 @@
1
- # pylint: disable=too-many-lines,too-many-statements
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.0, generator: @autorest/python@6.23.0)
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 (
@@ -80,7 +69,7 @@ from .._vendor import raise_if_not_implemented
80
69
  if sys.version_info >= (3, 9):
81
70
  from collections.abc import MutableMapping
82
71
  else:
83
- from typing import MutableMapping # type: ignore # pylint: disable=ungrouped-imports
72
+ from typing import MutableMapping # type: ignore
84
73
  T = TypeVar("T")
85
74
  ClsType = Optional[
86
75
  Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]
@@ -119,14 +108,12 @@ class WellKnownOperations:
119
108
  :rtype: any
120
109
  :raises ~azure.core.exceptions.HttpResponseError:
121
110
  """
122
- error_map: MutableMapping[int, Type[HttpResponseError]] = (
123
- { # pylint: disable=unsubscriptable-object
124
- 401: ClientAuthenticationError,
125
- 404: ResourceNotFoundError,
126
- 409: ResourceExistsError,
127
- 304: ResourceNotModifiedError,
128
- }
129
- )
111
+ error_map: MutableMapping = {
112
+ 401: ClientAuthenticationError,
113
+ 404: ResourceNotFoundError,
114
+ 409: ResourceExistsError,
115
+ 304: ResourceNotModifiedError,
116
+ }
130
117
  error_map.update(kwargs.pop("error_map", {}) or {})
131
118
 
132
119
  _headers = kwargs.pop("headers", {}) or {}
@@ -172,14 +159,12 @@ class WellKnownOperations:
172
159
  :rtype: ~generated.models.Metadata
173
160
  :raises ~azure.core.exceptions.HttpResponseError:
174
161
  """
175
- error_map: MutableMapping[int, Type[HttpResponseError]] = (
176
- { # pylint: disable=unsubscriptable-object
177
- 401: ClientAuthenticationError,
178
- 404: ResourceNotFoundError,
179
- 409: ResourceExistsError,
180
- 304: ResourceNotModifiedError,
181
- }
182
- )
162
+ error_map: MutableMapping = {
163
+ 401: ClientAuthenticationError,
164
+ 404: ResourceNotFoundError,
165
+ 409: ResourceExistsError,
166
+ 304: ResourceNotModifiedError,
167
+ }
183
168
  error_map.update(kwargs.pop("error_map", {}) or {})
184
169
 
185
170
  _headers = kwargs.pop("headers", {}) or {}
@@ -266,14 +251,12 @@ class AuthOperations: # pylint: disable=abstract-class-instantiated
266
251
  :rtype: ~generated.models.InitiateDeviceFlowResponse
267
252
  :raises ~azure.core.exceptions.HttpResponseError:
268
253
  """
269
- error_map: MutableMapping[int, Type[HttpResponseError]] = (
270
- { # pylint: disable=unsubscriptable-object
271
- 401: ClientAuthenticationError,
272
- 404: ResourceNotFoundError,
273
- 409: ResourceExistsError,
274
- 304: ResourceNotModifiedError,
275
- }
276
- )
254
+ error_map: MutableMapping = {
255
+ 401: ClientAuthenticationError,
256
+ 404: ResourceNotFoundError,
257
+ 409: ResourceExistsError,
258
+ 304: ResourceNotModifiedError,
259
+ }
277
260
  error_map.update(kwargs.pop("error_map", {}) or {})
278
261
 
279
262
  _headers = kwargs.pop("headers", {}) or {}
@@ -332,14 +315,12 @@ class AuthOperations: # pylint: disable=abstract-class-instantiated
332
315
  :rtype: any
333
316
  :raises ~azure.core.exceptions.HttpResponseError:
334
317
  """
335
- error_map: MutableMapping[int, Type[HttpResponseError]] = (
336
- { # pylint: disable=unsubscriptable-object
337
- 401: ClientAuthenticationError,
338
- 404: ResourceNotFoundError,
339
- 409: ResourceExistsError,
340
- 304: ResourceNotModifiedError,
341
- }
342
- )
318
+ error_map: MutableMapping = {
319
+ 401: ClientAuthenticationError,
320
+ 404: ResourceNotFoundError,
321
+ 409: ResourceExistsError,
322
+ 304: ResourceNotModifiedError,
323
+ }
343
324
  error_map.update(kwargs.pop("error_map", {}) or {})
344
325
 
345
326
  _headers = kwargs.pop("headers", {}) or {}
@@ -394,14 +375,12 @@ class AuthOperations: # pylint: disable=abstract-class-instantiated
394
375
  :rtype: any
395
376
  :raises ~azure.core.exceptions.HttpResponseError:
396
377
  """
397
- error_map: MutableMapping[int, Type[HttpResponseError]] = (
398
- { # pylint: disable=unsubscriptable-object
399
- 401: ClientAuthenticationError,
400
- 404: ResourceNotFoundError,
401
- 409: ResourceExistsError,
402
- 304: ResourceNotModifiedError,
403
- }
404
- )
378
+ error_map: MutableMapping = {
379
+ 401: ClientAuthenticationError,
380
+ 404: ResourceNotFoundError,
381
+ 409: ResourceExistsError,
382
+ 304: ResourceNotModifiedError,
383
+ }
405
384
  error_map.update(kwargs.pop("error_map", {}) or {})
406
385
 
407
386
  _headers = kwargs.pop("headers", {}) or {}
@@ -449,14 +428,12 @@ class AuthOperations: # pylint: disable=abstract-class-instantiated
449
428
  :rtype: any
450
429
  :raises ~azure.core.exceptions.HttpResponseError:
451
430
  """
452
- error_map: MutableMapping[int, Type[HttpResponseError]] = (
453
- { # pylint: disable=unsubscriptable-object
454
- 401: ClientAuthenticationError,
455
- 404: ResourceNotFoundError,
456
- 409: ResourceExistsError,
457
- 304: ResourceNotModifiedError,
458
- }
459
- )
431
+ error_map: MutableMapping = {
432
+ 401: ClientAuthenticationError,
433
+ 404: ResourceNotFoundError,
434
+ 409: ResourceExistsError,
435
+ 304: ResourceNotModifiedError,
436
+ }
460
437
  error_map.update(kwargs.pop("error_map", {}) or {})
461
438
 
462
439
  _headers = kwargs.pop("headers", {}) or {}
@@ -503,14 +480,12 @@ class AuthOperations: # pylint: disable=abstract-class-instantiated
503
480
  :rtype: list[any]
504
481
  :raises ~azure.core.exceptions.HttpResponseError:
505
482
  """
506
- error_map: MutableMapping[int, Type[HttpResponseError]] = (
507
- { # pylint: disable=unsubscriptable-object
508
- 401: ClientAuthenticationError,
509
- 404: ResourceNotFoundError,
510
- 409: ResourceExistsError,
511
- 304: ResourceNotModifiedError,
512
- }
513
- )
483
+ error_map: MutableMapping = {
484
+ 401: ClientAuthenticationError,
485
+ 404: ResourceNotFoundError,
486
+ 409: ResourceExistsError,
487
+ 304: ResourceNotModifiedError,
488
+ }
514
489
  error_map.update(kwargs.pop("error_map", {}) or {})
515
490
 
516
491
  _headers = kwargs.pop("headers", {}) or {}
@@ -559,14 +534,12 @@ class AuthOperations: # pylint: disable=abstract-class-instantiated
559
534
  :rtype: str
560
535
  :raises ~azure.core.exceptions.HttpResponseError:
561
536
  """
562
- error_map: MutableMapping[int, Type[HttpResponseError]] = (
563
- { # pylint: disable=unsubscriptable-object
564
- 401: ClientAuthenticationError,
565
- 404: ResourceNotFoundError,
566
- 409: ResourceExistsError,
567
- 304: ResourceNotModifiedError,
568
- }
569
- )
537
+ error_map: MutableMapping = {
538
+ 401: ClientAuthenticationError,
539
+ 404: ResourceNotFoundError,
540
+ 409: ResourceExistsError,
541
+ 304: ResourceNotModifiedError,
542
+ }
570
543
  error_map.update(kwargs.pop("error_map", {}) or {})
571
544
 
572
545
  _headers = kwargs.pop("headers", {}) or {}
@@ -613,14 +586,12 @@ class AuthOperations: # pylint: disable=abstract-class-instantiated
613
586
  :rtype: ~generated.models.UserInfoResponse
614
587
  :raises ~azure.core.exceptions.HttpResponseError:
615
588
  """
616
- error_map: MutableMapping[int, Type[HttpResponseError]] = (
617
- { # pylint: disable=unsubscriptable-object
618
- 401: ClientAuthenticationError,
619
- 404: ResourceNotFoundError,
620
- 409: ResourceExistsError,
621
- 304: ResourceNotModifiedError,
622
- }
623
- )
589
+ error_map: MutableMapping = {
590
+ 401: ClientAuthenticationError,
591
+ 404: ResourceNotFoundError,
592
+ 409: ResourceExistsError,
593
+ 304: ResourceNotModifiedError,
594
+ }
624
595
  error_map.update(kwargs.pop("error_map", {}) or {})
625
596
 
626
597
  _headers = kwargs.pop("headers", {}) or {}
@@ -699,14 +670,12 @@ class AuthOperations: # pylint: disable=abstract-class-instantiated
699
670
  :rtype: any
700
671
  :raises ~azure.core.exceptions.HttpResponseError:
701
672
  """
702
- error_map: MutableMapping[int, Type[HttpResponseError]] = (
703
- { # pylint: disable=unsubscriptable-object
704
- 401: ClientAuthenticationError,
705
- 404: ResourceNotFoundError,
706
- 409: ResourceExistsError,
707
- 304: ResourceNotModifiedError,
708
- }
709
- )
673
+ error_map: MutableMapping = {
674
+ 401: ClientAuthenticationError,
675
+ 404: ResourceNotFoundError,
676
+ 409: ResourceExistsError,
677
+ 304: ResourceNotModifiedError,
678
+ }
710
679
  error_map.update(kwargs.pop("error_map", {}) or {})
711
680
 
712
681
  _headers = kwargs.pop("headers", {}) or {}
@@ -771,14 +740,12 @@ class AuthOperations: # pylint: disable=abstract-class-instantiated
771
740
  :rtype: any
772
741
  :raises ~azure.core.exceptions.HttpResponseError:
773
742
  """
774
- error_map: MutableMapping[int, Type[HttpResponseError]] = (
775
- { # pylint: disable=unsubscriptable-object
776
- 401: ClientAuthenticationError,
777
- 404: ResourceNotFoundError,
778
- 409: ResourceExistsError,
779
- 304: ResourceNotModifiedError,
780
- }
781
- )
743
+ error_map: MutableMapping = {
744
+ 401: ClientAuthenticationError,
745
+ 404: ResourceNotFoundError,
746
+ 409: ResourceExistsError,
747
+ 304: ResourceNotModifiedError,
748
+ }
782
749
  error_map.update(kwargs.pop("error_map", {}) or {})
783
750
 
784
751
  _headers = kwargs.pop("headers", {}) or {}
@@ -867,14 +834,12 @@ class ConfigOperations:
867
834
  :rtype: any
868
835
  :raises ~azure.core.exceptions.HttpResponseError:
869
836
  """
870
- error_map: MutableMapping[int, Type[HttpResponseError]] = (
871
- { # pylint: disable=unsubscriptable-object
872
- 401: ClientAuthenticationError,
873
- 404: ResourceNotFoundError,
874
- 409: ResourceExistsError,
875
- 304: ResourceNotModifiedError,
876
- }
877
- )
837
+ error_map: MutableMapping = {
838
+ 401: ClientAuthenticationError,
839
+ 404: ResourceNotFoundError,
840
+ 409: ResourceExistsError,
841
+ 304: ResourceNotModifiedError,
842
+ }
878
843
  if match_condition == MatchConditions.IfNotModified:
879
844
  error_map[412] = ResourceModifiedError
880
845
  elif match_condition == MatchConditions.IfPresent:
@@ -1013,14 +978,12 @@ class JobsOperations: # pylint: disable=too-many-public-methods
1013
978
  :rtype: ~generated.models.SandboxUploadResponse
1014
979
  :raises ~azure.core.exceptions.HttpResponseError:
1015
980
  """
1016
- error_map: MutableMapping[int, Type[HttpResponseError]] = (
1017
- { # pylint: disable=unsubscriptable-object
1018
- 401: ClientAuthenticationError,
1019
- 404: ResourceNotFoundError,
1020
- 409: ResourceExistsError,
1021
- 304: ResourceNotModifiedError,
1022
- }
1023
- )
981
+ error_map: MutableMapping = {
982
+ 401: ClientAuthenticationError,
983
+ 404: ResourceNotFoundError,
984
+ 409: ResourceExistsError,
985
+ 304: ResourceNotModifiedError,
986
+ }
1024
987
  error_map.update(kwargs.pop("error_map", {}) or {})
1025
988
 
1026
989
  _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
@@ -1092,14 +1055,12 @@ class JobsOperations: # pylint: disable=too-many-public-methods
1092
1055
  :rtype: ~generated.models.SandboxDownloadResponse
1093
1056
  :raises ~azure.core.exceptions.HttpResponseError:
1094
1057
  """
1095
- error_map: MutableMapping[int, Type[HttpResponseError]] = (
1096
- { # pylint: disable=unsubscriptable-object
1097
- 401: ClientAuthenticationError,
1098
- 404: ResourceNotFoundError,
1099
- 409: ResourceExistsError,
1100
- 304: ResourceNotModifiedError,
1101
- }
1102
- )
1058
+ error_map: MutableMapping = {
1059
+ 401: ClientAuthenticationError,
1060
+ 404: ResourceNotFoundError,
1061
+ 409: ResourceExistsError,
1062
+ 304: ResourceNotModifiedError,
1063
+ }
1103
1064
  error_map.update(kwargs.pop("error_map", {}) or {})
1104
1065
 
1105
1066
  _headers = kwargs.pop("headers", {}) or {}
@@ -1152,14 +1113,12 @@ class JobsOperations: # pylint: disable=too-many-public-methods
1152
1113
  :rtype: any
1153
1114
  :raises ~azure.core.exceptions.HttpResponseError:
1154
1115
  """
1155
- error_map: MutableMapping[int, Type[HttpResponseError]] = (
1156
- { # pylint: disable=unsubscriptable-object
1157
- 401: ClientAuthenticationError,
1158
- 404: ResourceNotFoundError,
1159
- 409: ResourceExistsError,
1160
- 304: ResourceNotModifiedError,
1161
- }
1162
- )
1116
+ error_map: MutableMapping = {
1117
+ 401: ClientAuthenticationError,
1118
+ 404: ResourceNotFoundError,
1119
+ 409: ResourceExistsError,
1120
+ 304: ResourceNotModifiedError,
1121
+ }
1163
1122
  error_map.update(kwargs.pop("error_map", {}) or {})
1164
1123
 
1165
1124
  _headers = kwargs.pop("headers", {}) or {}
@@ -1210,14 +1169,12 @@ class JobsOperations: # pylint: disable=too-many-public-methods
1210
1169
  :rtype: dict[str, list[any]]
1211
1170
  :raises ~azure.core.exceptions.HttpResponseError:
1212
1171
  """
1213
- error_map: MutableMapping[int, Type[HttpResponseError]] = (
1214
- { # pylint: disable=unsubscriptable-object
1215
- 401: ClientAuthenticationError,
1216
- 404: ResourceNotFoundError,
1217
- 409: ResourceExistsError,
1218
- 304: ResourceNotModifiedError,
1219
- }
1220
- )
1172
+ error_map: MutableMapping = {
1173
+ 401: ClientAuthenticationError,
1174
+ 404: ResourceNotFoundError,
1175
+ 409: ResourceExistsError,
1176
+ 304: ResourceNotModifiedError,
1177
+ }
1221
1178
  error_map.update(kwargs.pop("error_map", {}) or {})
1222
1179
 
1223
1180
  _headers = kwargs.pop("headers", {}) or {}
@@ -1266,14 +1223,12 @@ class JobsOperations: # pylint: disable=too-many-public-methods
1266
1223
  :rtype: any
1267
1224
  :raises ~azure.core.exceptions.HttpResponseError:
1268
1225
  """
1269
- error_map: MutableMapping[int, Type[HttpResponseError]] = (
1270
- { # pylint: disable=unsubscriptable-object
1271
- 401: ClientAuthenticationError,
1272
- 404: ResourceNotFoundError,
1273
- 409: ResourceExistsError,
1274
- 304: ResourceNotModifiedError,
1275
- }
1276
- )
1226
+ error_map: MutableMapping = {
1227
+ 401: ClientAuthenticationError,
1228
+ 404: ResourceNotFoundError,
1229
+ 409: ResourceExistsError,
1230
+ 304: ResourceNotModifiedError,
1231
+ }
1277
1232
  error_map.update(kwargs.pop("error_map", {}) or {})
1278
1233
 
1279
1234
  _headers = kwargs.pop("headers", {}) or {}
@@ -1326,14 +1281,12 @@ class JobsOperations: # pylint: disable=too-many-public-methods
1326
1281
  :rtype: list[any]
1327
1282
  :raises ~azure.core.exceptions.HttpResponseError:
1328
1283
  """
1329
- error_map: MutableMapping[int, Type[HttpResponseError]] = (
1330
- { # pylint: disable=unsubscriptable-object
1331
- 401: ClientAuthenticationError,
1332
- 404: ResourceNotFoundError,
1333
- 409: ResourceExistsError,
1334
- 304: ResourceNotModifiedError,
1335
- }
1336
- )
1284
+ error_map: MutableMapping = {
1285
+ 401: ClientAuthenticationError,
1286
+ 404: ResourceNotFoundError,
1287
+ 409: ResourceExistsError,
1288
+ 304: ResourceNotModifiedError,
1289
+ }
1337
1290
  error_map.update(kwargs.pop("error_map", {}) or {})
1338
1291
 
1339
1292
  _headers = kwargs.pop("headers", {}) or {}
@@ -1385,14 +1338,12 @@ class JobsOperations: # pylint: disable=too-many-public-methods
1385
1338
  :rtype: any
1386
1339
  :raises ~azure.core.exceptions.HttpResponseError:
1387
1340
  """
1388
- error_map: MutableMapping[int, Type[HttpResponseError]] = (
1389
- { # pylint: disable=unsubscriptable-object
1390
- 401: ClientAuthenticationError,
1391
- 404: ResourceNotFoundError,
1392
- 409: ResourceExistsError,
1393
- 304: ResourceNotModifiedError,
1394
- }
1395
- )
1341
+ error_map: MutableMapping = {
1342
+ 401: ClientAuthenticationError,
1343
+ 404: ResourceNotFoundError,
1344
+ 409: ResourceExistsError,
1345
+ 304: ResourceNotModifiedError,
1346
+ }
1396
1347
  error_map.update(kwargs.pop("error_map", {}) or {})
1397
1348
 
1398
1349
  _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
@@ -1486,14 +1437,12 @@ class JobsOperations: # pylint: disable=too-many-public-methods
1486
1437
  :rtype: list[~generated.models.InsertedJob]
1487
1438
  :raises ~azure.core.exceptions.HttpResponseError:
1488
1439
  """
1489
- error_map: MutableMapping[int, Type[HttpResponseError]] = (
1490
- { # pylint: disable=unsubscriptable-object
1491
- 401: ClientAuthenticationError,
1492
- 404: ResourceNotFoundError,
1493
- 409: ResourceExistsError,
1494
- 304: ResourceNotModifiedError,
1495
- }
1496
- )
1440
+ error_map: MutableMapping = {
1441
+ 401: ClientAuthenticationError,
1442
+ 404: ResourceNotFoundError,
1443
+ 409: ResourceExistsError,
1444
+ 304: ResourceNotModifiedError,
1445
+ }
1497
1446
  error_map.update(kwargs.pop("error_map", {}) or {})
1498
1447
 
1499
1448
  _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
@@ -1557,14 +1506,12 @@ class JobsOperations: # pylint: disable=too-many-public-methods
1557
1506
  :rtype: any
1558
1507
  :raises ~azure.core.exceptions.HttpResponseError:
1559
1508
  """
1560
- error_map: MutableMapping[int, Type[HttpResponseError]] = (
1561
- { # pylint: disable=unsubscriptable-object
1562
- 401: ClientAuthenticationError,
1563
- 404: ResourceNotFoundError,
1564
- 409: ResourceExistsError,
1565
- 304: ResourceNotModifiedError,
1566
- }
1567
- )
1509
+ error_map: MutableMapping = {
1510
+ 401: ClientAuthenticationError,
1511
+ 404: ResourceNotFoundError,
1512
+ 409: ResourceExistsError,
1513
+ 304: ResourceNotModifiedError,
1514
+ }
1568
1515
  error_map.update(kwargs.pop("error_map", {}) or {})
1569
1516
 
1570
1517
  _headers = kwargs.pop("headers", {}) or {}
@@ -1613,14 +1560,12 @@ class JobsOperations: # pylint: disable=too-many-public-methods
1613
1560
  :rtype: any
1614
1561
  :raises ~azure.core.exceptions.HttpResponseError:
1615
1562
  """
1616
- error_map: MutableMapping[int, Type[HttpResponseError]] = (
1617
- { # pylint: disable=unsubscriptable-object
1618
- 401: ClientAuthenticationError,
1619
- 404: ResourceNotFoundError,
1620
- 409: ResourceExistsError,
1621
- 304: ResourceNotModifiedError,
1622
- }
1623
- )
1563
+ error_map: MutableMapping = {
1564
+ 401: ClientAuthenticationError,
1565
+ 404: ResourceNotFoundError,
1566
+ 409: ResourceExistsError,
1567
+ 304: ResourceNotModifiedError,
1568
+ }
1624
1569
  error_map.update(kwargs.pop("error_map", {}) or {})
1625
1570
 
1626
1571
  _headers = kwargs.pop("headers", {}) or {}
@@ -1673,14 +1618,12 @@ class JobsOperations: # pylint: disable=too-many-public-methods
1673
1618
  :rtype: any
1674
1619
  :raises ~azure.core.exceptions.HttpResponseError:
1675
1620
  """
1676
- error_map: MutableMapping[int, Type[HttpResponseError]] = (
1677
- { # pylint: disable=unsubscriptable-object
1678
- 401: ClientAuthenticationError,
1679
- 404: ResourceNotFoundError,
1680
- 409: ResourceExistsError,
1681
- 304: ResourceNotModifiedError,
1682
- }
1683
- )
1621
+ error_map: MutableMapping = {
1622
+ 401: ClientAuthenticationError,
1623
+ 404: ResourceNotFoundError,
1624
+ 409: ResourceExistsError,
1625
+ 304: ResourceNotModifiedError,
1626
+ }
1684
1627
  error_map.update(kwargs.pop("error_map", {}) or {})
1685
1628
 
1686
1629
  _headers = kwargs.pop("headers", {}) or {}
@@ -1731,14 +1674,12 @@ class JobsOperations: # pylint: disable=too-many-public-methods
1731
1674
  :rtype: dict[str, ~generated.models.LimitedJobStatusReturn]
1732
1675
  :raises ~azure.core.exceptions.HttpResponseError:
1733
1676
  """
1734
- error_map: MutableMapping[int, Type[HttpResponseError]] = (
1735
- { # pylint: disable=unsubscriptable-object
1736
- 401: ClientAuthenticationError,
1737
- 404: ResourceNotFoundError,
1738
- 409: ResourceExistsError,
1739
- 304: ResourceNotModifiedError,
1740
- }
1741
- )
1677
+ error_map: MutableMapping = {
1678
+ 401: ClientAuthenticationError,
1679
+ 404: ResourceNotFoundError,
1680
+ 409: ResourceExistsError,
1681
+ 304: ResourceNotModifiedError,
1682
+ }
1742
1683
  error_map.update(kwargs.pop("error_map", {}) or {})
1743
1684
 
1744
1685
  _headers = kwargs.pop("headers", {}) or {}
@@ -1849,14 +1790,12 @@ class JobsOperations: # pylint: disable=too-many-public-methods
1849
1790
  :rtype: dict[str, ~generated.models.SetJobStatusReturn]
1850
1791
  :raises ~azure.core.exceptions.HttpResponseError:
1851
1792
  """
1852
- error_map: MutableMapping[int, Type[HttpResponseError]] = (
1853
- { # pylint: disable=unsubscriptable-object
1854
- 401: ClientAuthenticationError,
1855
- 404: ResourceNotFoundError,
1856
- 409: ResourceExistsError,
1857
- 304: ResourceNotModifiedError,
1858
- }
1859
- )
1793
+ error_map: MutableMapping = {
1794
+ 401: ClientAuthenticationError,
1795
+ 404: ResourceNotFoundError,
1796
+ 409: ResourceExistsError,
1797
+ 304: ResourceNotModifiedError,
1798
+ }
1860
1799
  error_map.update(kwargs.pop("error_map", {}) or {})
1861
1800
 
1862
1801
  _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
@@ -1923,14 +1862,12 @@ class JobsOperations: # pylint: disable=too-many-public-methods
1923
1862
  :rtype: dict[str, list[~generated.models.JobStatusReturn]]
1924
1863
  :raises ~azure.core.exceptions.HttpResponseError:
1925
1864
  """
1926
- error_map: MutableMapping[int, Type[HttpResponseError]] = (
1927
- { # pylint: disable=unsubscriptable-object
1928
- 401: ClientAuthenticationError,
1929
- 404: ResourceNotFoundError,
1930
- 409: ResourceExistsError,
1931
- 304: ResourceNotModifiedError,
1932
- }
1933
- )
1865
+ error_map: MutableMapping = {
1866
+ 401: ClientAuthenticationError,
1867
+ 404: ResourceNotFoundError,
1868
+ 409: ResourceExistsError,
1869
+ 304: ResourceNotModifiedError,
1870
+ }
1934
1871
  error_map.update(kwargs.pop("error_map", {}) or {})
1935
1872
 
1936
1873
  _headers = kwargs.pop("headers", {}) or {}
@@ -1981,14 +1918,12 @@ class JobsOperations: # pylint: disable=too-many-public-methods
1981
1918
  :rtype: any
1982
1919
  :raises ~azure.core.exceptions.HttpResponseError:
1983
1920
  """
1984
- error_map: MutableMapping[int, Type[HttpResponseError]] = (
1985
- { # pylint: disable=unsubscriptable-object
1986
- 401: ClientAuthenticationError,
1987
- 404: ResourceNotFoundError,
1988
- 409: ResourceExistsError,
1989
- 304: ResourceNotModifiedError,
1990
- }
1991
- )
1921
+ error_map: MutableMapping = {
1922
+ 401: ClientAuthenticationError,
1923
+ 404: ResourceNotFoundError,
1924
+ 409: ResourceExistsError,
1925
+ 304: ResourceNotModifiedError,
1926
+ }
1992
1927
  error_map.update(kwargs.pop("error_map", {}) or {})
1993
1928
 
1994
1929
  _headers = kwargs.pop("headers", {}) or {}
@@ -2037,14 +1972,12 @@ class JobsOperations: # pylint: disable=too-many-public-methods
2037
1972
  :rtype: any
2038
1973
  :raises ~azure.core.exceptions.HttpResponseError:
2039
1974
  """
2040
- error_map: MutableMapping[int, Type[HttpResponseError]] = (
2041
- { # pylint: disable=unsubscriptable-object
2042
- 401: ClientAuthenticationError,
2043
- 404: ResourceNotFoundError,
2044
- 409: ResourceExistsError,
2045
- 304: ResourceNotModifiedError,
2046
- }
2047
- )
1975
+ error_map: MutableMapping = {
1976
+ 401: ClientAuthenticationError,
1977
+ 404: ResourceNotFoundError,
1978
+ 409: ResourceExistsError,
1979
+ 304: ResourceNotModifiedError,
1980
+ }
2048
1981
  error_map.update(kwargs.pop("error_map", {}) or {})
2049
1982
 
2050
1983
  _headers = kwargs.pop("headers", {}) or {}
@@ -2166,14 +2099,12 @@ class JobsOperations: # pylint: disable=too-many-public-methods
2166
2099
  :rtype: list[JSON]
2167
2100
  :raises ~azure.core.exceptions.HttpResponseError:
2168
2101
  """
2169
- error_map: MutableMapping[int, Type[HttpResponseError]] = (
2170
- { # pylint: disable=unsubscriptable-object
2171
- 401: ClientAuthenticationError,
2172
- 404: ResourceNotFoundError,
2173
- 409: ResourceExistsError,
2174
- 304: ResourceNotModifiedError,
2175
- }
2176
- )
2102
+ error_map: MutableMapping = {
2103
+ 401: ClientAuthenticationError,
2104
+ 404: ResourceNotFoundError,
2105
+ 409: ResourceExistsError,
2106
+ 304: ResourceNotModifiedError,
2107
+ }
2177
2108
  error_map.update(kwargs.pop("error_map", {}) or {})
2178
2109
 
2179
2110
  _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
@@ -2288,14 +2219,12 @@ class JobsOperations: # pylint: disable=too-many-public-methods
2288
2219
  :rtype: any
2289
2220
  :raises ~azure.core.exceptions.HttpResponseError:
2290
2221
  """
2291
- error_map: MutableMapping[int, Type[HttpResponseError]] = (
2292
- { # pylint: disable=unsubscriptable-object
2293
- 401: ClientAuthenticationError,
2294
- 404: ResourceNotFoundError,
2295
- 409: ResourceExistsError,
2296
- 304: ResourceNotModifiedError,
2297
- }
2298
- )
2222
+ error_map: MutableMapping = {
2223
+ 401: ClientAuthenticationError,
2224
+ 404: ResourceNotFoundError,
2225
+ 409: ResourceExistsError,
2226
+ 304: ResourceNotModifiedError,
2227
+ }
2299
2228
  error_map.update(kwargs.pop("error_map", {}) or {})
2300
2229
 
2301
2230
  _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
@@ -2357,14 +2286,12 @@ class JobsOperations: # pylint: disable=too-many-public-methods
2357
2286
  :rtype: any
2358
2287
  :raises ~azure.core.exceptions.HttpResponseError:
2359
2288
  """
2360
- error_map: MutableMapping[int, Type[HttpResponseError]] = (
2361
- { # pylint: disable=unsubscriptable-object
2362
- 401: ClientAuthenticationError,
2363
- 404: ResourceNotFoundError,
2364
- 409: ResourceExistsError,
2365
- 304: ResourceNotModifiedError,
2366
- }
2367
- )
2289
+ error_map: MutableMapping = {
2290
+ 401: ClientAuthenticationError,
2291
+ 404: ResourceNotFoundError,
2292
+ 409: ResourceExistsError,
2293
+ 304: ResourceNotModifiedError,
2294
+ }
2368
2295
  error_map.update(kwargs.pop("error_map", {}) or {})
2369
2296
 
2370
2297
  _headers = kwargs.pop("headers", {}) or {}
@@ -2413,14 +2340,12 @@ class JobsOperations: # pylint: disable=too-many-public-methods
2413
2340
  :rtype: any
2414
2341
  :raises ~azure.core.exceptions.HttpResponseError:
2415
2342
  """
2416
- error_map: MutableMapping[int, Type[HttpResponseError]] = (
2417
- { # pylint: disable=unsubscriptable-object
2418
- 401: ClientAuthenticationError,
2419
- 404: ResourceNotFoundError,
2420
- 409: ResourceExistsError,
2421
- 304: ResourceNotModifiedError,
2422
- }
2423
- )
2343
+ error_map: MutableMapping = {
2344
+ 401: ClientAuthenticationError,
2345
+ 404: ResourceNotFoundError,
2346
+ 409: ResourceExistsError,
2347
+ 304: ResourceNotModifiedError,
2348
+ }
2424
2349
  error_map.update(kwargs.pop("error_map", {}) or {})
2425
2350
 
2426
2351
  _headers = kwargs.pop("headers", {}) or {}
@@ -2475,14 +2400,12 @@ class JobsOperations: # pylint: disable=too-many-public-methods
2475
2400
  :rtype: any
2476
2401
  :raises ~azure.core.exceptions.HttpResponseError:
2477
2402
  """
2478
- error_map: MutableMapping[int, Type[HttpResponseError]] = (
2479
- { # pylint: disable=unsubscriptable-object
2480
- 401: ClientAuthenticationError,
2481
- 404: ResourceNotFoundError,
2482
- 409: ResourceExistsError,
2483
- 304: ResourceNotModifiedError,
2484
- }
2485
- )
2403
+ error_map: MutableMapping = {
2404
+ 401: ClientAuthenticationError,
2405
+ 404: ResourceNotFoundError,
2406
+ 409: ResourceExistsError,
2407
+ 304: ResourceNotModifiedError,
2408
+ }
2486
2409
  error_map.update(kwargs.pop("error_map", {}) or {})
2487
2410
 
2488
2411
  _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
@@ -2539,14 +2462,12 @@ class JobsOperations: # pylint: disable=too-many-public-methods
2539
2462
  :rtype: any
2540
2463
  :raises ~azure.core.exceptions.HttpResponseError:
2541
2464
  """
2542
- error_map: MutableMapping[int, Type[HttpResponseError]] = (
2543
- { # pylint: disable=unsubscriptable-object
2544
- 401: ClientAuthenticationError,
2545
- 404: ResourceNotFoundError,
2546
- 409: ResourceExistsError,
2547
- 304: ResourceNotModifiedError,
2548
- }
2549
- )
2465
+ error_map: MutableMapping = {
2466
+ 401: ClientAuthenticationError,
2467
+ 404: ResourceNotFoundError,
2468
+ 409: ResourceExistsError,
2469
+ 304: ResourceNotModifiedError,
2470
+ }
2550
2471
  error_map.update(kwargs.pop("error_map", {}) or {})
2551
2472
 
2552
2473
  _headers = kwargs.pop("headers", {}) or {}
@@ -2599,14 +2520,12 @@ class JobsOperations: # pylint: disable=too-many-public-methods
2599
2520
  :rtype: any
2600
2521
  :raises ~azure.core.exceptions.HttpResponseError:
2601
2522
  """
2602
- error_map: MutableMapping[int, Type[HttpResponseError]] = (
2603
- { # pylint: disable=unsubscriptable-object
2604
- 401: ClientAuthenticationError,
2605
- 404: ResourceNotFoundError,
2606
- 409: ResourceExistsError,
2607
- 304: ResourceNotModifiedError,
2608
- }
2609
- )
2523
+ error_map: MutableMapping = {
2524
+ 401: ClientAuthenticationError,
2525
+ 404: ResourceNotFoundError,
2526
+ 409: ResourceExistsError,
2527
+ 304: ResourceNotModifiedError,
2528
+ }
2610
2529
  error_map.update(kwargs.pop("error_map", {}) or {})
2611
2530
 
2612
2531
  _headers = kwargs.pop("headers", {}) or {}
@@ -2657,14 +2576,12 @@ class JobsOperations: # pylint: disable=too-many-public-methods
2657
2576
  :rtype: dict[str, ~generated.models.LimitedJobStatusReturn]
2658
2577
  :raises ~azure.core.exceptions.HttpResponseError:
2659
2578
  """
2660
- error_map: MutableMapping[int, Type[HttpResponseError]] = (
2661
- { # pylint: disable=unsubscriptable-object
2662
- 401: ClientAuthenticationError,
2663
- 404: ResourceNotFoundError,
2664
- 409: ResourceExistsError,
2665
- 304: ResourceNotModifiedError,
2666
- }
2667
- )
2579
+ error_map: MutableMapping = {
2580
+ 401: ClientAuthenticationError,
2581
+ 404: ResourceNotFoundError,
2582
+ 409: ResourceExistsError,
2583
+ 304: ResourceNotModifiedError,
2584
+ }
2668
2585
  error_map.update(kwargs.pop("error_map", {}) or {})
2669
2586
 
2670
2587
  _headers = kwargs.pop("headers", {}) or {}
@@ -2784,14 +2701,12 @@ class JobsOperations: # pylint: disable=too-many-public-methods
2784
2701
  :rtype: dict[str, ~generated.models.SetJobStatusReturn]
2785
2702
  :raises ~azure.core.exceptions.HttpResponseError:
2786
2703
  """
2787
- error_map: MutableMapping[int, Type[HttpResponseError]] = (
2788
- { # pylint: disable=unsubscriptable-object
2789
- 401: ClientAuthenticationError,
2790
- 404: ResourceNotFoundError,
2791
- 409: ResourceExistsError,
2792
- 304: ResourceNotModifiedError,
2793
- }
2794
- )
2704
+ error_map: MutableMapping = {
2705
+ 401: ClientAuthenticationError,
2706
+ 404: ResourceNotFoundError,
2707
+ 409: ResourceExistsError,
2708
+ 304: ResourceNotModifiedError,
2709
+ }
2795
2710
  error_map.update(kwargs.pop("error_map", {}) or {})
2796
2711
 
2797
2712
  _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
@@ -2859,14 +2774,12 @@ class JobsOperations: # pylint: disable=too-many-public-methods
2859
2774
  :rtype: dict[str, list[~generated.models.JobStatusReturn]]
2860
2775
  :raises ~azure.core.exceptions.HttpResponseError:
2861
2776
  """
2862
- error_map: MutableMapping[int, Type[HttpResponseError]] = (
2863
- { # pylint: disable=unsubscriptable-object
2864
- 401: ClientAuthenticationError,
2865
- 404: ResourceNotFoundError,
2866
- 409: ResourceExistsError,
2867
- 304: ResourceNotModifiedError,
2868
- }
2869
- )
2777
+ error_map: MutableMapping = {
2778
+ 401: ClientAuthenticationError,
2779
+ 404: ResourceNotFoundError,
2780
+ 409: ResourceExistsError,
2781
+ 304: ResourceNotModifiedError,
2782
+ }
2870
2783
  error_map.update(kwargs.pop("error_map", {}) or {})
2871
2784
 
2872
2785
  _headers = kwargs.pop("headers", {}) or {}