otcextensions.sdk.smn.v2.message¶
The SMN Message Class¶
The Message
class inherits from
Resource
.
- class otcextensions.sdk.smn.v2.message.Message(_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.
- base_path: str = '/notifications/topics/%(topic_urn)s/publish'¶
The base part of the URI for this resource.
- allow_create = True¶
Allow create operation for this resource.
- message_id¶
Message ID, which is unique
- request_id¶
Request ID, which is unique.
- subject¶
Message subject, which is used as the email subject when you publish email messages.
- message¶
Message content. The message content is a UTF-8-coded character string of no more than 256 KB. For SMS subscribers, if the content exceeds 256 bytes, the system will divide it into multiple messages and send only the first two.
- message_structure¶
Message structure, which contains JSON character strings. Specify protocols in the structure, which can be http, https, email, dms, and sms.
- message_template_name¶
Message template name, which can be obtained according to Querying Message Templates
- time_to_live¶
Time-to-live (TTL) of a message, specifically, the maximum time period for retaining the message in the system
- topic_urn¶
Resource identifier of a topic, which is unique