Class: Google::Apis::SecretmanagerV1::SecretVersion
- Inherits:
-
Object
- Object
- Google::Apis::SecretmanagerV1::SecretVersion
- 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 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.
-
#replication_status ⇒ Google::Apis::SecretmanagerV1::ReplicationStatus
The replication status of a SecretVersion.
-
#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.
861 862 863 |
# File 'lib/google/apis/secretmanager_v1/classes.rb', line 861 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
836 837 838 |
# File 'lib/google/apis/secretmanager_v1/classes.rb', line 836 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
842 843 844 |
# File 'lib/google/apis/secretmanager_v1/classes.rb', line 842 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
849 850 851 |
# File 'lib/google/apis/secretmanager_v1/classes.rb', line 849 def name @name end |
#replication_status ⇒ Google::Apis::SecretmanagerV1::ReplicationStatus
The replication status of a SecretVersion.
Corresponds to the JSON property replicationStatus
854 855 856 |
# File 'lib/google/apis/secretmanager_v1/classes.rb', line 854 def replication_status @replication_status end |
#state ⇒ String
Output only. The current state of the SecretVersion.
Corresponds to the JSON property state
859 860 861 |
# File 'lib/google/apis/secretmanager_v1/classes.rb', line 859 def state @state end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
866 867 868 869 870 871 872 |
# File 'lib/google/apis/secretmanager_v1/classes.rb', line 866 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) @replication_status = args[:replication_status] if args.key?(:replication_status) @state = args[:state] if args.key?(:state) end |