ruạṛ
a ���f2O � @ 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 ZdZdZdZdZdZdZdZ dZ d Zd ZdZ dd � Zedd� �Zejdd� �Zedd� �Zejdd� �Zedd� �Zejdd� �Zedd� �Zejdd� �Zedd� �Zejdd� �Zedd� �Zejdd� �Zed d!� �Zejd"d!� �Zed#d$� �Zejd%d$� �Zed&d'� �Zejd(d'� �Zed)d*� �Zejd+d*� �Zed,d-� �Zejd.d-� �Zed/d0� �Zejd1d0� �Zed2d3� �Zejd4d3� �Zed5d6� �Zejd7d6� �Zed8d9� �Zejd:d9� �Zed;d<� �Z e jd=d<� �Z d>d?� Z!d@dA� Z"dBdC� Z#dDS )E�QueryWorkRequestzL Job details outlining parameters specified when job was submitted. �ACCEPTED�CANCELED�FAILED�IN_PROGRESS� SUCCEEDED�EXECUTE_QUERY_JOB�EXECUTE_PURGE_JOB� FOREGROUND� BACKGROUND�LOGc K s� ddddddddddddddddd�| _ ddd d ddd dddddddddd�| _d| _d| _d| _d| _d| _d| _d| _d| _ d| _ d| _d| _d| _ d| _d| _d| _d| _dS )a� Initializes a new QueryWorkRequest object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class): :param id: The value to assign to the id property of this QueryWorkRequest. :type id: str :param compartment_id: The value to assign to the compartment_id property of this QueryWorkRequest. :type compartment_id: str :param time_started: The value to assign to the time_started property of this QueryWorkRequest. :type time_started: datetime :param time_accepted: The value to assign to the time_accepted property of this QueryWorkRequest. :type time_accepted: datetime :param time_finished: The value to assign to the time_finished property of this QueryWorkRequest. :type time_finished: datetime :param time_expires: The value to assign to the time_expires property of this QueryWorkRequest. :type time_expires: datetime :param percent_complete: The value to assign to the percent_complete property of this QueryWorkRequest. :type percent_complete: int :param status: The value to assign to the status property of this QueryWorkRequest. Allowed values for this property are: "ACCEPTED", "CANCELED", "FAILED", "IN_PROGRESS", "SUCCEEDED", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type status: str :param operation_type: The value to assign to the operation_type property of this QueryWorkRequest. Allowed values for this property are: "EXECUTE_QUERY_JOB", "EXECUTE_PURGE_JOB", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type operation_type: str :param mode: The value to assign to the mode property of this QueryWorkRequest. Allowed values for this property are: "FOREGROUND", "BACKGROUND", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type mode: str :param time_background_at: The value to assign to the time_background_at property of this QueryWorkRequest. :type time_background_at: datetime :param time_filter: The value to assign to the time_filter property of this QueryWorkRequest. :type time_filter: oci.log_analytics.models.TimeRange :param scope_filters: The value to assign to the scope_filters property of this QueryWorkRequest. :type scope_filters: list[oci.log_analytics.models.ScopeFilter] :param sub_system: The value to assign to the sub_system property of this QueryWorkRequest. Allowed values for this property are: "LOG", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type sub_system: str :param display_query_string: The value to assign to the display_query_string property of this QueryWorkRequest. :type display_query_string: str :param internal_query_string: The value to assign to the internal_query_string property of this QueryWorkRequest. :type internal_query_string: str �strZdatetime�intZ TimeRangezlist[ScopeFilter])�id�compartment_id�time_started� time_accepted� time_finished�time_expires�percent_complete�status�operation_type�mode�time_background_at�time_filter� scope_filters� sub_system�display_query_string�internal_query_stringr Z compartmentIdZtimeStartedZtimeAcceptedZtimeFinishedZtimeExpiresZpercentCompleter Z operationTyper ZtimeBackgroundAtZ timeFilterZscopeFiltersZ subSystemZdisplayQueryStringZinternalQueryStringN)Z swagger_typesZ attribute_map�_id�_compartment_id� _time_started�_time_accepted�_time_finished� _time_expires�_percent_complete�_status�_operation_type�_mode�_time_background_at�_time_filter�_scope_filters�_sub_system�_display_query_string�_internal_query_string)�self�kwargs� r5 �O/usr/lib/python3.9/site-packages/oci/log_analytics/models/query_work_request.py�__init__: sd O��zQueryWorkRequest.__init__c C s | j S )z� **[Required]** Gets the id of this QueryWorkRequest. Unique OCID identifier to reference this query job work Request with. :return: The id of this QueryWorkRequest. :rtype: str �r# �r3 r5 r5 r6 r � s zQueryWorkRequest.idc C s || _ dS )z� Sets the id of this QueryWorkRequest. Unique OCID identifier to reference this query job work Request with. :param id: The id of this QueryWorkRequest. :type: str Nr8 )r3 r r5 r5 r6 r � s c C s | j S )a( **[Required]** Gets the compartment_id of this QueryWorkRequest. Compartment Identifier `OCID]`__. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :return: The compartment_id of this QueryWorkRequest. :rtype: str �r$ r9 r5 r5 r6 r � s zQueryWorkRequest.compartment_idc C s || _ dS )a& Sets the compartment_id of this QueryWorkRequest. Compartment Identifier `OCID]`__. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param compartment_id: The compartment_id of this QueryWorkRequest. :type: str Nr: )r3 r r5 r5 r6 r � s c C s | j S )z� **[Required]** Gets the time_started of this QueryWorkRequest. When the job was started. :return: The time_started of this QueryWorkRequest. :rtype: datetime �r% r9 r5 r5 r6 r � s zQueryWorkRequest.time_startedc C s || _ dS )z� Sets the time_started of this QueryWorkRequest. When the job was started. :param time_started: The time_started of this QueryWorkRequest. :type: datetime Nr; )r3 r r5 r5 r6 r � s c C s | j S )z� Gets the time_accepted of this QueryWorkRequest. When the work request was accepted. Should match timeStarted in all cases. :return: The time_accepted of this QueryWorkRequest. :rtype: datetime �r&