openstack.clustering.v1.receiver

Receiver 类

Receiver 类继承自 Resource

class openstack.clustering.v1.receiver.Receiver(_synchronized=False, connection=None, **attrs)

基础资源

参数:
  • _synchronized (bool) – 这不打算直接使用。请参阅 new()existing()

  • connection (openstack.connection.Connection) – 对正在使用的 Connection 的引用。默认为 None,允许在单元测试中等情况下使用不带活动 Connection 的 Resource 对象。Resource 代码中对 self._connection 的使用应使用 None 检查进行保护。

resource_key = 'receiver'

资源的单数形式的键。

resources_key = 'receivers'

资源的复数形式的键。

base_path = '/receivers'

此资源的 URI 的基本部分。

allow_list = True

允许对此资源进行列表操作。

allow_fetch = True

允许对此资源进行获取操作。

allow_create = True

允许对此资源进行创建操作。

allow_commit = True

允许对此资源进行更新操作。

allow_delete = True

允许对此资源进行删除操作。

commit_method = 'PATCH'

提交资源的 HTTP 方法 (PUT、PATCH、POST)

name

接收器的名称。

type

接收器的类型。

user_id

创建接收器的用户 ID,因此是其所有者。

project_id

此接收器所属的项目 ID。

domain_id

接收器的域 ID。

cluster_id

目标集群的 ID。

action

目标操作的名称。

created_at

创建接收器的时间戳。

updated_at

上次更新接收器的时间戳。

actor

被模拟用户的凭据。

params

包含提供给目标操作的键值对的字典。

channel

关于您可以通过其触发接收器从而关联操作的通道的信息。