Class: Google::Apis::FirestoreV1::GoogleFirestoreAdminV1CustomerManagedEncryptionOptions

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

Overview

The configuration options for using CMEK (Customer Managed Encryption Key) encryption.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleFirestoreAdminV1CustomerManagedEncryptionOptions

Returns a new instance of GoogleFirestoreAdminV1CustomerManagedEncryptionOptions.



1424
1425
1426
# File 'lib/google/apis/firestore_v1/classes.rb', line 1424

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

Instance Attribute Details

#kms_key_nameString

Required. Only keys in the same location as the database are allowed to be used for encryption. For Firestore's nam5 multi-region, this corresponds to Cloud KMS multi-region us. For Firestore's eur3 multi-region, this corresponds to Cloud KMS multi-region europe. See https://cloud.google.com/kms/docs/ locations. The expected format is projects/project_id/locations/ kms_location/keyRings/key_ring/cryptoKeys/crypto_key`. Corresponds to the JSON propertykmsKeyName`

Returns:

  • (String)


1422
1423
1424
# File 'lib/google/apis/firestore_v1/classes.rb', line 1422

def kms_key_name
  @kms_key_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1429
1430
1431
# File 'lib/google/apis/firestore_v1/classes.rb', line 1429

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