Class: Google::Apis::DlpV2::GooglePrivacyDlpV2KmsWrappedCryptoKey
- Inherits:
-
Object
- Object
- Google::Apis::DlpV2::GooglePrivacyDlpV2KmsWrappedCryptoKey
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/dlp_v2/classes.rb,
lib/google/apis/dlp_v2/representations.rb,
lib/google/apis/dlp_v2/representations.rb
Overview
Include to use an existing data crypto key wrapped by KMS. The wrapped key must be a 128-, 192-, or 256-bit key. Authorization requires the following IAM permissions when sending a request to perform a crypto transformation using a KMS-wrapped crypto key: dlp.kms.encrypt For more information, see Creating a wrapped key. Note: When you use Cloud KMS for cryptographic operations, charges apply.
Instance Attribute Summary collapse
-
#crypto_key_name ⇒ String
Required.
-
#wrapped_key ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GooglePrivacyDlpV2KmsWrappedCryptoKey
constructor
A new instance of GooglePrivacyDlpV2KmsWrappedCryptoKey.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GooglePrivacyDlpV2KmsWrappedCryptoKey
Returns a new instance of GooglePrivacyDlpV2KmsWrappedCryptoKey.
6638 6639 6640 |
# File 'lib/google/apis/dlp_v2/classes.rb', line 6638 def initialize(**args) update!(**args) end |
Instance Attribute Details
#crypto_key_name ⇒ String
Required. The resource name of the KMS CryptoKey to use for unwrapping.
Corresponds to the JSON property cryptoKeyName
6630 6631 6632 |
# File 'lib/google/apis/dlp_v2/classes.rb', line 6630 def crypto_key_name @crypto_key_name end |
#wrapped_key ⇒ String
Required. The wrapped data crypto key.
Corresponds to the JSON property wrappedKey
NOTE: Values are automatically base64 encoded/decoded in the client library.
6636 6637 6638 |
# File 'lib/google/apis/dlp_v2/classes.rb', line 6636 def wrapped_key @wrapped_key end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
6643 6644 6645 6646 |
# File 'lib/google/apis/dlp_v2/classes.rb', line 6643 def update!(**args) @crypto_key_name = args[:crypto_key_name] if args.key?(:crypto_key_name) @wrapped_key = args[:wrapped_key] if args.key?(:wrapped_key) end |