o
    ëÉ¶d™9  ã                   @   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                   @   sl  e 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d)d*„ Zd+d,„ Zd-d.„ Zd/S )0ÚTemplatez 
    The properties that define a template. A template is a pre-built Terraform configuration that provisions a set of resources used in a common scenario.
    ÚACTIVEc                 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S )aƒ  
        Initializes a new Template 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 Template.
        :type id: str

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

        :param category_id:
            The value to assign to the category_id property of this Template.
        :type category_id: str

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

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

        :param long_description:
            The value to assign to the long_description property of this Template.
        :type long_description: str

        :param is_free_tier:
            The value to assign to the is_free_tier property of this Template.
        :type is_free_tier: bool

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

        :param template_config_source:
            The value to assign to the template_config_source property of this Template.
        :type template_config_source: oci.resource_manager.models.TemplateConfigSource

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

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

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

        ÚstrÚboolÚdatetimeZTemplateConfigSourcezdict(str, str)zdict(str, dict(str, object)))ÚidÚcompartment_idÚcategory_idÚdisplay_nameÚdescriptionÚlong_descriptionÚis_free_tierÚtime_createdÚtemplate_config_sourceÚlifecycle_stateÚfreeform_tagsÚdefined_tagsr   ZcompartmentIdZ
categoryIdZdisplayNamer   ZlongDescriptionZ
isFreeTierZtimeCreatedZtemplateConfigSourceZlifecycleStateZfreeformTagsZdefinedTagsN)Zswagger_typesZattribute_mapÚ_idÚ_compartment_idÚ_category_idÚ_display_nameÚ_descriptionÚ_long_descriptionÚ_is_free_tierÚ_time_createdÚ_template_config_sourceÚ_lifecycle_stateÚ_freeform_tagsÚ_defined_tags)ÚselfÚkwargs© r%   úHusr/lib/python3.10/site-packages/oci/resource_manager/models/template.pyÚ__init__   sL   9ôô
zTemplate.__init__c                 C   ó   | j S )a  
        **[Required]** Gets the id of this Template.
        Unique identifier (`OCID`__) for the template.

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


        :return: The id of this Template.
        :rtype: str
        ©r   ©r#   r%   r%   r&   r   y   ó   zTemplate.idc                 C   ó
   || _ dS )zÿ
        Sets the id of this Template.
        Unique identifier (`OCID`__) for the template.

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


        :param id: The id of this Template.
        :type: str
        Nr)   )r#   r   r%   r%   r&   r   ‡   ó   
c                 C   r(   )a!  
        Gets the compartment_id of this Template.
        The `OCID`__ of the compartment containing this template.

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


        :return: The compartment_id of this Template.
        :rtype: str
        ©r   r*   r%   r%   r&   r   •   r+   zTemplate.compartment_idc                 C   r,   )a.  
        Sets the compartment_id of this Template.
        The `OCID`__ of the compartment containing this template.

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


        :param compartment_id: The compartment_id of this Template.
        :type: str
        Nr.   )r#   r   r%   r%   r&   r   £   r-   c                 C   r(   )a1  
        Gets the category_id of this Template.
        Unique identifier for the category where the template is located.
        Possible values are `0` (Quick Starts), `1` (Service), `2` (Architecture), and `3` (Private).


        :return: The category_id of this Template.
        :rtype: str
        ©r   r*   r%   r%   r&   r   ±   s   zTemplate.category_idc                 C   r,   )a;  
        Sets the category_id of this Template.
        Unique identifier for the category where the template is located.
        Possible values are `0` (Quick Starts), `1` (Service), `2` (Architecture), and `3` (Private).


        :param category_id: The category_id of this Template.
        :type: str
        Nr/   )r#   r   r%   r%   r&   r   ¾   s   
c                 C   r(   )z°
        Gets the display_name of this Template.
        Human-readable name of the template.


        :return: The display_name of this Template.
        :rtype: str
        ©r   r*   r%   r%   r&   r   Ë   ó   
zTemplate.display_namec                 C   r,   )z»
        Sets the display_name of this Template.
        Human-readable name of the template.


        :param display_name: The display_name of this Template.
        :type: str
        Nr0   )r#   r   r%   r%   r&   r   ×   ó   

c                 C   r(   )z¬
        Gets the description of this Template.
        Brief description of the template.


        :return: The description of this Template.
        :rtype: str
        ©r   r*   r%   r%   r&   r   ã   r1   zTemplate.descriptionc                 C   r,   )z¶
        Sets the description of this Template.
        Brief description of the template.


        :param description: The description of this Template.
        :type: str
        Nr3   )r#   r   r%   r%   r&   r   ï   r2   c                 C   r(   )aE  
        Gets the long_description of this Template.
        Detailed description of the template. This description is displayed in the Console page listing templates when the template is expanded. Avoid entering confidential information.


        :return: The long_description of this Template.
        :rtype: str
        ©r   r*   r%   r%   r&   r   û   r1   zTemplate.long_descriptionc                 C   r,   )aT  
        Sets the long_description of this Template.
        Detailed description of the template. This description is displayed in the Console page listing templates when the template is expanded. Avoid entering confidential information.


        :param long_description: The long_description of this Template.
        :type: str
        Nr4   )r#   r   r%   r%   r&   r     r2   c                 C   r(   )zÂ
        Gets the is_free_tier of this Template.
        whether the template will work for free tier tenancy.


        :return: The is_free_tier of this Template.
        :rtype: bool
        ©r   r*   r%   r%   r&   r     r1   zTemplate.is_free_tierc                 C   r,   )zÍ
        Sets the is_free_tier of this Template.
        whether the template will work for free tier tenancy.


        :param is_free_tier: The is_free_tier of this Template.
        :type: bool
        Nr5   )r#   r   r%   r%   r&   r     r2   c                 C   r(   )a  
        Gets the time_created of this Template.
        The date and time at which the template was created.
        Format is defined by RFC3339.
        Example: `2020-11-25T21:10:29.600Z`


        :return: The time_created of this Template.
        :rtype: datetime
        ©r   r*   r%   r%   r&   r   +  r+   zTemplate.time_createdc                 C   r,   )a"  
        Sets the time_created of this Template.
        The date and time at which the template was created.
        Format is defined by RFC3339.
        Example: `2020-11-25T21:10:29.600Z`


        :param time_created: The time_created of this Template.
        :type: datetime
        Nr6   )r#   r   r%   r%   r&   r   9  r-   c                 C   r(   )zÃ
        Gets the template_config_source of this Template.

        :return: The template_config_source of this Template.
        :rtype: oci.resource_manager.models.TemplateConfigSource
        ©r   r*   r%   r%   r&   r   G  s   zTemplate.template_config_sourcec                 C   r,   )zØ
        Sets the template_config_source of this Template.

        :param template_config_source: The template_config_source of this Template.
        :type: oci.resource_manager.models.TemplateConfigSource
        Nr7   )r#   r   r%   r%   r&   r   Q  s   
c                 C   r(   )ak  
        Gets the lifecycle_state of this Template.
        The current lifecycle state of the template.

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


        :return: The lifecycle_state of this Template.
        :rtype: str
        )r    r*   r%   r%   r&   r   [  s   zTemplate.lifecycle_statec                 C   s   dg}t ||ƒs
d}|| _dS )zÌ
        Sets the lifecycle_state of this Template.
        The current lifecycle state of the template.


        :param lifecycle_state: The lifecycle_state of this Template.
        :type: str
        r   ZUNKNOWN_ENUM_VALUEN)r   r    )r#   r   Zallowed_valuesr%   r%   r&   r   j  s   


c                 C   r(   )aÊ  
        Gets the freeform_tags of this Template.
        Free-form tags associated with the resource. Each tag is a key-value pair with no predefined name, type, or namespace.
        For more information, see `Resource Tags`__.
        Example: `{"Department": "Finance"}`

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


        :return: The freeform_tags of this Template.
        :rtype: dict(str, str)
        ©r!   r*   r%   r%   r&   r   y  ó   zTemplate.freeform_tagsc                 C   r,   )aÖ  
        Sets the freeform_tags of this Template.
        Free-form tags associated with the resource. Each tag is a key-value pair with no predefined name, type, or namespace.
        For more information, see `Resource Tags`__.
        Example: `{"Department": "Finance"}`

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


        :param freeform_tags: The freeform_tags of this Template.
        :type: dict(str, str)
        Nr8   )r#   r   r%   r%   r&   r   ‰  ó   
c                 C   r(   )a¼  
        Gets the defined_tags of this Template.
        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/iaas/Content/General/Concepts/resourcetags.htm


        :return: The defined_tags of this Template.
        :rtype: dict(str, dict(str, object))
        ©r"   r*   r%   r%   r&   r   ™  r9   zTemplate.defined_tagsc                 C   r,   )aÇ  
        Sets the defined_tags of this Template.
        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/iaas/Content/General/Concepts/resourcetags.htm


        :param defined_tags: The defined_tags of this Template.
        :type: dict(str, dict(str, object))
        Nr;   )r#   r   r%   r%   r&   r   ©  r:   c                 C   s   t | ƒS ©N)r   r*   r%   r%   r&   Ú__repr__¹  s   zTemplate.__repr__c                 C   s   |d u rdS | j |j kS )NF)Ú__dict__©r#   Úotherr%   r%   r&   Ú__eq__¼  s   zTemplate.__eq__c                 C   s
   | |k S r<   r%   r?   r%   r%   r&   Ú__ne__Â  s   
zTemplate.__ne__N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__ZLIFECYCLE_STATE_ACTIVEr'   Úpropertyr   Úsetterr   r   r   r   r   r   r   r   r   r   r   r=   rA   rB   r%   r%   r%   r&   r      sn    c
















	
	





r   N)Zoci.utilr   r   r   Zoci.decoratorsr   Úobjectr   r%   r%   r%   r&   Ú<module>   s   