Class: Google::Apis::SpannerV1::EncryptionInfo

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

Overview

Encryption information for a Cloud Spanner database or backup.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ EncryptionInfo

Returns a new instance of EncryptionInfo.



2458
2459
2460
# File 'lib/google/apis/spanner_v1/classes.rb', line 2458

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

Instance Attribute Details

#encryption_statusGoogle::Apis::SpannerV1::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



2445
2446
2447
# File 'lib/google/apis/spanner_v1/classes.rb', line 2445

def encryption_status
  @encryption_status
end

#encryption_typeString

Output only. The type of encryption. Corresponds to the JSON property encryptionType

Returns:

  • (String)


2450
2451
2452
# File 'lib/google/apis/spanner_v1/classes.rb', line 2450

def encryption_type
  @encryption_type
end

#kms_key_versionString

Output only. A Cloud KMS key version that is being used to protect the database or backup. Corresponds to the JSON property kmsKeyVersion

Returns:

  • (String)


2456
2457
2458
# File 'lib/google/apis/spanner_v1/classes.rb', line 2456

def kms_key_version
  @kms_key_version
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2463
2464
2465
2466
2467
# File 'lib/google/apis/spanner_v1/classes.rb', line 2463

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