Class: Google::Apis::SecretmanagerV1beta1::SecretVersion

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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ SecretVersion

Returns a new instance of SecretVersion.



809
810
811
# File 'generated/google/apis/secretmanager_v1beta1/classes.rb', line 809

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)


787
788
789
# File 'generated/google/apis/secretmanager_v1beta1/classes.rb', line 787

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)


794
795
796
# File 'generated/google/apis/secretmanager_v1beta1/classes.rb', line 794

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)


802
803
804
# File 'generated/google/apis/secretmanager_v1beta1/classes.rb', line 802

def name
  @name
end

#stateString

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

Returns:

  • (String)


807
808
809
# File 'generated/google/apis/secretmanager_v1beta1/classes.rb', line 807

def state
  @state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



814
815
816
817
818
819
# File 'generated/google/apis/secretmanager_v1beta1/classes.rb', line 814

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