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 @ s^ e Zd ZdZdZdZdd� Zedd� �Ze dd � �Z e jd d � �Z dd� Zd d� Z dd� ZdS )�DocumentDetailsz/ The details of a document to analyze. �INLINE�OBJECT_STORAGEc K s ddi| _ ddi| _d| _dS )a� Initializes a new DocumentDetails 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.ai_document.models.ObjectStorageDocumentDetails` * :class:`~oci.ai_document.models.InlineDocumentDetails` The following keyword arguments are supported (corresponding to the getters/setters of this class): :param source: The value to assign to the source property of this DocumentDetails. Allowed values for this property are: "INLINE", "OBJECT_STORAGE" :type source: str �source�strN)Z swagger_typesZ attribute_map�_source)�self�kwargs� r �K/usr/lib/python3.9/site-packages/oci/ai_document/models/document_details.py�__init__ s ��zDocumentDetails.__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 r ZObjectStorageDocumentDetailsr ZInlineDocumentDetailsr Nr )Zobject_dictionary�typer r r �get_subtype4 s zDocumentDetails.get_subtypec C s | j S )a� **[Required]** Gets the source of this DocumentDetails. The location of the document data. The allowed values are: - `INLINE`: The data is included directly in the request payload. - `OBJECT_STORAGE`: The document is in OCI Object Storage. Allowed values for this property are: "INLINE", "OBJECT_STORAGE" :return: The source of this DocumentDetails. :rtype: str )r �r r r r r D s zDocumentDetails.sourcec C s* ddg}t ||�s td|� ���|| _dS )ab Sets the source of this DocumentDetails. The location of the document data. The allowed values are: - `INLINE`: The data is included directly in the request payload. - `OBJECT_STORAGE`: The document is in OCI Object Storage. :param source: The source of this DocumentDetails. :type: str r r z3Invalid value for `source`, must be None or one of N)r � ValueErrorr )r r Zallowed_valuesr r r r U s �c C s t | �S �N)r r r r r �__repr__i s zDocumentDetails.__repr__c C s |d u rdS | j |j kS )NF)�__dict__�r �otherr r r �__eq__l s zDocumentDetails.__eq__c C s | |k S r r r r r r �__ne__r s zDocumentDetails.__ne__N)�__name__� __module__�__qualname__�__doc__Z SOURCE_INLINEZSOURCE_OBJECT_STORAGEr �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