ruạṛ
a N��f�g � @ 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 @ sR e Zd ZdZdZdZdZdZdZdZ dZ d Zd ZdZ dd � Zedd� �Zedd� �Zejdd� �Zedd� �Zejdd� �Zedd� �Zejdd� �Zedd� �Zejdd� �Zedd� �Zejdd� �Zedd � �Zejd!d � �Zed"d#� �Zejd$d#� �Zed%d&� �Zejd'd&� �Zed(d)� �Zejd*d)� �Zed+d,� �Zejd-d,� �Zed.d/� �Zejd0d/� �Zed1d2� �Zejd3d2� �Zed4d5� �Zejd6d5� �Zed7d8� �Z e jd9d8� �Z ed:d;� �Z!e!jd<d;� �Z!ed=d>� �Z"e"jd?d>� �Z"ed@dA� �Z#e#jdBdA� �Z#edCdD� �Z$e$jdEdD� �Z$edFdG� �Z%e%jdHdG� �Z%dIdJ� Z&dKdL� Z'dMdN� Z(dOS )P� Deploymentz2 A single execution or run of a pipeline. �PIPELINE_DEPLOYMENT�PIPELINE_REDEPLOYMENT�SINGLE_STAGE_DEPLOYMENT�SINGLE_STAGE_REDEPLOYMENT�ACCEPTED�IN_PROGRESS�FAILED� SUCCEEDED� CANCELING�CANCELEDc K s� ddddddddddddddddd d d d�| _ dd dddddddddddddddddd�| _d| _d| _d| _d| _d| _d| _d| _d| _ d| _ d| _d| _d| _ d| _d| _d| _d| _d| _d| _d| _dS ) a� Initializes a new Deployment 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.devops.models.SingleDeployStageRedeployment` * :class:`~oci.devops.models.DeployPipelineDeployment` * :class:`~oci.devops.models.DeployPipelineRedeployment` * :class:`~oci.devops.models.SingleDeployStageDeployment` The following keyword arguments are supported (corresponding to the getters/setters of this class): :param deploy_pipeline_artifacts: The value to assign to the deploy_pipeline_artifacts property of this Deployment. :type deploy_pipeline_artifacts: oci.devops.models.DeployPipelineArtifactCollection :param deploy_pipeline_environments: The value to assign to the deploy_pipeline_environments property of this Deployment. :type deploy_pipeline_environments: oci.devops.models.DeployPipelineEnvironmentCollection :param deployment_type: The value to assign to the deployment_type property of this Deployment. Allowed values for this property are: "PIPELINE_DEPLOYMENT", "PIPELINE_REDEPLOYMENT", "SINGLE_STAGE_DEPLOYMENT", "SINGLE_STAGE_REDEPLOYMENT", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type deployment_type: str :param id: The value to assign to the id property of this Deployment. :type id: str :param display_name: The value to assign to the display_name property of this Deployment. :type display_name: str :param project_id: The value to assign to the project_id property of this Deployment. :type project_id: str :param deploy_pipeline_id: The value to assign to the deploy_pipeline_id property of this Deployment. :type deploy_pipeline_id: str :param compartment_id: The value to assign to the compartment_id property of this Deployment. :type compartment_id: str :param time_created: The value to assign to the time_created property of this Deployment. :type time_created: datetime :param time_updated: The value to assign to the time_updated property of this Deployment. :type time_updated: datetime :param lifecycle_state: The value to assign to the lifecycle_state property of this Deployment. Allowed values for this property are: "ACCEPTED", "IN_PROGRESS", "FAILED", "SUCCEEDED", "CANCELING", "CANCELED", '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 Deployment. :type lifecycle_details: str :param deployment_arguments: The value to assign to the deployment_arguments property of this Deployment. :type deployment_arguments: oci.devops.models.DeploymentArgumentCollection :param deploy_stage_override_arguments: The value to assign to the deploy_stage_override_arguments property of this Deployment. :type deploy_stage_override_arguments: oci.devops.models.DeployStageOverrideArgumentCollection :param deploy_artifact_override_arguments: The value to assign to the deploy_artifact_override_arguments property of this Deployment. :type deploy_artifact_override_arguments: oci.devops.models.DeployArtifactOverrideArgumentCollection :param deployment_execution_progress: The value to assign to the deployment_execution_progress property of this Deployment. :type deployment_execution_progress: oci.devops.models.DeploymentExecutionProgress :param freeform_tags: The value to assign to the freeform_tags property of this Deployment. :type freeform_tags: dict(str, str) :param defined_tags: The value to assign to the defined_tags property of this Deployment. :type defined_tags: dict(str, dict(str, object)) :param system_tags: The value to assign to the system_tags property of this Deployment. :type system_tags: dict(str, dict(str, object)) � DeployPipelineArtifactCollection�#DeployPipelineEnvironmentCollection�str�datetime�DeploymentArgumentCollection�%DeployStageOverrideArgumentCollection�(DeployArtifactOverrideArgumentCollection�DeploymentExecutionProgresszdict(str, str)zdict(str, dict(str, object)))�deploy_pipeline_artifacts�deploy_pipeline_environments�deployment_type�id�display_name� project_id�deploy_pipeline_id�compartment_id�time_created�time_updated�lifecycle_state�lifecycle_details�deployment_arguments�deploy_stage_override_arguments�"deploy_artifact_override_arguments�deployment_execution_progress� freeform_tags�defined_tags�system_tags�deployPipelineArtifacts�deployPipelineEnvironments�deploymentTyper �displayName� projectId�deployPipelineId� compartmentId�timeCreated�timeUpdated�lifecycleState�lifecycleDetails�deploymentArguments�deployStageOverrideArguments�deployArtifactOverrideArguments�deploymentExecutionProgress�freeformTags�definedTags� systemTagsN)� swagger_types� attribute_map�_deploy_pipeline_artifacts�_deploy_pipeline_environments�_deployment_type�_id� _display_name�_project_id�_deploy_pipeline_id�_compartment_id� _time_created� _time_updated�_lifecycle_state�_lifecycle_details�_deployment_arguments� _deploy_stage_override_arguments�#_deploy_artifact_override_arguments�_deployment_execution_progress�_freeform_tags� _defined_tags�_system_tags)�self�kwargs� rU ��/sparta/input/_build_configuration/image_build+validate/lib/bmcenv/lib64/python3.9/site-packages/oci/devops/models/deployment.py�__init__8 sv ^��zDeployment.__init__c C s@ | d }|dkrdS |dkr dS |dkr,dS |dkr8d S d S dS )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 �SingleDeployStageRedeploymentr �DeployPipelineDeploymentr �DeployPipelineRedeploymentr �SingleDeployStageDeploymentr NrU )�object_dictionary�typerU rU rV �get_subtype� s zDeployment.get_subtypec C s | j S )z� Gets the deploy_pipeline_artifacts of this Deployment. :return: The deploy_pipeline_artifacts of this Deployment. :rtype: oci.devops.models.DeployPipelineArtifactCollection �r@ �rS rU rU rV r � s z$Deployment.deploy_pipeline_artifactsc C s || _ dS )z� Sets the deploy_pipeline_artifacts of this Deployment. :param deploy_pipeline_artifacts: The deploy_pipeline_artifacts of this Deployment. :type: oci.devops.models.DeployPipelineArtifactCollection Nr_ )rS r rU rU rV r � s c C s | j S )z� Gets the deploy_pipeline_environments of this Deployment. :return: The deploy_pipeline_environments of this Deployment. :rtype: oci.devops.models.DeployPipelineEnvironmentCollection �rA r` rU rU rV r � s z'Deployment.deploy_pipeline_environmentsc C s || _ dS )z� Sets the deploy_pipeline_environments of this Deployment. :param deploy_pipeline_environments: The deploy_pipeline_environments of this Deployment. :type: oci.devops.models.DeployPipelineEnvironmentCollection Nra )rS r rU rU rV r s c C s | j S )a� **[Required]** Gets the deployment_type of this Deployment. Specifies type of deployment. Allowed values for this property are: "PIPELINE_DEPLOYMENT", "PIPELINE_REDEPLOYMENT", "SINGLE_STAGE_DEPLOYMENT", "SINGLE_STAGE_REDEPLOYMENT", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The deployment_type of this Deployment. :rtype: str )rB r` rU rU rV r s zDeployment.deployment_typec C s g d�}t ||�sd}|| _dS )z� Sets the deployment_type of this Deployment. Specifies type of deployment. :param deployment_type: The deployment_type of this Deployment. :type: str )r r r r �UNKNOWN_ENUM_VALUEN)r rB )rS r �allowed_valuesrU rU rV r " s c C s | j S )z� **[Required]** Gets the id of this Deployment. Unique identifier that is immutable on creation. :return: The id of this Deployment. :rtype: str �rC r` rU rU rV r 1 s z Deployment.idc C s || _ dS )z� Sets the id of this Deployment. Unique identifier that is immutable on creation. :param id: The id of this Deployment. :type: str Nrd )rS r rU rU rV r = s c C s | j S )a Gets the display_name of this Deployment. Deployment identifier which can be renamed and is not necessarily unique. Avoid entering confidential information. :return: The display_name of this Deployment. :rtype: str �rD r` rU rU rV r I s zDeployment.display_namec C s || _ dS )a Sets the display_name of this Deployment. Deployment identifier which can be renamed and is not necessarily unique. Avoid entering confidential information. :param display_name: The display_name of this Deployment. :type: str Nre )rS r rU rU rV r U s c C s | j S )z� **[Required]** Gets the project_id of this Deployment. The OCID of a project. :return: The project_id of this Deployment. :rtype: str �rE r` rU rU rV r a s zDeployment.project_idc C s || _ dS )z� Sets the project_id of this Deployment. The OCID of a project. :param project_id: The project_id of this Deployment. :type: str Nrf )rS r rU rU rV r m s c C s | j S )z� **[Required]** Gets the deploy_pipeline_id of this Deployment. The OCID of a pipeline. :return: The deploy_pipeline_id of this Deployment. :rtype: str �rF r` rU rU rV r y s zDeployment.deploy_pipeline_idc C s || _ dS )z� Sets the deploy_pipeline_id of this Deployment. The OCID of a pipeline. :param deploy_pipeline_id: The deploy_pipeline_id of this Deployment. :type: str Nrg )rS r rU rU rV r � s c C s | j S )z� **[Required]** Gets the compartment_id of this Deployment. The OCID of a compartment. :return: The compartment_id of this Deployment. :rtype: str �rG r` rU rU rV r � s zDeployment.compartment_idc C s || _ dS )z� Sets the compartment_id of this Deployment. The OCID of a compartment. :param compartment_id: The compartment_id of this Deployment. :type: str Nrh )rS r rU rU rV r � s c C s | j S )a Gets the time_created of this Deployment. Time the deployment was created. Format defined by `RFC3339`__. __ https://datatracker.ietf.org/doc/html/rfc3339 :return: The time_created of this Deployment. :rtype: datetime �rH r` rU rU rV r! � s zDeployment.time_createdc C s || _ dS )a Sets the time_created of this Deployment. Time the deployment was created. Format defined by `RFC3339`__. __ https://datatracker.ietf.org/doc/html/rfc3339 :param time_created: The time_created of this Deployment. :type: datetime Nri )rS r! rU rU rV r! � s c C s | j S )a Gets the time_updated of this Deployment. Time the deployment was updated. Format defined by `RFC3339`__. __ https://datatracker.ietf.org/doc/html/rfc3339 :return: The time_updated of this Deployment. :rtype: datetime �rI r` rU rU rV r"