a fJ@s8ddlmZmZmZddlmZeGdddeZdS))formatted_flat_dict NONE_SENTINEL#value_allowed_none_or_none_sentinel)init_model_state_from_kwargsc@seZdZdZdZdZdZddZeddZ e j d dZ ed d Z e j d d Z ed dZ e j ddZ eddZ e j ddZ eddZej ddZeddZej ddZeddZej ddZeddZej ddZedd 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/Zed1d2Zej d3d2Zd4d5Zd6d7Zd8d9Zd: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 BACKGROUNDcKsdddddddddddddddd|_ddd d d d d 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 strboolintZ TimeRangezlist[ScopeFilter])compartment_idcompartment_id_in_subtreesaved_search_id query_string sub_systemmax_total_count time_filter scope_filtersquery_timeout_in_secondsshould_run_async async_modeshould_include_total_countshould_include_columnsshould_include_fieldsshould_use_accelerationZ compartmentIdZcompartmentIdInSubtreeZ savedSearchIdZ queryStringZ subSystemZ maxTotalCountZ timeFilterZ scopeFiltersZqueryTimeoutInSecondsZshouldRunAsyncZ 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)selfkwargsr-J/usr/lib/python3.9/site-packages/oci/log_analytics/models/query_details.py__init__s^EzQueryDetails.__init__cCs|jS)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 rr+r-r-r.r s zQueryDetails.compartment_idcCs ||_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 cCs|jS)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 rr1r-r-r.rs z&QueryDetails.compartment_id_in_subtreecCs ||_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+rr-r-r.rs cCs|jS)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 rr1r-r-r.rs zQueryDetails.saved_search_idcCs ||_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+rr-r-r.rs cCs|jS)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 rr1r-r-r.rs zQueryDetails.query_stringcCs ||_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+rr-r-r.rs cCs|jS)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 r1r-r-r.rs zQueryDetails.sub_systemcCs(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 rz7Invalid value for `sub_system`, must be None or one of N)r ValueErrorr )r+rallowed_valuesr-r-r.r s  cCs|jS)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!r1r-r-r.rs zQueryDetails.max_total_countcCs ||_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+rr-r-r.r&s cCs|jS)z Gets the time_filter of this QueryDetails. :return: The time_filter of this QueryDetails. :rtype: oci.log_analytics.models.TimeRange r"r1r-r-r.r2szQueryDetails.time_filtercCs ||_dS)z Sets the time_filter of this QueryDetails. :param time_filter: The time_filter of this QueryDetails. :type: oci.log_analytics.models.TimeRange Nr8)r+rr-r-r.r<scCs|jS)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] r#r1r-r-r.rFs zQueryDetails.scope_filterscCs ||_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] Nr9)r+rr-r-r.rRs cCs|jS)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 r$r1r-r-r.r^s z%QueryDetails.query_timeout_in_secondscCs ||_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 Nr:)r+rr-r-r.rjs cCs|jS)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 r%r1r-r-r.rvs zQueryDetails.should_run_asynccCs ||_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 Nr;)r+rr-r-r.rs cCs|jS)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 )r&r1r-r-r.rs zQueryDetails.async_modecCs*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 rr z7Invalid value for `async_mode`, must be None or one of N)rr5r&)r+rr6r-r-r.rs  cCs|jS)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 r'r1r-r-r.rs z'QueryDetails.should_include_total_countcCs ||_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 Nr<)r+rr-r-r.rs cCs|jS)z Gets the should_include_columns of this QueryDetails. Include columns in response :return: The should_include_columns of this QueryDetails. :rtype: bool r(r1r-r-r.rs z#QueryDetails.should_include_columnscCs ||_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 Nr=)r+rr-r-r.rs cCs|jS)z Gets the should_include_fields of this QueryDetails. Include fields in response :return: The should_include_fields of this QueryDetails. :rtype: bool r)r1r-r-r.rs z"QueryDetails.should_include_fieldscCs ||_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 Nr>)r+rr-r-r.rs cCs|jS)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*r1r-r-r.rs z$QueryDetails.should_use_accelerationcCs ||_dS)ab Sets 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. :param should_use_acceleration: The should_use_acceleration of this QueryDetails. :type: bool Nr?)r+rr-r-r.rs cCst|SN)rr1r-r-r.__repr__ szQueryDetails.__repr__cCs|dur dS|j|jkS)NF)__dict__r+otherr-r-r.__eq__szQueryDetails.__eq__cCs ||k Sr@r-rCr-r-r.__ne__szQueryDetails.__ne__N)__name__ __module__ __qualname____doc__ZSUB_SYSTEM_LOGZASYNC_MODE_FOREGROUNDZASYNC_MODE_BACKGROUNDr/propertyr setterrrrrrrrrrrrrrrrArErFr-r-r-r.r sx                              rN)Zoci.utilrrrZoci.decoratorsrobjectrr-r-r-r.s