Skip to content

Latest commit

 

History

History
33 lines (24 loc) · 1.55 KB

File metadata and controls

33 lines (24 loc) · 1.55 KB

NotificationTemplate

{@link NotificationTemplate NotificationTemplate} is a custom extension that defines a notification template.

It describes the notification template's name, description, and the template content.

{@link Spec#getReasonSelector Spec#getReasonSelector()} is used to select the template by reasonType and language, if multiple templates are matched, the best match will be selected. This is useful when you want to override the default template.

Properties

Name Type Description Notes
api_version str
kind str
metadata Metadata
spec NotificationTemplateSpec [optional]

Example

from halo_client.models.notification_template import NotificationTemplate

# TODO update the JSON string below
json = "{}"
# create an instance of NotificationTemplate from a JSON string
notification_template_instance = NotificationTemplate.from_json(json)
# print the JSON string representation of the object
print(NotificationTemplate.to_json())

# convert the object into a dict
notification_template_dict = notification_template_instance.to_dict()
# create an instance of NotificationTemplate from a dict
notification_template_from_dict = NotificationTemplate.from_dict(notification_template_dict)

[Back to Model list] [Back to API list] [Back to README]