Class: Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1TransientCryptoKey
- Inherits:
-
Object
- Object
- Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1TransientCryptoKey
- 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
Use this to have a random data crypto key generated. It will be discarded after the operation/request finishes.
Instance Attribute Summary collapse
-
#name ⇒ String
Name of the key.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GooglePrivacyDlpV2beta1TransientCryptoKey
constructor
A new instance of GooglePrivacyDlpV2beta1TransientCryptoKey.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ GooglePrivacyDlpV2beta1TransientCryptoKey
Returns a new instance of GooglePrivacyDlpV2beta1TransientCryptoKey
3005 3006 3007 |
# File 'generated/google/apis/dlp_v2beta1/classes.rb', line 3005 def initialize(**args) update!(**args) end |
Instance Attribute Details
#name ⇒ String
Name of the key. [required]
This is an arbitrary string used to differentiate different keys.
A unique key is generated per name: two separate TransientCryptoKey
protos share the same generated key if their names are the same.
When the data crypto key is generated, this name is not used in any way
(repeating the api call will result in a different key being generated).
Corresponds to the JSON property name
3003 3004 3005 |
# File 'generated/google/apis/dlp_v2beta1/classes.rb', line 3003 def name @name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3010 3011 3012 |
# File 'generated/google/apis/dlp_v2beta1/classes.rb', line 3010 def update!(**args) @name = args[:name] if args.key?(:name) end |