#[non_exhaustive]pub struct SecretVersion {
pub name: String,
pub create_time: Option<Timestamp>,
pub destroy_time: Option<Timestamp>,
pub state: State,
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 (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: StringOutput only. The resource name of the
SecretVersion in the format
projects/*/secrets/*/versions/*.
SecretVersion IDs in a 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 was created.
destroy_time: Option<Timestamp>Output only. The time this SecretVersion was destroyed. Only present if state is DESTROYED.
state: StateOutput only. The current state of the SecretVersion.
replication_status: Option<ReplicationStatus>The replication status of the SecretVersion.
etag: StringOutput only. Etag of the currently stored SecretVersion.
client_specified_payload_checksum: boolOutput only. True if payload checksum specified in SecretPayload object has been received by SecretManagerService on 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, version is moved to disabled state and it is scheduled for destruction Version is destroyed only after the scheduled_destroy_time.
customer_managed_encryption: Option<CustomerManagedEncryptionStatus>Output only. The customer-managed encryption status of the SecretVersion. Only populated if customer-managed encryption is used and Secret is a regionalized secret.
Implementations§
Source§impl SecretVersion
impl SecretVersion
Sourcepub fn set_create_time<T: Into<Option<Timestamp>>>(self, v: T) -> Self
pub fn set_create_time<T: Into<Option<Timestamp>>>(self, v: T) -> Self
Sets the value of create_time.
Sourcepub fn set_destroy_time<T: Into<Option<Timestamp>>>(self, v: T) -> Self
pub fn set_destroy_time<T: Into<Option<Timestamp>>>(self, v: T) -> Self
Sets the value of destroy_time.
Sourcepub fn set_replication_status<T: Into<Option<ReplicationStatus>>>(
self,
v: T,
) -> Self
pub fn set_replication_status<T: Into<Option<ReplicationStatus>>>( self, v: T, ) -> Self
Sets the value of replication_status.
Sourcepub fn set_client_specified_payload_checksum<T: Into<bool>>(self, v: T) -> Self
pub fn set_client_specified_payload_checksum<T: Into<bool>>(self, v: T) -> Self
Sets the value of client_specified_payload_checksum.
Sourcepub fn set_scheduled_destroy_time<T: Into<Option<Timestamp>>>(
self,
v: T,
) -> Self
pub fn set_scheduled_destroy_time<T: Into<Option<Timestamp>>>( self, v: T, ) -> Self
Sets the value of scheduled_destroy_time.
Sourcepub fn set_customer_managed_encryption<T: Into<Option<CustomerManagedEncryptionStatus>>>(
self,
v: T,
) -> Self
pub fn set_customer_managed_encryption<T: Into<Option<CustomerManagedEncryptionStatus>>>( self, v: T, ) -> Self
Sets the value of customer_managed_encryption.
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 more