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.
- ignos/internal/api/client/__init__.py +9 -3
- ignos/internal/api/client/_client.py +2 -2
- ignos/internal/api/client/_configuration.py +1 -2
- ignos/internal/api/client/_patch.py +7 -6
- ignos/internal/api/client/_utils/__init__.py +6 -0
- ignos/internal/api/client/{_serialization.py → _utils/serialization.py} +71 -156
- ignos/internal/api/client/_version.py +1 -1
- ignos/internal/api/client/aio/__init__.py +9 -3
- ignos/internal/api/client/aio/_client.py +2 -2
- ignos/internal/api/client/aio/_configuration.py +1 -2
- ignos/internal/api/client/aio/_patch.py +7 -6
- ignos/internal/api/client/aio/operations/__init__.py +21 -15
- ignos/internal/api/client/aio/operations/_operations.py +191 -181
- ignos/internal/api/client/aio/operations/_patch.py +7 -6
- ignos/internal/api/client/models/__init__.py +58 -47
- ignos/internal/api/client/models/_models.py +38 -11
- ignos/internal/api/client/models/_patch.py +7 -6
- ignos/internal/api/client/operations/__init__.py +21 -15
- ignos/internal/api/client/operations/_operations.py +191 -174
- ignos/internal/api/client/operations/_patch.py +7 -6
- ignos_internal_api_client-20251117.0.13243.dist-info/METADATA +17 -0
- ignos_internal_api_client-20251117.0.13243.dist-info/RECORD +29 -0
- {ignos_internal_api_client-20240926.0.10449.dist-info → ignos_internal_api_client-20251117.0.13243.dist-info}/WHEEL +1 -1
- ignos_internal_api_client-20240926.0.10449.dist-info/METADATA +0 -13
- ignos_internal_api_client-20240926.0.10449.dist-info/RECORD +0 -28
- {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
|
|
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
|
|
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 AsyncPipelineClient
|
|
14
15
|
from azure.core.exceptions import (
|
|
15
16
|
ClientAuthenticationError,
|
|
16
17
|
HttpResponseError,
|
|
@@ -25,6 +26,7 @@ from azure.core.tracing.decorator_async import distributed_trace_async
|
|
|
25
26
|
from azure.core.utils import case_insensitive_dict
|
|
26
27
|
|
|
27
28
|
from ... import models as _models
|
|
29
|
+
from ..._utils.serialization import Deserializer, Serializer
|
|
28
30
|
from ...operations._operations import (
|
|
29
31
|
build_apps_create_app_request,
|
|
30
32
|
build_apps_list_apps_request,
|
|
@@ -70,13 +72,10 @@ from ...operations._operations import (
|
|
|
70
72
|
build_tenants_list_tenants_details_request,
|
|
71
73
|
build_user_get_user_request,
|
|
72
74
|
)
|
|
75
|
+
from .._configuration import IgnosInternalApiConfiguration
|
|
73
76
|
|
|
74
|
-
if sys.version_info >= (3, 9):
|
|
75
|
-
from collections.abc import MutableMapping
|
|
76
|
-
else:
|
|
77
|
-
from typing import MutableMapping # type: ignore # pylint: disable=ungrouped-imports
|
|
78
77
|
T = TypeVar("T")
|
|
79
|
-
ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T,
|
|
78
|
+
ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, dict[str, Any]], Any]]
|
|
80
79
|
|
|
81
80
|
|
|
82
81
|
class AppsOperations:
|
|
@@ -93,13 +92,13 @@ class AppsOperations:
|
|
|
93
92
|
|
|
94
93
|
def __init__(self, *args, **kwargs) -> None:
|
|
95
94
|
input_args = list(args)
|
|
96
|
-
self._client = input_args.pop(0) if input_args else kwargs.pop("client")
|
|
97
|
-
self._config = input_args.pop(0) if input_args else kwargs.pop("config")
|
|
98
|
-
self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer")
|
|
99
|
-
self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer")
|
|
95
|
+
self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client")
|
|
96
|
+
self._config: IgnosInternalApiConfiguration = input_args.pop(0) if input_args else kwargs.pop("config")
|
|
97
|
+
self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer")
|
|
98
|
+
self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer")
|
|
100
99
|
|
|
101
100
|
@distributed_trace_async
|
|
102
|
-
async def list_apps(self, **kwargs: Any) ->
|
|
101
|
+
async def list_apps(self, **kwargs: Any) -> list[_models.AppDto]:
|
|
103
102
|
"""Internal Ignos api for listing apps.
|
|
104
103
|
|
|
105
104
|
Internal Ignos api for listing apps.
|
|
@@ -108,7 +107,7 @@ class AppsOperations:
|
|
|
108
107
|
:rtype: list[~ignos.internal.api.client.models.AppDto]
|
|
109
108
|
:raises ~azure.core.exceptions.HttpResponseError:
|
|
110
109
|
"""
|
|
111
|
-
error_map: MutableMapping
|
|
110
|
+
error_map: MutableMapping = {
|
|
112
111
|
401: ClientAuthenticationError,
|
|
113
112
|
404: ResourceNotFoundError,
|
|
114
113
|
409: ResourceExistsError,
|
|
@@ -119,7 +118,7 @@ class AppsOperations:
|
|
|
119
118
|
_headers = kwargs.pop("headers", {}) or {}
|
|
120
119
|
_params = kwargs.pop("params", {}) or {}
|
|
121
120
|
|
|
122
|
-
cls: ClsType[
|
|
121
|
+
cls: ClsType[list[_models.AppDto]] = kwargs.pop("cls", None)
|
|
123
122
|
|
|
124
123
|
_request = build_apps_list_apps_request(
|
|
125
124
|
headers=_headers,
|
|
@@ -196,7 +195,7 @@ class AppsOperations:
|
|
|
196
195
|
:rtype: ~ignos.internal.api.client.models.AppDto
|
|
197
196
|
:raises ~azure.core.exceptions.HttpResponseError:
|
|
198
197
|
"""
|
|
199
|
-
error_map: MutableMapping
|
|
198
|
+
error_map: MutableMapping = {
|
|
200
199
|
401: ClientAuthenticationError,
|
|
201
200
|
404: ResourceNotFoundError,
|
|
202
201
|
409: ResourceExistsError,
|
|
@@ -208,9 +207,10 @@ class AppsOperations:
|
|
|
208
207
|
_params = kwargs.pop("params", {}) or {}
|
|
209
208
|
|
|
210
209
|
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
|
210
|
+
content_type = content_type if body else None
|
|
211
211
|
cls: ClsType[_models.AppDto] = kwargs.pop("cls", None)
|
|
212
212
|
|
|
213
|
-
content_type = content_type or "application/json"
|
|
213
|
+
content_type = content_type or "application/json" if body else None
|
|
214
214
|
_json = None
|
|
215
215
|
_content = None
|
|
216
216
|
if isinstance(body, (IOBase, bytes)):
|
|
@@ -310,7 +310,7 @@ class AppsOperations:
|
|
|
310
310
|
:rtype: ~ignos.internal.api.client.models.AppDto
|
|
311
311
|
:raises ~azure.core.exceptions.HttpResponseError:
|
|
312
312
|
"""
|
|
313
|
-
error_map: MutableMapping
|
|
313
|
+
error_map: MutableMapping = {
|
|
314
314
|
401: ClientAuthenticationError,
|
|
315
315
|
404: ResourceNotFoundError,
|
|
316
316
|
409: ResourceExistsError,
|
|
@@ -322,9 +322,10 @@ class AppsOperations:
|
|
|
322
322
|
_params = kwargs.pop("params", {}) or {}
|
|
323
323
|
|
|
324
324
|
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
|
325
|
+
content_type = content_type if body else None
|
|
325
326
|
cls: ClsType[_models.AppDto] = kwargs.pop("cls", None)
|
|
326
327
|
|
|
327
|
-
content_type = content_type or "application/json"
|
|
328
|
+
content_type = content_type or "application/json" if body else None
|
|
328
329
|
_json = None
|
|
329
330
|
_content = None
|
|
330
331
|
if isinstance(body, (IOBase, bytes)):
|
|
@@ -378,20 +379,20 @@ class AzureRegionsOperations:
|
|
|
378
379
|
|
|
379
380
|
def __init__(self, *args, **kwargs) -> None:
|
|
380
381
|
input_args = list(args)
|
|
381
|
-
self._client = input_args.pop(0) if input_args else kwargs.pop("client")
|
|
382
|
-
self._config = input_args.pop(0) if input_args else kwargs.pop("config")
|
|
383
|
-
self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer")
|
|
384
|
-
self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer")
|
|
382
|
+
self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client")
|
|
383
|
+
self._config: IgnosInternalApiConfiguration = input_args.pop(0) if input_args else kwargs.pop("config")
|
|
384
|
+
self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer")
|
|
385
|
+
self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer")
|
|
385
386
|
|
|
386
387
|
@distributed_trace_async
|
|
387
|
-
async def list_azure_regions(self, **kwargs: Any) ->
|
|
388
|
+
async def list_azure_regions(self, **kwargs: Any) -> list[_models.AzureRegionDto]:
|
|
388
389
|
"""list_azure_regions.
|
|
389
390
|
|
|
390
391
|
:return: list of AzureRegionDto
|
|
391
392
|
:rtype: list[~ignos.internal.api.client.models.AzureRegionDto]
|
|
392
393
|
:raises ~azure.core.exceptions.HttpResponseError:
|
|
393
394
|
"""
|
|
394
|
-
error_map: MutableMapping
|
|
395
|
+
error_map: MutableMapping = {
|
|
395
396
|
401: ClientAuthenticationError,
|
|
396
397
|
404: ResourceNotFoundError,
|
|
397
398
|
409: ResourceExistsError,
|
|
@@ -402,7 +403,7 @@ class AzureRegionsOperations:
|
|
|
402
403
|
_headers = kwargs.pop("headers", {}) or {}
|
|
403
404
|
_params = kwargs.pop("params", {}) or {}
|
|
404
405
|
|
|
405
|
-
cls: ClsType[
|
|
406
|
+
cls: ClsType[list[_models.AzureRegionDto]] = kwargs.pop("cls", None)
|
|
406
407
|
|
|
407
408
|
_request = build_azure_regions_list_azure_regions_request(
|
|
408
409
|
headers=_headers,
|
|
@@ -443,20 +444,20 @@ class CdfClustersOperations:
|
|
|
443
444
|
|
|
444
445
|
def __init__(self, *args, **kwargs) -> None:
|
|
445
446
|
input_args = list(args)
|
|
446
|
-
self._client = input_args.pop(0) if input_args else kwargs.pop("client")
|
|
447
|
-
self._config = input_args.pop(0) if input_args else kwargs.pop("config")
|
|
448
|
-
self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer")
|
|
449
|
-
self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer")
|
|
447
|
+
self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client")
|
|
448
|
+
self._config: IgnosInternalApiConfiguration = input_args.pop(0) if input_args else kwargs.pop("config")
|
|
449
|
+
self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer")
|
|
450
|
+
self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer")
|
|
450
451
|
|
|
451
452
|
@distributed_trace_async
|
|
452
|
-
async def list_cdf_clusters(self, **kwargs: Any) ->
|
|
453
|
+
async def list_cdf_clusters(self, **kwargs: Any) -> list[_models.CdfClusterDto]:
|
|
453
454
|
"""list_cdf_clusters.
|
|
454
455
|
|
|
455
456
|
:return: list of CdfClusterDto
|
|
456
457
|
:rtype: list[~ignos.internal.api.client.models.CdfClusterDto]
|
|
457
458
|
:raises ~azure.core.exceptions.HttpResponseError:
|
|
458
459
|
"""
|
|
459
|
-
error_map: MutableMapping
|
|
460
|
+
error_map: MutableMapping = {
|
|
460
461
|
401: ClientAuthenticationError,
|
|
461
462
|
404: ResourceNotFoundError,
|
|
462
463
|
409: ResourceExistsError,
|
|
@@ -467,7 +468,7 @@ class CdfClustersOperations:
|
|
|
467
468
|
_headers = kwargs.pop("headers", {}) or {}
|
|
468
469
|
_params = kwargs.pop("params", {}) or {}
|
|
469
470
|
|
|
470
|
-
cls: ClsType[
|
|
471
|
+
cls: ClsType[list[_models.CdfClusterDto]] = kwargs.pop("cls", None)
|
|
471
472
|
|
|
472
473
|
_request = build_cdf_clusters_list_cdf_clusters_request(
|
|
473
474
|
headers=_headers,
|
|
@@ -538,7 +539,7 @@ class CdfClustersOperations:
|
|
|
538
539
|
:rtype: ~ignos.internal.api.client.models.CdfClusterDto
|
|
539
540
|
:raises ~azure.core.exceptions.HttpResponseError:
|
|
540
541
|
"""
|
|
541
|
-
error_map: MutableMapping
|
|
542
|
+
error_map: MutableMapping = {
|
|
542
543
|
401: ClientAuthenticationError,
|
|
543
544
|
404: ResourceNotFoundError,
|
|
544
545
|
409: ResourceExistsError,
|
|
@@ -550,9 +551,10 @@ class CdfClustersOperations:
|
|
|
550
551
|
_params = kwargs.pop("params", {}) or {}
|
|
551
552
|
|
|
552
553
|
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
|
554
|
+
content_type = content_type if body else None
|
|
553
555
|
cls: ClsType[_models.CdfClusterDto] = kwargs.pop("cls", None)
|
|
554
556
|
|
|
555
|
-
content_type = content_type or "application/json"
|
|
557
|
+
content_type = content_type or "application/json" if body else None
|
|
556
558
|
_json = None
|
|
557
559
|
_content = None
|
|
558
560
|
if isinstance(body, (IOBase, bytes)):
|
|
@@ -647,7 +649,7 @@ class CdfClustersOperations:
|
|
|
647
649
|
:rtype: ~ignos.internal.api.client.models.CdfClusterDto
|
|
648
650
|
:raises ~azure.core.exceptions.HttpResponseError:
|
|
649
651
|
"""
|
|
650
|
-
error_map: MutableMapping
|
|
652
|
+
error_map: MutableMapping = {
|
|
651
653
|
401: ClientAuthenticationError,
|
|
652
654
|
404: ResourceNotFoundError,
|
|
653
655
|
409: ResourceExistsError,
|
|
@@ -659,9 +661,10 @@ class CdfClustersOperations:
|
|
|
659
661
|
_params = kwargs.pop("params", {}) or {}
|
|
660
662
|
|
|
661
663
|
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
|
664
|
+
content_type = content_type if body else None
|
|
662
665
|
cls: ClsType[_models.CdfClusterDto] = kwargs.pop("cls", None)
|
|
663
666
|
|
|
664
|
-
content_type = content_type or "application/json"
|
|
667
|
+
content_type = content_type or "application/json" if body else None
|
|
665
668
|
_json = None
|
|
666
669
|
_content = None
|
|
667
670
|
if isinstance(body, (IOBase, bytes)):
|
|
@@ -715,20 +718,20 @@ class CountriesOperations:
|
|
|
715
718
|
|
|
716
719
|
def __init__(self, *args, **kwargs) -> None:
|
|
717
720
|
input_args = list(args)
|
|
718
|
-
self._client = input_args.pop(0) if input_args else kwargs.pop("client")
|
|
719
|
-
self._config = input_args.pop(0) if input_args else kwargs.pop("config")
|
|
720
|
-
self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer")
|
|
721
|
-
self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer")
|
|
721
|
+
self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client")
|
|
722
|
+
self._config: IgnosInternalApiConfiguration = input_args.pop(0) if input_args else kwargs.pop("config")
|
|
723
|
+
self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer")
|
|
724
|
+
self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer")
|
|
722
725
|
|
|
723
726
|
@distributed_trace_async
|
|
724
|
-
async def list_countries(self, **kwargs: Any) ->
|
|
727
|
+
async def list_countries(self, **kwargs: Any) -> list[_models.CountryDto]:
|
|
725
728
|
"""list_countries.
|
|
726
729
|
|
|
727
730
|
:return: list of CountryDto
|
|
728
731
|
:rtype: list[~ignos.internal.api.client.models.CountryDto]
|
|
729
732
|
:raises ~azure.core.exceptions.HttpResponseError:
|
|
730
733
|
"""
|
|
731
|
-
error_map: MutableMapping
|
|
734
|
+
error_map: MutableMapping = {
|
|
732
735
|
401: ClientAuthenticationError,
|
|
733
736
|
404: ResourceNotFoundError,
|
|
734
737
|
409: ResourceExistsError,
|
|
@@ -739,7 +742,7 @@ class CountriesOperations:
|
|
|
739
742
|
_headers = kwargs.pop("headers", {}) or {}
|
|
740
743
|
_params = kwargs.pop("params", {}) or {}
|
|
741
744
|
|
|
742
|
-
cls: ClsType[
|
|
745
|
+
cls: ClsType[list[_models.CountryDto]] = kwargs.pop("cls", None)
|
|
743
746
|
|
|
744
747
|
_request = build_countries_list_countries_request(
|
|
745
748
|
headers=_headers,
|
|
@@ -780,13 +783,13 @@ class CustomersOperations:
|
|
|
780
783
|
|
|
781
784
|
def __init__(self, *args, **kwargs) -> None:
|
|
782
785
|
input_args = list(args)
|
|
783
|
-
self._client = input_args.pop(0) if input_args else kwargs.pop("client")
|
|
784
|
-
self._config = input_args.pop(0) if input_args else kwargs.pop("config")
|
|
785
|
-
self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer")
|
|
786
|
-
self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer")
|
|
786
|
+
self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client")
|
|
787
|
+
self._config: IgnosInternalApiConfiguration = input_args.pop(0) if input_args else kwargs.pop("config")
|
|
788
|
+
self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer")
|
|
789
|
+
self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer")
|
|
787
790
|
|
|
788
791
|
@distributed_trace_async
|
|
789
|
-
async def list_customers(self, **kwargs: Any) ->
|
|
792
|
+
async def list_customers(self, **kwargs: Any) -> list[_models.IgnosCustomerDto]:
|
|
790
793
|
"""Internal Ignos api for listing customers.
|
|
791
794
|
|
|
792
795
|
Internal Ignos api for listing customers.
|
|
@@ -795,7 +798,7 @@ class CustomersOperations:
|
|
|
795
798
|
:rtype: list[~ignos.internal.api.client.models.IgnosCustomerDto]
|
|
796
799
|
:raises ~azure.core.exceptions.HttpResponseError:
|
|
797
800
|
"""
|
|
798
|
-
error_map: MutableMapping
|
|
801
|
+
error_map: MutableMapping = {
|
|
799
802
|
401: ClientAuthenticationError,
|
|
800
803
|
404: ResourceNotFoundError,
|
|
801
804
|
409: ResourceExistsError,
|
|
@@ -806,7 +809,7 @@ class CustomersOperations:
|
|
|
806
809
|
_headers = kwargs.pop("headers", {}) or {}
|
|
807
810
|
_params = kwargs.pop("params", {}) or {}
|
|
808
811
|
|
|
809
|
-
cls: ClsType[
|
|
812
|
+
cls: ClsType[list[_models.IgnosCustomerDto]] = kwargs.pop("cls", None)
|
|
810
813
|
|
|
811
814
|
_request = build_customers_list_customers_request(
|
|
812
815
|
headers=_headers,
|
|
@@ -887,7 +890,7 @@ class CustomersOperations:
|
|
|
887
890
|
:rtype: ~ignos.internal.api.client.models.IgnosCustomerDto
|
|
888
891
|
:raises ~azure.core.exceptions.HttpResponseError:
|
|
889
892
|
"""
|
|
890
|
-
error_map: MutableMapping
|
|
893
|
+
error_map: MutableMapping = {
|
|
891
894
|
401: ClientAuthenticationError,
|
|
892
895
|
404: ResourceNotFoundError,
|
|
893
896
|
409: ResourceExistsError,
|
|
@@ -899,9 +902,10 @@ class CustomersOperations:
|
|
|
899
902
|
_params = kwargs.pop("params", {}) or {}
|
|
900
903
|
|
|
901
904
|
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
|
905
|
+
content_type = content_type if body else None
|
|
902
906
|
cls: ClsType[_models.IgnosCustomerDto] = kwargs.pop("cls", None)
|
|
903
907
|
|
|
904
|
-
content_type = content_type or "application/json"
|
|
908
|
+
content_type = content_type or "application/json" if body else None
|
|
905
909
|
_json = None
|
|
906
910
|
_content = None
|
|
907
911
|
if isinstance(body, (IOBase, bytes)):
|
|
@@ -951,7 +955,7 @@ class CustomersOperations:
|
|
|
951
955
|
:rtype: ~ignos.internal.api.client.models.IgnosCustomerDto
|
|
952
956
|
:raises ~azure.core.exceptions.HttpResponseError:
|
|
953
957
|
"""
|
|
954
|
-
error_map: MutableMapping
|
|
958
|
+
error_map: MutableMapping = {
|
|
955
959
|
401: ClientAuthenticationError,
|
|
956
960
|
404: ResourceNotFoundError,
|
|
957
961
|
409: ResourceExistsError,
|
|
@@ -1051,7 +1055,7 @@ class CustomersOperations:
|
|
|
1051
1055
|
:rtype: ~ignos.internal.api.client.models.IgnosCustomerDto
|
|
1052
1056
|
:raises ~azure.core.exceptions.HttpResponseError:
|
|
1053
1057
|
"""
|
|
1054
|
-
error_map: MutableMapping
|
|
1058
|
+
error_map: MutableMapping = {
|
|
1055
1059
|
401: ClientAuthenticationError,
|
|
1056
1060
|
404: ResourceNotFoundError,
|
|
1057
1061
|
409: ResourceExistsError,
|
|
@@ -1063,9 +1067,10 @@ class CustomersOperations:
|
|
|
1063
1067
|
_params = kwargs.pop("params", {}) or {}
|
|
1064
1068
|
|
|
1065
1069
|
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
|
1070
|
+
content_type = content_type if body else None
|
|
1066
1071
|
cls: ClsType[_models.IgnosCustomerDto] = kwargs.pop("cls", None)
|
|
1067
1072
|
|
|
1068
|
-
content_type = content_type or "application/json"
|
|
1073
|
+
content_type = content_type or "application/json" if body else None
|
|
1069
1074
|
_json = None
|
|
1070
1075
|
_content = None
|
|
1071
1076
|
if isinstance(body, (IOBase, bytes)):
|
|
@@ -1105,7 +1110,7 @@ class CustomersOperations:
|
|
|
1105
1110
|
return deserialized # type: ignore
|
|
1106
1111
|
|
|
1107
1112
|
@distributed_trace_async
|
|
1108
|
-
async def list_customer_tenants(self, id: str, **kwargs: Any) ->
|
|
1113
|
+
async def list_customer_tenants(self, id: str, **kwargs: Any) -> list[_models.TenantDto]:
|
|
1109
1114
|
"""Internal Ignos api for a customer's tenants.
|
|
1110
1115
|
|
|
1111
1116
|
Internal Ignos api for a customer's tenants.
|
|
@@ -1116,7 +1121,7 @@ class CustomersOperations:
|
|
|
1116
1121
|
:rtype: list[~ignos.internal.api.client.models.TenantDto]
|
|
1117
1122
|
:raises ~azure.core.exceptions.HttpResponseError:
|
|
1118
1123
|
"""
|
|
1119
|
-
error_map: MutableMapping
|
|
1124
|
+
error_map: MutableMapping = {
|
|
1120
1125
|
401: ClientAuthenticationError,
|
|
1121
1126
|
404: ResourceNotFoundError,
|
|
1122
1127
|
409: ResourceExistsError,
|
|
@@ -1127,7 +1132,7 @@ class CustomersOperations:
|
|
|
1127
1132
|
_headers = kwargs.pop("headers", {}) or {}
|
|
1128
1133
|
_params = kwargs.pop("params", {}) or {}
|
|
1129
1134
|
|
|
1130
|
-
cls: ClsType[
|
|
1135
|
+
cls: ClsType[list[_models.TenantDto]] = kwargs.pop("cls", None)
|
|
1131
1136
|
|
|
1132
1137
|
_request = build_customers_list_customer_tenants_request(
|
|
1133
1138
|
id=id,
|
|
@@ -1216,7 +1221,7 @@ class CustomersOperations:
|
|
|
1216
1221
|
:rtype: ~ignos.internal.api.client.models.TenantDto
|
|
1217
1222
|
:raises ~azure.core.exceptions.HttpResponseError:
|
|
1218
1223
|
"""
|
|
1219
|
-
error_map: MutableMapping
|
|
1224
|
+
error_map: MutableMapping = {
|
|
1220
1225
|
401: ClientAuthenticationError,
|
|
1221
1226
|
404: ResourceNotFoundError,
|
|
1222
1227
|
409: ResourceExistsError,
|
|
@@ -1228,9 +1233,10 @@ class CustomersOperations:
|
|
|
1228
1233
|
_params = kwargs.pop("params", {}) or {}
|
|
1229
1234
|
|
|
1230
1235
|
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
|
1236
|
+
content_type = content_type if body else None
|
|
1231
1237
|
cls: ClsType[_models.TenantDto] = kwargs.pop("cls", None)
|
|
1232
1238
|
|
|
1233
|
-
content_type = content_type or "application/json"
|
|
1239
|
+
content_type = content_type or "application/json" if body else None
|
|
1234
1240
|
_json = None
|
|
1235
1241
|
_content = None
|
|
1236
1242
|
if isinstance(body, (IOBase, bytes)):
|
|
@@ -1348,7 +1354,7 @@ class CustomersOperations:
|
|
|
1348
1354
|
:rtype: ~ignos.internal.api.client.models.TenantDto
|
|
1349
1355
|
:raises ~azure.core.exceptions.HttpResponseError:
|
|
1350
1356
|
"""
|
|
1351
|
-
error_map: MutableMapping
|
|
1357
|
+
error_map: MutableMapping = {
|
|
1352
1358
|
401: ClientAuthenticationError,
|
|
1353
1359
|
404: ResourceNotFoundError,
|
|
1354
1360
|
409: ResourceExistsError,
|
|
@@ -1360,9 +1366,10 @@ class CustomersOperations:
|
|
|
1360
1366
|
_params = kwargs.pop("params", {}) or {}
|
|
1361
1367
|
|
|
1362
1368
|
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
|
1369
|
+
content_type = content_type if body else None
|
|
1363
1370
|
cls: ClsType[_models.TenantDto] = kwargs.pop("cls", None)
|
|
1364
1371
|
|
|
1365
|
-
content_type = content_type or "application/json"
|
|
1372
|
+
content_type = content_type or "application/json" if body else None
|
|
1366
1373
|
_json = None
|
|
1367
1374
|
_content = None
|
|
1368
1375
|
if isinstance(body, (IOBase, bytes)):
|
|
@@ -1416,7 +1423,7 @@ class CustomersOperations:
|
|
|
1416
1423
|
:rtype: ~ignos.internal.api.client.models.CdfConfigDto
|
|
1417
1424
|
:raises ~azure.core.exceptions.HttpResponseError:
|
|
1418
1425
|
"""
|
|
1419
|
-
error_map: MutableMapping
|
|
1426
|
+
error_map: MutableMapping = {
|
|
1420
1427
|
401: ClientAuthenticationError,
|
|
1421
1428
|
404: ResourceNotFoundError,
|
|
1422
1429
|
409: ResourceExistsError,
|
|
@@ -1535,7 +1542,7 @@ class CustomersOperations:
|
|
|
1535
1542
|
:rtype: ~ignos.internal.api.client.models.CdfConfigDto
|
|
1536
1543
|
:raises ~azure.core.exceptions.HttpResponseError:
|
|
1537
1544
|
"""
|
|
1538
|
-
error_map: MutableMapping
|
|
1545
|
+
error_map: MutableMapping = {
|
|
1539
1546
|
401: ClientAuthenticationError,
|
|
1540
1547
|
404: ResourceNotFoundError,
|
|
1541
1548
|
409: ResourceExistsError,
|
|
@@ -1547,9 +1554,10 @@ class CustomersOperations:
|
|
|
1547
1554
|
_params = kwargs.pop("params", {}) or {}
|
|
1548
1555
|
|
|
1549
1556
|
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
|
1557
|
+
content_type = content_type if body else None
|
|
1550
1558
|
cls: ClsType[_models.CdfConfigDto] = kwargs.pop("cls", None)
|
|
1551
1559
|
|
|
1552
|
-
content_type = content_type or "application/json"
|
|
1560
|
+
content_type = content_type or "application/json" if body else None
|
|
1553
1561
|
_json = None
|
|
1554
1562
|
_content = None
|
|
1555
1563
|
if isinstance(body, (IOBase, bytes)):
|
|
@@ -1590,7 +1598,7 @@ class CustomersOperations:
|
|
|
1590
1598
|
return deserialized # type: ignore
|
|
1591
1599
|
|
|
1592
1600
|
@distributed_trace_async
|
|
1593
|
-
async def list_customer_apps(self, id: str, **kwargs: Any) ->
|
|
1601
|
+
async def list_customer_apps(self, id: str, **kwargs: Any) -> list[_models.CustomerAppDto]:
|
|
1594
1602
|
"""Internal Ignos api for listing customer apps.
|
|
1595
1603
|
|
|
1596
1604
|
Internal Ignos api for listing customer apps.
|
|
@@ -1601,7 +1609,7 @@ class CustomersOperations:
|
|
|
1601
1609
|
:rtype: list[~ignos.internal.api.client.models.CustomerAppDto]
|
|
1602
1610
|
:raises ~azure.core.exceptions.HttpResponseError:
|
|
1603
1611
|
"""
|
|
1604
|
-
error_map: MutableMapping
|
|
1612
|
+
error_map: MutableMapping = {
|
|
1605
1613
|
401: ClientAuthenticationError,
|
|
1606
1614
|
404: ResourceNotFoundError,
|
|
1607
1615
|
409: ResourceExistsError,
|
|
@@ -1612,7 +1620,7 @@ class CustomersOperations:
|
|
|
1612
1620
|
_headers = kwargs.pop("headers", {}) or {}
|
|
1613
1621
|
_params = kwargs.pop("params", {}) or {}
|
|
1614
1622
|
|
|
1615
|
-
cls: ClsType[
|
|
1623
|
+
cls: ClsType[list[_models.CustomerAppDto]] = kwargs.pop("cls", None)
|
|
1616
1624
|
|
|
1617
1625
|
_request = build_customers_list_customer_apps_request(
|
|
1618
1626
|
id=id,
|
|
@@ -1640,9 +1648,7 @@ class CustomersOperations:
|
|
|
1640
1648
|
return deserialized # type: ignore
|
|
1641
1649
|
|
|
1642
1650
|
@distributed_trace_async
|
|
1643
|
-
async def add_customer_app(
|
|
1644
|
-
self, id: str, app_id: str, **kwargs: Any
|
|
1645
|
-
) -> None:
|
|
1651
|
+
async def add_customer_app(self, id: str, app_id: str, **kwargs: Any) -> None:
|
|
1646
1652
|
"""Internal Ignos api for adding an app to a customer.
|
|
1647
1653
|
|
|
1648
1654
|
Internal Ignos api for adding an app to a customer.
|
|
@@ -1655,7 +1661,7 @@ class CustomersOperations:
|
|
|
1655
1661
|
:rtype: None
|
|
1656
1662
|
:raises ~azure.core.exceptions.HttpResponseError:
|
|
1657
1663
|
"""
|
|
1658
|
-
error_map: MutableMapping
|
|
1664
|
+
error_map: MutableMapping = {
|
|
1659
1665
|
401: ClientAuthenticationError,
|
|
1660
1666
|
404: ResourceNotFoundError,
|
|
1661
1667
|
409: ResourceExistsError,
|
|
@@ -1691,9 +1697,7 @@ class CustomersOperations:
|
|
|
1691
1697
|
return cls(pipeline_response, None, {}) # type: ignore
|
|
1692
1698
|
|
|
1693
1699
|
@distributed_trace_async
|
|
1694
|
-
async def remove_customer_app(
|
|
1695
|
-
self, id: str, app_id: str, **kwargs: Any
|
|
1696
|
-
) -> None:
|
|
1700
|
+
async def remove_customer_app(self, id: str, app_id: str, **kwargs: Any) -> None:
|
|
1697
1701
|
"""Internal Ignos api for removing an app from a customer.
|
|
1698
1702
|
|
|
1699
1703
|
Internal Ignos api for removing an app from a customer.
|
|
@@ -1706,7 +1710,7 @@ class CustomersOperations:
|
|
|
1706
1710
|
:rtype: None
|
|
1707
1711
|
:raises ~azure.core.exceptions.HttpResponseError:
|
|
1708
1712
|
"""
|
|
1709
|
-
error_map: MutableMapping
|
|
1713
|
+
error_map: MutableMapping = {
|
|
1710
1714
|
401: ClientAuthenticationError,
|
|
1711
1715
|
404: ResourceNotFoundError,
|
|
1712
1716
|
409: ResourceExistsError,
|
|
@@ -1742,14 +1746,14 @@ class CustomersOperations:
|
|
|
1742
1746
|
return cls(pipeline_response, None, {}) # type: ignore
|
|
1743
1747
|
|
|
1744
1748
|
@distributed_trace_async
|
|
1745
|
-
async def list_tenant_keys(self, **kwargs: Any) ->
|
|
1749
|
+
async def list_tenant_keys(self, **kwargs: Any) -> list[_models.TenantKeyDto]:
|
|
1746
1750
|
"""list_tenant_keys.
|
|
1747
1751
|
|
|
1748
1752
|
:return: list of TenantKeyDto
|
|
1749
1753
|
:rtype: list[~ignos.internal.api.client.models.TenantKeyDto]
|
|
1750
1754
|
:raises ~azure.core.exceptions.HttpResponseError:
|
|
1751
1755
|
"""
|
|
1752
|
-
error_map: MutableMapping
|
|
1756
|
+
error_map: MutableMapping = {
|
|
1753
1757
|
401: ClientAuthenticationError,
|
|
1754
1758
|
404: ResourceNotFoundError,
|
|
1755
1759
|
409: ResourceExistsError,
|
|
@@ -1760,7 +1764,7 @@ class CustomersOperations:
|
|
|
1760
1764
|
_headers = kwargs.pop("headers", {}) or {}
|
|
1761
1765
|
_params = kwargs.pop("params", {}) or {}
|
|
1762
1766
|
|
|
1763
|
-
cls: ClsType[
|
|
1767
|
+
cls: ClsType[list[_models.TenantKeyDto]] = kwargs.pop("cls", None)
|
|
1764
1768
|
|
|
1765
1769
|
_request = build_customers_list_tenant_keys_request(
|
|
1766
1770
|
headers=_headers,
|
|
@@ -1787,14 +1791,14 @@ class CustomersOperations:
|
|
|
1787
1791
|
return deserialized # type: ignore
|
|
1788
1792
|
|
|
1789
1793
|
@distributed_trace_async
|
|
1790
|
-
async def update_tenants(self, **kwargs: Any) -> None:
|
|
1794
|
+
async def update_tenants(self, **kwargs: Any) -> None:
|
|
1791
1795
|
"""update_tenants.
|
|
1792
1796
|
|
|
1793
1797
|
:return: None
|
|
1794
1798
|
:rtype: None
|
|
1795
1799
|
:raises ~azure.core.exceptions.HttpResponseError:
|
|
1796
1800
|
"""
|
|
1797
|
-
error_map: MutableMapping
|
|
1801
|
+
error_map: MutableMapping = {
|
|
1798
1802
|
401: ClientAuthenticationError,
|
|
1799
1803
|
404: ResourceNotFoundError,
|
|
1800
1804
|
409: ResourceExistsError,
|
|
@@ -1842,20 +1846,20 @@ class DatabasesOperations:
|
|
|
1842
1846
|
|
|
1843
1847
|
def __init__(self, *args, **kwargs) -> None:
|
|
1844
1848
|
input_args = list(args)
|
|
1845
|
-
self._client = input_args.pop(0) if input_args else kwargs.pop("client")
|
|
1846
|
-
self._config = input_args.pop(0) if input_args else kwargs.pop("config")
|
|
1847
|
-
self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer")
|
|
1848
|
-
self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer")
|
|
1849
|
+
self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client")
|
|
1850
|
+
self._config: IgnosInternalApiConfiguration = input_args.pop(0) if input_args else kwargs.pop("config")
|
|
1851
|
+
self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer")
|
|
1852
|
+
self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer")
|
|
1849
1853
|
|
|
1850
1854
|
@distributed_trace_async
|
|
1851
|
-
async def update_databases(self, **kwargs: Any) -> None:
|
|
1855
|
+
async def update_databases(self, **kwargs: Any) -> None:
|
|
1852
1856
|
"""update_databases.
|
|
1853
1857
|
|
|
1854
1858
|
:return: None
|
|
1855
1859
|
:rtype: None
|
|
1856
1860
|
:raises ~azure.core.exceptions.HttpResponseError:
|
|
1857
1861
|
"""
|
|
1858
|
-
error_map: MutableMapping
|
|
1862
|
+
error_map: MutableMapping = {
|
|
1859
1863
|
401: ClientAuthenticationError,
|
|
1860
1864
|
404: ResourceNotFoundError,
|
|
1861
1865
|
409: ResourceExistsError,
|
|
@@ -1903,13 +1907,13 @@ class ErpSyncOperations:
|
|
|
1903
1907
|
|
|
1904
1908
|
def __init__(self, *args, **kwargs) -> None:
|
|
1905
1909
|
input_args = list(args)
|
|
1906
|
-
self._client = input_args.pop(0) if input_args else kwargs.pop("client")
|
|
1907
|
-
self._config = input_args.pop(0) if input_args else kwargs.pop("config")
|
|
1908
|
-
self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer")
|
|
1909
|
-
self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer")
|
|
1910
|
+
self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client")
|
|
1911
|
+
self._config: IgnosInternalApiConfiguration = input_args.pop(0) if input_args else kwargs.pop("config")
|
|
1912
|
+
self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer")
|
|
1913
|
+
self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer")
|
|
1910
1914
|
|
|
1911
1915
|
@distributed_trace_async
|
|
1912
|
-
async def list_erp_sync_errors(self, tenant_id: str, **kwargs: Any) ->
|
|
1916
|
+
async def list_erp_sync_errors(self, tenant_id: str, **kwargs: Any) -> list[_models.ErpSyncErrorDto]:
|
|
1913
1917
|
"""list_erp_sync_errors.
|
|
1914
1918
|
|
|
1915
1919
|
:param tenant_id: Required.
|
|
@@ -1918,7 +1922,7 @@ class ErpSyncOperations:
|
|
|
1918
1922
|
:rtype: list[~ignos.internal.api.client.models.ErpSyncErrorDto]
|
|
1919
1923
|
:raises ~azure.core.exceptions.HttpResponseError:
|
|
1920
1924
|
"""
|
|
1921
|
-
error_map: MutableMapping
|
|
1925
|
+
error_map: MutableMapping = {
|
|
1922
1926
|
401: ClientAuthenticationError,
|
|
1923
1927
|
404: ResourceNotFoundError,
|
|
1924
1928
|
409: ResourceExistsError,
|
|
@@ -1929,7 +1933,7 @@ class ErpSyncOperations:
|
|
|
1929
1933
|
_headers = kwargs.pop("headers", {}) or {}
|
|
1930
1934
|
_params = kwargs.pop("params", {}) or {}
|
|
1931
1935
|
|
|
1932
|
-
cls: ClsType[
|
|
1936
|
+
cls: ClsType[list[_models.ErpSyncErrorDto]] = kwargs.pop("cls", None)
|
|
1933
1937
|
|
|
1934
1938
|
_request = build_erp_sync_list_erp_sync_errors_request(
|
|
1935
1939
|
tenant_id=tenant_id,
|
|
@@ -1968,7 +1972,7 @@ class ErpSyncOperations:
|
|
|
1968
1972
|
:rtype: ~ignos.internal.api.client.models.ErpSyncErrorMessage
|
|
1969
1973
|
:raises ~azure.core.exceptions.HttpResponseError:
|
|
1970
1974
|
"""
|
|
1971
|
-
error_map: MutableMapping
|
|
1975
|
+
error_map: MutableMapping = {
|
|
1972
1976
|
401: ClientAuthenticationError,
|
|
1973
1977
|
404: ResourceNotFoundError,
|
|
1974
1978
|
409: ResourceExistsError,
|
|
@@ -2008,9 +2012,7 @@ class ErpSyncOperations:
|
|
|
2008
2012
|
return deserialized # type: ignore
|
|
2009
2013
|
|
|
2010
2014
|
@distributed_trace_async
|
|
2011
|
-
async def delete_erp_sync_error(
|
|
2012
|
-
self, tenant_id: str, partition_key: str, row_key: str, **kwargs: Any
|
|
2013
|
-
) -> None:
|
|
2015
|
+
async def delete_erp_sync_error(self, tenant_id: str, partition_key: str, row_key: str, **kwargs: Any) -> None:
|
|
2014
2016
|
"""delete_erp_sync_error.
|
|
2015
2017
|
|
|
2016
2018
|
:param tenant_id: Required.
|
|
@@ -2023,7 +2025,7 @@ class ErpSyncOperations:
|
|
|
2023
2025
|
:rtype: None
|
|
2024
2026
|
:raises ~azure.core.exceptions.HttpResponseError:
|
|
2025
2027
|
"""
|
|
2026
|
-
error_map: MutableMapping
|
|
2028
|
+
error_map: MutableMapping = {
|
|
2027
2029
|
401: ClientAuthenticationError,
|
|
2028
2030
|
404: ResourceNotFoundError,
|
|
2029
2031
|
409: ResourceExistsError,
|
|
@@ -2115,7 +2117,7 @@ class ErpSyncOperations:
|
|
|
2115
2117
|
:rtype: ~ignos.internal.api.client.models.DataSyncOrchestrationTriggerResponse
|
|
2116
2118
|
:raises ~azure.core.exceptions.HttpResponseError:
|
|
2117
2119
|
"""
|
|
2118
|
-
error_map: MutableMapping
|
|
2120
|
+
error_map: MutableMapping = {
|
|
2119
2121
|
401: ClientAuthenticationError,
|
|
2120
2122
|
404: ResourceNotFoundError,
|
|
2121
2123
|
409: ResourceExistsError,
|
|
@@ -2127,9 +2129,10 @@ class ErpSyncOperations:
|
|
|
2127
2129
|
_params = kwargs.pop("params", {}) or {}
|
|
2128
2130
|
|
|
2129
2131
|
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
|
2132
|
+
content_type = content_type if body else None
|
|
2130
2133
|
cls: ClsType[_models.DataSyncOrchestrationTriggerResponse] = kwargs.pop("cls", None)
|
|
2131
2134
|
|
|
2132
|
-
content_type = content_type or "application/json"
|
|
2135
|
+
content_type = content_type or "application/json" if body else None
|
|
2133
2136
|
_json = None
|
|
2134
2137
|
_content = None
|
|
2135
2138
|
if isinstance(body, (IOBase, bytes)):
|
|
@@ -2169,7 +2172,7 @@ class ErpSyncOperations:
|
|
|
2169
2172
|
return deserialized # type: ignore
|
|
2170
2173
|
|
|
2171
2174
|
@overload
|
|
2172
|
-
async def sync_single_work_order(
|
|
2175
|
+
async def sync_single_work_order(
|
|
2173
2176
|
self,
|
|
2174
2177
|
tenant_id: str,
|
|
2175
2178
|
body: Optional[_models.SyncSingleWorkOrder] = None,
|
|
@@ -2192,7 +2195,7 @@ class ErpSyncOperations:
|
|
|
2192
2195
|
"""
|
|
2193
2196
|
|
|
2194
2197
|
@overload
|
|
2195
|
-
async def sync_single_work_order(
|
|
2198
|
+
async def sync_single_work_order(
|
|
2196
2199
|
self, tenant_id: str, body: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any
|
|
2197
2200
|
) -> None:
|
|
2198
2201
|
"""sync_single_work_order.
|
|
@@ -2211,7 +2214,7 @@ class ErpSyncOperations:
|
|
|
2211
2214
|
"""
|
|
2212
2215
|
|
|
2213
2216
|
@distributed_trace_async
|
|
2214
|
-
async def sync_single_work_order(
|
|
2217
|
+
async def sync_single_work_order(
|
|
2215
2218
|
self, tenant_id: str, body: Optional[Union[_models.SyncSingleWorkOrder, IO[bytes]]] = None, **kwargs: Any
|
|
2216
2219
|
) -> None:
|
|
2217
2220
|
"""sync_single_work_order.
|
|
@@ -2224,7 +2227,7 @@ class ErpSyncOperations:
|
|
|
2224
2227
|
:rtype: None
|
|
2225
2228
|
:raises ~azure.core.exceptions.HttpResponseError:
|
|
2226
2229
|
"""
|
|
2227
|
-
error_map: MutableMapping
|
|
2230
|
+
error_map: MutableMapping = {
|
|
2228
2231
|
401: ClientAuthenticationError,
|
|
2229
2232
|
404: ResourceNotFoundError,
|
|
2230
2233
|
409: ResourceExistsError,
|
|
@@ -2236,9 +2239,10 @@ class ErpSyncOperations:
|
|
|
2236
2239
|
_params = kwargs.pop("params", {}) or {}
|
|
2237
2240
|
|
|
2238
2241
|
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
|
2242
|
+
content_type = content_type if body else None
|
|
2239
2243
|
cls: ClsType[None] = kwargs.pop("cls", None)
|
|
2240
2244
|
|
|
2241
|
-
content_type = content_type or "application/json"
|
|
2245
|
+
content_type = content_type or "application/json" if body else None
|
|
2242
2246
|
_json = None
|
|
2243
2247
|
_content = None
|
|
2244
2248
|
if isinstance(body, (IOBase, bytes)):
|
|
@@ -2282,7 +2286,7 @@ class ErpSyncOperations:
|
|
|
2282
2286
|
created_to_time: Optional[datetime.datetime] = None,
|
|
2283
2287
|
runtime_status: Optional[str] = None,
|
|
2284
2288
|
**kwargs: Any
|
|
2285
|
-
) ->
|
|
2289
|
+
) -> list[_models.DataSyncOrchestrationInstance]:
|
|
2286
2290
|
"""list_full_sync_instances.
|
|
2287
2291
|
|
|
2288
2292
|
:param tenant_id: Required.
|
|
@@ -2297,7 +2301,7 @@ class ErpSyncOperations:
|
|
|
2297
2301
|
:rtype: list[~ignos.internal.api.client.models.DataSyncOrchestrationInstance]
|
|
2298
2302
|
:raises ~azure.core.exceptions.HttpResponseError:
|
|
2299
2303
|
"""
|
|
2300
|
-
error_map: MutableMapping
|
|
2304
|
+
error_map: MutableMapping = {
|
|
2301
2305
|
401: ClientAuthenticationError,
|
|
2302
2306
|
404: ResourceNotFoundError,
|
|
2303
2307
|
409: ResourceExistsError,
|
|
@@ -2308,7 +2312,7 @@ class ErpSyncOperations:
|
|
|
2308
2312
|
_headers = kwargs.pop("headers", {}) or {}
|
|
2309
2313
|
_params = kwargs.pop("params", {}) or {}
|
|
2310
2314
|
|
|
2311
|
-
cls: ClsType[
|
|
2315
|
+
cls: ClsType[list[_models.DataSyncOrchestrationInstance]] = kwargs.pop("cls", None)
|
|
2312
2316
|
|
|
2313
2317
|
_request = build_erp_sync_list_full_sync_instances_request(
|
|
2314
2318
|
tenant_id=tenant_id,
|
|
@@ -2339,7 +2343,7 @@ class ErpSyncOperations:
|
|
|
2339
2343
|
return deserialized # type: ignore
|
|
2340
2344
|
|
|
2341
2345
|
@overload
|
|
2342
|
-
async def terminate_full_sync_instance(
|
|
2346
|
+
async def terminate_full_sync_instance(
|
|
2343
2347
|
self,
|
|
2344
2348
|
tenant_id: str,
|
|
2345
2349
|
body: Optional[_models.TerminateInstance] = None,
|
|
@@ -2362,7 +2366,7 @@ class ErpSyncOperations:
|
|
|
2362
2366
|
"""
|
|
2363
2367
|
|
|
2364
2368
|
@overload
|
|
2365
|
-
async def terminate_full_sync_instance(
|
|
2369
|
+
async def terminate_full_sync_instance(
|
|
2366
2370
|
self, tenant_id: str, body: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any
|
|
2367
2371
|
) -> None:
|
|
2368
2372
|
"""terminate_full_sync_instance.
|
|
@@ -2381,7 +2385,7 @@ class ErpSyncOperations:
|
|
|
2381
2385
|
"""
|
|
2382
2386
|
|
|
2383
2387
|
@distributed_trace_async
|
|
2384
|
-
async def terminate_full_sync_instance(
|
|
2388
|
+
async def terminate_full_sync_instance(
|
|
2385
2389
|
self, tenant_id: str, body: Optional[Union[_models.TerminateInstance, IO[bytes]]] = None, **kwargs: Any
|
|
2386
2390
|
) -> None:
|
|
2387
2391
|
"""terminate_full_sync_instance.
|
|
@@ -2394,7 +2398,7 @@ class ErpSyncOperations:
|
|
|
2394
2398
|
:rtype: None
|
|
2395
2399
|
:raises ~azure.core.exceptions.HttpResponseError:
|
|
2396
2400
|
"""
|
|
2397
|
-
error_map: MutableMapping
|
|
2401
|
+
error_map: MutableMapping = {
|
|
2398
2402
|
401: ClientAuthenticationError,
|
|
2399
2403
|
404: ResourceNotFoundError,
|
|
2400
2404
|
409: ResourceExistsError,
|
|
@@ -2406,9 +2410,10 @@ class ErpSyncOperations:
|
|
|
2406
2410
|
_params = kwargs.pop("params", {}) or {}
|
|
2407
2411
|
|
|
2408
2412
|
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
|
2413
|
+
content_type = content_type if body else None
|
|
2409
2414
|
cls: ClsType[None] = kwargs.pop("cls", None)
|
|
2410
2415
|
|
|
2411
|
-
content_type = content_type or "application/json"
|
|
2416
|
+
content_type = content_type or "application/json" if body else None
|
|
2412
2417
|
_json = None
|
|
2413
2418
|
_content = None
|
|
2414
2419
|
if isinstance(body, (IOBase, bytes)):
|
|
@@ -2444,7 +2449,7 @@ class ErpSyncOperations:
|
|
|
2444
2449
|
return cls(pipeline_response, None, {}) # type: ignore
|
|
2445
2450
|
|
|
2446
2451
|
@overload
|
|
2447
|
-
async def rewind_full_sync_instance(
|
|
2452
|
+
async def rewind_full_sync_instance(
|
|
2448
2453
|
self,
|
|
2449
2454
|
tenant_id: str,
|
|
2450
2455
|
body: Optional[_models.RewindInstance] = None,
|
|
@@ -2467,7 +2472,7 @@ class ErpSyncOperations:
|
|
|
2467
2472
|
"""
|
|
2468
2473
|
|
|
2469
2474
|
@overload
|
|
2470
|
-
async def rewind_full_sync_instance(
|
|
2475
|
+
async def rewind_full_sync_instance(
|
|
2471
2476
|
self, tenant_id: str, body: Optional[IO[bytes]] = None, *, content_type: str = "application/json", **kwargs: Any
|
|
2472
2477
|
) -> None:
|
|
2473
2478
|
"""rewind_full_sync_instance.
|
|
@@ -2486,7 +2491,7 @@ class ErpSyncOperations:
|
|
|
2486
2491
|
"""
|
|
2487
2492
|
|
|
2488
2493
|
@distributed_trace_async
|
|
2489
|
-
async def rewind_full_sync_instance(
|
|
2494
|
+
async def rewind_full_sync_instance(
|
|
2490
2495
|
self, tenant_id: str, body: Optional[Union[_models.RewindInstance, IO[bytes]]] = None, **kwargs: Any
|
|
2491
2496
|
) -> None:
|
|
2492
2497
|
"""rewind_full_sync_instance.
|
|
@@ -2499,7 +2504,7 @@ class ErpSyncOperations:
|
|
|
2499
2504
|
:rtype: None
|
|
2500
2505
|
:raises ~azure.core.exceptions.HttpResponseError:
|
|
2501
2506
|
"""
|
|
2502
|
-
error_map: MutableMapping
|
|
2507
|
+
error_map: MutableMapping = {
|
|
2503
2508
|
401: ClientAuthenticationError,
|
|
2504
2509
|
404: ResourceNotFoundError,
|
|
2505
2510
|
409: ResourceExistsError,
|
|
@@ -2511,9 +2516,10 @@ class ErpSyncOperations:
|
|
|
2511
2516
|
_params = kwargs.pop("params", {}) or {}
|
|
2512
2517
|
|
|
2513
2518
|
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
|
2519
|
+
content_type = content_type if body else None
|
|
2514
2520
|
cls: ClsType[None] = kwargs.pop("cls", None)
|
|
2515
2521
|
|
|
2516
|
-
content_type = content_type or "application/json"
|
|
2522
|
+
content_type = content_type or "application/json" if body else None
|
|
2517
2523
|
_json = None
|
|
2518
2524
|
_content = None
|
|
2519
2525
|
if isinstance(body, (IOBase, bytes)):
|
|
@@ -2563,15 +2569,15 @@ class PowerOperations:
|
|
|
2563
2569
|
|
|
2564
2570
|
def __init__(self, *args, **kwargs) -> None:
|
|
2565
2571
|
input_args = list(args)
|
|
2566
|
-
self._client = input_args.pop(0) if input_args else kwargs.pop("client")
|
|
2567
|
-
self._config = input_args.pop(0) if input_args else kwargs.pop("config")
|
|
2568
|
-
self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer")
|
|
2569
|
-
self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer")
|
|
2572
|
+
self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client")
|
|
2573
|
+
self._config: IgnosInternalApiConfiguration = input_args.pop(0) if input_args else kwargs.pop("config")
|
|
2574
|
+
self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer")
|
|
2575
|
+
self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer")
|
|
2570
2576
|
|
|
2571
2577
|
@distributed_trace_async
|
|
2572
2578
|
async def list_power_regions_by_country(
|
|
2573
2579
|
self, *, country: Optional[str] = None, **kwargs: Any
|
|
2574
|
-
) ->
|
|
2580
|
+
) -> list[_models.PowerRegionDto]:
|
|
2575
2581
|
"""list_power_regions_by_country.
|
|
2576
2582
|
|
|
2577
2583
|
:keyword country: Default value is None.
|
|
@@ -2580,7 +2586,7 @@ class PowerOperations:
|
|
|
2580
2586
|
:rtype: list[~ignos.internal.api.client.models.PowerRegionDto]
|
|
2581
2587
|
:raises ~azure.core.exceptions.HttpResponseError:
|
|
2582
2588
|
"""
|
|
2583
|
-
error_map: MutableMapping
|
|
2589
|
+
error_map: MutableMapping = {
|
|
2584
2590
|
401: ClientAuthenticationError,
|
|
2585
2591
|
404: ResourceNotFoundError,
|
|
2586
2592
|
409: ResourceExistsError,
|
|
@@ -2591,7 +2597,7 @@ class PowerOperations:
|
|
|
2591
2597
|
_headers = kwargs.pop("headers", {}) or {}
|
|
2592
2598
|
_params = kwargs.pop("params", {}) or {}
|
|
2593
2599
|
|
|
2594
|
-
cls: ClsType[
|
|
2600
|
+
cls: ClsType[list[_models.PowerRegionDto]] = kwargs.pop("cls", None)
|
|
2595
2601
|
|
|
2596
2602
|
_request = build_power_list_power_regions_by_country_request(
|
|
2597
2603
|
country=country,
|
|
@@ -2663,7 +2669,7 @@ class PowerOperations:
|
|
|
2663
2669
|
:rtype: ~ignos.internal.api.client.models.PowerRegionDto
|
|
2664
2670
|
:raises ~azure.core.exceptions.HttpResponseError:
|
|
2665
2671
|
"""
|
|
2666
|
-
error_map: MutableMapping
|
|
2672
|
+
error_map: MutableMapping = {
|
|
2667
2673
|
401: ClientAuthenticationError,
|
|
2668
2674
|
404: ResourceNotFoundError,
|
|
2669
2675
|
409: ResourceExistsError,
|
|
@@ -2675,9 +2681,10 @@ class PowerOperations:
|
|
|
2675
2681
|
_params = kwargs.pop("params", {}) or {}
|
|
2676
2682
|
|
|
2677
2683
|
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
|
2684
|
+
content_type = content_type if body else None
|
|
2678
2685
|
cls: ClsType[_models.PowerRegionDto] = kwargs.pop("cls", None)
|
|
2679
2686
|
|
|
2680
|
-
content_type = content_type or "application/json"
|
|
2687
|
+
content_type = content_type or "application/json" if body else None
|
|
2681
2688
|
_json = None
|
|
2682
2689
|
_content = None
|
|
2683
2690
|
if isinstance(body, (IOBase, bytes)):
|
|
@@ -2730,13 +2737,13 @@ class PresentationOperations:
|
|
|
2730
2737
|
|
|
2731
2738
|
def __init__(self, *args, **kwargs) -> None:
|
|
2732
2739
|
input_args = list(args)
|
|
2733
|
-
self._client = input_args.pop(0) if input_args else kwargs.pop("client")
|
|
2734
|
-
self._config = input_args.pop(0) if input_args else kwargs.pop("config")
|
|
2735
|
-
self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer")
|
|
2736
|
-
self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer")
|
|
2740
|
+
self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client")
|
|
2741
|
+
self._config: IgnosInternalApiConfiguration = input_args.pop(0) if input_args else kwargs.pop("config")
|
|
2742
|
+
self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer")
|
|
2743
|
+
self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer")
|
|
2737
2744
|
|
|
2738
2745
|
@distributed_trace_async
|
|
2739
|
-
async def delete_component_settings(
|
|
2746
|
+
async def delete_component_settings(
|
|
2740
2747
|
self, azure_ad_tenant_id: str, tenant_id: str, component_id: str, **kwargs: Any
|
|
2741
2748
|
) -> None:
|
|
2742
2749
|
"""delete_component_settings.
|
|
@@ -2751,7 +2758,7 @@ class PresentationOperations:
|
|
|
2751
2758
|
:rtype: None
|
|
2752
2759
|
:raises ~azure.core.exceptions.HttpResponseError:
|
|
2753
2760
|
"""
|
|
2754
|
-
error_map: MutableMapping
|
|
2761
|
+
error_map: MutableMapping = {
|
|
2755
2762
|
401: ClientAuthenticationError,
|
|
2756
2763
|
404: ResourceNotFoundError,
|
|
2757
2764
|
409: ResourceExistsError,
|
|
@@ -2870,7 +2877,7 @@ class PresentationOperations:
|
|
|
2870
2877
|
:rtype: ~ignos.internal.api.client.models.ComponentSettingsDto
|
|
2871
2878
|
:raises ~azure.core.exceptions.HttpResponseError:
|
|
2872
2879
|
"""
|
|
2873
|
-
error_map: MutableMapping
|
|
2880
|
+
error_map: MutableMapping = {
|
|
2874
2881
|
401: ClientAuthenticationError,
|
|
2875
2882
|
404: ResourceNotFoundError,
|
|
2876
2883
|
409: ResourceExistsError,
|
|
@@ -2882,9 +2889,10 @@ class PresentationOperations:
|
|
|
2882
2889
|
_params = kwargs.pop("params", {}) or {}
|
|
2883
2890
|
|
|
2884
2891
|
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
|
2892
|
+
content_type = content_type if body else None
|
|
2885
2893
|
cls: ClsType[_models.ComponentSettingsDto] = kwargs.pop("cls", None)
|
|
2886
2894
|
|
|
2887
|
-
content_type = content_type or "application/json"
|
|
2895
|
+
content_type = content_type or "application/json" if body else None
|
|
2888
2896
|
_json = None
|
|
2889
2897
|
_content = None
|
|
2890
2898
|
if isinstance(body, (IOBase, bytes)):
|
|
@@ -2940,13 +2948,13 @@ class SustainabilitySetupOperations:
|
|
|
2940
2948
|
|
|
2941
2949
|
def __init__(self, *args, **kwargs) -> None:
|
|
2942
2950
|
input_args = list(args)
|
|
2943
|
-
self._client = input_args.pop(0) if input_args else kwargs.pop("client")
|
|
2944
|
-
self._config = input_args.pop(0) if input_args else kwargs.pop("config")
|
|
2945
|
-
self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer")
|
|
2946
|
-
self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer")
|
|
2951
|
+
self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client")
|
|
2952
|
+
self._config: IgnosInternalApiConfiguration = input_args.pop(0) if input_args else kwargs.pop("config")
|
|
2953
|
+
self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer")
|
|
2954
|
+
self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer")
|
|
2947
2955
|
|
|
2948
2956
|
@overload
|
|
2949
|
-
async def init_ferro_amp(
|
|
2957
|
+
async def init_ferro_amp(
|
|
2950
2958
|
self,
|
|
2951
2959
|
azure_ad_tenant_id: str,
|
|
2952
2960
|
tenant_id: str,
|
|
@@ -2972,7 +2980,7 @@ class SustainabilitySetupOperations:
|
|
|
2972
2980
|
"""
|
|
2973
2981
|
|
|
2974
2982
|
@overload
|
|
2975
|
-
async def init_ferro_amp(
|
|
2983
|
+
async def init_ferro_amp(
|
|
2976
2984
|
self,
|
|
2977
2985
|
azure_ad_tenant_id: str,
|
|
2978
2986
|
tenant_id: str,
|
|
@@ -2999,7 +3007,7 @@ class SustainabilitySetupOperations:
|
|
|
2999
3007
|
"""
|
|
3000
3008
|
|
|
3001
3009
|
@distributed_trace_async
|
|
3002
|
-
async def init_ferro_amp(
|
|
3010
|
+
async def init_ferro_amp(
|
|
3003
3011
|
self,
|
|
3004
3012
|
azure_ad_tenant_id: str,
|
|
3005
3013
|
tenant_id: str,
|
|
@@ -3018,7 +3026,7 @@ class SustainabilitySetupOperations:
|
|
|
3018
3026
|
:rtype: None
|
|
3019
3027
|
:raises ~azure.core.exceptions.HttpResponseError:
|
|
3020
3028
|
"""
|
|
3021
|
-
error_map: MutableMapping
|
|
3029
|
+
error_map: MutableMapping = {
|
|
3022
3030
|
401: ClientAuthenticationError,
|
|
3023
3031
|
404: ResourceNotFoundError,
|
|
3024
3032
|
409: ResourceExistsError,
|
|
@@ -3030,9 +3038,10 @@ class SustainabilitySetupOperations:
|
|
|
3030
3038
|
_params = kwargs.pop("params", {}) or {}
|
|
3031
3039
|
|
|
3032
3040
|
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
|
3041
|
+
content_type = content_type if body else None
|
|
3033
3042
|
cls: ClsType[None] = kwargs.pop("cls", None)
|
|
3034
3043
|
|
|
3035
|
-
content_type = content_type or "application/json"
|
|
3044
|
+
content_type = content_type or "application/json" if body else None
|
|
3036
3045
|
_json = None
|
|
3037
3046
|
_content = None
|
|
3038
3047
|
if isinstance(body, (IOBase, bytes)):
|
|
@@ -3069,7 +3078,7 @@ class SustainabilitySetupOperations:
|
|
|
3069
3078
|
return cls(pipeline_response, None, {}) # type: ignore
|
|
3070
3079
|
|
|
3071
3080
|
@overload
|
|
3072
|
-
async def map_factory_template(
|
|
3081
|
+
async def map_factory_template(
|
|
3073
3082
|
self,
|
|
3074
3083
|
azure_ad_tenant_id: str,
|
|
3075
3084
|
tenant_id: str,
|
|
@@ -3095,7 +3104,7 @@ class SustainabilitySetupOperations:
|
|
|
3095
3104
|
"""
|
|
3096
3105
|
|
|
3097
3106
|
@overload
|
|
3098
|
-
async def map_factory_template(
|
|
3107
|
+
async def map_factory_template(
|
|
3099
3108
|
self,
|
|
3100
3109
|
azure_ad_tenant_id: str,
|
|
3101
3110
|
tenant_id: str,
|
|
@@ -3122,7 +3131,7 @@ class SustainabilitySetupOperations:
|
|
|
3122
3131
|
"""
|
|
3123
3132
|
|
|
3124
3133
|
@distributed_trace_async
|
|
3125
|
-
async def map_factory_template(
|
|
3134
|
+
async def map_factory_template(
|
|
3126
3135
|
self,
|
|
3127
3136
|
azure_ad_tenant_id: str,
|
|
3128
3137
|
tenant_id: str,
|
|
@@ -3142,7 +3151,7 @@ class SustainabilitySetupOperations:
|
|
|
3142
3151
|
:rtype: None
|
|
3143
3152
|
:raises ~azure.core.exceptions.HttpResponseError:
|
|
3144
3153
|
"""
|
|
3145
|
-
error_map: MutableMapping
|
|
3154
|
+
error_map: MutableMapping = {
|
|
3146
3155
|
401: ClientAuthenticationError,
|
|
3147
3156
|
404: ResourceNotFoundError,
|
|
3148
3157
|
409: ResourceExistsError,
|
|
@@ -3154,9 +3163,10 @@ class SustainabilitySetupOperations:
|
|
|
3154
3163
|
_params = kwargs.pop("params", {}) or {}
|
|
3155
3164
|
|
|
3156
3165
|
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
|
3166
|
+
content_type = content_type if body else None
|
|
3157
3167
|
cls: ClsType[None] = kwargs.pop("cls", None)
|
|
3158
3168
|
|
|
3159
|
-
content_type = content_type or "application/json"
|
|
3169
|
+
content_type = content_type or "application/json" if body else None
|
|
3160
3170
|
_json = None
|
|
3161
3171
|
_content = None
|
|
3162
3172
|
if isinstance(body, (IOBase, bytes)):
|
|
@@ -3193,7 +3203,7 @@ class SustainabilitySetupOperations:
|
|
|
3193
3203
|
return cls(pipeline_response, None, {}) # type: ignore
|
|
3194
3204
|
|
|
3195
3205
|
@overload
|
|
3196
|
-
async def map_factory_template_ferro_amp(
|
|
3206
|
+
async def map_factory_template_ferro_amp(
|
|
3197
3207
|
self,
|
|
3198
3208
|
azure_ad_tenant_id: str,
|
|
3199
3209
|
tenant_id: str,
|
|
@@ -3219,7 +3229,7 @@ class SustainabilitySetupOperations:
|
|
|
3219
3229
|
"""
|
|
3220
3230
|
|
|
3221
3231
|
@overload
|
|
3222
|
-
async def map_factory_template_ferro_amp(
|
|
3232
|
+
async def map_factory_template_ferro_amp(
|
|
3223
3233
|
self,
|
|
3224
3234
|
azure_ad_tenant_id: str,
|
|
3225
3235
|
tenant_id: str,
|
|
@@ -3246,7 +3256,7 @@ class SustainabilitySetupOperations:
|
|
|
3246
3256
|
"""
|
|
3247
3257
|
|
|
3248
3258
|
@distributed_trace_async
|
|
3249
|
-
async def map_factory_template_ferro_amp(
|
|
3259
|
+
async def map_factory_template_ferro_amp(
|
|
3250
3260
|
self,
|
|
3251
3261
|
azure_ad_tenant_id: str,
|
|
3252
3262
|
tenant_id: str,
|
|
@@ -3266,7 +3276,7 @@ class SustainabilitySetupOperations:
|
|
|
3266
3276
|
:rtype: None
|
|
3267
3277
|
:raises ~azure.core.exceptions.HttpResponseError:
|
|
3268
3278
|
"""
|
|
3269
|
-
error_map: MutableMapping
|
|
3279
|
+
error_map: MutableMapping = {
|
|
3270
3280
|
401: ClientAuthenticationError,
|
|
3271
3281
|
404: ResourceNotFoundError,
|
|
3272
3282
|
409: ResourceExistsError,
|
|
@@ -3278,9 +3288,10 @@ class SustainabilitySetupOperations:
|
|
|
3278
3288
|
_params = kwargs.pop("params", {}) or {}
|
|
3279
3289
|
|
|
3280
3290
|
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
|
3291
|
+
content_type = content_type if body else None
|
|
3281
3292
|
cls: ClsType[None] = kwargs.pop("cls", None)
|
|
3282
3293
|
|
|
3283
|
-
content_type = content_type or "application/json"
|
|
3294
|
+
content_type = content_type or "application/json" if body else None
|
|
3284
3295
|
_json = None
|
|
3285
3296
|
_content = None
|
|
3286
3297
|
if isinstance(body, (IOBase, bytes)):
|
|
@@ -3331,15 +3342,15 @@ class TenantCredentialsOperations:
|
|
|
3331
3342
|
|
|
3332
3343
|
def __init__(self, *args, **kwargs) -> None:
|
|
3333
3344
|
input_args = list(args)
|
|
3334
|
-
self._client = input_args.pop(0) if input_args else kwargs.pop("client")
|
|
3335
|
-
self._config = input_args.pop(0) if input_args else kwargs.pop("config")
|
|
3336
|
-
self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer")
|
|
3337
|
-
self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer")
|
|
3345
|
+
self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client")
|
|
3346
|
+
self._config: IgnosInternalApiConfiguration = input_args.pop(0) if input_args else kwargs.pop("config")
|
|
3347
|
+
self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer")
|
|
3348
|
+
self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer")
|
|
3338
3349
|
|
|
3339
3350
|
@distributed_trace_async
|
|
3340
3351
|
async def list_tenant_credential_types(
|
|
3341
3352
|
self, tenant_id: str, **kwargs: Any
|
|
3342
|
-
) ->
|
|
3353
|
+
) -> list[_models.TenantIntegrationCredentialTypeDto]:
|
|
3343
3354
|
"""list_tenant_credential_types.
|
|
3344
3355
|
|
|
3345
3356
|
:param tenant_id: Required.
|
|
@@ -3348,7 +3359,7 @@ class TenantCredentialsOperations:
|
|
|
3348
3359
|
:rtype: list[~ignos.internal.api.client.models.TenantIntegrationCredentialTypeDto]
|
|
3349
3360
|
:raises ~azure.core.exceptions.HttpResponseError:
|
|
3350
3361
|
"""
|
|
3351
|
-
error_map: MutableMapping
|
|
3362
|
+
error_map: MutableMapping = {
|
|
3352
3363
|
401: ClientAuthenticationError,
|
|
3353
3364
|
404: ResourceNotFoundError,
|
|
3354
3365
|
409: ResourceExistsError,
|
|
@@ -3359,7 +3370,7 @@ class TenantCredentialsOperations:
|
|
|
3359
3370
|
_headers = kwargs.pop("headers", {}) or {}
|
|
3360
3371
|
_params = kwargs.pop("params", {}) or {}
|
|
3361
3372
|
|
|
3362
|
-
cls: ClsType[
|
|
3373
|
+
cls: ClsType[list[_models.TenantIntegrationCredentialTypeDto]] = kwargs.pop("cls", None)
|
|
3363
3374
|
|
|
3364
3375
|
_request = build_tenant_credentials_list_tenant_credential_types_request(
|
|
3365
3376
|
tenant_id=tenant_id,
|
|
@@ -3446,7 +3457,7 @@ class TenantCredentialsOperations:
|
|
|
3446
3457
|
:rtype: ~ignos.internal.api.client.models.TenantIntegrationCredentialTypeDto
|
|
3447
3458
|
:raises ~azure.core.exceptions.HttpResponseError:
|
|
3448
3459
|
"""
|
|
3449
|
-
error_map: MutableMapping
|
|
3460
|
+
error_map: MutableMapping = {
|
|
3450
3461
|
401: ClientAuthenticationError,
|
|
3451
3462
|
404: ResourceNotFoundError,
|
|
3452
3463
|
409: ResourceExistsError,
|
|
@@ -3458,9 +3469,10 @@ class TenantCredentialsOperations:
|
|
|
3458
3469
|
_params = kwargs.pop("params", {}) or {}
|
|
3459
3470
|
|
|
3460
3471
|
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
|
|
3472
|
+
content_type = content_type if body else None
|
|
3461
3473
|
cls: ClsType[_models.TenantIntegrationCredentialTypeDto] = kwargs.pop("cls", None)
|
|
3462
3474
|
|
|
3463
|
-
content_type = content_type or "application/json"
|
|
3475
|
+
content_type = content_type or "application/json" if body else None
|
|
3464
3476
|
_json = None
|
|
3465
3477
|
_content = None
|
|
3466
3478
|
if isinstance(body, (IOBase, bytes)):
|
|
@@ -3500,9 +3512,7 @@ class TenantCredentialsOperations:
|
|
|
3500
3512
|
return deserialized # type: ignore
|
|
3501
3513
|
|
|
3502
3514
|
@distributed_trace_async
|
|
3503
|
-
async def delete_integration_credential_type(
|
|
3504
|
-
self, tenant_id: str, id: str, **kwargs: Any
|
|
3505
|
-
) -> None:
|
|
3515
|
+
async def delete_integration_credential_type(self, tenant_id: str, id: str, **kwargs: Any) -> None:
|
|
3506
3516
|
"""delete_integration_credential_type.
|
|
3507
3517
|
|
|
3508
3518
|
:param tenant_id: Required.
|
|
@@ -3513,7 +3523,7 @@ class TenantCredentialsOperations:
|
|
|
3513
3523
|
:rtype: None
|
|
3514
3524
|
:raises ~azure.core.exceptions.HttpResponseError:
|
|
3515
3525
|
"""
|
|
3516
|
-
error_map: MutableMapping
|
|
3526
|
+
error_map: MutableMapping = {
|
|
3517
3527
|
401: ClientAuthenticationError,
|
|
3518
3528
|
404: ResourceNotFoundError,
|
|
3519
3529
|
409: ResourceExistsError,
|
|
@@ -3563,15 +3573,15 @@ class TenantsOperations:
|
|
|
3563
3573
|
|
|
3564
3574
|
def __init__(self, *args, **kwargs) -> None:
|
|
3565
3575
|
input_args = list(args)
|
|
3566
|
-
self._client = input_args.pop(0) if input_args else kwargs.pop("client")
|
|
3567
|
-
self._config = input_args.pop(0) if input_args else kwargs.pop("config")
|
|
3568
|
-
self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer")
|
|
3569
|
-
self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer")
|
|
3576
|
+
self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client")
|
|
3577
|
+
self._config: IgnosInternalApiConfiguration = input_args.pop(0) if input_args else kwargs.pop("config")
|
|
3578
|
+
self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer")
|
|
3579
|
+
self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer")
|
|
3570
3580
|
|
|
3571
3581
|
@distributed_trace_async
|
|
3572
3582
|
async def list_tenants_details(
|
|
3573
3583
|
self, *, tenant_id_prefix: Optional[str] = None, app_id: Optional[str] = None, **kwargs: Any
|
|
3574
|
-
) ->
|
|
3584
|
+
) -> list[_models.TenantDetailDto]:
|
|
3575
3585
|
"""Internal Ignos api for listing tenants.
|
|
3576
3586
|
|
|
3577
3587
|
Internal Ignos api for listing tenants.
|
|
@@ -3584,7 +3594,7 @@ class TenantsOperations:
|
|
|
3584
3594
|
:rtype: list[~ignos.internal.api.client.models.TenantDetailDto]
|
|
3585
3595
|
:raises ~azure.core.exceptions.HttpResponseError:
|
|
3586
3596
|
"""
|
|
3587
|
-
error_map: MutableMapping
|
|
3597
|
+
error_map: MutableMapping = {
|
|
3588
3598
|
401: ClientAuthenticationError,
|
|
3589
3599
|
404: ResourceNotFoundError,
|
|
3590
3600
|
409: ResourceExistsError,
|
|
@@ -3595,7 +3605,7 @@ class TenantsOperations:
|
|
|
3595
3605
|
_headers = kwargs.pop("headers", {}) or {}
|
|
3596
3606
|
_params = kwargs.pop("params", {}) or {}
|
|
3597
3607
|
|
|
3598
|
-
cls: ClsType[
|
|
3608
|
+
cls: ClsType[list[_models.TenantDetailDto]] = kwargs.pop("cls", None)
|
|
3599
3609
|
|
|
3600
3610
|
_request = build_tenants_list_tenants_details_request(
|
|
3601
3611
|
tenant_id_prefix=tenant_id_prefix,
|
|
@@ -3638,10 +3648,10 @@ class UserOperations:
|
|
|
3638
3648
|
|
|
3639
3649
|
def __init__(self, *args, **kwargs) -> None:
|
|
3640
3650
|
input_args = list(args)
|
|
3641
|
-
self._client = input_args.pop(0) if input_args else kwargs.pop("client")
|
|
3642
|
-
self._config = input_args.pop(0) if input_args else kwargs.pop("config")
|
|
3643
|
-
self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer")
|
|
3644
|
-
self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer")
|
|
3651
|
+
self._client: AsyncPipelineClient = input_args.pop(0) if input_args else kwargs.pop("client")
|
|
3652
|
+
self._config: IgnosInternalApiConfiguration = input_args.pop(0) if input_args else kwargs.pop("config")
|
|
3653
|
+
self._serialize: Serializer = input_args.pop(0) if input_args else kwargs.pop("serializer")
|
|
3654
|
+
self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer")
|
|
3645
3655
|
|
|
3646
3656
|
@distributed_trace_async
|
|
3647
3657
|
async def get_user(self, **kwargs: Any) -> _models.UserDetailsDto:
|
|
@@ -3651,7 +3661,7 @@ class UserOperations:
|
|
|
3651
3661
|
:rtype: ~ignos.internal.api.client.models.UserDetailsDto
|
|
3652
3662
|
:raises ~azure.core.exceptions.HttpResponseError:
|
|
3653
3663
|
"""
|
|
3654
|
-
error_map: MutableMapping
|
|
3664
|
+
error_map: MutableMapping = {
|
|
3655
3665
|
401: ClientAuthenticationError,
|
|
3656
3666
|
404: ResourceNotFoundError,
|
|
3657
3667
|
409: ResourceExistsError,
|