class Google::Apis::SecretmanagerV1beta1::SecretVersion
A secret version resource in the Secret
Manager API.
Attributes
create_time[RW]
Output only. The time at which the SecretVersion
was created. Corresponds to the JSON property `createTime` @return [String]
destroy_time[RW]
Output only. The time this SecretVersion
was destroyed. Only present if state is DESTROYED. Corresponds to the JSON property `destroyTime` @return [String]
name[RW]
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. Corresponds to the JSON property `name` @return [String]
state[RW]
Output only. The current state of the SecretVersion
. Corresponds to the JSON property `state` @return [String]
Public Class Methods
new(**args)
click to toggle source
# File lib/google/apis/secretmanager_v1beta1/classes.rb, line 703 def initialize(**args) update!(**args) end
Public Instance Methods
update!(**args)
click to toggle source
Update properties of this object
# File lib/google/apis/secretmanager_v1beta1/classes.rb, line 708 def update!(**args) @create_time = args[:create_time] if args.key?(:create_time) @destroy_time = args[:destroy_time] if args.key?(:destroy_time) @name = args[:name] if args.key?(:name) @state = args[:state] if args.key?(:state) end