Class: Google::Apis::DlpV2::GooglePrivacyDlpV2UnwrappedCryptoKey

Inherits:
Object
  • Object
show all
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

Using raw keys is prone to security risks due to accidentally leaking the key. Choose another type of key if possible.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GooglePrivacyDlpV2UnwrappedCryptoKey

Returns a new instance of GooglePrivacyDlpV2UnwrappedCryptoKey.



6218
6219
6220
# File 'lib/google/apis/dlp_v2/classes.rb', line 6218

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

Instance Attribute Details

#keyString

Required. A 128/192/256 bit key. Corresponds to the JSON property key NOTE: Values are automatically base64 encoded/decoded in the client library.

Returns:

  • (String)


6216
6217
6218
# File 'lib/google/apis/dlp_v2/classes.rb', line 6216

def key
  @key
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6223
6224
6225
# File 'lib/google/apis/dlp_v2/classes.rb', line 6223

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