SecretReuseRule¶
- class oci.vault.models.SecretReuseRule(**kwargs)¶
Bases:
SecretRuleA rule that disallows reuse of previously used secret content by the specified secret.
Attributes:
A constant which can be used with the rule_type property of a SecretRule.
A constant which can be used with the rule_type property of a SecretRule.
Gets the is_enforced_on_deleted_secret_versions of this SecretReuseRule.
[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'¶
A constant which can be used with the rule_type property of a SecretRule. This constant has a value of “SECRET_EXPIRY_RULE”
- RULE_TYPE_SECRET_REUSE_RULE = 'SECRET_REUSE_RULE'¶
A constant which can be used with the rule_type property of a SecretRule. This constant has a value of “SECRET_REUSE_RULE”
- __init__(**kwargs)¶
Initializes a new SecretReuseRule object with values from keyword arguments. The default value of the
rule_typeattribute of this class isSECRET_REUSE_RULEand 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.
- property 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
- property 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