openstack.identity.v3.application_credential

ApplicationCredential 类

ApplicationCredential 类继承自 Resource

class openstack.identity.v3.application_credential.ApplicationCredential(_synchronized=False, connection=None, **attrs)

基础资源

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

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

resource_key = 'application_credential'

资源的单数形式的键。

resources_key = 'application_credentials'

资源的复数形式的键。

base_path = '/users/%(user_id)s/application_credentials'

此资源的 URI 的基本部分。

allow_create = True

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

allow_fetch = True

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

allow_commit = True

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

allow_delete = True

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

allow_list = True

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

user_id

使用应用程序凭证的用户 ID。类型:字符串

user

使用应用程序凭证的用户对象。类型:字符串

应用程序凭证资源的链接。

name

用户的名称。类型:字符串

description

应用程序凭证用途的描述。类型:字符串

expires_at

应用程序凭证的过期时间。类型:字符串

roles

用户的角色。类型:列表

unrestricted

限制应用程序凭证。类型:布尔值

project_id

项目 ID。类型:字符串

access_rules

应用程序凭证的访问规则。类型:列表