diracx-client 0.0.1a44__py3-none-any.whl → 0.0.1a45__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.py +2 -2
- diracx/client/_generated/__init__.py +1 -1
- diracx/client/_generated/_client.py +1 -1
- diracx/client/_generated/_configuration.py +1 -1
- diracx/client/_generated/_utils/__init__.py +1 -1
- diracx/client/_generated/_utils/serialization.py +1 -1
- diracx/client/_generated/_utils/utils.py +1 -1
- diracx/client/_generated/aio/__init__.py +1 -1
- diracx/client/_generated/aio/_client.py +1 -1
- diracx/client/_generated/aio/_configuration.py +1 -1
- diracx/client/_generated/aio/operations/__init__.py +1 -1
- diracx/client/_generated/aio/operations/_operations.py +54 -2
- diracx/client/_generated/models/__init__.py +1 -1
- diracx/client/_generated/models/_enums.py +1 -1
- diracx/client/_generated/models/_models.py +9 -1
- diracx/client/_generated/operations/__init__.py +1 -1
- diracx/client/_generated/operations/_operations.py +71 -6
- diracx/client/patches/client/common.py +1 -1
- diracx/client/patches/utils.py +1 -1
- {diracx_client-0.0.1a44.dist-info → diracx_client-0.0.1a45.dist-info}/METADATA +2 -1
- {diracx_client-0.0.1a44.dist-info → diracx_client-0.0.1a45.dist-info}/RECORD +22 -22
- {diracx_client-0.0.1a44.dist-info → diracx_client-0.0.1a45.dist-info}/WHEEL +0 -0
diracx/_client_importer.py
CHANGED
@@ -241,12 +241,12 @@ class DiracXPatchLoader(DiracXAliasLoader):
|
|
241
241
|
def exec_module(self, module):
|
242
242
|
"""Import an autorest generated module with two layers of patches."""
|
243
243
|
# Import the real module and set its __name__ to the alias. This will
|
244
|
-
# then
|
244
|
+
# then correspond to the __init__.py file + the _patch.py file from
|
245
245
|
# plain DiracX. When calling self.original_loader.exec_module it will:
|
246
246
|
# 1. Import the real module (e.g. aio/__init__.py)
|
247
247
|
# 2. Import any submodules (e.g. _operations)
|
248
248
|
# 3. Import the patch module from plain DiracX (e.g. _patch.py,
|
249
|
-
#
|
249
|
+
# overridden by the DiracXPathFinder)
|
250
250
|
# 4. Replace the submodules module's objects with anything in ._patch.__all__
|
251
251
|
super().exec_module(module)
|
252
252
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# coding=utf-8
|
2
2
|
# --------------------------------------------------------------------------
|
3
|
-
# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/python@6.34.
|
3
|
+
# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/python@6.34.2)
|
4
4
|
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
5
5
|
# --------------------------------------------------------------------------
|
6
6
|
# pylint: disable=wrong-import-position
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# coding=utf-8
|
2
2
|
# --------------------------------------------------------------------------
|
3
|
-
# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/python@6.34.
|
3
|
+
# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/python@6.34.2)
|
4
4
|
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
5
5
|
# --------------------------------------------------------------------------
|
6
6
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# coding=utf-8
|
2
2
|
# --------------------------------------------------------------------------
|
3
|
-
# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/python@6.34.
|
3
|
+
# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/python@6.34.2)
|
4
4
|
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
5
5
|
# --------------------------------------------------------------------------
|
6
6
|
|
@@ -1,4 +1,4 @@
|
|
1
1
|
# --------------------------------------------------------------------------
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/python@6.34.
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/python@6.34.2)
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
4
4
|
# --------------------------------------------------------------------------
|
@@ -1,7 +1,7 @@
|
|
1
1
|
# pylint: disable=line-too-long,useless-suppression,too-many-lines
|
2
2
|
# coding=utf-8
|
3
3
|
# --------------------------------------------------------------------------
|
4
|
-
# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/python@6.34.
|
4
|
+
# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/python@6.34.2)
|
5
5
|
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
6
6
|
# --------------------------------------------------------------------------
|
7
7
|
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# --------------------------------------------------------------------------
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/python@6.34.
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/python@6.34.2)
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
4
4
|
# --------------------------------------------------------------------------
|
5
5
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# coding=utf-8
|
2
2
|
# --------------------------------------------------------------------------
|
3
|
-
# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/python@6.34.
|
3
|
+
# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/python@6.34.2)
|
4
4
|
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
5
5
|
# --------------------------------------------------------------------------
|
6
6
|
# pylint: disable=wrong-import-position
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# coding=utf-8
|
2
2
|
# --------------------------------------------------------------------------
|
3
|
-
# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/python@6.34.
|
3
|
+
# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/python@6.34.2)
|
4
4
|
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
5
5
|
# --------------------------------------------------------------------------
|
6
6
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# coding=utf-8
|
2
2
|
# --------------------------------------------------------------------------
|
3
|
-
# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/python@6.34.
|
3
|
+
# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/python@6.34.2)
|
4
4
|
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
5
5
|
# --------------------------------------------------------------------------
|
6
6
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# coding=utf-8
|
2
2
|
# --------------------------------------------------------------------------
|
3
|
-
# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/python@6.34.
|
3
|
+
# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/python@6.34.2)
|
4
4
|
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
5
5
|
# --------------------------------------------------------------------------
|
6
6
|
# pylint: disable=wrong-import-position
|
@@ -1,7 +1,7 @@
|
|
1
1
|
# pylint: disable=too-many-lines
|
2
2
|
# coding=utf-8
|
3
3
|
# --------------------------------------------------------------------------
|
4
|
-
# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/python@6.34.
|
4
|
+
# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/python@6.34.2)
|
5
5
|
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
6
6
|
# --------------------------------------------------------------------------
|
7
7
|
from collections.abc import MutableMapping
|
@@ -54,6 +54,7 @@ from ...operations._operations import (
|
|
54
54
|
build_jobs_unassign_bulk_jobs_sandboxes_request,
|
55
55
|
build_jobs_unassign_job_sandboxes_request,
|
56
56
|
build_well_known_get_installation_metadata_request,
|
57
|
+
build_well_known_get_jwks_request,
|
57
58
|
build_well_known_get_openid_configuration_request,
|
58
59
|
)
|
59
60
|
from .._configuration import DiracConfiguration
|
@@ -146,6 +147,57 @@ class WellKnownOperations:
|
|
146
147
|
|
147
148
|
return deserialized # type: ignore
|
148
149
|
|
150
|
+
@distributed_trace_async
|
151
|
+
async def get_jwks(self, **kwargs: Any) -> Dict[str, Any]:
|
152
|
+
"""Get Jwks.
|
153
|
+
|
154
|
+
Get the JWKs (public keys).
|
155
|
+
|
156
|
+
:return: dict mapping str to any
|
157
|
+
:rtype: dict[str, any]
|
158
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
159
|
+
"""
|
160
|
+
error_map: MutableMapping = {
|
161
|
+
401: ClientAuthenticationError,
|
162
|
+
404: ResourceNotFoundError,
|
163
|
+
409: ResourceExistsError,
|
164
|
+
304: ResourceNotModifiedError,
|
165
|
+
}
|
166
|
+
error_map.update(kwargs.pop("error_map", {}) or {})
|
167
|
+
|
168
|
+
_headers = kwargs.pop("headers", {}) or {}
|
169
|
+
_params = kwargs.pop("params", {}) or {}
|
170
|
+
|
171
|
+
cls: ClsType[Dict[str, Any]] = kwargs.pop("cls", None)
|
172
|
+
|
173
|
+
_request = build_well_known_get_jwks_request(
|
174
|
+
headers=_headers,
|
175
|
+
params=_params,
|
176
|
+
)
|
177
|
+
_request.url = self._client.format_url(_request.url)
|
178
|
+
|
179
|
+
_stream = False
|
180
|
+
pipeline_response: PipelineResponse = (
|
181
|
+
await self._client._pipeline.run( # pylint: disable=protected-access
|
182
|
+
_request, stream=_stream, **kwargs
|
183
|
+
)
|
184
|
+
)
|
185
|
+
|
186
|
+
response = pipeline_response.http_response
|
187
|
+
|
188
|
+
if response.status_code not in [200]:
|
189
|
+
map_error(
|
190
|
+
status_code=response.status_code, response=response, error_map=error_map
|
191
|
+
)
|
192
|
+
raise HttpResponseError(response=response)
|
193
|
+
|
194
|
+
deserialized = self._deserialize("{object}", pipeline_response.http_response)
|
195
|
+
|
196
|
+
if cls:
|
197
|
+
return cls(pipeline_response, deserialized, {}) # type: ignore
|
198
|
+
|
199
|
+
return deserialized # type: ignore
|
200
|
+
|
149
201
|
@distributed_trace_async
|
150
202
|
async def get_installation_metadata(self, **kwargs: Any) -> _models.Metadata:
|
151
203
|
"""Get Installation Metadata.
|
@@ -380,7 +432,7 @@ class AuthOperations: # pylint: disable=abstract-class-instantiated
|
|
380
432
|
async def finish_device_flow(self, *, code: str, state: str, **kwargs: Any) -> Any:
|
381
433
|
"""Finish Device Flow.
|
382
434
|
|
383
|
-
This the url callbacked by IAM/
|
435
|
+
This the url callbacked by IAM/CheckIn after the authorization
|
384
436
|
flow was granted.
|
385
437
|
It gets us the code we need for the authorization flow, and we
|
386
438
|
can map it to the corresponding device flow using the user_code
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# coding=utf-8
|
2
2
|
# --------------------------------------------------------------------------
|
3
|
-
# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/python@6.34.
|
3
|
+
# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/python@6.34.2)
|
4
4
|
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
5
5
|
# --------------------------------------------------------------------------
|
6
6
|
# pylint: disable=wrong-import-position
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# coding=utf-8
|
2
2
|
# --------------------------------------------------------------------------
|
3
|
-
# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/python@6.34.
|
3
|
+
# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/python@6.34.2)
|
4
4
|
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
5
5
|
# --------------------------------------------------------------------------
|
6
6
|
|
@@ -1,7 +1,7 @@
|
|
1
1
|
# pylint: disable=too-many-lines
|
2
2
|
# coding=utf-8
|
3
3
|
# --------------------------------------------------------------------------
|
4
|
-
# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/python@6.34.
|
4
|
+
# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/python@6.34.2)
|
5
5
|
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
6
6
|
# --------------------------------------------------------------------------
|
7
7
|
|
@@ -563,6 +563,8 @@ class OpenIDConfiguration(_serialization.Model):
|
|
563
563
|
:vartype device_authorization_endpoint: str
|
564
564
|
:ivar revocation_endpoint: Revocation Endpoint. Required.
|
565
565
|
:vartype revocation_endpoint: str
|
566
|
+
:ivar jwks_uri: Jwks Uri. Required.
|
567
|
+
:vartype jwks_uri: str
|
566
568
|
:ivar grant_types_supported: Grant Types Supported. Required.
|
567
569
|
:vartype grant_types_supported: list[str]
|
568
570
|
:ivar scopes_supported: Scopes Supported. Required.
|
@@ -585,6 +587,7 @@ class OpenIDConfiguration(_serialization.Model):
|
|
585
587
|
"authorization_endpoint": {"required": True},
|
586
588
|
"device_authorization_endpoint": {"required": True},
|
587
589
|
"revocation_endpoint": {"required": True},
|
590
|
+
"jwks_uri": {"required": True},
|
588
591
|
"grant_types_supported": {"required": True},
|
589
592
|
"scopes_supported": {"required": True},
|
590
593
|
"response_types_supported": {"required": True},
|
@@ -603,6 +606,7 @@ class OpenIDConfiguration(_serialization.Model):
|
|
603
606
|
"type": "str",
|
604
607
|
},
|
605
608
|
"revocation_endpoint": {"key": "revocation_endpoint", "type": "str"},
|
609
|
+
"jwks_uri": {"key": "jwks_uri", "type": "str"},
|
606
610
|
"grant_types_supported": {"key": "grant_types_supported", "type": "[str]"},
|
607
611
|
"scopes_supported": {"key": "scopes_supported", "type": "[str]"},
|
608
612
|
"response_types_supported": {
|
@@ -632,6 +636,7 @@ class OpenIDConfiguration(_serialization.Model):
|
|
632
636
|
authorization_endpoint: str,
|
633
637
|
device_authorization_endpoint: str,
|
634
638
|
revocation_endpoint: str,
|
639
|
+
jwks_uri: str,
|
635
640
|
grant_types_supported: List[str],
|
636
641
|
scopes_supported: List[str],
|
637
642
|
response_types_supported: List[str],
|
@@ -653,6 +658,8 @@ class OpenIDConfiguration(_serialization.Model):
|
|
653
658
|
:paramtype device_authorization_endpoint: str
|
654
659
|
:keyword revocation_endpoint: Revocation Endpoint. Required.
|
655
660
|
:paramtype revocation_endpoint: str
|
661
|
+
:keyword jwks_uri: Jwks Uri. Required.
|
662
|
+
:paramtype jwks_uri: str
|
656
663
|
:keyword grant_types_supported: Grant Types Supported. Required.
|
657
664
|
:paramtype grant_types_supported: list[str]
|
658
665
|
:keyword scopes_supported: Scopes Supported. Required.
|
@@ -675,6 +682,7 @@ class OpenIDConfiguration(_serialization.Model):
|
|
675
682
|
self.authorization_endpoint = authorization_endpoint
|
676
683
|
self.device_authorization_endpoint = device_authorization_endpoint
|
677
684
|
self.revocation_endpoint = revocation_endpoint
|
685
|
+
self.jwks_uri = jwks_uri
|
678
686
|
self.grant_types_supported = grant_types_supported
|
679
687
|
self.scopes_supported = scopes_supported
|
680
688
|
self.response_types_supported = response_types_supported
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# coding=utf-8
|
2
2
|
# --------------------------------------------------------------------------
|
3
|
-
# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/python@6.34.
|
3
|
+
# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/python@6.34.2)
|
4
4
|
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
5
5
|
# --------------------------------------------------------------------------
|
6
6
|
# pylint: disable=wrong-import-position
|
@@ -1,7 +1,7 @@
|
|
1
1
|
# pylint: disable=too-many-lines
|
2
2
|
# coding=utf-8
|
3
3
|
# --------------------------------------------------------------------------
|
4
|
-
# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/python@6.34.
|
4
|
+
# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/python@6.34.2)
|
5
5
|
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
6
6
|
# --------------------------------------------------------------------------
|
7
7
|
from collections.abc import MutableMapping
|
@@ -53,6 +53,20 @@ def build_well_known_get_openid_configuration_request(
|
|
53
53
|
return HttpRequest(method="GET", url=_url, headers=_headers, **kwargs)
|
54
54
|
|
55
55
|
|
56
|
+
def build_well_known_get_jwks_request(**kwargs: Any) -> HttpRequest:
|
57
|
+
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
58
|
+
|
59
|
+
accept = _headers.pop("Accept", "application/json")
|
60
|
+
|
61
|
+
# Construct URL
|
62
|
+
_url = "/.well-known/jwks.json"
|
63
|
+
|
64
|
+
# Construct headers
|
65
|
+
_headers["Accept"] = _SERIALIZER.header("accept", accept, "str")
|
66
|
+
|
67
|
+
return HttpRequest(method="GET", url=_url, headers=_headers, **kwargs)
|
68
|
+
|
69
|
+
|
56
70
|
def build_well_known_get_installation_metadata_request(
|
57
71
|
**kwargs: Any,
|
58
72
|
) -> HttpRequest: # pylint: disable=name-too-long
|
@@ -678,7 +692,7 @@ class WellKnownOperations:
|
|
678
692
|
|
679
693
|
models = _models
|
680
694
|
|
681
|
-
def __init__(self, *args, **kwargs):
|
695
|
+
def __init__(self, *args, **kwargs) -> None:
|
682
696
|
input_args = list(args)
|
683
697
|
self._client: PipelineClient = (
|
684
698
|
input_args.pop(0) if input_args else kwargs.pop("client")
|
@@ -746,6 +760,57 @@ class WellKnownOperations:
|
|
746
760
|
|
747
761
|
return deserialized # type: ignore
|
748
762
|
|
763
|
+
@distributed_trace
|
764
|
+
def get_jwks(self, **kwargs: Any) -> Dict[str, Any]:
|
765
|
+
"""Get Jwks.
|
766
|
+
|
767
|
+
Get the JWKs (public keys).
|
768
|
+
|
769
|
+
:return: dict mapping str to any
|
770
|
+
:rtype: dict[str, any]
|
771
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
772
|
+
"""
|
773
|
+
error_map: MutableMapping = {
|
774
|
+
401: ClientAuthenticationError,
|
775
|
+
404: ResourceNotFoundError,
|
776
|
+
409: ResourceExistsError,
|
777
|
+
304: ResourceNotModifiedError,
|
778
|
+
}
|
779
|
+
error_map.update(kwargs.pop("error_map", {}) or {})
|
780
|
+
|
781
|
+
_headers = kwargs.pop("headers", {}) or {}
|
782
|
+
_params = kwargs.pop("params", {}) or {}
|
783
|
+
|
784
|
+
cls: ClsType[Dict[str, Any]] = kwargs.pop("cls", None)
|
785
|
+
|
786
|
+
_request = build_well_known_get_jwks_request(
|
787
|
+
headers=_headers,
|
788
|
+
params=_params,
|
789
|
+
)
|
790
|
+
_request.url = self._client.format_url(_request.url)
|
791
|
+
|
792
|
+
_stream = False
|
793
|
+
pipeline_response: PipelineResponse = (
|
794
|
+
self._client._pipeline.run( # pylint: disable=protected-access
|
795
|
+
_request, stream=_stream, **kwargs
|
796
|
+
)
|
797
|
+
)
|
798
|
+
|
799
|
+
response = pipeline_response.http_response
|
800
|
+
|
801
|
+
if response.status_code not in [200]:
|
802
|
+
map_error(
|
803
|
+
status_code=response.status_code, response=response, error_map=error_map
|
804
|
+
)
|
805
|
+
raise HttpResponseError(response=response)
|
806
|
+
|
807
|
+
deserialized = self._deserialize("{object}", pipeline_response.http_response)
|
808
|
+
|
809
|
+
if cls:
|
810
|
+
return cls(pipeline_response, deserialized, {}) # type: ignore
|
811
|
+
|
812
|
+
return deserialized # type: ignore
|
813
|
+
|
749
814
|
@distributed_trace
|
750
815
|
def get_installation_metadata(self, **kwargs: Any) -> _models.Metadata:
|
751
816
|
"""Get Installation Metadata.
|
@@ -810,7 +875,7 @@ class AuthOperations: # pylint: disable=abstract-class-instantiated
|
|
810
875
|
|
811
876
|
models = _models
|
812
877
|
|
813
|
-
def __init__(self, *args, **kwargs):
|
878
|
+
def __init__(self, *args, **kwargs) -> None:
|
814
879
|
input_args = list(args)
|
815
880
|
self._client: PipelineClient = (
|
816
881
|
input_args.pop(0) if input_args else kwargs.pop("client")
|
@@ -980,7 +1045,7 @@ class AuthOperations: # pylint: disable=abstract-class-instantiated
|
|
980
1045
|
def finish_device_flow(self, *, code: str, state: str, **kwargs: Any) -> Any:
|
981
1046
|
"""Finish Device Flow.
|
982
1047
|
|
983
|
-
This the url callbacked by IAM/
|
1048
|
+
This the url callbacked by IAM/CheckIn after the authorization
|
984
1049
|
flow was granted.
|
985
1050
|
It gets us the code we need for the authorization flow, and we
|
986
1051
|
can map it to the corresponding device flow using the user_code
|
@@ -1493,7 +1558,7 @@ class ConfigOperations:
|
|
1493
1558
|
|
1494
1559
|
models = _models
|
1495
1560
|
|
1496
|
-
def __init__(self, *args, **kwargs):
|
1561
|
+
def __init__(self, *args, **kwargs) -> None:
|
1497
1562
|
input_args = list(args)
|
1498
1563
|
self._client: PipelineClient = (
|
1499
1564
|
input_args.pop(0) if input_args else kwargs.pop("client")
|
@@ -1600,7 +1665,7 @@ class JobsOperations:
|
|
1600
1665
|
|
1601
1666
|
models = _models
|
1602
1667
|
|
1603
|
-
def __init__(self, *args, **kwargs):
|
1668
|
+
def __init__(self, *args, **kwargs) -> None:
|
1604
1669
|
input_args = list(args)
|
1605
1670
|
self._client: PipelineClient = (
|
1606
1671
|
input_args.pop(0) if input_args else kwargs.pop("client")
|
@@ -132,7 +132,7 @@ def refresh_token(
|
|
132
132
|
|
133
133
|
if response.status_code != 200:
|
134
134
|
raise RuntimeError(
|
135
|
-
f"An issue
|
135
|
+
f"An issue occurred while refreshing your access token: {response.json()['detail']}"
|
136
136
|
)
|
137
137
|
|
138
138
|
res = response.json()
|
diracx/client/patches/utils.py
CHANGED
@@ -135,7 +135,7 @@ def refresh_token(
|
|
135
135
|
|
136
136
|
if response.status_code != 200:
|
137
137
|
raise RuntimeError(
|
138
|
-
f"An issue
|
138
|
+
f"An issue occurred while refreshing your access token: {response.json()['detail']}"
|
139
139
|
)
|
140
140
|
|
141
141
|
res = response.json()
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: diracx-client
|
3
|
-
Version: 0.0.
|
3
|
+
Version: 0.0.1a45
|
4
4
|
Summary: TODO
|
5
5
|
License: GPL-3.0-only
|
6
6
|
Classifier: Intended Audience :: Science/Research
|
@@ -13,6 +13,7 @@ Requires-Dist: azure-core
|
|
13
13
|
Requires-Dist: diracx-core
|
14
14
|
Requires-Dist: httpx
|
15
15
|
Requires-Dist: isodate
|
16
|
+
Requires-Dist: pyjwt
|
16
17
|
Provides-Extra: testing
|
17
18
|
Requires-Dist: diracx-testing; extra == 'testing'
|
18
19
|
Provides-Extra: types
|
@@ -1,45 +1,45 @@
|
|
1
|
-
diracx/_client_importer.py,sha256
|
1
|
+
diracx/_client_importer.py,sha256=-MJehTwK58nDjWD-_8kQv0s3S5Eo2NcqEL9FzurxQ5E,17256
|
2
2
|
diracx/client/__init__.py,sha256=k8AZS3REU0bZt3uijINQQxuiGNTOPIkjhAaTonAtZic,215
|
3
3
|
diracx/client/aio.py,sha256=INlYuCBYWkIIdAV7GwxCOVLNJcILNmqq7tQcSim7ITU,238
|
4
4
|
diracx/client/models.py,sha256=f85-LF28AqO0X272hWsC9vhn_jbWhMoDohgB46WtZ98,112
|
5
5
|
diracx/client/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
6
6
|
diracx/client/sync.py,sha256=3tM3fdj6QSd83o91u00gX8nvou-6vWSdlSyldXbRu4g,226
|
7
|
-
diracx/client/_generated/__init__.py,sha256=
|
8
|
-
diracx/client/_generated/_client.py,sha256=
|
9
|
-
diracx/client/_generated/_configuration.py,sha256=
|
7
|
+
diracx/client/_generated/__init__.py,sha256=Yqf3HWqUQ7BE8kCRDegX0llo8csjaQ9zfEmX6cWHki4,854
|
8
|
+
diracx/client/_generated/_client.py,sha256=fFFcs6zZfKu2_Yx7iGQesFZomza5F2uIrTGT91jAYGs,4842
|
9
|
+
diracx/client/_generated/_configuration.py,sha256=EX8jibL8ASFicz1OjvI5PLtUKpopy3bszjDqIEXwlF4,1936
|
10
10
|
diracx/client/_generated/_patch.py,sha256=m1lD_bOt9CLQVYiOh3Megq7KoEFOKoMdWSvLLXhXF-M,693
|
11
11
|
diracx/client/_generated/_serialization.py,sha256=dt5-JDf2W2K4dTB8y06a-uDwOx_PCmDTwqdHNUK1nF4,84254
|
12
12
|
diracx/client/_generated/_vendor.py,sha256=6EFsP3ValI_vbZ_ivnRYHg_oRjZ5jDiLlUqvAYyDMhM,1936
|
13
13
|
diracx/client/_generated/py.typed,sha256=bWew9mHgMy8LqMu7RuqQXFXLBxh2CRx0dUbSx-3wE48,27
|
14
|
-
diracx/client/_generated/_utils/__init__.py,sha256=
|
15
|
-
diracx/client/_generated/_utils/serialization.py,sha256=
|
16
|
-
diracx/client/_generated/_utils/utils.py,sha256=
|
17
|
-
diracx/client/_generated/aio/__init__.py,sha256=
|
18
|
-
diracx/client/_generated/aio/_client.py,sha256=
|
19
|
-
diracx/client/_generated/aio/_configuration.py,sha256=
|
14
|
+
diracx/client/_generated/_utils/__init__.py,sha256=b7fXcni7qfh1tPgwePg86CgLECvng5osVfSFOzpEYig,351
|
15
|
+
diracx/client/_generated/_utils/serialization.py,sha256=0aD1S9wJr0HhcRUvCfW_cHfJpCZFnbOB-GjvR7ZoGqg,84254
|
16
|
+
diracx/client/_generated/_utils/utils.py,sha256=5M2uvAnXFkrOSBlh0MbnntIpYTEvTzCtw9WQ642XBDg,1936
|
17
|
+
diracx/client/_generated/aio/__init__.py,sha256=Yqf3HWqUQ7BE8kCRDegX0llo8csjaQ9zfEmX6cWHki4,854
|
18
|
+
diracx/client/_generated/aio/_client.py,sha256=Oo6n03hQttJhMEPaUv_QbD-3ZRUHY_1367Wal4f2bVo,4963
|
19
|
+
diracx/client/_generated/aio/_configuration.py,sha256=8Dmv_3T9TyWIhrY0NkScp15K88J7KiV41aSahloBo24,1968
|
20
20
|
diracx/client/_generated/aio/_patch.py,sha256=qBkXxqrKaKXgMV2x_OC2VK9qmd8e34xXQpqSh71Ub0M,692
|
21
21
|
diracx/client/_generated/aio/_vendor.py,sha256=6EFsP3ValI_vbZ_ivnRYHg_oRjZ5jDiLlUqvAYyDMhM,1936
|
22
|
-
diracx/client/_generated/aio/operations/__init__.py,sha256=
|
23
|
-
diracx/client/_generated/aio/operations/_operations.py,sha256=
|
22
|
+
diracx/client/_generated/aio/operations/__init__.py,sha256=gtvv0durn3Cr8FUdFImqDcCtCVp7RKULjprmO4jOoeI,1070
|
23
|
+
diracx/client/_generated/aio/operations/_operations.py,sha256=fydXBFG5ZUXPg7dK5td4vDYiKpK0uY_9d04x3uydPnA,80834
|
24
24
|
diracx/client/_generated/aio/operations/_patch.py,sha256=jyk2R4wUaClz07zK9TiH6V_SxKakrHNZAUm35lqUC6k,816
|
25
|
-
diracx/client/_generated/models/__init__.py,sha256=
|
26
|
-
diracx/client/_generated/models/_enums.py,sha256=
|
27
|
-
diracx/client/_generated/models/_models.py,sha256=
|
25
|
+
diracx/client/_generated/models/__init__.py,sha256=MQ59e0ic_3BvMBvGq_MhtcsWlwwbgEICWU9Wdwd-Ca8,2717
|
26
|
+
diracx/client/_generated/models/_enums.py,sha256=awP7iDjtGb2446fOxAQMCeSo8ubpIZd7a4Z39KZXHho,1738
|
27
|
+
diracx/client/_generated/models/_models.py,sha256=QPtE_3KPfuh4RLZntLJTcf8LNoEC1dnTGrMJnoVo2eI,45289
|
28
28
|
diracx/client/_generated/models/_patch.py,sha256=D8bxd8gAeLH7RWZNUuzTT7P_dyot9Cey91Rb-UwI2BI,1501
|
29
|
-
diracx/client/_generated/operations/__init__.py,sha256=
|
30
|
-
diracx/client/_generated/operations/_operations.py,sha256=
|
29
|
+
diracx/client/_generated/operations/__init__.py,sha256=gtvv0durn3Cr8FUdFImqDcCtCVp7RKULjprmO4jOoeI,1070
|
30
|
+
diracx/client/_generated/operations/_operations.py,sha256=he53YbgiOagLTe18QgGUEoLuMuxKziC5nQRDx3eqGU8,99606
|
31
31
|
diracx/client/_generated/operations/_patch.py,sha256=xE3M4iVZE5LKlg9XfMveXmOMxFQZCDrPE40nba9VUq8,816
|
32
|
-
diracx/client/patches/utils.py,sha256=
|
32
|
+
diracx/client/patches/utils.py,sha256=rsw76XnstQgTxjqs5p95jwFsPuR3zkt5JTBc8VhqoAs,10733
|
33
33
|
diracx/client/patches/auth/aio.py,sha256=7QKUtoNRZeMes8I1zeyVpahh4rIT-MY7IqvB4amNBYA,1483
|
34
34
|
diracx/client/patches/auth/common.py,sha256=nwnfdcEQ7BEkyRBZG0TRS88k6isXdXyd1--7qy7_css,1776
|
35
35
|
diracx/client/patches/auth/sync.py,sha256=AUag3E3W9rajGkzXfBuaRp6-kBlS9Ooi7R8QxMQ03tQ,1256
|
36
36
|
diracx/client/patches/client/aio.py,sha256=GYUVCgSvlEeJnjVoqdorBAEdP4H6JoC_4L8tlvtAZIE,5330
|
37
|
-
diracx/client/patches/client/common.py,sha256=
|
37
|
+
diracx/client/patches/client/common.py,sha256=sWQ4-2iMHl5kwQzfAhny89uOWo8paoYpgp15Ak0UP5c,6243
|
38
38
|
diracx/client/patches/client/sync.py,sha256=AVfGtr0O8KsfX2TrtikftfSNFrZRIaujz_MOuaHKk3U,4720
|
39
39
|
diracx/client/patches/jobs/aio.py,sha256=ZBkmgyBPsL14lr0fK20wmxGBJz2jq4HMmXQMEdTQZss,1184
|
40
40
|
diracx/client/patches/jobs/common.py,sha256=Uts6UH8eMOE1cSVnLaH4OBsg4-EBhvGcEsqZVUUCLSo,2371
|
41
41
|
diracx/client/patches/jobs/sync.py,sha256=4AVvzZIjjeUXWDnuSMv0vvH5OAff-L7aYHvi3dTh-xw,1132
|
42
42
|
_diracx_client_importer.pth,sha256=wJwJieKpvzPdCVaM-1oKiKN8OL3wBaHgrl8qyexFoKY,31
|
43
|
-
diracx_client-0.0.
|
44
|
-
diracx_client-0.0.
|
45
|
-
diracx_client-0.0.
|
43
|
+
diracx_client-0.0.1a45.dist-info/METADATA,sha256=46x72MGTvQ_4NOzWiEk5wUPAWF1nXh1KBJ7EHyfnlAQ,606
|
44
|
+
diracx_client-0.0.1a45.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
45
|
+
diracx_client-0.0.1a45.dist-info/RECORD,,
|
File without changes
|