Class: Google::Apis::VmwareengineV1::EncryptionConfig
- Inherits:
-
Object
- Object
- Google::Apis::VmwareengineV1::EncryptionConfig
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/vmwareengine_v1/classes.rb,
lib/google/apis/vmwareengine_v1/representations.rb,
lib/google/apis/vmwareengine_v1/representations.rb
Overview
Encryption configuration for a private cloud.
Instance Attribute Summary collapse
-
#crypto_key_name ⇒ String
Optional.
-
#type ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ EncryptionConfig
constructor
A new instance of EncryptionConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ EncryptionConfig
Returns a new instance of EncryptionConfig.
865 866 867 |
# File 'lib/google/apis/vmwareengine_v1/classes.rb', line 865 def initialize(**args) update!(**args) end |
Instance Attribute Details
#crypto_key_name ⇒ String
Optional. The resource name of the Cloud KMS key to be used for CMEK
encryption. The format of this field is projects/project/locations/
location/keyRings/key_ring/cryptoKeys/crypto_key`. The key must be in the
same region as the private cloud. This key is used for wrapping the key-
encrypting key of vSAN clusters. This field must be provided whentypeis
CMEKorLEGACY_CMEK, and must not be set whentypeisOTHER.
Corresponds to the JSON propertycryptoKeyName`
858 859 860 |
# File 'lib/google/apis/vmwareengine_v1/classes.rb', line 858 def crypto_key_name @crypto_key_name end |
#type ⇒ String
Required. The encryption type of the private cloud.
Corresponds to the JSON property type
863 864 865 |
# File 'lib/google/apis/vmwareengine_v1/classes.rb', line 863 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
870 871 872 873 |
# File 'lib/google/apis/vmwareengine_v1/classes.rb', line 870 def update!(**args) @crypto_key_name = args[:crypto_key_name] if args.key?(:crypto_key_name) @type = args[:type] if args.key?(:type) end |