Class: Google::Apis::CloudkmsV1::KeyRing

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/cloudkms_v1/classes.rb,
generated/google/apis/cloudkms_v1/representations.rb,
generated/google/apis/cloudkms_v1/representations.rb

Overview

A KeyRing is a toplevel logical grouping of CryptoKeys.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ KeyRing

Returns a new instance of KeyRing.


996
997
998
# File 'generated/google/apis/cloudkms_v1/classes.rb', line 996

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

Instance Attribute Details

#create_timeString

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

Returns:

  • (String)

988
989
990
# File 'generated/google/apis/cloudkms_v1/classes.rb', line 988

def create_time
  @create_time
end

#nameString

Output only. The resource name for the KeyRing in the format projects/*/locations/*/keyRings/*. Corresponds to the JSON property name

Returns:

  • (String)

994
995
996
# File 'generated/google/apis/cloudkms_v1/classes.rb', line 994

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


1001
1002
1003
1004
# File 'generated/google/apis/cloudkms_v1/classes.rb', line 1001

def update!(**args)
  @create_time = args[:create_time] if args.key?(:create_time)
  @name = args[:name] if args.key?(:name)
end