ruạṛ
a ���f- � @ 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 dZd Zdd� Zedd� �Zedd� �Zejdd� �Zedd� �Zejdd� �Zedd� �Zejdd� �Zedd� �Zejdd� �Zedd� �Zejd d� �Zed!d"� �Zejd#d"� �Zd$d%� Zd&d'� Zd(d)� Zd*S )+�PipelineStepRunz! Detail of each StepRun. �ML_JOB� CUSTOM_SCRIPT� CONTAINER�WAITING�ACCEPTED�IN_PROGRESS�FAILED� SUCCEEDED� CANCELING�CANCELED�DELETED�SKIPPEDc K sP ddddddd�| _ dddddd d�| _d | _d | _d | _d | _d | _d | _d S )a� Initializes a new PipelineStepRun object with values from keyword arguments. This class has the following subclasses and if you are using this class as input to a service operations then you should favor using a subclass over the base class: * :class:`~oci.data_science.models.PipelineContainerStepRun` * :class:`~oci.data_science.models.PipelineCustomScriptStepRun` * :class:`~oci.data_science.models.PipelineMLJobStepRun` The following keyword arguments are supported (corresponding to the getters/setters of this class): :param step_type: The value to assign to the step_type property of this PipelineStepRun. Allowed values for this property are: "ML_JOB", "CUSTOM_SCRIPT", "CONTAINER", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type step_type: str :param time_started: The value to assign to the time_started property of this PipelineStepRun. :type time_started: datetime :param time_finished: The value to assign to the time_finished property of this PipelineStepRun. :type time_finished: datetime :param step_name: The value to assign to the step_name property of this PipelineStepRun. :type step_name: str :param lifecycle_state: The value to assign to the lifecycle_state property of this PipelineStepRun. Allowed values for this property are: "WAITING", "ACCEPTED", "IN_PROGRESS", "FAILED", "SUCCEEDED", "CANCELING", "CANCELED", "DELETED", "SKIPPED", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type lifecycle_state: str :param lifecycle_details: The value to assign to the lifecycle_details property of this PipelineStepRun. :type lifecycle_details: str �strZdatetime)� step_type�time_started� time_finished� step_name�lifecycle_state�lifecycle_details�stepTypeZtimeStartedZtimeFinishedZstepNameZlifecycleStateZlifecycleDetailsN)Z swagger_typesZ attribute_map� _step_type� _time_started�_time_finished� _step_name�_lifecycle_state�_lifecycle_details)�self�kwargs� r# �M/usr/lib/python3.9/site-packages/oci/data_science/models/pipeline_step_run.py�__init__B s( )� � zPipelineStepRun.__init__c C s4 | d }|dkrdS |dkr dS |dkr,dS dS d S ) z� Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype. r r ZPipelineContainerStepRunr ZPipelineCustomScriptStepRunr ZPipelineMLJobStepRunr Nr# )Zobject_dictionary�typer# r# r$ �get_subtype� s zPipelineStepRun.get_subtypec C s | j S )a **[Required]** Gets the step_type of this PipelineStepRun. The type of step. Allowed values for this property are: "ML_JOB", "CUSTOM_SCRIPT", "CONTAINER", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The step_type of this PipelineStepRun. :rtype: str )r �r! r# r# r$ r � s zPipelineStepRun.step_typec C s g d�}t ||�sd}|| _dS )z� Sets the step_type of this PipelineStepRun. The type of step. :param step_type: The step_type of this PipelineStepRun. :type: str )r r r �UNKNOWN_ENUM_VALUEN)r r )r! r �allowed_valuesr# r# r$ r � s c C s | j S )aA **[Required]** Gets the time_started of this PipelineStepRun. The date and time the pipeline step run was started in the timestamp format defined by `RFC3339`__. __ https://tools.ietf.org/html/rfc3339 :return: The time_started of this PipelineStepRun. :rtype: datetime �r r( r# r# r$ r � s zPipelineStepRun.time_startedc C s || _ dS )a= Sets the time_started of this PipelineStepRun. The date and time the pipeline step run was started in the timestamp format defined by `RFC3339`__. __ https://tools.ietf.org/html/rfc3339 :param time_started: The time_started of this PipelineStepRun. :type: datetime Nr+ )r! r r# r# r$ r � s c C s | j S )a: Gets the time_finished of this PipelineStepRun. The date and time the pipeline step run finshed executing in the timestamp format defined by `RFC3339`__. __ https://tools.ietf.org/html/rfc3339 :return: The time_finished of this PipelineStepRun. :rtype: datetime �r r( r# r# r$ r � s zPipelineStepRun.time_finishedc C s || _ dS )aF Sets the time_finished of this PipelineStepRun. The date and time the pipeline step run finshed executing in the timestamp format defined by `RFC3339`__. __ https://tools.ietf.org/html/rfc3339 :param time_finished: The time_finished of this PipelineStepRun. :type: datetime Nr, )r! r r# r# r$ r � s c C s | j S )z� **[Required]** Gets the step_name of this PipelineStepRun. The name of the step. :return: The step_name of this PipelineStepRun. :rtype: str �r r( r# r# r$ r � s zPipelineStepRun.step_namec C s || _ dS )z� Sets the step_name of this PipelineStepRun. The name of the step. :param step_name: The step_name of this PipelineStepRun. :type: str Nr- )r! r r# r# r$ r � s c C s | j S )a� Gets the lifecycle_state of this PipelineStepRun. The state of the step run. Allowed values for this property are: "WAITING", "ACCEPTED", "IN_PROGRESS", "FAILED", "SUCCEEDED", "CANCELING", "CANCELED", "DELETED", "SKIPPED", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The lifecycle_state of this PipelineStepRun. :rtype: str )r r( r# r# r$ r s zPipelineStepRun.lifecycle_statec C s g d�}t ||�sd}|| _dS )z� Sets the lifecycle_state of this PipelineStepRun. The state of the step run. :param lifecycle_state: The lifecycle_state of this PipelineStepRun. :type: str ) r r r r r r r r r r) N)r r )r! r r* r# r# r$ r s c C s | j S )z� Gets the lifecycle_details of this PipelineStepRun. Details of the state of the step run. :return: The lifecycle_details of this PipelineStepRun. :rtype: str �r r( r# r# r$ r " s z!PipelineStepRun.lifecycle_detailsc C s || _ dS )z� Sets the lifecycle_details of this PipelineStepRun. Details of the state of the step run. :param lifecycle_details: The lifecycle_details of this PipelineStepRun. :type: str Nr. )r! r r# r# r$ r . s c C s t | �S �N)r r( r# r# r$ �__repr__: s zPipelineStepRun.__repr__c C s |d u rdS | j |j kS )NF)�__dict__�r! �otherr# r# r$ �__eq__= s zPipelineStepRun.__eq__c C s | |k S r/ r# r2 r# r# r$ �__ne__C s zPipelineStepRun.__ne__N)�__name__� __module__�__qualname__�__doc__ZSTEP_TYPE_ML_JOBZSTEP_TYPE_CUSTOM_SCRIPTZSTEP_TYPE_CONTAINERZLIFECYCLE_STATE_WAITINGZLIFECYCLE_STATE_ACCEPTEDZLIFECYCLE_STATE_IN_PROGRESSZLIFECYCLE_STATE_FAILEDZLIFECYCLE_STATE_SUCCEEDEDZLIFECYCLE_STATE_CANCELINGZLIFECYCLE_STATE_CANCELEDZLIFECYCLE_STATE_DELETEDZLIFECYCLE_STATE_SKIPPEDr% �staticmethodr'