a f@@s8ddlmZmZmZddlmZeGdddeZdS))formatted_flat_dict NONE_SENTINEL#value_allowed_none_or_none_sentinel)init_model_state_from_kwargsc@steZdZdZdZdZdZddZeddZ 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)Zd+d,Zd-d.Zd/d0Zd1S)2 ExportDetailszv Input arguments for running a query synchronosly and streaming the results as soon as they become available. LOGCSVJSONc Ksddddddddddddd |_ddd d d d d dddddd |_d|_d|_d|_d|_d|_d|_d|_d|_ d|_ d|_ d|_ d|_ dS)a Initializes a new ExportDetails 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 ExportDetails. :type compartment_id: str :param compartment_id_in_subtree: The value to assign to the compartment_id_in_subtree property of this ExportDetails. :type compartment_id_in_subtree: bool :param query_string: The value to assign to the query_string property of this ExportDetails. :type query_string: str :param sub_system: The value to assign to the sub_system property of this ExportDetails. Allowed values for this property are: "LOG" :type sub_system: str :param scope_filters: The value to assign to the scope_filters property of this ExportDetails. :type scope_filters: list[oci.log_analytics.models.ScopeFilter] :param max_total_count: The value to assign to the max_total_count property of this ExportDetails. :type max_total_count: int :param time_filter: The value to assign to the time_filter property of this ExportDetails. :type time_filter: oci.log_analytics.models.TimeRange :param query_timeout_in_seconds: The value to assign to the query_timeout_in_seconds property of this ExportDetails. :type query_timeout_in_seconds: int :param should_include_columns: The value to assign to the should_include_columns property of this ExportDetails. :type should_include_columns: bool :param output_format: The value to assign to the output_format property of this ExportDetails. Allowed values for this property are: "CSV", "JSON" :type output_format: str :param should_localize: The value to assign to the should_localize property of this ExportDetails. :type should_localize: bool :param should_use_acceleration: The value to assign to the should_use_acceleration property of this ExportDetails. :type should_use_acceleration: bool strboolzlist[ScopeFilter]intZ TimeRange) compartment_idcompartment_id_in_subtree query_string sub_system scope_filtersmax_total_count time_filterquery_timeout_in_secondsshould_include_columns output_formatshould_localizeshould_use_accelerationZ compartmentIdZcompartmentIdInSubtreeZ queryStringZ subSystemZ scopeFiltersZ maxTotalCountZ timeFilterZqueryTimeoutInSecondsZshouldIncludeColumnsZ outputFormatZshouldLocalizeZshouldUseAccelerationN)Z swagger_typesZ attribute_map_compartment_id_compartment_id_in_subtree _query_string _sub_system_scope_filters_max_total_count _time_filter_query_timeout_in_seconds_should_include_columns_output_format_should_localize_should_use_acceleration)selfkwargsr'K/usr/lib/python3.9/site-packages/oci/log_analytics/models/export_details.py__init__sL9zExportDetails.__init__cCs|jS)a" **[Required]** Gets the compartment_id of this ExportDetails. Compartment Identifier `OCID]`__. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :return: The compartment_id of this ExportDetails. :rtype: str rr%r'r'r(r s zExportDetails.compartment_idcCs ||_dS)a  Sets the compartment_id of this ExportDetails. Compartment Identifier `OCID]`__. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param compartment_id: The compartment_id of this ExportDetails. :type: str Nr*)r%r r'r'r(r s cCs|jS)a Gets the compartment_id_in_subtree of this ExportDetails. Flag to search all child compartments of the compartment Id specified in the compartmentId query parameter. :return: The compartment_id_in_subtree of this ExportDetails. :rtype: bool rr+r'r'r(rs z'ExportDetails.compartment_id_in_subtreecCs ||_dS)a4 Sets the compartment_id_in_subtree of this ExportDetails. 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 ExportDetails. :type: bool Nr,)r%rr'r'r(rs cCs|jS)z **[Required]** Gets the query_string of this ExportDetails. Query to perform. :return: The query_string of this ExportDetails. :rtype: str rr+r'r'r(rs zExportDetails.query_stringcCs ||_dS)z Sets the query_string of this ExportDetails. Query to perform. :param query_string: The query_string of this ExportDetails. :type: str Nr-)r%rr'r'r(rs cCs|jS)a# **[Required]** Gets the sub_system of this ExportDetails. 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 ExportDetails. :rtype: str )rr+r'r'r(rs zExportDetails.sub_systemcCs(dg}t||std|||_dS)z Sets the sub_system of this ExportDetails. Default subsystem to qualify fields with in the queryString if not specified. :param sub_system: The sub_system of this ExportDetails. :type: str rz7Invalid value for `sub_system`, must be None or one of N)r ValueErrorr)r%rallowed_valuesr'r'r(rs  cCs|jS)a& Gets the scope_filters of this ExportDetails. 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 ExportDetails. :rtype: list[oci.log_analytics.models.ScopeFilter] rr+r'r'r(rs zExportDetails.scope_filterscCs ||_dS)a2 Sets the scope_filters of this ExportDetails. 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 ExportDetails. :type: list[oci.log_analytics.models.ScopeFilter] Nr0)r%rr'r'r(rs cCs|jS)a Gets the max_total_count of this ExportDetails. Maximum number of results retrieved from data source is determined by the specific query used and the maxTotalCount input field. If the export results can be streamed, the maximum will be 1,000,000. If the results cannot be streamed, the maximum limit is 500 for queries that include the link command and 10,000 for the queries that do not include the link command. Queries that include certain commands such as head, tail or stats cannot be streamed and are subject to a maximum of 10,000 results. Queries that include the sort command cannot be streamed unless the sort fields are restricted to id and/or time. The maximum number of results retrieved is the lesser of the maxTotalCount input provided and the applicable limit described above. :return: The max_total_count of this ExportDetails. :rtype: int rr+r'r'r(rszExportDetails.max_total_countcCs ||_dS)a Sets the max_total_count of this ExportDetails. Maximum number of results retrieved from data source is determined by the specific query used and the maxTotalCount input field. If the export results can be streamed, the maximum will be 1,000,000. If the results cannot be streamed, the maximum limit is 500 for queries that include the link command and 10,000 for the queries that do not include the link command. Queries that include certain commands such as head, tail or stats cannot be streamed and are subject to a maximum of 10,000 results. Queries that include the sort command cannot be streamed unless the sort fields are restricted to id and/or time. The maximum number of results retrieved is the lesser of the maxTotalCount input provided and the applicable limit described above. :param max_total_count: The max_total_count of this ExportDetails. :type: int Nr1)r%rr'r'r(rscCs|jS)z Gets the time_filter of this ExportDetails. :return: The time_filter of this ExportDetails. :rtype: oci.log_analytics.models.TimeRange rr+r'r'r(r*szExportDetails.time_filtercCs ||_dS)z Sets the time_filter of this ExportDetails. :param time_filter: The time_filter of this ExportDetails. :type: oci.log_analytics.models.TimeRange Nr2)r%rr'r'r(r4scCs|jS)aB Gets the query_timeout_in_seconds of this ExportDetails. 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 ExportDetails. :rtype: int r r+r'r'r(r>s z&ExportDetails.query_timeout_in_secondscCs ||_dS)aY Sets the query_timeout_in_seconds of this ExportDetails. 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 ExportDetails. :type: int Nr3)r%rr'r'r(rJs cCs|jS)z Gets the should_include_columns of this ExportDetails. Include columns in response :return: The should_include_columns of this ExportDetails. :rtype: bool r!r+r'r'r(rVs z$ExportDetails.should_include_columnscCs ||_dS)z Sets the should_include_columns of this ExportDetails. Include columns in response :param should_include_columns: The should_include_columns of this ExportDetails. :type: bool Nr4)r%rr'r'r(rbs cCs|jS)a Gets the output_format of this ExportDetails. Specifies the format for the returned results. Allowed values for this property are: "CSV", "JSON" :return: The output_format of this ExportDetails. :rtype: str )r"r+r'r'r(rns zExportDetails.output_formatcCs*ddg}t||s td|||_dS)z Sets the output_format of this ExportDetails. Specifies the format for the returned results. :param output_format: The output_format of this ExportDetails. :type: str rr z:Invalid value for `output_format`, must be None or one of N)rr.r")r%rr/r'r'r(r|s  cCs|jS)z Gets the should_localize of this ExportDetails. Localize results, including header columns, List-Of-Values and timestamp values. :return: The should_localize of this ExportDetails. :rtype: bool r#r+r'r'r(rs zExportDetails.should_localizecCs ||_dS)z Sets the should_localize of this ExportDetails. Localize results, including header columns, List-Of-Values and timestamp values. :param should_localize: The should_localize of this ExportDetails. :type: bool Nr5)r%rr'r'r(rs cCs|jS)a Gets the should_use_acceleration of this ExportDetails. Controls if query should ignore pre-calculated results if available and only use raw data. :return: The should_use_acceleration of this ExportDetails. :rtype: bool r$r+r'r'r(rs z%ExportDetails.should_use_accelerationcCs ||_dS)a Sets the should_use_acceleration of this ExportDetails. Controls if query should ignore pre-calculated results if available and only use raw data. :param should_use_acceleration: The should_use_acceleration of this ExportDetails. :type: bool Nr6)r%rr'r'r(rs cCst|SN)rr+r'r'r(__repr__szExportDetails.__repr__cCs|dur dS|j|jkS)NF)__dict__r%otherr'r'r(__eq__szExportDetails.__eq__cCs ||k Sr7r'r:r'r'r(__ne__szExportDetails.__ne__N)__name__ __module__ __qualname____doc__ZSUB_SYSTEM_LOGZOUTPUT_FORMAT_CSVZOUTPUT_FORMAT_JSONr)propertyr setterrrrrrrrrrrrr8r<r=r'r'r'r(r spc                        rN)Zoci.utilrrrZoci.decoratorsrobjectrr'r'r'r(s