ExportImageDetails¶
-
class
oci.core.models.ExportImageDetails(**kwargs)¶ Bases:
objectThe destination details for the image export.
Set destinationType to objectStorageTuple and use
export_image_via_object_storage_tuple_details()when specifying the namespace, bucket name, and object name.Set destinationType to objectStorageUri and use
export_image_via_object_storage_uri_details()when specifying the Object Storage URL.Attributes
EXPORT_FORMAT_OCIA constant which can be used with the export_format property of a ExportImageDetails. EXPORT_FORMAT_QCOW2A constant which can be used with the export_format property of a ExportImageDetails. EXPORT_FORMAT_VDIA constant which can be used with the export_format property of a ExportImageDetails. EXPORT_FORMAT_VHDA constant which can be used with the export_format property of a ExportImageDetails. EXPORT_FORMAT_VMDKA constant which can be used with the export_format property of a ExportImageDetails. destination_type[Required] Gets the destination_type of this ExportImageDetails. export_formatGets the export_format of this ExportImageDetails. Methods
__init__(**kwargs)Initializes a new ExportImageDetails 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'¶ A constant which can be used with the export_format property of a ExportImageDetails. This constant has a value of “OCI”
-
EXPORT_FORMAT_QCOW2= 'QCOW2'¶ A constant which can be used with the export_format property of a ExportImageDetails. This constant has a value of “QCOW2”
-
EXPORT_FORMAT_VDI= 'VDI'¶ A constant which can be used with the export_format property of a ExportImageDetails. This constant has a value of “VDI”
-
EXPORT_FORMAT_VHD= 'VHD'¶ A constant which can be used with the export_format property of a ExportImageDetails. This constant has a value of “VHD”
-
EXPORT_FORMAT_VMDK= 'VMDK'¶ A constant which can be used with the export_format property of a ExportImageDetails. This constant has a value of “VMDK”
-
__init__(**kwargs)¶ Initializes a new ExportImageDetails object with values from keyword arguments. This class has the following subclasses and if you are using this class as input to a service operations then you should favor using a subclass over the base class:
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 ExportImageDetails.
- export_format (str) – The value to assign to the export_format property of this ExportImageDetails. Allowed values for this property are: “QCOW2”, “VMDK”, “OCI”, “VHD”, “VDI”
-
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
-
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.
-