Base64SecretContentDetails¶
- class oci.vault.models.Base64SecretContentDetails(**kwargs)¶
Bases:
SecretContentDetailsBase64-encoded secret content.
Attributes:
A constant which can be used with the content_type property of a SecretContentDetails.
A constant which can be used with the stage property of a SecretContentDetails.
A constant which can be used with the stage property of a SecretContentDetails.
Gets the content of this Base64SecretContentDetails.
[Required] Gets the content_type of this SecretContentDetails.
Gets the name of this SecretContentDetails.
Gets the stage of this SecretContentDetails.
Methods:
__init__(**kwargs)Initializes a new Base64SecretContentDetails 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.
- CONTENT_TYPE_BASE64 = 'BASE64'¶
A constant which can be used with the content_type property of a SecretContentDetails. This constant has a value of “BASE64”
- STAGE_CURRENT = 'CURRENT'¶
A constant which can be used with the stage property of a SecretContentDetails. This constant has a value of “CURRENT”
- STAGE_PENDING = 'PENDING'¶
A constant which can be used with the stage property of a SecretContentDetails. This constant has a value of “PENDING”
- __init__(**kwargs)¶
Initializes a new Base64SecretContentDetails object with values from keyword arguments. The default value of the
content_typeattribute of this class isBASE64and it should not be changed. The following keyword arguments are supported (corresponding to the getters/setters of this class):- Parameters
content_type (str) – The value to assign to the content_type property of this Base64SecretContentDetails. Allowed values for this property are: “BASE64”
name (str) – The value to assign to the name property of this Base64SecretContentDetails.
stage (str) – The value to assign to the stage property of this Base64SecretContentDetails. Allowed values for this property are: “CURRENT”, “PENDING”
content (str) – The value to assign to the content property of this Base64SecretContentDetails.
- property content¶
Gets the content of this Base64SecretContentDetails. The base64-encoded content of the secret.
- Returns
The content of this Base64SecretContentDetails.
- Return type
str
- property content_type¶
[Required] Gets the content_type of this SecretContentDetails. The base64-encoded content of the secret.
Allowed values for this property are: “BASE64”
- Returns
The content_type of this SecretContentDetails.
- 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 name¶
Gets the name of this SecretContentDetails. Names should be unique within a secret. Valid characters are uppercase or lowercase letters, numbers, hyphens, underscores, and periods.
- Returns
The name of this SecretContentDetails.
- Return type
str
- property stage¶
Gets the stage of this SecretContentDetails. The rotation state of the secret content. The default is CURRENT, meaning that the secret is currently in use. A secret version that you mark as PENDING is staged and available for use, but you don’t yet want to rotate it into current, active use. For example, you might create or update a secret and mark its rotation state as PENDING if you haven’t yet updated the secret on the target system. When creating a secret, only the value CURRENT is applicable, although the value LATEST is also automatically applied. When updating a secret, you can specify a version’s rotation state as either CURRENT or PENDING.
Allowed values for this property are: “CURRENT”, “PENDING”
- Returns
The stage of this SecretContentDetails.
- Return type
str