diracx-client 0.0.1a33__py3-none-any.whl → 0.0.1a35__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.
- _diracx_client_importer.pth +1 -0
- diracx/_client_importer.py +384 -0
- diracx/client/__init__.py +12 -4
- diracx/client/{generated → _generated}/__init__.py +1 -1
- diracx/client/{generated → _generated}/_client.py +5 -5
- diracx/client/{generated → _generated}/_configuration.py +1 -1
- diracx/client/{generated/aio → _generated}/_patch.py +4 -5
- diracx/client/{generated → _generated}/_serialization.py +1 -1
- diracx/client/{generated/aio → _generated}/_vendor.py +1 -1
- diracx/client/{generated → _generated}/aio/__init__.py +1 -1
- diracx/client/{generated → _generated}/aio/_client.py +5 -5
- diracx/client/{generated → _generated}/aio/_configuration.py +1 -1
- diracx/client/{generated → _generated/aio}/_patch.py +4 -9
- diracx/client/{generated → _generated/aio}/_vendor.py +1 -1
- diracx/client/{generated → _generated}/aio/operations/__init__.py +1 -1
- diracx/client/{generated → _generated}/aio/operations/_operations.py +158 -28
- diracx/client/_generated/aio/operations/_patch.py +26 -0
- diracx/client/{generated → _generated}/models/__init__.py +11 -1
- diracx/client/{generated → _generated}/models/_enums.py +1 -1
- diracx/client/{generated → _generated}/models/_models.py +152 -39
- diracx/client/{generated → _generated}/models/_patch.py +15 -12
- diracx/client/{generated → _generated}/operations/__init__.py +1 -1
- diracx/client/{generated → _generated}/operations/_operations.py +178 -28
- diracx/client/_generated/operations/_patch.py +26 -0
- diracx/client/aio.py +12 -2
- diracx/client/models.py +3 -6
- diracx/client/patches/auth/aio.py +45 -0
- diracx/client/patches/auth/common.py +56 -0
- diracx/client/patches/auth/sync.py +41 -0
- diracx/client/patches/{aio/utils.py → client/aio.py} +22 -40
- diracx/client/patches/client/common.py +196 -0
- diracx/client/patches/client/sync.py +141 -0
- diracx/client/patches/jobs/aio.py +34 -0
- diracx/client/patches/jobs/common.py +85 -0
- diracx/client/patches/jobs/sync.py +34 -0
- diracx/client/py.typed +0 -1
- diracx/client/sync.py +13 -0
- {diracx_client-0.0.1a33.dist-info → diracx_client-0.0.1a35.dist-info}/METADATA +3 -4
- diracx_client-0.0.1a35.dist-info/RECORD +42 -0
- {diracx_client-0.0.1a33.dist-info → diracx_client-0.0.1a35.dist-info}/WHEEL +1 -2
- diracx/client/extensions.py +0 -90
- diracx/client/generated/aio/operations/_patch.py +0 -126
- diracx/client/generated/operations/_patch.py +0 -129
- diracx/client/patches/__init__.py +0 -19
- diracx/client/patches/aio/__init__.py +0 -18
- diracx_client-0.0.1a33.dist-info/RECORD +0 -36
- diracx_client-0.0.1a33.dist-info/entry_points.txt +0 -3
- diracx_client-0.0.1a33.dist-info/top_level.txt +0 -1
- /diracx/client/{generated → _generated}/py.typed +0 -0
@@ -0,0 +1,42 @@
|
|
1
|
+
diracx/_client_importer.py,sha256=bX1wOWx2LET81oSxrTvULirSv7zs8HVODcXyePHoO7c,17255
|
2
|
+
diracx/client/__init__.py,sha256=k8AZS3REU0bZt3uijINQQxuiGNTOPIkjhAaTonAtZic,215
|
3
|
+
diracx/client/aio.py,sha256=INlYuCBYWkIIdAV7GwxCOVLNJcILNmqq7tQcSim7ITU,238
|
4
|
+
diracx/client/models.py,sha256=f85-LF28AqO0X272hWsC9vhn_jbWhMoDohgB46WtZ98,112
|
5
|
+
diracx/client/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
6
|
+
diracx/client/sync.py,sha256=3tM3fdj6QSd83o91u00gX8nvou-6vWSdlSyldXbRu4g,226
|
7
|
+
diracx/client/_generated/__init__.py,sha256=rSJRlafeYIgRC3ECxkZ6BaoaOnXJXfFQngd5J_LuNWA,854
|
8
|
+
diracx/client/_generated/_client.py,sha256=JUH8Kh6GAXBd8EO3X7JjDpGVhqh5p98Z2GBXSiXZezA,4835
|
9
|
+
diracx/client/_generated/_configuration.py,sha256=qKmfoy0xu8ezYWGAo4cQKHipVg0txLzFD8DhkOGOF9Y,1936
|
10
|
+
diracx/client/_generated/_patch.py,sha256=m1lD_bOt9CLQVYiOh3Megq7KoEFOKoMdWSvLLXhXF-M,693
|
11
|
+
diracx/client/_generated/_serialization.py,sha256=dFA-k5bJt3PwAkbdeosELzXRb17cFFzEmu8Eh-t81YE,84254
|
12
|
+
diracx/client/_generated/_vendor.py,sha256=f8DCE3uQzDYcmKVPZkDp3qInOlKZLMwvm9skqzzdDpw,1936
|
13
|
+
diracx/client/_generated/py.typed,sha256=bWew9mHgMy8LqMu7RuqQXFXLBxh2CRx0dUbSx-3wE48,27
|
14
|
+
diracx/client/_generated/aio/__init__.py,sha256=rSJRlafeYIgRC3ECxkZ6BaoaOnXJXfFQngd5J_LuNWA,854
|
15
|
+
diracx/client/_generated/aio/_client.py,sha256=IVJMKp7DbaFPYcpkwG_Qm9_XuO5ZtY5rnAVZSQhi2VU,4956
|
16
|
+
diracx/client/_generated/aio/_configuration.py,sha256=hObwvPnQDdaY2HThxrpVm3UtU0rXwAbzL2UEhFfA0UI,1968
|
17
|
+
diracx/client/_generated/aio/_patch.py,sha256=qBkXxqrKaKXgMV2x_OC2VK9qmd8e34xXQpqSh71Ub0M,692
|
18
|
+
diracx/client/_generated/aio/_vendor.py,sha256=f8DCE3uQzDYcmKVPZkDp3qInOlKZLMwvm9skqzzdDpw,1936
|
19
|
+
diracx/client/_generated/aio/operations/__init__.py,sha256=AO7FcQwOmaYPFS4HE4Mc7C5XervGv3G39tl7pheeLVc,1070
|
20
|
+
diracx/client/_generated/aio/operations/_operations.py,sha256=-Df8GC__5tpUI_rya4ktTfx1pHhnxjRh_wMJKM53St8,77199
|
21
|
+
diracx/client/_generated/aio/operations/_patch.py,sha256=jyk2R4wUaClz07zK9TiH6V_SxKakrHNZAUm35lqUC6k,816
|
22
|
+
diracx/client/_generated/models/__init__.py,sha256=E4qUteMHs41HfWeNl4wXwpikLNzjP1VnbRiSbxqZCSI,2717
|
23
|
+
diracx/client/_generated/models/_enums.py,sha256=iEeiRwA8QL6fCpLH4RzNLvshNgc9WSKDQb0CbS6kdb8,1738
|
24
|
+
diracx/client/_generated/models/_models.py,sha256=KuUKUV9wnt3UxfPsgqmVIe0utbPLxH6eW1j-rtj8-eI,44536
|
25
|
+
diracx/client/_generated/models/_patch.py,sha256=D8bxd8gAeLH7RWZNUuzTT7P_dyot9Cey91Rb-UwI2BI,1501
|
26
|
+
diracx/client/_generated/operations/__init__.py,sha256=AO7FcQwOmaYPFS4HE4Mc7C5XervGv3G39tl7pheeLVc,1070
|
27
|
+
diracx/client/_generated/operations/_operations.py,sha256=uYUzBN2F5UseQ3hzv2sPHcuWz2f2nTTdZbJbB3bwGj8,94802
|
28
|
+
diracx/client/_generated/operations/_patch.py,sha256=xE3M4iVZE5LKlg9XfMveXmOMxFQZCDrPE40nba9VUq8,816
|
29
|
+
diracx/client/patches/utils.py,sha256=OXJx-jSwou-BQm3PrOaZgRWLj-8EFXgjTDVms6uWdN4,10732
|
30
|
+
diracx/client/patches/auth/aio.py,sha256=7QKUtoNRZeMes8I1zeyVpahh4rIT-MY7IqvB4amNBYA,1483
|
31
|
+
diracx/client/patches/auth/common.py,sha256=nwnfdcEQ7BEkyRBZG0TRS88k6isXdXyd1--7qy7_css,1776
|
32
|
+
diracx/client/patches/auth/sync.py,sha256=AUag3E3W9rajGkzXfBuaRp6-kBlS9Ooi7R8QxMQ03tQ,1256
|
33
|
+
diracx/client/patches/client/aio.py,sha256=GYUVCgSvlEeJnjVoqdorBAEdP4H6JoC_4L8tlvtAZIE,5330
|
34
|
+
diracx/client/patches/client/common.py,sha256=fptTd7rwkxX4B2gr9edEd-X3hKl4n51AbvcEN8maj5k,6242
|
35
|
+
diracx/client/patches/client/sync.py,sha256=AVfGtr0O8KsfX2TrtikftfSNFrZRIaujz_MOuaHKk3U,4720
|
36
|
+
diracx/client/patches/jobs/aio.py,sha256=ZBkmgyBPsL14lr0fK20wmxGBJz2jq4HMmXQMEdTQZss,1184
|
37
|
+
diracx/client/patches/jobs/common.py,sha256=Uts6UH8eMOE1cSVnLaH4OBsg4-EBhvGcEsqZVUUCLSo,2371
|
38
|
+
diracx/client/patches/jobs/sync.py,sha256=4AVvzZIjjeUXWDnuSMv0vvH5OAff-L7aYHvi3dTh-xw,1132
|
39
|
+
_diracx_client_importer.pth,sha256=wJwJieKpvzPdCVaM-1oKiKN8OL3wBaHgrl8qyexFoKY,31
|
40
|
+
diracx_client-0.0.1a35.dist-info/METADATA,sha256=D4RYgPBhBPUG0jI2BjRPBjPcCR1f7bpLI2sgPKQZHPs,585
|
41
|
+
diracx_client-0.0.1a35.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
42
|
+
diracx_client-0.0.1a35.dist-info/RECORD,,
|
diracx/client/extensions.py
DELETED
@@ -1,90 +0,0 @@
|
|
1
|
-
import os
|
2
|
-
import sys
|
3
|
-
import importlib
|
4
|
-
|
5
|
-
from importlib.abc import MetaPathFinder
|
6
|
-
from importlib.machinery import SourceFileLoader, ModuleSpec
|
7
|
-
|
8
|
-
|
9
|
-
class DiracxLoader(SourceFileLoader):
|
10
|
-
|
11
|
-
def create_module(self, spec):
|
12
|
-
if spec.name in sys.modules:
|
13
|
-
return sys.modules[spec.name]
|
14
|
-
|
15
|
-
def exec_module(self, module): ...
|
16
|
-
|
17
|
-
|
18
|
-
class DiracxPathFinder(MetaPathFinder):
|
19
|
-
"""
|
20
|
-
This MetaPathFinder modifies the import such that the patches
|
21
|
-
from vanila diracx are looked at first.
|
22
|
-
"""
|
23
|
-
|
24
|
-
diracx_extensions = os.environ.get("DIRACX_EXTENSIONS", "diracx").split(",")
|
25
|
-
|
26
|
-
@classmethod
|
27
|
-
def find_spec(cls, fullname, path, target=None):
|
28
|
-
for i, extension in enumerate(cls.diracx_extensions, start=1):
|
29
|
-
# If we are trying to load the patch from an extension
|
30
|
-
# make sure it does not exist in the lower levels first
|
31
|
-
if any(
|
32
|
-
[
|
33
|
-
fullname.startswith(prefix)
|
34
|
-
for prefix in [
|
35
|
-
f"{extension}.client.generated.operations._patch",
|
36
|
-
f"{extension}.client.generated.models._patch",
|
37
|
-
f"{extension}.client.generated.aio.operations._patch",
|
38
|
-
]
|
39
|
-
]
|
40
|
-
):
|
41
|
-
for lower_extension in cls.diracx_extensions[i:][::-1]:
|
42
|
-
try:
|
43
|
-
patched_name = fullname.replace(extension, lower_extension)
|
44
|
-
overwritten = importlib.util.find_spec(patched_name)
|
45
|
-
|
46
|
-
spec = ModuleSpec(
|
47
|
-
patched_name, DiracxLoader(patched_name, path)
|
48
|
-
)
|
49
|
-
return spec
|
50
|
-
if patched_name in sys.modules:
|
51
|
-
return sys.modules[patched_name].__spec__
|
52
|
-
|
53
|
-
overwritten = importlib.util.find_spec(patched_name)
|
54
|
-
|
55
|
-
# overwritten = spec_from_loader(patched_name, DiracxLoader(filepath))
|
56
|
-
return overwritten
|
57
|
-
except Exception as e:
|
58
|
-
pass
|
59
|
-
|
60
|
-
return None
|
61
|
-
|
62
|
-
|
63
|
-
def initialize_client():
|
64
|
-
|
65
|
-
# insert a DiracxPathFinder instance at the start of the meta_path list
|
66
|
-
if not isinstance(sys.meta_path[0], DiracxPathFinder):
|
67
|
-
|
68
|
-
sys.meta_path.insert(0, DiracxPathFinder())
|
69
|
-
|
70
|
-
# Reload all the client module that could potentially have been
|
71
|
-
# already loaded
|
72
|
-
# This was needed when the generated code was at the top
|
73
|
-
# level of the module.
|
74
|
-
# In principle, this is not needed anymore so I comment it out,
|
75
|
-
# but in case it ends up being needed, I keep it there, as it is rather
|
76
|
-
# tricky
|
77
|
-
# importlib.invalidate_caches()
|
78
|
-
# diracx_extensions = os.environ.get("DIRACX_EXTENSIONS", "diracx").split(",")
|
79
|
-
# for top_module in diracx_extensions:
|
80
|
-
# for module_name, module in sys.modules.copy().items():
|
81
|
-
# if (
|
82
|
-
# (f"{top_module}.client" in module_name)
|
83
|
-
# and module_name
|
84
|
-
# not in (
|
85
|
-
# f"{top_module}.client.generated",
|
86
|
-
# f"{top_module}.client.generated._patch",
|
87
|
-
# )
|
88
|
-
# and "_patch" in module_name
|
89
|
-
# ):
|
90
|
-
# importlib.reload(module)
|
@@ -1,126 +0,0 @@
|
|
1
|
-
# ------------------------------------
|
2
|
-
# Copyright (c) Microsoft Corporation.
|
3
|
-
# Licensed under the MIT License.
|
4
|
-
# ------------------------------------
|
5
|
-
"""Customize generated code here.
|
6
|
-
|
7
|
-
Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize
|
8
|
-
"""
|
9
|
-
import io
|
10
|
-
import json
|
11
|
-
from typing import Any, Dict, List
|
12
|
-
|
13
|
-
from azure.core.rest import HttpRequest
|
14
|
-
from azure.core.exceptions import map_error, HttpResponseError
|
15
|
-
from azure.core.pipeline import PipelineResponse
|
16
|
-
from azure.core.utils import case_insensitive_dict
|
17
|
-
from azure.core.tracing.decorator_async import distributed_trace_async
|
18
|
-
|
19
|
-
from ...operations._operations import _SERIALIZER
|
20
|
-
from ._operations import (
|
21
|
-
AuthOperations as AuthOperationsGenerated,
|
22
|
-
JobsOperations as JobsOperationsGenerated,
|
23
|
-
_models,
|
24
|
-
)
|
25
|
-
|
26
|
-
__all__: List[str] = [
|
27
|
-
"AuthOperations",
|
28
|
-
"JobsOperations",
|
29
|
-
] # Add all objects you want publicly available to users at this package level
|
30
|
-
|
31
|
-
|
32
|
-
def patch_sdk():
|
33
|
-
"""Do not remove from this file.
|
34
|
-
|
35
|
-
`patch_sdk` is a last resort escape hatch that allows you to do customizations
|
36
|
-
you can't accomplish using the techniques described in
|
37
|
-
https://aka.ms/azsdk/python/dpcodegen/python/customize
|
38
|
-
"""
|
39
|
-
|
40
|
-
|
41
|
-
def build_token_request(**kwargs: Any) -> HttpRequest:
|
42
|
-
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
43
|
-
|
44
|
-
accept = _headers.pop("Accept", "application/json")
|
45
|
-
|
46
|
-
# Construct URL
|
47
|
-
_url = "/api/auth/token"
|
48
|
-
|
49
|
-
_headers["Accept"] = _SERIALIZER.header("accept", accept, "str")
|
50
|
-
|
51
|
-
return HttpRequest(method="POST", url=_url, headers=_headers, **kwargs)
|
52
|
-
|
53
|
-
|
54
|
-
class AuthOperations(AuthOperationsGenerated):
|
55
|
-
@distributed_trace_async
|
56
|
-
async def get_oidc_token(
|
57
|
-
self, device_code: str, client_id: str, **kwargs
|
58
|
-
) -> _models.TokenResponse | _models.DeviceFlowErrorResponse:
|
59
|
-
request = build_token_request(
|
60
|
-
data={
|
61
|
-
"grant_type": "urn:ietf:params:oauth:grant-type:device_code",
|
62
|
-
"device_code": device_code,
|
63
|
-
"client_id": client_id,
|
64
|
-
},
|
65
|
-
)
|
66
|
-
request.url = self._client.format_url(request.url)
|
67
|
-
|
68
|
-
_stream = False
|
69
|
-
pipeline_response: PipelineResponse = (
|
70
|
-
await self._client._pipeline.run( # pylint: disable=protected-access
|
71
|
-
request, stream=_stream, **kwargs
|
72
|
-
)
|
73
|
-
)
|
74
|
-
|
75
|
-
response = pipeline_response.http_response
|
76
|
-
|
77
|
-
if response.status_code == 200:
|
78
|
-
return self._deserialize("TokenResponse", pipeline_response)
|
79
|
-
elif response.status_code == 400:
|
80
|
-
return self._deserialize("DeviceFlowErrorResponse", pipeline_response)
|
81
|
-
else:
|
82
|
-
map_error(status_code=response.status_code, response=response, error_map={})
|
83
|
-
raise HttpResponseError(response=response)
|
84
|
-
|
85
|
-
|
86
|
-
class JobsOperations(JobsOperationsGenerated):
|
87
|
-
@distributed_trace_async
|
88
|
-
async def search( # type: ignore[override]
|
89
|
-
self,
|
90
|
-
*,
|
91
|
-
parameters: list[str] | None = None,
|
92
|
-
search: list[str] | None = None,
|
93
|
-
sort: list[str] | None = None,
|
94
|
-
**kwargs: Any,
|
95
|
-
) -> List[Dict[str, Any]]:
|
96
|
-
"""TODO"""
|
97
|
-
body = {}
|
98
|
-
if parameters is not None:
|
99
|
-
body["parameters"] = parameters
|
100
|
-
if search is not None:
|
101
|
-
body["search"] = search
|
102
|
-
if sort is not None:
|
103
|
-
body["sort"] = sort
|
104
|
-
# TODO: The BytesIO here is only needed to satify the typing
|
105
|
-
# Probably an autorest bug
|
106
|
-
body_data = io.BytesIO(json.dumps(body).encode("utf-8"))
|
107
|
-
return await super().search(body_data, **kwargs)
|
108
|
-
|
109
|
-
@distributed_trace_async
|
110
|
-
async def summary( # type: ignore[override]
|
111
|
-
self,
|
112
|
-
*,
|
113
|
-
grouping: list[str] | None = None,
|
114
|
-
search: list[str] | None = None,
|
115
|
-
**kwargs: Any,
|
116
|
-
) -> List[Dict[str, Any]]:
|
117
|
-
"""TODO"""
|
118
|
-
body = {}
|
119
|
-
if grouping is not None:
|
120
|
-
body["grouping"] = grouping
|
121
|
-
if search is not None:
|
122
|
-
body["search"] = search
|
123
|
-
# TODO: The BytesIO here is only needed to satify the typing
|
124
|
-
# Probably an autorest bug
|
125
|
-
body_data = io.BytesIO(json.dumps(body).encode("utf-8"))
|
126
|
-
return await super().summary(body_data, **kwargs)
|
@@ -1,129 +0,0 @@
|
|
1
|
-
# ------------------------------------
|
2
|
-
# Copyright (c) Microsoft Corporation.
|
3
|
-
# Licensed under the MIT License.
|
4
|
-
# ------------------------------------
|
5
|
-
"""Customize generated code here.
|
6
|
-
|
7
|
-
Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize
|
8
|
-
"""
|
9
|
-
|
10
|
-
import io
|
11
|
-
import json
|
12
|
-
from typing import Any, Dict, List
|
13
|
-
|
14
|
-
from azure.core.rest import HttpRequest
|
15
|
-
from azure.core.exceptions import map_error, HttpResponseError
|
16
|
-
from azure.core.utils import case_insensitive_dict
|
17
|
-
from azure.core.pipeline import PipelineResponse
|
18
|
-
|
19
|
-
from azure.core.tracing.decorator import distributed_trace
|
20
|
-
|
21
|
-
from .. import models as _models
|
22
|
-
from ._operations import (
|
23
|
-
AuthOperations as AuthOperationsGenerated,
|
24
|
-
JobsOperations as JobsOperationsGenerated,
|
25
|
-
_SERIALIZER,
|
26
|
-
)
|
27
|
-
|
28
|
-
__all__: List[str] = [
|
29
|
-
"AuthOperations",
|
30
|
-
"JobsOperations",
|
31
|
-
] # Add all objects you want publicly available to users at this package level
|
32
|
-
|
33
|
-
|
34
|
-
def patch_sdk():
|
35
|
-
"""Do not remove from this file.
|
36
|
-
|
37
|
-
`patch_sdk` is a last resort escape hatch that allows you to do customizations
|
38
|
-
you can't accomplish using the techniques described in
|
39
|
-
https://aka.ms/azsdk/python/dpcodegen/python/customize
|
40
|
-
"""
|
41
|
-
|
42
|
-
|
43
|
-
def build_token_request(vo: str, **kwargs: Any) -> HttpRequest:
|
44
|
-
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
45
|
-
|
46
|
-
accept = _headers.pop("Accept", "application/json")
|
47
|
-
|
48
|
-
# Construct URL
|
49
|
-
_url = "/api/auth/token"
|
50
|
-
|
51
|
-
_headers["Accept"] = _SERIALIZER.header("accept", accept, "str")
|
52
|
-
|
53
|
-
return HttpRequest(method="POST", url=_url, headers=_headers, **kwargs)
|
54
|
-
|
55
|
-
|
56
|
-
class AuthOperations(AuthOperationsGenerated):
|
57
|
-
@distributed_trace
|
58
|
-
async def get_oidc_token(
|
59
|
-
self, vo: str, device_code: str, client_id: str, **kwargs
|
60
|
-
) -> _models.TokenResponse | _models.DeviceFlowErrorResponse:
|
61
|
-
request = build_token_request(
|
62
|
-
vo=vo,
|
63
|
-
data={
|
64
|
-
"grant_type": "urn:ietf:params:oauth:grant-type:device_code",
|
65
|
-
"device_code": device_code,
|
66
|
-
"client_id": client_id,
|
67
|
-
},
|
68
|
-
)
|
69
|
-
request.url = self._client.format_url(request.url)
|
70
|
-
|
71
|
-
_stream = False
|
72
|
-
pipeline_response: PipelineResponse = (
|
73
|
-
self._client._pipeline.run( # pylint: disable=protected-access
|
74
|
-
request, stream=_stream, **kwargs
|
75
|
-
)
|
76
|
-
)
|
77
|
-
|
78
|
-
response = pipeline_response.http_response
|
79
|
-
|
80
|
-
if response.status_code == 200:
|
81
|
-
return self._deserialize("TokenResponse", pipeline_response)
|
82
|
-
elif response.status_code == 400:
|
83
|
-
return self._deserialize("DeviceFlowErrorResponse", pipeline_response)
|
84
|
-
else:
|
85
|
-
map_error(status_code=response.status_code, response=response, error_map={})
|
86
|
-
raise HttpResponseError(response=response)
|
87
|
-
|
88
|
-
|
89
|
-
class JobsOperations(JobsOperationsGenerated):
|
90
|
-
@distributed_trace
|
91
|
-
def search( # type: ignore[override]
|
92
|
-
self,
|
93
|
-
*,
|
94
|
-
parameters: list[str] | None = None,
|
95
|
-
search: list[str] | None = None,
|
96
|
-
sort: list[str] | None = None,
|
97
|
-
**kwargs: Any,
|
98
|
-
) -> List[Dict[str, Any]]:
|
99
|
-
"""TODO"""
|
100
|
-
body = {}
|
101
|
-
if parameters is not None:
|
102
|
-
body["parameters"] = parameters
|
103
|
-
if search is not None:
|
104
|
-
body["search"] = search
|
105
|
-
if sort is not None:
|
106
|
-
body["sort"] = sort
|
107
|
-
# TODO: The BytesIO here is only needed to satify the typing
|
108
|
-
# Probably an autorest bug
|
109
|
-
body_data = io.BytesIO(json.dumps(body).encode("utf-8"))
|
110
|
-
return super().search(body_data, **kwargs)
|
111
|
-
|
112
|
-
@distributed_trace
|
113
|
-
def summary( # type: ignore[override]
|
114
|
-
self,
|
115
|
-
*,
|
116
|
-
grouping: list[str] | None = None,
|
117
|
-
search: list[str] | None = None,
|
118
|
-
**kwargs: Any,
|
119
|
-
) -> List[Dict[str, Any]]:
|
120
|
-
"""TODO"""
|
121
|
-
body = {}
|
122
|
-
if grouping is not None:
|
123
|
-
body["grouping"] = grouping
|
124
|
-
if search is not None:
|
125
|
-
body["search"] = search
|
126
|
-
# TODO: The BytesIO here is only needed to satify the typing
|
127
|
-
# Probably an autorest bug
|
128
|
-
body_data = io.BytesIO(json.dumps(body).encode("utf-8"))
|
129
|
-
return super().summary(body_data, **kwargs)
|
@@ -1,19 +0,0 @@
|
|
1
|
-
from __future__ import annotations
|
2
|
-
|
3
|
-
from typing import List
|
4
|
-
|
5
|
-
from .utils import DiracClientMixin
|
6
|
-
|
7
|
-
|
8
|
-
from diracx.core.extensions import select_from_extension
|
9
|
-
|
10
|
-
real_client = select_from_extension(group="diracx", name="client_class")[0].load()
|
11
|
-
DiracGenerated = real_client
|
12
|
-
|
13
|
-
|
14
|
-
__all__: List[str] = [
|
15
|
-
"DiracClient",
|
16
|
-
] # Add all objects you want publicly available to users at this package level
|
17
|
-
|
18
|
-
|
19
|
-
class DiracClient(DiracClientMixin, DiracGenerated): ... # type: ignore
|
@@ -1,18 +0,0 @@
|
|
1
|
-
from __future__ import annotations
|
2
|
-
|
3
|
-
from typing import List
|
4
|
-
|
5
|
-
from .utils import DiracClientMixin
|
6
|
-
|
7
|
-
|
8
|
-
from diracx.core.extensions import select_from_extension
|
9
|
-
|
10
|
-
real_client = select_from_extension(group="diracx", name="aio_client_class")[0].load()
|
11
|
-
DiracGenerated = real_client
|
12
|
-
|
13
|
-
__all__: List[str] = [
|
14
|
-
"DiracClient",
|
15
|
-
] # Add all objects you want publicly available to users at this package level
|
16
|
-
|
17
|
-
|
18
|
-
class DiracClient(DiracClientMixin, DiracGenerated): ... # type: ignore
|
@@ -1,36 +0,0 @@
|
|
1
|
-
diracx/client/__init__.py,sha256=aLo7lP4xwlCtxs7MKD55gr2oDLQyWEvRHZVHwj5Sl2c,165
|
2
|
-
diracx/client/aio.py,sha256=B6OCJPdz44PyhCODhLHy3QOquZ8DSwFTjKGV_bkBP7A,65
|
3
|
-
diracx/client/extensions.py,sha256=igHJAXhgpYQq-Di1ZOX2b2okqgjQHTs9HL8mBTHb6ss,3385
|
4
|
-
diracx/client/models.py,sha256=pyvpMz2nPuqGKZsvjffD3qs56eZHh40xiRS4zT9CSqA,203
|
5
|
-
diracx/client/py.typed,sha256=bWew9mHgMy8LqMu7RuqQXFXLBxh2CRx0dUbSx-3wE48,27
|
6
|
-
diracx/client/generated/__init__.py,sha256=kzy6i2K_INgq_Anfc0_qw8l9pk1y57W40azdlQ5XFDI,854
|
7
|
-
diracx/client/generated/_client.py,sha256=v7kCJq4tn-62P5zhtj4FsGe6grCZxXGwkAg03A_fmfY,4831
|
8
|
-
diracx/client/generated/_configuration.py,sha256=EoLZ2b4Cjt9f0tVAjDuK0sdnl256FBtZpb9BDbre64E,1936
|
9
|
-
diracx/client/generated/_patch.py,sha256=9qHUtqTTCzeAYKdYAT-0YOs16YISdYCfAMaNhQIgS-I,766
|
10
|
-
diracx/client/generated/_serialization.py,sha256=MSOy_h-eHRlPWl2Vy3eLToRcCcNw_WAiPDVk4BiXdkk,84254
|
11
|
-
diracx/client/generated/_vendor.py,sha256=w5LXqV9stm7bX3XAxO2GFkFig1V5UrAULfcy2OOiqMI,1936
|
12
|
-
diracx/client/generated/py.typed,sha256=bWew9mHgMy8LqMu7RuqQXFXLBxh2CRx0dUbSx-3wE48,27
|
13
|
-
diracx/client/generated/aio/__init__.py,sha256=kzy6i2K_INgq_Anfc0_qw8l9pk1y57W40azdlQ5XFDI,854
|
14
|
-
diracx/client/generated/aio/_client.py,sha256=RJwY7Abj3P08ByP456_TcBxSU3JCGSr8hri_earkYxA,4952
|
15
|
-
diracx/client/generated/aio/_configuration.py,sha256=oSNH7LSyw22NHtKyWkfWfuoWUBauZJTVLOUWdsM2Gxg,1968
|
16
|
-
diracx/client/generated/aio/_patch.py,sha256=6FYNV6Yt0ttTc7A5EQui764Ujuzypkjpv47LVdccmD8,697
|
17
|
-
diracx/client/generated/aio/_vendor.py,sha256=w5LXqV9stm7bX3XAxO2GFkFig1V5UrAULfcy2OOiqMI,1936
|
18
|
-
diracx/client/generated/aio/operations/__init__.py,sha256=ZNNuzOne1guVGY_y9QyzxqKPC1QkRDAWb_uTUemsk7w,1070
|
19
|
-
diracx/client/generated/aio/operations/_operations.py,sha256=rPzGLupppRqlCJzgua0YJjqNvhAvXKgqBbe1_jQww4M,72449
|
20
|
-
diracx/client/generated/aio/operations/_patch.py,sha256=_o0AsMyybY8ndUIunFJJdiidqLCNCDJtto3UbPSdwBs,4254
|
21
|
-
diracx/client/generated/models/__init__.py,sha256=PFiSvRmFcRZvD6bM47EpQFijCxyJr70x0EBQDG9cdEs,2540
|
22
|
-
diracx/client/generated/models/_enums.py,sha256=19P18vbD8cfSgMmTzCplEBh7wt3ZcFOz5ARTPhwRYo4,1738
|
23
|
-
diracx/client/generated/models/_models.py,sha256=EeEokEqacPVdXnItbq8s7w_E2ySJApKKYxegg3AZ-tY,40889
|
24
|
-
diracx/client/generated/models/_patch.py,sha256=uvLwKzjWO_t-VZ4aSuLhuJ05RVxAP9UJxZV3XDeGMnU,1497
|
25
|
-
diracx/client/generated/operations/__init__.py,sha256=ZNNuzOne1guVGY_y9QyzxqKPC1QkRDAWb_uTUemsk7w,1070
|
26
|
-
diracx/client/generated/operations/_operations.py,sha256=HUu0DCASJKWdJRt6Xnozfi5-4tzyFvphy7z21DO0qGQ,89440
|
27
|
-
diracx/client/generated/operations/_patch.py,sha256=9C3NK-TcLTao03ohkLvStsaZCuNJ5-fXsFfNeDfPjB8,4220
|
28
|
-
diracx/client/patches/__init__.py,sha256=8mzMyg1Kd9lJH1K7DYJ6FgjkTJgPRJmF0sYmuFv5wcs,468
|
29
|
-
diracx/client/patches/utils.py,sha256=OXJx-jSwou-BQm3PrOaZgRWLj-8EFXgjTDVms6uWdN4,10732
|
30
|
-
diracx/client/patches/aio/__init__.py,sha256=qIy1qj8HzaZDEU2PCjEHjFbylwfYRAM0i90WEDs2WuQ,471
|
31
|
-
diracx/client/patches/aio/utils.py,sha256=Bno4DntLGWEB88UO9eaBtZjG8K3QAJNaT2RI-_mQWgc,5949
|
32
|
-
diracx_client-0.0.1a33.dist-info/METADATA,sha256=uGXKN49xSwN7PpM1YYID428_TUeqAB7QDIEKP0RY5dU,625
|
33
|
-
diracx_client-0.0.1a33.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
|
34
|
-
diracx_client-0.0.1a33.dist-info/entry_points.txt,sha256=NP67B7z-VIy8vEG3ZYtOAyxZqLtrOAD5hh2pA2AFBKI,123
|
35
|
-
diracx_client-0.0.1a33.dist-info/top_level.txt,sha256=vJx10tdRlBX3rF2Psgk5jlwVGZNcL3m_7iQWwgPXt-U,7
|
36
|
-
diracx_client-0.0.1a33.dist-info/RECORD,,
|
@@ -1 +0,0 @@
|
|
1
|
-
diracx
|
File without changes
|