Base64SecretContentDetails

class oci.vault.models.Base64SecretContentDetails(**kwargs)

Bases: oci.vault.models.secret_content_details.SecretContentDetails

Base64-encoded secret content.

Attributes

CONTENT_TYPE_BASE64 str(object=’’) -> str
STAGE_CURRENT str(object=’’) -> str
STAGE_PENDING str(object=’’) -> str
content Gets the content of this Base64SecretContentDetails.
content_type [Required] Gets the content_type of this SecretContentDetails.
name Gets the name of this SecretContentDetails.
stage 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'
STAGE_CURRENT = 'CURRENT'
STAGE_PENDING = 'PENDING'
__init__(**kwargs)

Initializes a new Base64SecretContentDetails object with values from keyword arguments. The default value of the content_type attribute of this class is BASE64 and 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.
content

Gets the content of this Base64SecretContentDetails. The base64-encoded content of the secret.

Returns:The content of this Base64SecretContentDetails.
Return type:str
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.

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
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