ruạṛ
a ���f�- � @ sD d dl mZ ddlmZmZmZ ddlmZ eG dd� de��ZdS )� )�DataObjectQuery� )�formatted_flat_dict� NONE_SENTINEL�#value_allowed_none_or_none_sentinel)�init_model_state_from_kwargsc @ s� e Zd ZdZdd� Zedd� �Zejdd� �Zedd� �Zejd d� �Zed d� �Z e jdd� �Z ed d� �Z e jdd� �Z edd� �Zejdd� �Zedd� �Zejdd� �Zedd� �Z e jdd� �Z dd� Zdd� Zdd� ZdS ) �DataObjectTemplatizedQueryzc Information required in a structured template to form and execute query on a data object. c K s~ ddddddddddd� | _ ddd d ddd dddd� | _d| _d| _d| _d| _d| _d| _d| _d| _ d| _ d| _d| _dS )a� Initializes a new DataObjectTemplatizedQuery object with values from keyword arguments. The default value of the :py:attr:`~oci.opsi.models.DataObjectTemplatizedQuery.query_type` attribute of this class is ``TEMPLATIZED_QUERY`` and it should not be changed. 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 DataObjectTemplatizedQuery. 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 DataObjectTemplatizedQuery. :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 DataObjectTemplatizedQuery. :type query_execution_timeout_in_seconds: float :param select_list: The value to assign to the select_list property of this DataObjectTemplatizedQuery. :type select_list: list[str] :param from_clause: The value to assign to the from_clause property of this DataObjectTemplatizedQuery. :type from_clause: str :param where_conditions_list: The value to assign to the where_conditions_list property of this DataObjectTemplatizedQuery. :type where_conditions_list: list[str] :param group_by_list: The value to assign to the group_by_list property of this DataObjectTemplatizedQuery. :type group_by_list: list[str] :param having_conditions_list: The value to assign to the having_conditions_list property of this DataObjectTemplatizedQuery. :type having_conditions_list: list[str] :param order_by_list: The value to assign to the order_by_list property of this DataObjectTemplatizedQuery. :type order_by_list: list[str] :param time_filters: The value to assign to the time_filters property of this DataObjectTemplatizedQuery. :type time_filters: oci.opsi.models.DataObjectQueryTimeFilters �strzlist[DataObjectBindParameter]�floatz list[str]ZDataObjectQueryTimeFilters) Z query_typeZbind_paramsZ"query_execution_timeout_in_seconds�select_list�from_clause�where_conditions_list� group_by_list�having_conditions_list� order_by_list�time_filtersZ queryTypeZ bindParamsZqueryExecutionTimeoutInSecondsZ selectListZ fromClauseZwhereConditionsListZgroupByListZhavingConditionsListZorderByListZtimeFiltersNZTEMPLATIZED_QUERY)Z swagger_typesZ attribute_mapZ_query_typeZ_bind_paramsZ#_query_execution_timeout_in_seconds�_select_list�_from_clause�_where_conditions_list�_group_by_list�_having_conditions_list�_order_by_list� _time_filters)�self�kwargs� r �Q/usr/lib/python3.9/site-packages/oci/opsi/models/data_object_templatized_query.py�__init__ sB 1�� z#DataObjectTemplatizedQuery.__init__c C s | j S )a Gets the select_list of this DataObjectTemplatizedQuery. List of items to be added into the SELECT clause of the query; items will be added with comma separation. :return: The select_list of this DataObjectTemplatizedQuery. :rtype: list[str] �r �r r r r r h s z&DataObjectTemplatizedQuery.select_listc C s || _ dS )a' Sets the select_list of this DataObjectTemplatizedQuery. List of items to be added into the SELECT clause of the query; items will be added with comma separation. :param select_list: The select_list of this DataObjectTemplatizedQuery. :type: list[str] Nr )r r r r r r t s c C s | j S )a� Gets the from_clause of this DataObjectTemplatizedQuery. Unique data object name that will be added into the FROM clause of the query, just like a view name in FROM clause. - Use actual name of the data objects (e.g: tables, views) in case of Warehouse (e.g: Awr hub) data objects query. SCHEMA.VIEW name syntax can also be used here. e.g: SYS.DBA_HIST_SNAPSHOT or DBA_HIST_SNAPSHOT - Use name of the data object (e.g: SQL_STATS_DO) in case of OPSI data objects. Identifier of the OPSI data object cannot be used here. :return: The from_clause of this DataObjectTemplatizedQuery. :rtype: str �r r r r r r � s z&DataObjectTemplatizedQuery.from_clausec C s || _ dS )a� Sets the from_clause of this DataObjectTemplatizedQuery. Unique data object name that will be added into the FROM clause of the query, just like a view name in FROM clause. - Use actual name of the data objects (e.g: tables, views) in case of Warehouse (e.g: Awr hub) data objects query. SCHEMA.VIEW name syntax can also be used here. e.g: SYS.DBA_HIST_SNAPSHOT or DBA_HIST_SNAPSHOT - Use name of the data object (e.g: SQL_STATS_DO) in case of OPSI data objects. Identifier of the OPSI data object cannot be used here. :param from_clause: The from_clause of this DataObjectTemplatizedQuery. :type: str Nr )r r r r r r � s c C s | j S )a� Gets the where_conditions_list of this DataObjectTemplatizedQuery. List of items to be added into the WHERE clause of the query; items will be added with AND separation. Item can contain a single condition or multiple conditions. Single condition e.g: "optimizer_mode='mode1'" Multiple conditions e.g: (module='module1' OR module='module2') :return: The where_conditions_list of this DataObjectTemplatizedQuery. :rtype: list[str] �r r r r r r � s z0DataObjectTemplatizedQuery.where_conditions_listc C s || _ dS )a Sets the where_conditions_list of this DataObjectTemplatizedQuery. List of items to be added into the WHERE clause of the query; items will be added with AND separation. Item can contain a single condition or multiple conditions. Single condition e.g: "optimizer_mode='mode1'" Multiple conditions e.g: (module='module1' OR module='module2') :param where_conditions_list: The where_conditions_list of this DataObjectTemplatizedQuery. :type: list[str] Nr! )r r r r r r � s c C s | j S )a# Gets the group_by_list of this DataObjectTemplatizedQuery. List of items to be added into the GROUP BY clause of the query; items will be added with comma separation. :return: The group_by_list of this DataObjectTemplatizedQuery. :rtype: list[str] �r r r r r r � s z(DataObjectTemplatizedQuery.group_by_listc C s || _ dS )a/ Sets the group_by_list of this DataObjectTemplatizedQuery. List of items to be added into the GROUP BY clause of the query; items will be added with comma separation. :param group_by_list: The group_by_list of this DataObjectTemplatizedQuery. :type: list[str] Nr"