Class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1EncryptionSpec

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

Overview

Represents a customer-managed encryption key spec that can be applied to a top- level resource.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAiplatformV1EncryptionSpec

Returns a new instance of GoogleCloudAiplatformV1EncryptionSpec.



5809
5810
5811
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 5809

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

Instance Attribute Details

#kms_key_nameString

Required. The Cloud KMS resource identifier of the customer managed encryption key used to protect a resource. Has the form: projects/my-project/locations/ my-region/keyRings/my-kr/cryptoKeys/my-key. The key needs to be in the same region as where the compute resource is created. Corresponds to the JSON property kmsKeyName

Returns:

  • (String)


5807
5808
5809
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 5807

def kms_key_name
  @kms_key_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5814
5815
5816
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 5814

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