sym.sdk.templates.template.Template

class sym.sdk.templates.template.Template(srn: Union[sym.sdk.resource.SRN, str])

Bases: sym.sdk.resource.SymResource

The Template object represents a common security workflow supported out of the box by Sym.

Methods

dict()

Represent this resource as a dictionary.

ignore(*[, message])

Generates a request to fire an Event of type ignore to nullify the incoming Event and send a message to the acting User.

Attributes

name

An alias for this resource's slug, derived from its SRN.

srn

A SRN object that represents the unique identifier for this resource.

dict()

Represent this resource as a dictionary.

classmethod ignore(*, message: Optional[str] = None, **kwargs)

Generates a request to fire an Event of type ignore to nullify the incoming Event and send a message to the acting User.

Parameters
  • message – The message to send to the User who triggered the original Event.

  • **kwargs – Arbitrary additional values to pass through to the fired Event’s payload.

property name

An alias for this resource’s slug, derived from its SRN.

property srn

A SRN object that represents the unique identifier for this resource.