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 min=1 chars, max=256 chars) – (
name
) The user-defined name of an image.description (max=1000 chars) – (
description
) The user-defined description of an image.type (required) – (
type
)checksum – (
checksum
) The checksum of an image.size_bytes – (
size_bytes
) The size of an image in bytes.source – (
source
) The source of an image, which can be a VM disk, a URL, or an Objects Lite key.category_ext_ids – (
category_ext_ids
) List of external identifier of the category for an image.cluster_location_ext_ids – (
cluster_location_ext_ids
) List of external identifier of the cluster where the image is located.create_time – (
create_time
) Image creation time.last_update_time – (
last_update_time
) Last updated 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 external identifier of the category for an image.
- Type:
list[
str
]
- property checksum#
The checksum of an image.
- Type:
- property cluster_location_ext_ids#
List of external identifier of the cluster where the image is located.
- Type:
list[
str
]
- property create_time#
Image creation time.
- Type:
datetime
- property description#
The user-defined description of an image.
- Type:
str
- property last_update_time#
Last updated 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 of an image in bytes.
- Type:
int
- property source#
The source of an image, which can be a VM disk, a URL, or an Objects Lite key.
- Type:
- to_dict()#
Returns the model properties as a dictionary
- to_str()#
Returns the string representation of the model