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 e dd� �Zejd d� �Ze dd� �Z e jdd� �Z dd� Zdd� Zdd� ZdS )�DataObjectQueryzJ Information required to form and execute query on a data object. �TEMPLATIZED_QUERY�STANDARD_QUERYc K s2 dddd�| _ dddd�| _d| _d| _d| _dS ) an Initializes a new DataObjectQuery 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.opsi.models.DataObjectStandardQuery` * :class:`~oci.opsi.models.DataObjectTemplatizedQuery` The following keyword arguments are supported (corresponding to the getters/setters of this class): :param query_type: The value to assign to the query_type property of this DataObjectQuery. Allowed values for this property are: "TEMPLATIZED_QUERY", "STANDARD_QUERY" :type query_type: str :param bind_params: The value to assign to the bind_params property of this DataObjectQuery. :type bind_params: list[oci.opsi.models.DataObjectBindParameter] :param query_execution_timeout_in_seconds: The value to assign to the query_execution_timeout_in_seconds property of this DataObjectQuery. :type query_execution_timeout_in_seconds: float �strzlist[DataObjectBindParameter]�float)� query_type�bind_params�"query_execution_timeout_in_seconds� queryTypeZ bindParamsZqueryExecutionTimeoutInSecondsN)Z swagger_typesZ attribute_map�_query_type�_bind_params�#_query_execution_timeout_in_seconds)�self�kwargs� r �E/usr/lib/python3.9/site-packages/oci/opsi/models/data_object_query.py�__init__ s ��zDataObjectQuery.__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 ZDataObjectStandardQueryr ZDataObjectTemplatizedQueryr Nr )Zobject_dictionary�typer r r �get_subtypeB s zDataObjectQuery.get_subtypec C s | j S )a **[Required]** Gets the query_type of this DataObjectQuery. Type of Query Allowed values for this property are: "TEMPLATIZED_QUERY", "STANDARD_QUERY" :return: The query_type of this DataObjectQuery. :rtype: str )r �r r r r r R s zDataObjectQuery.query_typec C s* ddg}t ||�s td|� ���|| _dS )z� Sets the query_type of this DataObjectQuery. Type of Query :param query_type: The query_type of this DataObjectQuery. :type: str r r z7Invalid value for `query_type`, must be None or one of N)r � ValueErrorr )r r Zallowed_valuesr r r r ` s �c C s | j S )z� Gets the bind_params of this DataObjectQuery. List of bind parameters to be applied in the query. :return: The bind_params of this DataObjectQuery. :rtype: list[oci.opsi.models.DataObjectBindParameter] �r r r r r r q s zDataObjectQuery.bind_paramsc C s || _ dS )z� Sets the bind_params of this DataObjectQuery. List of bind parameters to be applied in the query. :param bind_params: The bind_params of this DataObjectQuery. :type: list[oci.opsi.models.DataObjectBindParameter] Nr )r r r r r r } s c C s | j S )a Gets the query_execution_timeout_in_seconds of this DataObjectQuery. Timeout (in seconds) to be set for the data object query execution. :return: The query_execution_timeout_in_seconds of this DataObjectQuery. :rtype: float �r r r r r r � s z2DataObjectQuery.query_execution_timeout_in_secondsc C s || _ dS )a, Sets the query_execution_timeout_in_seconds of this DataObjectQuery. Timeout (in seconds) to be set for the data object query execution. :param query_execution_timeout_in_seconds: The query_execution_timeout_in_seconds of this DataObjectQuery. :type: float Nr )r r r r r r � s c C s t | �S �N)r r r r r �__repr__� s zDataObjectQuery.__repr__c C s |d u rdS | j |j kS )NF)�__dict__�r �otherr r r �__eq__� s zDataObjectQuery.__eq__c C s | |k S r r r r r r �__ne__� s zDataObjectQuery.__ne__N)�__name__� __module__�__qualname__�__doc__ZQUERY_TYPE_TEMPLATIZED_QUERYZQUERY_TYPE_STANDARD_QUERYr �staticmethodr �propertyr �setterr r r r"