TemplateVersionSpec#
- class TemplateVersionSpec(version_name=None, version_description=None, vm_spec=None, create_time=None, created_by=None, version_source=None, version_source_discriminator=None, is_active_version=True, is_gc_override_enabled=None, ext_id=None, links=None, tenant_id=None, *args, **kwargs)#
Bases:
ExternalizableAbstractModel
The template version model.
- Parameters:
version_name (max=256 chars) – (
version_name
) The user-defined name of a template version.version_description (min=1 chars, max=1000 chars) – (
version_description
) The user-defined description of a template version.vm_spec – (
vm_spec
)create_time – (
create_time
) Time when the template was created.created_by – (
created_by
)version_source (required) – (
version_source
) Source of the template version created. When creating a new template, the source must be a VM. When creating a new version, the source can be either a VM or an existing version within the template.version_source_discriminator – (
version_source_discriminator
) Source type of the template version created. It can be either a VM or a template version.is_active_version – (
is_active_version
) Specify whether to mark the template version as active or not. The newly created version during template creation, update, or guest OS update is set to active by default unless specified otherwise. (Default True)is_gc_override_enabled – (
is_gc_override_enabled
) Allow or disallow overriding guest customization during template deployment.
- property create_time#
Time when the template was created.
- Type:
datetime
- property created_by#
- Type:
- property is_active_version#
Specify whether to mark the template version as active or not. The newly created version during template creation, update, or guest OS update is set to active by default unless specified otherwise.
- Type:
bool
- property is_gc_override_enabled#
Allow or disallow overriding guest customization during template deployment.
- Type:
bool
- to_dict()#
Returns the model properties as a dictionary
- to_str()#
Returns the string representation of the model
- property version_description#
The user-defined description of a template version.
- Type:
str
- property version_name#
The user-defined name of a template version.
- Type:
str
- property version_source#
Source of the template version created. When creating a new template, the source must be a VM. When creating a new version, the source can be either a VM or an existing version within the template.
- property version_source_discriminator#
Source type of the template version created. It can be either a VM or a template version.
- Type:
str