Class: Google::Apis::DlpV2::GooglePrivacyDlpV2CharsToIgnore

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

Overview

Characters to skip when doing deidentification of a value. These will be left alone and skipped.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GooglePrivacyDlpV2CharsToIgnore

Returns a new instance of GooglePrivacyDlpV2CharsToIgnore.



670
671
672
# File 'generated/google/apis/dlp_v2/classes.rb', line 670

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

Instance Attribute Details

#characters_to_skipString

Characters to not transform when masking. Corresponds to the JSON property charactersToSkip

Returns:

  • (String)


662
663
664
# File 'generated/google/apis/dlp_v2/classes.rb', line 662

def characters_to_skip
  @characters_to_skip
end

#common_characters_to_ignoreString

Common characters to not transform when masking. Useful to avoid removing punctuation. Corresponds to the JSON property commonCharactersToIgnore

Returns:

  • (String)


668
669
670
# File 'generated/google/apis/dlp_v2/classes.rb', line 668

def common_characters_to_ignore
  @common_characters_to_ignore
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



675
676
677
678
# File 'generated/google/apis/dlp_v2/classes.rb', line 675

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