Skip to content

Commit

Permalink
Adding is_event to requests
Browse files Browse the repository at this point in the history
  • Loading branch information
TheBurchLog committed Oct 31, 2023
1 parent 29f91c5 commit 4c42ca3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 2 additions & 0 deletions brewtils/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -633,6 +633,7 @@ def __init__(
namespace=None,
command=None,
id=None, # noqa # shadows built-in
is_event=None,
parent=None,
children=None,
parameters=None,
Expand Down Expand Up @@ -663,6 +664,7 @@ def __init__(
output_type=output_type,
)
self.id = id
self.is_event = is_event or False
self.parent = parent
self.children = children
self.output = output
Expand Down
4 changes: 2 additions & 2 deletions brewtils/rest/publish_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@ class PublishClient(Object):
**Topics are internal routing values for Beer Garden. These are not RabbitMQ/Pika topics.**
PublishClient creation:
This class is intended to be the main way to create Beer-garden topic based requestes.
This class is intended to be the main way to create Beer-garden topic based requests.
Create an instance with Beer-garden connection information:
client = PublishClient(
bg_host="host",
bg_port=2337,
)
Note: Passing an empty string as the system_namespace parameter will evalutate
Note: Passing an empty string as the system_namespace parameter will evaluate
to the local garden's default namespace.
Making a Request:
Expand Down
1 change: 1 addition & 0 deletions brewtils/schemas.py
Original file line number Diff line number Diff line change
Expand Up @@ -329,6 +329,7 @@ class RequestTemplateSchema(BaseSchema):

class RequestSchema(RequestTemplateSchema):
id = fields.Str(allow_none=True)
is_event = fields.Bool(allow_none=True)
parent = fields.Nested("self", exclude=("children",), allow_none=True)
children = fields.Nested(
"self", exclude=("parent", "children"), many=True, default=None, allow_none=True
Expand Down

0 comments on commit 4c42ca3

Please sign in to comment.