ruạṛ
a ���f � @ 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 dd � Z ed d� �Zej dd� �Zed d� �Zej dd� �Zedd� �Zej dd� �Zdd� Zdd� Zdd� ZdS )�KeyShapez0 The cryptographic properties of a key. �AES�RSA�ECDSA� NIST_P256� NIST_P384� NIST_P521c K s2 dddd�| _ dddd�| _d| _d| _d| _dS )a� Initializes a new KeyShape object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class): :param algorithm: The value to assign to the algorithm property of this KeyShape. Allowed values for this property are: "AES", "RSA", "ECDSA", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type algorithm: str :param length: The value to assign to the length property of this KeyShape. :type length: int :param curve_id: The value to assign to the curve_id property of this KeyShape. Allowed values for this property are: "NIST_P256", "NIST_P384", "NIST_P521", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type curve_id: str �str�int)� algorithm�length�curve_idr r ZcurveIdN)Z swagger_typesZ attribute_map� _algorithm�_length� _curve_id)�self�kwargs� r �G/usr/lib/python3.9/site-packages/oci/key_management/models/key_shape.py�__init__* s ��zKeyShape.__init__c C s | j S )a� **[Required]** Gets the algorithm of this KeyShape. The algorithm used by a key's key versions to encrypt or decrypt. Only AES algorithm is supported for `External` keys. Allowed values for this property are: "AES", "RSA", "ECDSA", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The algorithm of this KeyShape. :rtype: str )r �r r r r r P s zKeyShape.algorithmc C s g d�}t ||�sd}|| _dS )a Sets the algorithm of this KeyShape. The algorithm used by a key's key versions to encrypt or decrypt. Only AES algorithm is supported for `External` keys. :param algorithm: The algorithm of this KeyShape. :type: str )r r r �UNKNOWN_ENUM_VALUEN)r r )r r �allowed_valuesr r r r _ s c C s | j S )aQ **[Required]** Gets the length of this KeyShape. The length of the key in bytes, expressed as an integer. Supported values include the following: - AES: 16, 24, or 32 - RSA: 256, 384, or 512 - ECDSA: 32, 48, or 66 :return: The length of this KeyShape. :rtype: int �r r r r r r n s zKeyShape.lengthc C s || _ dS )aG Sets the length of this KeyShape. The length of the key in bytes, expressed as an integer. Supported values include the following: - AES: 16, 24, or 32 - RSA: 256, 384, or 512 - ECDSA: 32, 48, or 66 :param length: The length of this KeyShape. :type: int Nr )r r r r r r } s c C s | j S )aq Gets the curve_id of this KeyShape. Supported curve IDs for ECDSA keys. Allowed values for this property are: "NIST_P256", "NIST_P384", "NIST_P521", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The curve_id of this KeyShape. :rtype: str )r r r r r r � s zKeyShape.curve_idc C s g d�}t ||�sd}|| _dS )z� Sets the curve_id of this KeyShape. Supported curve IDs for ECDSA keys. :param curve_id: The curve_id of this KeyShape. :type: str )r r r r N)r r )r r r r r r r � s c C s t | �S �N)r r r r r �__repr__� s zKeyShape.__repr__c C s |d u rdS | j |j kS )NF)�__dict__�r �otherr r r �__eq__� s zKeyShape.__eq__c C s | |k S r r r! r r r �__ne__� s zKeyShape.__ne__N)�__name__� __module__�__qualname__�__doc__Z ALGORITHM_AESZ ALGORITHM_RSAZALGORITHM_ECDSAZCURVE_ID_NIST_P256ZCURVE_ID_NIST_P384ZCURVE_ID_NIST_P521r �propertyr �setterr r r r# r$ r r r r r s. & r N)Zoci.utilr r r Zoci.decoratorsr �objectr r r r r �<module> s
cải xoăn