o
    ɶd;S                     @   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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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d=d> Z d?d@ Z!dAdB Z"dCS )DSecretze
    The details of the secret. Secret details do not contain the contents of the secret itself.
    CREATINGACTIVEUPDATINGDELETINGDELETEDSCHEDULING_DELETIONPENDING_DELETIONCANCELLING_DELETIONFAILEDc                 K   s0  i 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| _ i 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%| _d%S )&a3  
        Initializes a new Secret object with values from keyword arguments.
        The following keyword arguments are supported (corresponding to the getters/setters of this class):

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

        :param current_version_number:
            The value to assign to the current_version_number property of this Secret.
        :type current_version_number: int

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

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

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

        :param id:
            The value to assign to the id property of this Secret.
        :type id: str

        :param key_id:
            The value to assign to the key_id property of this Secret.
        :type key_id: str

        :param lifecycle_details:
            The value to assign to the lifecycle_details property of this Secret.
        :type lifecycle_details: str

        :param lifecycle_state:
            The value to assign to the lifecycle_state property of this Secret.
            Allowed values for this property are: "CREATING", "ACTIVE", "UPDATING", "DELETING", "DELETED", "SCHEDULING_DELETION", "PENDING_DELETION", "CANCELLING_DELETION", "FAILED", 'UNKNOWN_ENUM_VALUE'.
            Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
        :type lifecycle_state: str

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

        :param secret_name:
            The value to assign to the secret_name property of this Secret.
        :type secret_name: str

        :param secret_rules:
            The value to assign to the secret_rules property of this Secret.
        :type secret_rules: list[oci.vault.models.SecretRule]

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

        :param time_of_current_version_expiry:
            The value to assign to the time_of_current_version_expiry property of this Secret.
        :type time_of_current_version_expiry: datetime

        :param time_of_deletion:
            The value to assign to the time_of_deletion property of this Secret.
        :type time_of_deletion: datetime

        :param vault_id:
            The value to assign to the vault_id property of this Secret.
        :type vault_id: str

        compartment_idstrcurrent_version_numberintdefined_tagszdict(str, dict(str, object))descriptionfreeform_tagszdict(str, str)idkey_idlifecycle_detailslifecycle_statemetadatazdict(str, object)secret_namesecret_ruleszlist[SecretRule]time_createddatetimetime_of_current_version_expirytime_of_deletionvault_idZcompartmentIdZcurrentVersionNumberZdefinedTagsZfreeformTagsZkeyIdZlifecycleDetailsZlifecycleStateZ
secretNameZsecretRulesZtimeCreatedZtimeOfCurrentVersionExpiryZtimeOfDeletionZvaultIdN)Zswagger_typesZattribute_map_compartment_id_current_version_number_defined_tags_description_freeform_tags_id_key_id_lifecycle_details_lifecycle_state	_metadata_secret_name_secret_rules_time_created_time_of_current_version_expiry_time_of_deletion	_vault_id)selfkwargs r5   ;usr/lib/python3.10/site-packages/oci/vault/models/secret.py__init__6   s   H	
	

zSecret.__init__c                 C      | j S )z
        **[Required]** Gets the compartment_id of this Secret.
        The OCID of the compartment where you want to create the secret.


        :return: The compartment_id of this Secret.
        :rtype: str
        r#   r3   r5   r5   r6   r         
zSecret.compartment_idc                 C   
   || _ dS )z
        Sets the compartment_id of this Secret.
        The OCID of the compartment where you want to create the secret.


        :param compartment_id: The compartment_id of this Secret.
        :type: str
        Nr9   )r3   r   r5   r5   r6   r         

c                 C   r8   )z
        Gets the current_version_number of this Secret.
        The version number of the secret version that's currently in use.


        :return: The current_version_number of this Secret.
        :rtype: int
        r$   r:   r5   r5   r6   r      r;   zSecret.current_version_numberc                 C   r<   )z
        Sets the current_version_number of this Secret.
        The version number of the secret version that's currently in use.


        :param current_version_number: The current_version_number of this Secret.
        :type: int
        Nr>   )r3   r   r5   r5   r6   r      r=   c                 C   r8   )a  
        Gets the defined_tags of this Secret.
        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 Secret.
        :rtype: dict(str, dict(str, object))
        r%   r:   r5   r5   r6   r         zSecret.defined_tagsc                 C   r<   )a  
        Sets the defined_tags of this Secret.
        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 Secret.
        :type: dict(str, dict(str, object))
        Nr?   )r3   r   r5   r5   r6   r         
c                 C   r8   )z
        Gets the description of this Secret.
        A brief description of the secret. Avoid entering confidential information.


        :return: The description of this Secret.
        :rtype: str
        r&   r:   r5   r5   r6   r     r;   zSecret.descriptionc                 C   r<   )z
        Sets the description of this Secret.
        A brief description of the secret. Avoid entering confidential information.


        :param description: The description of this Secret.
        :type: str
        NrB   )r3   r   r5   r5   r6   r     r=   c                 C   r8   )a  
        Gets the freeform_tags of this Secret.
        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 Secret.
        :rtype: dict(str, str)
        r'   r:   r5   r5   r6   r     r@   zSecret.freeform_tagsc                 C   r<   )a  
        Sets the freeform_tags of this Secret.
        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 Secret.
        :type: dict(str, str)
        NrC   )r3   r   r5   r5   r6   r   -  rA   c                 C   r8   )z
        **[Required]** Gets the id of this Secret.
        The OCID of the secret.


        :return: The id of this Secret.
        :rtype: str
        r(   r:   r5   r5   r6   r   =  r;   z	Secret.idc                 C   r<   )z
        Sets the id of this Secret.
        The OCID of the secret.


        :param id: The id of this Secret.
        :type: str
        NrD   )r3   r   r5   r5   r6   r   I  r=   c                 C   r8   )a  
        Gets the key_id of this Secret.
        The OCID of the master encryption key that is used to encrypt the secret. You must specify a symmetric key to encrypt the secret during import to the vault. You cannot encrypt secrets with asymmetric keys. Furthermore, the key must exist in the vault that you specify.


        :return: The key_id of this Secret.
        :rtype: str
        r)   r:   r5   r5   r6   r   U  r;   zSecret.key_idc                 C   r<   )a  
        Sets the key_id of this Secret.
        The OCID of the master encryption key that is used to encrypt the secret. You must specify a symmetric key to encrypt the secret during import to the vault. You cannot encrypt secrets with asymmetric keys. Furthermore, the key must exist in the vault that you specify.


        :param key_id: The key_id of this Secret.
        :type: str
        NrE   )r3   r   r5   r5   r6   r   a  r=   c                 C   r8   )z
        Gets the lifecycle_details of this Secret.
        Additional information about the current lifecycle state of the secret.


        :return: The lifecycle_details of this Secret.
        :rtype: str
        r*   r:   r5   r5   r6   r   m  r;   zSecret.lifecycle_detailsc                 C   r<   )z
        Sets the lifecycle_details of this Secret.
        Additional information about the current lifecycle state of the secret.


        :param lifecycle_details: The lifecycle_details of this Secret.
        :type: str
        NrF   )r3   r   r5   r5   r6   r   y  r=   c                 C   r8   )a  
        **[Required]** Gets the lifecycle_state of this Secret.
        The current lifecycle state of the secret.

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


        :return: The lifecycle_state of this Secret.
        :rtype: str
        )r+   r:   r5   r5   r6   r        zSecret.lifecycle_statec                 C   s    g d}t ||sd}|| _dS )z
        Sets the lifecycle_state of this Secret.
        The current lifecycle state of the secret.


        :param lifecycle_state: The lifecycle_state of this Secret.
        :type: str
        )	r   r   r	   r
   r   r   r   r   r   ZUNKNOWN_ENUM_VALUEN)r   r+   )r3   r   Zallowed_valuesr5   r5   r6   r     s   


c                 C   r8   )a  
        Gets the metadata of this Secret.
        Additional metadata that you can use to provide context about how to use the secret or during rotation or
        other administrative tasks. For example, for a secret that you use to connect to a database, the additional
        metadata might specify the connection endpoint and the connection string. Provide additional metadata as key-value pairs.


        :return: The metadata of this Secret.
        :rtype: dict(str, object)
        r,   r:   r5   r5   r6   r     s   zSecret.metadatac                 C   r<   )a  
        Sets the metadata of this Secret.
        Additional metadata that you can use to provide context about how to use the secret or during rotation or
        other administrative tasks. For example, for a secret that you use to connect to a database, the additional
        metadata might specify the connection endpoint and the connection string. Provide additional metadata as key-value pairs.


        :param metadata: The metadata of this Secret.
        :type: dict(str, object)
        NrH   )r3   r   r5   r5   r6   r     s   
c                 C   r8   )z
        **[Required]** Gets the secret_name of this Secret.
        The user-friendly name of the secret. Avoid entering confidential information.


        :return: The secret_name of this Secret.
        :rtype: str
        r-   r:   r5   r5   r6   r     r;   zSecret.secret_namec                 C   r<   )z
        Sets the secret_name of this Secret.
        The user-friendly name of the secret. Avoid entering confidential information.


        :param secret_name: The secret_name of this Secret.
        :type: str
        NrI   )r3   r   r5   r5   r6   r     r=   c                 C   r8   )z
        Gets the secret_rules of this Secret.
        A list of rules that control how the secret is used and managed.


        :return: The secret_rules of this Secret.
        :rtype: list[oci.vault.models.SecretRule]
        r.   r:   r5   r5   r6   r     r;   zSecret.secret_rulesc                 C   r<   )z
        Sets the secret_rules of this Secret.
        A list of rules that control how the secret is used and managed.


        :param secret_rules: The secret_rules of this Secret.
        :type: list[oci.vault.models.SecretRule]
        NrJ   )r3   r   r5   r5   r6   r     r=   c                 C   r8   )aV  
        **[Required]** Gets the time_created of this Secret.
        A property indicating when the secret was created, expressed in `RFC 3339`__ timestamp format.
        Example: `2019-04-03T21:10:29.600Z`

        __ https://tools.ietf.org/html/rfc3339


        :return: The time_created of this Secret.
        :rtype: datetime
        r/   r:   r5   r5   r6   r     rG   zSecret.time_createdc                 C   r<   )aR  
        Sets the time_created of this Secret.
        A property indicating when the secret was created, expressed in `RFC 3339`__ timestamp format.
        Example: `2019-04-03T21:10:29.600Z`

        __ https://tools.ietf.org/html/rfc3339


        :param time_created: The time_created of this Secret.
        :type: datetime
        NrK   )r3   r   r5   r5   r6   r        
c                 C   r8   )a  
        Gets the time_of_current_version_expiry of this Secret.
        An optional property indicating when the current secret version will expire, expressed in `RFC 3339`__ timestamp format.
        Example: `2019-04-03T21:10:29.600Z`

        __ https://tools.ietf.org/html/rfc3339


        :return: The time_of_current_version_expiry of this Secret.
        :rtype: datetime
        r0   r:   r5   r5   r6   r      rG   z%Secret.time_of_current_version_expiryc                 C   r<   )a  
        Sets the time_of_current_version_expiry of this Secret.
        An optional property indicating when the current secret version will expire, expressed in `RFC 3339`__ timestamp format.
        Example: `2019-04-03T21:10:29.600Z`

        __ https://tools.ietf.org/html/rfc3339


        :param time_of_current_version_expiry: The time_of_current_version_expiry of this Secret.
        :type: datetime
        NrM   )r3   r    r5   r5   r6   r      rL   c                 C   r8   )aW  
        Gets the time_of_deletion of this Secret.
        An optional property indicating when to delete the secret, expressed in `RFC 3339`__ timestamp format.
        Example: `2019-04-03T21:10:29.600Z`

        __ https://tools.ietf.org/html/rfc3339


        :return: The time_of_deletion of this Secret.
        :rtype: datetime
        r1   r:   r5   r5   r6   r!   +  rG   zSecret.time_of_deletionc                 C   r<   )af  
        Sets the time_of_deletion of this Secret.
        An optional property indicating when to delete the secret, expressed in `RFC 3339`__ timestamp format.
        Example: `2019-04-03T21:10:29.600Z`

        __ https://tools.ietf.org/html/rfc3339


        :param time_of_deletion: The time_of_deletion of this Secret.
        :type: datetime
        NrN   )r3   r!   r5   r5   r6   r!   :  rL   c                 C   r8   )z
        **[Required]** Gets the vault_id of this Secret.
        The OCID of the vault where the secret exists.


        :return: The vault_id of this Secret.
        :rtype: str
        r2   r:   r5   r5   r6   r"   I  r;   zSecret.vault_idc                 C   r<   )z
        Sets the vault_id of this Secret.
        The OCID of the vault where the secret exists.


        :param vault_id: The vault_id of this Secret.
        :type: str
        NrO   )r3   r"   r5   r5   r6   r"   U  r=   c                 C   s   t | S N)r   r:   r5   r5   r6   __repr__a  s   zSecret.__repr__c                 C   s   |d u rdS | j |j kS )NF)__dict__r3   otherr5   r5   r6   __eq__d  s   zSecret.__eq__c                 C   s
   | |k S rP   r5   rS   r5   r5   r6   __ne__j  s   
zSecret.__ne__N)#__name__
__module____qualname____doc__ZLIFECYCLE_STATE_CREATINGZLIFECYCLE_STATE_ACTIVEZLIFECYCLE_STATE_UPDATINGZLIFECYCLE_STATE_DELETINGZLIFECYCLE_STATE_DELETEDZ#LIFECYCLE_STATE_SCHEDULING_DELETIONZ LIFECYCLE_STATE_PENDING_DELETIONZ#LIFECYCLE_STATE_CANCELLING_DELETIONZLIFECYCLE_STATE_FAILEDr7   propertyr   setterr   r   r   r   r   r   r   r   r   r   r   r   r    r!   r"   rQ   rU   rV   r5   r5   r5   r6   r      s    































r   N)Zoci.utilr   r   r   Zoci.decoratorsr   objectr   r5   r5   r5   r6   <module>   s   