Skip to content

Commit a957480

Browse files
feat: Adding pilot registrations, with secret management
1 parent 8fd7d1c commit a957480

File tree

54 files changed

+10602
-283
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+10602
-283
lines changed

diracx-cli/src/diracx/cli/internal/config.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def generate_cs(config_repo: str):
5959
update_config_and_commit(
6060
repo_path=repo_path, config=config, message="Initial commit"
6161
)
62-
typer.echo(f"Successfully created repo in {config_repo}", err=True)
62+
typer.echo(f"Successfully created repo in {config_repo}")
6363

6464

6565
@app.command()
@@ -99,7 +99,7 @@ def add_vo(
9999
config=config,
100100
message=f"Added vo {vo} registry (default group {default_group} and idp {idp_url})",
101101
)
102-
typer.echo(f"Successfully added vo to {config_repo}", err=True)
102+
typer.echo(f"Successfully added vo to {config_repo}")
103103

104104

105105
@app.command()
@@ -130,7 +130,7 @@ def add_group(
130130
update_config_and_commit(
131131
repo_path=repo_path, config=config, message=f"Added group {group} in {vo}"
132132
)
133-
typer.echo(f"Successfully added group to {config_repo}", err=True)
133+
typer.echo(f"Successfully added group to {config_repo}")
134134

135135

136136
@app.command()
@@ -177,7 +177,7 @@ def add_user(
177177
config=config,
178178
message=f"Added user {sub} ({preferred_username}) to vo {vo} and groups {groups}",
179179
)
180-
typer.echo(f"Successfully added user to {config_repo}", err=True)
180+
typer.echo(f"Successfully added user to {config_repo}")
181181

182182

183183
def update_config_and_commit(repo_path: Path, config: Config, message: str):

diracx-client/src/diracx/client/_generated/_client.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
AuthOperations,
2020
ConfigOperations,
2121
JobsOperations,
22+
PilotOperations,
23+
PilotsOperations,
2224
WellKnownOperations,
2325
)
2426

@@ -34,6 +36,10 @@ class Dirac: # pylint: disable=client-accepts-api-version-keyword
3436
:vartype config: _generated.operations.ConfigOperations
3537
:ivar jobs: JobsOperations operations
3638
:vartype jobs: _generated.operations.JobsOperations
39+
:ivar pilot: PilotOperations operations
40+
:vartype pilot: _generated.operations.PilotOperations
41+
:ivar pilots: PilotsOperations operations
42+
:vartype pilots: _generated.operations.PilotsOperations
3743
:keyword endpoint: Service URL. Required. Default value is "".
3844
:paramtype endpoint: str
3945
"""
@@ -86,6 +92,12 @@ def __init__( # pylint: disable=missing-client-constructor-parameter-credential
8692
self.jobs = JobsOperations(
8793
self._client, self._config, self._serialize, self._deserialize
8894
)
95+
self.pilot = PilotOperations(
96+
self._client, self._config, self._serialize, self._deserialize
97+
)
98+
self.pilots = PilotsOperations(
99+
self._client, self._config, self._serialize, self._deserialize
100+
)
89101

90102
def send_request(
91103
self, request: HttpRequest, *, stream: bool = False, **kwargs: Any

diracx-client/src/diracx/client/_generated/aio/_client.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
AuthOperations,
2020
ConfigOperations,
2121
JobsOperations,
22+
PilotOperations,
23+
PilotsOperations,
2224
WellKnownOperations,
2325
)
2426

@@ -34,6 +36,10 @@ class Dirac: # pylint: disable=client-accepts-api-version-keyword
3436
:vartype config: _generated.aio.operations.ConfigOperations
3537
:ivar jobs: JobsOperations operations
3638
:vartype jobs: _generated.aio.operations.JobsOperations
39+
:ivar pilot: PilotOperations operations
40+
:vartype pilot: _generated.aio.operations.PilotOperations
41+
:ivar pilots: PilotsOperations operations
42+
:vartype pilots: _generated.aio.operations.PilotsOperations
3743
:keyword endpoint: Service URL. Required. Default value is "".
3844
:paramtype endpoint: str
3945
"""
@@ -86,6 +92,12 @@ def __init__( # pylint: disable=missing-client-constructor-parameter-credential
8692
self.jobs = JobsOperations(
8793
self._client, self._config, self._serialize, self._deserialize
8894
)
95+
self.pilot = PilotOperations(
96+
self._client, self._config, self._serialize, self._deserialize
97+
)
98+
self.pilots = PilotsOperations(
99+
self._client, self._config, self._serialize, self._deserialize
100+
)
89101

90102
def send_request(
91103
self, request: HttpRequest, *, stream: bool = False, **kwargs: Any

diracx-client/src/diracx/client/_generated/aio/operations/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
from ._operations import AuthOperations # type: ignore
1515
from ._operations import ConfigOperations # type: ignore
1616
from ._operations import JobsOperations # type: ignore
17+
from ._operations import PilotOperations # type: ignore
18+
from ._operations import PilotsOperations # type: ignore
1719

1820
from ._patch import __all__ as _patch_all
1921
from ._patch import *
@@ -24,6 +26,8 @@
2426
"AuthOperations",
2527
"ConfigOperations",
2628
"JobsOperations",
29+
"PilotOperations",
30+
"PilotsOperations",
2731
]
2832
__all__.extend([p for p in _patch_all if p not in __all__]) # pyright: ignore
2933
_patch_sdk()

0 commit comments

Comments
 (0)