-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
200 additions
and
137 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,20 @@ | ||
# coding=utf-8 | ||
# -------------------------------------------------------------------------- | ||
# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.2, generator: @autorest/[email protected].0) | ||
# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.3, generator: @autorest/[email protected].5) | ||
# Changes may cause incorrect behavior and will be lost if the code is regenerated. | ||
# -------------------------------------------------------------------------- | ||
# pylint: disable=wrong-import-position | ||
|
||
from ._client import Dirac | ||
from typing import TYPE_CHECKING | ||
|
||
if TYPE_CHECKING: | ||
from ._patch import * # pylint: disable=unused-wildcard-import | ||
|
||
from ._client import Dirac # type: ignore | ||
|
||
try: | ||
from ._patch import __all__ as _patch_all | ||
from ._patch import * # pylint: disable=unused-wildcard-import | ||
from ._patch import * | ||
except ImportError: | ||
_patch_all = [] | ||
from ._patch import patch_sdk as _patch_sdk | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# coding=utf-8 | ||
# -------------------------------------------------------------------------- | ||
# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.2, generator: @autorest/[email protected].0) | ||
# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.3, generator: @autorest/[email protected].5) | ||
# Changes may cause incorrect behavior and will be lost if the code is regenerated. | ||
# -------------------------------------------------------------------------- | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# coding=utf-8 | ||
# -------------------------------------------------------------------------- | ||
# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.2, generator: @autorest/[email protected].0) | ||
# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.3, generator: @autorest/[email protected].5) | ||
# Changes may cause incorrect behavior and will be lost if the code is regenerated. | ||
# -------------------------------------------------------------------------- | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# -------------------------------------------------------------------------- | ||
# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.2, generator: @autorest/[email protected].0) | ||
# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.3, generator: @autorest/[email protected].5) | ||
# Changes may cause incorrect behavior and will be lost if the code is regenerated. | ||
# -------------------------------------------------------------------------- | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,20 @@ | ||
# coding=utf-8 | ||
# -------------------------------------------------------------------------- | ||
# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.2, generator: @autorest/[email protected].0) | ||
# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.3, generator: @autorest/[email protected].5) | ||
# Changes may cause incorrect behavior and will be lost if the code is regenerated. | ||
# -------------------------------------------------------------------------- | ||
# pylint: disable=wrong-import-position | ||
|
||
from ._client import Dirac | ||
from typing import TYPE_CHECKING | ||
|
||
if TYPE_CHECKING: | ||
from ._patch import * # pylint: disable=unused-wildcard-import | ||
|
||
from ._client import Dirac # type: ignore | ||
|
||
try: | ||
from ._patch import __all__ as _patch_all | ||
from ._patch import * # pylint: disable=unused-wildcard-import | ||
from ._patch import * | ||
except ImportError: | ||
_patch_all = [] | ||
from ._patch import patch_sdk as _patch_sdk | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# coding=utf-8 | ||
# -------------------------------------------------------------------------- | ||
# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.2, generator: @autorest/[email protected].0) | ||
# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.3, generator: @autorest/[email protected].5) | ||
# Changes may cause incorrect behavior and will be lost if the code is regenerated. | ||
# -------------------------------------------------------------------------- | ||
|
||
|
2 changes: 1 addition & 1 deletion
2
diracx-client/src/diracx/client/generated/aio/_configuration.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# coding=utf-8 | ||
# -------------------------------------------------------------------------- | ||
# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.2, generator: @autorest/[email protected].0) | ||
# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.3, generator: @autorest/[email protected].5) | ||
# Changes may cause incorrect behavior and will be lost if the code is regenerated. | ||
# -------------------------------------------------------------------------- | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# -------------------------------------------------------------------------- | ||
# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.2, generator: @autorest/[email protected].0) | ||
# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.3, generator: @autorest/[email protected].5) | ||
# Changes may cause incorrect behavior and will be lost if the code is regenerated. | ||
# -------------------------------------------------------------------------- | ||
|
||
|
18 changes: 12 additions & 6 deletions
18
diracx-client/src/diracx/client/generated/aio/operations/__init__.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,22 @@ | ||
# coding=utf-8 | ||
# -------------------------------------------------------------------------- | ||
# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.2, generator: @autorest/[email protected].0) | ||
# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.3, generator: @autorest/[email protected].5) | ||
# Changes may cause incorrect behavior and will be lost if the code is regenerated. | ||
# -------------------------------------------------------------------------- | ||
# pylint: disable=wrong-import-position | ||
|
||
from ._operations import WellKnownOperations | ||
from ._operations import AuthOperations | ||
from ._operations import ConfigOperations | ||
from ._operations import JobsOperations | ||
from typing import TYPE_CHECKING | ||
|
||
if TYPE_CHECKING: | ||
from ._patch import * # pylint: disable=unused-wildcard-import | ||
|
||
from ._operations import WellKnownOperations # type: ignore | ||
from ._operations import AuthOperations # type: ignore | ||
from ._operations import ConfigOperations # type: ignore | ||
from ._operations import JobsOperations # type: ignore | ||
|
||
from ._patch import __all__ as _patch_all | ||
from ._patch import * # pylint: disable=unused-wildcard-import | ||
from ._patch import * | ||
from ._patch import patch_sdk as _patch_sdk | ||
|
||
__all__ = [ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
# pylint: disable=too-many-lines | ||
# coding=utf-8 | ||
# -------------------------------------------------------------------------- | ||
# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.2, generator: @autorest/[email protected].0) | ||
# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.3, generator: @autorest/[email protected].5) | ||
# Changes may cause incorrect behavior and will be lost if the code is regenerated. | ||
# -------------------------------------------------------------------------- | ||
from io import IOBase | ||
|
@@ -236,9 +236,25 @@ async def initiate_device_flow( | |
"""Initiate Device Flow. | ||
Initiate the device flow against DIRAC authorization Server. | ||
Scope must have exactly up to one ``group`` (otherwise default) and | ||
one or more ``property`` scope. | ||
If no property, then get default one. | ||
Scope details: | ||
* | ||
If only VO is provided: Uses the default group and its properties for the VO. | ||
* | ||
If VO and group are provided: Uses the specified group and its properties for the VO. | ||
* | ||
If VO and properties are provided: Uses the default group and combines its properties with | ||
the | ||
provided properties. | ||
* | ||
If VO, group, and properties are provided: Uses the specified group and combines its | ||
properties with the | ||
provided properties. | ||
Offers the user to go with the browser to | ||
``auth/<vo>/device?user_code=XYZ``. | ||
|
@@ -633,9 +649,9 @@ async def userinfo(self, **kwargs: Any) -> _models.UserInfoResponse: | |
async def authorization_flow( | ||
self, | ||
*, | ||
response_type: Union[str, _models.Enum0], | ||
response_type: str, | ||
code_challenge: str, | ||
code_challenge_method: Union[str, _models.Enum1], | ||
code_challenge_method: str, | ||
client_id: str, | ||
redirect_uri: str, | ||
scope: str, | ||
|
@@ -648,16 +664,35 @@ async def authorization_flow( | |
It will redirect to the actual OpenID server (IAM, CheckIn) to | ||
perform a authorization code flow. | ||
Scope details: | ||
* | ||
If only VO is provided: Uses the default group and its properties for the VO. | ||
* | ||
If VO and group are provided: Uses the specified group and its properties for the VO. | ||
* | ||
If VO and properties are provided: Uses the default group and combines its properties with | ||
the | ||
provided properties. | ||
* | ||
If VO, group, and properties are provided: Uses the specified group and combines its | ||
properties with the | ||
provided properties. | ||
We set the user details obtained from the user authorize flow in a cookie | ||
to be able to map the authorization flow with the corresponding | ||
user authorize flow. | ||
:keyword response_type: "code" Required. | ||
:paramtype response_type: str or ~generated.models.Enum0 | ||
:keyword response_type: Required. | ||
:paramtype response_type: str | ||
:keyword code_challenge: Required. | ||
:paramtype code_challenge: str | ||
:keyword code_challenge_method: "S256" Required. | ||
:paramtype code_challenge_method: str or ~generated.models.Enum1 | ||
:keyword code_challenge_method: Required. | ||
:paramtype code_challenge_method: str | ||
:keyword client_id: Required. | ||
:paramtype client_id: str | ||
:keyword redirect_uri: Required. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,54 +1,60 @@ | ||
# coding=utf-8 | ||
# -------------------------------------------------------------------------- | ||
# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.2, generator: @autorest/[email protected].0) | ||
# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.3, generator: @autorest/[email protected].5) | ||
# Changes may cause incorrect behavior and will be lost if the code is regenerated. | ||
# -------------------------------------------------------------------------- | ||
# pylint: disable=wrong-import-position | ||
|
||
from ._models import BodyAuthToken | ||
from ._models import BodyAuthTokenGrantType | ||
from ._models import DevelopmentSettings | ||
from ._models import GroupInfo | ||
from ._models import HTTPValidationError | ||
from ._models import InitiateDeviceFlowResponse | ||
from ._models import InsertedJob | ||
from ._models import JobSearchParams | ||
from ._models import JobSearchParamsSearchItem | ||
from ._models import JobStatusReturn | ||
from ._models import JobStatusUpdate | ||
from ._models import JobSummaryParams | ||
from ._models import JobSummaryParamsSearchItem | ||
from ._models import LimitedJobStatusReturn | ||
from ._models import Metadata | ||
from ._models import SandboxDownloadResponse | ||
from ._models import SandboxInfo | ||
from ._models import SandboxUploadResponse | ||
from ._models import ScalarSearchSpec | ||
from ._models import ScalarSearchSpecValue | ||
from ._models import SetJobStatusReturn | ||
from ._models import SortSpec | ||
from ._models import SupportInfo | ||
from ._models import TokenResponse | ||
from ._models import UserInfoResponse | ||
from ._models import VOInfo | ||
from ._models import ValidationError | ||
from ._models import ValidationErrorLocItem | ||
from ._models import VectorSearchSpec | ||
from ._models import VectorSearchSpecValues | ||
from typing import TYPE_CHECKING | ||
|
||
from ._enums import ChecksumAlgorithm | ||
from ._enums import Enum0 | ||
from ._enums import Enum1 | ||
from ._enums import Enum2 | ||
from ._enums import Enum3 | ||
from ._enums import Enum4 | ||
from ._enums import JobStatus | ||
from ._enums import SandboxFormat | ||
from ._enums import SandboxType | ||
from ._enums import ScalarSearchOperator | ||
from ._enums import SortDirection | ||
from ._enums import VectorSearchOperator | ||
if TYPE_CHECKING: | ||
from ._patch import * # pylint: disable=unused-wildcard-import | ||
|
||
|
||
from ._models import ( # type: ignore | ||
BodyAuthToken, | ||
BodyAuthTokenGrantType, | ||
DevelopmentSettings, | ||
GroupInfo, | ||
HTTPValidationError, | ||
InitiateDeviceFlowResponse, | ||
InsertedJob, | ||
JobSearchParams, | ||
JobSearchParamsSearchItem, | ||
JobStatusReturn, | ||
JobStatusUpdate, | ||
JobSummaryParams, | ||
JobSummaryParamsSearchItem, | ||
LimitedJobStatusReturn, | ||
Metadata, | ||
SandboxDownloadResponse, | ||
SandboxInfo, | ||
SandboxUploadResponse, | ||
ScalarSearchSpec, | ||
ScalarSearchSpecValue, | ||
SetJobStatusReturn, | ||
SortSpec, | ||
SupportInfo, | ||
TokenResponse, | ||
UserInfoResponse, | ||
VOInfo, | ||
ValidationError, | ||
ValidationErrorLocItem, | ||
VectorSearchSpec, | ||
VectorSearchSpecValues, | ||
) | ||
|
||
from ._enums import ( # type: ignore | ||
ChecksumAlgorithm, | ||
JobStatus, | ||
SandboxFormat, | ||
SandboxType, | ||
ScalarSearchOperator, | ||
SortDirection, | ||
VectorSearchOperator, | ||
) | ||
from ._patch import __all__ as _patch_all | ||
from ._patch import * # pylint: disable=unused-wildcard-import | ||
from ._patch import * | ||
from ._patch import patch_sdk as _patch_sdk | ||
|
||
__all__ = [ | ||
|
@@ -83,11 +89,6 @@ | |
"VectorSearchSpec", | ||
"VectorSearchSpecValues", | ||
"ChecksumAlgorithm", | ||
"Enum0", | ||
"Enum1", | ||
"Enum2", | ||
"Enum3", | ||
"Enum4", | ||
"JobStatus", | ||
"SandboxFormat", | ||
"SandboxType", | ||
|
Oops, something went wrong.