o
    ɶdF                     @   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d4d5 Zd6d7 Zd8d9 Zd:S );SecretSummaryzJ
    The details of the secret, excluding the contents of the secret.
    CREATINGACTIVEUPDATINGDELETINGDELETEDSCHEDULING_DELETIONPENDING_DELETIONCANCELLING_DELETION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 )a	  
        Initializes a new SecretSummary 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 SecretSummary.
        :type compartment_id: str

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

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

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

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

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

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

        :param lifecycle_state:
            The value to assign to the lifecycle_state property of this SecretSummary.
            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 secret_name:
            The value to assign to the secret_name property of this SecretSummary.
        :type secret_name: str

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

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

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

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

        strzdict(str, dict(str, object))zdict(str, str)datetime)compartment_iddefined_tagsdescriptionfreeform_tagskey_ididlifecycle_detailslifecycle_statesecret_nametime_createdtime_of_current_version_expirytime_of_deletionvault_idZcompartmentIdZdefinedTagsr   ZfreeformTagsZkeyIdr   ZlifecycleDetailsZlifecycleStateZ
secretNameZtimeCreatedZtimeOfCurrentVersionExpiryZtimeOfDeletionZvaultIdN)Zswagger_typesZattribute_map_compartment_id_defined_tags_description_freeform_tags_key_id_id_lifecycle_details_lifecycle_state_secret_name_time_created_time_of_current_version_expiry_time_of_deletion	_vault_id)selfkwargs r.   Cusr/lib/python3.10/site-packages/oci/vault/models/secret_summary.py__init__6   sR   =
zSecretSummary.__init__c                 C      | j S )z
        **[Required]** Gets the compartment_id of this SecretSummary.
        The OCID of the compartment that contains the secret.


        :return: The compartment_id of this SecretSummary.
        :rtype: str
        r   r,   r.   r.   r/   r         
zSecretSummary.compartment_idc                 C   
   || _ dS )z
        Sets the compartment_id of this SecretSummary.
        The OCID of the compartment that contains the secret.


        :param compartment_id: The compartment_id of this SecretSummary.
        :type: str
        Nr2   )r,   r   r.   r.   r/   r         

c                 C   r1   )a  
        Gets the defined_tags of this SecretSummary.
        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 SecretSummary.
        :rtype: dict(str, dict(str, object))
        r    r3   r.   r.   r/   r         zSecretSummary.defined_tagsc                 C   r5   )a  
        Sets the defined_tags of this SecretSummary.
        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 SecretSummary.
        :type: dict(str, dict(str, object))
        Nr7   )r,   r   r.   r.   r/   r         
c                 C   r1   )z
        Gets the description of this SecretSummary.
        A brief description of the secret.


        :return: The description of this SecretSummary.
        :rtype: str
        r!   r3   r.   r.   r/   r      r4   zSecretSummary.descriptionc                 C   r5   )z
        Sets the description of this SecretSummary.
        A brief description of the secret.


        :param description: The description of this SecretSummary.
        :type: str
        Nr:   )r,   r   r.   r.   r/   r      r6   c                 C   r1   )a  
        Gets the freeform_tags of this SecretSummary.
        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 SecretSummary.
        :rtype: dict(str, str)
        r"   r3   r.   r.   r/   r      r8   zSecretSummary.freeform_tagsc                 C   r5   )a  
        Sets the freeform_tags of this SecretSummary.
        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 SecretSummary.
        :type: dict(str, str)
        Nr;   )r,   r   r.   r.   r/   r      r9   c                 C   r1   )a  
        Gets the key_id of this SecretSummary.
        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 SecretSummary.
        :rtype: str
        r#   r3   r.   r.   r/   r     r4   zSecretSummary.key_idc                 C   r5   )a  
        Sets the key_id of this SecretSummary.
        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 SecretSummary.
        :type: str
        Nr<   )r,   r   r.   r.   r/   r     r6   c                 C   r1   )z
        **[Required]** Gets the id of this SecretSummary.
        The OCID of the secret.


        :return: The id of this SecretSummary.
        :rtype: str
        r$   r3   r.   r.   r/   r   (  r4   zSecretSummary.idc                 C   r5   )z
        Sets the id of this SecretSummary.
        The OCID of the secret.


        :param id: The id of this SecretSummary.
        :type: str
        Nr=   )r,   r   r.   r.   r/   r   4  r6   c                 C   r1   )z
        Gets the lifecycle_details of this SecretSummary.
        Additional information about the secret's current lifecycle state.


        :return: The lifecycle_details of this SecretSummary.
        :rtype: str
        r%   r3   r.   r.   r/   r   @  r4   zSecretSummary.lifecycle_detailsc                 C   r5   )z
        Sets the lifecycle_details of this SecretSummary.
        Additional information about the secret's current lifecycle state.


        :param lifecycle_details: The lifecycle_details of this SecretSummary.
        :type: str
        Nr>   )r,   r   r.   r.   r/   r   L  r6   c                 C   r1   )a  
        **[Required]** Gets the lifecycle_state of this SecretSummary.
        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 SecretSummary.
        :rtype: str
        )r&   r3   r.   r.   r/   r   X     zSecretSummary.lifecycle_statec                 C   s    g d}t ||sd}|| _dS )z
        Sets the lifecycle_state of this SecretSummary.
        The current lifecycle state of the secret.


        :param lifecycle_state: The lifecycle_state of this SecretSummary.
        :type: str
        )	r   r   r	   r
   r   r   r   r   r   ZUNKNOWN_ENUM_VALUEN)r   r&   )r,   r   Zallowed_valuesr.   r.   r/   r   g  s   


c                 C   r1   )z
        **[Required]** Gets the secret_name of this SecretSummary.
        The name of the secret.


        :return: The secret_name of this SecretSummary.
        :rtype: str
        r'   r3   r.   r.   r/   r   v  r4   zSecretSummary.secret_namec                 C   r5   )z
        Sets the secret_name of this SecretSummary.
        The name of the secret.


        :param secret_name: The secret_name of this SecretSummary.
        :type: str
        Nr@   )r,   r   r.   r.   r/   r     r6   c                 C   r1   )ad  
        **[Required]** Gets the time_created of this SecretSummary.
        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 SecretSummary.
        :rtype: datetime
        r(   r3   r.   r.   r/   r     r?   zSecretSummary.time_createdc                 C   r5   )a`  
        Sets the time_created of this SecretSummary.
        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 SecretSummary.
        :type: datetime
        NrA   )r,   r   r.   r.   r/   r        
c                 C   r1   )a  
        Gets the time_of_current_version_expiry of this SecretSummary.
        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 SecretSummary.
        :rtype: datetime
        r)   r3   r.   r.   r/   r     r?   z,SecretSummary.time_of_current_version_expiryc                 C   r5   )a  
        Sets the time_of_current_version_expiry of this SecretSummary.
        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 SecretSummary.
        :type: datetime
        NrC   )r,   r   r.   r.   r/   r     rB   c                 C   r1   )ae  
        Gets the time_of_deletion of this SecretSummary.
        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 SecretSummary.
        :rtype: datetime
        r*   r3   r.   r.   r/   r     r?   zSecretSummary.time_of_deletionc                 C   r5   )at  
        Sets the time_of_deletion of this SecretSummary.
        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 SecretSummary.
        :type: datetime
        NrD   )r,   r   r.   r.   r/   r     rB   c                 C   r1   )z
        **[Required]** Gets the vault_id of this SecretSummary.
        The OCID of the Vault in which the secret exists


        :return: The vault_id of this SecretSummary.
        :rtype: str
        r+   r3   r.   r.   r/   r     r4   zSecretSummary.vault_idc                 C   r5   )z
        Sets the vault_id of this SecretSummary.
        The OCID of the Vault in which the secret exists


        :param vault_id: The vault_id of this SecretSummary.
        :type: str
        NrE   )r,   r   r.   r.   r/   r     r6   c                 C   s   t | S N)r   r3   r.   r.   r/   __repr__   s   zSecretSummary.__repr__c                 C   s   |d u rdS | j |j kS )NF)__dict__r,   otherr.   r.   r/   __eq__  s   zSecretSummary.__eq__c                 C   s
   | |k S rF   r.   rI   r.   r.   r/   __ne__	  s   
zSecretSummary.__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_FAILEDr0   propertyr   setterr   r   r   r   r   r   r   r   r   r   r   r   rG   rK   rL   r.   r.   r.   r/   r      s    j

























r   N)Zoci.utilr   r   r   Zoci.decoratorsr   objectr   r.   r.   r.   r/   <module>   s   