Class: Google::Apis::WorkstationsV1beta::CustomerEncryptionKey

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

Overview

A customer-specified encryption key for the Compute Engine resources of this workstation configuration.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CustomerEncryptionKey

Returns a new instance of CustomerEncryptionKey.



254
255
256
# File 'lib/google/apis/workstations_v1beta/classes.rb', line 254

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

Instance Attribute Details

#kms_keyString

The name of the encryption key that is stored in Google Cloud KMS, for example, projects/PROJECT_ID/locations/REGION/keyRings/KEY_RING/cryptoKeys/KEY_NAME. Corresponds to the JSON property kmsKey

Returns:

  • (String)


244
245
246
# File 'lib/google/apis/workstations_v1beta/classes.rb', line 244

def kms_key
  @kms_key
end

#kms_key_service_accountString

The service account being used for the encryption request for the given KMS key. If absent, the Compute Engine default service account is used. However, it is recommended to use a separate service account and to follow KMS best practices mentioned at https://cloud.google.com/kms/docs/separation-of-duties Corresponds to the JSON property kmsKeyServiceAccount

Returns:

  • (String)


252
253
254
# File 'lib/google/apis/workstations_v1beta/classes.rb', line 252

def 
  @kms_key_service_account
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



259
260
261
262
# File 'lib/google/apis/workstations_v1beta/classes.rb', line 259

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