Class: Google::Apis::MlV1::GoogleCloudMlV1EncryptionConfig
- Inherits:
-
Object
- Object
- Google::Apis::MlV1::GoogleCloudMlV1EncryptionConfig
- 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
-
#kms_key_name ⇒ String
The Cloud KMS resource identifier of the customer-managed encryption key used to protect a resource, such as a training job.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudMlV1EncryptionConfig
constructor
A new instance of GoogleCloudMlV1EncryptionConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudMlV1EncryptionConfig
Returns a new instance of GoogleCloudMlV1EncryptionConfig.
1004 1005 1006 |
# File 'generated/google/apis/ml_v1/classes.rb', line 1004 def initialize(**args) update!(**args) end |
Instance Attribute Details
#kms_key_name ⇒ String
The Cloud KMS resource identifier of the customer-managed encryption key used
to protect a resource, such as a training job. It has the following format:
projects/
PROJECT_ID/locations/
REGION/keyRings/
KEY_RING_NAME/cryptoKeys/
KEY_NAME`
Corresponds to the JSON property
kmsKeyName`
1002 1003 1004 |
# File 'generated/google/apis/ml_v1/classes.rb', line 1002 def kms_key_name @kms_key_name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1009 1010 1011 |
# File 'generated/google/apis/ml_v1/classes.rb', line 1009 def update!(**args) @kms_key_name = args[:kms_key_name] if args.key?(:kms_key_name) end |