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 @ sl e Zd ZdZdZdZdd� Zedd� �Zej dd� �Zed d � �Z e j dd � �Z dd � Zdd� Zdd� Z dS )�PassphraseGenerationContexta Generates Passphrase type secrets. By default, passphrase type secrets have no structure. The generated content is stored in Base64 format. The SecretTemplate must have the %GENERATED_PASSPHRASE% keyword, which is later replaced with the generated content, if provided. �SECRETS_DEFAULT_PASSWORD�DBAAS_DEFAULT_PASSWORDc K sB ddddd�| _ ddddd�| _d| _d| _d| _d| _d | _dS ) a� Initializes a new PassphraseGenerationContext object with values from keyword arguments. The default value of the :py:attr:`~oci.vault.models.PassphraseGenerationContext.generation_type` attribute of this class is ``PASSPHRASE`` 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 PassphraseGenerationContext. 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 PassphraseGenerationContext. :type secret_template: str :param generation_template: The value to assign to the generation_template property of this PassphraseGenerationContext. Allowed values for this property are: "SECRETS_DEFAULT_PASSWORD", "DBAAS_DEFAULT_PASSWORD", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type generation_template: str :param passphrase_length: The value to assign to the passphrase_length property of this PassphraseGenerationContext. :type passphrase_length: int �str�int)Zgeneration_typeZsecret_template�generation_template�passphrase_lengthZgenerationTypeZsecretTemplateZgenerationTemplateZpassphraseLengthNZ PASSPHRASE)Z swagger_typesZ attribute_mapZ_generation_typeZ_secret_template�_generation_template�_passphrase_length)�self�kwargs� r �R/usr/lib/python3.9/site-packages/oci/vault/models/passphrase_generation_context.py�__init__ s ��z$PassphraseGenerationContext.__init__c C s | j S )a� **[Required]** Gets the generation_template of this PassphraseGenerationContext. Name of passphrase generation template to generate passphrase type secret. Allowed values for this property are: "SECRETS_DEFAULT_PASSWORD", "DBAAS_DEFAULT_PASSWORD", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The generation_template of this PassphraseGenerationContext. :rtype: str )r �r r r r r J s z/PassphraseGenerationContext.generation_templatec C s ddg}t ||�sd}|| _dS )a Sets the generation_template of this PassphraseGenerationContext. Name of passphrase generation template to generate passphrase type secret. :param generation_template: The generation_template of this PassphraseGenerationContext. :type: str r r ZUNKNOWN_ENUM_VALUEN)r r )r r Zallowed_valuesr r r r Y s c C s | j S )z� Gets the passphrase_length of this PassphraseGenerationContext. Length of the passphrase to be generated :return: The passphrase_length of this PassphraseGenerationContext. :rtype: int �r r r r r r h s z-PassphraseGenerationContext.passphrase_lengthc C s || _ dS )z� Sets the passphrase_length of this PassphraseGenerationContext. Length of the passphrase to be generated :param passphrase_length: The passphrase_length of this PassphraseGenerationContext. :type: int Nr )r r r r r r t s c C s t | �S �N)r r r r r �__repr__� s z$PassphraseGenerationContext.__repr__c C s |d u rdS | j |j kS )NF)�__dict__�r �otherr r r �__eq__� s z"PassphraseGenerationContext.__eq__c C s | |k S r r r r r r �__ne__� s z"PassphraseGenerationContext.__ne__N)�__name__� __module__�__qualname__�__doc__Z,GENERATION_TEMPLATE_SECRETS_DEFAULT_PASSWORDZ*GENERATION_TEMPLATE_DBAAS_DEFAULT_PASSWORDr �propertyr �setterr r 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