ruạṛ
a N��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 )�VolumeSourceDetailsaq Specifies the volume source details for a new Block volume. The volume source is either another Block volume in the same Availability Domain or a Block volume backup. This is an optional field. If not specified or set to null, the new Block volume will be empty. When specified, the new Block volume will contain data from the source volume or backup. c K s ddi| _ ddi| _d| _dS )a� Initializes a new VolumeSourceDetails 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.VolumeSourceFromBlockVolumeReplicaDetails` * :class:`~oci.core.models.VolumeSourceFromVolumeDetails` * :class:`~oci.core.models.VolumeSourceFromVolumeBackupDetails` The following keyword arguments are supported (corresponding to the getters/setters of this class): :param type: The value to assign to the type property of this VolumeSourceDetails. :type type: str �type�strN)� swagger_types� attribute_map�_type)�self�kwargs� r ��/sparta/input/_build_configuration/image_build+validate/lib/bmcenv/lib64/python3.9/site-packages/oci/core/models/volume_source_details.py�__init__ s ��zVolumeSourceDetails.__init__c C s4 | d }|dkrdS |dkr dS |dkr,dS dS d S ) 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 �blockVolumeReplica�)VolumeSourceFromBlockVolumeReplicaDetails�volume�VolumeSourceFromVolumeDetails�volumeBackup�#VolumeSourceFromVolumeBackupDetailsr Nr )�object_dictionaryr r r r �get_subtype, s zVolumeSourceDetails.get_subtypec C s | j S )z� **[Required]** Gets the type of this VolumeSourceDetails. :return: The type of this VolumeSourceDetails. :rtype: str �r �r r r r r ? s zVolumeSourceDetails.typec C s || _ dS )z� Sets the type of this VolumeSourceDetails. :param type: The type of this VolumeSourceDetails. :type: str Nr )r r r r r r I s c C s t | �S �N)r r r r r �__repr__S s zVolumeSourceDetails.__repr__c C s |d u rdS | j |j kS )NF)�__dict__�r �otherr r r �__eq__V s zVolumeSourceDetails.__eq__c C s | |k S r r r r r r �__ne__\ s zVolumeSourceDetails.__ne__N) �__name__� __module__�__qualname__�__doc__r �staticmethodr �propertyr �setterr r r! r r r r r s r N)�oci.utilr r r �oci.decoratorsr �objectr r r r r �<module> s
cải xoăn