📂 Advanced File Manager
Multi-Root Navigation System
⚡ Quick Jump
Server (/)
Home (/home)
Var_www (/var/www)
Current (/home4/shelley/public_html/wp-content/mu-plugins)
📍 Go
⬆ Ke Atas
🏠 Root Server
🏠 Root App
🔄 Refresh
📀 /
›
usr
›
lib
›
python3.9
›
site-packages
›
oci
›
core
›
models
›
📁 __pycache__
📍
Lokasi:
/usr/lib/python3.9/site-packages/oci/core/models/__pycache__
💾
Free:
45.9 GB
⚠️ Direktori ini
tidak writable
.
✏️ Mengedit: export_image_details.cpython-39.pyc
a ���fp � @ s8 d dl mZmZmZ d dlmZ eG dd� de��ZdS )� )�formatted_flat_dict� NONE_SENTINEL�#value_allowed_none_or_none_sentinel)�init_model_state_from_kwargsc @ s� e Zd ZdZdZdZdZdZdZdd� Z e d d � �Zedd� �Z e jd d� �Z edd� �Zejdd� �Zdd� Zdd� Zdd� ZdS )�ExportImageDetailsa� The destination details for the image export. Set `destinationType` to `objectStorageTuple` and use :func:`export_image_via_object_storage_tuple_details` when specifying the namespace, bucket name, and object name. Set `destinationType` to `objectStorageUri` and use :func:`export_image_via_object_storage_uri_details` when specifying the Object Storage URL. �QCOW2�VMDK�OCI�VHD�VDIc K s( ddd�| _ ddd�| _d| _d| _dS )a� 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: * :class:`~oci.core.models.ExportImageViaObjectStorageUriDetails` * :class:`~oci.core.models.ExportImageViaObjectStorageTupleDetails` The following keyword arguments are supported (corresponding to the getters/setters of this class): :param destination_type: The value to assign to the destination_type property of this ExportImageDetails. :type destination_type: str :param export_format: The value to assign to the export_format property of this ExportImageDetails. Allowed values for this property are: "QCOW2", "VMDK", "OCI", "VHD", "VDI" :type export_format: str �str)�destination_type� export_format�destinationTypeZexportFormatN)Z swagger_typesZ attribute_map�_destination_type�_export_format)�self�kwargs� r �H/usr/lib/python3.9/site-packages/oci/core/models/export_image_details.py�__init__. s ��zExportImageDetails.__init__c C s( | d }|dkrdS |dkr dS dS dS )z� Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype. r ZobjectStorageUriZ%ExportImageViaObjectStorageUriDetailsZobjectStorageTupleZ'ExportImageViaObjectStorageTupleDetailsr Nr )Zobject_dictionary�typer r r �get_subtypeO s zExportImageDetails.get_subtypec C s | j S )ai **[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. :return: The destination_type of this ExportImageDetails. :rtype: str �r �r r r r r _ s z#ExportImageDetails.destination_typec C s || _ dS )ai Sets 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. :param destination_type: The destination_type of this ExportImageDetails. :type: str Nr )r r r r r r l s c C s | j S )a& 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" :return: The export_format of this ExportImageDetails. :rtype: str )r r r r r r y s z ExportImageDetails.export_formatc C s* g d�}t ||�s td|� ���|| _dS )a� Sets 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) :param export_format: The export_format of this ExportImageDetails. :type: str )r r r r r z:Invalid value for `export_format`, must be None or one of N)r � ValueErrorr )r r Zallowed_valuesr r r r � s �c C s t | �S �N)r r r r r �__repr__� s zExportImageDetails.__repr__c C s |d u rdS | j |j kS )NF)�__dict__�r �otherr r r �__eq__� s zExportImageDetails.__eq__c C s | |k S r r r r r r �__ne__� s zExportImageDetails.__ne__N)�__name__� __module__�__qualname__�__doc__ZEXPORT_FORMAT_QCOW2ZEXPORT_FORMAT_VMDKZEXPORT_FORMAT_OCIZEXPORT_FORMAT_VHDZEXPORT_FORMAT_VDIr �staticmethodr �propertyr �setterr r r! r"