Image#

class Image(name=None, description=None, type=None, checksum=None, size_bytes=None, source=None, category_ext_ids=None, cluster_location_ext_ids=None, create_time=None, last_update_time=None, owner_ext_id=None, placement_policy_status=None, ext_id=None, links=None, tenant_id=None, *args, **kwargs)#

Bases: ExternalizableAbstractModel

Parameters:
  • name (required) – (name) The user defined name of an image.

  • description – (description) The user defined description of an image.

  • type (required) – (type)

  • checksum – (checksum) The checksum of an image.

  • size_bytes – (size_bytes) The size in bytes of an image file.

  • source – (source) The source of an image. It can be a VM disk or a URL.

  • category_ext_ids – (category_ext_ids) List of category external identifiers for an image.

  • cluster_location_ext_ids – (cluster_location_ext_ids) List of cluster external identifiers where the image is located.

  • create_time – (create_time) Create time of an image.

  • last_update_time – (last_update_time) Last update time of an image.

  • owner_ext_id – (owner_ext_id) External identifier of the owner of the image.

  • placement_policy_status – (placement_policy_status) Status of an image placement policy.

property category_ext_ids#

List of category external identifiers for an image.

Type:

list[ str ]

property checksum#

The checksum of an image.

Type:

ImageSha1Checksum | ImageSha256Checksum

property cluster_location_ext_ids#

List of cluster external identifiers where the image is located.

Type:

list[ str ]

property create_time#

Create time of an image.

Type:

datetime

property description#

The user defined description of an image.

Type:

str

property last_update_time#

Last update time of an image.

Type:

datetime

property name#

The user defined name of an image.

Type:

str

property owner_ext_id#

External identifier of the owner of the image.

Type:

str

property placement_policy_status#

Status of an image placement policy.

Type:

list[ ImagePlacementStatus ]

property size_bytes#

The size in bytes of an image file.

Type:

int

property source#

The source of an image. It can be a VM disk or a URL.

Type:

UrlSource | VmDiskSource

to_dict()#

Returns the model properties as a dictionary

to_str()#

Returns the string representation of the model

property type#
Type:

ImageType