diracx-client 0.0.1a43__py3-none-any.whl → 0.0.1a44__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/_generated/__init__.py +1 -1
- diracx/client/_generated/_client.py +2 -2
- diracx/client/_generated/_configuration.py +1 -1
- diracx/client/_generated/_utils/__init__.py +4 -0
- diracx/client/_generated/_utils/serialization.py +2184 -0
- diracx/client/_generated/_utils/utils.py +55 -0
- diracx/client/_generated/aio/__init__.py +1 -1
- diracx/client/_generated/aio/_client.py +2 -2
- diracx/client/_generated/aio/_configuration.py +1 -1
- diracx/client/_generated/aio/operations/__init__.py +1 -1
- diracx/client/_generated/aio/operations/_operations.py +67 -7
- diracx/client/_generated/models/__init__.py +1 -1
- diracx/client/_generated/models/_enums.py +1 -1
- diracx/client/_generated/models/_models.py +10 -2
- diracx/client/_generated/operations/__init__.py +1 -1
- diracx/client/_generated/operations/_operations.py +91 -7
- {diracx_client-0.0.1a43.dist-info → diracx_client-0.0.1a44.dist-info}/METADATA +1 -1
- {diracx_client-0.0.1a43.dist-info → diracx_client-0.0.1a44.dist-info}/RECORD +19 -16
- {diracx_client-0.0.1a43.dist-info → diracx_client-0.0.1a44.dist-info}/WHEEL +0 -0
@@ -0,0 +1,55 @@
|
|
1
|
+
# --------------------------------------------------------------------------
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/python@6.34.1)
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
4
|
+
# --------------------------------------------------------------------------
|
5
|
+
|
6
|
+
from typing import Optional
|
7
|
+
|
8
|
+
from azure.core import MatchConditions
|
9
|
+
|
10
|
+
|
11
|
+
def raise_if_not_implemented(cls, abstract_methods):
|
12
|
+
not_implemented = [
|
13
|
+
f for f in abstract_methods if not callable(getattr(cls, f, None))
|
14
|
+
]
|
15
|
+
if not_implemented:
|
16
|
+
raise NotImplementedError(
|
17
|
+
"The following methods on operation group '{}' are not implemented: '{}'."
|
18
|
+
" Please refer to https://aka.ms/azsdk/python/dpcodegen/python/customize to learn how to customize.".format(
|
19
|
+
cls.__name__, "', '".join(not_implemented)
|
20
|
+
)
|
21
|
+
)
|
22
|
+
|
23
|
+
|
24
|
+
def quote_etag(etag: Optional[str]) -> Optional[str]:
|
25
|
+
if not etag or etag == "*":
|
26
|
+
return etag
|
27
|
+
if etag.startswith("W/"):
|
28
|
+
return etag
|
29
|
+
if etag.startswith('"') and etag.endswith('"'):
|
30
|
+
return etag
|
31
|
+
if etag.startswith("'") and etag.endswith("'"):
|
32
|
+
return etag
|
33
|
+
return '"' + etag + '"'
|
34
|
+
|
35
|
+
|
36
|
+
def prep_if_match(
|
37
|
+
etag: Optional[str], match_condition: Optional[MatchConditions]
|
38
|
+
) -> Optional[str]:
|
39
|
+
if match_condition == MatchConditions.IfNotModified:
|
40
|
+
if_match = quote_etag(etag) if etag else None
|
41
|
+
return if_match
|
42
|
+
if match_condition == MatchConditions.IfPresent:
|
43
|
+
return "*"
|
44
|
+
return None
|
45
|
+
|
46
|
+
|
47
|
+
def prep_if_none_match(
|
48
|
+
etag: Optional[str], match_condition: Optional[MatchConditions]
|
49
|
+
) -> Optional[str]:
|
50
|
+
if match_condition == MatchConditions.IfModified:
|
51
|
+
if_none_match = quote_etag(etag) if etag else None
|
52
|
+
return if_none_match
|
53
|
+
if match_condition == MatchConditions.IfMissing:
|
54
|
+
return "*"
|
55
|
+
return None
|
@@ -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.
|
3
|
+
# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/python@6.34.1)
|
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.
|
3
|
+
# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/python@6.34.1)
|
4
4
|
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
5
5
|
# --------------------------------------------------------------------------
|
6
6
|
|
@@ -13,7 +13,7 @@ from azure.core.pipeline import policies
|
|
13
13
|
from azure.core.rest import AsyncHttpResponse, HttpRequest
|
14
14
|
|
15
15
|
from .. import models as _models
|
16
|
-
from ..
|
16
|
+
from .._utils.serialization import Deserializer, Serializer
|
17
17
|
from ._configuration import DiracConfiguration
|
18
18
|
from .operations import (
|
19
19
|
AuthOperations,
|
@@ -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.
|
3
|
+
# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/python@6.34.1)
|
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.
|
3
|
+
# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/python@6.34.1)
|
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.
|
4
|
+
# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/python@6.34.1)
|
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
|
@@ -24,7 +24,8 @@ from azure.core.tracing.decorator_async import distributed_trace_async
|
|
24
24
|
from azure.core.utils import case_insensitive_dict
|
25
25
|
|
26
26
|
from ... import models as _models
|
27
|
-
from ...
|
27
|
+
from ..._utils.serialization import Deserializer, Serializer
|
28
|
+
from ..._utils.utils import raise_if_not_implemented
|
28
29
|
from ...operations._operations import (
|
29
30
|
build_auth_complete_authorization_flow_request,
|
30
31
|
build_auth_do_device_flow_request,
|
@@ -33,7 +34,8 @@ from ...operations._operations import (
|
|
33
34
|
build_auth_get_refresh_tokens_request,
|
34
35
|
build_auth_initiate_authorization_flow_request,
|
35
36
|
build_auth_initiate_device_flow_request,
|
36
|
-
|
37
|
+
build_auth_revoke_refresh_token_by_jti_request,
|
38
|
+
build_auth_revoke_refresh_token_by_refresh_token_request,
|
37
39
|
build_auth_userinfo_request,
|
38
40
|
build_config_serve_config_request,
|
39
41
|
build_jobs_add_heartbeat_request,
|
@@ -55,7 +57,6 @@ from ...operations._operations import (
|
|
55
57
|
build_well_known_get_openid_configuration_request,
|
56
58
|
)
|
57
59
|
from .._configuration import DiracConfiguration
|
58
|
-
from .._vendor import raise_if_not_implemented
|
59
60
|
|
60
61
|
T = TypeVar("T")
|
61
62
|
ClsType = Optional[
|
@@ -540,8 +541,67 @@ class AuthOperations: # pylint: disable=abstract-class-instantiated
|
|
540
541
|
return deserialized # type: ignore
|
541
542
|
|
542
543
|
@distributed_trace_async
|
543
|
-
async def
|
544
|
-
|
544
|
+
async def revoke_refresh_token_by_refresh_token(
|
545
|
+
self, *, refresh_token: str, client_id: str, **kwargs: Any
|
546
|
+
) -> str:
|
547
|
+
"""Revoke Refresh Token By Refresh Token.
|
548
|
+
|
549
|
+
Revoke a refresh token.
|
550
|
+
|
551
|
+
:keyword refresh_token: Required.
|
552
|
+
:paramtype refresh_token: str
|
553
|
+
:keyword client_id: Required.
|
554
|
+
:paramtype client_id: str
|
555
|
+
:return: str
|
556
|
+
:rtype: str
|
557
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
558
|
+
"""
|
559
|
+
error_map: MutableMapping = {
|
560
|
+
401: ClientAuthenticationError,
|
561
|
+
404: ResourceNotFoundError,
|
562
|
+
409: ResourceExistsError,
|
563
|
+
304: ResourceNotModifiedError,
|
564
|
+
}
|
565
|
+
error_map.update(kwargs.pop("error_map", {}) or {})
|
566
|
+
|
567
|
+
_headers = kwargs.pop("headers", {}) or {}
|
568
|
+
_params = kwargs.pop("params", {}) or {}
|
569
|
+
|
570
|
+
cls: ClsType[str] = kwargs.pop("cls", None)
|
571
|
+
|
572
|
+
_request = build_auth_revoke_refresh_token_by_refresh_token_request(
|
573
|
+
refresh_token=refresh_token,
|
574
|
+
client_id=client_id,
|
575
|
+
headers=_headers,
|
576
|
+
params=_params,
|
577
|
+
)
|
578
|
+
_request.url = self._client.format_url(_request.url)
|
579
|
+
|
580
|
+
_stream = False
|
581
|
+
pipeline_response: PipelineResponse = (
|
582
|
+
await self._client._pipeline.run( # pylint: disable=protected-access
|
583
|
+
_request, stream=_stream, **kwargs
|
584
|
+
)
|
585
|
+
)
|
586
|
+
|
587
|
+
response = pipeline_response.http_response
|
588
|
+
|
589
|
+
if response.status_code not in [200]:
|
590
|
+
map_error(
|
591
|
+
status_code=response.status_code, response=response, error_map=error_map
|
592
|
+
)
|
593
|
+
raise HttpResponseError(response=response)
|
594
|
+
|
595
|
+
deserialized = self._deserialize("str", pipeline_response.http_response)
|
596
|
+
|
597
|
+
if cls:
|
598
|
+
return cls(pipeline_response, deserialized, {}) # type: ignore
|
599
|
+
|
600
|
+
return deserialized # type: ignore
|
601
|
+
|
602
|
+
@distributed_trace_async
|
603
|
+
async def revoke_refresh_token_by_jti(self, jti: str, **kwargs: Any) -> str:
|
604
|
+
"""Revoke Refresh Token By Jti.
|
545
605
|
|
546
606
|
Revoke a refresh token. If the user has the ``proxy_management`` property, then
|
547
607
|
the subject is not used to filter the refresh tokens.
|
@@ -565,7 +625,7 @@ class AuthOperations: # pylint: disable=abstract-class-instantiated
|
|
565
625
|
|
566
626
|
cls: ClsType[str] = kwargs.pop("cls", None)
|
567
627
|
|
568
|
-
_request =
|
628
|
+
_request = build_auth_revoke_refresh_token_by_jti_request(
|
569
629
|
jti=jti,
|
570
630
|
headers=_headers,
|
571
631
|
params=_params,
|
@@ -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.
|
3
|
+
# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/python@6.34.1)
|
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.
|
3
|
+
# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/python@6.34.1)
|
4
4
|
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
5
5
|
# --------------------------------------------------------------------------
|
6
6
|
|
@@ -1,14 +1,14 @@
|
|
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.
|
4
|
+
# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/python@6.34.1)
|
5
5
|
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
6
6
|
# --------------------------------------------------------------------------
|
7
7
|
|
8
8
|
import datetime
|
9
9
|
from typing import Any, Dict, List, Optional, TYPE_CHECKING, Union
|
10
10
|
|
11
|
-
from .. import _serialization
|
11
|
+
from .._utils import serialization as _serialization
|
12
12
|
|
13
13
|
if TYPE_CHECKING:
|
14
14
|
from .. import models as _models
|
@@ -561,6 +561,8 @@ class OpenIDConfiguration(_serialization.Model):
|
|
561
561
|
:vartype authorization_endpoint: str
|
562
562
|
:ivar device_authorization_endpoint: Device Authorization Endpoint. Required.
|
563
563
|
:vartype device_authorization_endpoint: str
|
564
|
+
:ivar revocation_endpoint: Revocation Endpoint. Required.
|
565
|
+
:vartype revocation_endpoint: str
|
564
566
|
:ivar grant_types_supported: Grant Types Supported. Required.
|
565
567
|
:vartype grant_types_supported: list[str]
|
566
568
|
:ivar scopes_supported: Scopes Supported. Required.
|
@@ -582,6 +584,7 @@ class OpenIDConfiguration(_serialization.Model):
|
|
582
584
|
"userinfo_endpoint": {"required": True},
|
583
585
|
"authorization_endpoint": {"required": True},
|
584
586
|
"device_authorization_endpoint": {"required": True},
|
587
|
+
"revocation_endpoint": {"required": True},
|
585
588
|
"grant_types_supported": {"required": True},
|
586
589
|
"scopes_supported": {"required": True},
|
587
590
|
"response_types_supported": {"required": True},
|
@@ -599,6 +602,7 @@ class OpenIDConfiguration(_serialization.Model):
|
|
599
602
|
"key": "device_authorization_endpoint",
|
600
603
|
"type": "str",
|
601
604
|
},
|
605
|
+
"revocation_endpoint": {"key": "revocation_endpoint", "type": "str"},
|
602
606
|
"grant_types_supported": {"key": "grant_types_supported", "type": "[str]"},
|
603
607
|
"scopes_supported": {"key": "scopes_supported", "type": "[str]"},
|
604
608
|
"response_types_supported": {
|
@@ -627,6 +631,7 @@ class OpenIDConfiguration(_serialization.Model):
|
|
627
631
|
userinfo_endpoint: str,
|
628
632
|
authorization_endpoint: str,
|
629
633
|
device_authorization_endpoint: str,
|
634
|
+
revocation_endpoint: str,
|
630
635
|
grant_types_supported: List[str],
|
631
636
|
scopes_supported: List[str],
|
632
637
|
response_types_supported: List[str],
|
@@ -646,6 +651,8 @@ class OpenIDConfiguration(_serialization.Model):
|
|
646
651
|
:paramtype authorization_endpoint: str
|
647
652
|
:keyword device_authorization_endpoint: Device Authorization Endpoint. Required.
|
648
653
|
:paramtype device_authorization_endpoint: str
|
654
|
+
:keyword revocation_endpoint: Revocation Endpoint. Required.
|
655
|
+
:paramtype revocation_endpoint: str
|
649
656
|
:keyword grant_types_supported: Grant Types Supported. Required.
|
650
657
|
:paramtype grant_types_supported: list[str]
|
651
658
|
:keyword scopes_supported: Scopes Supported. Required.
|
@@ -667,6 +674,7 @@ class OpenIDConfiguration(_serialization.Model):
|
|
667
674
|
self.userinfo_endpoint = userinfo_endpoint
|
668
675
|
self.authorization_endpoint = authorization_endpoint
|
669
676
|
self.device_authorization_endpoint = device_authorization_endpoint
|
677
|
+
self.revocation_endpoint = revocation_endpoint
|
670
678
|
self.grant_types_supported = grant_types_supported
|
671
679
|
self.scopes_supported = scopes_supported
|
672
680
|
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.
|
3
|
+
# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/python@6.34.1)
|
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.
|
4
|
+
# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.4, generator: @autorest/python@6.34.1)
|
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
|
@@ -25,8 +25,8 @@ from azure.core.utils import case_insensitive_dict
|
|
25
25
|
|
26
26
|
from .. import models as _models
|
27
27
|
from .._configuration import DiracConfiguration
|
28
|
-
from ..
|
29
|
-
from ..
|
28
|
+
from .._utils.serialization import Deserializer, Serializer
|
29
|
+
from .._utils.utils import prep_if_match, prep_if_none_match, raise_if_not_implemented
|
30
30
|
|
31
31
|
T = TypeVar("T")
|
32
32
|
ClsType = Optional[
|
@@ -163,7 +163,32 @@ def build_auth_get_refresh_tokens_request(**kwargs: Any) -> HttpRequest:
|
|
163
163
|
return HttpRequest(method="GET", url=_url, headers=_headers, **kwargs)
|
164
164
|
|
165
165
|
|
166
|
-
def
|
166
|
+
def build_auth_revoke_refresh_token_by_refresh_token_request( # pylint: disable=name-too-long
|
167
|
+
*, refresh_token: str, client_id: str, **kwargs: Any
|
168
|
+
) -> HttpRequest:
|
169
|
+
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
170
|
+
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
171
|
+
|
172
|
+
accept = _headers.pop("Accept", "application/json")
|
173
|
+
|
174
|
+
# Construct URL
|
175
|
+
_url = "/api/auth/revoke"
|
176
|
+
|
177
|
+
# Construct parameters
|
178
|
+
_params["refresh_token"] = _SERIALIZER.query("refresh_token", refresh_token, "str")
|
179
|
+
_params["client_id"] = _SERIALIZER.query("client_id", client_id, "str")
|
180
|
+
|
181
|
+
# Construct headers
|
182
|
+
_headers["Accept"] = _SERIALIZER.header("accept", accept, "str")
|
183
|
+
|
184
|
+
return HttpRequest(
|
185
|
+
method="POST", url=_url, params=_params, headers=_headers, **kwargs
|
186
|
+
)
|
187
|
+
|
188
|
+
|
189
|
+
def build_auth_revoke_refresh_token_by_jti_request( # pylint: disable=name-too-long
|
190
|
+
jti: str, **kwargs: Any
|
191
|
+
) -> HttpRequest:
|
167
192
|
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
|
168
193
|
|
169
194
|
accept = _headers.pop("Accept", "application/json")
|
@@ -1116,8 +1141,67 @@ class AuthOperations: # pylint: disable=abstract-class-instantiated
|
|
1116
1141
|
return deserialized # type: ignore
|
1117
1142
|
|
1118
1143
|
@distributed_trace
|
1119
|
-
def
|
1120
|
-
|
1144
|
+
def revoke_refresh_token_by_refresh_token(
|
1145
|
+
self, *, refresh_token: str, client_id: str, **kwargs: Any
|
1146
|
+
) -> str:
|
1147
|
+
"""Revoke Refresh Token By Refresh Token.
|
1148
|
+
|
1149
|
+
Revoke a refresh token.
|
1150
|
+
|
1151
|
+
:keyword refresh_token: Required.
|
1152
|
+
:paramtype refresh_token: str
|
1153
|
+
:keyword client_id: Required.
|
1154
|
+
:paramtype client_id: str
|
1155
|
+
:return: str
|
1156
|
+
:rtype: str
|
1157
|
+
:raises ~azure.core.exceptions.HttpResponseError:
|
1158
|
+
"""
|
1159
|
+
error_map: MutableMapping = {
|
1160
|
+
401: ClientAuthenticationError,
|
1161
|
+
404: ResourceNotFoundError,
|
1162
|
+
409: ResourceExistsError,
|
1163
|
+
304: ResourceNotModifiedError,
|
1164
|
+
}
|
1165
|
+
error_map.update(kwargs.pop("error_map", {}) or {})
|
1166
|
+
|
1167
|
+
_headers = kwargs.pop("headers", {}) or {}
|
1168
|
+
_params = kwargs.pop("params", {}) or {}
|
1169
|
+
|
1170
|
+
cls: ClsType[str] = kwargs.pop("cls", None)
|
1171
|
+
|
1172
|
+
_request = build_auth_revoke_refresh_token_by_refresh_token_request(
|
1173
|
+
refresh_token=refresh_token,
|
1174
|
+
client_id=client_id,
|
1175
|
+
headers=_headers,
|
1176
|
+
params=_params,
|
1177
|
+
)
|
1178
|
+
_request.url = self._client.format_url(_request.url)
|
1179
|
+
|
1180
|
+
_stream = False
|
1181
|
+
pipeline_response: PipelineResponse = (
|
1182
|
+
self._client._pipeline.run( # pylint: disable=protected-access
|
1183
|
+
_request, stream=_stream, **kwargs
|
1184
|
+
)
|
1185
|
+
)
|
1186
|
+
|
1187
|
+
response = pipeline_response.http_response
|
1188
|
+
|
1189
|
+
if response.status_code not in [200]:
|
1190
|
+
map_error(
|
1191
|
+
status_code=response.status_code, response=response, error_map=error_map
|
1192
|
+
)
|
1193
|
+
raise HttpResponseError(response=response)
|
1194
|
+
|
1195
|
+
deserialized = self._deserialize("str", pipeline_response.http_response)
|
1196
|
+
|
1197
|
+
if cls:
|
1198
|
+
return cls(pipeline_response, deserialized, {}) # type: ignore
|
1199
|
+
|
1200
|
+
return deserialized # type: ignore
|
1201
|
+
|
1202
|
+
@distributed_trace
|
1203
|
+
def revoke_refresh_token_by_jti(self, jti: str, **kwargs: Any) -> str:
|
1204
|
+
"""Revoke Refresh Token By Jti.
|
1121
1205
|
|
1122
1206
|
Revoke a refresh token. If the user has the ``proxy_management`` property, then
|
1123
1207
|
the subject is not used to filter the refresh tokens.
|
@@ -1141,7 +1225,7 @@ class AuthOperations: # pylint: disable=abstract-class-instantiated
|
|
1141
1225
|
|
1142
1226
|
cls: ClsType[str] = kwargs.pop("cls", None)
|
1143
1227
|
|
1144
|
-
_request =
|
1228
|
+
_request = build_auth_revoke_refresh_token_by_jti_request(
|
1145
1229
|
jti=jti,
|
1146
1230
|
headers=_headers,
|
1147
1231
|
params=_params,
|
@@ -4,27 +4,30 @@ 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=K5LmWbS8wus3nSgMlOMfrMCPBuXC32d6SePpkOqxU64,854
|
8
|
+
diracx/client/_generated/_client.py,sha256=Ohg4ZZrz6XhcN3cxaHHnRcA7wubOwYQcbO71_VfDOiY,4842
|
9
|
+
diracx/client/_generated/_configuration.py,sha256=jbXlxLCDaNxmOu6r51wX37tb5mBUQ-cE2lh6BRfbeto,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/
|
15
|
-
diracx/client/_generated/
|
16
|
-
diracx/client/_generated/
|
14
|
+
diracx/client/_generated/_utils/__init__.py,sha256=X-BE5tFZdE4XVvGooA4AktUf6OxXdIgtFwbAzdUUwdM,351
|
15
|
+
diracx/client/_generated/_utils/serialization.py,sha256=G2c3TUTWvHjEDCE057xsPqUCJ7mQuDAWG2gpnU15HjA,84254
|
16
|
+
diracx/client/_generated/_utils/utils.py,sha256=Z3NTveLv6XXcsS5BySQ3kf7b3D0lKkorskTdP0W-iD8,1936
|
17
|
+
diracx/client/_generated/aio/__init__.py,sha256=K5LmWbS8wus3nSgMlOMfrMCPBuXC32d6SePpkOqxU64,854
|
18
|
+
diracx/client/_generated/aio/_client.py,sha256=qA3pNGojCfwrWQJAKWst-Bwgw3DBfpHSEFKqOy_44uM,4963
|
19
|
+
diracx/client/_generated/aio/_configuration.py,sha256=H791RM5nWu8GQv4oX8SapWnTM9psb3yfzDQ28oFYd1E,1968
|
17
20
|
diracx/client/_generated/aio/_patch.py,sha256=qBkXxqrKaKXgMV2x_OC2VK9qmd8e34xXQpqSh71Ub0M,692
|
18
21
|
diracx/client/_generated/aio/_vendor.py,sha256=6EFsP3ValI_vbZ_ivnRYHg_oRjZ5jDiLlUqvAYyDMhM,1936
|
19
|
-
diracx/client/_generated/aio/operations/__init__.py,sha256=
|
20
|
-
diracx/client/_generated/aio/operations/_operations.py,sha256=
|
22
|
+
diracx/client/_generated/aio/operations/__init__.py,sha256=BKbrcD71mFBj21417z9UV9UDvalcjgFvZGCOOerp8pM,1070
|
23
|
+
diracx/client/_generated/aio/operations/_operations.py,sha256=VV7kzIk969xU65Zbti7GvYeyyw-Uf-S5xK-vqptNRcY,79144
|
21
24
|
diracx/client/_generated/aio/operations/_patch.py,sha256=jyk2R4wUaClz07zK9TiH6V_SxKakrHNZAUm35lqUC6k,816
|
22
|
-
diracx/client/_generated/models/__init__.py,sha256=
|
23
|
-
diracx/client/_generated/models/_enums.py,sha256=
|
24
|
-
diracx/client/_generated/models/_models.py,sha256=
|
25
|
+
diracx/client/_generated/models/__init__.py,sha256=xD2bYBbbopJUQ_hbCt1Qn95Ay2eqrOh5q6jkOM0wf6E,2717
|
26
|
+
diracx/client/_generated/models/_enums.py,sha256=rlHqPw3McyWfdK_EO5GoR17bQcpMHR7E_Ak59cCgUwU,1738
|
27
|
+
diracx/client/_generated/models/_models.py,sha256=kVTN8UQhO_WYOLYborLvtm4_958mr77Y8QG6fXtOe3s,44990
|
25
28
|
diracx/client/_generated/models/_patch.py,sha256=D8bxd8gAeLH7RWZNUuzTT7P_dyot9Cey91Rb-UwI2BI,1501
|
26
|
-
diracx/client/_generated/operations/__init__.py,sha256=
|
27
|
-
diracx/client/_generated/operations/_operations.py,sha256=
|
29
|
+
diracx/client/_generated/operations/__init__.py,sha256=BKbrcD71mFBj21417z9UV9UDvalcjgFvZGCOOerp8pM,1070
|
30
|
+
diracx/client/_generated/operations/_operations.py,sha256=KNj2EjziyqAnumnUOoUdHFyIZRzv_1KjWFVyPsA3U1g,97516
|
28
31
|
diracx/client/_generated/operations/_patch.py,sha256=xE3M4iVZE5LKlg9XfMveXmOMxFQZCDrPE40nba9VUq8,816
|
29
32
|
diracx/client/patches/utils.py,sha256=OXJx-jSwou-BQm3PrOaZgRWLj-8EFXgjTDVms6uWdN4,10732
|
30
33
|
diracx/client/patches/auth/aio.py,sha256=7QKUtoNRZeMes8I1zeyVpahh4rIT-MY7IqvB4amNBYA,1483
|
@@ -37,6 +40,6 @@ diracx/client/patches/jobs/aio.py,sha256=ZBkmgyBPsL14lr0fK20wmxGBJz2jq4HMmXQMEdT
|
|
37
40
|
diracx/client/patches/jobs/common.py,sha256=Uts6UH8eMOE1cSVnLaH4OBsg4-EBhvGcEsqZVUUCLSo,2371
|
38
41
|
diracx/client/patches/jobs/sync.py,sha256=4AVvzZIjjeUXWDnuSMv0vvH5OAff-L7aYHvi3dTh-xw,1132
|
39
42
|
_diracx_client_importer.pth,sha256=wJwJieKpvzPdCVaM-1oKiKN8OL3wBaHgrl8qyexFoKY,31
|
40
|
-
diracx_client-0.0.
|
41
|
-
diracx_client-0.0.
|
42
|
-
diracx_client-0.0.
|
43
|
+
diracx_client-0.0.1a44.dist-info/METADATA,sha256=w7X7ujD06YKSNGtYIs3Q-aKZIzPtbIgPWOa5RZ3Rl50,585
|
44
|
+
diracx_client-0.0.1a44.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
45
|
+
diracx_client-0.0.1a44.dist-info/RECORD,,
|
File without changes
|