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 @ sR e Zd ZdZdZdZdd� Zedd� �Zej dd� �Zd d � Z dd� Zd d� ZdS )�BytesGenerationContexta Generates random bytes. By default, secrets of type Bytes has no structure. The generated bytes are stored as a Base64 encoded string. The SecretTemplate must have the %GENERATED_BYTES% keyword which is replaced with the generated bytes, if provided � BYTES_512� BYTES_1024c K s8 dddd�| _ dddd�| _d| _d| _d| _d| _dS )a Initializes a new BytesGenerationContext object with values from keyword arguments. The default value of the :py:attr:`~oci.vault.models.BytesGenerationContext.generation_type` attribute of this class is ``BYTES`` 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 BytesGenerationContext. 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 BytesGenerationContext. :type secret_template: str :param generation_template: The value to assign to the generation_template property of this BytesGenerationContext. Allowed values for this property are: "BYTES_512", "BYTES_1024", '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_templateZgenerationTypeZsecretTemplateZgenerationTemplateNZBYTES)Z swagger_typesZ attribute_mapZ_generation_typeZ_secret_template�_generation_template)�self�kwargs� r �M/usr/lib/python3.9/site-packages/oci/vault/models/bytes_generation_context.py�__init__ s ��zBytesGenerationContext.__init__c C s | j S )a� **[Required]** Gets the generation_template of this BytesGenerationContext. Name of random bytes generation template for generating random byte type secret. Allowed values for this property are: "BYTES_512", "BYTES_1024", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The generation_template of this BytesGenerationContext. :rtype: str )r �r r r r r C s z*BytesGenerationContext.generation_templatec C s ddg}t ||�sd}|| _dS )a Sets the generation_template of this BytesGenerationContext. Name of random bytes generation template for generating random byte type secret. :param generation_template: The generation_template of this BytesGenerationContext. :type: str r r ZUNKNOWN_ENUM_VALUEN)r r )r r Zallowed_valuesr r r r R s c C s t | �S �N)r r r r r �__repr__a s zBytesGenerationContext.__repr__c C s |d u rdS | j |j kS )NF)�__dict__�r �otherr r r �__eq__d s zBytesGenerationContext.__eq__c C s | |k S r r r r r r �__ne__j s zBytesGenerationContext.__ne__N) �__name__� __module__�__qualname__�__doc__ZGENERATION_TEMPLATE_BYTES_512ZGENERATION_TEMPLATE_BYTES_1024r �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