Class: Google::Apis::CloudtasksV2beta3::CmekConfig

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

Overview

CMEK, or Customer Managed Encryption Keys, enables GCP products to put control over encryption and key management in their customer’s hands.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CmekConfig

Returns a new instance of CmekConfig.



437
438
439
# File 'lib/google/apis/cloudtasks_v2beta3/classes.rb', line 437

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

Instance Attribute Details

#kms_keyString

Resource name of the Cloud KMS key, of the form projects/PROJECT_ID/locations/ LOCATION_ID/keyRings/KEY_RING_ID/cryptoKeys/KEY_ID, that will be used to encrypt the Queues & Tasks in the region. Setting this as blank will turn off CMEK encryption. Corresponds to the JSON property kmsKey

Returns:

  • (String)


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

def kms_key
  @kms_key
end

#nameString

Output only. The config resource name which includes the project and location and must end in 'cmekConfig', in the format projects/PROJECT_ID/locations/ LOCATION_ID/cmekConfig Corresponds to the JSON propertyname`

Returns:

  • (String)


435
436
437
# File 'lib/google/apis/cloudtasks_v2beta3/classes.rb', line 435

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



442
443
444
445
# File 'lib/google/apis/cloudtasks_v2beta3/classes.rb', line 442

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