o
    ëÉ¶dZC  ã                   @   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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d0d/„ ƒZd1d2„ Zd3d4„ Zd5d6„ Zd7S )8Ú
Deploymentzö
    A deployment deploys an API on a gateway. Avoid entering confidential information.
    For more information, see
    `API Gateway Concepts`__.

    __ https://docs.cloud.oracle.com/iaas/Content/APIGateway/Concepts/apigatewayconcepts.htm
    ÚCREATINGÚACTIVEÚUPDATINGÚ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S )a8	  
        Initializes a new Deployment 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 Deployment.
        :type id: str

        :param gateway_id:
            The value to assign to the gateway_id property of this Deployment.
        :type gateway_id: str

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

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

        :param path_prefix:
            The value to assign to the path_prefix property of this Deployment.
        :type path_prefix: str

        :param endpoint:
            The value to assign to the endpoint property of this Deployment.
        :type endpoint: str

        :param specification:
            The value to assign to the specification property of this Deployment.
        :type specification: oci.apigateway.models.ApiSpecification

        :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: "CREATING", "ACTIVE", "UPDATING", "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 Deployment.
        :type lifecycle_details: str

        :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))

        ÚstrZApiSpecificationÚdatetimezdict(str, str)zdict(str, dict(str, object)))ÚidÚ
gateway_idÚdisplay_nameÚcompartment_idÚpath_prefixÚendpointÚspecificationÚtime_createdÚtime_updatedÚlifecycle_stateÚlifecycle_detailsÚfreeform_tagsÚdefined_tagsr   Z	gatewayIdZdisplayNameZcompartmentIdZ
pathPrefixr   r   ZtimeCreatedZtimeUpdatedZlifecycleStateZlifecycleDetailsZfreeformTagsZdefinedTagsN)Zswagger_typesZattribute_mapÚ_idÚ_gateway_idÚ_display_nameÚ_compartment_idÚ_path_prefixÚ	_endpointÚ_specificationÚ_time_createdÚ_time_updatedÚ_lifecycle_stateÚ_lifecycle_detailsÚ_freeform_tagsÚ_defined_tags)ÚselfÚkwargs© r+   úDusr/lib/python3.10/site-packages/oci/apigateway/models/deployment.pyÚ__init__.   sR   =óó
zDeployment.__init__c                 C   ó   | j S )zû
        **[Required]** Gets the id of this Deployment.
        The `OCID`__ of the resource.

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


        :return: The id of this Deployment.
        :rtype: str
        ©r   ©r)   r+   r+   r,   r   ˜   ó   zDeployment.idc                 C   ó
   || _ dS )zí
        Sets the id of this Deployment.
        The `OCID`__ of the resource.

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


        :param id: The id of this Deployment.
        :type: str
        Nr/   )r)   r   r+   r+   r,   r   ¦   ó   
c                 C   r.   )a  
        **[Required]** Gets the gateway_id of this Deployment.
        The `OCID`__ of the resource.

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


        :return: The gateway_id of this Deployment.
        :rtype: str
        ©r   r0   r+   r+   r,   r   ´   r1   zDeployment.gateway_idc                 C   r2   )a  
        Sets the gateway_id of this Deployment.
        The `OCID`__ of the resource.

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


        :param gateway_id: The gateway_id of this Deployment.
        :type: str
        Nr4   )r)   r   r+   r+   r,   r   Â   r3   c                 C   r.   )a+  
        Gets the display_name of this Deployment.
        A user-friendly name. Does not have to be unique, and it's changeable.
        Avoid entering confidential information.

        Example: `My new resource`


        :return: The display_name of this Deployment.
        :rtype: str
        ©r   r0   r+   r+   r,   r   Ð   ó   zDeployment.display_namec                 C   r2   )a6  
        Sets the display_name of this Deployment.
        A user-friendly name. Does not have to be unique, and it's changeable.
        Avoid entering confidential information.

        Example: `My new resource`


        :param display_name: The display_name of this Deployment.
        :type: str
        Nr5   )r)   r   r+   r+   r,   r   ß   ó   
c                 C   r.   )a?  
        **[Required]** Gets the compartment_id of this Deployment.
        The `OCID`__ of the compartment in which the
        resource is created.

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


        :return: The compartment_id of this Deployment.
        :rtype: str
        ©r   r0   r+   r+   r,   r   î   r6   zDeployment.compartment_idc                 C   r2   )a=  
        Sets the compartment_id of this Deployment.
        The `OCID`__ of the compartment in which the
        resource is created.

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


        :param compartment_id: The compartment_id of this Deployment.
        :type: str
        Nr8   )r)   r   r+   r+   r,   r   ý   r7   c                 C   r.   )aÑ  
        **[Required]** Gets the path_prefix of this Deployment.
        A path on which to deploy all routes contained in the API
        deployment specification. For more information, see
        `Deploying an API on an API Gateway by Creating an API
        Deployment`__.

        __ https://docs.cloud.oracle.com/iaas/Content/APIGateway/Tasks/apigatewaycreatingdeployment.htm


        :return: The path_prefix of this Deployment.
        :rtype: str
        ©r    r0   r+   r+   r,   r     s   zDeployment.path_prefixc                 C   r2   )aÌ  
        Sets the path_prefix of this Deployment.
        A path on which to deploy all routes contained in the API
        deployment specification. For more information, see
        `Deploying an API on an API Gateway by Creating an API
        Deployment`__.

        __ https://docs.cloud.oracle.com/iaas/Content/APIGateway/Tasks/apigatewaycreatingdeployment.htm


        :param path_prefix: The path_prefix of this Deployment.
        :type: str
        Nr9   )r)   r   r+   r+   r,   r     s   
c                 C   r.   )zÍ
        **[Required]** Gets the endpoint of this Deployment.
        The endpoint to access this deployment on the gateway.


        :return: The endpoint of this Deployment.
        :rtype: str
        ©r!   r0   r+   r+   r,   r   .  ó   
zDeployment.endpointc                 C   r2   )zÅ
        Sets the endpoint of this Deployment.
        The endpoint to access this deployment on the gateway.


        :param endpoint: The endpoint of this Deployment.
        :type: str
        Nr:   )r)   r   r+   r+   r,   r   :  ó   

c                 C   r.   )zº
        **[Required]** Gets the specification of this Deployment.

        :return: The specification of this Deployment.
        :rtype: oci.apigateway.models.ApiSpecification
        ©r"   r0   r+   r+   r,   r   F  s   zDeployment.specificationc                 C   r2   )z·
        Sets the specification of this Deployment.

        :param specification: The specification of this Deployment.
        :type: oci.apigateway.models.ApiSpecification
        Nr=   )r)   r   r+   r+   r,   r   P  s   
c                 C   r.   )zÞ
        Gets the time_created of this Deployment.
        The time this resource was created. An RFC3339 formatted datetime string.


        :return: The time_created of this Deployment.
        :rtype: datetime
        ©r#   r0   r+   r+   r,   r   Z  r;   zDeployment.time_createdc                 C   r2   )zé
        Sets the time_created of this Deployment.
        The time this resource was created. An RFC3339 formatted datetime string.


        :param time_created: The time_created of this Deployment.
        :type: datetime
        Nr>   )r)   r   r+   r+   r,   r   f  r<   c                 C   r.   )zã
        Gets the time_updated of this Deployment.
        The time this resource was last updated. An RFC3339 formatted datetime string.


        :return: The time_updated of this Deployment.
        :rtype: datetime
        ©r$   r0   r+   r+   r,   r   r  r;   zDeployment.time_updatedc                 C   r2   )zî
        Sets the time_updated of this Deployment.
        The time this resource was last updated. An RFC3339 formatted datetime string.


        :param time_updated: The time_updated of this Deployment.
        :type: datetime
        Nr?   )r)   r   r+   r+   r,   r   ~  r<   c                 C   r.   )a   
        Gets the lifecycle_state of this Deployment.
        The current state of the deployment.

        Allowed values for this property are: "CREATING", "ACTIVE", "UPDATING", "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 Deployment.
        :rtype: str
        )r%   r0   r+   r+   r,   r   Š  r6   zDeployment.lifecycle_statec                 C   s    g d¢}t ||ƒsd}|| _dS )zÈ
        Sets the lifecycle_state of this Deployment.
        The current state of the deployment.


        :param lifecycle_state: The lifecycle_state of this Deployment.
        :type: str
        )r   r   r	   r
   r   r   ZUNKNOWN_ENUM_VALUEN)r   r%   )r)   r   Zallowed_valuesr+   r+   r,   r   ™  s   

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


        :return: The lifecycle_details of this Deployment.
        :rtype: str
        ©r&   r0   r+   r+   r,   r   ¨  r1   zDeployment.lifecycle_detailsc                 C   r2   )aM  
        Sets the lifecycle_details of this Deployment.
        A message describing the current state in more detail.
        For example, can be used to provide actionable information for a
        resource in a Failed state.


        :param lifecycle_details: The lifecycle_details of this Deployment.
        :type: str
        Nr@   )r)   r   r+   r+   r,   r   ¶  r3   c                 C   r.   )aÎ  
        Gets the freeform_tags of this Deployment.
        Free-form tags for this resource. Each tag is a simple key-value pair
        with no predefined name, type, or namespace. For more information, see
        `Resource Tags`__.

        Example: `{"Department": "Finance"}`

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


        :return: The freeform_tags of this Deployment.
        :rtype: dict(str, str)
        ©r'   r0   r+   r+   r,   r   Ä  ó   zDeployment.freeform_tagsc                 C   r2   )aÚ  
        Sets the freeform_tags of this Deployment.
        Free-form tags for this resource. Each tag is a simple key-value pair
        with no predefined name, type, or namespace. For more information, see
        `Resource Tags`__.

        Example: `{"Department": "Finance"}`

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


        :param freeform_tags: The freeform_tags of this Deployment.
        :type: dict(str, str)
        NrA   )r)   r   r+   r+   r,   r   Ö  ó   
c                 C   r.   )aÄ  
        Gets the defined_tags of this Deployment.
        Defined tags for this resource. Each key is predefined and scoped to a
        namespace. For more information, see
        `Resource Tags`__.

        Example: `{"Operations": {"CostCenter": "42"}}`

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


        :return: The defined_tags of this Deployment.
        :rtype: dict(str, dict(str, object))
        ©r(   r0   r+   r+   r,   r   è  rB   zDeployment.defined_tagsc                 C   r2   )aÏ  
        Sets the defined_tags of this Deployment.
        Defined tags for this resource. Each key is predefined and scoped to a
        namespace. For more information, 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 Deployment.
        :type: dict(str, dict(str, object))
        NrD   )r)   r   r+   r+   r,   r   ú  rC   c                 C   s   t | ƒS ©N)r   r0   r+   r+   r,   Ú__repr__  s   zDeployment.__repr__c                 C   s   |d u rdS | j |j kS )NF)Ú__dict__©r)   Úotherr+   r+   r,   Ú__eq__  s   zDeployment.__eq__c                 C   s
   | |k S rE   r+   rH   r+   r+   r,   Ú__ne__  s   
zDeployment.__ne__N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__ZLIFECYCLE_STATE_CREATINGZLIFECYCLE_STATE_ACTIVEZLIFECYCLE_STATE_UPDATINGZLIFECYCLE_STATE_DELETINGZLIFECYCLE_STATE_DELETEDZLIFECYCLE_STATE_FAILEDr-   Úpropertyr   Úsetterr   r   r   r   r   r   r   r   r   r   r   r   rF   rJ   rK   r+   r+   r+   r,   r      s€    
j












	
	











r   N)Zoci.utilr   r   r   Zoci.decoratorsr   Úobjectr   r+   r+   r+   r,   Ú<module>   s   