o
    ɶdD                     @   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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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
d0d1 Zejd2d1 Zd3d4 Zd5d6 Zd7d8 Zd9S ):Jobz$
    A job for training models.
    CREATINGACTIVEDELETINGFAILEDDELETEDc                 K   s   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ddd| _d| _d| _d| _d| _d| _d| _d| _d| _	d| _
d| _d| _d| _d| _d| _dS )ap
  
        Initializes a new Job 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 Job.
        :type id: str

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

        :param created_by:
            The value to assign to the created_by property of this Job.
        :type created_by: str

        :param project_id:
            The value to assign to the project_id property of this Job.
        :type project_id: str

        :param compartment_id:
            The value to assign to the compartment_id property of this Job.
        :type compartment_id: str

        :param display_name:
            The value to assign to the display_name property of this Job.
        :type display_name: str

        :param description:
            The value to assign to the description property of this Job.
        :type description: str

        :param job_configuration_details:
            The value to assign to the job_configuration_details property of this Job.
        :type job_configuration_details: oci.data_science.models.JobConfigurationDetails

        :param job_infrastructure_configuration_details:
            The value to assign to the job_infrastructure_configuration_details property of this Job.
        :type job_infrastructure_configuration_details: oci.data_science.models.JobInfrastructureConfigurationDetails

        :param job_log_configuration_details:
            The value to assign to the job_log_configuration_details property of this Job.
        :type job_log_configuration_details: oci.data_science.models.JobLogConfigurationDetails

        :param lifecycle_state:
            The value to assign to the lifecycle_state property of this Job.
            Allowed values for this property are: "CREATING", "ACTIVE", "DELETING", "FAILED", "DELETED", '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 Job.
        :type lifecycle_details: str

        :param freeform_tags:
            The value to assign to the freeform_tags property of this Job.
        :type freeform_tags: dict(str, str)

        :param defined_tags:
            The value to assign to the defined_tags property of this Job.
        :type defined_tags: dict(str, dict(str, object))

        strdatetimeZJobConfigurationDetailsZ%JobInfrastructureConfigurationDetailsZJobLogConfigurationDetailszdict(str, str)zdict(str, dict(str, object)))idtime_created
created_by
project_idcompartment_iddisplay_namedescriptionjob_configuration_details(job_infrastructure_configuration_detailsjob_log_configuration_detailslifecycle_statelifecycle_detailsfreeform_tagsdefined_tagsr   ZtimeCreatedZ	createdByZ	projectIdZcompartmentIdZdisplayNamer   ZjobConfigurationDetailsZ%jobInfrastructureConfigurationDetailsZjobLogConfigurationDetailsZlifecycleStateZlifecycleDetailsZfreeformTagsZdefinedTagsN)Zswagger_typesZattribute_map_id_time_created_created_by_project_id_compartment_id_display_name_description_job_configuration_details)_job_infrastructure_configuration_details_job_log_configuration_details_lifecycle_state_lifecycle_details_freeform_tags_defined_tags)selfkwargs r,   ?usr/lib/python3.10/site-packages/oci/data_science/models/job.py__init__&   sX   A
zJob.__init__c                 C      | j S )z
        **[Required]** Gets the id of this Job.
        The `OCID`__ of the job.

        __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm


        :return: The id of this Job.
        :rtype: str
        r   r*   r,   r,   r-   r         zJob.idc                 C   
   || _ dS )z
        Sets the id of this Job.
        The `OCID`__ of the job.

        __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm


        :param id: The id of this Job.
        :type: str
        Nr0   )r*   r   r,   r,   r-   r         
c                 C   r/   )aI  
        **[Required]** Gets the time_created of this Job.
        The date and time the resource was created in the timestamp format defined by `RFC3339`__.
        Example: 2020-08-06T21:10:29.41Z

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


        :return: The time_created of this Job.
        :rtype: datetime
        r   r1   r,   r,   r-   r         zJob.time_createdc                 C   r3   )aE  
        Sets the time_created of this Job.
        The date and time the resource was created in the timestamp format defined by `RFC3339`__.
        Example: 2020-08-06T21:10:29.41Z

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


        :param time_created: The time_created of this Job.
        :type: datetime
        Nr5   )r*   r   r,   r,   r-   r         
c                 C   r/   )a  
        **[Required]** Gets the created_by of this Job.
        The `OCID`__ of the user who created the job.

        __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm


        :return: The created_by of this Job.
        :rtype: str
        r   r1   r,   r,   r-   r      r2   zJob.created_byc                 C   r3   )a  
        Sets the created_by of this Job.
        The `OCID`__ of the user who created the job.

        __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm


        :param created_by: The created_by of this Job.
        :type: str
        Nr8   )r*   r   r,   r,   r-   r      r4   c                 C   r/   )a  
        **[Required]** Gets the project_id of this Job.
        The `OCID`__ of the project to associate the job with.

        __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm


        :return: The project_id of this Job.
        :rtype: str
        r   r1   r,   r,   r-   r      r2   zJob.project_idc                 C   r3   )a  
        Sets the project_id of this Job.
        The `OCID`__ of the project to associate the job with.

        __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm


        :param project_id: The project_id of this Job.
        :type: str
        Nr9   )r*   r   r,   r,   r-   r      r4   c                 C   r/   )a.  
        **[Required]** Gets the compartment_id of this Job.
        The `OCID`__ of the compartment where you want to create the job.

        __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm


        :return: The compartment_id of this Job.
        :rtype: str
        r    r1   r,   r,   r-   r   	  r2   zJob.compartment_idc                 C   r3   )a,  
        Sets the compartment_id of this Job.
        The `OCID`__ of the compartment where you want to create the job.

        __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm


        :param compartment_id: The compartment_id of this Job.
        :type: str
        Nr:   )r*   r   r,   r,   r-   r     r4   c                 C   r/   )z
        Gets the display_name of this Job.
        A user-friendly display name for the resource.


        :return: The display_name of this Job.
        :rtype: str
        r!   r1   r,   r,   r-   r   %     
zJob.display_namec                 C   r3   )z
        Sets the display_name of this Job.
        A user-friendly display name for the resource.


        :param display_name: The display_name of this Job.
        :type: str
        Nr;   )r*   r   r,   r,   r-   r   1     

c                 C   r/   )z
        Gets the description of this Job.
        A short description of the job.


        :return: The description of this Job.
        :rtype: str
        r"   r1   r,   r,   r-   r   =  r<   zJob.descriptionc                 C   r3   )z
        Sets the description of this Job.
        A short description of the job.


        :param description: The description of this Job.
        :type: str
        Nr>   )r*   r   r,   r,   r-   r   I  r=   c                 C   r/   )z
        **[Required]** Gets the job_configuration_details of this Job.

        :return: The job_configuration_details of this Job.
        :rtype: oci.data_science.models.JobConfigurationDetails
        r#   r1   r,   r,   r-   r   U     zJob.job_configuration_detailsc                 C   r3   )z
        Sets the job_configuration_details of this Job.

        :param job_configuration_details: The job_configuration_details of this Job.
        :type: oci.data_science.models.JobConfigurationDetails
        Nr?   )r*   r   r,   r,   r-   r   _     
c                 C   r/   )z
        **[Required]** Gets the job_infrastructure_configuration_details of this Job.

        :return: The job_infrastructure_configuration_details of this Job.
        :rtype: oci.data_science.models.JobInfrastructureConfigurationDetails
        r$   r1   r,   r,   r-   r   i  r@   z,Job.job_infrastructure_configuration_detailsc                 C   r3   )a  
        Sets the job_infrastructure_configuration_details of this Job.

        :param job_infrastructure_configuration_details: The job_infrastructure_configuration_details of this Job.
        :type: oci.data_science.models.JobInfrastructureConfigurationDetails
        NrB   )r*   r   r,   r,   r-   r   s  rA   c                 C   r/   )z
        Gets the job_log_configuration_details of this Job.

        :return: The job_log_configuration_details of this Job.
        :rtype: oci.data_science.models.JobLogConfigurationDetails
        r%   r1   r,   r,   r-   r   }  r@   z!Job.job_log_configuration_detailsc                 C   r3   )z
        Sets the job_log_configuration_details of this Job.

        :param job_log_configuration_details: The job_log_configuration_details of this Job.
        :type: oci.data_science.models.JobLogConfigurationDetails
        NrC   )r*   r   r,   r,   r-   r     rA   c                 C   r/   )a  
        **[Required]** Gets the lifecycle_state of this Job.
        The state of the job.

        Allowed values for this property are: "CREATING", "ACTIVE", "DELETING", "FAILED", "DELETED", 'UNKNOWN_ENUM_VALUE'.
        Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.


        :return: The lifecycle_state of this Job.
        :rtype: str
        )r&   r1   r,   r,   r-   r     r6   zJob.lifecycle_statec                 C   s    g d}t ||sd}|| _dS )z
        Sets the lifecycle_state of this Job.
        The state of the job.


        :param lifecycle_state: The lifecycle_state of this Job.
        :type: str
        )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 lifecycle_details of this Job.
        The state of the job.


        :return: The lifecycle_details of this Job.
        :rtype: str
        r'   r1   r,   r,   r-   r     r<   zJob.lifecycle_detailsc                 C   r3   )z
        Sets the lifecycle_details of this Job.
        The state of the job.


        :param lifecycle_details: The lifecycle_details of this Job.
        :type: str
        NrD   )r*   r   r,   r,   r-   r     r=   c                 C   r/   )a  
        Gets the freeform_tags of this Job.
        Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. See `Resource Tags`__.
        Example: `{"Department": "Finance"}`

        __ https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm


        :return: The freeform_tags of this Job.
        :rtype: dict(str, str)
        r(   r1   r,   r,   r-   r     r6   zJob.freeform_tagsc                 C   r3   )a  
        Sets the freeform_tags of this Job.
        Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. See `Resource Tags`__.
        Example: `{"Department": "Finance"}`

        __ https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm


        :param freeform_tags: The freeform_tags of this Job.
        :type: dict(str, str)
        NrE   )r*   r   r,   r,   r-   r     r7   c                 C   r/   )a  
        Gets the defined_tags of this Job.
        Defined tags for this resource. Each key is predefined and scoped to a namespace. See `Resource Tags`__.
        Example: `{"Operations": {"CostCenter": "42"}}`

        __ https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm


        :return: The defined_tags of this Job.
        :rtype: dict(str, dict(str, object))
        r)   r1   r,   r,   r-   r     r6   zJob.defined_tagsc                 C   r3   )a  
        Sets the defined_tags of this Job.
        Defined tags for this resource. Each key is predefined and scoped to a namespace. See `Resource Tags`__.
        Example: `{"Operations": {"CostCenter": "42"}}`

        __ https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm


        :param defined_tags: The defined_tags of this Job.
        :type: dict(str, dict(str, object))
        NrF   )r*   r   r,   r,   r-   r     r7   c                 C   s   t | S N)r   r1   r,   r,   r-   __repr__  s   zJob.__repr__c                 C   s   |d u rdS | j |j kS )NF)__dict__r*   otherr,   r,   r-   __eq__  s   z
Job.__eq__c                 C   s
   | |k S rG   r,   rJ   r,   r,   r-   __ne__  s   
z
Job.__ne__N)__name__
__module____qualname____doc__ZLIFECYCLE_STATE_CREATINGZLIFECYCLE_STATE_ACTIVEZLIFECYCLE_STATE_DELETINGZLIFECYCLE_STATE_FAILEDZLIFECYCLE_STATE_DELETEDr.   propertyr   setterr   r   r   r   r   r   r   r   r   r   r   r   r   rH   rL   rM   r,   r,   r,   r-   r      s    q














	
	
	
	
	
	







r   N)Zoci.utilr   r   r   Zoci.decoratorsr   objectr   r,   r,   r,   r-   <module>   s   