Class: Google::Apis::SecretmanagerV1beta1::Secret
- Inherits:
-
Object
- Object
- Google::Apis::SecretmanagerV1beta1::Secret
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/secretmanager_v1beta1/classes.rb,
lib/google/apis/secretmanager_v1beta1/representations.rb,
lib/google/apis/secretmanager_v1beta1/representations.rb
Overview
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.
Instance Attribute Summary collapse
-
#create_time ⇒ String
Output only.
-
#labels ⇒ Hash<String,String>
The labels assigned to this Secret.
-
#name ⇒ String
Output only.
-
#replication ⇒ Google::Apis::SecretmanagerV1beta1::Replication
A policy that defines the replication configuration of data.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Secret
constructor
A new instance of Secret.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Secret
Returns a new instance of Secret.
676 677 678 |
# File 'lib/google/apis/secretmanager_v1beta1/classes.rb', line 676 def initialize(**args) update!(**args) end |
Instance Attribute Details
#create_time ⇒ String
Output only. The time at which the Secret was created.
Corresponds to the JSON property createTime
653 654 655 |
# File 'lib/google/apis/secretmanager_v1beta1/classes.rb', line 653 def create_time @create_time end |
#labels ⇒ Hash<String,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
Lo0,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`
663 664 665 |
# File 'lib/google/apis/secretmanager_v1beta1/classes.rb', line 663 def labels @labels end |
#name ⇒ String
Output only. The resource name of the Secret in the format projects/*/secrets/
*
.
Corresponds to the JSON property name
669 670 671 |
# File 'lib/google/apis/secretmanager_v1beta1/classes.rb', line 669 def name @name end |
#replication ⇒ Google::Apis::SecretmanagerV1beta1::Replication
A policy that defines the replication configuration of data.
Corresponds to the JSON property replication
674 675 676 |
# File 'lib/google/apis/secretmanager_v1beta1/classes.rb', line 674 def replication @replication end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
681 682 683 684 685 686 |
# File 'lib/google/apis/secretmanager_v1beta1/classes.rb', line 681 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 |