UpdateInstanceSourceViaBootVolumeDetails

class oci.core.models.UpdateInstanceSourceViaBootVolumeDetails(**kwargs)

Bases: oci.core.models.update_instance_source_details.UpdateInstanceSourceDetails

The details for updating the instance source from an existing boot volume.

Methods

__init__(**kwargs) Initializes a new UpdateInstanceSourceViaBootVolumeDetails object with values from keyword arguments.
get_subtype(object_dictionary) Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.

Attributes

boot_volume_id [Required] Gets the boot_volume_id of this UpdateInstanceSourceViaBootVolumeDetails.
is_preserve_boot_volume_enabled Gets the is_preserve_boot_volume_enabled of this UpdateInstanceSourceDetails.
source_type [Required] Gets the source_type of this UpdateInstanceSourceDetails.
__init__(**kwargs)

Initializes a new UpdateInstanceSourceViaBootVolumeDetails object with values from keyword arguments. The default value of the source_type attribute of this class is bootVolume and it should not be changed. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters:
  • source_type (str) – The value to assign to the source_type property of this UpdateInstanceSourceViaBootVolumeDetails.
  • is_preserve_boot_volume_enabled (bool) – The value to assign to the is_preserve_boot_volume_enabled property of this UpdateInstanceSourceViaBootVolumeDetails.
  • boot_volume_id (str) – The value to assign to the boot_volume_id property of this UpdateInstanceSourceViaBootVolumeDetails.
boot_volume_id

[Required] Gets the boot_volume_id of this UpdateInstanceSourceViaBootVolumeDetails. The OCID of the boot volume used to boot the instance.

Returns:The boot_volume_id of this UpdateInstanceSourceViaBootVolumeDetails.
Return type:str
static get_subtype(object_dictionary)

Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.

is_preserve_boot_volume_enabled

Gets the is_preserve_boot_volume_enabled of this UpdateInstanceSourceDetails. Whether to preserve the boot volume that was previously attached to the instance after a successful replacement of that boot volume.

Returns:The is_preserve_boot_volume_enabled of this UpdateInstanceSourceDetails.
Return type:bool
source_type

[Required] Gets the source_type of this UpdateInstanceSourceDetails. The source type for the instance. Use image when specifying the image OCID. Use bootVolume when specifying the boot volume OCID.

Returns:The source_type of this UpdateInstanceSourceDetails.
Return type:str