o
    ëÉ¶dÄ&  ã                   @   s8   d dl mZmZmZ d dlmZ eG dd„ deƒƒZdS )é    )Úformatted_flat_dictÚNONE_SENTINELÚ#value_allowed_none_or_none_sentinel)Úinit_model_state_from_kwargsc                   @   s  e Zd ZdZdZdZdZdZdZdZ	dd	„ Z
ed
d„ ƒZejdd„ ƒZedd„ ƒZejdd„ ƒZedd„ ƒZejdd„ ƒZedd„ ƒZejdd„ ƒZedd„ ƒZejdd„ ƒZedd„ ƒZejdd„ ƒZedd„ ƒZejdd„ ƒZedd „ ƒZejd!d „ ƒZd"d#„ Zd$d%„ Zd&d'„ Zd(S ))Ú	Statementz
    A statement object.
    ÚACCEPTEDÚ
CANCELLINGÚ	CANCELLEDÚFAILEDÚIN_PROGRESSÚ	SUCCEEDEDc              	   K   sd   dddddddddœ| _ ddd	d
dddddœ| _d| _d| _d| _d| _d| _d| _d| _d| _	dS )a  
        Initializes a new Statement 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 Statement.
        :type id: int

        :param code:
            The value to assign to the code property of this Statement.
        :type code: str

        :param lifecycle_state:
            The value to assign to the lifecycle_state property of this Statement.
            Allowed values for this property are: "ACCEPTED", "CANCELLING", "CANCELLED", "FAILED", "IN_PROGRESS", "SUCCEEDED", 'UNKNOWN_ENUM_VALUE'.
            Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
        :type lifecycle_state: str

        :param output:
            The value to assign to the output property of this Statement.
        :type output: oci.data_flow.models.StatementOutput

        :param progress:
            The value to assign to the progress property of this Statement.
        :type progress: float

        :param run_id:
            The value to assign to the run_id property of this Statement.
        :type run_id: str

        :param time_created:
            The value to assign to the time_created property of this Statement.
        :type time_created: datetime

        :param time_completed:
            The value to assign to the time_completed property of this Statement.
        :type time_completed: datetime

        ÚintÚstrZStatementOutputÚfloatÚdatetime)ÚidÚcodeÚlifecycle_stateÚoutputÚprogressÚrun_idÚtime_createdÚtime_completedr   r   ZlifecycleStater   r   ZrunIdZtimeCreatedZtimeCompletedN)
Zswagger_typesZattribute_mapÚ_idÚ_codeÚ_lifecycle_stateÚ_outputÚ	_progressÚ_run_idÚ_time_createdÚ_time_completed)ÚselfÚkwargs© r#   úBusr/lib/python3.10/site-packages/oci/data_flow/models/statement.pyÚ__init__*   s4   )øø
zStatement.__init__c                 C   ó   | j S )zš
        **[Required]** Gets the id of this Statement.
        The statement ID.


        :return: The id of this Statement.
        :rtype: int
        ©r   ©r!   r#   r#   r$   r   q   ó   
zStatement.idc                 C   ó
   || _ dS )zŒ
        Sets the id of this Statement.
        The statement ID.


        :param id: The id of this Statement.
        :type: int
        Nr'   )r!   r   r#   r#   r$   r   }   ó   

c                 C   r&   )zÒ
        **[Required]** Gets the code of this Statement.
        The statement code to execute.
        Example: `println(sc.version)`


        :return: The code of this Statement.
        :rtype: str
        ©r   r(   r#   r#   r$   r   ‰   s   zStatement.codec                 C   r*   )zÆ
        Sets the code of this Statement.
        The statement code to execute.
        Example: `println(sc.version)`


        :param code: The code of this Statement.
        :type: str
        Nr,   )r!   r   r#   r#   r$   r   –   s   
c                 C   r&   )a·  
        **[Required]** Gets the lifecycle_state of this Statement.
        The current state of this statement.

        Allowed values for this property are: "ACCEPTED", "CANCELLING", "CANCELLED", "FAILED", "IN_PROGRESS", "SUCCEEDED", 'UNKNOWN_ENUM_VALUE'.
        Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.


        :return: The lifecycle_state of this Statement.
        :rtype: str
        )r   r(   r#   r#   r$   r   £   ó   zStatement.lifecycle_statec                 C   s    g d¢}t ||ƒsd}|| _dS )zÆ
        Sets the lifecycle_state of this Statement.
        The current state of this statement.


        :param lifecycle_state: The lifecycle_state of this Statement.
        :type: str
        )r   r   r	   r
   r   r   ZUNKNOWN_ENUM_VALUEN)r   r   )r!   r   Zallowed_valuesr#   r#   r$   r   ²   s   


c                 C   r&   )z™
        Gets the output of this Statement.

        :return: The output of this Statement.
        :rtype: oci.data_flow.models.StatementOutput
        ©r   r(   r#   r#   r$   r   Á   s   zStatement.outputc                 C   r*   )zž
        Sets the output of this Statement.

        :param output: The output of this Statement.
        :type: oci.data_flow.models.StatementOutput
        Nr.   )r!   r   r#   r#   r$   r   Ë   s   
c                 C   r&   )zŸ
        Gets the progress of this Statement.
        The execution progress.


        :return: The progress of this Statement.
        :rtype: float
        ©r   r(   r#   r#   r$   r   Õ   r)   zStatement.progressc                 C   r*   )z¦
        Sets the progress of this Statement.
        The execution progress.


        :param progress: The progress of this Statement.
        :type: float
        Nr/   )r!   r   r#   r#   r$   r   á   r+   c                 C   r&   )z’
        Gets the run_id of this Statement.
        The ID of a run.


        :return: The run_id of this Statement.
        :rtype: str
        ©r   r(   r#   r#   r$   r   í   r)   zStatement.run_idc                 C   r*   )z—
        Sets the run_id of this Statement.
        The ID of a run.


        :param run_id: The run_id of this Statement.
        :type: str
        Nr0   )r!   r   r#   r#   r$   r   ù   r+   c                 C   r&   )aU  
        **[Required]** Gets the time_created of this Statement.
        The date and time the resource was created, expressed in `RFC 3339`__ timestamp format.
        Example: `2018-04-03T21:10:29.600Z`

        __ https://tools.ietf.org/html/rfc3339


        :return: The time_created of this Statement.
        :rtype: datetime
        ©r   r(   r#   r#   r$   r     r-   zStatement.time_createdc                 C   r*   )aQ  
        Sets the time_created of this Statement.
        The date and time the resource was created, expressed in `RFC 3339`__ timestamp format.
        Example: `2018-04-03T21:10:29.600Z`

        __ https://tools.ietf.org/html/rfc3339


        :param time_created: The time_created of this Statement.
        :type: datetime
        Nr1   )r!   r   r#   r#   r$   r     ó   
c                 C   r&   )aU  
        Gets the time_completed of this Statement.
        The date and time a statement execution was completed, expressed in `RFC 3339`__ timestamp format.
        Example: `2022-05-31T21:10:29.600Z`

        __ https://tools.ietf.org/html/rfc3339


        :return: The time_completed of this Statement.
        :rtype: datetime
        ©r    r(   r#   r#   r$   r   #  r-   zStatement.time_completedc                 C   r*   )ab  
        Sets the time_completed of this Statement.
        The date and time a statement execution was completed, expressed in `RFC 3339`__ timestamp format.
        Example: `2022-05-31T21:10:29.600Z`

        __ https://tools.ietf.org/html/rfc3339


        :param time_completed: The time_completed of this Statement.
        :type: datetime
        Nr3   )r!   r   r#   r#   r$   r   2  r2   c                 C   s   t | ƒS ©N)r   r(   r#   r#   r$   Ú__repr__A  s   zStatement.__repr__c                 C   s   |d u rdS | j |j kS )NF)Ú__dict__©r!   Úotherr#   r#   r$   Ú__eq__D  s   zStatement.__eq__c                 C   s
   | |k S r4   r#   r7   r#   r#   r$   Ú__ne__J  s   
zStatement.__ne__N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__ZLIFECYCLE_STATE_ACCEPTEDZLIFECYCLE_STATE_CANCELLINGZLIFECYCLE_STATE_CANCELLEDZLIFECYCLE_STATE_FAILEDZLIFECYCLE_STATE_IN_PROGRESSZLIFECYCLE_STATE_SUCCEEDEDr%   Úpropertyr   Úsetterr   r   r   r   r   r   r   r5   r9   r:   r#   r#   r#   r$   r      sX    G






	
	







r   N)Zoci.utilr   r   r   Zoci.decoratorsr   Úobjectr   r#   r#   r#   r$   Ú<module>   s   