ruạṛ
a ���fh � @ 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 ZdZdZdZdZdd� Zedd� �Z e d d � �Zejdd � �Ze dd � �Z e jdd � �Z dd� Zdd� Zdd� ZdS )�SecretGenerationContextz� Captures a configurable set of secret generation rules such as length, base characters, additional characters, and so on. � PASSPHRASE�SSH_KEY�BYTESc K s( ddd�| _ ddd�| _d| _d| _dS )aR Initializes a new SecretGenerationContext object with values from keyword arguments. This class has the following subclasses and if you are using this class as input to a service operations then you should favor using a subclass over the base class: * :class:`~oci.vault.models.PassphraseGenerationContext` * :class:`~oci.vault.models.SshKeyGenerationContext` * :class:`~oci.vault.models.BytesGenerationContext` 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 SecretGenerationContext. 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 SecretGenerationContext. :type secret_template: str �str)�generation_type�secret_template�generationTypeZsecretTemplateN)Z swagger_typesZ attribute_map�_generation_type�_secret_template)�self�kwargs� r �N/usr/lib/python3.9/site-packages/oci/vault/models/secret_generation_context.py�__init__ s ��z SecretGenerationContext.__init__c C s4 | d }|dkrdS |dkr dS |dkr,dS dS d S ) z� Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype. r r ZPassphraseGenerationContextr ZSshKeyGenerationContextr ZBytesGenerationContextr Nr )Zobject_dictionary�typer r r �get_subtypeA s z#SecretGenerationContext.get_subtypec C s | j S )a� **[Required]** Gets the generation_type of this SecretGenerationContext. Name of the predefined secret generation type. 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'. :return: The generation_type of this SecretGenerationContext. :rtype: str )r �r r r r r T s z'SecretGenerationContext.generation_typec C s g d�}t ||�sd}|| _dS )z� Sets the generation_type of this SecretGenerationContext. Name of the predefined secret generation type. :param generation_type: The generation_type of this SecretGenerationContext. :type: str )r r r ZUNKNOWN_ENUM_VALUEN)r r )r r Zallowed_valuesr r r r c s c C s | j S )a\ Gets the secret_template of this SecretGenerationContext. SecretTemplate captures structure in which customer wants to store secrets. This is optional and a default structure is available for each secret type. The template can have any structure with static values that are not generated. Within the template, you can insert predefined placeholders to store secrets. These placeholders are later replaced with the generated content and saved as a Base64 encoded content. :return: The secret_template of this SecretGenerationContext. :rtype: str �r r r r r r r s z'SecretGenerationContext.secret_templatec C s || _ dS )aj Sets the secret_template of this SecretGenerationContext. SecretTemplate captures structure in which customer wants to store secrets. This is optional and a default structure is available for each secret type. The template can have any structure with static values that are not generated. Within the template, you can insert predefined placeholders to store secrets. These placeholders are later replaced with the generated content and saved as a Base64 encoded content. :param secret_template: The secret_template of this SecretGenerationContext. :type: str Nr )r r r r r r � s c C s t | �S �N)r r r r r �__repr__� s z SecretGenerationContext.__repr__c C s |d u rdS | j |j kS )NF)�__dict__�r �otherr r r �__eq__� s zSecretGenerationContext.__eq__c C s | |k S r r r r r r �__ne__� s zSecretGenerationContext.__ne__N)�__name__� __module__�__qualname__�__doc__ZGENERATION_TYPE_PASSPHRASEZGENERATION_TYPE_SSH_KEYZGENERATION_TYPE_BYTESr �staticmethodr �propertyr �setterr 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