ruạṛ
a ���f� � @ sD d dl mZ ddlmZmZmZ ddlmZ eG dd� de��ZdS )� )�SecretGenerationContext� )�formatted_flat_dict� NONE_SENTINEL�#value_allowed_none_or_none_sentinel)�init_model_state_from_kwargsc @ sV e Zd ZdZdZdZdZdd� Zedd� �Z e j d d� �Z d d� Zdd � Zdd� Z dS )�SshKeyGenerationContextaC Generates ssh keys. By default, the keys are stored as - {"publicKey": "%GENERATED_PUBLIC_KEY%", "privateKey": "%GENERATED_PRIVATE_KEY%"} in PEM format. The SecretTemplate must have both %GENERATED_PUBLIC_KEY% and %GENERATED_PRIVATE_KEY% keywords which is later replaced with the respective keys, if provided. �RSA_2048�RSA_3072�RSA_4096c K s8 dddd�| _ dddd�| _d| _d| _d| _d| _dS )a Initializes a new SshKeyGenerationContext object with values from keyword arguments. The default value of the :py:attr:`~oci.vault.models.SshKeyGenerationContext.generation_type` attribute of this class is ``SSH_KEY`` and it should not be changed. The following keyword arguments are supported (corresponding to the getters/setters of this class): :param generation_type: The value to assign to the generation_type property of this SshKeyGenerationContext. Allowed values for this property are: "PASSPHRASE", "SSH_KEY", "BYTES", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type generation_type: str :param secret_template: The value to assign to the secret_template property of this SshKeyGenerationContext. :type secret_template: str :param generation_template: The value to assign to the generation_template property of this SshKeyGenerationContext. Allowed values for this property are: "RSA_2048", "RSA_3072", "RSA_4096", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type generation_template: str �str)Zgeneration_typeZsecret_template�generation_templateZgenerationTypeZsecretTemplateZgenerationTemplateNZSSH_KEY)Z swagger_typesZ attribute_mapZ_generation_typeZ_secret_template�_generation_template)�self�kwargs� r �O/usr/lib/python3.9/site-packages/oci/vault/models/ssh_key_generation_context.py�__init__ s ��z SshKeyGenerationContext.__init__c C s | j S )a� **[Required]** Gets the generation_template of this SshKeyGenerationContext. Name of SSH key generation template to generate SSH key type secret. Allowed values for this property are: "RSA_2048", "RSA_3072", "RSA_4096", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The generation_template of this SshKeyGenerationContext. :rtype: str )r �r r r r r G s z+SshKeyGenerationContext.generation_templatec C s g d�}t ||�sd}|| _dS )a Sets the generation_template of this SshKeyGenerationContext. Name of SSH key generation template to generate SSH key type secret. :param generation_template: The generation_template of this SshKeyGenerationContext. :type: str )r r r ZUNKNOWN_ENUM_VALUEN)r r )r r Zallowed_valuesr r r r V s c C s t | �S �N)r r r r r �__repr__e s z SshKeyGenerationContext.__repr__c C s |d u rdS | j |j kS )NF)�__dict__�r �otherr r r �__eq__h s zSshKeyGenerationContext.__eq__c C s | |k S r r r r r r �__ne__n s zSshKeyGenerationContext.__ne__N)�__name__� __module__�__qualname__�__doc__ZGENERATION_TEMPLATE_RSA_2048ZGENERATION_TEMPLATE_RSA_3072ZGENERATION_TEMPLATE_RSA_4096r �propertyr �setterr r r r r r r r s ( r N) Zsecret_generation_contextr Zoci.utilr r r Zoci.decoratorsr r r r r r �<module> s
cải xoăn