ruạṛ
a ���f�I � @ s8 d dl mZmZmZ d dlmZ eG dd� de��ZdS )� )�formatted_flat_dict� NONE_SENTINEL�#value_allowed_none_or_none_sentinel)�init_model_state_from_kwargsc @ s� e Zd ZdZdZdZdZdZdZdZ dZ d Zd ZdZ dZd Zdd� Zedd� �Zejdd� �Zedd� �Zejdd� �Zedd� �Zejdd� �Zedd� �Zejdd� �Zedd� �Zejdd� �Zedd � �Zejd!d � �Zed"d#� �Zejd$d#� �Zed%d&� �Zejd'd&� �Zed(d)� �Zejd*d)� �Zed+d,� �Zejd-d,� �Zed.d/� �Zejd0d/� �Zed1d2� �Zejd3d2� �Zed4d5� �Zejd6d5� �Zed7d8� �Z e jd9d8� �Z d:d;� Z!d<d=� Z"d>d?� Z#d@S )A� KeyVersionz@ The details of the KeyVersion associated with the Key. �CREATING�ENABLING�ENABLED� DISABLING�DISABLED�DELETING�DELETED�PENDING_DELETION�SCHEDULING_DELETION�CANCELLING_DELETION�INTERNAL�EXTERNALc K s� ddddddddddddddd�| _ ddd d ddd dddddddd�| _d| _d| _d| _d| _d| _d| _d| _d| _ d| _ d| _d| _d| _ d| _d| _dS )a? Initializes a new KeyVersion 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 KeyVersion. :type compartment_id: str :param id: The value to assign to the id property of this KeyVersion. :type id: str :param key_id: The value to assign to the key_id property of this KeyVersion. :type key_id: str :param public_key: The value to assign to the public_key property of this KeyVersion. :type public_key: str :param lifecycle_state: The value to assign to the lifecycle_state property of this KeyVersion. Allowed values for this property are: "CREATING", "ENABLING", "ENABLED", "DISABLING", "DISABLED", "DELETING", "DELETED", "PENDING_DELETION", "SCHEDULING_DELETION", "CANCELLING_DELETION", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type lifecycle_state: str :param origin: The value to assign to the origin property of this KeyVersion. Allowed values for this property are: "INTERNAL", "EXTERNAL", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type origin: str :param time_created: The value to assign to the time_created property of this KeyVersion. :type time_created: datetime :param time_of_deletion: The value to assign to the time_of_deletion property of this KeyVersion. :type time_of_deletion: datetime :param vault_id: The value to assign to the vault_id property of this KeyVersion. :type vault_id: str :param restored_from_key_version_id: The value to assign to the restored_from_key_version_id property of this KeyVersion. :type restored_from_key_version_id: str :param replica_details: The value to assign to the replica_details property of this KeyVersion. :type replica_details: oci.key_management.models.KeyVersionReplicaDetails :param is_primary: The value to assign to the is_primary property of this KeyVersion. :type is_primary: bool :param external_key_reference_details: The value to assign to the external_key_reference_details property of this KeyVersion. :type external_key_reference_details: oci.key_management.models.ExternalKeyReferenceDetails :param is_auto_rotated: The value to assign to the is_auto_rotated property of this KeyVersion. :type is_auto_rotated: bool �strZdatetimeZKeyVersionReplicaDetails�boolZExternalKeyReferenceDetails)�compartment_id�id�key_id� public_key�lifecycle_state�origin�time_created�time_of_deletion�vault_id�restored_from_key_version_id�replica_details� is_primary�external_key_reference_details�is_auto_rotatedZ compartmentIdr ZkeyIdZ publicKeyZlifecycleStater ZtimeCreatedZtimeOfDeletionZvaultIdZrestoredFromKeyVersionIdZreplicaDetailsZ isPrimaryZexternalKeyReferenceDetailsZ isAutoRotatedN)Z swagger_typesZ attribute_map�_compartment_id�_id�_key_id�_public_key�_lifecycle_state�_origin� _time_created�_time_of_deletion� _vault_id�_restored_from_key_version_id�_replica_details�_is_primary�_external_key_reference_details�_is_auto_rotated)�self�kwargs� r3 �I/usr/lib/python3.9/site-packages/oci/key_management/models/key_version.py�__init__B sX C��zKeyVersion.__init__c C s | j S )z� **[Required]** Gets the compartment_id of this KeyVersion. The OCID of the compartment that contains this key version. :return: The compartment_id of this KeyVersion. :rtype: str �r# �r1 r3 r3 r4 r � s zKeyVersion.compartment_idc C s || _ dS )z� Sets the compartment_id of this KeyVersion. The OCID of the compartment that contains this key version. :param compartment_id: The compartment_id of this KeyVersion. :type: str Nr6 )r1 r r3 r3 r4 r � s c C s | j S )z� **[Required]** Gets the id of this KeyVersion. The OCID of the key version. :return: The id of this KeyVersion. :rtype: str �r$ r7 r3 r3 r4 r � s z KeyVersion.idc C s || _ dS )z� Sets the id of this KeyVersion. The OCID of the key version. :param id: The id of this KeyVersion. :type: str Nr8 )r1 r r3 r3 r4 r � s c C s | j S )z� **[Required]** Gets the key_id of this KeyVersion. The OCID of the key associated with this key version. :return: The key_id of this KeyVersion. :rtype: str �r% r7 r3 r3 r4 r � s zKeyVersion.key_idc C s || _ dS )z� Sets the key_id of this KeyVersion. The OCID of the key associated with this key version. :param key_id: The key_id of this KeyVersion. :type: str Nr9 )r1 r r3 r3 r4 r � s c C s | j S )z� Gets the public_key of this KeyVersion. The public key in PEM format. (This value pertains only to RSA and ECDSA keys.) :return: The public_key of this KeyVersion. :rtype: str �r&