openstack.identity.v3.role_domain_user_assignment

RoleDomainUserAssignment 类

RoleDomainUserAssignment 类继承自 Resource

class openstack.identity.v3.role_domain_user_assignment.RoleDomainUserAssignment(_synchronized=False, connection=None, **attrs)

基础资源

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

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

resource_key = 'role'

资源的单数形式的键。

resources_key = 'roles'

资源的复数形式的键。

base_path = '/domains/%(domain_id)s/users/%(user_id)s/roles'

此资源的 URI 的基本部分。

allow_list = True

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

name

角色的名称 类型: 字符串

服务的资源链接。

domain_id

要列出分配的域的 ID。 类型: 字符串

user_id

要列出分配的用户 ID。 类型: 字符串