ruạṛ
a O��f�N � @ 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 �str�datetime�int� 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 � compartmentId�timeStarted�timeAccepted�timeFinished�timeExpires�percentCompleter � operationTyper �timeBackgroundAt� timeFilter�scopeFilters� subSystem�displayQueryString�internalQueryStringN)� swagger_types� 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� rF ��/sparta/input/_build_configuration/image_build+validate/lib/bmcenv/lib64/python3.9/site-packages/oci/log_analytics/models/query_work_request.py�__init__8 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 �r4 �rD rF rF rG 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 NrI )rD r rF rF rG 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 �r5 rJ rF rF rG 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 NrK )rD r rF rF rG 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 �r6 rJ rF rF rG 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 NrL )rD r rF rF rG 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 �r7 rJ rF rF rG r s zQueryWorkRequest.time_acceptedc C s || _ dS )z� Sets the time_accepted of this QueryWorkRequest. When the work request was accepted. Should match timeStarted in all cases. :param time_accepted: The time_accepted of this QueryWorkRequest. :type: datetime NrM )rD r rF rF rG r s c C s | j S )z� Gets the time_finished of this QueryWorkRequest. When the job finished execution. :return: The time_finished of this QueryWorkRequest. :rtype: datetime �r8 rJ rF rF rG r ! s zQueryWorkRequest.time_finishedc C s || _ dS )z� Sets the time_finished of this QueryWorkRequest. When the job finished execution. :param time_finished: The time_finished of this QueryWorkRequest. :type: datetime NrN )rD r rF rF rG r - s c C s | j S )z� Gets the time_expires of this QueryWorkRequest. When the job will expire. :return: The time_expires of this QueryWorkRequest. :rtype: datetime �r9 rJ rF rF rG r 9 s zQueryWorkRequest.time_expiresc C s || _ dS )z� Sets the time_expires of this QueryWorkRequest. When the job will expire. :param time_expires: The time_expires of this QueryWorkRequest. :type: datetime NrO )rD r rF rF rG r E s c C s | j S )z� Gets the percent_complete of this QueryWorkRequest. Percentage progress completion of the query. :return: The percent_complete of this QueryWorkRequest. :rtype: int �r: rJ rF rF rG r Q s z!QueryWorkRequest.percent_completec C s || _ dS )z� Sets the percent_complete of this QueryWorkRequest. Percentage progress completion of the query. :param percent_complete: The percent_complete of this QueryWorkRequest. :type: int NrP )rD r rF rF rG r ] s c C s | j S )a� Gets the status of this QueryWorkRequest. Work request status. 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'. :return: The status of this QueryWorkRequest. :rtype: str )r; rJ rF rF rG r i s zQueryWorkRequest.statusc C s g d�}t ||�sd}|| _dS )z� Sets the status of this QueryWorkRequest. Work request status. :param status: The status of this QueryWorkRequest. :type: str )r r r r r �UNKNOWN_ENUM_VALUEN)r r; )rD r �allowed_valuesrF rF rG r x s c C s | j S )a� Gets the operation_type of this QueryWorkRequest. Asynchronous action name. 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'. :return: The operation_type of this QueryWorkRequest. :rtype: str )r<