diff --git a/brewtils/models.py b/brewtils/models.py index 7807b537..3fcb1748 100644 --- a/brewtils/models.py +++ b/brewtils/models.py @@ -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, @@ -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 diff --git a/brewtils/rest/publish_client.py b/brewtils/rest/publish_client.py index fa1a2ee3..e5552033 100644 --- a/brewtils/rest/publish_client.py +++ b/brewtils/rest/publish_client.py @@ -12,7 +12,7 @@ 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( @@ -20,7 +20,7 @@ class PublishClient(Object): 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: diff --git a/brewtils/schemas.py b/brewtils/schemas.py index 2cb06be8..c571d584 100644 --- a/brewtils/schemas.py +++ b/brewtils/schemas.py @@ -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