Class: Google::Apis::VmwareengineV1::EncryptionConfig

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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_nameString

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`

Returns:

  • (String)


858
859
860
# File 'lib/google/apis/vmwareengine_v1/classes.rb', line 858

def crypto_key_name
  @crypto_key_name
end

#typeString

Required. The encryption type of the private cloud. Corresponds to the JSON property type

Returns:

  • (String)


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