Class: Google::Apis::BigtableadminV2::EncryptionInfo

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

Overview

Encryption information for a given resource. If this resource is protected with customer managed encryption, the in-use Cloud Key Management Service ( Cloud KMS) key version is specified along with its status.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ EncryptionInfo

Returns a new instance of EncryptionInfo.



1091
1092
1093
# File 'lib/google/apis/bigtableadmin_v2/classes.rb', line 1091

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

Instance Attribute Details

#encryption_statusGoogle::Apis::BigtableadminV2::Status

The Status type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by gRPC. Each Status message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the API Design Guide. Corresponds to the JSON property encryptionStatus



1078
1079
1080
# File 'lib/google/apis/bigtableadmin_v2/classes.rb', line 1078

def encryption_status
  @encryption_status
end

#encryption_typeString

Output only. The type of encryption used to protect this resource. Corresponds to the JSON property encryptionType

Returns:

  • (String)


1083
1084
1085
# File 'lib/google/apis/bigtableadmin_v2/classes.rb', line 1083

def encryption_type
  @encryption_type
end

#kms_key_versionString

Output only. The version of the Cloud KMS key specified in the parent cluster that is in use for the data underlying this table. Corresponds to the JSON property kmsKeyVersion

Returns:

  • (String)


1089
1090
1091
# File 'lib/google/apis/bigtableadmin_v2/classes.rb', line 1089

def kms_key_version
  @kms_key_version
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1096
1097
1098
1099
1100
# File 'lib/google/apis/bigtableadmin_v2/classes.rb', line 1096

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