📂 Advanced File Manager
Multi-Root Navigation System
⚡ Quick Jump
Server (/)
Home (/home)
Var_www (/var/www)
Current (/home4/shelley/public_html/shelleycutler.com/wp-content/mu-plugins)
📍 Go
⬆ Ke Atas
🏠 Root Server
🏠 Root App
🔄 Refresh
📀 /
›
usr
›
lib
›
python3.9
›
site-packages
›
oci
›
resource_search
›
models
›
📁 __pycache__
📍
Lokasi:
/usr/lib/python3.9/site-packages/oci/resource_search/models/__pycache__
💾
Free:
45.8 GB
⚠️ Direktori ini
tidak writable
.
✏️ Mengedit: search_details.cpython-39.opt-1.pyc
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 @ sx e Zd ZdZdZdZdd� Zedd� �Ze dd � �Z e jd d � �Z e dd� �Zejd d� �Zdd� Z dd� Zdd� ZdS )� SearchDetailszX A base request type that contains common criteria for searching for resources. �NONE� HIGHLIGHTSc K s( ddd�| _ ddd�| _d| _d| _dS )ar Initializes a new SearchDetails 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.resource_search.models.StructuredSearchDetails` * :class:`~oci.resource_search.models.FreeTextSearchDetails` 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 SearchDetails. :type type: str :param matching_context_type: The value to assign to the matching_context_type property of this SearchDetails. Allowed values for this property are: "NONE", "HIGHLIGHTS" :type matching_context_type: str �str)�type�matching_context_typer ZmatchingContextTypeN)Z swagger_typesZ attribute_map�_type�_matching_context_type)�self�kwargs� r �M/usr/lib/python3.9/site-packages/oci/resource_search/models/search_details.py�__init__ s ��zSearchDetails.__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 Z StructuredZStructuredSearchDetailsZFreeTextZFreeTextSearchDetailsr Nr )Zobject_dictionaryr r r r �get_subtype; s zSearchDetails.get_subtypec C s | j S )z� **[Required]** Gets the type of this SearchDetails. The type of SearchDetails, whether `FreeText` or `Structured`. :return: The type of this SearchDetails. :rtype: str �r �r r r r r K s zSearchDetails.typec C s || _ dS )z� Sets the type of this SearchDetails. The type of SearchDetails, whether `FreeText` or `Structured`. :param type: The type of this SearchDetails. :type: str Nr )r r r r r r W s c C s | j S )a� Gets the matching_context_type of this SearchDetails. The type of matching context returned in the response. If you specify `HIGHLIGHTS`, then the service will highlight fragments in its response. (For more information, see ResourceSummary.searchContext and SearchContext.) The default setting is `NONE`. Allowed values for this property are: "NONE", "HIGHLIGHTS" :return: The matching_context_type of this SearchDetails. :rtype: str )r r r r r r c s z#SearchDetails.matching_context_typec C s* ddg}t ||�s td|� ���|| _dS )a� Sets the matching_context_type of this SearchDetails. The type of matching context returned in the response. If you specify `HIGHLIGHTS`, then the service will highlight fragments in its response. (For more information, see ResourceSummary.searchContext and SearchContext.) The default setting is `NONE`. :param matching_context_type: The matching_context_type of this SearchDetails. :type: str r r zBInvalid value for `matching_context_type`, must be None or one of N)r � ValueErrorr )r r Zallowed_valuesr r r r q s �c C s t | �S �N)r r r r r �__repr__� s zSearchDetails.__repr__c C s |d u rdS | j |j kS )NF)�__dict__�r �otherr r r �__eq__� s zSearchDetails.__eq__c C s | |k S r r r r r r �__ne__� s zSearchDetails.__ne__N)�__name__� __module__�__qualname__�__doc__ZMATCHING_CONTEXT_TYPE_NONEZ MATCHING_CONTEXT_TYPE_HIGHLIGHTSr �staticmethodr �propertyr �setterr r r r r r r r r s"