o
    ɶdZX                     @   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	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d0d/ Zed1d2 Z e jd3d2 Z ed4d5 Z!e!jd6d5 Z!ed7d8 Z"e"jd9d8 Z"ed:d; Z#e#jd<d; Z#ed=d> Z$e$jd?d> Z$d@dA Z%dBdC Z&dDdE Z'dFS )GDeployArtifacta  
    Artifacts are deployment manifests that are referenced in a pipeline stage for automated deployment to the target environment.  DevOps artifacts can be an OCI Container image repository, Kubernetes manifest, an Artifact Registry artifact, or defined inline.
    DEPLOYMENT_SPECJOB_SPECKUBERNETES_MANIFESTGENERIC_FILEDOCKER_IMAGE
HELM_CHARTCOMMAND_SPECNONESUBSTITUTE_PLACEHOLDERSCREATINGUPDATINGACTIVEDELETINGDELETEDFAILEDc                 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| _d| _d| _dS )a   
        Initializes a new DeployArtifact 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 DeployArtifact.
        :type id: str

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

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

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

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

        :param deploy_artifact_type:
            The value to assign to the deploy_artifact_type property of this DeployArtifact.
            Allowed values for this property are: "DEPLOYMENT_SPEC", "JOB_SPEC", "KUBERNETES_MANIFEST", "GENERIC_FILE", "DOCKER_IMAGE", "HELM_CHART", "COMMAND_SPEC", 'UNKNOWN_ENUM_VALUE'.
            Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
        :type deploy_artifact_type: str

        :param argument_substitution_mode:
            The value to assign to the argument_substitution_mode property of this DeployArtifact.
            Allowed values for this property are: "NONE", "SUBSTITUTE_PLACEHOLDERS", 'UNKNOWN_ENUM_VALUE'.
            Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
        :type argument_substitution_mode: str

        :param deploy_artifact_source:
            The value to assign to the deploy_artifact_source property of this DeployArtifact.
        :type deploy_artifact_source: oci.devops.models.DeployArtifactSource

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

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

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

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

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

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

        strZDeployArtifactSourcedatetimezdict(str, str)zdict(str, dict(str, object)))iddescriptiondisplay_name
project_idcompartment_iddeploy_artifact_typeargument_substitution_modedeploy_artifact_sourcetime_createdtime_updatedlifecycle_statelifecycle_detailsfreeform_tagsdefined_tagssystem_tagsr   r   ZdisplayNameZ	projectIdZcompartmentIdZdeployArtifactTypeZargumentSubstitutionModeZdeployArtifactSourceZtimeCreatedZtimeUpdatedZlifecycleStateZlifecycleDetailsZfreeformTagsZdefinedTagsZ
systemTagsN)Zswagger_typesZattribute_map_id_description_display_name_project_id_compartment_id_deploy_artifact_type_argument_substitution_mode_deploy_artifact_source_time_created_time_updated_lifecycle_state_lifecycle_details_freeform_tags_defined_tags_system_tags)selfkwargs r8   Eusr/lib/python3.10/site-packages/oci/devops/models/deploy_artifact.py__init__N   s^   I
zDeployArtifact.__init__c                 C      | j S )z
        **[Required]** Gets the id of this DeployArtifact.
        Unique identifier that is immutable on creation.


        :return: The id of this DeployArtifact.
        :rtype: str
        r'   r6   r8   r8   r9   r         
zDeployArtifact.idc                 C   
   || _ dS )z
        Sets the id of this DeployArtifact.
        Unique identifier that is immutable on creation.


        :param id: The id of this DeployArtifact.
        :type: str
        Nr<   )r6   r   r8   r8   r9   r         

c                 C   r;   )z
        Gets the description of this DeployArtifact.
        Optional description about the artifact to be deployed.


        :return: The description of this DeployArtifact.
        :rtype: str
        r(   r=   r8   r8   r9   r      r>   zDeployArtifact.descriptionc                 C   r?   )z
        Sets the description of this DeployArtifact.
        Optional description about the artifact to be deployed.


        :param description: The description of this DeployArtifact.
        :type: str
        NrA   )r6   r   r8   r8   r9   r      r@   c                 C   r;   )a  
        Gets the display_name of this DeployArtifact.
        Deployment artifact identifier, which can be renamed and is not necessarily unique. Avoid entering confidential information.


        :return: The display_name of this DeployArtifact.
        :rtype: str
        r)   r=   r8   r8   r9   r      r>   zDeployArtifact.display_namec                 C   r?   )a  
        Sets the display_name of this DeployArtifact.
        Deployment artifact identifier, which can be renamed and is not necessarily unique. Avoid entering confidential information.


        :param display_name: The display_name of this DeployArtifact.
        :type: str
        NrB   )r6   r   r8   r8   r9   r     r@   c                 C   r;   )z
        **[Required]** Gets the project_id of this DeployArtifact.
        The OCID of a project.


        :return: The project_id of this DeployArtifact.
        :rtype: str
        r*   r=   r8   r8   r9   r     r>   zDeployArtifact.project_idc                 C   r?   )z
        Sets the project_id of this DeployArtifact.
        The OCID of a project.


        :param project_id: The project_id of this DeployArtifact.
        :type: str
        NrC   )r6   r   r8   r8   r9   r     r@   c                 C   r;   )z
        **[Required]** Gets the compartment_id of this DeployArtifact.
        The OCID of a compartment.


        :return: The compartment_id of this DeployArtifact.
        :rtype: str
        r+   r=   r8   r8   r9   r   *  r>   zDeployArtifact.compartment_idc                 C   r?   )z
        Sets the compartment_id of this DeployArtifact.
        The OCID of a compartment.


        :param compartment_id: The compartment_id of this DeployArtifact.
        :type: str
        NrD   )r6   r   r8   r8   r9   r   6  r@   c                 C   r;   )a  
        **[Required]** Gets the deploy_artifact_type of this DeployArtifact.
        Type of the deployment artifact.

        Allowed values for this property are: "DEPLOYMENT_SPEC", "JOB_SPEC", "KUBERNETES_MANIFEST", "GENERIC_FILE", "DOCKER_IMAGE", "HELM_CHART", "COMMAND_SPEC", 'UNKNOWN_ENUM_VALUE'.
        Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.


        :return: The deploy_artifact_type of this DeployArtifact.
        :rtype: str
        )r,   r=   r8   r8   r9   r   B     z#DeployArtifact.deploy_artifact_typec                 C       g d}t ||sd}|| _dS )z
        Sets the deploy_artifact_type of this DeployArtifact.
        Type of the deployment artifact.


        :param deploy_artifact_type: The deploy_artifact_type of this DeployArtifact.
        :type: str
        )r   r   r	   r
   r   r   r   UNKNOWN_ENUM_VALUEN)r   r,   )r6   r   allowed_valuesr8   r8   r9   r   Q     


c                 C   r;   )a  
        **[Required]** Gets the argument_substitution_mode of this DeployArtifact.
        Mode for artifact parameter substitution.

        Allowed values for this property are: "NONE", "SUBSTITUTE_PLACEHOLDERS", 'UNKNOWN_ENUM_VALUE'.
        Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.


        :return: The argument_substitution_mode of this DeployArtifact.
        :rtype: str
        )r-   r=   r8   r8   r9   r   `  rE   z)DeployArtifact.argument_substitution_modec                 C   s    ddg}t ||sd}|| _dS )z
        Sets the argument_substitution_mode of this DeployArtifact.
        Mode for artifact parameter substitution.


        :param argument_substitution_mode: The argument_substitution_mode of this DeployArtifact.
        :type: str
        r   r   rG   N)r   r-   )r6   r   rH   r8   r8   r9   r   o  rI   c                 C   r;   )z
        **[Required]** Gets the deploy_artifact_source of this DeployArtifact.

        :return: The deploy_artifact_source of this DeployArtifact.
        :rtype: oci.devops.models.DeployArtifactSource
        r.   r=   r8   r8   r9   r   ~  s   z%DeployArtifact.deploy_artifact_sourcec                 C   r?   )z
        Sets the deploy_artifact_source of this DeployArtifact.

        :param deploy_artifact_source: The deploy_artifact_source of this DeployArtifact.
        :type: oci.devops.models.DeployArtifactSource
        NrJ   )r6   r   r8   r8   r9   r     s   
c                 C   r;   )a  
        Gets the time_created of this DeployArtifact.
        Time the deployment artifact was created. Format defined by `RFC3339`__.

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


        :return: The time_created of this DeployArtifact.
        :rtype: datetime
        r/   r=   r8   r8   r9   r         zDeployArtifact.time_createdc                 C   r?   )a*  
        Sets the time_created of this DeployArtifact.
        Time the deployment artifact was created. Format defined by `RFC3339`__.

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


        :param time_created: The time_created of this DeployArtifact.
        :type: datetime
        NrK   )r6   r    r8   r8   r9   r         
c                 C   r;   )a  
        Gets the time_updated of this DeployArtifact.
        Time the deployment artifact was updated. Format defined by `RFC3339`__.

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


        :return: The time_updated of this DeployArtifact.
        :rtype: datetime
        r0   r=   r8   r8   r9   r!     rL   zDeployArtifact.time_updatedc                 C   r?   )a*  
        Sets the time_updated of this DeployArtifact.
        Time the deployment artifact was updated. Format defined by `RFC3339`__.

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


        :param time_updated: The time_updated of this DeployArtifact.
        :type: datetime
        NrN   )r6   r!   r8   r8   r9   r!     rM   c                 C   r;   )a  
        Gets the lifecycle_state of this DeployArtifact.
        Current state of the deployment artifact.

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


        :return: The lifecycle_state of this DeployArtifact.
        :rtype: str
        )r1   r=   r8   r8   r9   r"     rE   zDeployArtifact.lifecycle_statec                 C   rF   )z
        Sets the lifecycle_state of this DeployArtifact.
        Current state of the deployment artifact.


        :param lifecycle_state: The lifecycle_state of this DeployArtifact.
        :type: str
        )r   r   r   r   r   r   rG   N)r   r1   )r6   r"   rH   r8   r8   r9   r"     rI   c                 C   r;   )a-  
        Gets the lifecycle_details of this DeployArtifact.
        A detailed message describing the current state. For example, can be used to provide actionable information for a resource in Failed state.


        :return: The lifecycle_details of this DeployArtifact.
        :rtype: str
        r2   r=   r8   r8   r9   r#     r>   z DeployArtifact.lifecycle_detailsc                 C   r?   )a=  
        Sets the lifecycle_details of this DeployArtifact.
        A detailed message describing the current state. For example, can be used to provide actionable information for a resource in Failed state.


        :param lifecycle_details: The lifecycle_details of this DeployArtifact.
        :type: str
        NrO   )r6   r#   r8   r8   r9   r#     r@   c                 C   r;   )a  
        Gets the freeform_tags of this DeployArtifact.
        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 DeployArtifact.
        :rtype: dict(str, str)
        r3   r=   r8   r8   r9   r$      rL   zDeployArtifact.freeform_tagsc                 C   r?   )a  
        Sets the freeform_tags of this DeployArtifact.
        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 DeployArtifact.
        :type: dict(str, str)
        NrP   )r6   r$   r8   r8   r9   r$     rM   c                 C   r;   )a  
        Gets the defined_tags of this DeployArtifact.
        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 DeployArtifact.
        :rtype: dict(str, dict(str, object))
        r4   r=   r8   r8   r9   r%     rL   zDeployArtifact.defined_tagsc                 C   r?   )a  
        Sets the defined_tags of this DeployArtifact.
        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 DeployArtifact.
        :type: dict(str, dict(str, object))
        NrQ   )r6   r%   r8   r8   r9   r%   *  rM   c                 C   r;   )a  
        Gets the system_tags of this DeployArtifact.
        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 DeployArtifact.
        :rtype: dict(str, dict(str, object))
        r5   r=   r8   r8   r9   r&   8  rL   zDeployArtifact.system_tagsc                 C   r?   )a  
        Sets the system_tags of this DeployArtifact.
        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 DeployArtifact.
        :type: dict(str, dict(str, object))
        NrR   )r6   r&   r8   r8   r9   r&   F  rM   c                 C   s   t | S N)r   r=   r8   r8   r9   __repr__T  s   zDeployArtifact.__repr__c                 C   s   |d u rdS | j |j kS )NF)__dict__r6   otherr8   r8   r9   __eq__W  s   zDeployArtifact.__eq__c                 C   s
   | |k S rS   r8   rV   r8   r8   r9   __ne__]  s   
zDeployArtifact.__ne__N)(__name__
__module____qualname____doc__Z$DEPLOY_ARTIFACT_TYPE_DEPLOYMENT_SPECZDEPLOY_ARTIFACT_TYPE_JOB_SPECZ(DEPLOY_ARTIFACT_TYPE_KUBERNETES_MANIFESTZ!DEPLOY_ARTIFACT_TYPE_GENERIC_FILEZ!DEPLOY_ARTIFACT_TYPE_DOCKER_IMAGEZDEPLOY_ARTIFACT_TYPE_HELM_CHARTZ!DEPLOY_ARTIFACT_TYPE_COMMAND_SPECZARGUMENT_SUBSTITUTION_MODE_NONEZ2ARGUMENT_SUBSTITUTION_MODE_SUBSTITUTE_PLACEHOLDERSZLIFECYCLE_STATE_CREATINGZLIFECYCLE_STATE_UPDATINGZLIFECYCLE_STATE_ACTIVEZLIFECYCLE_STATE_DELETINGZLIFECYCLE_STATE_DELETEDZLIFECYCLE_STATE_FAILEDr:   propertyr   setterr   r   r   r   r   r   r   r    r!   r"   r#   r$   r%   r&   rT   rX   rY   r8   r8   r8   r9   r      s    |














	
	













r   N)Zoci.utilr   r   r   Zoci.decoratorsr   objectr   r8   r8   r8   r9   <module>   s   