ignos-internal-api-client 20240926.0.10449__py3-none-any.whl → 20251117.0.13243__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.
Files changed (26) hide show
  1. ignos/internal/api/client/__init__.py +9 -3
  2. ignos/internal/api/client/_client.py +2 -2
  3. ignos/internal/api/client/_configuration.py +1 -2
  4. ignos/internal/api/client/_patch.py +7 -6
  5. ignos/internal/api/client/_utils/__init__.py +6 -0
  6. ignos/internal/api/client/{_serialization.py → _utils/serialization.py} +71 -156
  7. ignos/internal/api/client/_version.py +1 -1
  8. ignos/internal/api/client/aio/__init__.py +9 -3
  9. ignos/internal/api/client/aio/_client.py +2 -2
  10. ignos/internal/api/client/aio/_configuration.py +1 -2
  11. ignos/internal/api/client/aio/_patch.py +7 -6
  12. ignos/internal/api/client/aio/operations/__init__.py +21 -15
  13. ignos/internal/api/client/aio/operations/_operations.py +191 -181
  14. ignos/internal/api/client/aio/operations/_patch.py +7 -6
  15. ignos/internal/api/client/models/__init__.py +58 -47
  16. ignos/internal/api/client/models/_models.py +38 -11
  17. ignos/internal/api/client/models/_patch.py +7 -6
  18. ignos/internal/api/client/operations/__init__.py +21 -15
  19. ignos/internal/api/client/operations/_operations.py +191 -174
  20. ignos/internal/api/client/operations/_patch.py +7 -6
  21. ignos_internal_api_client-20251117.0.13243.dist-info/METADATA +17 -0
  22. ignos_internal_api_client-20251117.0.13243.dist-info/RECORD +29 -0
  23. {ignos_internal_api_client-20240926.0.10449.dist-info → ignos_internal_api_client-20251117.0.13243.dist-info}/WHEEL +1 -1
  24. ignos_internal_api_client-20240926.0.10449.dist-info/METADATA +0 -13
  25. ignos_internal_api_client-20240926.0.10449.dist-info/RECORD +0 -28
  26. {ignos_internal_api_client-20240926.0.10449.dist-info → ignos_internal_api_client-20251117.0.13243.dist-info}/top_level.txt +0 -0
@@ -1,4 +1,4 @@
1
- # pylint: disable=too-many-lines,too-many-statements
1
+ # pylint: disable=too-many-lines
2
2
  # coding=utf-8
3
3
  # --------------------------------------------------------------------------
4
4
  # Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6,11 +6,12 @@
6
6
  # Code generated by Microsoft (R) AutoRest Code Generator.
7
7
  # Changes may cause incorrect behavior and will be lost if the code is regenerated.
8
8
  # --------------------------------------------------------------------------
9
+ from collections.abc import MutableMapping
9
10
  import datetime
10
11
  from io import IOBase
11
- import sys
12
- from typing import Any, Callable, Dict, IO, List, Optional, Type, TypeVar, Union, overload
12
+ from typing import Any, Callable, IO, Optional, TypeVar, Union, overload
13
13
 
14
+ from azure.core import PipelineClient
14
15
  from azure.core.exceptions import (
15
16
  ClientAuthenticationError,
16
17
  HttpResponseError,
@@ -25,14 +26,11 @@ from azure.core.tracing.decorator import distributed_trace
25
26
  from azure.core.utils import case_insensitive_dict
26
27
 
27
28
  from .. import models as _models
28
- from .._serialization import Serializer
29
+ from .._configuration import IgnosInternalApiConfiguration
30
+ from .._utils.serialization import Deserializer, Serializer
29
31
 
30
- if sys.version_info >= (3, 9):
31
- from collections.abc import MutableMapping
32
- else:
33
- from typing import MutableMapping # type: ignore # pylint: disable=ungrouped-imports
34
32
  T = TypeVar("T")
35
- ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]]
33
+ ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, dict[str, Any]], Any]]
36
34
 
37
35
  _SERIALIZER = Serializer()
38
36
  _SERIALIZER.client_side_validation = False
@@ -864,15 +862,15 @@ class AppsOperations:
864
862
 
865
863
  models = _models
866
864
 
867
- def __init__(self, *args, **kwargs):
865
+ def __init__(self, *args, **kwargs) -> None:
868
866
  input_args = list(args)
869
- self._client = input_args.pop(0) if input_args else kwargs.pop("client")
870
- self._config = input_args.pop(0) if input_args else kwargs.pop("config")
871
- self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer")
872
- self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer")
867
+ self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client")
868
+ self._config: IgnosInternalApiConfiguration = input_args.pop(0) if input_args else kwargs.pop("config")
869
+ self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer")
870
+ self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer")
873
871
 
874
872
  @distributed_trace
875
- def list_apps(self, **kwargs: Any) -> List[_models.AppDto]:
873
+ def list_apps(self, **kwargs: Any) -> list[_models.AppDto]:
876
874
  """Internal Ignos api for listing apps.
877
875
 
878
876
  Internal Ignos api for listing apps.
@@ -881,7 +879,7 @@ class AppsOperations:
881
879
  :rtype: list[~ignos.internal.api.client.models.AppDto]
882
880
  :raises ~azure.core.exceptions.HttpResponseError:
883
881
  """
884
- error_map: MutableMapping[int, Type[HttpResponseError]] = { # pylint: disable=unsubscriptable-object
882
+ error_map: MutableMapping = {
885
883
  401: ClientAuthenticationError,
886
884
  404: ResourceNotFoundError,
887
885
  409: ResourceExistsError,
@@ -892,7 +890,7 @@ class AppsOperations:
892
890
  _headers = kwargs.pop("headers", {}) or {}
893
891
  _params = kwargs.pop("params", {}) or {}
894
892
 
895
- cls: ClsType[List[_models.AppDto]] = kwargs.pop("cls", None)
893
+ cls: ClsType[list[_models.AppDto]] = kwargs.pop("cls", None)
896
894
 
897
895
  _request = build_apps_list_apps_request(
898
896
  headers=_headers,
@@ -967,7 +965,7 @@ class AppsOperations:
967
965
  :rtype: ~ignos.internal.api.client.models.AppDto
968
966
  :raises ~azure.core.exceptions.HttpResponseError:
969
967
  """
970
- error_map: MutableMapping[int, Type[HttpResponseError]] = { # pylint: disable=unsubscriptable-object
968
+ error_map: MutableMapping = {
971
969
  401: ClientAuthenticationError,
972
970
  404: ResourceNotFoundError,
973
971
  409: ResourceExistsError,
@@ -979,9 +977,10 @@ class AppsOperations:
979
977
  _params = kwargs.pop("params", {}) or {}
980
978
 
981
979
  content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
980
+ content_type = content_type if body else None
982
981
  cls: ClsType[_models.AppDto] = kwargs.pop("cls", None)
983
982
 
984
- content_type = content_type or "application/json"
983
+ content_type = content_type or "application/json" if body else None
985
984
  _json = None
986
985
  _content = None
987
986
  if isinstance(body, (IOBase, bytes)):
@@ -1081,7 +1080,7 @@ class AppsOperations:
1081
1080
  :rtype: ~ignos.internal.api.client.models.AppDto
1082
1081
  :raises ~azure.core.exceptions.HttpResponseError:
1083
1082
  """
1084
- error_map: MutableMapping[int, Type[HttpResponseError]] = { # pylint: disable=unsubscriptable-object
1083
+ error_map: MutableMapping = {
1085
1084
  401: ClientAuthenticationError,
1086
1085
  404: ResourceNotFoundError,
1087
1086
  409: ResourceExistsError,
@@ -1093,9 +1092,10 @@ class AppsOperations:
1093
1092
  _params = kwargs.pop("params", {}) or {}
1094
1093
 
1095
1094
  content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
1095
+ content_type = content_type if body else None
1096
1096
  cls: ClsType[_models.AppDto] = kwargs.pop("cls", None)
1097
1097
 
1098
- content_type = content_type or "application/json"
1098
+ content_type = content_type or "application/json" if body else None
1099
1099
  _json = None
1100
1100
  _content = None
1101
1101
  if isinstance(body, (IOBase, bytes)):
@@ -1147,22 +1147,22 @@ class AzureRegionsOperations:
1147
1147
 
1148
1148
  models = _models
1149
1149
 
1150
- def __init__(self, *args, **kwargs):
1150
+ def __init__(self, *args, **kwargs) -> None:
1151
1151
  input_args = list(args)
1152
- self._client = input_args.pop(0) if input_args else kwargs.pop("client")
1153
- self._config = input_args.pop(0) if input_args else kwargs.pop("config")
1154
- self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer")
1155
- self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer")
1152
+ self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client")
1153
+ self._config: IgnosInternalApiConfiguration = input_args.pop(0) if input_args else kwargs.pop("config")
1154
+ self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer")
1155
+ self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer")
1156
1156
 
1157
1157
  @distributed_trace
1158
- def list_azure_regions(self, **kwargs: Any) -> List[_models.AzureRegionDto]:
1158
+ def list_azure_regions(self, **kwargs: Any) -> list[_models.AzureRegionDto]:
1159
1159
  """list_azure_regions.
1160
1160
 
1161
1161
  :return: list of AzureRegionDto
1162
1162
  :rtype: list[~ignos.internal.api.client.models.AzureRegionDto]
1163
1163
  :raises ~azure.core.exceptions.HttpResponseError:
1164
1164
  """
1165
- error_map: MutableMapping[int, Type[HttpResponseError]] = { # pylint: disable=unsubscriptable-object
1165
+ error_map: MutableMapping = {
1166
1166
  401: ClientAuthenticationError,
1167
1167
  404: ResourceNotFoundError,
1168
1168
  409: ResourceExistsError,
@@ -1173,7 +1173,7 @@ class AzureRegionsOperations:
1173
1173
  _headers = kwargs.pop("headers", {}) or {}
1174
1174
  _params = kwargs.pop("params", {}) or {}
1175
1175
 
1176
- cls: ClsType[List[_models.AzureRegionDto]] = kwargs.pop("cls", None)
1176
+ cls: ClsType[list[_models.AzureRegionDto]] = kwargs.pop("cls", None)
1177
1177
 
1178
1178
  _request = build_azure_regions_list_azure_regions_request(
1179
1179
  headers=_headers,
@@ -1212,22 +1212,22 @@ class CdfClustersOperations:
1212
1212
 
1213
1213
  models = _models
1214
1214
 
1215
- def __init__(self, *args, **kwargs):
1215
+ def __init__(self, *args, **kwargs) -> None:
1216
1216
  input_args = list(args)
1217
- self._client = input_args.pop(0) if input_args else kwargs.pop("client")
1218
- self._config = input_args.pop(0) if input_args else kwargs.pop("config")
1219
- self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer")
1220
- self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer")
1217
+ self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client")
1218
+ self._config: IgnosInternalApiConfiguration = input_args.pop(0) if input_args else kwargs.pop("config")
1219
+ self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer")
1220
+ self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer")
1221
1221
 
1222
1222
  @distributed_trace
1223
- def list_cdf_clusters(self, **kwargs: Any) -> List[_models.CdfClusterDto]:
1223
+ def list_cdf_clusters(self, **kwargs: Any) -> list[_models.CdfClusterDto]:
1224
1224
  """list_cdf_clusters.
1225
1225
 
1226
1226
  :return: list of CdfClusterDto
1227
1227
  :rtype: list[~ignos.internal.api.client.models.CdfClusterDto]
1228
1228
  :raises ~azure.core.exceptions.HttpResponseError:
1229
1229
  """
1230
- error_map: MutableMapping[int, Type[HttpResponseError]] = { # pylint: disable=unsubscriptable-object
1230
+ error_map: MutableMapping = {
1231
1231
  401: ClientAuthenticationError,
1232
1232
  404: ResourceNotFoundError,
1233
1233
  409: ResourceExistsError,
@@ -1238,7 +1238,7 @@ class CdfClustersOperations:
1238
1238
  _headers = kwargs.pop("headers", {}) or {}
1239
1239
  _params = kwargs.pop("params", {}) or {}
1240
1240
 
1241
- cls: ClsType[List[_models.CdfClusterDto]] = kwargs.pop("cls", None)
1241
+ cls: ClsType[list[_models.CdfClusterDto]] = kwargs.pop("cls", None)
1242
1242
 
1243
1243
  _request = build_cdf_clusters_list_cdf_clusters_request(
1244
1244
  headers=_headers,
@@ -1309,7 +1309,7 @@ class CdfClustersOperations:
1309
1309
  :rtype: ~ignos.internal.api.client.models.CdfClusterDto
1310
1310
  :raises ~azure.core.exceptions.HttpResponseError:
1311
1311
  """
1312
- error_map: MutableMapping[int, Type[HttpResponseError]] = { # pylint: disable=unsubscriptable-object
1312
+ error_map: MutableMapping = {
1313
1313
  401: ClientAuthenticationError,
1314
1314
  404: ResourceNotFoundError,
1315
1315
  409: ResourceExistsError,
@@ -1321,9 +1321,10 @@ class CdfClustersOperations:
1321
1321
  _params = kwargs.pop("params", {}) or {}
1322
1322
 
1323
1323
  content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
1324
+ content_type = content_type if body else None
1324
1325
  cls: ClsType[_models.CdfClusterDto] = kwargs.pop("cls", None)
1325
1326
 
1326
- content_type = content_type or "application/json"
1327
+ content_type = content_type or "application/json" if body else None
1327
1328
  _json = None
1328
1329
  _content = None
1329
1330
  if isinstance(body, (IOBase, bytes)):
@@ -1418,7 +1419,7 @@ class CdfClustersOperations:
1418
1419
  :rtype: ~ignos.internal.api.client.models.CdfClusterDto
1419
1420
  :raises ~azure.core.exceptions.HttpResponseError:
1420
1421
  """
1421
- error_map: MutableMapping[int, Type[HttpResponseError]] = { # pylint: disable=unsubscriptable-object
1422
+ error_map: MutableMapping = {
1422
1423
  401: ClientAuthenticationError,
1423
1424
  404: ResourceNotFoundError,
1424
1425
  409: ResourceExistsError,
@@ -1430,9 +1431,10 @@ class CdfClustersOperations:
1430
1431
  _params = kwargs.pop("params", {}) or {}
1431
1432
 
1432
1433
  content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
1434
+ content_type = content_type if body else None
1433
1435
  cls: ClsType[_models.CdfClusterDto] = kwargs.pop("cls", None)
1434
1436
 
1435
- content_type = content_type or "application/json"
1437
+ content_type = content_type or "application/json" if body else None
1436
1438
  _json = None
1437
1439
  _content = None
1438
1440
  if isinstance(body, (IOBase, bytes)):
@@ -1484,22 +1486,22 @@ class CountriesOperations:
1484
1486
 
1485
1487
  models = _models
1486
1488
 
1487
- def __init__(self, *args, **kwargs):
1489
+ def __init__(self, *args, **kwargs) -> None:
1488
1490
  input_args = list(args)
1489
- self._client = input_args.pop(0) if input_args else kwargs.pop("client")
1490
- self._config = input_args.pop(0) if input_args else kwargs.pop("config")
1491
- self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer")
1492
- self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer")
1491
+ self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client")
1492
+ self._config: IgnosInternalApiConfiguration = input_args.pop(0) if input_args else kwargs.pop("config")
1493
+ self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer")
1494
+ self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer")
1493
1495
 
1494
1496
  @distributed_trace
1495
- def list_countries(self, **kwargs: Any) -> List[_models.CountryDto]:
1497
+ def list_countries(self, **kwargs: Any) -> list[_models.CountryDto]:
1496
1498
  """list_countries.
1497
1499
 
1498
1500
  :return: list of CountryDto
1499
1501
  :rtype: list[~ignos.internal.api.client.models.CountryDto]
1500
1502
  :raises ~azure.core.exceptions.HttpResponseError:
1501
1503
  """
1502
- error_map: MutableMapping[int, Type[HttpResponseError]] = { # pylint: disable=unsubscriptable-object
1504
+ error_map: MutableMapping = {
1503
1505
  401: ClientAuthenticationError,
1504
1506
  404: ResourceNotFoundError,
1505
1507
  409: ResourceExistsError,
@@ -1510,7 +1512,7 @@ class CountriesOperations:
1510
1512
  _headers = kwargs.pop("headers", {}) or {}
1511
1513
  _params = kwargs.pop("params", {}) or {}
1512
1514
 
1513
- cls: ClsType[List[_models.CountryDto]] = kwargs.pop("cls", None)
1515
+ cls: ClsType[list[_models.CountryDto]] = kwargs.pop("cls", None)
1514
1516
 
1515
1517
  _request = build_countries_list_countries_request(
1516
1518
  headers=_headers,
@@ -1549,15 +1551,15 @@ class CustomersOperations:
1549
1551
 
1550
1552
  models = _models
1551
1553
 
1552
- def __init__(self, *args, **kwargs):
1554
+ def __init__(self, *args, **kwargs) -> None:
1553
1555
  input_args = list(args)
1554
- self._client = input_args.pop(0) if input_args else kwargs.pop("client")
1555
- self._config = input_args.pop(0) if input_args else kwargs.pop("config")
1556
- self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer")
1557
- self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer")
1556
+ self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client")
1557
+ self._config: IgnosInternalApiConfiguration = input_args.pop(0) if input_args else kwargs.pop("config")
1558
+ self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer")
1559
+ self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer")
1558
1560
 
1559
1561
  @distributed_trace
1560
- def list_customers(self, **kwargs: Any) -> List[_models.IgnosCustomerDto]:
1562
+ def list_customers(self, **kwargs: Any) -> list[_models.IgnosCustomerDto]:
1561
1563
  """Internal Ignos api for listing customers.
1562
1564
 
1563
1565
  Internal Ignos api for listing customers.
@@ -1566,7 +1568,7 @@ class CustomersOperations:
1566
1568
  :rtype: list[~ignos.internal.api.client.models.IgnosCustomerDto]
1567
1569
  :raises ~azure.core.exceptions.HttpResponseError:
1568
1570
  """
1569
- error_map: MutableMapping[int, Type[HttpResponseError]] = { # pylint: disable=unsubscriptable-object
1571
+ error_map: MutableMapping = {
1570
1572
  401: ClientAuthenticationError,
1571
1573
  404: ResourceNotFoundError,
1572
1574
  409: ResourceExistsError,
@@ -1577,7 +1579,7 @@ class CustomersOperations:
1577
1579
  _headers = kwargs.pop("headers", {}) or {}
1578
1580
  _params = kwargs.pop("params", {}) or {}
1579
1581
 
1580
- cls: ClsType[List[_models.IgnosCustomerDto]] = kwargs.pop("cls", None)
1582
+ cls: ClsType[list[_models.IgnosCustomerDto]] = kwargs.pop("cls", None)
1581
1583
 
1582
1584
  _request = build_customers_list_customers_request(
1583
1585
  headers=_headers,
@@ -1658,7 +1660,7 @@ class CustomersOperations:
1658
1660
  :rtype: ~ignos.internal.api.client.models.IgnosCustomerDto
1659
1661
  :raises ~azure.core.exceptions.HttpResponseError:
1660
1662
  """
1661
- error_map: MutableMapping[int, Type[HttpResponseError]] = { # pylint: disable=unsubscriptable-object
1663
+ error_map: MutableMapping = {
1662
1664
  401: ClientAuthenticationError,
1663
1665
  404: ResourceNotFoundError,
1664
1666
  409: ResourceExistsError,
@@ -1670,9 +1672,10 @@ class CustomersOperations:
1670
1672
  _params = kwargs.pop("params", {}) or {}
1671
1673
 
1672
1674
  content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
1675
+ content_type = content_type if body else None
1673
1676
  cls: ClsType[_models.IgnosCustomerDto] = kwargs.pop("cls", None)
1674
1677
 
1675
- content_type = content_type or "application/json"
1678
+ content_type = content_type or "application/json" if body else None
1676
1679
  _json = None
1677
1680
  _content = None
1678
1681
  if isinstance(body, (IOBase, bytes)):
@@ -1722,7 +1725,7 @@ class CustomersOperations:
1722
1725
  :rtype: ~ignos.internal.api.client.models.IgnosCustomerDto
1723
1726
  :raises ~azure.core.exceptions.HttpResponseError:
1724
1727
  """
1725
- error_map: MutableMapping[int, Type[HttpResponseError]] = { # pylint: disable=unsubscriptable-object
1728
+ error_map: MutableMapping = {
1726
1729
  401: ClientAuthenticationError,
1727
1730
  404: ResourceNotFoundError,
1728
1731
  409: ResourceExistsError,
@@ -1822,7 +1825,7 @@ class CustomersOperations:
1822
1825
  :rtype: ~ignos.internal.api.client.models.IgnosCustomerDto
1823
1826
  :raises ~azure.core.exceptions.HttpResponseError:
1824
1827
  """
1825
- error_map: MutableMapping[int, Type[HttpResponseError]] = { # pylint: disable=unsubscriptable-object
1828
+ error_map: MutableMapping = {
1826
1829
  401: ClientAuthenticationError,
1827
1830
  404: ResourceNotFoundError,
1828
1831
  409: ResourceExistsError,
@@ -1834,9 +1837,10 @@ class CustomersOperations:
1834
1837
  _params = kwargs.pop("params", {}) or {}
1835
1838
 
1836
1839
  content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
1840
+ content_type = content_type if body else None
1837
1841
  cls: ClsType[_models.IgnosCustomerDto] = kwargs.pop("cls", None)
1838
1842
 
1839
- content_type = content_type or "application/json"
1843
+ content_type = content_type or "application/json" if body else None
1840
1844
  _json = None
1841
1845
  _content = None
1842
1846
  if isinstance(body, (IOBase, bytes)):
@@ -1876,7 +1880,7 @@ class CustomersOperations:
1876
1880
  return deserialized # type: ignore
1877
1881
 
1878
1882
  @distributed_trace
1879
- def list_customer_tenants(self, id: str, **kwargs: Any) -> List[_models.TenantDto]:
1883
+ def list_customer_tenants(self, id: str, **kwargs: Any) -> list[_models.TenantDto]:
1880
1884
  """Internal Ignos api for a customer's tenants.
1881
1885
 
1882
1886
  Internal Ignos api for a customer's tenants.
@@ -1887,7 +1891,7 @@ class CustomersOperations:
1887
1891
  :rtype: list[~ignos.internal.api.client.models.TenantDto]
1888
1892
  :raises ~azure.core.exceptions.HttpResponseError:
1889
1893
  """
1890
- error_map: MutableMapping[int, Type[HttpResponseError]] = { # pylint: disable=unsubscriptable-object
1894
+ error_map: MutableMapping = {
1891
1895
  401: ClientAuthenticationError,
1892
1896
  404: ResourceNotFoundError,
1893
1897
  409: ResourceExistsError,
@@ -1898,7 +1902,7 @@ class CustomersOperations:
1898
1902
  _headers = kwargs.pop("headers", {}) or {}
1899
1903
  _params = kwargs.pop("params", {}) or {}
1900
1904
 
1901
- cls: ClsType[List[_models.TenantDto]] = kwargs.pop("cls", None)
1905
+ cls: ClsType[list[_models.TenantDto]] = kwargs.pop("cls", None)
1902
1906
 
1903
1907
  _request = build_customers_list_customer_tenants_request(
1904
1908
  id=id,
@@ -1987,7 +1991,7 @@ class CustomersOperations:
1987
1991
  :rtype: ~ignos.internal.api.client.models.TenantDto
1988
1992
  :raises ~azure.core.exceptions.HttpResponseError:
1989
1993
  """
1990
- error_map: MutableMapping[int, Type[HttpResponseError]] = { # pylint: disable=unsubscriptable-object
1994
+ error_map: MutableMapping = {
1991
1995
  401: ClientAuthenticationError,
1992
1996
  404: ResourceNotFoundError,
1993
1997
  409: ResourceExistsError,
@@ -1999,9 +2003,10 @@ class CustomersOperations:
1999
2003
  _params = kwargs.pop("params", {}) or {}
2000
2004
 
2001
2005
  content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
2006
+ content_type = content_type if body else None
2002
2007
  cls: ClsType[_models.TenantDto] = kwargs.pop("cls", None)
2003
2008
 
2004
- content_type = content_type or "application/json"
2009
+ content_type = content_type or "application/json" if body else None
2005
2010
  _json = None
2006
2011
  _content = None
2007
2012
  if isinstance(body, (IOBase, bytes)):
@@ -2119,7 +2124,7 @@ class CustomersOperations:
2119
2124
  :rtype: ~ignos.internal.api.client.models.TenantDto
2120
2125
  :raises ~azure.core.exceptions.HttpResponseError:
2121
2126
  """
2122
- error_map: MutableMapping[int, Type[HttpResponseError]] = { # pylint: disable=unsubscriptable-object
2127
+ error_map: MutableMapping = {
2123
2128
  401: ClientAuthenticationError,
2124
2129
  404: ResourceNotFoundError,
2125
2130
  409: ResourceExistsError,
@@ -2131,9 +2136,10 @@ class CustomersOperations:
2131
2136
  _params = kwargs.pop("params", {}) or {}
2132
2137
 
2133
2138
  content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
2139
+ content_type = content_type if body else None
2134
2140
  cls: ClsType[_models.TenantDto] = kwargs.pop("cls", None)
2135
2141
 
2136
- content_type = content_type or "application/json"
2142
+ content_type = content_type or "application/json" if body else None
2137
2143
  _json = None
2138
2144
  _content = None
2139
2145
  if isinstance(body, (IOBase, bytes)):
@@ -2187,7 +2193,7 @@ class CustomersOperations:
2187
2193
  :rtype: ~ignos.internal.api.client.models.CdfConfigDto
2188
2194
  :raises ~azure.core.exceptions.HttpResponseError:
2189
2195
  """
2190
- error_map: MutableMapping[int, Type[HttpResponseError]] = { # pylint: disable=unsubscriptable-object
2196
+ error_map: MutableMapping = {
2191
2197
  401: ClientAuthenticationError,
2192
2198
  404: ResourceNotFoundError,
2193
2199
  409: ResourceExistsError,
@@ -2306,7 +2312,7 @@ class CustomersOperations:
2306
2312
  :rtype: ~ignos.internal.api.client.models.CdfConfigDto
2307
2313
  :raises ~azure.core.exceptions.HttpResponseError:
2308
2314
  """
2309
- error_map: MutableMapping[int, Type[HttpResponseError]] = { # pylint: disable=unsubscriptable-object
2315
+ error_map: MutableMapping = {
2310
2316
  401: ClientAuthenticationError,
2311
2317
  404: ResourceNotFoundError,
2312
2318
  409: ResourceExistsError,
@@ -2318,9 +2324,10 @@ class CustomersOperations:
2318
2324
  _params = kwargs.pop("params", {}) or {}
2319
2325
 
2320
2326
  content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
2327
+ content_type = content_type if body else None
2321
2328
  cls: ClsType[_models.CdfConfigDto] = kwargs.pop("cls", None)
2322
2329
 
2323
- content_type = content_type or "application/json"
2330
+ content_type = content_type or "application/json" if body else None
2324
2331
  _json = None
2325
2332
  _content = None
2326
2333
  if isinstance(body, (IOBase, bytes)):
@@ -2361,7 +2368,7 @@ class CustomersOperations:
2361
2368
  return deserialized # type: ignore
2362
2369
 
2363
2370
  @distributed_trace
2364
- def list_customer_apps(self, id: str, **kwargs: Any) -> List[_models.CustomerAppDto]:
2371
+ def list_customer_apps(self, id: str, **kwargs: Any) -> list[_models.CustomerAppDto]:
2365
2372
  """Internal Ignos api for listing customer apps.
2366
2373
 
2367
2374
  Internal Ignos api for listing customer apps.
@@ -2372,7 +2379,7 @@ class CustomersOperations:
2372
2379
  :rtype: list[~ignos.internal.api.client.models.CustomerAppDto]
2373
2380
  :raises ~azure.core.exceptions.HttpResponseError:
2374
2381
  """
2375
- error_map: MutableMapping[int, Type[HttpResponseError]] = { # pylint: disable=unsubscriptable-object
2382
+ error_map: MutableMapping = {
2376
2383
  401: ClientAuthenticationError,
2377
2384
  404: ResourceNotFoundError,
2378
2385
  409: ResourceExistsError,
@@ -2383,7 +2390,7 @@ class CustomersOperations:
2383
2390
  _headers = kwargs.pop("headers", {}) or {}
2384
2391
  _params = kwargs.pop("params", {}) or {}
2385
2392
 
2386
- cls: ClsType[List[_models.CustomerAppDto]] = kwargs.pop("cls", None)
2393
+ cls: ClsType[list[_models.CustomerAppDto]] = kwargs.pop("cls", None)
2387
2394
 
2388
2395
  _request = build_customers_list_customer_apps_request(
2389
2396
  id=id,
@@ -2426,7 +2433,7 @@ class CustomersOperations:
2426
2433
  :rtype: None
2427
2434
  :raises ~azure.core.exceptions.HttpResponseError:
2428
2435
  """
2429
- error_map: MutableMapping[int, Type[HttpResponseError]] = { # pylint: disable=unsubscriptable-object
2436
+ error_map: MutableMapping = {
2430
2437
  401: ClientAuthenticationError,
2431
2438
  404: ResourceNotFoundError,
2432
2439
  409: ResourceExistsError,
@@ -2477,7 +2484,7 @@ class CustomersOperations:
2477
2484
  :rtype: None
2478
2485
  :raises ~azure.core.exceptions.HttpResponseError:
2479
2486
  """
2480
- error_map: MutableMapping[int, Type[HttpResponseError]] = { # pylint: disable=unsubscriptable-object
2487
+ error_map: MutableMapping = {
2481
2488
  401: ClientAuthenticationError,
2482
2489
  404: ResourceNotFoundError,
2483
2490
  409: ResourceExistsError,
@@ -2513,14 +2520,14 @@ class CustomersOperations:
2513
2520
  return cls(pipeline_response, None, {}) # type: ignore
2514
2521
 
2515
2522
  @distributed_trace
2516
- def list_tenant_keys(self, **kwargs: Any) -> List[_models.TenantKeyDto]:
2523
+ def list_tenant_keys(self, **kwargs: Any) -> list[_models.TenantKeyDto]:
2517
2524
  """list_tenant_keys.
2518
2525
 
2519
2526
  :return: list of TenantKeyDto
2520
2527
  :rtype: list[~ignos.internal.api.client.models.TenantKeyDto]
2521
2528
  :raises ~azure.core.exceptions.HttpResponseError:
2522
2529
  """
2523
- error_map: MutableMapping[int, Type[HttpResponseError]] = { # pylint: disable=unsubscriptable-object
2530
+ error_map: MutableMapping = {
2524
2531
  401: ClientAuthenticationError,
2525
2532
  404: ResourceNotFoundError,
2526
2533
  409: ResourceExistsError,
@@ -2531,7 +2538,7 @@ class CustomersOperations:
2531
2538
  _headers = kwargs.pop("headers", {}) or {}
2532
2539
  _params = kwargs.pop("params", {}) or {}
2533
2540
 
2534
- cls: ClsType[List[_models.TenantKeyDto]] = kwargs.pop("cls", None)
2541
+ cls: ClsType[list[_models.TenantKeyDto]] = kwargs.pop("cls", None)
2535
2542
 
2536
2543
  _request = build_customers_list_tenant_keys_request(
2537
2544
  headers=_headers,
@@ -2565,7 +2572,7 @@ class CustomersOperations:
2565
2572
  :rtype: None
2566
2573
  :raises ~azure.core.exceptions.HttpResponseError:
2567
2574
  """
2568
- error_map: MutableMapping[int, Type[HttpResponseError]] = { # pylint: disable=unsubscriptable-object
2575
+ error_map: MutableMapping = {
2569
2576
  401: ClientAuthenticationError,
2570
2577
  404: ResourceNotFoundError,
2571
2578
  409: ResourceExistsError,
@@ -2611,12 +2618,12 @@ class DatabasesOperations:
2611
2618
 
2612
2619
  models = _models
2613
2620
 
2614
- def __init__(self, *args, **kwargs):
2621
+ def __init__(self, *args, **kwargs) -> None:
2615
2622
  input_args = list(args)
2616
- self._client = input_args.pop(0) if input_args else kwargs.pop("client")
2617
- self._config = input_args.pop(0) if input_args else kwargs.pop("config")
2618
- self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer")
2619
- self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer")
2623
+ self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client")
2624
+ self._config: IgnosInternalApiConfiguration = input_args.pop(0) if input_args else kwargs.pop("config")
2625
+ self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer")
2626
+ self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer")
2620
2627
 
2621
2628
  @distributed_trace
2622
2629
  def update_databases(self, **kwargs: Any) -> None: # pylint: disable=inconsistent-return-statements
@@ -2626,7 +2633,7 @@ class DatabasesOperations:
2626
2633
  :rtype: None
2627
2634
  :raises ~azure.core.exceptions.HttpResponseError:
2628
2635
  """
2629
- error_map: MutableMapping[int, Type[HttpResponseError]] = { # pylint: disable=unsubscriptable-object
2636
+ error_map: MutableMapping = {
2630
2637
  401: ClientAuthenticationError,
2631
2638
  404: ResourceNotFoundError,
2632
2639
  409: ResourceExistsError,
@@ -2672,15 +2679,15 @@ class ErpSyncOperations:
2672
2679
 
2673
2680
  models = _models
2674
2681
 
2675
- def __init__(self, *args, **kwargs):
2682
+ def __init__(self, *args, **kwargs) -> None:
2676
2683
  input_args = list(args)
2677
- self._client = input_args.pop(0) if input_args else kwargs.pop("client")
2678
- self._config = input_args.pop(0) if input_args else kwargs.pop("config")
2679
- self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer")
2680
- self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer")
2684
+ self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client")
2685
+ self._config: IgnosInternalApiConfiguration = input_args.pop(0) if input_args else kwargs.pop("config")
2686
+ self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer")
2687
+ self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer")
2681
2688
 
2682
2689
  @distributed_trace
2683
- def list_erp_sync_errors(self, tenant_id: str, **kwargs: Any) -> List[_models.ErpSyncErrorDto]:
2690
+ def list_erp_sync_errors(self, tenant_id: str, **kwargs: Any) -> list[_models.ErpSyncErrorDto]:
2684
2691
  """list_erp_sync_errors.
2685
2692
 
2686
2693
  :param tenant_id: Required.
@@ -2689,7 +2696,7 @@ class ErpSyncOperations:
2689
2696
  :rtype: list[~ignos.internal.api.client.models.ErpSyncErrorDto]
2690
2697
  :raises ~azure.core.exceptions.HttpResponseError:
2691
2698
  """
2692
- error_map: MutableMapping[int, Type[HttpResponseError]] = { # pylint: disable=unsubscriptable-object
2699
+ error_map: MutableMapping = {
2693
2700
  401: ClientAuthenticationError,
2694
2701
  404: ResourceNotFoundError,
2695
2702
  409: ResourceExistsError,
@@ -2700,7 +2707,7 @@ class ErpSyncOperations:
2700
2707
  _headers = kwargs.pop("headers", {}) or {}
2701
2708
  _params = kwargs.pop("params", {}) or {}
2702
2709
 
2703
- cls: ClsType[List[_models.ErpSyncErrorDto]] = kwargs.pop("cls", None)
2710
+ cls: ClsType[list[_models.ErpSyncErrorDto]] = kwargs.pop("cls", None)
2704
2711
 
2705
2712
  _request = build_erp_sync_list_erp_sync_errors_request(
2706
2713
  tenant_id=tenant_id,
@@ -2739,7 +2746,7 @@ class ErpSyncOperations:
2739
2746
  :rtype: ~ignos.internal.api.client.models.ErpSyncErrorMessage
2740
2747
  :raises ~azure.core.exceptions.HttpResponseError:
2741
2748
  """
2742
- error_map: MutableMapping[int, Type[HttpResponseError]] = { # pylint: disable=unsubscriptable-object
2749
+ error_map: MutableMapping = {
2743
2750
  401: ClientAuthenticationError,
2744
2751
  404: ResourceNotFoundError,
2745
2752
  409: ResourceExistsError,
@@ -2794,7 +2801,7 @@ class ErpSyncOperations:
2794
2801
  :rtype: None
2795
2802
  :raises ~azure.core.exceptions.HttpResponseError:
2796
2803
  """
2797
- error_map: MutableMapping[int, Type[HttpResponseError]] = { # pylint: disable=unsubscriptable-object
2804
+ error_map: MutableMapping = {
2798
2805
  401: ClientAuthenticationError,
2799
2806
  404: ResourceNotFoundError,
2800
2807
  409: ResourceExistsError,
@@ -2886,7 +2893,7 @@ class ErpSyncOperations:
2886
2893
  :rtype: ~ignos.internal.api.client.models.DataSyncOrchestrationTriggerResponse
2887
2894
  :raises ~azure.core.exceptions.HttpResponseError:
2888
2895
  """
2889
- error_map: MutableMapping[int, Type[HttpResponseError]] = { # pylint: disable=unsubscriptable-object
2896
+ error_map: MutableMapping = {
2890
2897
  401: ClientAuthenticationError,
2891
2898
  404: ResourceNotFoundError,
2892
2899
  409: ResourceExistsError,
@@ -2898,9 +2905,10 @@ class ErpSyncOperations:
2898
2905
  _params = kwargs.pop("params", {}) or {}
2899
2906
 
2900
2907
  content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
2908
+ content_type = content_type if body else None
2901
2909
  cls: ClsType[_models.DataSyncOrchestrationTriggerResponse] = kwargs.pop("cls", None)
2902
2910
 
2903
- content_type = content_type or "application/json"
2911
+ content_type = content_type or "application/json" if body else None
2904
2912
  _json = None
2905
2913
  _content = None
2906
2914
  if isinstance(body, (IOBase, bytes)):
@@ -2940,7 +2948,7 @@ class ErpSyncOperations:
2940
2948
  return deserialized # type: ignore
2941
2949
 
2942
2950
  @overload
2943
- def sync_single_work_order( # pylint: disable=inconsistent-return-statements
2951
+ def sync_single_work_order(
2944
2952
  self,
2945
2953
  tenant_id: str,
2946
2954
  body: Optional[_models.SyncSingleWorkOrder] = None,
@@ -2963,7 +2971,7 @@ class ErpSyncOperations:
2963
2971
  """
2964
2972
 
2965
2973
  @overload
2966
- def sync_single_work_order( # pylint: disable=inconsistent-return-statements
2974
+ def sync_single_work_order(
2967
2975
  self, tenant_id: str, body: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any
2968
2976
  ) -> None:
2969
2977
  """sync_single_work_order.
@@ -2995,7 +3003,7 @@ class ErpSyncOperations:
2995
3003
  :rtype: None
2996
3004
  :raises ~azure.core.exceptions.HttpResponseError:
2997
3005
  """
2998
- error_map: MutableMapping[int, Type[HttpResponseError]] = { # pylint: disable=unsubscriptable-object
3006
+ error_map: MutableMapping = {
2999
3007
  401: ClientAuthenticationError,
3000
3008
  404: ResourceNotFoundError,
3001
3009
  409: ResourceExistsError,
@@ -3007,9 +3015,10 @@ class ErpSyncOperations:
3007
3015
  _params = kwargs.pop("params", {}) or {}
3008
3016
 
3009
3017
  content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
3018
+ content_type = content_type if body else None
3010
3019
  cls: ClsType[None] = kwargs.pop("cls", None)
3011
3020
 
3012
- content_type = content_type or "application/json"
3021
+ content_type = content_type or "application/json" if body else None
3013
3022
  _json = None
3014
3023
  _content = None
3015
3024
  if isinstance(body, (IOBase, bytes)):
@@ -3053,7 +3062,7 @@ class ErpSyncOperations:
3053
3062
  created_to_time: Optional[datetime.datetime] = None,
3054
3063
  runtime_status: Optional[str] = None,
3055
3064
  **kwargs: Any
3056
- ) -> List[_models.DataSyncOrchestrationInstance]:
3065
+ ) -> list[_models.DataSyncOrchestrationInstance]:
3057
3066
  """list_full_sync_instances.
3058
3067
 
3059
3068
  :param tenant_id: Required.
@@ -3068,7 +3077,7 @@ class ErpSyncOperations:
3068
3077
  :rtype: list[~ignos.internal.api.client.models.DataSyncOrchestrationInstance]
3069
3078
  :raises ~azure.core.exceptions.HttpResponseError:
3070
3079
  """
3071
- error_map: MutableMapping[int, Type[HttpResponseError]] = { # pylint: disable=unsubscriptable-object
3080
+ error_map: MutableMapping = {
3072
3081
  401: ClientAuthenticationError,
3073
3082
  404: ResourceNotFoundError,
3074
3083
  409: ResourceExistsError,
@@ -3079,7 +3088,7 @@ class ErpSyncOperations:
3079
3088
  _headers = kwargs.pop("headers", {}) or {}
3080
3089
  _params = kwargs.pop("params", {}) or {}
3081
3090
 
3082
- cls: ClsType[List[_models.DataSyncOrchestrationInstance]] = kwargs.pop("cls", None)
3091
+ cls: ClsType[list[_models.DataSyncOrchestrationInstance]] = kwargs.pop("cls", None)
3083
3092
 
3084
3093
  _request = build_erp_sync_list_full_sync_instances_request(
3085
3094
  tenant_id=tenant_id,
@@ -3110,7 +3119,7 @@ class ErpSyncOperations:
3110
3119
  return deserialized # type: ignore
3111
3120
 
3112
3121
  @overload
3113
- def terminate_full_sync_instance( # pylint: disable=inconsistent-return-statements
3122
+ def terminate_full_sync_instance(
3114
3123
  self,
3115
3124
  tenant_id: str,
3116
3125
  body: Optional[_models.TerminateInstance] = None,
@@ -3133,7 +3142,7 @@ class ErpSyncOperations:
3133
3142
  """
3134
3143
 
3135
3144
  @overload
3136
- def terminate_full_sync_instance( # pylint: disable=inconsistent-return-statements
3145
+ def terminate_full_sync_instance(
3137
3146
  self, tenant_id: str, body: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any
3138
3147
  ) -> None:
3139
3148
  """terminate_full_sync_instance.
@@ -3165,7 +3174,7 @@ class ErpSyncOperations:
3165
3174
  :rtype: None
3166
3175
  :raises ~azure.core.exceptions.HttpResponseError:
3167
3176
  """
3168
- error_map: MutableMapping[int, Type[HttpResponseError]] = { # pylint: disable=unsubscriptable-object
3177
+ error_map: MutableMapping = {
3169
3178
  401: ClientAuthenticationError,
3170
3179
  404: ResourceNotFoundError,
3171
3180
  409: ResourceExistsError,
@@ -3177,9 +3186,10 @@ class ErpSyncOperations:
3177
3186
  _params = kwargs.pop("params", {}) or {}
3178
3187
 
3179
3188
  content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
3189
+ content_type = content_type if body else None
3180
3190
  cls: ClsType[None] = kwargs.pop("cls", None)
3181
3191
 
3182
- content_type = content_type or "application/json"
3192
+ content_type = content_type or "application/json" if body else None
3183
3193
  _json = None
3184
3194
  _content = None
3185
3195
  if isinstance(body, (IOBase, bytes)):
@@ -3215,7 +3225,7 @@ class ErpSyncOperations:
3215
3225
  return cls(pipeline_response, None, {}) # type: ignore
3216
3226
 
3217
3227
  @overload
3218
- def rewind_full_sync_instance( # pylint: disable=inconsistent-return-statements
3228
+ def rewind_full_sync_instance(
3219
3229
  self,
3220
3230
  tenant_id: str,
3221
3231
  body: Optional[_models.RewindInstance] = None,
@@ -3238,7 +3248,7 @@ class ErpSyncOperations:
3238
3248
  """
3239
3249
 
3240
3250
  @overload
3241
- def rewind_full_sync_instance( # pylint: disable=inconsistent-return-statements
3251
+ def rewind_full_sync_instance(
3242
3252
  self, tenant_id: str, body: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any
3243
3253
  ) -> None:
3244
3254
  """rewind_full_sync_instance.
@@ -3270,7 +3280,7 @@ class ErpSyncOperations:
3270
3280
  :rtype: None
3271
3281
  :raises ~azure.core.exceptions.HttpResponseError:
3272
3282
  """
3273
- error_map: MutableMapping[int, Type[HttpResponseError]] = { # pylint: disable=unsubscriptable-object
3283
+ error_map: MutableMapping = {
3274
3284
  401: ClientAuthenticationError,
3275
3285
  404: ResourceNotFoundError,
3276
3286
  409: ResourceExistsError,
@@ -3282,9 +3292,10 @@ class ErpSyncOperations:
3282
3292
  _params = kwargs.pop("params", {}) or {}
3283
3293
 
3284
3294
  content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
3295
+ content_type = content_type if body else None
3285
3296
  cls: ClsType[None] = kwargs.pop("cls", None)
3286
3297
 
3287
- content_type = content_type or "application/json"
3298
+ content_type = content_type or "application/json" if body else None
3288
3299
  _json = None
3289
3300
  _content = None
3290
3301
  if isinstance(body, (IOBase, bytes)):
@@ -3332,17 +3343,17 @@ class PowerOperations:
3332
3343
 
3333
3344
  models = _models
3334
3345
 
3335
- def __init__(self, *args, **kwargs):
3346
+ def __init__(self, *args, **kwargs) -> None:
3336
3347
  input_args = list(args)
3337
- self._client = input_args.pop(0) if input_args else kwargs.pop("client")
3338
- self._config = input_args.pop(0) if input_args else kwargs.pop("config")
3339
- self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer")
3340
- self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer")
3348
+ self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client")
3349
+ self._config: IgnosInternalApiConfiguration = input_args.pop(0) if input_args else kwargs.pop("config")
3350
+ self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer")
3351
+ self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer")
3341
3352
 
3342
3353
  @distributed_trace
3343
3354
  def list_power_regions_by_country(
3344
3355
  self, *, country: Optional[str] = None, **kwargs: Any
3345
- ) -> List[_models.PowerRegionDto]:
3356
+ ) -> list[_models.PowerRegionDto]:
3346
3357
  """list_power_regions_by_country.
3347
3358
 
3348
3359
  :keyword country: Default value is None.
@@ -3351,7 +3362,7 @@ class PowerOperations:
3351
3362
  :rtype: list[~ignos.internal.api.client.models.PowerRegionDto]
3352
3363
  :raises ~azure.core.exceptions.HttpResponseError:
3353
3364
  """
3354
- error_map: MutableMapping[int, Type[HttpResponseError]] = { # pylint: disable=unsubscriptable-object
3365
+ error_map: MutableMapping = {
3355
3366
  401: ClientAuthenticationError,
3356
3367
  404: ResourceNotFoundError,
3357
3368
  409: ResourceExistsError,
@@ -3362,7 +3373,7 @@ class PowerOperations:
3362
3373
  _headers = kwargs.pop("headers", {}) or {}
3363
3374
  _params = kwargs.pop("params", {}) or {}
3364
3375
 
3365
- cls: ClsType[List[_models.PowerRegionDto]] = kwargs.pop("cls", None)
3376
+ cls: ClsType[list[_models.PowerRegionDto]] = kwargs.pop("cls", None)
3366
3377
 
3367
3378
  _request = build_power_list_power_regions_by_country_request(
3368
3379
  country=country,
@@ -3434,7 +3445,7 @@ class PowerOperations:
3434
3445
  :rtype: ~ignos.internal.api.client.models.PowerRegionDto
3435
3446
  :raises ~azure.core.exceptions.HttpResponseError:
3436
3447
  """
3437
- error_map: MutableMapping[int, Type[HttpResponseError]] = { # pylint: disable=unsubscriptable-object
3448
+ error_map: MutableMapping = {
3438
3449
  401: ClientAuthenticationError,
3439
3450
  404: ResourceNotFoundError,
3440
3451
  409: ResourceExistsError,
@@ -3446,9 +3457,10 @@ class PowerOperations:
3446
3457
  _params = kwargs.pop("params", {}) or {}
3447
3458
 
3448
3459
  content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
3460
+ content_type = content_type if body else None
3449
3461
  cls: ClsType[_models.PowerRegionDto] = kwargs.pop("cls", None)
3450
3462
 
3451
- content_type = content_type or "application/json"
3463
+ content_type = content_type or "application/json" if body else None
3452
3464
  _json = None
3453
3465
  _content = None
3454
3466
  if isinstance(body, (IOBase, bytes)):
@@ -3499,12 +3511,12 @@ class PresentationOperations:
3499
3511
 
3500
3512
  models = _models
3501
3513
 
3502
- def __init__(self, *args, **kwargs):
3514
+ def __init__(self, *args, **kwargs) -> None:
3503
3515
  input_args = list(args)
3504
- self._client = input_args.pop(0) if input_args else kwargs.pop("client")
3505
- self._config = input_args.pop(0) if input_args else kwargs.pop("config")
3506
- self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer")
3507
- self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer")
3516
+ self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client")
3517
+ self._config: IgnosInternalApiConfiguration = input_args.pop(0) if input_args else kwargs.pop("config")
3518
+ self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer")
3519
+ self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer")
3508
3520
 
3509
3521
  @distributed_trace
3510
3522
  def delete_component_settings( # pylint: disable=inconsistent-return-statements
@@ -3522,7 +3534,7 @@ class PresentationOperations:
3522
3534
  :rtype: None
3523
3535
  :raises ~azure.core.exceptions.HttpResponseError:
3524
3536
  """
3525
- error_map: MutableMapping[int, Type[HttpResponseError]] = { # pylint: disable=unsubscriptable-object
3537
+ error_map: MutableMapping = {
3526
3538
  401: ClientAuthenticationError,
3527
3539
  404: ResourceNotFoundError,
3528
3540
  409: ResourceExistsError,
@@ -3641,7 +3653,7 @@ class PresentationOperations:
3641
3653
  :rtype: ~ignos.internal.api.client.models.ComponentSettingsDto
3642
3654
  :raises ~azure.core.exceptions.HttpResponseError:
3643
3655
  """
3644
- error_map: MutableMapping[int, Type[HttpResponseError]] = { # pylint: disable=unsubscriptable-object
3656
+ error_map: MutableMapping = {
3645
3657
  401: ClientAuthenticationError,
3646
3658
  404: ResourceNotFoundError,
3647
3659
  409: ResourceExistsError,
@@ -3653,9 +3665,10 @@ class PresentationOperations:
3653
3665
  _params = kwargs.pop("params", {}) or {}
3654
3666
 
3655
3667
  content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
3668
+ content_type = content_type if body else None
3656
3669
  cls: ClsType[_models.ComponentSettingsDto] = kwargs.pop("cls", None)
3657
3670
 
3658
- content_type = content_type or "application/json"
3671
+ content_type = content_type or "application/json" if body else None
3659
3672
  _json = None
3660
3673
  _content = None
3661
3674
  if isinstance(body, (IOBase, bytes)):
@@ -3709,15 +3722,15 @@ class SustainabilitySetupOperations:
3709
3722
 
3710
3723
  models = _models
3711
3724
 
3712
- def __init__(self, *args, **kwargs):
3725
+ def __init__(self, *args, **kwargs) -> None:
3713
3726
  input_args = list(args)
3714
- self._client = input_args.pop(0) if input_args else kwargs.pop("client")
3715
- self._config = input_args.pop(0) if input_args else kwargs.pop("config")
3716
- self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer")
3717
- self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer")
3727
+ self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client")
3728
+ self._config: IgnosInternalApiConfiguration = input_args.pop(0) if input_args else kwargs.pop("config")
3729
+ self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer")
3730
+ self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer")
3718
3731
 
3719
3732
  @overload
3720
- def init_ferro_amp( # pylint: disable=inconsistent-return-statements
3733
+ def init_ferro_amp(
3721
3734
  self,
3722
3735
  azure_ad_tenant_id: str,
3723
3736
  tenant_id: str,
@@ -3743,7 +3756,7 @@ class SustainabilitySetupOperations:
3743
3756
  """
3744
3757
 
3745
3758
  @overload
3746
- def init_ferro_amp( # pylint: disable=inconsistent-return-statements
3759
+ def init_ferro_amp(
3747
3760
  self,
3748
3761
  azure_ad_tenant_id: str,
3749
3762
  tenant_id: str,
@@ -3789,7 +3802,7 @@ class SustainabilitySetupOperations:
3789
3802
  :rtype: None
3790
3803
  :raises ~azure.core.exceptions.HttpResponseError:
3791
3804
  """
3792
- error_map: MutableMapping[int, Type[HttpResponseError]] = { # pylint: disable=unsubscriptable-object
3805
+ error_map: MutableMapping = {
3793
3806
  401: ClientAuthenticationError,
3794
3807
  404: ResourceNotFoundError,
3795
3808
  409: ResourceExistsError,
@@ -3801,9 +3814,10 @@ class SustainabilitySetupOperations:
3801
3814
  _params = kwargs.pop("params", {}) or {}
3802
3815
 
3803
3816
  content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
3817
+ content_type = content_type if body else None
3804
3818
  cls: ClsType[None] = kwargs.pop("cls", None)
3805
3819
 
3806
- content_type = content_type or "application/json"
3820
+ content_type = content_type or "application/json" if body else None
3807
3821
  _json = None
3808
3822
  _content = None
3809
3823
  if isinstance(body, (IOBase, bytes)):
@@ -3840,7 +3854,7 @@ class SustainabilitySetupOperations:
3840
3854
  return cls(pipeline_response, None, {}) # type: ignore
3841
3855
 
3842
3856
  @overload
3843
- def map_factory_template( # pylint: disable=inconsistent-return-statements
3857
+ def map_factory_template(
3844
3858
  self,
3845
3859
  azure_ad_tenant_id: str,
3846
3860
  tenant_id: str,
@@ -3866,7 +3880,7 @@ class SustainabilitySetupOperations:
3866
3880
  """
3867
3881
 
3868
3882
  @overload
3869
- def map_factory_template( # pylint: disable=inconsistent-return-statements
3883
+ def map_factory_template(
3870
3884
  self,
3871
3885
  azure_ad_tenant_id: str,
3872
3886
  tenant_id: str,
@@ -3913,7 +3927,7 @@ class SustainabilitySetupOperations:
3913
3927
  :rtype: None
3914
3928
  :raises ~azure.core.exceptions.HttpResponseError:
3915
3929
  """
3916
- error_map: MutableMapping[int, Type[HttpResponseError]] = { # pylint: disable=unsubscriptable-object
3930
+ error_map: MutableMapping = {
3917
3931
  401: ClientAuthenticationError,
3918
3932
  404: ResourceNotFoundError,
3919
3933
  409: ResourceExistsError,
@@ -3925,9 +3939,10 @@ class SustainabilitySetupOperations:
3925
3939
  _params = kwargs.pop("params", {}) or {}
3926
3940
 
3927
3941
  content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
3942
+ content_type = content_type if body else None
3928
3943
  cls: ClsType[None] = kwargs.pop("cls", None)
3929
3944
 
3930
- content_type = content_type or "application/json"
3945
+ content_type = content_type or "application/json" if body else None
3931
3946
  _json = None
3932
3947
  _content = None
3933
3948
  if isinstance(body, (IOBase, bytes)):
@@ -3964,7 +3979,7 @@ class SustainabilitySetupOperations:
3964
3979
  return cls(pipeline_response, None, {}) # type: ignore
3965
3980
 
3966
3981
  @overload
3967
- def map_factory_template_ferro_amp( # pylint: disable=inconsistent-return-statements
3982
+ def map_factory_template_ferro_amp(
3968
3983
  self,
3969
3984
  azure_ad_tenant_id: str,
3970
3985
  tenant_id: str,
@@ -3990,7 +4005,7 @@ class SustainabilitySetupOperations:
3990
4005
  """
3991
4006
 
3992
4007
  @overload
3993
- def map_factory_template_ferro_amp( # pylint: disable=inconsistent-return-statements
4008
+ def map_factory_template_ferro_amp(
3994
4009
  self,
3995
4010
  azure_ad_tenant_id: str,
3996
4011
  tenant_id: str,
@@ -4037,7 +4052,7 @@ class SustainabilitySetupOperations:
4037
4052
  :rtype: None
4038
4053
  :raises ~azure.core.exceptions.HttpResponseError:
4039
4054
  """
4040
- error_map: MutableMapping[int, Type[HttpResponseError]] = { # pylint: disable=unsubscriptable-object
4055
+ error_map: MutableMapping = {
4041
4056
  401: ClientAuthenticationError,
4042
4057
  404: ResourceNotFoundError,
4043
4058
  409: ResourceExistsError,
@@ -4049,9 +4064,10 @@ class SustainabilitySetupOperations:
4049
4064
  _params = kwargs.pop("params", {}) or {}
4050
4065
 
4051
4066
  content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
4067
+ content_type = content_type if body else None
4052
4068
  cls: ClsType[None] = kwargs.pop("cls", None)
4053
4069
 
4054
- content_type = content_type or "application/json"
4070
+ content_type = content_type or "application/json" if body else None
4055
4071
  _json = None
4056
4072
  _content = None
4057
4073
  if isinstance(body, (IOBase, bytes)):
@@ -4100,17 +4116,17 @@ class TenantCredentialsOperations:
4100
4116
 
4101
4117
  models = _models
4102
4118
 
4103
- def __init__(self, *args, **kwargs):
4119
+ def __init__(self, *args, **kwargs) -> None:
4104
4120
  input_args = list(args)
4105
- self._client = input_args.pop(0) if input_args else kwargs.pop("client")
4106
- self._config = input_args.pop(0) if input_args else kwargs.pop("config")
4107
- self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer")
4108
- self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer")
4121
+ self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client")
4122
+ self._config: IgnosInternalApiConfiguration = input_args.pop(0) if input_args else kwargs.pop("config")
4123
+ self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer")
4124
+ self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer")
4109
4125
 
4110
4126
  @distributed_trace
4111
4127
  def list_tenant_credential_types(
4112
4128
  self, tenant_id: str, **kwargs: Any
4113
- ) -> List[_models.TenantIntegrationCredentialTypeDto]:
4129
+ ) -> list[_models.TenantIntegrationCredentialTypeDto]:
4114
4130
  """list_tenant_credential_types.
4115
4131
 
4116
4132
  :param tenant_id: Required.
@@ -4119,7 +4135,7 @@ class TenantCredentialsOperations:
4119
4135
  :rtype: list[~ignos.internal.api.client.models.TenantIntegrationCredentialTypeDto]
4120
4136
  :raises ~azure.core.exceptions.HttpResponseError:
4121
4137
  """
4122
- error_map: MutableMapping[int, Type[HttpResponseError]] = { # pylint: disable=unsubscriptable-object
4138
+ error_map: MutableMapping = {
4123
4139
  401: ClientAuthenticationError,
4124
4140
  404: ResourceNotFoundError,
4125
4141
  409: ResourceExistsError,
@@ -4130,7 +4146,7 @@ class TenantCredentialsOperations:
4130
4146
  _headers = kwargs.pop("headers", {}) or {}
4131
4147
  _params = kwargs.pop("params", {}) or {}
4132
4148
 
4133
- cls: ClsType[List[_models.TenantIntegrationCredentialTypeDto]] = kwargs.pop("cls", None)
4149
+ cls: ClsType[list[_models.TenantIntegrationCredentialTypeDto]] = kwargs.pop("cls", None)
4134
4150
 
4135
4151
  _request = build_tenant_credentials_list_tenant_credential_types_request(
4136
4152
  tenant_id=tenant_id,
@@ -4217,7 +4233,7 @@ class TenantCredentialsOperations:
4217
4233
  :rtype: ~ignos.internal.api.client.models.TenantIntegrationCredentialTypeDto
4218
4234
  :raises ~azure.core.exceptions.HttpResponseError:
4219
4235
  """
4220
- error_map: MutableMapping[int, Type[HttpResponseError]] = { # pylint: disable=unsubscriptable-object
4236
+ error_map: MutableMapping = {
4221
4237
  401: ClientAuthenticationError,
4222
4238
  404: ResourceNotFoundError,
4223
4239
  409: ResourceExistsError,
@@ -4229,9 +4245,10 @@ class TenantCredentialsOperations:
4229
4245
  _params = kwargs.pop("params", {}) or {}
4230
4246
 
4231
4247
  content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
4248
+ content_type = content_type if body else None
4232
4249
  cls: ClsType[_models.TenantIntegrationCredentialTypeDto] = kwargs.pop("cls", None)
4233
4250
 
4234
- content_type = content_type or "application/json"
4251
+ content_type = content_type or "application/json" if body else None
4235
4252
  _json = None
4236
4253
  _content = None
4237
4254
  if isinstance(body, (IOBase, bytes)):
@@ -4284,7 +4301,7 @@ class TenantCredentialsOperations:
4284
4301
  :rtype: None
4285
4302
  :raises ~azure.core.exceptions.HttpResponseError:
4286
4303
  """
4287
- error_map: MutableMapping[int, Type[HttpResponseError]] = { # pylint: disable=unsubscriptable-object
4304
+ error_map: MutableMapping = {
4288
4305
  401: ClientAuthenticationError,
4289
4306
  404: ResourceNotFoundError,
4290
4307
  409: ResourceExistsError,
@@ -4332,17 +4349,17 @@ class TenantsOperations:
4332
4349
 
4333
4350
  models = _models
4334
4351
 
4335
- def __init__(self, *args, **kwargs):
4352
+ def __init__(self, *args, **kwargs) -> None:
4336
4353
  input_args = list(args)
4337
- self._client = input_args.pop(0) if input_args else kwargs.pop("client")
4338
- self._config = input_args.pop(0) if input_args else kwargs.pop("config")
4339
- self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer")
4340
- self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer")
4354
+ self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client")
4355
+ self._config: IgnosInternalApiConfiguration = input_args.pop(0) if input_args else kwargs.pop("config")
4356
+ self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer")
4357
+ self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer")
4341
4358
 
4342
4359
  @distributed_trace
4343
4360
  def list_tenants_details(
4344
4361
  self, *, tenant_id_prefix: Optional[str] = None, app_id: Optional[str] = None, **kwargs: Any
4345
- ) -> List[_models.TenantDetailDto]:
4362
+ ) -> list[_models.TenantDetailDto]:
4346
4363
  """Internal Ignos api for listing tenants.
4347
4364
 
4348
4365
  Internal Ignos api for listing tenants.
@@ -4355,7 +4372,7 @@ class TenantsOperations:
4355
4372
  :rtype: list[~ignos.internal.api.client.models.TenantDetailDto]
4356
4373
  :raises ~azure.core.exceptions.HttpResponseError:
4357
4374
  """
4358
- error_map: MutableMapping[int, Type[HttpResponseError]] = { # pylint: disable=unsubscriptable-object
4375
+ error_map: MutableMapping = {
4359
4376
  401: ClientAuthenticationError,
4360
4377
  404: ResourceNotFoundError,
4361
4378
  409: ResourceExistsError,
@@ -4366,7 +4383,7 @@ class TenantsOperations:
4366
4383
  _headers = kwargs.pop("headers", {}) or {}
4367
4384
  _params = kwargs.pop("params", {}) or {}
4368
4385
 
4369
- cls: ClsType[List[_models.TenantDetailDto]] = kwargs.pop("cls", None)
4386
+ cls: ClsType[list[_models.TenantDetailDto]] = kwargs.pop("cls", None)
4370
4387
 
4371
4388
  _request = build_tenants_list_tenants_details_request(
4372
4389
  tenant_id_prefix=tenant_id_prefix,
@@ -4407,12 +4424,12 @@ class UserOperations:
4407
4424
 
4408
4425
  models = _models
4409
4426
 
4410
- def __init__(self, *args, **kwargs):
4427
+ def __init__(self, *args, **kwargs) -> None:
4411
4428
  input_args = list(args)
4412
- self._client = input_args.pop(0) if input_args else kwargs.pop("client")
4413
- self._config = input_args.pop(0) if input_args else kwargs.pop("config")
4414
- self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer")
4415
- self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer")
4429
+ self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client")
4430
+ self._config: IgnosInternalApiConfiguration = input_args.pop(0) if input_args else kwargs.pop("config")
4431
+ self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer")
4432
+ self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer")
4416
4433
 
4417
4434
  @distributed_trace
4418
4435
  def get_user(self, **kwargs: Any) -> _models.UserDetailsDto:
@@ -4422,7 +4439,7 @@ class UserOperations:
4422
4439
  :rtype: ~ignos.internal.api.client.models.UserDetailsDto
4423
4440
  :raises ~azure.core.exceptions.HttpResponseError:
4424
4441
  """
4425
- error_map: MutableMapping[int, Type[HttpResponseError]] = { # pylint: disable=unsubscriptable-object
4442
+ error_map: MutableMapping = {
4426
4443
  401: ClientAuthenticationError,
4427
4444
  404: ResourceNotFoundError,
4428
4445
  409: ResourceExistsError,