Snapshot#

class Snapshot(name=None, type=None, create_time=None, total_space_bytes=0, reclaimable_space_bytes=0, ext_id=None, links=None, tenant_id=None, *args, **kwargs)#

Bases: ExternalizableAbstractModel

Mount target snapshot model.

Parameters:
  • name (required min=1 chars, max=80 chars) – (name) Mount target snapshot name.

  • type – (type)

  • create_time – (create_time) Mount target snapshot created time. This is a read-only field.

  • total_space_bytes (min=0,) – (total_space_bytes) Mount target snapshot total space in bytes. This is a read-only field. (Default 0)

  • reclaimable_space_bytes (min=0,) – (reclaimable_space_bytes) Mount target snapshot reclaimable space in bytes. This is a read-only field. (Default 0)

property create_time#

Mount target snapshot created time. This is a read-only field.

Type:

datetime

property name#

Mount target snapshot name.

Type:

str

property reclaimable_space_bytes#

Mount target snapshot reclaimable space in bytes. This is a read-only field.

Type:

int

to_dict()#

Returns the model properties as a dictionary

to_str()#

Returns the string representation of the model

property total_space_bytes#

Mount target snapshot total space in bytes. This is a read-only field.

Type:

int

property type#
Type:

SnapshotType