ruạṛ
a O��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�int� 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_acceleration� compartmentId�compartmentIdInSubtree� savedSearchId�queryString� subSystem� maxTotalCount� timeFilter�scopeFilters�queryTimeoutInSeconds�shouldRunAsync� asyncMode�shouldIncludeTotalCount�shouldIncludeColumns�shouldIncludeFields�shouldUseAccelerationN)� swagger_types� 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? ��/sparta/input/_build_configuration/image_build+validate/lib/bmcenv/lib64/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 NrB )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/ rC 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 NrD )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 �r0 rC 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 NrE )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 �r1 rC 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 NrF )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 )r2 rC 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 z:Invalid value for `sub_system`, must be None or one of {0}N)r � ValueError�formatr2 )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 �r3 rC 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 NrJ )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 �r4 rC r? r? r@ r 1 s zQueryDetails.time_filterc C s || _ dS )z� Sets the time_filter of this QueryDetails. :param time_filter: The time_filter of this QueryDetails. :type: oci.log_analytics.models.TimeRange NrK )r= r r? r? r@ r ; s c C s | j S )a$ Gets the scope_filters of this QueryDetails. List of filters to be applied when the query executes. More than one filter per field is not permitted. :return: The scope_filters of this QueryDetails. :rtype: list[oci.log_analytics.models.ScopeFilter] �r5 rC r? r? r@ r E s zQueryDetails.scope_filtersc C s || _ dS )a0 Sets the scope_filters of this QueryDetails. List of filters to be applied when the query executes. More than one filter per field is not permitted. :param scope_filters: The scope_filters of this QueryDetails. :type: list[oci.log_analytics.models.ScopeFilter] NrL )r= r r? r? r@ r Q s c C s | j S )a@ Gets the query_timeout_in_seconds of this QueryDetails. Amount of time, in seconds, allowed for a query to execute. If this time expires before the query is complete, any partial results will be returned. :return: The query_timeout_in_seconds of this QueryDetails. :rtype: int �r6 rC r? r? r@ r ] s z%QueryDetails.query_timeout_in_secondsc C s || _ dS )aW Sets the query_timeout_in_seconds of this QueryDetails. Amount of time, in seconds, allowed for a query to execute. If this time expires before the query is complete, any partial results will be returned. :param query_timeout_in_seconds: The query_timeout_in_seconds of this QueryDetails. :type: int NrM )r= r r? r? r@ r i s c C s | j S )aR Gets the should_run_async of this QueryDetails. Option to run the query asynchronously. This will lead to a LogAnalyticsQueryJobWorkRequest being submitted and the {workRequestId} will be returned to use for fetching the results. :return: The should_run_async of this QueryDetails. :rtype: bool �r7 rC r? r? r@ r u s zQueryDetails.should_run_asyncc C s || _ dS )aa Sets the should_run_async of this QueryDetails. Option to run the query asynchronously. This will lead to a LogAnalyticsQueryJobWorkRequest being submitted and the {workRequestId} will be returned to use for fetching the results. :param should_run_async: The should_run_async of this QueryDetails. :type: bool NrN )r= r r? r? r@ r � s c C s | j S )a5 Gets the async_mode of this QueryDetails. Execution mode for the query if running asynchronously i.e (shouldRunAsync is set to true). Allowed values for this property are: "FOREGROUND", "BACKGROUND" :return: The async_mode of this QueryDetails. :rtype: str )r8 rC r? r? r@ r � s zQueryDetails.async_modec C s* ddg}t ||�s td�|���|| _dS )z� Sets the async_mode of this QueryDetails. Execution mode for the query if running asynchronously i.e (shouldRunAsync is set to true). :param async_mode: The async_mode of this QueryDetails. :type: str r r z:Invalid value for `async_mode`, must be None or one of {0}N)r rG rH r8 )r= r rI r? r? r@ r � s ��c C s | j S )a) Gets the should_include_total_count of this QueryDetails. Include the total number of results from the query. Note, this value will always be equal to or less than maxTotalCount. :return: The should_include_total_count of this QueryDetails. :rtype: bool �r9 rC r? r? r@ r � s z'QueryDetails.should_include_total_countc C s || _ dS )aB Sets the should_include_total_count of this QueryDetails. Include the total number of results from the query. Note, this value will always be equal to or less than maxTotalCount. :param should_include_total_count: The should_include_total_count of this QueryDetails. :type: bool NrO )r= r r? r? r@ r � s c C s | j S )z� Gets the should_include_columns of this QueryDetails. Include columns in response :return: The should_include_columns of this QueryDetails. :rtype: bool �r: rC r? r? r@ r � s z#QueryDetails.should_include_columnsc C s || _ dS )z� Sets the should_include_columns of this QueryDetails. Include columns in response :param should_include_columns: The should_include_columns of this QueryDetails. :type: bool NrP )r= r r? r? r@ r � s c C s | j S )z� Gets the should_include_fields of this QueryDetails. Include fields in response :return: The should_include_fields of this QueryDetails. :rtype: bool �r; rC r? r? r@ r � s z"QueryDetails.should_include_fieldsc C s || _ dS )z� Sets the should_include_fields of this QueryDetails. Include fields in response :param should_include_fields: The should_include_fields of this QueryDetails. :type: bool NrQ )r= r r? r? r@ r � s c C s | j S )aL Gets the should_use_acceleration of this QueryDetails. Controls if query should ignore pre-calculated results if available and only use raw data. If set and no acceleration data is found it will fallback to raw data. :return: The should_use_acceleration of this QueryDetails. :rtype: bool �r<