Reference documentation and code samples for the Secret Manager V1beta1 API class Google::Cloud::SecretManager::V1beta1::SecretVersion.
A secret version resource in the Secret Manager API.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#create_time
def create_time() -> ::Google::Protobuf::Timestamp
Returns
- (::Google::Protobuf::Timestamp) — Output only. The time at which the SecretVersion was created.
#destroy_time
def destroy_time() -> ::Google::Protobuf::Timestamp
Returns
- (::Google::Protobuf::Timestamp) — Output only. The time this SecretVersion was destroyed. Only present if state is DESTROYED.
#name
def name() -> ::String
Returns
-
(::String) — Output 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.
#state
def state() -> ::Google::Cloud::SecretManager::V1beta1::SecretVersion::State
Returns
- (::Google::Cloud::SecretManager::V1beta1::SecretVersion::State) — Output only. The current state of the SecretVersion.