Class: Google::Apis::BackupdrV1::CustomerEncryptionKey
- Inherits:
-
Object
- Object
- Google::Apis::BackupdrV1::CustomerEncryptionKey
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/backupdr_v1/classes.rb,
lib/google/apis/backupdr_v1/representations.rb,
lib/google/apis/backupdr_v1/representations.rb
Overview
A customer-supplied encryption key.
Instance Attribute Summary collapse
-
#kms_key_name ⇒ String
Optional.
-
#kms_key_service_account ⇒ String
Optional.
-
#raw_key ⇒ String
Optional.
-
#rsa_encrypted_key ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CustomerEncryptionKey
constructor
A new instance of CustomerEncryptionKey.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ CustomerEncryptionKey
Returns a new instance of CustomerEncryptionKey.
1695 1696 1697 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 1695 def initialize(**args) update!(**args) end |
Instance Attribute Details
#kms_key_name ⇒ String
Optional. The name of the encryption key that is stored in Google Cloud KMS.
Corresponds to the JSON property kmsKeyName
1676 1677 1678 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 1676 def kms_key_name @kms_key_name end |
#kms_key_service_account ⇒ String
Optional. The service account being used for the encryption request for the
given KMS key. If absent, the Compute Engine default service account is used.
Corresponds to the JSON property kmsKeyServiceAccount
1682 1683 1684 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 1682 def kms_key_service_account @kms_key_service_account end |
#raw_key ⇒ String
Optional. Specifies a 256-bit customer-supplied encryption key.
Corresponds to the JSON property rawKey
1687 1688 1689 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 1687 def raw_key @raw_key end |
#rsa_encrypted_key ⇒ String
Optional. RSA-wrapped 2048-bit customer-supplied encryption key to either
encrypt or decrypt this resource.
Corresponds to the JSON property rsaEncryptedKey
1693 1694 1695 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 1693 def rsa_encrypted_key @rsa_encrypted_key end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1700 1701 1702 1703 1704 1705 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 1700 def update!(**args) @kms_key_name = args[:kms_key_name] if args.key?(:kms_key_name) @kms_key_service_account = args[:kms_key_service_account] if args.key?(:kms_key_service_account) @raw_key = args[:raw_key] if args.key?(:raw_key) @rsa_encrypted_key = args[:rsa_encrypted_key] if args.key?(:rsa_encrypted_key) end |