Class: Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1CryptoKey
- Inherits:
-
Object
- Object
- Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1CryptoKey
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/dlp_v2beta1/classes.rb,
generated/google/apis/dlp_v2beta1/representations.rb,
generated/google/apis/dlp_v2beta1/representations.rb
Overview
This is a data encryption key (DEK) (as opposed to a key encryption key (KEK) stored by KMS). When using KMS to wrap/unwrap DEKs, be sure to set an appropriate IAM policy on the KMS CryptoKey (KEK) to ensure an attacker cannot unwrap the data crypto key.
Instance Attribute Summary collapse
-
#kms_wrapped ⇒ Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1KmsWrappedCryptoKey
Include to use an existing data crypto key wrapped by KMS.
-
#transient ⇒ Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1TransientCryptoKey
Use this to have a random data crypto key generated.
-
#unwrapped ⇒ Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1UnwrappedCryptoKey
Using raw keys is prone to security risks due to accidentally leaking the key.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GooglePrivacyDlpV2beta1CryptoKey
constructor
A new instance of GooglePrivacyDlpV2beta1CryptoKey.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ GooglePrivacyDlpV2beta1CryptoKey
Returns a new instance of GooglePrivacyDlpV2beta1CryptoKey
873 874 875 |
# File 'generated/google/apis/dlp_v2beta1/classes.rb', line 873 def initialize(**args) update!(**args) end |
Instance Attribute Details
#kms_wrapped ⇒ Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1KmsWrappedCryptoKey
Include to use an existing data crypto key wrapped by KMS.
Authorization requires the following IAM permissions when sending a request
to perform a crypto transformation using a kms-wrapped crypto key:
dlp.kms.encrypt
Corresponds to the JSON property kmsWrapped
859 860 861 |
# File 'generated/google/apis/dlp_v2beta1/classes.rb', line 859 def kms_wrapped @kms_wrapped end |
#transient ⇒ Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1TransientCryptoKey
Use this to have a random data crypto key generated.
It will be discarded after the operation/request finishes.
Corresponds to the JSON property transient
865 866 867 |
# File 'generated/google/apis/dlp_v2beta1/classes.rb', line 865 def transient @transient end |
#unwrapped ⇒ Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1UnwrappedCryptoKey
Using raw keys is prone to security risks due to accidentally
leaking the key. Choose another type of key if possible.
Corresponds to the JSON property unwrapped
871 872 873 |
# File 'generated/google/apis/dlp_v2beta1/classes.rb', line 871 def unwrapped @unwrapped end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
878 879 880 881 882 |
# File 'generated/google/apis/dlp_v2beta1/classes.rb', line 878 def update!(**args) @kms_wrapped = args[:kms_wrapped] if args.key?(:kms_wrapped) @transient = args[:transient] if args.key?(:transient) @unwrapped = args[:unwrapped] if args.key?(:unwrapped) end |