a ýÎòfÝã@sDddlmZddlmZmZmZddlmZeGdd„deƒƒZdS)é)Ú SecretRuleé)Úformatted_flat_dictÚ NONE_SENTINELÚ#value_allowed_none_or_none_sentinel)Úinit_model_state_from_kwargsc@s~eZdZdZdd„Zedd„ƒZejdd„ƒZedd„ƒZejd d„ƒZed d „ƒZ e jd d „ƒZ d d„Z dd„Z dd„Z dS)ÚSecretExpiryRulezJ A rule that helps enforce the expiration of a secret's contents. cKsBdddddœ|_dddddœ|_d |_d |_d |_d |_d |_d S) aÜ Initializes a new SecretExpiryRule object with values from keyword arguments. The default value of the :py:attr:`~oci.vault.models.SecretExpiryRule.rule_type` attribute of this class is ``SECRET_EXPIRY_RULE`` and it should not be changed. The following keyword arguments are supported (corresponding to the getters/setters of this class): :param rule_type: The value to assign to the rule_type property of this SecretExpiryRule. Allowed values for this property are: "SECRET_EXPIRY_RULE", "SECRET_REUSE_RULE" :type rule_type: str :param secret_version_expiry_interval: The value to assign to the secret_version_expiry_interval property of this SecretExpiryRule. :type secret_version_expiry_interval: str :param time_of_absolute_expiry: The value to assign to the time_of_absolute_expiry property of this SecretExpiryRule. :type time_of_absolute_expiry: datetime :param is_secret_content_retrieval_blocked_on_expiry: The value to assign to the is_secret_content_retrieval_blocked_on_expiry property of this SecretExpiryRule. :type is_secret_content_retrieval_blocked_on_expiry: bool ÚstrZdatetimeÚbool)Z rule_typeÚsecret_version_expiry_intervalÚtime_of_absolute_expiryÚ-is_secret_content_retrieval_blocked_on_expiryZruleTypeZsecretVersionExpiryIntervalZtimeOfAbsoluteExpiryZ'isSecretContentRetrievalBlockedOnExpiryNZSECRET_EXPIRY_RULE)Z swagger_typesZ attribute_mapZ _rule_typeÚ_secret_version_expiry_intervalÚ_time_of_absolute_expiryÚ._is_secret_content_retrieval_blocked_on_expiry)ÚselfÚkwargs©rúG/usr/lib/python3.9/site-packages/oci/vault/models/secret_expiry_rule.pyÚ__init__süüzSecretExpiryRule.__init__cCs|jS)aá Gets the secret_version_expiry_interval of this SecretExpiryRule. A property indicating how long the secret contents will be considered valid, expressed in `ISO 8601`__ format. The secret needs to be updated when the secret content expires. The timer resets after you update the secret contents. The minimum value is 1 day and the maximum value is 90 days for this property. Currently, only intervals expressed in days are supported. For example, pass `P3D` to have the secret version expire every 3 days. __ https://en.wikipedia.org/wiki/ISO_8601#Time_intervals :return: The secret_version_expiry_interval of this SecretExpiryRule. :rtype: str ©r©rrrrr >sz/SecretExpiryRule.secret_version_expiry_intervalcCs ||_dS)aþ Sets the secret_version_expiry_interval of this SecretExpiryRule. A property indicating how long the secret contents will be considered valid, expressed in `ISO 8601`__ format. The secret needs to be updated when the secret content expires. The timer resets after you update the secret contents. The minimum value is 1 day and the maximum value is 90 days for this property. Currently, only intervals expressed in days are supported. For example, pass `P3D` to have the secret version expire every 3 days. __ https://en.wikipedia.org/wiki/ISO_8601#Time_intervals :param secret_version_expiry_interval: The secret_version_expiry_interval of this SecretExpiryRule. :type: str Nr)rr rrrr QscCs|jS)a  Gets the time_of_absolute_expiry of this SecretExpiryRule. An optional property indicating the absolute time when this secret will expire, expressed in `RFC 3339`__ timestamp format. The minimum number of days from current time is 1 day and the maximum number of days from current time is 365 days. Example: `2019-04-03T21:10:29.600Z` __ https://tools.ietf.org/html/rfc3339 :return: The time_of_absolute_expiry of this SecretExpiryRule. :rtype: datetime ©rrrrrr dsz(SecretExpiryRule.time_of_absolute_expirycCs ||_dS)a  Sets the time_of_absolute_expiry of this SecretExpiryRule. An optional property indicating the absolute time when this secret will expire, expressed in `RFC 3339`__ timestamp format. The minimum number of days from current time is 1 day and the maximum number of days from current time is 365 days. Example: `2019-04-03T21:10:29.600Z` __ https://tools.ietf.org/html/rfc3339 :param time_of_absolute_expiry: The time_of_absolute_expiry of this SecretExpiryRule. :type: datetime Nr)rr rrrr tscCs|jS)a  Gets the is_secret_content_retrieval_blocked_on_expiry of this SecretExpiryRule. A property indicating whether to block retrieval of the secret content, on expiry. The default is false. If the secret has already expired and you would like to retrieve the secret contents, you need to edit the secret rule to disable this property, to allow reading the secret content. :return: The is_secret_content_retrieval_blocked_on_expiry of this SecretExpiryRule. :rtype: bool ©rrrrrr „s z>SecretExpiryRule.is_secret_content_retrieval_blocked_on_expirycCs ||_dS)a9 Sets the is_secret_content_retrieval_blocked_on_expiry of this SecretExpiryRule. A property indicating whether to block retrieval of the secret content, on expiry. The default is false. If the secret has already expired and you would like to retrieve the secret contents, you need to edit the secret rule to disable this property, to allow reading the secret content. :param is_secret_content_retrieval_blocked_on_expiry: The is_secret_content_retrieval_blocked_on_expiry of this SecretExpiryRule. :type: bool Nr)rr rrrr ’s cCst|ƒS©N)rrrrrÚ__repr__ szSecretExpiryRule.__repr__cCs|dur dS|j|jkS)NF)Ú__dict__©rÚotherrrrÚ__eq__£szSecretExpiryRule.__eq__cCs ||k SrrrrrrÚ__ne__©szSecretExpiryRule.__ne__N) Ú__name__Ú __module__Ú __qualname__Ú__doc__rÚpropertyr Úsetterr r rrr rrrrr s",      rN) Z secret_rulerZoci.utilrrrZoci.decoratorsrrrrrrÚs