Class: Google::Apis::IntegrationsV1::EnterpriseCrmEventbusProtoCloudKmsConfig

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ EnterpriseCrmEventbusProtoCloudKmsConfig

Returns a new instance of EnterpriseCrmEventbusProtoCloudKmsConfig.



449
450
451
# File 'lib/google/apis/integrations_v1/classes.rb', line 449

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

Instance Attribute Details

#gcp_project_idString

Optional. The id of GCP project where the KMS key is stored. If not provided, assume the key is stored in the same GCP project defined in Client (tag 14). Corresponds to the JSON property gcpProjectId

Returns:

  • (String)


413
414
415
# File 'lib/google/apis/integrations_v1/classes.rb', line 413

def gcp_project_id
  @gcp_project_id
end

#key_nameString

A Cloud KMS key is a named object containing one or more key versions, along with metadata for the key. A key exists on exactly one key ring tied to a specific location. Corresponds to the JSON property keyName

Returns:

  • (String)


420
421
422
# File 'lib/google/apis/integrations_v1/classes.rb', line 420

def key_name
  @key_name
end

#key_ring_nameString

A key ring organizes keys in a specific Google Cloud location and allows you to manage access control on groups of keys. A key ring's name does not need to be unique across a Google Cloud project, but must be unique within a given location. Corresponds to the JSON property keyRingName

Returns:

  • (String)


428
429
430
# File 'lib/google/apis/integrations_v1/classes.rb', line 428

def key_ring_name
  @key_ring_name
end

#key_version_nameString

Optional. Each version of a key contains key material used for encryption or signing. A key's version is represented by an integer, starting at 1. To decrypt data or verify a signature, you must use the same key version that was used to encrypt or sign the data. Corresponds to the JSON property keyVersionName

Returns:

  • (String)


436
437
438
# File 'lib/google/apis/integrations_v1/classes.rb', line 436

def key_version_name
  @key_version_name
end

#location_nameString

Location name of the key ring, e.g. "us-west1". Corresponds to the JSON property locationName

Returns:

  • (String)


441
442
443
# File 'lib/google/apis/integrations_v1/classes.rb', line 441

def location_name
  @location_name
end

#service_accountString

Optional. The service account used for authentication of this KMS key. If this is not provided, the service account in Client.clientSource will be used. Corresponds to the JSON property serviceAccount

Returns:

  • (String)


447
448
449
# File 'lib/google/apis/integrations_v1/classes.rb', line 447

def 
  @service_account
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



454
455
456
457
458
459
460
461
# File 'lib/google/apis/integrations_v1/classes.rb', line 454

def update!(**args)
  @gcp_project_id = args[:gcp_project_id] if args.key?(:gcp_project_id)
  @key_name = args[:key_name] if args.key?(:key_name)
  @key_ring_name = args[:key_ring_name] if args.key?(:key_ring_name)
  @key_version_name = args[:key_version_name] if args.key?(:key_version_name)
  @location_name = args[:location_name] if args.key?(:location_name)
  @service_account = args[:service_account] if args.key?(:service_account)
end