otcextensions.sdk.smn.v2.template¶
The SMN Template Class¶
The Template
class inherits from
Resource
.
- class otcextensions.sdk.smn.v2.template.Template(_synchronized=False, connection=None, **attrs)¶
The base resource
- Parameters:
_synchronized (bool) – This is not intended to be used directly. See
new()
andexisting()
.connection (openstack.connection.Connection) – Reference to the Connection being used. Defaults to None to allow Resource objects to be used without an active Connection, such as in unit tests. Use of
self._connection
in Resource code should protect itself with a check for None.
- resources_key: ty.Optional[str] = 'message_templates'¶
Plural form of key for resource.
- base_path: str = '/notifications/message_template'¶
The base part of the URI for this resource.
- allow_create = True¶
Allow create operation for this resource.
- allow_fetch = True¶
Allow get operation for this resource.
- allow_commit = True¶
Allow update operation for this resource.
- allow_delete = True¶
Allow delete operation for this resource.
- allow_list = True¶
Allow list operation for this resource.
- id¶
Unique Request ID
- name: ty.Union[Body, URI]¶
Specifies the Template Name. Contains only digits, letters, underscores and hyphens.
- protocol¶
Protocol supported by the template.
- content¶
Template content, which currently supports plain text only.
- tag_names¶
Template variable list.
- create_time¶
Time when the template was created. The UTC time is in YYYY-MM-DDTHH:MM:SSZ format.
- update_time¶
Last time when the template was updated. The UTC time is in YYYY-MM-DDTHH:MM:SSZ format.
- request_id¶
Request ID, which is unique.