Class: Google::Cloud::Bigtable::EncryptionInfo
- Inherits:
-
Object
- Object
- Google::Cloud::Bigtable::EncryptionInfo
- Defined in:
- lib/google/cloud/bigtable/encryption_info.rb
Overview
EncryptionInfo
Encryption information for a given resource.
See Backup#encryption_info and Table::ClusterState#encryption_infos.
Instance Method Summary collapse
-
#encryption_status ⇒ Google::Cloud::Bigtable::Status?
The status of encrypt/decrypt calls on underlying data for the resource.
-
#encryption_type ⇒ Symbol
The type of encryption used to protect the resource.
-
#kms_key_version ⇒ String?
The version of the Cloud KMS key specified in the parent cluster that is in use for the data underlying the table.
Instance Method Details
#encryption_status ⇒ Google::Cloud::Bigtable::Status?
The status of encrypt/decrypt calls on underlying data for the resource. Regardless of status, the existing data is always encrypted at rest.
See also #encryption_type, #kms_key_version and Instance::ClusterMap#add.
89 90 91 92 |
# File 'lib/google/cloud/bigtable/encryption_info.rb', line 89 def encryption_status status_grpc = @grpc.encryption_status Status.from_grpc status_grpc if status_grpc end |
#encryption_type ⇒ Symbol
The type of encryption used to protect the resource. Possible values:
ENCRYPTION_TYPE_UNSPECIFIED
- Encryption type was not specified, though data at rest remains encrypted.GOOGLE_DEFAULT_ENCRYPTION
- The data backing the resource is encrypted at rest with a key that is fully managed by Google. No key version or status will be populated. This is the default state.CUSTOMER_MANAGED_ENCRYPTION
- The data backing the resource is encrypted at rest with a key that is managed by the customer. The in-use version of the key and its status are populated for CMEK-protected tables. CMEK-protected backups are pinned to the key version that was in use at the time the backup was taken. This key version is populated but its status is not tracked and is reported asUNKNOWN
.
See also #encryption_status, #kms_key_version and Instance::ClusterMap#add.
77 78 79 |
# File 'lib/google/cloud/bigtable/encryption_info.rb', line 77 def encryption_type @grpc.encryption_type end |
#kms_key_version ⇒ String?
The version of the Cloud KMS key specified in the parent cluster that is in use for the data underlying the table.
See also #encryption_type, #encryption_status and Instance::ClusterMap#add.
102 103 104 |
# File 'lib/google/cloud/bigtable/encryption_info.rb', line 102 def kms_key_version @grpc.kms_key_version unless @grpc.kms_key_version.empty? end |