ExportImageViaObjectStorageTupleDetails

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

Bases: ExportImageDetails

ExportImageViaObjectStorageTupleDetails model.

Attributes:

EXPORT_FORMAT_OCI

A constant which can be used with the export_format property of a ExportImageDetails.

EXPORT_FORMAT_QCOW2

A constant which can be used with the export_format property of a ExportImageDetails.

EXPORT_FORMAT_VDI

A constant which can be used with the export_format property of a ExportImageDetails.

EXPORT_FORMAT_VHD

A constant which can be used with the export_format property of a ExportImageDetails.

EXPORT_FORMAT_VMDK

A constant which can be used with the export_format property of a ExportImageDetails.

bucket_name

[Required] Gets the bucket_name of this ExportImageViaObjectStorageTupleDetails.

destination_type

[Required] Gets the destination_type of this ExportImageDetails.

export_format

Gets the export_format of this ExportImageDetails.

namespace_name

[Required] Gets the namespace_name of this ExportImageViaObjectStorageTupleDetails.

object_name

[Required] Gets the object_name of this ExportImageViaObjectStorageTupleDetails.

Methods:

__init__(**kwargs)

Initializes a new ExportImageViaObjectStorageTupleDetails 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 ExportImageViaObjectStorageTupleDetails object with values from keyword arguments. The default value of the destination_type attribute of this class is objectStorageTuple 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 ExportImageViaObjectStorageTupleDetails.

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

  • bucket_name (str) – The value to assign to the bucket_name property of this ExportImageViaObjectStorageTupleDetails.

  • namespace_name (str) – The value to assign to the namespace_name property of this ExportImageViaObjectStorageTupleDetails.

  • object_name (str) – The value to assign to the object_name property of this ExportImageViaObjectStorageTupleDetails.

property bucket_name

[Required] Gets the bucket_name of this ExportImageViaObjectStorageTupleDetails. The Object Storage bucket to export the image to.

Returns

The bucket_name of this ExportImageViaObjectStorageTupleDetails.

Return type

str

property 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

property 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.

property namespace_name

[Required] Gets the namespace_name of this ExportImageViaObjectStorageTupleDetails. The Object Storage namespace to export the image to.

Returns

The namespace_name of this ExportImageViaObjectStorageTupleDetails.

Return type

str

property object_name

[Required] Gets the object_name of this ExportImageViaObjectStorageTupleDetails. The Object Storage object name for the exported image.

Returns

The object_name of this ExportImageViaObjectStorageTupleDetails.

Return type

str