o
    ɶdO                     @   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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/d0 Zejd1d0 Zed2d3 Zejd4d3 Zed5d6 Zejd7d6 Zed8d9 Zejd:d9 Zed;d< Zejd=d< Zd>d? Zd@dA Z dBdC Z!dDS )EBuildRunz
    Each time you attempt to run a build pipeline you create one build run.
    A build can be running currently, or it can be a record of the run that happened in the past.
    The set of build runs constitutes a build pipeline's history.
    ACCEPTEDIN_PROGRESSFAILED	SUCCEEDED	CANCELINGCANCELEDDELETINGc                 K   sB  i 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| _ i 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+| _d+| _d+| _d+| _d+| _d+| _d+| _d+S ),a>  
        Initializes a new BuildRun 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 BuildRun.
        :type id: str

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

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

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

        :param build_pipeline_id:
            The value to assign to the build_pipeline_id property of this BuildRun.
        :type build_pipeline_id: str

        :param build_run_source:
            The value to assign to the build_run_source property of this BuildRun.
        :type build_run_source: oci.devops.models.BuildRunSource

        :param build_run_arguments:
            The value to assign to the build_run_arguments property of this BuildRun.
        :type build_run_arguments: oci.devops.models.BuildRunArgumentCollection

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

        :param time_updated:
            The value to assign to the time_updated property of this BuildRun.
        :type time_updated: datetime

        :param lifecycle_state:
            The value to assign to the lifecycle_state property of this BuildRun.
            Allowed values for this property are: "ACCEPTED", "IN_PROGRESS", "FAILED", "SUCCEEDED", "CANCELING", "CANCELED", "DELETING", '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 BuildRun.
        :type lifecycle_details: str

        :param build_run_progress:
            The value to assign to the build_run_progress property of this BuildRun.
        :type build_run_progress: oci.devops.models.BuildRunProgress

        :param commit_info:
            The value to assign to the commit_info property of this BuildRun.
        :type commit_info: oci.devops.models.CommitInfo

        :param build_outputs:
            The value to assign to the build_outputs property of this BuildRun.
        :type build_outputs: oci.devops.models.BuildOutputs

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

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

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

        idstrdisplay_namecompartment_id
project_idbuild_pipeline_idbuild_run_sourceZBuildRunSourcebuild_run_argumentsZBuildRunArgumentCollectiontime_createddatetimetime_updatedlifecycle_statelifecycle_detailsbuild_run_progressZBuildRunProgresscommit_infoZ
CommitInfobuild_outputsZBuildOutputsfreeform_tagszdict(str, str)defined_tagszdict(str, dict(str, object))system_tagsZdisplayNameZcompartmentIdZ	projectIdZbuildPipelineIdZbuildRunSourceZbuildRunArgumentsZtimeCreatedZtimeUpdatedZlifecycleStateZlifecycleDetailsZbuildRunProgressZ
commitInfoZbuildOutputsZfreeformTagsZdefinedTagsZ
systemTagsN)Zswagger_typesZattribute_map_id_display_name_compartment_id_project_id_build_pipeline_id_build_run_source_build_run_arguments_time_created_time_updated_lifecycle_state_lifecycle_details_build_run_progress_commit_info_build_outputs_freeform_tags_defined_tags_system_tags)selfkwargs r4   ?usr/lib/python3.10/site-packages/oci/devops/models/build_run.py__init__0   s   L	
	

zBuildRun.__init__c                 C      | j S )z
        **[Required]** Gets the id of this BuildRun.
        Unique identifier that is immutable on creation.


        :return: The id of this BuildRun.
        :rtype: str
        r!   r2   r4   r4   r5   r         
zBuildRun.idc                 C   
   || _ dS )z
        Sets the id of this BuildRun.
        Unique identifier that is immutable on creation.


        :param id: The id of this BuildRun.
        :type: str
        Nr8   )r2   r   r4   r4   r5   r         

c                 C   r7   )a   
        Gets the display_name of this BuildRun.
        Build run display name, which can be renamed and is not necessarily unique. Avoid entering confidential information.


        :return: The display_name of this BuildRun.
        :rtype: str
        r"   r9   r4   r4   r5   r      r:   zBuildRun.display_namec                 C   r;   )a  
        Sets the display_name of this BuildRun.
        Build run display name, which can be renamed and is not necessarily unique. Avoid entering confidential information.


        :param display_name: The display_name of this BuildRun.
        :type: str
        Nr=   )r2   r   r4   r4   r5   r      r<   c                 C   r7   )z
        Gets the compartment_id of this BuildRun.
        The OCID of the compartment where the build is running.


        :return: The compartment_id of this BuildRun.
        :rtype: str
        r#   r9   r4   r4   r5   r      r:   zBuildRun.compartment_idc                 C   r;   )z
        Sets the compartment_id of this BuildRun.
        The OCID of the compartment where the build is running.


        :param compartment_id: The compartment_id of this BuildRun.
        :type: str
        Nr>   )r2   r   r4   r4   r5   r      r<   c                 C   r7   )z
        Gets the project_id of this BuildRun.
        The OCID of the DevOps project.


        :return: The project_id of this BuildRun.
        :rtype: str
        r$   r9   r4   r4   r5   r      r:   zBuildRun.project_idc                 C   r;   )z
        Sets the project_id of this BuildRun.
        The OCID of the DevOps project.


        :param project_id: The project_id of this BuildRun.
        :type: str
        Nr?   )r2   r   r4   r4   r5   r   
  r<   c                 C   r7   )z
        Gets the build_pipeline_id of this BuildRun.
        The OCID of the build pipeline.


        :return: The build_pipeline_id of this BuildRun.
        :rtype: str
        r%   r9   r4   r4   r5   r     r:   zBuildRun.build_pipeline_idc                 C   r;   )z
        Sets the build_pipeline_id of this BuildRun.
        The OCID of the build pipeline.


        :param build_pipeline_id: The build_pipeline_id of this BuildRun.
        :type: str
        Nr@   )r2   r   r4   r4   r5   r   "  r<   c                 C   r7   )z
        **[Required]** Gets the build_run_source of this BuildRun.

        :return: The build_run_source of this BuildRun.
        :rtype: oci.devops.models.BuildRunSource
        r&   r9   r4   r4   r5   r   .     zBuildRun.build_run_sourcec                 C   r;   )z
        Sets the build_run_source of this BuildRun.

        :param build_run_source: The build_run_source of this BuildRun.
        :type: oci.devops.models.BuildRunSource
        NrA   )r2   r   r4   r4   r5   r   8     
c                 C   r7   )z
        Gets the build_run_arguments of this BuildRun.

        :return: The build_run_arguments of this BuildRun.
        :rtype: oci.devops.models.BuildRunArgumentCollection
        r'   r9   r4   r4   r5   r   B  rB   zBuildRun.build_run_argumentsc                 C   r;   )z
        Sets the build_run_arguments of this BuildRun.

        :param build_run_arguments: The build_run_arguments of this BuildRun.
        :type: oci.devops.models.BuildRunArgumentCollection
        NrD   )r2   r   r4   r4   r5   r   L  rC   c                 C   r7   )a  
        Gets the time_created of this BuildRun.
        The time the build run was created. Format defined by `RFC3339`__.

        __ https://datatracker.ietf.org/doc/html/rfc3339


        :return: The time_created of this BuildRun.
        :rtype: datetime
        r(   r9   r4   r4   r5   r   V     zBuildRun.time_createdc                 C   r;   )a  
        Sets the time_created of this BuildRun.
        The time the build run was created. Format defined by `RFC3339`__.

        __ https://datatracker.ietf.org/doc/html/rfc3339


        :param time_created: The time_created of this BuildRun.
        :type: datetime
        NrE   )r2   r   r4   r4   r5   r   d     
c                 C   r7   )a  
        Gets the time_updated of this BuildRun.
        The time the build run was updated. Format defined by `RFC3339`__.

        __ https://datatracker.ietf.org/doc/html/rfc3339


        :return: The time_updated of this BuildRun.
        :rtype: datetime
        r)   r9   r4   r4   r5   r   r  rF   zBuildRun.time_updatedc                 C   r;   )a  
        Sets the time_updated of this BuildRun.
        The time the build run was updated. Format defined by `RFC3339`__.

        __ https://datatracker.ietf.org/doc/html/rfc3339


        :param time_updated: The time_updated of this BuildRun.
        :type: datetime
        NrH   )r2   r   r4   r4   r5   r     rG   c                 C   r7   )a  
        Gets the lifecycle_state of this BuildRun.
        The current state of the build run.

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


        :return: The lifecycle_state of this BuildRun.
        :rtype: str
        )r*   r9   r4   r4   r5   r     s   zBuildRun.lifecycle_statec                 C   s    g d}t ||sd}|| _dS )z
        Sets the lifecycle_state of this BuildRun.
        The current state of the build run.


        :param lifecycle_state: The lifecycle_state of this BuildRun.
        :type: str
        )r   r   r	   r
   r   r   r   ZUNKNOWN_ENUM_VALUEN)r   r*   )r2   r   Zallowed_valuesr4   r4   r5   r     s   


c                 C   r7   )a'  
        Gets the lifecycle_details of this BuildRun.
        A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.


        :return: The lifecycle_details of this BuildRun.
        :rtype: str
        r+   r9   r4   r4   r5   r     r:   zBuildRun.lifecycle_detailsc                 C   r;   )a7  
        Sets the lifecycle_details of this BuildRun.
        A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.


        :param lifecycle_details: The lifecycle_details of this BuildRun.
        :type: str
        NrI   )r2   r   r4   r4   r5   r     r<   c                 C   r7   )z
        Gets the build_run_progress of this BuildRun.

        :return: The build_run_progress of this BuildRun.
        :rtype: oci.devops.models.BuildRunProgress
        r,   r9   r4   r4   r5   r     rB   zBuildRun.build_run_progressc                 C   r;   )z
        Sets the build_run_progress of this BuildRun.

        :param build_run_progress: The build_run_progress of this BuildRun.
        :type: oci.devops.models.BuildRunProgress
        NrJ   )r2   r   r4   r4   r5   r     rC   c                 C   r7   )z
        Gets the commit_info of this BuildRun.

        :return: The commit_info of this BuildRun.
        :rtype: oci.devops.models.CommitInfo
        r-   r9   r4   r4   r5   r     rB   zBuildRun.commit_infoc                 C   r;   )z
        Sets the commit_info of this BuildRun.

        :param commit_info: The commit_info of this BuildRun.
        :type: oci.devops.models.CommitInfo
        NrK   )r2   r   r4   r4   r5   r     rC   c                 C   r7   )z
        Gets the build_outputs of this BuildRun.

        :return: The build_outputs of this BuildRun.
        :rtype: oci.devops.models.BuildOutputs
        r.   r9   r4   r4   r5   r     rB   zBuildRun.build_outputsc                 C   r;   )z
        Sets the build_outputs of this BuildRun.

        :param build_outputs: The build_outputs of this BuildRun.
        :type: oci.devops.models.BuildOutputs
        NrL   )r2   r   r4   r4   r5   r     rC   c                 C   r7   )a  
        Gets the freeform_tags of this BuildRun.
        Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.  See `Resource Tags`__. Example: `{"bar-key": "value"}`

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


        :return: The freeform_tags of this BuildRun.
        :rtype: dict(str, str)
        r/   r9   r4   r4   r5   r      rF   zBuildRun.freeform_tagsc                 C   r;   )a  
        Sets the freeform_tags of this BuildRun.
        Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.  See `Resource Tags`__. Example: `{"bar-key": "value"}`

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


        :param freeform_tags: The freeform_tags of this BuildRun.
        :type: dict(str, str)
        NrM   )r2   r   r4   r4   r5   r     rG   c                 C   r7   )a  
        Gets the defined_tags of this BuildRun.
        Defined tags for this resource. Each key is predefined and scoped to a namespace. See `Resource Tags`__. Example: `{"foo-namespace": {"bar-key": "value"}}`

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


        :return: The defined_tags of this BuildRun.
        :rtype: dict(str, dict(str, object))
        r0   r9   r4   r4   r5   r     rF   zBuildRun.defined_tagsc                 C   r;   )a  
        Sets the defined_tags of this BuildRun.
        Defined tags for this resource. Each key is predefined and scoped to a namespace. See `Resource Tags`__. Example: `{"foo-namespace": {"bar-key": "value"}}`

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


        :param defined_tags: The defined_tags of this BuildRun.
        :type: dict(str, dict(str, object))
        NrN   )r2   r   r4   r4   r5   r   *  rG   c                 C   r7   )a  
        Gets the system_tags of this BuildRun.
        Usage of system tag keys. These predefined keys are scoped to namespaces. See `Resource Tags`__. Example: `{"orcl-cloud": {"free-tier-retained": "true"}}`

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


        :return: The system_tags of this BuildRun.
        :rtype: dict(str, dict(str, object))
        r1   r9   r4   r4   r5   r    8  rF   zBuildRun.system_tagsc                 C   r;   )a  
        Sets the system_tags of this BuildRun.
        Usage of system tag keys. These predefined keys are scoped to namespaces. See `Resource Tags`__. Example: `{"orcl-cloud": {"free-tier-retained": "true"}}`

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


        :param system_tags: The system_tags of this BuildRun.
        :type: dict(str, dict(str, object))
        NrO   )r2   r    r4   r4   r5   r    F  rG   c                 C   s   t | S N)r   r9   r4   r4   r5   __repr__T  s   zBuildRun.__repr__c                 C   s   |d u rdS | j |j kS )NF)__dict__r2   otherr4   r4   r5   __eq__W  s   zBuildRun.__eq__c                 C   s
   | |k S rP   r4   rS   r4   r4   r5   __ne__]  s   
zBuildRun.__ne__N)"__name__
__module____qualname____doc__ZLIFECYCLE_STATE_ACCEPTEDZLIFECYCLE_STATE_IN_PROGRESSZLIFECYCLE_STATE_FAILEDZLIFECYCLE_STATE_SUCCEEDEDZLIFECYCLE_STATE_CANCELINGZLIFECYCLE_STATE_CANCELEDZLIFECYCLE_STATE_DELETINGr6   propertyr   setterr   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r    rQ   rU   rV   r4   r4   r4   r5   r      s     










	
	
	
	








	
	
	
	
	
	





r   N)Zoci.utilr   r   r   Zoci.decoratorsr   objectr   r4   r4   r4   r5   <module>   s   