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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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ÚVaultz
    Vault model.
    ÚCREATINGÚACTIVEÚDELETINGÚDELETEDÚPENDING_DELETIONÚSCHEDULING_DELETIONÚCANCELLING_DELETIONÚUPDATINGÚBACKUP_IN_PROGRESSÚ	RESTORINGÚVIRTUAL_PRIVATEÚDEFAULTc                 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| _d| _d| _d| _d| _d| _dS )a  
        Initializes a new Vault 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 Vault.
        :type compartment_id: str

        :param crypto_endpoint:
            The value to assign to the crypto_endpoint property of this Vault.
        :type crypto_endpoint: str

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

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

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

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

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

        :param management_endpoint:
            The value to assign to the management_endpoint property of this Vault.
        :type management_endpoint: str

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

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

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

        :param restored_from_vault_id:
            The value to assign to the restored_from_vault_id property of this Vault.
        :type restored_from_vault_id: str

        :param wrappingkey_id:
            The value to assign to the wrappingkey_id property of this Vault.
        :type wrappingkey_id: str

        :param replica_details:
            The value to assign to the replica_details property of this Vault.
        :type replica_details: oci.key_management.models.VaultReplicaDetails

        :param is_primary:
            The value to assign to the is_primary property of this Vault.
        :type is_primary: bool

        Ústrzdict(str, dict(str, object))zdict(str, str)ÚdatetimeZVaultReplicaDetailsÚbool)Úcompartment_idÚcrypto_endpointÚdefined_tagsÚdisplay_nameÚfreeform_tagsÚidÚlifecycle_stateÚmanagement_endpointÚtime_createdÚtime_of_deletionÚ
vault_typeÚrestored_from_vault_idÚwrappingkey_idÚreplica_detailsÚ
is_primaryZcompartmentIdZcryptoEndpointZdefinedTagsZdisplayNameZfreeformTagsr   ZlifecycleStateZmanagementEndpointZtimeCreatedZtimeOfDeletionZ	vaultTypeZrestoredFromVaultIdZwrappingkeyIdZreplicaDetailsZ	isPrimaryN)Zswagger_typesZattribute_mapÚ_compartment_idÚ_crypto_endpointÚ_defined_tagsÚ_display_nameÚ_freeform_tagsÚ_idÚ_lifecycle_stateÚ_management_endpointÚ_time_createdÚ_time_of_deletionÚ_vault_typeÚ_restored_from_vault_idÚ_wrappingkey_idÚ_replica_detailsÚ_is_primary)ÚselfÚkwargs© r6   úCusr/lib/python3.10/site-packages/oci/key_management/models/vault.pyÚ__init__B   s^   Gññ
zVault.__init__c                 C   ó   | j S )zÎ
        **[Required]** Gets the compartment_id of this Vault.
        The OCID of the compartment that contains this vault.


        :return: The compartment_id of this Vault.
        :rtype: str
        ©r%   ©r4   r6   r6   r7   r   ¼   ó   
zVault.compartment_idc                 C   ó
   || _ dS )zÌ
        Sets the compartment_id of this Vault.
        The OCID of the compartment that contains this vault.


        :param compartment_id: The compartment_id of this Vault.
        :type: str
        Nr:   )r4   r   r6   r6   r7   r   È   ó   

c                 C   r9   )a`  
        **[Required]** Gets the crypto_endpoint of this Vault.
        The service endpoint to perform cryptographic operations against. Cryptographic operations include
        `Encrypt`__, `Decrypt`__,
        and `GenerateDataEncryptionKey`__ operations.

        __ https://docs.cloud.oracle.com/api/#/en/key/latest/EncryptedData/Encrypt
        __ https://docs.cloud.oracle.com/api/#/en/key/latest/DecryptedData/Decrypt
        __ https://docs.cloud.oracle.com/api/#/en/key/latest/GeneratedKey/GenerateDataEncryptionKey


        :return: The crypto_endpoint of this Vault.
        :rtype: str
        ©r&   r;   r6   r6   r7   r   Ô   s   zVault.crypto_endpointc                 C   r=   )a_  
        Sets the crypto_endpoint of this Vault.
        The service endpoint to perform cryptographic operations against. Cryptographic operations include
        `Encrypt`__, `Decrypt`__,
        and `GenerateDataEncryptionKey`__ operations.

        __ https://docs.cloud.oracle.com/api/#/en/key/latest/EncryptedData/Encrypt
        __ https://docs.cloud.oracle.com/api/#/en/key/latest/DecryptedData/Decrypt
        __ https://docs.cloud.oracle.com/api/#/en/key/latest/GeneratedKey/GenerateDataEncryptionKey


        :param crypto_endpoint: The crypto_endpoint of this Vault.
        :type: str
        Nr?   )r4   r   r6   r6   r7   r   æ   s   
c                 C   r9   )a±  
        Gets the defined_tags of this Vault.
        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 Vault.
        :rtype: dict(str, dict(str, object))
        ©r'   r;   r6   r6   r7   r   ø   ó   zVault.defined_tagsc                 C   r=   )a¼  
        Sets the defined_tags of this Vault.
        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 Vault.
        :type: dict(str, dict(str, object))
        Nr@   )r4   r   r6   r6   r7   r     ó   
c                 C   r9   )a  
        **[Required]** Gets the display_name of this Vault.
        A user-friendly name for the vault. It does not have to be unique, and it is changeable.
        Avoid entering confidential information.


        :return: The display_name of this Vault.
        :rtype: str
        ©r(   r;   r6   r6   r7   r     s   zVault.display_namec                 C   r=   )a  
        Sets the display_name of this Vault.
        A user-friendly name for the vault. It does not have to be unique, and it is changeable.
        Avoid entering confidential information.


        :param display_name: The display_name of this Vault.
        :type: str
        NrC   )r4   r   r6   r6   r7   r   %  s   
c                 C   r9   )a»  
        Gets the freeform_tags of this Vault.
        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 Vault.
        :rtype: dict(str, str)
        ©r)   r;   r6   r6   r7   r   2  rA   zVault.freeform_tagsc                 C   r=   )aÇ  
        Sets the freeform_tags of this Vault.
        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 Vault.
        :type: dict(str, str)
        NrD   )r4   r   r6   r6   r7   r   B  rB   c                 C   r9   )z—
        **[Required]** Gets the id of this Vault.
        The OCID of the vault.


        :return: The id of this Vault.
        :rtype: str
        ©r*   r;   r6   r6   r7   r   R  r<   zVault.idc                 C   r=   )z‰
        Sets the id of this Vault.
        The OCID of the vault.


        :param id: The id of this Vault.
        :type: str
        NrE   )r4   r   r6   r6   r7   r   ^  r>   c                 C   r9   )a  
        **[Required]** Gets the lifecycle_state of this Vault.
        The vault's current lifecycle state.

        Example: `DELETED`

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


        :return: The lifecycle_state of this Vault.
        :rtype: str
        )r+   r;   r6   r6   r7   r   j  s   zVault.lifecycle_statec                 C   s    g d¢}t ||ƒsd}|| _dS )zÚ
        Sets the lifecycle_state of this Vault.
        The vault's current lifecycle state.

        Example: `DELETED`


        :param lifecycle_state: The lifecycle_state of this Vault.
        :type: str
        )
r   r   r	   r
   r   r   r   r   r   r   ÚUNKNOWN_ENUM_VALUEN)r   r+   )r4   r   Úallowed_valuesr6   r6   r7   r   {  s   

c                 C   r9   )a;  
        **[Required]** Gets the management_endpoint of this Vault.
        The service endpoint to perform management operations against. Management operations include "Create," "Update," "List," "Get," and "Delete" operations.


        :return: The management_endpoint of this Vault.
        :rtype: str
        ©r,   r;   r6   r6   r7   r   Œ  r<   zVault.management_endpointc                 C   r=   )a>  
        Sets the management_endpoint of this Vault.
        The service endpoint to perform management operations against. Management operations include "Create," "Update," "List," "Get," and "Delete" operations.


        :param management_endpoint: The management_endpoint of this Vault.
        :type: str
        NrH   )r4   r   r6   r6   r7   r   ˜  r>   c                 C   r9   )aL  
        **[Required]** Gets the time_created of this Vault.
        The date and time this vault was created, expressed in `RFC 3339`__ timestamp format.

        Example: `2018-04-03T21:10:29.600Z`

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


        :return: The time_created of this Vault.
        :rtype: datetime
        ©r-   r;   r6   r6   r7   r   ¤  rA   zVault.time_createdc                 C   r=   )aH  
        Sets the time_created of this Vault.
        The date and time this vault was created, expressed in `RFC 3339`__ timestamp format.

        Example: `2018-04-03T21:10:29.600Z`

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


        :param time_created: The time_created of this Vault.
        :type: datetime
        NrI   )r4   r   r6   r6   r7   r   ´  rB   c                 C   r9   )aU  
        Gets the time_of_deletion of this Vault.
        An optional property to indicate when to delete the vault, expressed in `RFC 3339`__ timestamp format.
        Example: `2018-04-03T21:10:29.600Z`

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


        :return: The time_of_deletion of this Vault.
        :rtype: datetime
        ©r.   r;   r6   r6   r7   r   Ä  s   zVault.time_of_deletionc                 C   r=   )ad  
        Sets the time_of_deletion of this Vault.
        An optional property to indicate when to delete the vault, expressed in `RFC 3339`__ timestamp format.
        Example: `2018-04-03T21:10:29.600Z`

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


        :param time_of_deletion: The time_of_deletion of this Vault.
        :type: datetime
        NrJ   )r4   r   r6   r6   r7   r   Ó  s   
c                 C   r9   )aÙ  
        **[Required]** Gets the vault_type of this Vault.
        The type of vault. Each type of vault stores the key with different
        degrees of isolation and has different options and pricing.

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


        :return: The vault_type of this Vault.
        :rtype: str
        )r/   r;   r6   r6   r7   r    â  rA   zVault.vault_typec                 C   s    ddg}t ||ƒsd}|| _dS )a  
        Sets the vault_type of this Vault.
        The type of vault. Each type of vault stores the key with different
        degrees of isolation and has different options and pricing.


        :param vault_type: The vault_type of this Vault.
        :type: str
        r   r   rF   N)r   r/   )r4   r    rG   r6   r6   r7   r    ò  s   

c                 C   r9   )a  
        Gets the restored_from_vault_id of this Vault.
        The OCID of the vault from which this vault was restored, if it was restored from a backup file.
        If you restore a vault to the same region, the vault retains the same OCID that it had when you
        backed up the vault.


        :return: The restored_from_vault_id of this Vault.
        :rtype: str
        ©r0   r;   r6   r6   r7   r!     s   zVault.restored_from_vault_idc                 C   r=   )a”  
        Sets the restored_from_vault_id of this Vault.
        The OCID of the vault from which this vault was restored, if it was restored from a backup file.
        If you restore a vault to the same region, the vault retains the same OCID that it had when you
        backed up the vault.


        :param restored_from_vault_id: The restored_from_vault_id of this Vault.
        :type: str
        NrK   )r4   r!   r6   r6   r7   r!     s   
c                 C   r9   )z¾
        **[Required]** Gets the wrappingkey_id of this Vault.
        The OCID of the vault's wrapping key.


        :return: The wrappingkey_id of this Vault.
        :rtype: str
        ©r1   r;   r6   r6   r7   r"     r<   zVault.wrappingkey_idc                 C   r=   )z¼
        Sets the wrappingkey_id of this Vault.
        The OCID of the vault's wrapping key.


        :param wrappingkey_id: The wrappingkey_id of this Vault.
        :type: str
        NrL   )r4   r"   r6   r6   r7   r"   *  r>   c                 C   r9   )z¬
        Gets the replica_details of this Vault.

        :return: The replica_details of this Vault.
        :rtype: oci.key_management.models.VaultReplicaDetails
        ©r2   r;   r6   r6   r7   r#   6  ó   zVault.replica_detailsc                 C   r=   )zº
        Sets the replica_details of this Vault.

        :param replica_details: The replica_details of this Vault.
        :type: oci.key_management.models.VaultReplicaDetails
        NrM   )r4   r#   r6   r6   r7   r#   @  ó   
c                 C   r9   )zy
        Gets the is_primary of this Vault.

        :return: The is_primary of this Vault.
        :rtype: bool
        ©r3   r;   r6   r6   r7   r$   J  rN   zVault.is_primaryc                 C   r=   )z‚
        Sets the is_primary of this Vault.

        :param is_primary: The is_primary of this Vault.
        :type: bool
        NrP   )r4   r$   r6   r6   r7   r$   T  rO   c                 C   s   t | ƒS ©N)r   r;   r6   r6   r7   Ú__repr__^  s   zVault.__repr__c                 C   s   |d u rdS | j |j kS )NF)Ú__dict__©r4   Úotherr6   r6   r7   Ú__eq__a  s   zVault.__eq__c                 C   s
   | |k S rQ   r6   rT   r6   r6   r7   Ú__ne__g  s   
zVault.__ne__N)%Ú__name__Ú
__module__Ú__qualname__Ú__doc__ZLIFECYCLE_STATE_CREATINGZLIFECYCLE_STATE_ACTIVEZLIFECYCLE_STATE_DELETINGZLIFECYCLE_STATE_DELETEDZ LIFECYCLE_STATE_PENDING_DELETIONZ#LIFECYCLE_STATE_SCHEDULING_DELETIONZ#LIFECYCLE_STATE_CANCELLING_DELETIONZLIFECYCLE_STATE_UPDATINGZ"LIFECYCLE_STATE_BACKUP_IN_PROGRESSZLIFECYCLE_STATE_RESTORINGZVAULT_TYPE_VIRTUAL_PRIVATEZVAULT_TYPE_DEFAULTr8   Úpropertyr   Úsetterr   r   r   r   r   r   r   r   r   r    r!   r"   r#   r$   rR   rV   rW   r6   r6   r6   r7   r      sœ    z


























	
	
	
	r   N)Zoci.utilr   r   r   Zoci.decoratorsr   Úobjectr   r6   r6   r6   r7   Ú<module>   s   