Class: Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2TransientCryptoKey

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

Overview

Use this to have a random data crypto key generated. It will be discarded after the request finishes.

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) ⇒ GooglePrivacyDlpV2beta2TransientCryptoKey

Returns a new instance of GooglePrivacyDlpV2beta2TransientCryptoKey



5960
5961
5962
# File 'generated/google/apis/dlp_v2beta2/classes.rb', line 5960

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

Instance Attribute Details

#nameString

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

Returns:

  • (String)


5958
5959
5960
# File 'generated/google/apis/dlp_v2beta2/classes.rb', line 5958

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5965
5966
5967
# File 'generated/google/apis/dlp_v2beta2/classes.rb', line 5965

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