Class: Google::Apis::SecretmanagerV1::Secret
- Inherits:
-
Object
- Object
- Google::Apis::SecretmanagerV1::Secret
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/secretmanager_v1/classes.rb,
lib/google/apis/secretmanager_v1/representations.rb,
lib/google/apis/secretmanager_v1/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.
-
#etag ⇒ String
Optional.
-
#expire_time ⇒ String
Optional.
-
#labels ⇒ Hash<String,String>
The labels assigned to this Secret.
-
#name ⇒ String
Output only.
-
#replication ⇒ Google::Apis::SecretmanagerV1::Replication
A policy that defines the replication and encryption configuration of data.
-
#rotation ⇒ Google::Apis::SecretmanagerV1::Rotation
The rotation time and period for a Secret.
-
#topics ⇒ Array<Google::Apis::SecretmanagerV1::Topic>
Optional.
-
#ttl ⇒ String
Input only.
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.
866 867 868 |
# File 'lib/google/apis/secretmanager_v1/classes.rb', line 866 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
814 815 816 |
# File 'lib/google/apis/secretmanager_v1/classes.rb', line 814 def create_time @create_time end |
#etag ⇒ String
Optional. Etag of the currently stored Secret.
Corresponds to the JSON property etag
819 820 821 |
# File 'lib/google/apis/secretmanager_v1/classes.rb', line 819 def etag @etag end |
#expire_time ⇒ String
Optional. Timestamp in UTC when the Secret is scheduled to expire. This is
always provided on output, regardless of what was sent on input.
Corresponds to the JSON property expireTime
825 826 827 |
# File 'lib/google/apis/secretmanager_v1/classes.rb', line 825 def expire_time @expire_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: \pLl\pLo0,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: [\pLl\p
Lo\pN_-]0,63`No more than 64 labels can be assigned to a given resource.
Corresponds to the JSON propertylabels`
835 836 837 |
# File 'lib/google/apis/secretmanager_v1/classes.rb', line 835 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
841 842 843 |
# File 'lib/google/apis/secretmanager_v1/classes.rb', line 841 def name @name end |
#replication ⇒ Google::Apis::SecretmanagerV1::Replication
A policy that defines the replication and encryption configuration of data.
Corresponds to the JSON property replication
846 847 848 |
# File 'lib/google/apis/secretmanager_v1/classes.rb', line 846 def replication @replication end |
#rotation ⇒ Google::Apis::SecretmanagerV1::Rotation
The rotation time and period for a Secret. At next_rotation_time, Secret
Manager will send a Pub/Sub notification to the topics configured on the
Secret. Secret.topics must be set to configure rotation.
Corresponds to the JSON property rotation
853 854 855 |
# File 'lib/google/apis/secretmanager_v1/classes.rb', line 853 def rotation @rotation end |
#topics ⇒ Array<Google::Apis::SecretmanagerV1::Topic>
Optional. A list of up to 10 Pub/Sub topics to which messages are published
when control plane operations are called on the secret or its versions.
Corresponds to the JSON property topics
859 860 861 |
# File 'lib/google/apis/secretmanager_v1/classes.rb', line 859 def topics @topics end |
#ttl ⇒ String
Input only. The TTL for the Secret.
Corresponds to the JSON property ttl
864 865 866 |
# File 'lib/google/apis/secretmanager_v1/classes.rb', line 864 def ttl @ttl end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
871 872 873 874 875 876 877 878 879 880 881 |
# File 'lib/google/apis/secretmanager_v1/classes.rb', line 871 def update!(**args) @create_time = args[:create_time] if args.key?(:create_time) @etag = args[:etag] if args.key?(:etag) @expire_time = args[:expire_time] if args.key?(:expire_time) @labels = args[:labels] if args.key?(:labels) @name = args[:name] if args.key?(:name) @replication = args[:replication] if args.key?(:replication) @rotation = args[:rotation] if args.key?(:rotation) @topics = args[:topics] if args.key?(:topics) @ttl = args[:ttl] if args.key?(:ttl) end |