Class: Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1ReplaceConfig

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

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

Returns a new instance of GooglePrivacyDlpV2beta1ReplaceConfig



2670
2671
2672
# File 'generated/google/apis/dlp_v2beta1/classes.rb', line 2670

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

Instance Attribute Details

#info_typeGoogle::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1InfoType

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



2663
2664
2665
# File 'generated/google/apis/dlp_v2beta1/classes.rb', line 2663

def info_type
  @info_type
end

#replace_withString

Content replacing sensitive information of given type. Max 256 chars. Corresponds to the JSON property replaceWith

Returns:

  • (String)


2668
2669
2670
# File 'generated/google/apis/dlp_v2beta1/classes.rb', line 2668

def replace_with
  @replace_with
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2675
2676
2677
2678
# File 'generated/google/apis/dlp_v2beta1/classes.rb', line 2675

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