ruạṛ
a ���f�J � @ 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 ZdZdZdZdZdd� Zedd� �Z e j d d� �Z ed d� �Zej dd� �Zed d� �Zej dd� �Zedd� �Z e j dd� �Z edd� �Zej dd� �Zedd� �Zej dd� �Zedd� �Zej dd� �Zedd� �Zej dd� �Zedd � �Zej d!d � �Zed"d#� �Zej d$d#� �Zed%d&� �Zej d'd&� �Zed(d)� �Zej d*d)� �Zed+d,� �Zej d-d,� �Zed.d/� �Zej d0d/� �Zed1d2� �Zej d3d2� �Zd4d5� Zd6d7� Zd8d9� Zd:S );�QueryDetailsz� Input arguments for running a log anlaytics query. If the request is set to run in asynchronous mode then shouldIncludeColumns and shouldIncludeFields can be overwritten when retrieving the results. �LOG� FOREGROUND� BACKGROUNDc K s� dddddddddddddddd�| _ ddd d ddd ddddddddd�| _d| _d| _d| _d| _d| _d| _d| _d| _ d| _ d| _d| _d| _ d| _d| _d| _dS )a� Initializes a new QueryDetails object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class): :param compartment_id: The value to assign to the compartment_id property of this QueryDetails. :type compartment_id: str :param compartment_id_in_subtree: The value to assign to the compartment_id_in_subtree property of this QueryDetails. :type compartment_id_in_subtree: bool :param saved_search_id: The value to assign to the saved_search_id property of this QueryDetails. :type saved_search_id: str :param query_string: The value to assign to the query_string property of this QueryDetails. :type query_string: str :param sub_system: The value to assign to the sub_system property of this QueryDetails. Allowed values for this property are: "LOG" :type sub_system: str :param max_total_count: The value to assign to the max_total_count property of this QueryDetails. :type max_total_count: int :param time_filter: The value to assign to the time_filter property of this QueryDetails. :type time_filter: oci.log_analytics.models.TimeRange :param scope_filters: The value to assign to the scope_filters property of this QueryDetails. :type scope_filters: list[oci.log_analytics.models.ScopeFilter] :param query_timeout_in_seconds: The value to assign to the query_timeout_in_seconds property of this QueryDetails. :type query_timeout_in_seconds: int :param should_run_async: The value to assign to the should_run_async property of this QueryDetails. :type should_run_async: bool :param async_mode: The value to assign to the async_mode property of this QueryDetails. Allowed values for this property are: "FOREGROUND", "BACKGROUND" :type async_mode: str :param should_include_total_count: The value to assign to the should_include_total_count property of this QueryDetails. :type should_include_total_count: bool :param should_include_columns: The value to assign to the should_include_columns property of this QueryDetails. :type should_include_columns: bool :param should_include_fields: The value to assign to the should_include_fields property of this QueryDetails. :type should_include_fields: bool :param should_use_acceleration: The value to assign to the should_use_acceleration property of this QueryDetails. :type should_use_acceleration: bool �str�bool�intZ TimeRangezlist[ScopeFilter])�compartment_id�compartment_id_in_subtree�saved_search_id�query_string� sub_system�max_total_count�time_filter� scope_filters�query_timeout_in_seconds�should_run_async� async_mode�should_include_total_count�should_include_columns�should_include_fields�should_use_accelerationZ compartmentIdZcompartmentIdInSubtreeZ savedSearchIdZqueryStringZ subSystemZ maxTotalCountZ timeFilterZscopeFiltersZqueryTimeoutInSecondsZshouldRunAsyncZ asyncModeZshouldIncludeTotalCountZshouldIncludeColumnsZshouldIncludeFieldsZshouldUseAccelerationN)Z swagger_typesZ attribute_map�_compartment_id�_compartment_id_in_subtree�_saved_search_id� _query_string�_sub_system�_max_total_count�_time_filter�_scope_filters�_query_timeout_in_seconds�_should_run_async�_async_mode�_should_include_total_count�_should_include_columns�_should_include_fields�_should_use_acceleration)�self�kwargs� r- �J/usr/lib/python3.9/site-packages/oci/log_analytics/models/query_details.py�__init__ s^ E��zQueryDetails.__init__c C s | j S )a **[Required]** Gets the compartment_id of this QueryDetails. Compartment Identifier `OCID]`__. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :return: The compartment_id of this QueryDetails. :rtype: str �r �r+ r- r- r. r � s zQueryDetails.compartment_idc C s || _ dS )a Sets the compartment_id of this QueryDetails. Compartment Identifier `OCID]`__. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param compartment_id: The compartment_id of this QueryDetails. :type: str Nr0 )r+ r r- r- r. r � s c C s | j S )a Gets the compartment_id_in_subtree of this QueryDetails. Flag to search all child compartments of the compartment Id specified in the compartmentId query parameter. :return: The compartment_id_in_subtree of this QueryDetails. :rtype: bool �r r1 r- r- r. r � s z&QueryDetails.compartment_id_in_subtreec C s || _ dS )a2 Sets the compartment_id_in_subtree of this QueryDetails. Flag to search all child compartments of the compartment Id specified in the compartmentId query parameter. :param compartment_id_in_subtree: The compartment_id_in_subtree of this QueryDetails. :type: bool Nr2 )r+ r r- r- r. r � s c C s | j S )z� Gets the saved_search_id of this QueryDetails. Saved search OCID for this query if known. :return: The saved_search_id of this QueryDetails. :rtype: str �r r1 r- r- r. r � s zQueryDetails.saved_search_idc C s || _ dS )z� Sets the saved_search_id of this QueryDetails. Saved search OCID for this query if known. :param saved_search_id: The saved_search_id of this QueryDetails. :type: str Nr3 )r+ r r- r- r. r � s c C s | j S )a **[Required]** Gets the query_string of this QueryDetails. Query to perform. Must conform to logging analytic querylanguage syntax. Syntax errors will be returned if present. :return: The query_string of this QueryDetails. :rtype: str �r r1 r- r- r. r � s zQueryDetails.query_stringc C s || _ dS )a Sets the query_string of this QueryDetails. Query to perform. Must conform to logging analytic querylanguage syntax. Syntax errors will be returned if present. :param query_string: The query_string of this QueryDetails. :type: str Nr4 )r+ r r- r- r. r � s c C s | j S )a! **[Required]** Gets the sub_system of this QueryDetails. Default subsystem to qualify fields with in the queryString if not specified. Allowed values for this property are: "LOG" :return: The sub_system of this QueryDetails. :rtype: str )r r1 r- r- r. r � s zQueryDetails.sub_systemc C s( dg}t ||�std|� ���|| _dS )z� Sets the sub_system of this QueryDetails. Default subsystem to qualify fields with in the queryString if not specified. :param sub_system: The sub_system of this QueryDetails. :type: str r z7Invalid value for `sub_system`, must be None or one of N)r � ValueErrorr )r+ r �allowed_valuesr- r- r. r s �c C s | j S )a) Gets the max_total_count of this QueryDetails. Maximum number of results to count. Note a maximum of 2001 will be enforced; that is, actualMaxTotalCountUsed = Math.min(maxTotalCount, 2001). :return: The max_total_count of this QueryDetails. :rtype: int �r! r1 r- r- r. r s zQueryDetails.max_total_countc C s || _ dS )a7 Sets the max_total_count of this QueryDetails. Maximum number of results to count. Note a maximum of 2001 will be enforced; that is, actualMaxTotalCountUsed = Math.min(maxTotalCount, 2001). :param max_total_count: The max_total_count of this QueryDetails. :type: int Nr7 )r+ r r- r- r. r & s c C s | j S )z� Gets the time_filter of this QueryDetails. :return: The time_filter of this QueryDetails. :rtype: oci.log_analytics.models.TimeRange �r"