otcextensions.sdk.smn.v2.topic

The SMN Topic Class

The Topic class inherits from Resource.

class otcextensions.sdk.smn.v2.topic.Topic(_synchronized=False, connection=None, **attrs)

The base resource

Parameters:
  • _synchronized (bool) – This is not intended to be used directly. See new() and existing().

  • 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] = 'topics'

Plural form of key for resource.

base_path: str = '/notifications/topics'

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

Resource identifier of a topic, which is unique

create_time

Time when the topic was created The UTC time is in YYYY-MM-DDTHH:MM:SSZ format.

display_name

Topic display name, which is presented as the name of the email sender in email messages Contains only digits, letters, underscores and hyphens

name: ty.Union[Body, URI]

Specifies the Topic Name. Contains only digits, letters, underscores and hyphens

push_policy

Message push policy 0: Failed messages will be saved in message queues. 1: Failed messages will be discarded.

request_id

Unique Request ID

update_time

Time when the topic was updated The UTC time is in YYYY-MM-DDTHH:MM:SSZ format.

class otcextensions.sdk.smn.v2.topic.TopicAttribute(_synchronized=False, connection=None, **attrs)

The base resource

Parameters:
  • _synchronized (bool) – This is not intended to be used directly. See new() and existing().

  • 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/attributes'

The base part of the URI for this resource.

allow_list = True

Allow list operation for this resource.

allow_commit = True

Allow update operation for this resource.

allow_delete = True

Allow delete operation for this resource.

topic_urn

Properties Topic URN

request_id

Unique Request ID

attributes

Unique Request ID

value

Values of topic attributes

class otcextensions.sdk.smn.v2.topic.AttributeSpec(_synchronized=False, connection=None, **attrs)

The base resource

Parameters:
  • _synchronized (bool) – This is not intended to be used directly. See new() and existing().

  • 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.

access_policy

Properties topic access policy

introduction

Introduction