Class: Google::Apis::CloudtasksV2beta2::CmekConfig
- Inherits:
-
Object
- Object
- Google::Apis::CloudtasksV2beta2::CmekConfig
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/cloudtasks_v2beta2/classes.rb,
lib/google/apis/cloudtasks_v2beta2/representations.rb,
lib/google/apis/cloudtasks_v2beta2/representations.rb
Overview
Describes the customer-managed encryption key (CMEK) configuration associated with a project and location.
Instance Attribute Summary collapse
-
#kms_key ⇒ String
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. -
#name ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CmekConfig
constructor
A new instance of CmekConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ CmekConfig
Returns a new instance of CmekConfig.
535 536 537 |
# File 'lib/google/apis/cloudtasks_v2beta2/classes.rb', line 535 def initialize(**args) update!(**args) end |
Instance Attribute Details
#kms_key ⇒ String
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
526 527 528 |
# File 'lib/google/apis/cloudtasks_v2beta2/classes.rb', line 526 def kms_key @kms_key end |
#name ⇒ String
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 property
name`
533 534 535 |
# File 'lib/google/apis/cloudtasks_v2beta2/classes.rb', line 533 def name @name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
540 541 542 543 |
# File 'lib/google/apis/cloudtasks_v2beta2/classes.rb', line 540 def update!(**args) @kms_key = args[:kms_key] if args.key?(:kms_key) @name = args[:name] if args.key?(:name) end |