Class: Google::Apis::MlV1::GoogleCloudMlV1EncryptionConfig

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

Overview

Represents a custom encryption key configuration that can be applied to a resource.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ GoogleCloudMlV1EncryptionConfig

Returns a new instance of GoogleCloudMlV1EncryptionConfig.



844
845
846
# File 'generated/google/apis/ml_v1/classes.rb', line 844

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

Instance Attribute Details

#kms_key_nameString

The Cloud KMS resource identifier of the customer managed encryption key used to protect a resource, such as a training job. Has the form: projects/my-project/locations/my-region/keyRings/my-kr/cryptoKeys/my-key. Corresponds to the JSON property kmsKeyName

Returns:

  • (String)


842
843
844
# File 'generated/google/apis/ml_v1/classes.rb', line 842

def kms_key_name
  @kms_key_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



849
850
851
# File 'generated/google/apis/ml_v1/classes.rb', line 849

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