BytesGenerationContext¶
- class oci.vault.models.BytesGenerationContext(**kwargs)¶
Bases:
SecretGenerationContextGenerates 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
Attributes:
A constant which can be used with the generation_template property of a BytesGenerationContext.
A constant which can be used with the generation_template property of a BytesGenerationContext.
A constant which can be used with the generation_type property of a SecretGenerationContext.
A constant which can be used with the generation_type property of a SecretGenerationContext.
A constant which can be used with the generation_type property of a SecretGenerationContext.
[Required] Gets the generation_template of this BytesGenerationContext.
[Required] Gets the generation_type of this SecretGenerationContext.
Gets the secret_template of this SecretGenerationContext.
Methods:
__init__(**kwargs)Initializes a new BytesGenerationContext object with values from keyword arguments.
get_subtype(object_dictionary)Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.
- GENERATION_TEMPLATE_BYTES_1024 = 'BYTES_1024'¶
A constant which can be used with the generation_template property of a BytesGenerationContext. This constant has a value of “BYTES_1024”
- GENERATION_TEMPLATE_BYTES_512 = 'BYTES_512'¶
A constant which can be used with the generation_template property of a BytesGenerationContext. This constant has a value of “BYTES_512”
- GENERATION_TYPE_BYTES = 'BYTES'¶
A constant which can be used with the generation_type property of a SecretGenerationContext. This constant has a value of “BYTES”
- GENERATION_TYPE_PASSPHRASE = 'PASSPHRASE'¶
A constant which can be used with the generation_type property of a SecretGenerationContext. This constant has a value of “PASSPHRASE”
- GENERATION_TYPE_SSH_KEY = 'SSH_KEY'¶
A constant which can be used with the generation_type property of a SecretGenerationContext. This constant has a value of “SSH_KEY”
- __init__(**kwargs)¶
Initializes a new BytesGenerationContext object with values from keyword arguments. The default value of the
generation_typeattribute of this class isBYTESand it should not be changed. The following keyword arguments are supported (corresponding to the getters/setters of this class):- Parameters
generation_type (str) – 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’.
secret_template (str) – The value to assign to the secret_template property of this BytesGenerationContext.
generation_template (str) – 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’.
- property generation_template¶
[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’.
- Returns
The generation_template of this BytesGenerationContext.
- Return type
str
- property generation_type¶
[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’.
- Returns
The generation_type of this SecretGenerationContext.
- Return type
str
- static get_subtype(object_dictionary)¶
Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.
- property secret_template¶
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.
- Returns
The secret_template of this SecretGenerationContext.
- Return type
str