Class: Google::Apis::TpuV2::CustomerEncryptionKey

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

Overview

Defines the customer encryption key for disk encryption.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CustomerEncryptionKey

Returns a new instance of CustomerEncryptionKey.



198
199
200
# File 'lib/google/apis/tpu_v2/classes.rb', line 198

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

Instance Attribute Details

#kms_key_nameString

The name of the encryption key that is stored in Google Cloud KMS. For example: "kmsKeyName": "projects/KMS_PROJECT_ID/locations/REGION/keyRings/KEY_REGION/ cryptoKeys/KEY The fully-qualifed key name may be returned for resource GET requests. For example: "kmsKeyName": "projects/KMS_PROJECT_ID/locations/REGION/ keyRings/KEY_REGION/cryptoKeys/KEY/cryptoKeyVersions/1 Corresponds to the JSON property kmsKeyName

Returns:

  • (String)


196
197
198
# File 'lib/google/apis/tpu_v2/classes.rb', line 196

def kms_key_name
  @kms_key_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



203
204
205
# File 'lib/google/apis/tpu_v2/classes.rb', line 203

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