Class: Google::Apis::TpuV2::CustomerEncryptionKey
- Inherits:
-
Object
- Object
- Google::Apis::TpuV2::CustomerEncryptionKey
- 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
-
#kms_key_name ⇒ String
The name of the encryption key that is stored in Google Cloud KMS.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CustomerEncryptionKey
constructor
A new instance of CustomerEncryptionKey.
-
#update!(**args) ⇒ Object
Update properties of this object.
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_name ⇒ String
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
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 |