Class: Google::Apis::DlpV2::GooglePrivacyDlpV2KmsWrappedCryptoKey

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

Overview

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ GooglePrivacyDlpV2KmsWrappedCryptoKey

Returns a new instance of GooglePrivacyDlpV2KmsWrappedCryptoKey



3485
3486
3487
# File 'generated/google/apis/dlp_v2/classes.rb', line 3485

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

Instance Attribute Details

#crypto_key_nameString

The resource name of the KMS CryptoKey to use for unwrapping. [required] Corresponds to the JSON property cryptoKeyName

Returns:

  • (String)


3477
3478
3479
# File 'generated/google/apis/dlp_v2/classes.rb', line 3477

def crypto_key_name
  @crypto_key_name
end

#wrapped_keyString

The wrapped data crypto key. [required] Corresponds to the JSON property wrappedKey NOTE: Values are automatically base64 encoded/decoded in the client library.

Returns:

  • (String)


3483
3484
3485
# File 'generated/google/apis/dlp_v2/classes.rb', line 3483

def wrapped_key
  @wrapped_key
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3490
3491
3492
3493
# File 'generated/google/apis/dlp_v2/classes.rb', line 3490

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