Class: Google::Apis::CloudkmsV1::EkmConnection

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

Overview

An EkmConnection represents an individual EKM connection. It can be used for creating CryptoKeys and CryptoKeyVersions with a ProtectionLevel of EXTERNAL_VPC, as well as performing cryptographic operations using keys created within the EkmConnection.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ EkmConnection

Returns a new instance of EkmConnection.



948
949
950
# File 'lib/google/apis/cloudkms_v1/classes.rb', line 948

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

Instance Attribute Details

#create_timeString

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

Returns:

  • (String)


928
929
930
# File 'lib/google/apis/cloudkms_v1/classes.rb', line 928

def create_time
  @create_time
end

#etagString

Optional. Etag of the currently stored EkmConnection. Corresponds to the JSON property etag

Returns:

  • (String)


933
934
935
# File 'lib/google/apis/cloudkms_v1/classes.rb', line 933

def etag
  @etag
end

#nameString

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

Returns:

  • (String)


939
940
941
# File 'lib/google/apis/cloudkms_v1/classes.rb', line 939

def name
  @name
end

#service_resolversArray<Google::Apis::CloudkmsV1::ServiceResolver>

A list of ServiceResolvers where the EKM can be reached. There should be one ServiceResolver per EKM replica. Currently, only a single ServiceResolver is supported. Corresponds to the JSON property serviceResolvers



946
947
948
# File 'lib/google/apis/cloudkms_v1/classes.rb', line 946

def service_resolvers
  @service_resolvers
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



953
954
955
956
957
958
# File 'lib/google/apis/cloudkms_v1/classes.rb', line 953

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