UpdateSecretDetails

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

Bases: object

Details for updating a secret.

Methods

__init__(**kwargs) Initializes a new UpdateSecretDetails object with values from keyword arguments.

Attributes

current_version_number Gets the current_version_number of this UpdateSecretDetails.
defined_tags Gets the defined_tags of this UpdateSecretDetails.
description Gets the description of this UpdateSecretDetails.
freeform_tags Gets the freeform_tags of this UpdateSecretDetails.
metadata Gets the metadata of this UpdateSecretDetails.
secret_content Gets the secret_content of this UpdateSecretDetails.
secret_rules Gets the secret_rules of this UpdateSecretDetails.
__init__(**kwargs)

Initializes a new UpdateSecretDetails object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters:
  • current_version_number (int) – The value to assign to the current_version_number property of this UpdateSecretDetails.
  • defined_tags (dict(str, dict(str, object))) – The value to assign to the defined_tags property of this UpdateSecretDetails.
  • description (str) – The value to assign to the description property of this UpdateSecretDetails.
  • freeform_tags (dict(str, str)) – The value to assign to the freeform_tags property of this UpdateSecretDetails.
  • metadata (dict(str, object)) – The value to assign to the metadata property of this UpdateSecretDetails.
  • secret_content (SecretContentDetails) – The value to assign to the secret_content property of this UpdateSecretDetails.
  • secret_rules (list[SecretRule]) – The value to assign to the secret_rules property of this UpdateSecretDetails.
current_version_number

Gets the current_version_number of this UpdateSecretDetails. Details to update the secret version of the specified secret. The secret contents, version number, and rules can’t be specified at the same time. Updating the secret contents automatically creates a new secret version.

Returns:The current_version_number of this UpdateSecretDetails.
Return type:int
defined_tags

Gets the defined_tags of this UpdateSecretDetails. Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {“Operations”: {“CostCenter”: “42”}}

Returns:The defined_tags of this UpdateSecretDetails.
Return type:dict(str, dict(str, object))
description

Gets the description of this UpdateSecretDetails. A brief description of the secret. Avoid entering confidential information.

Returns:The description of this UpdateSecretDetails.
Return type:str
freeform_tags

Gets the freeform_tags of this UpdateSecretDetails. Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {“Department”: “Finance”}

Returns:The freeform_tags of this UpdateSecretDetails.
Return type:dict(str, str)
metadata

Gets the metadata of this UpdateSecretDetails. Additional metadata that you can use to provide context about how to use the secret or during rotation or other administrative tasks. For example, for a secret that you use to connect to a database, the additional metadata might specify the connection endpoint and the connection string. Provide additional metadata as key-value pairs.

Returns:The metadata of this UpdateSecretDetails.
Return type:dict(str, object)
secret_content

Gets the secret_content of this UpdateSecretDetails.

Returns:The secret_content of this UpdateSecretDetails.
Return type:SecretContentDetails
secret_rules

Gets the secret_rules of this UpdateSecretDetails. A list of rules to control how the secret is used and managed.

Returns:The secret_rules of this UpdateSecretDetails.
Return type:list[SecretRule]