Class: Google::Apis::SecretmanagerV1::SecretVersion

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SecretVersion

Returns a new instance of SecretVersion.



901
902
903
# File 'lib/google/apis/secretmanager_v1/classes.rb', line 901

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#create_timeString

Output only. The time at which the SecretVersion was created. Corresponds to the JSON property createTime

Returns:

  • (String)


876
877
878
# File 'lib/google/apis/secretmanager_v1/classes.rb', line 876

def create_time
  @create_time
end

#destroy_timeString

Output only. The time this SecretVersion was destroyed. Only present if state is DESTROYED. Corresponds to the JSON property destroyTime

Returns:

  • (String)


882
883
884
# File 'lib/google/apis/secretmanager_v1/classes.rb', line 882

def destroy_time
  @destroy_time
end

#nameString

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

Returns:

  • (String)


889
890
891
# File 'lib/google/apis/secretmanager_v1/classes.rb', line 889

def name
  @name
end

#replication_statusGoogle::Apis::SecretmanagerV1::ReplicationStatus

The replication status of a SecretVersion. Corresponds to the JSON property replicationStatus



894
895
896
# File 'lib/google/apis/secretmanager_v1/classes.rb', line 894

def replication_status
  @replication_status
end

#stateString

Output only. The current state of the SecretVersion. Corresponds to the JSON property state

Returns:

  • (String)


899
900
901
# File 'lib/google/apis/secretmanager_v1/classes.rb', line 899

def state
  @state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



906
907
908
909
910
911
912
# File 'lib/google/apis/secretmanager_v1/classes.rb', line 906

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