SecretReuseRule

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

Bases: oci.vault.models.secret_rule.SecretRule

A rule that disallows reuse of previously used secret content by the specified secret.

Attributes

RULE_TYPE_SECRET_EXPIRY_RULE str(object=’’) -> str
RULE_TYPE_SECRET_REUSE_RULE str(object=’’) -> str
is_enforced_on_deleted_secret_versions Gets the is_enforced_on_deleted_secret_versions of this SecretReuseRule.
rule_type [Required] Gets the rule_type of this SecretRule.

Methods

__init__(**kwargs) Initializes a new SecretReuseRule 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.
RULE_TYPE_SECRET_EXPIRY_RULE = 'SECRET_EXPIRY_RULE'
RULE_TYPE_SECRET_REUSE_RULE = 'SECRET_REUSE_RULE'
__init__(**kwargs)

Initializes a new SecretReuseRule object with values from keyword arguments. The default value of the rule_type attribute of this class is SECRET_REUSE_RULE and it should not be changed. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters:
  • rule_type (str) – The value to assign to the rule_type property of this SecretReuseRule. Allowed values for this property are: “SECRET_EXPIRY_RULE”, “SECRET_REUSE_RULE”
  • is_enforced_on_deleted_secret_versions (bool) – The value to assign to the is_enforced_on_deleted_secret_versions property of this SecretReuseRule.
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.

is_enforced_on_deleted_secret_versions

Gets the is_enforced_on_deleted_secret_versions of this SecretReuseRule. A property indicating whether the rule is applied even if the secret version with the content you are trying to reuse was deleted.

Returns:The is_enforced_on_deleted_secret_versions of this SecretReuseRule.
Return type:bool
rule_type

[Required] Gets the rule_type of this SecretRule. The type of rule, which either controls when the secret contents expire or whether they can be reused.

Allowed values for this property are: “SECRET_EXPIRY_RULE”, “SECRET_REUSE_RULE”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns:The rule_type of this SecretRule.
Return type:str