From e1f44d774561ff7366734b0114a861dbf0294e86 Mon Sep 17 00:00:00 2001 From: TheBurchLog <5104941+TheBurchLog@users.noreply.github.com> Date: Wed, 20 Mar 2024 14:46:47 -0400 Subject: [PATCH] Adding Remote Roles --- brewtils/models.py | 2 ++ brewtils/schemas.py | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/brewtils/models.py b/brewtils/models.py index 88bf76d1..ba2bcf10 100644 --- a/brewtils/models.py +++ b/brewtils/models.py @@ -1697,6 +1697,8 @@ def __repr__(self): self.scope_commands, ) +class RemoteRole(Role): + pass class RemoteUserMap(BaseModel): schema = "RemoteUserMapSchema" diff --git a/brewtils/schemas.py b/brewtils/schemas.py index 015e9d0e..8736a20a 100644 --- a/brewtils/schemas.py +++ b/brewtils/schemas.py @@ -587,6 +587,9 @@ class UserSchema(BaseSchema): is_remote = fields.Boolean(allow_none=True) metadata = fields.Dict(allow_none=True) +class RemoteUserSchema(UserSchema): + pass + model_schema_map.update( { @@ -618,6 +621,7 @@ class UserSchema(BaseSchema): "Runner": RunnerSchema, "Resolvable": ResolvableSchema, "Role": RoleSchema, + "RemoteRole": RemoteRoleSchema, "User": UserSchema, "RemoteUserMap": RemoteUserMapSchema, # Compatibility for the Job trigger types