Struct google_api_proto::google::cloud::secretmanager::v1::SecretVersion
source · pub struct SecretVersion {
pub name: String,
pub create_time: Option<Timestamp>,
pub destroy_time: Option<Timestamp>,
pub state: i32,
pub replication_status: Option<ReplicationStatus>,
pub etag: String,
pub client_specified_payload_checksum: bool,
pub scheduled_destroy_time: Option<Timestamp>,
pub customer_managed_encryption: Option<CustomerManagedEncryptionStatus>,
}
Expand description
A secret version resource in the Secret Manager API.
Fields§
§name: String
Output only. The resource name of the
[SecretVersion][google.cloud.secretmanager.v1.SecretVersion] in the format
projects/*/secrets/*/versions/*
.
[SecretVersion][google.cloud.secretmanager.v1.SecretVersion] IDs in a [Secret][google.cloud.secretmanager.v1.Secret] start at 1 and are incremented for each subsequent version of the secret.
create_time: Option<Timestamp>
Output only. The time at which the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] was created.
destroy_time: Option<Timestamp>
Output only. The time this [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] was destroyed. Only present if [state][google.cloud.secretmanager.v1.SecretVersion.state] is [DESTROYED][google.cloud.secretmanager.v1.SecretVersion.State.DESTROYED].
state: i32
Output only. The current state of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
replication_status: Option<ReplicationStatus>
The replication status of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
etag: String
Output only. Etag of the currently stored [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
client_specified_payload_checksum: bool
Output only. True if payload checksum specified in [SecretPayload][google.cloud.secretmanager.v1.SecretPayload] object has been received by [SecretManagerService][google.cloud.secretmanager.v1.SecretManagerService] on [SecretManagerService.AddSecretVersion][google.cloud.secretmanager.v1.SecretManagerService.AddSecretVersion].
scheduled_destroy_time: Option<Timestamp>
Optional. Output only. Scheduled destroy time for secret version.
This is a part of the Delayed secret version destroy feature. For a
Secret with a valid version destroy TTL, when a secert version is
destroyed, the version is moved to disabled state and it is scheduled for
destruction. The version is destroyed only after the
scheduled_destroy_time
.
customer_managed_encryption: Option<CustomerManagedEncryptionStatus>
Output only. The customer-managed encryption status of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. Only populated if customer-managed encryption is used and [Secret][google.cloud.secretmanager.v1.Secret] is a Regionalised Secret.
Implementations§
Trait Implementations§
source§impl Clone for SecretVersion
impl Clone for SecretVersion
source§fn clone(&self) -> SecretVersion
fn clone(&self) -> SecretVersion
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SecretVersion
impl Debug for SecretVersion
source§impl Default for SecretVersion
impl Default for SecretVersion
source§impl Message for SecretVersion
impl Message for SecretVersion
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for SecretVersion
impl PartialEq for SecretVersion
source§fn eq(&self, other: &SecretVersion) -> bool
fn eq(&self, other: &SecretVersion) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for SecretVersion
Auto Trait Implementations§
impl Freeze for SecretVersion
impl RefUnwindSafe for SecretVersion
impl Send for SecretVersion
impl Sync for SecretVersion
impl Unpin for SecretVersion
impl UnwindSafe for SecretVersion
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request