Enum googapis::google::cloud::secretmanager::v1::secret::Expiration [−][src]
Expand description
Expiration policy attached to the [Secret][google.cloud.secretmanager.v1.Secret]. If specified the [Secret][google.cloud.secretmanager.v1.Secret] and all [SecretVersions][google.cloud.secretmanager.v1.SecretVersion] will be automatically deleted at expiration. Expired secrets are irreversibly deleted.
Expiration is not the recommended way to set time-based permissions. IAM Conditions is recommended for granting time-based permissions because the operation can be reversed.
Variants
ExpireTime(Timestamp)
Optional. Timestamp in UTC when the [Secret][google.cloud.secretmanager.v1.Secret] is scheduled to expire. This is always provided on output, regardless of what was sent on input.
Tuple Fields of ExpireTime
0: Timestamp
Ttl(Duration)
Input only. The TTL for the [Secret][google.cloud.secretmanager.v1.Secret].
Tuple Fields of Ttl
0: Duration
Implementations
pub fn merge<B>(
field: &mut Option<Expiration>,
tag: u32,
wire_type: WireType,
buf: &mut B,
ctx: DecodeContext
) -> Result<(), DecodeError> where
B: Buf,
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for Expiration
impl Send for Expiration
impl Sync for Expiration
impl Unpin for Expiration
impl UnwindSafe for Expiration
Blanket Implementations
Mutably borrows from an owned value. Read more
Wrap the input message T
in a tonic::Request
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more