Class: Google::Apis::AlloydbV1alpha::EncryptionInfo

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

Overview

EncryptionInfo describes the encryption information of a cluster or a backup.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ EncryptionInfo

Returns a new instance of EncryptionInfo.



860
861
862
# File 'lib/google/apis/alloydb_v1alpha/classes.rb', line 860

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

Instance Attribute Details

#encryption_typeString

Output only. Type of encryption. Corresponds to the JSON property encryptionType

Returns:

  • (String)


852
853
854
# File 'lib/google/apis/alloydb_v1alpha/classes.rb', line 852

def encryption_type
  @encryption_type
end

#kms_key_versionsArray<String>

Output only. Cloud KMS key versions that are being used to protect the database or the backup. Corresponds to the JSON property kmsKeyVersions

Returns:

  • (Array<String>)


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

def kms_key_versions
  @kms_key_versions
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



865
866
867
868
# File 'lib/google/apis/alloydb_v1alpha/classes.rb', line 865

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