class Google::Apis::SecretmanagerV1beta1::Secret
A Secret
is a logical secret whose value and versions can be accessed. A Secret
is made up of zero or more SecretVersions that represent the secret data.
Attributes
Output only. The time at which the Secret
was created. Corresponds to the JSON property `createTime` @return [String]
The labels assigned to this Secret
. Label keys must be between 1 and 63 characters long, have a UTF-8 encoding of maximum 128 bytes, and must conform to the following PCRE regular expression: `p`Ll`p`Lo“0,62“ Label values must be between 0 and 63 characters long, have a UTF-8 encoding of maximum 128 bytes, and must conform to the following PCRE regular expression: `[p`Ll`p` Lo`p`N`_-]`0,63“ No more than 64 labels can be assigned to a given resource. Corresponds to the JSON property `labels` @return [Hash<String,String>]
Output only. The resource name of the Secret
in the format `projects/*/secrets/ *`. Corresponds to the JSON property `name` @return [String]
A policy that defines the replication configuration of data. Corresponds to the JSON property `replication` @return [Google::Apis::SecretmanagerV1beta1::Replication]
Public Class Methods
# File lib/google/apis/secretmanager_v1beta1/classes.rb, line 642 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/secretmanager_v1beta1/classes.rb, line 647 def update!(**args) @create_time = args[:create_time] if args.key?(:create_time) @labels = args[:labels] if args.key?(:labels) @name = args[:name] if args.key?(:name) @replication = args[:replication] if args.key?(:replication) end