Class: Google::Apis::DlpV2::GooglePrivacyDlpV2CryptoDeterministicConfig

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

Pseudonymization method that generates deterministic encryption for the given input. Outputs a base64 encoded representation of the encrypted output. Uses AES-SIV based on the RFC https://tools.ietf.org/html/rfc5297.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GooglePrivacyDlpV2CryptoDeterministicConfig

Returns a new instance of GooglePrivacyDlpV2CryptoDeterministicConfig.



2021
2022
2023
# File 'lib/google/apis/dlp_v2/classes.rb', line 2021

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

Instance Attribute Details

#contextGoogle::Apis::DlpV2::GooglePrivacyDlpV2FieldId

General identifier of a data field in a storage service. Corresponds to the JSON property context



2006
2007
2008
# File 'lib/google/apis/dlp_v2/classes.rb', line 2006

def context
  @context
end

#crypto_keyGoogle::Apis::DlpV2::GooglePrivacyDlpV2CryptoKey

This is a data encryption key (DEK) (as opposed to a key encryption key (KEK) stored by Cloud Key Management Service (Cloud KMS). When using Cloud KMS to wrap or unwrap a DEK, be sure to set an appropriate IAM policy on the KEK to ensure an attacker cannot unwrap the DEK. Corresponds to the JSON property cryptoKey



2014
2015
2016
# File 'lib/google/apis/dlp_v2/classes.rb', line 2014

def crypto_key
  @crypto_key
end

#surrogate_info_typeGoogle::Apis::DlpV2::GooglePrivacyDlpV2InfoType

Type of information detected by the API. Corresponds to the JSON property surrogateInfoType



2019
2020
2021
# File 'lib/google/apis/dlp_v2/classes.rb', line 2019

def surrogate_info_type
  @surrogate_info_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2026
2027
2028
2029
2030
# File 'lib/google/apis/dlp_v2/classes.rb', line 2026

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