Class: Google::Apis::NotebooksV1::EncryptionConfig

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

Overview

Represents a custom encryption key configuration that can be applied to a resource. This will encrypt all disks in Virtual Machine.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ EncryptionConfig

Returns a new instance of EncryptionConfig.



433
434
435
# File 'lib/google/apis/notebooks_v1/classes.rb', line 433

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

Instance Attribute Details

#kms_keyString

The Cloud KMS resource identifier of the customer-managed encryption key used to protect a resource, such as a disks. It has the following format: projects/ PROJECT_ID/locations/REGION/keyRings/KEY_RING_NAME/cryptoKeys/KEY_NAME` Corresponds to the JSON propertykmsKey`

Returns:

  • (String)


431
432
433
# File 'lib/google/apis/notebooks_v1/classes.rb', line 431

def kms_key
  @kms_key
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



438
439
440
# File 'lib/google/apis/notebooks_v1/classes.rb', line 438

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