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. enable_auto_generation
Gets the enable_auto_generation of this UpdateSecretDetails. freeform_tags
Gets the freeform_tags of this UpdateSecretDetails. metadata
Gets the metadata of this UpdateSecretDetails. rotation_config
Gets the rotation_config of this UpdateSecretDetails. secret_content
Gets the secret_content of this UpdateSecretDetails. secret_generation_context
Gets the secret_generation_context 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 (oci.vault.models.SecretContentDetails) – The value to assign to the secret_content property of this UpdateSecretDetails.
- rotation_config (oci.vault.models.RotationConfig) – The value to assign to the rotation_config property of this UpdateSecretDetails.
- secret_rules (list[oci.vault.models.SecretRule]) – The value to assign to the secret_rules property of this UpdateSecretDetails.
- secret_generation_context (oci.vault.models.SecretGenerationContext) – The value to assign to the secret_generation_context property of this UpdateSecretDetails.
- enable_auto_generation (bool) – The value to assign to the enable_auto_generation 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
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
-
enable_auto_generation
¶ Gets the enable_auto_generation of this UpdateSecretDetails. The value of this flag determines whether or not secret content will be generated automatically.
Returns: The enable_auto_generation of this UpdateSecretDetails. Return type: bool
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)
-
rotation_config
¶ Gets the rotation_config of this UpdateSecretDetails.
Returns: The rotation_config of this UpdateSecretDetails. Return type: oci.vault.models.RotationConfig
-
secret_content
¶ Gets the secret_content of this UpdateSecretDetails.
Returns: The secret_content of this UpdateSecretDetails. Return type: oci.vault.models.SecretContentDetails
-
secret_generation_context
¶ Gets the secret_generation_context of this UpdateSecretDetails.
Returns: The secret_generation_context of this UpdateSecretDetails. Return type: oci.vault.models.SecretGenerationContext
-
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[oci.vault.models.SecretRule]
-