Class: Google::Apis::SecretmanagerV1beta1::SecretVersion
- Inherits:
-
Object
- Object
- Google::Apis::SecretmanagerV1beta1::SecretVersion
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/secretmanager_v1beta1/classes.rb,
generated/google/apis/secretmanager_v1beta1/representations.rb,
generated/google/apis/secretmanager_v1beta1/representations.rb
Overview
A secret version resource in the Secret Manager API.
Instance Attribute Summary collapse
-
#create_time ⇒ String
Output only.
-
#destroy_time ⇒ String
Output only.
-
#name ⇒ String
Output only.
-
#state ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SecretVersion
constructor
A new instance of SecretVersion.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ SecretVersion
Returns a new instance of SecretVersion.
703 704 705 |
# File 'generated/google/apis/secretmanager_v1beta1/classes.rb', line 703 def initialize(**args) update!(**args) end |
Instance Attribute Details
#create_time ⇒ String
Output only. The time at which the SecretVersion was created.
Corresponds to the JSON property createTime
683 684 685 |
# File 'generated/google/apis/secretmanager_v1beta1/classes.rb', line 683 def create_time @create_time end |
#destroy_time ⇒ String
Output only. The time this SecretVersion was destroyed. Only present if state
is DESTROYED.
Corresponds to the JSON property destroyTime
689 690 691 |
# File 'generated/google/apis/secretmanager_v1beta1/classes.rb', line 689 def destroy_time @destroy_time end |
#name ⇒ 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.
Corresponds to the JSON property name
696 697 698 |
# File 'generated/google/apis/secretmanager_v1beta1/classes.rb', line 696 def name @name end |
#state ⇒ String
Output only. The current state of the SecretVersion.
Corresponds to the JSON property state
701 702 703 |
# File 'generated/google/apis/secretmanager_v1beta1/classes.rb', line 701 def state @state end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
708 709 710 711 712 713 |
# File 'generated/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 |