Image#

class Image(metadata=None, name=None, description=None, type=None, checksum=None, size_bytes=None, source=None, categories=None, initial_cluster_locations=None, last_update_time=None, ext_id=None, links=None, tenant_id=None, *args, **kwargs)[source]#

Bases: ExternalizableAbstractModel

Parameters:
  • metadata – (metadata)

  • name (required) – (name)

  • description – (description)

  • type (required) – (type)

  • checksum – (checksum)

  • 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. If not mentioned, the image will be inactive until a file is uploaded for it.

  • categories – (categories) Categories for an image.

  • initial_cluster_locations – (initial_cluster_locations) Cluster details for the image location.

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

property categories#

Categories for an image.

Type:

list[ CategoryReference ]

property checksum#
Type:

ImageChecksum

property description#
Type:

str

property initial_cluster_locations#

Cluster details for the image location.

Type:

list[ ClusterReference ]

property last_update_time#

Last update time of an image.

Type:

datetime

property metadata#
Type:

Metadata

property name#
Type:

str

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. If not mentioned, the image will be inactive until a file is uploaded for it.

Type:

UrlSource | VmDiskSource

to_dict()[source]#

Returns the model properties as a dictionary

to_str()[source]#

Returns the string representation of the model

property type#
Type:

ImageType