o
    ɶd6                     @   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                   @   sP  e Zd ZdZdZdZdZdZdd Ze	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 )/
Repositoryz3
    The metadata for the artifact repository.
    GENERIC	AVAILABLEDELETINGDELETEDc                 K   sx   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 Repository 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.artifacts.models.GenericRepository`

        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 Repository.
        :type id: str

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

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

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

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

        :param is_immutable:
            The value to assign to the is_immutable property of this Repository.
        :type is_immutable: bool

        :param lifecycle_state:
            The value to assign to the lifecycle_state property of this Repository.
            Allowed values for this property are: "AVAILABLE", "DELETING", "DELETED", '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 Repository.
        :type freeform_tags: dict(str, str)

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

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

        strboolzdict(str, str)zdict(str, dict(str, object))datetime)
iddisplay_namecompartment_idrepository_typedescriptionis_immutablelifecycle_statefreeform_tagsdefined_tagstime_createdr   ZdisplayNameZcompartmentIdrepositoryTyper   ZisImmutableZlifecycleStateZfreeformTagsZdefinedTagsZtimeCreatedN)Zswagger_typesZattribute_map_id_display_name_compartment_id_repository_type_description_is_immutable_lifecycle_state_freeform_tags_defined_tags_time_created)selfkwargs r%   Cusr/lib/python3.10/site-packages/oci/artifacts/models/repository.py__init__"   s@   7
zRepository.__init__c                 C   s   | d }|dkr
dS dS )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   ZGenericRepositoryr   r%   )Zobject_dictionarytyper%   r%   r&   get_subtype}   s   zRepository.get_subtypec                 C      | j S )aD  
        **[Required]** Gets the id of this Repository.
        The `OCID`__ of the repository.

        Example: `ocid1.artifactrepository.oc1..exampleuniqueID`

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


        :return: The id of this Repository.
        :rtype: str
        r   r#   r%   r%   r&   r      s   zRepository.idc                 C   
   || _ dS )a6  
        Sets the id of this Repository.
        The `OCID`__ of the repository.

        Example: `ocid1.artifactrepository.oc1..exampleuniqueID`

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


        :param id: The id of this Repository.
        :type: str
        Nr+   )r#   r   r%   r%   r&   r      s   
c                 C   r*   )z
        **[Required]** Gets the display_name of this Repository.
        The repository name.


        :return: The display_name of this Repository.
        :rtype: str
        r   r,   r%   r%   r&   r         
zRepository.display_namec                 C   r-   )z
        Sets the display_name of this Repository.
        The repository name.


        :param display_name: The display_name of this Repository.
        :type: str
        Nr.   )r#   r   r%   r%   r&   r         

c                 C   r*   )z
        **[Required]** Gets the compartment_id of this Repository.
        The OCID of the repository's compartment.


        :return: The compartment_id of this Repository.
        :rtype: str
        r   r,   r%   r%   r&   r      r/   zRepository.compartment_idc                 C   r-   )z
        Sets the compartment_id of this Repository.
        The OCID of the repository's compartment.


        :param compartment_id: The compartment_id of this Repository.
        :type: str
        Nr1   )r#   r   r%   r%   r&   r      r0   c                 C   r*   )a|  
        **[Required]** Gets the repository_type of this Repository.
        The repository's supported artifact type.

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


        :return: The repository_type of this Repository.
        :rtype: str
        )r   r,   r%   r%   r&   r         zRepository.repository_typec                 C   s   dg}t ||s
d}|| _dS )z
        Sets the repository_type of this Repository.
        The repository's supported artifact type.


        :param repository_type: The repository_type of this Repository.
        :type: str
        r   UNKNOWN_ENUM_VALUEN)r   r   )r#   r   allowed_valuesr%   r%   r&   r      s   


c                 C   r*   )z
        **[Required]** Gets the description of this Repository.
        The repository description.


        :return: The description of this Repository.
        :rtype: str
        r   r,   r%   r%   r&   r      r/   zRepository.descriptionc                 C   r-   )z
        Sets the description of this Repository.
        The repository description.


        :param description: The description of this Repository.
        :type: str
        Nr5   )r#   r   r%   r%   r&   r     r0   c                 C   r*   )a  
        **[Required]** Gets the is_immutable of this Repository.
        Whether the repository is immutable. The artifacts of an immutable repository cannot be overwritten.


        :return: The is_immutable of this Repository.
        :rtype: bool
        r   r,   r%   r%   r&   r     r/   zRepository.is_immutablec                 C   r-   )a   
        Sets the is_immutable of this Repository.
        Whether the repository is immutable. The artifacts of an immutable repository cannot be overwritten.


        :param is_immutable: The is_immutable of this Repository.
        :type: bool
        Nr6   )r#   r   r%   r%   r&   r     r0   c                 C   r*   )a  
        **[Required]** Gets the lifecycle_state of this Repository.
        The current state of the repository.

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


        :return: The lifecycle_state of this Repository.
        :rtype: str
        )r   r,   r%   r%   r&   r   (  r2   zRepository.lifecycle_statec                 C   s    g d}t ||sd}|| _dS )z
        Sets the lifecycle_state of this Repository.
        The current state of the repository.


        :param lifecycle_state: The lifecycle_state of this Repository.
        :type: str
        )r   r	   r
   r3   N)r   r   )r#   r   r4   r%   r%   r&   r   7  s   


c                 C   r*   )a  
        **[Required]** Gets the freeform_tags of this Repository.
        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/iaas/Content/General/Concepts/resourcetags.htm


        :return: The freeform_tags of this Repository.
        :rtype: dict(str, str)
        r    r,   r%   r%   r&   r   F     zRepository.freeform_tagsc                 C   r-   )a  
        Sets the freeform_tags of this Repository.
        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/iaas/Content/General/Concepts/resourcetags.htm


        :param freeform_tags: The freeform_tags of this Repository.
        :type: dict(str, str)
        Nr7   )r#   r   r%   r%   r&   r   W     
c                 C   r*   )a  
        **[Required]** Gets the defined_tags of this Repository.
        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 Repository.
        :rtype: dict(str, dict(str, object))
        r!   r,   r%   r%   r&   r   h  r8   zRepository.defined_tagsc                 C   r-   )a  
        Sets the defined_tags of this Repository.
        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 Repository.
        :type: dict(str, dict(str, object))
        Nr:   )r#   r   r%   r%   r&   r   y  r9   c                 C   r*   )z
        **[Required]** Gets the time_created of this Repository.
        An RFC 3339 timestamp indicating when the repository was created.


        :return: The time_created of this Repository.
        :rtype: datetime
        r"   r,   r%   r%   r&   r     r/   zRepository.time_createdc                 C   r-   )z
        Sets the time_created of this Repository.
        An RFC 3339 timestamp indicating when the repository was created.


        :param time_created: The time_created of this Repository.
        :type: datetime
        Nr;   )r#   r   r%   r%   r&   r     r0   c                 C   s   t | S N)r   r,   r%   r%   r&   __repr__  s   zRepository.__repr__c                 C   s   |d u rdS | j |j kS )NF)__dict__r#   otherr%   r%   r&   __eq__  s   zRepository.__eq__c                 C   s
   | |k S r<   r%   r?   r%   r%   r&   __ne__  s   
zRepository.__ne__N)__name__
__module____qualname____doc__ZREPOSITORY_TYPE_GENERICZLIFECYCLE_STATE_AVAILABLEZLIFECYCLE_STATE_DELETINGZLIFECYCLE_STATE_DELETEDr'   staticmethodr)   propertyr   setterr   r   r   r   r   r   r   r   r   r=   rA   rB   r%   r%   r%   r&   r      sh    [




















r   N)Zoci.utilr   r   r   Zoci.decoratorsr   objectr   r%   r%   r%   r&   <module>   s   