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.



1383
1384
1385
# File 'lib/google/apis/cloudkms_v1/classes.rb', line 1383

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)


1351
1352
1353
# File 'lib/google/apis/cloudkms_v1/classes.rb', line 1351

def create_time
  @create_time
end

#crypto_space_pathString

Optional. Identifies the EKM Crypto Space that this EkmConnection maps to. Note: This field is required if KeyManagementMode is CLOUD_KMS. Corresponds to the JSON property cryptoSpacePath

Returns:

  • (String)


1357
1358
1359
# File 'lib/google/apis/cloudkms_v1/classes.rb', line 1357

def crypto_space_path
  @crypto_space_path
end

#etagString

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

Returns:

  • (String)


1362
1363
1364
# File 'lib/google/apis/cloudkms_v1/classes.rb', line 1362

def etag
  @etag
end

#key_management_modeString

Optional. Describes who can perform control plane operations on the EKM. If unset, this defaults to MANUAL. Corresponds to the JSON property keyManagementMode

Returns:

  • (String)


1368
1369
1370
# File 'lib/google/apis/cloudkms_v1/classes.rb', line 1368

def key_management_mode
  @key_management_mode
end

#nameString

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

Returns:

  • (String)


1374
1375
1376
# File 'lib/google/apis/cloudkms_v1/classes.rb', line 1374

def name
  @name
end

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

Optional. 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



1381
1382
1383
# File 'lib/google/apis/cloudkms_v1/classes.rb', line 1381

def service_resolvers
  @service_resolvers
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1388
1389
1390
1391
1392
1393
1394
1395
# File 'lib/google/apis/cloudkms_v1/classes.rb', line 1388

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