ignos-internal-api-client 20240617.0.9575__py3-none-any.whl → 20240813.0.9983__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/_client.py +8 -1
- ignos/internal/api/client/_serialization.py +2 -0
- ignos/internal/api/client/_version.py +1 -1
- ignos/internal/api/client/aio/_client.py +9 -1
- ignos/internal/api/client/aio/operations/__init__.py +2 -0
- ignos/internal/api/client/aio/operations/_operations.py +263 -108
- ignos/internal/api/client/models/__init__.py +6 -0
- ignos/internal/api/client/models/_enums.py +9 -0
- ignos/internal/api/client/models/_models.py +146 -0
- ignos/internal/api/client/operations/__init__.py +2 -0
- ignos/internal/api/client/operations/_operations.py +320 -108
- {ignos_internal_api_client-20240617.0.9575.dist-info → ignos_internal_api_client-20240813.0.9983.dist-info}/METADATA +2 -1
- ignos_internal_api_client-20240813.0.9983.dist-info/RECORD +28 -0
- {ignos_internal_api_client-20240617.0.9575.dist-info → ignos_internal_api_client-20240813.0.9983.dist-info}/WHEEL +1 -1
- ignos_internal_api_client-20240617.0.9575.dist-info/RECORD +0 -28
- {ignos_internal_api_client-20240617.0.9575.dist-info → ignos_internal_api_client-20240813.0.9983.dist-info}/top_level.txt +0 -0
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
from copy import deepcopy
|
|
10
10
|
from typing import Any, TYPE_CHECKING
|
|
11
|
+
from typing_extensions import Self
|
|
11
12
|
|
|
12
13
|
from azure.core import PipelineClient
|
|
13
14
|
from azure.core.pipeline import policies
|
|
@@ -27,6 +28,7 @@ from .operations import (
|
|
|
27
28
|
PowerOperations,
|
|
28
29
|
PresentationOperations,
|
|
29
30
|
SustainabilitySetupOperations,
|
|
31
|
+
TenantCredentialsOperations,
|
|
30
32
|
TenantsOperations,
|
|
31
33
|
UserOperations,
|
|
32
34
|
)
|
|
@@ -60,6 +62,8 @@ class IgnosInternalApi: # pylint: disable=client-accepts-api-version-keyword,to
|
|
|
60
62
|
:ivar sustainability_setup: SustainabilitySetupOperations operations
|
|
61
63
|
:vartype sustainability_setup:
|
|
62
64
|
ignos.internal.api.client.operations.SustainabilitySetupOperations
|
|
65
|
+
:ivar tenant_credentials: TenantCredentialsOperations operations
|
|
66
|
+
:vartype tenant_credentials: ignos.internal.api.client.operations.TenantCredentialsOperations
|
|
63
67
|
:ivar tenants: TenantsOperations operations
|
|
64
68
|
:vartype tenants: ignos.internal.api.client.operations.TenantsOperations
|
|
65
69
|
:ivar user: UserOperations operations
|
|
@@ -107,6 +111,9 @@ class IgnosInternalApi: # pylint: disable=client-accepts-api-version-keyword,to
|
|
|
107
111
|
self.sustainability_setup = SustainabilitySetupOperations(
|
|
108
112
|
self._client, self._config, self._serialize, self._deserialize
|
|
109
113
|
)
|
|
114
|
+
self.tenant_credentials = TenantCredentialsOperations(
|
|
115
|
+
self._client, self._config, self._serialize, self._deserialize
|
|
116
|
+
)
|
|
110
117
|
self.tenants = TenantsOperations(self._client, self._config, self._serialize, self._deserialize)
|
|
111
118
|
self.user = UserOperations(self._client, self._config, self._serialize, self._deserialize)
|
|
112
119
|
|
|
@@ -135,7 +142,7 @@ class IgnosInternalApi: # pylint: disable=client-accepts-api-version-keyword,to
|
|
|
135
142
|
def close(self) -> None:
|
|
136
143
|
self._client.close()
|
|
137
144
|
|
|
138
|
-
def __enter__(self) ->
|
|
145
|
+
def __enter__(self) -> Self:
|
|
139
146
|
self._client.__enter__()
|
|
140
147
|
return self
|
|
141
148
|
|
|
@@ -144,6 +144,8 @@ class RawDeserializer:
|
|
|
144
144
|
# context otherwise.
|
|
145
145
|
_LOGGER.critical("Wasn't XML not JSON, failing")
|
|
146
146
|
raise DeserializationError("XML is invalid") from err
|
|
147
|
+
elif content_type.startswith("text/"):
|
|
148
|
+
return data_as_str
|
|
147
149
|
raise DeserializationError("Cannot deserialize content-type: {}".format(content_type))
|
|
148
150
|
|
|
149
151
|
@classmethod
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
from copy import deepcopy
|
|
10
10
|
from typing import Any, Awaitable, TYPE_CHECKING
|
|
11
|
+
from typing_extensions import Self
|
|
11
12
|
|
|
12
13
|
from azure.core import AsyncPipelineClient
|
|
13
14
|
from azure.core.pipeline import policies
|
|
@@ -27,6 +28,7 @@ from .operations import (
|
|
|
27
28
|
PowerOperations,
|
|
28
29
|
PresentationOperations,
|
|
29
30
|
SustainabilitySetupOperations,
|
|
31
|
+
TenantCredentialsOperations,
|
|
30
32
|
TenantsOperations,
|
|
31
33
|
UserOperations,
|
|
32
34
|
)
|
|
@@ -60,6 +62,9 @@ class IgnosInternalApi: # pylint: disable=client-accepts-api-version-keyword,to
|
|
|
60
62
|
:ivar sustainability_setup: SustainabilitySetupOperations operations
|
|
61
63
|
:vartype sustainability_setup:
|
|
62
64
|
ignos.internal.api.client.aio.operations.SustainabilitySetupOperations
|
|
65
|
+
:ivar tenant_credentials: TenantCredentialsOperations operations
|
|
66
|
+
:vartype tenant_credentials:
|
|
67
|
+
ignos.internal.api.client.aio.operations.TenantCredentialsOperations
|
|
63
68
|
:ivar tenants: TenantsOperations operations
|
|
64
69
|
:vartype tenants: ignos.internal.api.client.aio.operations.TenantsOperations
|
|
65
70
|
:ivar user: UserOperations operations
|
|
@@ -107,6 +112,9 @@ class IgnosInternalApi: # pylint: disable=client-accepts-api-version-keyword,to
|
|
|
107
112
|
self.sustainability_setup = SustainabilitySetupOperations(
|
|
108
113
|
self._client, self._config, self._serialize, self._deserialize
|
|
109
114
|
)
|
|
115
|
+
self.tenant_credentials = TenantCredentialsOperations(
|
|
116
|
+
self._client, self._config, self._serialize, self._deserialize
|
|
117
|
+
)
|
|
110
118
|
self.tenants = TenantsOperations(self._client, self._config, self._serialize, self._deserialize)
|
|
111
119
|
self.user = UserOperations(self._client, self._config, self._serialize, self._deserialize)
|
|
112
120
|
|
|
@@ -137,7 +145,7 @@ class IgnosInternalApi: # pylint: disable=client-accepts-api-version-keyword,to
|
|
|
137
145
|
async def close(self) -> None:
|
|
138
146
|
await self._client.close()
|
|
139
147
|
|
|
140
|
-
async def __aenter__(self) ->
|
|
148
|
+
async def __aenter__(self) -> Self:
|
|
141
149
|
await self._client.__aenter__()
|
|
142
150
|
return self
|
|
143
151
|
|
|
@@ -16,6 +16,7 @@ from ._operations import ErpSyncOperations
|
|
|
16
16
|
from ._operations import PowerOperations
|
|
17
17
|
from ._operations import PresentationOperations
|
|
18
18
|
from ._operations import SustainabilitySetupOperations
|
|
19
|
+
from ._operations import TenantCredentialsOperations
|
|
19
20
|
from ._operations import TenantsOperations
|
|
20
21
|
from ._operations import UserOperations
|
|
21
22
|
|
|
@@ -34,6 +35,7 @@ __all__ = [
|
|
|
34
35
|
"PowerOperations",
|
|
35
36
|
"PresentationOperations",
|
|
36
37
|
"SustainabilitySetupOperations",
|
|
38
|
+
"TenantCredentialsOperations",
|
|
37
39
|
"TenantsOperations",
|
|
38
40
|
"UserOperations",
|
|
39
41
|
]
|