ruạṛ
a ���f� � @ 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 @ sV e Zd ZdZdd� Zedd� �Zedd� �Zej dd� �Zd d � Z dd� Zd d� ZdS )�InstanceSourceDetailsz& InstanceSourceDetails model. c K s ddi| _ ddi| _d| _dS )a� Initializes a new InstanceSourceDetails 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.cloud_migrations.models.InstanceSourceViaImageDetails` * :class:`~oci.cloud_migrations.models.InstanceSourceViaBootVolumeDetails` The following keyword arguments are supported (corresponding to the getters/setters of this class): :param source_type: The value to assign to the source_type property of this InstanceSourceDetails. :type source_type: str �source_type�str� sourceTypeN)Z swagger_typesZ attribute_map�_source_type)�self�kwargs� r �W/usr/lib/python3.9/site-packages/oci/cloud_migrations/models/instance_source_details.py�__init__ s ��zInstanceSourceDetails.__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 ZimageZInstanceSourceViaImageDetailsZ bootVolumeZ"InstanceSourceViaBootVolumeDetailsr Nr )Zobject_dictionary�typer r r �get_subtype+ s z!InstanceSourceDetails.get_subtypec C s | j S )aG **[Required]** Gets the source_type of this InstanceSourceDetails. The source type for the instance. Use `image` when specifying the image OCID. Use `bootVolume` when specifying the boot volume OCID. :return: The source_type of this InstanceSourceDetails. :rtype: str �r �r r r r r ; s z!InstanceSourceDetails.source_typec C s || _ dS )aB Sets the source_type of this InstanceSourceDetails. The source type for the instance. Use `image` when specifying the image OCID. Use `bootVolume` when specifying the boot volume OCID. :param source_type: The source_type of this InstanceSourceDetails. :type: str Nr )r r r r r r I s c C s t | �S �N)r r r r r �__repr__W s zInstanceSourceDetails.__repr__c C s |d u rdS | j |j kS )NF)�__dict__�r �otherr r r �__eq__Z s zInstanceSourceDetails.__eq__c C s | |k S r r r r r r �__ne__` s zInstanceSourceDetails.__ne__N) �__name__� __module__�__qualname__�__doc__r �staticmethodr �propertyr �setterr r r r r r r r s r N)Zoci.utilr r r Zoci.decoratorsr �objectr r r r r �<module> s
cải xoăn