ExportImageViaObjectStorageUriDetails

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

Bases: oci.core.models.export_image_details.ExportImageDetails

ExportImageViaObjectStorageUriDetails model.

Attributes

EXPORT_FORMAT_OCI str(object=’’) -> str
EXPORT_FORMAT_QCOW2 str(object=’’) -> str
EXPORT_FORMAT_VDI str(object=’’) -> str
EXPORT_FORMAT_VHD str(object=’’) -> str
EXPORT_FORMAT_VMDK str(object=’’) -> str
destination_type [Required] Gets the destination_type of this ExportImageDetails.
destination_uri [Required] Gets the destination_uri of this ExportImageViaObjectStorageUriDetails.
export_format Gets the export_format of this ExportImageDetails.

Methods

__init__(**kwargs) Initializes a new ExportImageViaObjectStorageUriDetails 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.
EXPORT_FORMAT_OCI = 'OCI'
EXPORT_FORMAT_QCOW2 = 'QCOW2'
EXPORT_FORMAT_VDI = 'VDI'
EXPORT_FORMAT_VHD = 'VHD'
EXPORT_FORMAT_VMDK = 'VMDK'
__init__(**kwargs)

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

Parameters:
  • destination_type (str) – The value to assign to the destination_type property of this ExportImageViaObjectStorageUriDetails.
  • export_format (str) – The value to assign to the export_format property of this ExportImageViaObjectStorageUriDetails. Allowed values for this property are: “QCOW2”, “VMDK”, “OCI”, “VHD”, “VDI”
  • destination_uri (str) – The value to assign to the destination_uri property of this ExportImageViaObjectStorageUriDetails.
destination_type

[Required] Gets the destination_type of this ExportImageDetails. The destination type. Use objectStorageTuple when specifying the namespace, bucket name, and object name. Use objectStorageUri when specifying the Object Storage URL.

Returns:The destination_type of this ExportImageDetails.
Return type:str
destination_uri

[Required] Gets the destination_uri of this ExportImageViaObjectStorageUriDetails. The Object Storage URL to export the image to. See Object Storage URLs and Using Pre-Authenticated Requests for constructing URLs for image import/export.

Returns:The destination_uri of this ExportImageViaObjectStorageUriDetails.
Return type:str
export_format

Gets the export_format of this ExportImageDetails. The format to export the image to. The default value is OCI.

The following image formats are available:

  • OCI - Oracle Cloud Infrastructure file with a QCOW2 image and Oracle Cloud Infrastructure metadata (.oci).

Use this format to export a custom image that you want to import into other tenancies or regions. - QCOW2 - QEMU Copy On Write (.qcow2) - VDI - Virtual Disk Image (.vdi) for Oracle VM VirtualBox - VHD - Virtual Hard Disk (.vhd) for Hyper-V - VMDK - Virtual Machine Disk (.vmdk)

Allowed values for this property are: “QCOW2”, “VMDK”, “OCI”, “VHD”, “VDI”

Returns:The export_format of this ExportImageDetails.
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.