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 (
@@ -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 # pylint: disable=ungrouped-imports
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]
@@ -943,14 +932,12 @@ class WellKnownOperations:
943
932
  :rtype: any
944
933
  :raises ~azure.core.exceptions.HttpResponseError:
945
934
  """
946
- error_map: MutableMapping[int, Type[HttpResponseError]] = (
947
- { # pylint: disable=unsubscriptable-object
948
- 401: ClientAuthenticationError,
949
- 404: ResourceNotFoundError,
950
- 409: ResourceExistsError,
951
- 304: ResourceNotModifiedError,
952
- }
953
- )
935
+ error_map: MutableMapping = {
936
+ 401: ClientAuthenticationError,
937
+ 404: ResourceNotFoundError,
938
+ 409: ResourceExistsError,
939
+ 304: ResourceNotModifiedError,
940
+ }
954
941
  error_map.update(kwargs.pop("error_map", {}) or {})
955
942
 
956
943
  _headers = kwargs.pop("headers", {}) or {}
@@ -996,14 +983,12 @@ class WellKnownOperations:
996
983
  :rtype: ~generated.models.Metadata
997
984
  :raises ~azure.core.exceptions.HttpResponseError:
998
985
  """
999
- error_map: MutableMapping[int, Type[HttpResponseError]] = (
1000
- { # pylint: disable=unsubscriptable-object
1001
- 401: ClientAuthenticationError,
1002
- 404: ResourceNotFoundError,
1003
- 409: ResourceExistsError,
1004
- 304: ResourceNotModifiedError,
1005
- }
1006
- )
986
+ error_map: MutableMapping = {
987
+ 401: ClientAuthenticationError,
988
+ 404: ResourceNotFoundError,
989
+ 409: ResourceExistsError,
990
+ 304: ResourceNotModifiedError,
991
+ }
1007
992
  error_map.update(kwargs.pop("error_map", {}) or {})
1008
993
 
1009
994
  _headers = kwargs.pop("headers", {}) or {}
@@ -1090,14 +1075,12 @@ class AuthOperations: # pylint: disable=abstract-class-instantiated
1090
1075
  :rtype: ~generated.models.InitiateDeviceFlowResponse
1091
1076
  :raises ~azure.core.exceptions.HttpResponseError:
1092
1077
  """
1093
- error_map: MutableMapping[int, Type[HttpResponseError]] = (
1094
- { # pylint: disable=unsubscriptable-object
1095
- 401: ClientAuthenticationError,
1096
- 404: ResourceNotFoundError,
1097
- 409: ResourceExistsError,
1098
- 304: ResourceNotModifiedError,
1099
- }
1100
- )
1078
+ error_map: MutableMapping = {
1079
+ 401: ClientAuthenticationError,
1080
+ 404: ResourceNotFoundError,
1081
+ 409: ResourceExistsError,
1082
+ 304: ResourceNotModifiedError,
1083
+ }
1101
1084
  error_map.update(kwargs.pop("error_map", {}) or {})
1102
1085
 
1103
1086
  _headers = kwargs.pop("headers", {}) or {}
@@ -1156,14 +1139,12 @@ class AuthOperations: # pylint: disable=abstract-class-instantiated
1156
1139
  :rtype: any
1157
1140
  :raises ~azure.core.exceptions.HttpResponseError:
1158
1141
  """
1159
- error_map: MutableMapping[int, Type[HttpResponseError]] = (
1160
- { # pylint: disable=unsubscriptable-object
1161
- 401: ClientAuthenticationError,
1162
- 404: ResourceNotFoundError,
1163
- 409: ResourceExistsError,
1164
- 304: ResourceNotModifiedError,
1165
- }
1166
- )
1142
+ error_map: MutableMapping = {
1143
+ 401: ClientAuthenticationError,
1144
+ 404: ResourceNotFoundError,
1145
+ 409: ResourceExistsError,
1146
+ 304: ResourceNotModifiedError,
1147
+ }
1167
1148
  error_map.update(kwargs.pop("error_map", {}) or {})
1168
1149
 
1169
1150
  _headers = kwargs.pop("headers", {}) or {}
@@ -1218,14 +1199,12 @@ class AuthOperations: # pylint: disable=abstract-class-instantiated
1218
1199
  :rtype: any
1219
1200
  :raises ~azure.core.exceptions.HttpResponseError:
1220
1201
  """
1221
- error_map: MutableMapping[int, Type[HttpResponseError]] = (
1222
- { # pylint: disable=unsubscriptable-object
1223
- 401: ClientAuthenticationError,
1224
- 404: ResourceNotFoundError,
1225
- 409: ResourceExistsError,
1226
- 304: ResourceNotModifiedError,
1227
- }
1228
- )
1202
+ error_map: MutableMapping = {
1203
+ 401: ClientAuthenticationError,
1204
+ 404: ResourceNotFoundError,
1205
+ 409: ResourceExistsError,
1206
+ 304: ResourceNotModifiedError,
1207
+ }
1229
1208
  error_map.update(kwargs.pop("error_map", {}) or {})
1230
1209
 
1231
1210
  _headers = kwargs.pop("headers", {}) or {}
@@ -1273,14 +1252,12 @@ class AuthOperations: # pylint: disable=abstract-class-instantiated
1273
1252
  :rtype: any
1274
1253
  :raises ~azure.core.exceptions.HttpResponseError:
1275
1254
  """
1276
- error_map: MutableMapping[int, Type[HttpResponseError]] = (
1277
- { # pylint: disable=unsubscriptable-object
1278
- 401: ClientAuthenticationError,
1279
- 404: ResourceNotFoundError,
1280
- 409: ResourceExistsError,
1281
- 304: ResourceNotModifiedError,
1282
- }
1283
- )
1255
+ error_map: MutableMapping = {
1256
+ 401: ClientAuthenticationError,
1257
+ 404: ResourceNotFoundError,
1258
+ 409: ResourceExistsError,
1259
+ 304: ResourceNotModifiedError,
1260
+ }
1284
1261
  error_map.update(kwargs.pop("error_map", {}) or {})
1285
1262
 
1286
1263
  _headers = kwargs.pop("headers", {}) or {}
@@ -1327,14 +1304,12 @@ 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[int, Type[HttpResponseError]] = (
1331
- { # pylint: disable=unsubscriptable-object
1332
- 401: ClientAuthenticationError,
1333
- 404: ResourceNotFoundError,
1334
- 409: ResourceExistsError,
1335
- 304: ResourceNotModifiedError,
1336
- }
1337
- )
1307
+ error_map: MutableMapping = {
1308
+ 401: ClientAuthenticationError,
1309
+ 404: ResourceNotFoundError,
1310
+ 409: ResourceExistsError,
1311
+ 304: ResourceNotModifiedError,
1312
+ }
1338
1313
  error_map.update(kwargs.pop("error_map", {}) or {})
1339
1314
 
1340
1315
  _headers = kwargs.pop("headers", {}) or {}
@@ -1383,14 +1358,12 @@ class AuthOperations: # pylint: disable=abstract-class-instantiated
1383
1358
  :rtype: str
1384
1359
  :raises ~azure.core.exceptions.HttpResponseError:
1385
1360
  """
1386
- error_map: MutableMapping[int, Type[HttpResponseError]] = (
1387
- { # pylint: disable=unsubscriptable-object
1388
- 401: ClientAuthenticationError,
1389
- 404: ResourceNotFoundError,
1390
- 409: ResourceExistsError,
1391
- 304: ResourceNotModifiedError,
1392
- }
1393
- )
1361
+ error_map: MutableMapping = {
1362
+ 401: ClientAuthenticationError,
1363
+ 404: ResourceNotFoundError,
1364
+ 409: ResourceExistsError,
1365
+ 304: ResourceNotModifiedError,
1366
+ }
1394
1367
  error_map.update(kwargs.pop("error_map", {}) or {})
1395
1368
 
1396
1369
  _headers = kwargs.pop("headers", {}) or {}
@@ -1437,14 +1410,12 @@ class AuthOperations: # pylint: disable=abstract-class-instantiated
1437
1410
  :rtype: ~generated.models.UserInfoResponse
1438
1411
  :raises ~azure.core.exceptions.HttpResponseError:
1439
1412
  """
1440
- error_map: MutableMapping[int, Type[HttpResponseError]] = (
1441
- { # pylint: disable=unsubscriptable-object
1442
- 401: ClientAuthenticationError,
1443
- 404: ResourceNotFoundError,
1444
- 409: ResourceExistsError,
1445
- 304: ResourceNotModifiedError,
1446
- }
1447
- )
1413
+ error_map: MutableMapping = {
1414
+ 401: ClientAuthenticationError,
1415
+ 404: ResourceNotFoundError,
1416
+ 409: ResourceExistsError,
1417
+ 304: ResourceNotModifiedError,
1418
+ }
1448
1419
  error_map.update(kwargs.pop("error_map", {}) or {})
1449
1420
 
1450
1421
  _headers = kwargs.pop("headers", {}) or {}
@@ -1523,14 +1494,12 @@ class AuthOperations: # pylint: disable=abstract-class-instantiated
1523
1494
  :rtype: any
1524
1495
  :raises ~azure.core.exceptions.HttpResponseError:
1525
1496
  """
1526
- error_map: MutableMapping[int, Type[HttpResponseError]] = (
1527
- { # pylint: disable=unsubscriptable-object
1528
- 401: ClientAuthenticationError,
1529
- 404: ResourceNotFoundError,
1530
- 409: ResourceExistsError,
1531
- 304: ResourceNotModifiedError,
1532
- }
1533
- )
1497
+ error_map: MutableMapping = {
1498
+ 401: ClientAuthenticationError,
1499
+ 404: ResourceNotFoundError,
1500
+ 409: ResourceExistsError,
1501
+ 304: ResourceNotModifiedError,
1502
+ }
1534
1503
  error_map.update(kwargs.pop("error_map", {}) or {})
1535
1504
 
1536
1505
  _headers = kwargs.pop("headers", {}) or {}
@@ -1595,14 +1564,12 @@ class AuthOperations: # pylint: disable=abstract-class-instantiated
1595
1564
  :rtype: any
1596
1565
  :raises ~azure.core.exceptions.HttpResponseError:
1597
1566
  """
1598
- error_map: MutableMapping[int, Type[HttpResponseError]] = (
1599
- { # pylint: disable=unsubscriptable-object
1600
- 401: ClientAuthenticationError,
1601
- 404: ResourceNotFoundError,
1602
- 409: ResourceExistsError,
1603
- 304: ResourceNotModifiedError,
1604
- }
1605
- )
1567
+ error_map: MutableMapping = {
1568
+ 401: ClientAuthenticationError,
1569
+ 404: ResourceNotFoundError,
1570
+ 409: ResourceExistsError,
1571
+ 304: ResourceNotModifiedError,
1572
+ }
1606
1573
  error_map.update(kwargs.pop("error_map", {}) or {})
1607
1574
 
1608
1575
  _headers = kwargs.pop("headers", {}) or {}
@@ -1691,14 +1658,12 @@ class ConfigOperations:
1691
1658
  :rtype: any
1692
1659
  :raises ~azure.core.exceptions.HttpResponseError:
1693
1660
  """
1694
- error_map: MutableMapping[int, Type[HttpResponseError]] = (
1695
- { # pylint: disable=unsubscriptable-object
1696
- 401: ClientAuthenticationError,
1697
- 404: ResourceNotFoundError,
1698
- 409: ResourceExistsError,
1699
- 304: ResourceNotModifiedError,
1700
- }
1701
- )
1661
+ error_map: MutableMapping = {
1662
+ 401: ClientAuthenticationError,
1663
+ 404: ResourceNotFoundError,
1664
+ 409: ResourceExistsError,
1665
+ 304: ResourceNotModifiedError,
1666
+ }
1702
1667
  if match_condition == MatchConditions.IfNotModified:
1703
1668
  error_map[412] = ResourceModifiedError
1704
1669
  elif match_condition == MatchConditions.IfPresent:
@@ -1837,14 +1802,12 @@ class JobsOperations: # pylint: disable=too-many-public-methods
1837
1802
  :rtype: ~generated.models.SandboxUploadResponse
1838
1803
  :raises ~azure.core.exceptions.HttpResponseError:
1839
1804
  """
1840
- error_map: MutableMapping[int, Type[HttpResponseError]] = (
1841
- { # pylint: disable=unsubscriptable-object
1842
- 401: ClientAuthenticationError,
1843
- 404: ResourceNotFoundError,
1844
- 409: ResourceExistsError,
1845
- 304: ResourceNotModifiedError,
1846
- }
1847
- )
1805
+ error_map: MutableMapping = {
1806
+ 401: ClientAuthenticationError,
1807
+ 404: ResourceNotFoundError,
1808
+ 409: ResourceExistsError,
1809
+ 304: ResourceNotModifiedError,
1810
+ }
1848
1811
  error_map.update(kwargs.pop("error_map", {}) or {})
1849
1812
 
1850
1813
  _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
@@ -1916,14 +1879,12 @@ class JobsOperations: # pylint: disable=too-many-public-methods
1916
1879
  :rtype: ~generated.models.SandboxDownloadResponse
1917
1880
  :raises ~azure.core.exceptions.HttpResponseError:
1918
1881
  """
1919
- error_map: MutableMapping[int, Type[HttpResponseError]] = (
1920
- { # pylint: disable=unsubscriptable-object
1921
- 401: ClientAuthenticationError,
1922
- 404: ResourceNotFoundError,
1923
- 409: ResourceExistsError,
1924
- 304: ResourceNotModifiedError,
1925
- }
1926
- )
1882
+ error_map: MutableMapping = {
1883
+ 401: ClientAuthenticationError,
1884
+ 404: ResourceNotFoundError,
1885
+ 409: ResourceExistsError,
1886
+ 304: ResourceNotModifiedError,
1887
+ }
1927
1888
  error_map.update(kwargs.pop("error_map", {}) or {})
1928
1889
 
1929
1890
  _headers = kwargs.pop("headers", {}) or {}
@@ -1976,14 +1937,12 @@ class JobsOperations: # pylint: disable=too-many-public-methods
1976
1937
  :rtype: any
1977
1938
  :raises ~azure.core.exceptions.HttpResponseError:
1978
1939
  """
1979
- error_map: MutableMapping[int, Type[HttpResponseError]] = (
1980
- { # pylint: disable=unsubscriptable-object
1981
- 401: ClientAuthenticationError,
1982
- 404: ResourceNotFoundError,
1983
- 409: ResourceExistsError,
1984
- 304: ResourceNotModifiedError,
1985
- }
1986
- )
1940
+ error_map: MutableMapping = {
1941
+ 401: ClientAuthenticationError,
1942
+ 404: ResourceNotFoundError,
1943
+ 409: ResourceExistsError,
1944
+ 304: ResourceNotModifiedError,
1945
+ }
1987
1946
  error_map.update(kwargs.pop("error_map", {}) or {})
1988
1947
 
1989
1948
  _headers = kwargs.pop("headers", {}) or {}
@@ -2032,14 +1991,12 @@ class JobsOperations: # pylint: disable=too-many-public-methods
2032
1991
  :rtype: dict[str, list[any]]
2033
1992
  :raises ~azure.core.exceptions.HttpResponseError:
2034
1993
  """
2035
- error_map: MutableMapping[int, Type[HttpResponseError]] = (
2036
- { # pylint: disable=unsubscriptable-object
2037
- 401: ClientAuthenticationError,
2038
- 404: ResourceNotFoundError,
2039
- 409: ResourceExistsError,
2040
- 304: ResourceNotModifiedError,
2041
- }
2042
- )
1994
+ error_map: MutableMapping = {
1995
+ 401: ClientAuthenticationError,
1996
+ 404: ResourceNotFoundError,
1997
+ 409: ResourceExistsError,
1998
+ 304: ResourceNotModifiedError,
1999
+ }
2043
2000
  error_map.update(kwargs.pop("error_map", {}) or {})
2044
2001
 
2045
2002
  _headers = kwargs.pop("headers", {}) or {}
@@ -2088,14 +2045,12 @@ class JobsOperations: # pylint: disable=too-many-public-methods
2088
2045
  :rtype: any
2089
2046
  :raises ~azure.core.exceptions.HttpResponseError:
2090
2047
  """
2091
- error_map: MutableMapping[int, Type[HttpResponseError]] = (
2092
- { # pylint: disable=unsubscriptable-object
2093
- 401: ClientAuthenticationError,
2094
- 404: ResourceNotFoundError,
2095
- 409: ResourceExistsError,
2096
- 304: ResourceNotModifiedError,
2097
- }
2098
- )
2048
+ error_map: MutableMapping = {
2049
+ 401: ClientAuthenticationError,
2050
+ 404: ResourceNotFoundError,
2051
+ 409: ResourceExistsError,
2052
+ 304: ResourceNotModifiedError,
2053
+ }
2099
2054
  error_map.update(kwargs.pop("error_map", {}) or {})
2100
2055
 
2101
2056
  _headers = kwargs.pop("headers", {}) or {}
@@ -2148,14 +2103,12 @@ class JobsOperations: # pylint: disable=too-many-public-methods
2148
2103
  :rtype: list[any]
2149
2104
  :raises ~azure.core.exceptions.HttpResponseError:
2150
2105
  """
2151
- error_map: MutableMapping[int, Type[HttpResponseError]] = (
2152
- { # pylint: disable=unsubscriptable-object
2153
- 401: ClientAuthenticationError,
2154
- 404: ResourceNotFoundError,
2155
- 409: ResourceExistsError,
2156
- 304: ResourceNotModifiedError,
2157
- }
2158
- )
2106
+ error_map: MutableMapping = {
2107
+ 401: ClientAuthenticationError,
2108
+ 404: ResourceNotFoundError,
2109
+ 409: ResourceExistsError,
2110
+ 304: ResourceNotModifiedError,
2111
+ }
2159
2112
  error_map.update(kwargs.pop("error_map", {}) or {})
2160
2113
 
2161
2114
  _headers = kwargs.pop("headers", {}) or {}
@@ -2207,14 +2160,12 @@ class JobsOperations: # pylint: disable=too-many-public-methods
2207
2160
  :rtype: any
2208
2161
  :raises ~azure.core.exceptions.HttpResponseError:
2209
2162
  """
2210
- error_map: MutableMapping[int, Type[HttpResponseError]] = (
2211
- { # pylint: disable=unsubscriptable-object
2212
- 401: ClientAuthenticationError,
2213
- 404: ResourceNotFoundError,
2214
- 409: ResourceExistsError,
2215
- 304: ResourceNotModifiedError,
2216
- }
2217
- )
2163
+ error_map: MutableMapping = {
2164
+ 401: ClientAuthenticationError,
2165
+ 404: ResourceNotFoundError,
2166
+ 409: ResourceExistsError,
2167
+ 304: ResourceNotModifiedError,
2168
+ }
2218
2169
  error_map.update(kwargs.pop("error_map", {}) or {})
2219
2170
 
2220
2171
  _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
@@ -2308,14 +2259,12 @@ class JobsOperations: # pylint: disable=too-many-public-methods
2308
2259
  :rtype: list[~generated.models.InsertedJob]
2309
2260
  :raises ~azure.core.exceptions.HttpResponseError:
2310
2261
  """
2311
- error_map: MutableMapping[int, Type[HttpResponseError]] = (
2312
- { # pylint: disable=unsubscriptable-object
2313
- 401: ClientAuthenticationError,
2314
- 404: ResourceNotFoundError,
2315
- 409: ResourceExistsError,
2316
- 304: ResourceNotModifiedError,
2317
- }
2318
- )
2262
+ error_map: MutableMapping = {
2263
+ 401: ClientAuthenticationError,
2264
+ 404: ResourceNotFoundError,
2265
+ 409: ResourceExistsError,
2266
+ 304: ResourceNotModifiedError,
2267
+ }
2319
2268
  error_map.update(kwargs.pop("error_map", {}) or {})
2320
2269
 
2321
2270
  _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
@@ -2379,14 +2328,12 @@ class JobsOperations: # pylint: disable=too-many-public-methods
2379
2328
  :rtype: any
2380
2329
  :raises ~azure.core.exceptions.HttpResponseError:
2381
2330
  """
2382
- error_map: MutableMapping[int, Type[HttpResponseError]] = (
2383
- { # pylint: disable=unsubscriptable-object
2384
- 401: ClientAuthenticationError,
2385
- 404: ResourceNotFoundError,
2386
- 409: ResourceExistsError,
2387
- 304: ResourceNotModifiedError,
2388
- }
2389
- )
2331
+ error_map: MutableMapping = {
2332
+ 401: ClientAuthenticationError,
2333
+ 404: ResourceNotFoundError,
2334
+ 409: ResourceExistsError,
2335
+ 304: ResourceNotModifiedError,
2336
+ }
2390
2337
  error_map.update(kwargs.pop("error_map", {}) or {})
2391
2338
 
2392
2339
  _headers = kwargs.pop("headers", {}) or {}
@@ -2435,14 +2382,12 @@ class JobsOperations: # pylint: disable=too-many-public-methods
2435
2382
  :rtype: any
2436
2383
  :raises ~azure.core.exceptions.HttpResponseError:
2437
2384
  """
2438
- error_map: MutableMapping[int, Type[HttpResponseError]] = (
2439
- { # pylint: disable=unsubscriptable-object
2440
- 401: ClientAuthenticationError,
2441
- 404: ResourceNotFoundError,
2442
- 409: ResourceExistsError,
2443
- 304: ResourceNotModifiedError,
2444
- }
2445
- )
2385
+ error_map: MutableMapping = {
2386
+ 401: ClientAuthenticationError,
2387
+ 404: ResourceNotFoundError,
2388
+ 409: ResourceExistsError,
2389
+ 304: ResourceNotModifiedError,
2390
+ }
2446
2391
  error_map.update(kwargs.pop("error_map", {}) or {})
2447
2392
 
2448
2393
  _headers = kwargs.pop("headers", {}) or {}
@@ -2495,14 +2440,12 @@ class JobsOperations: # pylint: disable=too-many-public-methods
2495
2440
  :rtype: any
2496
2441
  :raises ~azure.core.exceptions.HttpResponseError:
2497
2442
  """
2498
- error_map: MutableMapping[int, Type[HttpResponseError]] = (
2499
- { # pylint: disable=unsubscriptable-object
2500
- 401: ClientAuthenticationError,
2501
- 404: ResourceNotFoundError,
2502
- 409: ResourceExistsError,
2503
- 304: ResourceNotModifiedError,
2504
- }
2505
- )
2443
+ error_map: MutableMapping = {
2444
+ 401: ClientAuthenticationError,
2445
+ 404: ResourceNotFoundError,
2446
+ 409: ResourceExistsError,
2447
+ 304: ResourceNotModifiedError,
2448
+ }
2506
2449
  error_map.update(kwargs.pop("error_map", {}) or {})
2507
2450
 
2508
2451
  _headers = kwargs.pop("headers", {}) or {}
@@ -2553,14 +2496,12 @@ class JobsOperations: # pylint: disable=too-many-public-methods
2553
2496
  :rtype: dict[str, ~generated.models.LimitedJobStatusReturn]
2554
2497
  :raises ~azure.core.exceptions.HttpResponseError:
2555
2498
  """
2556
- error_map: MutableMapping[int, Type[HttpResponseError]] = (
2557
- { # pylint: disable=unsubscriptable-object
2558
- 401: ClientAuthenticationError,
2559
- 404: ResourceNotFoundError,
2560
- 409: ResourceExistsError,
2561
- 304: ResourceNotModifiedError,
2562
- }
2563
- )
2499
+ error_map: MutableMapping = {
2500
+ 401: ClientAuthenticationError,
2501
+ 404: ResourceNotFoundError,
2502
+ 409: ResourceExistsError,
2503
+ 304: ResourceNotModifiedError,
2504
+ }
2564
2505
  error_map.update(kwargs.pop("error_map", {}) or {})
2565
2506
 
2566
2507
  _headers = kwargs.pop("headers", {}) or {}
@@ -2671,14 +2612,12 @@ class JobsOperations: # pylint: disable=too-many-public-methods
2671
2612
  :rtype: dict[str, ~generated.models.SetJobStatusReturn]
2672
2613
  :raises ~azure.core.exceptions.HttpResponseError:
2673
2614
  """
2674
- error_map: MutableMapping[int, Type[HttpResponseError]] = (
2675
- { # pylint: disable=unsubscriptable-object
2676
- 401: ClientAuthenticationError,
2677
- 404: ResourceNotFoundError,
2678
- 409: ResourceExistsError,
2679
- 304: ResourceNotModifiedError,
2680
- }
2681
- )
2615
+ error_map: MutableMapping = {
2616
+ 401: ClientAuthenticationError,
2617
+ 404: ResourceNotFoundError,
2618
+ 409: ResourceExistsError,
2619
+ 304: ResourceNotModifiedError,
2620
+ }
2682
2621
  error_map.update(kwargs.pop("error_map", {}) or {})
2683
2622
 
2684
2623
  _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
@@ -2745,14 +2684,12 @@ class JobsOperations: # pylint: disable=too-many-public-methods
2745
2684
  :rtype: dict[str, list[~generated.models.JobStatusReturn]]
2746
2685
  :raises ~azure.core.exceptions.HttpResponseError:
2747
2686
  """
2748
- error_map: MutableMapping[int, Type[HttpResponseError]] = (
2749
- { # pylint: disable=unsubscriptable-object
2750
- 401: ClientAuthenticationError,
2751
- 404: ResourceNotFoundError,
2752
- 409: ResourceExistsError,
2753
- 304: ResourceNotModifiedError,
2754
- }
2755
- )
2687
+ error_map: MutableMapping = {
2688
+ 401: ClientAuthenticationError,
2689
+ 404: ResourceNotFoundError,
2690
+ 409: ResourceExistsError,
2691
+ 304: ResourceNotModifiedError,
2692
+ }
2756
2693
  error_map.update(kwargs.pop("error_map", {}) or {})
2757
2694
 
2758
2695
  _headers = kwargs.pop("headers", {}) or {}
@@ -2803,14 +2740,12 @@ class JobsOperations: # pylint: disable=too-many-public-methods
2803
2740
  :rtype: any
2804
2741
  :raises ~azure.core.exceptions.HttpResponseError:
2805
2742
  """
2806
- error_map: MutableMapping[int, Type[HttpResponseError]] = (
2807
- { # pylint: disable=unsubscriptable-object
2808
- 401: ClientAuthenticationError,
2809
- 404: ResourceNotFoundError,
2810
- 409: ResourceExistsError,
2811
- 304: ResourceNotModifiedError,
2812
- }
2813
- )
2743
+ error_map: MutableMapping = {
2744
+ 401: ClientAuthenticationError,
2745
+ 404: ResourceNotFoundError,
2746
+ 409: ResourceExistsError,
2747
+ 304: ResourceNotModifiedError,
2748
+ }
2814
2749
  error_map.update(kwargs.pop("error_map", {}) or {})
2815
2750
 
2816
2751
  _headers = kwargs.pop("headers", {}) or {}
@@ -2859,14 +2794,12 @@ class JobsOperations: # pylint: disable=too-many-public-methods
2859
2794
  :rtype: any
2860
2795
  :raises ~azure.core.exceptions.HttpResponseError:
2861
2796
  """
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
- )
2797
+ error_map: MutableMapping = {
2798
+ 401: ClientAuthenticationError,
2799
+ 404: ResourceNotFoundError,
2800
+ 409: ResourceExistsError,
2801
+ 304: ResourceNotModifiedError,
2802
+ }
2870
2803
  error_map.update(kwargs.pop("error_map", {}) or {})
2871
2804
 
2872
2805
  _headers = kwargs.pop("headers", {}) or {}
@@ -2988,14 +2921,12 @@ class JobsOperations: # pylint: disable=too-many-public-methods
2988
2921
  :rtype: list[JSON]
2989
2922
  :raises ~azure.core.exceptions.HttpResponseError:
2990
2923
  """
2991
- error_map: MutableMapping[int, Type[HttpResponseError]] = (
2992
- { # pylint: disable=unsubscriptable-object
2993
- 401: ClientAuthenticationError,
2994
- 404: ResourceNotFoundError,
2995
- 409: ResourceExistsError,
2996
- 304: ResourceNotModifiedError,
2997
- }
2998
- )
2924
+ error_map: MutableMapping = {
2925
+ 401: ClientAuthenticationError,
2926
+ 404: ResourceNotFoundError,
2927
+ 409: ResourceExistsError,
2928
+ 304: ResourceNotModifiedError,
2929
+ }
2999
2930
  error_map.update(kwargs.pop("error_map", {}) or {})
3000
2931
 
3001
2932
  _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
@@ -3110,14 +3041,12 @@ class JobsOperations: # pylint: disable=too-many-public-methods
3110
3041
  :rtype: any
3111
3042
  :raises ~azure.core.exceptions.HttpResponseError:
3112
3043
  """
3113
- error_map: MutableMapping[int, Type[HttpResponseError]] = (
3114
- { # pylint: disable=unsubscriptable-object
3115
- 401: ClientAuthenticationError,
3116
- 404: ResourceNotFoundError,
3117
- 409: ResourceExistsError,
3118
- 304: ResourceNotModifiedError,
3119
- }
3120
- )
3044
+ error_map: MutableMapping = {
3045
+ 401: ClientAuthenticationError,
3046
+ 404: ResourceNotFoundError,
3047
+ 409: ResourceExistsError,
3048
+ 304: ResourceNotModifiedError,
3049
+ }
3121
3050
  error_map.update(kwargs.pop("error_map", {}) or {})
3122
3051
 
3123
3052
  _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
@@ -3179,14 +3108,12 @@ class JobsOperations: # pylint: disable=too-many-public-methods
3179
3108
  :rtype: any
3180
3109
  :raises ~azure.core.exceptions.HttpResponseError:
3181
3110
  """
3182
- error_map: MutableMapping[int, Type[HttpResponseError]] = (
3183
- { # pylint: disable=unsubscriptable-object
3184
- 401: ClientAuthenticationError,
3185
- 404: ResourceNotFoundError,
3186
- 409: ResourceExistsError,
3187
- 304: ResourceNotModifiedError,
3188
- }
3189
- )
3111
+ error_map: MutableMapping = {
3112
+ 401: ClientAuthenticationError,
3113
+ 404: ResourceNotFoundError,
3114
+ 409: ResourceExistsError,
3115
+ 304: ResourceNotModifiedError,
3116
+ }
3190
3117
  error_map.update(kwargs.pop("error_map", {}) or {})
3191
3118
 
3192
3119
  _headers = kwargs.pop("headers", {}) or {}
@@ -3235,14 +3162,12 @@ class JobsOperations: # pylint: disable=too-many-public-methods
3235
3162
  :rtype: any
3236
3163
  :raises ~azure.core.exceptions.HttpResponseError:
3237
3164
  """
3238
- error_map: MutableMapping[int, Type[HttpResponseError]] = (
3239
- { # pylint: disable=unsubscriptable-object
3240
- 401: ClientAuthenticationError,
3241
- 404: ResourceNotFoundError,
3242
- 409: ResourceExistsError,
3243
- 304: ResourceNotModifiedError,
3244
- }
3245
- )
3165
+ error_map: MutableMapping = {
3166
+ 401: ClientAuthenticationError,
3167
+ 404: ResourceNotFoundError,
3168
+ 409: ResourceExistsError,
3169
+ 304: ResourceNotModifiedError,
3170
+ }
3246
3171
  error_map.update(kwargs.pop("error_map", {}) or {})
3247
3172
 
3248
3173
  _headers = kwargs.pop("headers", {}) or {}
@@ -3297,14 +3222,12 @@ class JobsOperations: # pylint: disable=too-many-public-methods
3297
3222
  :rtype: any
3298
3223
  :raises ~azure.core.exceptions.HttpResponseError:
3299
3224
  """
3300
- error_map: MutableMapping[int, Type[HttpResponseError]] = (
3301
- { # pylint: disable=unsubscriptable-object
3302
- 401: ClientAuthenticationError,
3303
- 404: ResourceNotFoundError,
3304
- 409: ResourceExistsError,
3305
- 304: ResourceNotModifiedError,
3306
- }
3307
- )
3225
+ error_map: MutableMapping = {
3226
+ 401: ClientAuthenticationError,
3227
+ 404: ResourceNotFoundError,
3228
+ 409: ResourceExistsError,
3229
+ 304: ResourceNotModifiedError,
3230
+ }
3308
3231
  error_map.update(kwargs.pop("error_map", {}) or {})
3309
3232
 
3310
3233
  _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
@@ -3361,14 +3284,12 @@ class JobsOperations: # pylint: disable=too-many-public-methods
3361
3284
  :rtype: any
3362
3285
  :raises ~azure.core.exceptions.HttpResponseError:
3363
3286
  """
3364
- error_map: MutableMapping[int, Type[HttpResponseError]] = (
3365
- { # pylint: disable=unsubscriptable-object
3366
- 401: ClientAuthenticationError,
3367
- 404: ResourceNotFoundError,
3368
- 409: ResourceExistsError,
3369
- 304: ResourceNotModifiedError,
3370
- }
3371
- )
3287
+ error_map: MutableMapping = {
3288
+ 401: ClientAuthenticationError,
3289
+ 404: ResourceNotFoundError,
3290
+ 409: ResourceExistsError,
3291
+ 304: ResourceNotModifiedError,
3292
+ }
3372
3293
  error_map.update(kwargs.pop("error_map", {}) or {})
3373
3294
 
3374
3295
  _headers = kwargs.pop("headers", {}) or {}
@@ -3421,14 +3342,12 @@ class JobsOperations: # pylint: disable=too-many-public-methods
3421
3342
  :rtype: any
3422
3343
  :raises ~azure.core.exceptions.HttpResponseError:
3423
3344
  """
3424
- error_map: MutableMapping[int, Type[HttpResponseError]] = (
3425
- { # pylint: disable=unsubscriptable-object
3426
- 401: ClientAuthenticationError,
3427
- 404: ResourceNotFoundError,
3428
- 409: ResourceExistsError,
3429
- 304: ResourceNotModifiedError,
3430
- }
3431
- )
3345
+ error_map: MutableMapping = {
3346
+ 401: ClientAuthenticationError,
3347
+ 404: ResourceNotFoundError,
3348
+ 409: ResourceExistsError,
3349
+ 304: ResourceNotModifiedError,
3350
+ }
3432
3351
  error_map.update(kwargs.pop("error_map", {}) or {})
3433
3352
 
3434
3353
  _headers = kwargs.pop("headers", {}) or {}
@@ -3479,14 +3398,12 @@ class JobsOperations: # pylint: disable=too-many-public-methods
3479
3398
  :rtype: dict[str, ~generated.models.LimitedJobStatusReturn]
3480
3399
  :raises ~azure.core.exceptions.HttpResponseError:
3481
3400
  """
3482
- error_map: MutableMapping[int, Type[HttpResponseError]] = (
3483
- { # pylint: disable=unsubscriptable-object
3484
- 401: ClientAuthenticationError,
3485
- 404: ResourceNotFoundError,
3486
- 409: ResourceExistsError,
3487
- 304: ResourceNotModifiedError,
3488
- }
3489
- )
3401
+ error_map: MutableMapping = {
3402
+ 401: ClientAuthenticationError,
3403
+ 404: ResourceNotFoundError,
3404
+ 409: ResourceExistsError,
3405
+ 304: ResourceNotModifiedError,
3406
+ }
3490
3407
  error_map.update(kwargs.pop("error_map", {}) or {})
3491
3408
 
3492
3409
  _headers = kwargs.pop("headers", {}) or {}
@@ -3606,14 +3523,12 @@ class JobsOperations: # pylint: disable=too-many-public-methods
3606
3523
  :rtype: dict[str, ~generated.models.SetJobStatusReturn]
3607
3524
  :raises ~azure.core.exceptions.HttpResponseError:
3608
3525
  """
3609
- error_map: MutableMapping[int, Type[HttpResponseError]] = (
3610
- { # pylint: disable=unsubscriptable-object
3611
- 401: ClientAuthenticationError,
3612
- 404: ResourceNotFoundError,
3613
- 409: ResourceExistsError,
3614
- 304: ResourceNotModifiedError,
3615
- }
3616
- )
3526
+ error_map: MutableMapping = {
3527
+ 401: ClientAuthenticationError,
3528
+ 404: ResourceNotFoundError,
3529
+ 409: ResourceExistsError,
3530
+ 304: ResourceNotModifiedError,
3531
+ }
3617
3532
  error_map.update(kwargs.pop("error_map", {}) or {})
3618
3533
 
3619
3534
  _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
@@ -3681,14 +3596,12 @@ class JobsOperations: # pylint: disable=too-many-public-methods
3681
3596
  :rtype: dict[str, list[~generated.models.JobStatusReturn]]
3682
3597
  :raises ~azure.core.exceptions.HttpResponseError:
3683
3598
  """
3684
- error_map: MutableMapping[int, Type[HttpResponseError]] = (
3685
- { # pylint: disable=unsubscriptable-object
3686
- 401: ClientAuthenticationError,
3687
- 404: ResourceNotFoundError,
3688
- 409: ResourceExistsError,
3689
- 304: ResourceNotModifiedError,
3690
- }
3691
- )
3599
+ error_map: MutableMapping = {
3600
+ 401: ClientAuthenticationError,
3601
+ 404: ResourceNotFoundError,
3602
+ 409: ResourceExistsError,
3603
+ 304: ResourceNotModifiedError,
3604
+ }
3692
3605
  error_map.update(kwargs.pop("error_map", {}) or {})
3693
3606
 
3694
3607
  _headers = kwargs.pop("headers", {}) or {}