Class: Google::Privacy::Dlp::V2::CharsToIgnore

Inherits:
Object
  • Object
show all
Defined in:
lib/google/cloud/dlp/v2/doc/google/privacy/dlp/v2/dlp.rb

Overview

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

Defined Under Namespace

Modules: CommonCharsToIgnore

Instance Attribute Summary collapse

Instance Attribute Details

#characters_to_skipString

Returns Characters to not transform when masking.

Returns:

  • (String)

    Characters to not transform when masking.



1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
# File 'lib/google/cloud/dlp/v2/doc/google/privacy/dlp/v2/dlp.rb', line 1550

class CharsToIgnore
  # Convenience enum for indication common characters to not transform.
  module CommonCharsToIgnore
    # Unused.
    COMMON_CHARS_TO_IGNORE_UNSPECIFIED = 0

    # 0-9
    NUMERIC = 1

    # A-Z
    ALPHA_UPPER_CASE = 2

    # a-z
    ALPHA_LOWER_CASE = 3

    # US Punctuation, one of !"#$%&'()*+,-./:;<=>?@[\]^_`{|}~
    PUNCTUATION = 4

    # Whitespace character, one of [ \t\n\x0B\f\r]
    WHITESPACE = 5
  end
end

#common_characters_to_ignoreGoogle::Privacy::Dlp::V2::CharsToIgnore::CommonCharsToIgnore

Returns Common characters to not transform when masking. Useful to avoid removing punctuation.

Returns:



1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
# File 'lib/google/cloud/dlp/v2/doc/google/privacy/dlp/v2/dlp.rb', line 1550

class CharsToIgnore
  # Convenience enum for indication common characters to not transform.
  module CommonCharsToIgnore
    # Unused.
    COMMON_CHARS_TO_IGNORE_UNSPECIFIED = 0

    # 0-9
    NUMERIC = 1

    # A-Z
    ALPHA_UPPER_CASE = 2

    # a-z
    ALPHA_LOWER_CASE = 3

    # US Punctuation, one of !"#$%&'()*+,-./:;<=>?@[\]^_`{|}~
    PUNCTUATION = 4

    # Whitespace character, one of [ \t\n\x0B\f\r]
    WHITESPACE = 5
  end
end