openstack.shared_file_system.v2.share_group_snapshot

ShareGroupSnapshot 类

ShareGroupSnapshot 类继承自 Resource

class openstack.shared_file_system.v2.share_group_snapshot.ShareGroupSnapshot(_synchronized=False, connection=None, **attrs)

基础资源

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

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

resource_key = 'share_group_snapshot'

资源的单数形式的键。

resources_key = 'share_group_snapshots'

资源的复数形式的键。

base_path = '/share-group-snapshots'

此资源的 URI 的基本部分。

allow_create = True

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

allow_fetch = True

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

allow_commit = True

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

allow_delete = True

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

allow_list = True

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

allow_head = False

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

project_id

属性 资源所属项目的 ID。

status

按共享组快照状态过滤。有效值为 creating、error、available、deleting、error_deleting。

share_group_id

共享组的 UUID。

description

资源的由用户定义的描述。

created_at

创建资源的时间戳。

members

共享组快照成员。

size

快照大小,以 GiB 为单位。

share_protocol

NFS、CIFS、GlusterFS、HDFS、CephFS 或 MAPRFS。