openstack.accelerator.v2.deployable

Deployable 类

Deployable 类继承自 Resource

class openstack.accelerator.v2.deployable.Deployable(_synchronized=False, connection=None, **attrs)

基础资源

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

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

resource_key = 'deployable'

资源的单数形式的键。

resources_key = 'deployables'

资源的复数形式的键。

base_path = '/deployables'

此资源的 URI 的基本部分。

allow_create = False

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

allow_fetch = True

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

allow_commit = False

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

allow_delete = False

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

allow_list = True

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

allow_patch = True

允许对此资源进行 patch 操作。

created_at

此 deployable 创建的时间戳。

device_id

deployable 的 device_id。

id

deployable 的 UUID。

name

deployable 的名称。

num_accelerators

deployable 的 num_accelerator。

parent_id

deployable 的 parent_id。

root_id

deployable 的 root_id。

updated_at

此 deployable 更新的时间戳。