SecretContentDetails

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

Bases: object

The content of the secret and metadata to help identify it.

Attributes

CONTENT_TYPE_BASE64 A constant which can be used with the content_type property of a SecretContentDetails.
STAGE_CURRENT A constant which can be used with the stage property of a SecretContentDetails.
STAGE_PENDING A constant which can be used with the stage property of a SecretContentDetails.
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 SecretContentDetails 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 SecretContentDetails 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:

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 SecretContentDetails. Allowed values for this property are: “BASE64”
  • name (str) – The value to assign to the name property of this SecretContentDetails.
  • stage (str) – The value to assign to the stage property of this SecretContentDetails. Allowed values for this property are: “CURRENT”, “PENDING”
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