Cloud Data Loss Prevention (DLP) V2 API - Class Google::Cloud::Dlp::V2::PrimitiveTransformation (v1.7.0)

Reference documentation and code samples for the Cloud Data Loss Prevention (DLP) V2 API class Google::Cloud::Dlp::V2::PrimitiveTransformation.

A rule for transforming a value.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#bucketing_config

def bucketing_config() -> ::Google::Cloud::Dlp::V2::BucketingConfig
Returns
  • (::Google::Cloud::Dlp::V2::BucketingConfig) — Bucketing

    Note: The following fields are mutually exclusive: bucketing_config, replace_config, redact_config, character_mask_config, crypto_replace_ffx_fpe_config, fixed_size_bucketing_config, replace_with_info_type_config, time_part_config, crypto_hash_config, date_shift_config, crypto_deterministic_config, replace_dictionary_config. If a field in that set is populated, all other fields in the set will automatically be cleared.

#bucketing_config=

def bucketing_config=(value) -> ::Google::Cloud::Dlp::V2::BucketingConfig
Parameter
  • value (::Google::Cloud::Dlp::V2::BucketingConfig) — Bucketing

    Note: The following fields are mutually exclusive: bucketing_config, replace_config, redact_config, character_mask_config, crypto_replace_ffx_fpe_config, fixed_size_bucketing_config, replace_with_info_type_config, time_part_config, crypto_hash_config, date_shift_config, crypto_deterministic_config, replace_dictionary_config. If a field in that set is populated, all other fields in the set will automatically be cleared.

Returns
  • (::Google::Cloud::Dlp::V2::BucketingConfig) — Bucketing

    Note: The following fields are mutually exclusive: bucketing_config, replace_config, redact_config, character_mask_config, crypto_replace_ffx_fpe_config, fixed_size_bucketing_config, replace_with_info_type_config, time_part_config, crypto_hash_config, date_shift_config, crypto_deterministic_config, replace_dictionary_config. If a field in that set is populated, all other fields in the set will automatically be cleared.

#character_mask_config

def character_mask_config() -> ::Google::Cloud::Dlp::V2::CharacterMaskConfig
Returns
  • (::Google::Cloud::Dlp::V2::CharacterMaskConfig) — Mask

    Note: The following fields are mutually exclusive: character_mask_config, replace_config, redact_config, crypto_replace_ffx_fpe_config, fixed_size_bucketing_config, bucketing_config, replace_with_info_type_config, time_part_config, crypto_hash_config, date_shift_config, crypto_deterministic_config, replace_dictionary_config. If a field in that set is populated, all other fields in the set will automatically be cleared.

#character_mask_config=

def character_mask_config=(value) -> ::Google::Cloud::Dlp::V2::CharacterMaskConfig
Parameter
  • value (::Google::Cloud::Dlp::V2::CharacterMaskConfig) — Mask

    Note: The following fields are mutually exclusive: character_mask_config, replace_config, redact_config, crypto_replace_ffx_fpe_config, fixed_size_bucketing_config, bucketing_config, replace_with_info_type_config, time_part_config, crypto_hash_config, date_shift_config, crypto_deterministic_config, replace_dictionary_config. If a field in that set is populated, all other fields in the set will automatically be cleared.

Returns
  • (::Google::Cloud::Dlp::V2::CharacterMaskConfig) — Mask

    Note: The following fields are mutually exclusive: character_mask_config, replace_config, redact_config, crypto_replace_ffx_fpe_config, fixed_size_bucketing_config, bucketing_config, replace_with_info_type_config, time_part_config, crypto_hash_config, date_shift_config, crypto_deterministic_config, replace_dictionary_config. If a field in that set is populated, all other fields in the set will automatically be cleared.

#crypto_deterministic_config

def crypto_deterministic_config() -> ::Google::Cloud::Dlp::V2::CryptoDeterministicConfig
Returns
  • (::Google::Cloud::Dlp::V2::CryptoDeterministicConfig) — Deterministic Crypto

    Note: The following fields are mutually exclusive: crypto_deterministic_config, replace_config, redact_config, character_mask_config, crypto_replace_ffx_fpe_config, fixed_size_bucketing_config, bucketing_config, replace_with_info_type_config, time_part_config, crypto_hash_config, date_shift_config, replace_dictionary_config. If a field in that set is populated, all other fields in the set will automatically be cleared.

#crypto_deterministic_config=

def crypto_deterministic_config=(value) -> ::Google::Cloud::Dlp::V2::CryptoDeterministicConfig
Parameter
  • value (::Google::Cloud::Dlp::V2::CryptoDeterministicConfig) — Deterministic Crypto

    Note: The following fields are mutually exclusive: crypto_deterministic_config, replace_config, redact_config, character_mask_config, crypto_replace_ffx_fpe_config, fixed_size_bucketing_config, bucketing_config, replace_with_info_type_config, time_part_config, crypto_hash_config, date_shift_config, replace_dictionary_config. If a field in that set is populated, all other fields in the set will automatically be cleared.

Returns
  • (::Google::Cloud::Dlp::V2::CryptoDeterministicConfig) — Deterministic Crypto

    Note: The following fields are mutually exclusive: crypto_deterministic_config, replace_config, redact_config, character_mask_config, crypto_replace_ffx_fpe_config, fixed_size_bucketing_config, bucketing_config, replace_with_info_type_config, time_part_config, crypto_hash_config, date_shift_config, replace_dictionary_config. If a field in that set is populated, all other fields in the set will automatically be cleared.

#crypto_hash_config

def crypto_hash_config() -> ::Google::Cloud::Dlp::V2::CryptoHashConfig
Returns
  • (::Google::Cloud::Dlp::V2::CryptoHashConfig) — Crypto

    Note: The following fields are mutually exclusive: crypto_hash_config, replace_config, redact_config, character_mask_config, crypto_replace_ffx_fpe_config, fixed_size_bucketing_config, bucketing_config, replace_with_info_type_config, time_part_config, date_shift_config, crypto_deterministic_config, replace_dictionary_config. If a field in that set is populated, all other fields in the set will automatically be cleared.

#crypto_hash_config=

def crypto_hash_config=(value) -> ::Google::Cloud::Dlp::V2::CryptoHashConfig
Parameter
  • value (::Google::Cloud::Dlp::V2::CryptoHashConfig) — Crypto

    Note: The following fields are mutually exclusive: crypto_hash_config, replace_config, redact_config, character_mask_config, crypto_replace_ffx_fpe_config, fixed_size_bucketing_config, bucketing_config, replace_with_info_type_config, time_part_config, date_shift_config, crypto_deterministic_config, replace_dictionary_config. If a field in that set is populated, all other fields in the set will automatically be cleared.

Returns
  • (::Google::Cloud::Dlp::V2::CryptoHashConfig) — Crypto

    Note: The following fields are mutually exclusive: crypto_hash_config, replace_config, redact_config, character_mask_config, crypto_replace_ffx_fpe_config, fixed_size_bucketing_config, bucketing_config, replace_with_info_type_config, time_part_config, date_shift_config, crypto_deterministic_config, replace_dictionary_config. If a field in that set is populated, all other fields in the set will automatically be cleared.

#crypto_replace_ffx_fpe_config

def crypto_replace_ffx_fpe_config() -> ::Google::Cloud::Dlp::V2::CryptoReplaceFfxFpeConfig
Returns
  • (::Google::Cloud::Dlp::V2::CryptoReplaceFfxFpeConfig) — Ffx-Fpe

    Note: The following fields are mutually exclusive: crypto_replace_ffx_fpe_config, replace_config, redact_config, character_mask_config, fixed_size_bucketing_config, bucketing_config, replace_with_info_type_config, time_part_config, crypto_hash_config, date_shift_config, crypto_deterministic_config, replace_dictionary_config. If a field in that set is populated, all other fields in the set will automatically be cleared.

#crypto_replace_ffx_fpe_config=

def crypto_replace_ffx_fpe_config=(value) -> ::Google::Cloud::Dlp::V2::CryptoReplaceFfxFpeConfig
Parameter
  • value (::Google::Cloud::Dlp::V2::CryptoReplaceFfxFpeConfig) — Ffx-Fpe

    Note: The following fields are mutually exclusive: crypto_replace_ffx_fpe_config, replace_config, redact_config, character_mask_config, fixed_size_bucketing_config, bucketing_config, replace_with_info_type_config, time_part_config, crypto_hash_config, date_shift_config, crypto_deterministic_config, replace_dictionary_config. If a field in that set is populated, all other fields in the set will automatically be cleared.

Returns
  • (::Google::Cloud::Dlp::V2::CryptoReplaceFfxFpeConfig) — Ffx-Fpe

    Note: The following fields are mutually exclusive: crypto_replace_ffx_fpe_config, replace_config, redact_config, character_mask_config, fixed_size_bucketing_config, bucketing_config, replace_with_info_type_config, time_part_config, crypto_hash_config, date_shift_config, crypto_deterministic_config, replace_dictionary_config. If a field in that set is populated, all other fields in the set will automatically be cleared.

#date_shift_config

def date_shift_config() -> ::Google::Cloud::Dlp::V2::DateShiftConfig
Returns
  • (::Google::Cloud::Dlp::V2::DateShiftConfig) — Date Shift

    Note: The following fields are mutually exclusive: date_shift_config, replace_config, redact_config, character_mask_config, crypto_replace_ffx_fpe_config, fixed_size_bucketing_config, bucketing_config, replace_with_info_type_config, time_part_config, crypto_hash_config, crypto_deterministic_config, replace_dictionary_config. If a field in that set is populated, all other fields in the set will automatically be cleared.

#date_shift_config=

def date_shift_config=(value) -> ::Google::Cloud::Dlp::V2::DateShiftConfig
Parameter
  • value (::Google::Cloud::Dlp::V2::DateShiftConfig) — Date Shift

    Note: The following fields are mutually exclusive: date_shift_config, replace_config, redact_config, character_mask_config, crypto_replace_ffx_fpe_config, fixed_size_bucketing_config, bucketing_config, replace_with_info_type_config, time_part_config, crypto_hash_config, crypto_deterministic_config, replace_dictionary_config. If a field in that set is populated, all other fields in the set will automatically be cleared.

Returns
  • (::Google::Cloud::Dlp::V2::DateShiftConfig) — Date Shift

    Note: The following fields are mutually exclusive: date_shift_config, replace_config, redact_config, character_mask_config, crypto_replace_ffx_fpe_config, fixed_size_bucketing_config, bucketing_config, replace_with_info_type_config, time_part_config, crypto_hash_config, crypto_deterministic_config, replace_dictionary_config. If a field in that set is populated, all other fields in the set will automatically be cleared.

#fixed_size_bucketing_config

def fixed_size_bucketing_config() -> ::Google::Cloud::Dlp::V2::FixedSizeBucketingConfig
Returns
  • (::Google::Cloud::Dlp::V2::FixedSizeBucketingConfig) — Fixed size bucketing

    Note: The following fields are mutually exclusive: fixed_size_bucketing_config, replace_config, redact_config, character_mask_config, crypto_replace_ffx_fpe_config, bucketing_config, replace_with_info_type_config, time_part_config, crypto_hash_config, date_shift_config, crypto_deterministic_config, replace_dictionary_config. If a field in that set is populated, all other fields in the set will automatically be cleared.

#fixed_size_bucketing_config=

def fixed_size_bucketing_config=(value) -> ::Google::Cloud::Dlp::V2::FixedSizeBucketingConfig
Parameter
  • value (::Google::Cloud::Dlp::V2::FixedSizeBucketingConfig) — Fixed size bucketing

    Note: The following fields are mutually exclusive: fixed_size_bucketing_config, replace_config, redact_config, character_mask_config, crypto_replace_ffx_fpe_config, bucketing_config, replace_with_info_type_config, time_part_config, crypto_hash_config, date_shift_config, crypto_deterministic_config, replace_dictionary_config. If a field in that set is populated, all other fields in the set will automatically be cleared.

Returns
  • (::Google::Cloud::Dlp::V2::FixedSizeBucketingConfig) — Fixed size bucketing

    Note: The following fields are mutually exclusive: fixed_size_bucketing_config, replace_config, redact_config, character_mask_config, crypto_replace_ffx_fpe_config, bucketing_config, replace_with_info_type_config, time_part_config, crypto_hash_config, date_shift_config, crypto_deterministic_config, replace_dictionary_config. If a field in that set is populated, all other fields in the set will automatically be cleared.

#redact_config

def redact_config() -> ::Google::Cloud::Dlp::V2::RedactConfig
Returns
  • (::Google::Cloud::Dlp::V2::RedactConfig) — Redact

    Note: The following fields are mutually exclusive: redact_config, replace_config, character_mask_config, crypto_replace_ffx_fpe_config, fixed_size_bucketing_config, bucketing_config, replace_with_info_type_config, time_part_config, crypto_hash_config, date_shift_config, crypto_deterministic_config, replace_dictionary_config. If a field in that set is populated, all other fields in the set will automatically be cleared.

#redact_config=

def redact_config=(value) -> ::Google::Cloud::Dlp::V2::RedactConfig
Parameter
  • value (::Google::Cloud::Dlp::V2::RedactConfig) — Redact

    Note: The following fields are mutually exclusive: redact_config, replace_config, character_mask_config, crypto_replace_ffx_fpe_config, fixed_size_bucketing_config, bucketing_config, replace_with_info_type_config, time_part_config, crypto_hash_config, date_shift_config, crypto_deterministic_config, replace_dictionary_config. If a field in that set is populated, all other fields in the set will automatically be cleared.

Returns
  • (::Google::Cloud::Dlp::V2::RedactConfig) — Redact

    Note: The following fields are mutually exclusive: redact_config, replace_config, character_mask_config, crypto_replace_ffx_fpe_config, fixed_size_bucketing_config, bucketing_config, replace_with_info_type_config, time_part_config, crypto_hash_config, date_shift_config, crypto_deterministic_config, replace_dictionary_config. If a field in that set is populated, all other fields in the set will automatically be cleared.

#replace_config

def replace_config() -> ::Google::Cloud::Dlp::V2::ReplaceValueConfig
Returns
  • (::Google::Cloud::Dlp::V2::ReplaceValueConfig) — Replace with a specified value.

    Note: The following fields are mutually exclusive: replace_config, redact_config, character_mask_config, crypto_replace_ffx_fpe_config, fixed_size_bucketing_config, bucketing_config, replace_with_info_type_config, time_part_config, crypto_hash_config, date_shift_config, crypto_deterministic_config, replace_dictionary_config. If a field in that set is populated, all other fields in the set will automatically be cleared.

#replace_config=

def replace_config=(value) -> ::Google::Cloud::Dlp::V2::ReplaceValueConfig
Parameter
  • value (::Google::Cloud::Dlp::V2::ReplaceValueConfig) — Replace with a specified value.

    Note: The following fields are mutually exclusive: replace_config, redact_config, character_mask_config, crypto_replace_ffx_fpe_config, fixed_size_bucketing_config, bucketing_config, replace_with_info_type_config, time_part_config, crypto_hash_config, date_shift_config, crypto_deterministic_config, replace_dictionary_config. If a field in that set is populated, all other fields in the set will automatically be cleared.

Returns
  • (::Google::Cloud::Dlp::V2::ReplaceValueConfig) — Replace with a specified value.

    Note: The following fields are mutually exclusive: replace_config, redact_config, character_mask_config, crypto_replace_ffx_fpe_config, fixed_size_bucketing_config, bucketing_config, replace_with_info_type_config, time_part_config, crypto_hash_config, date_shift_config, crypto_deterministic_config, replace_dictionary_config. If a field in that set is populated, all other fields in the set will automatically be cleared.

#replace_dictionary_config

def replace_dictionary_config() -> ::Google::Cloud::Dlp::V2::ReplaceDictionaryConfig
Returns
  • (::Google::Cloud::Dlp::V2::ReplaceDictionaryConfig) — Replace with a value randomly drawn (with replacement) from a dictionary.

    Note: The following fields are mutually exclusive: replace_dictionary_config, replace_config, redact_config, character_mask_config, crypto_replace_ffx_fpe_config, fixed_size_bucketing_config, bucketing_config, replace_with_info_type_config, time_part_config, crypto_hash_config, date_shift_config, crypto_deterministic_config. If a field in that set is populated, all other fields in the set will automatically be cleared.

#replace_dictionary_config=

def replace_dictionary_config=(value) -> ::Google::Cloud::Dlp::V2::ReplaceDictionaryConfig
Parameter
  • value (::Google::Cloud::Dlp::V2::ReplaceDictionaryConfig) — Replace with a value randomly drawn (with replacement) from a dictionary.

    Note: The following fields are mutually exclusive: replace_dictionary_config, replace_config, redact_config, character_mask_config, crypto_replace_ffx_fpe_config, fixed_size_bucketing_config, bucketing_config, replace_with_info_type_config, time_part_config, crypto_hash_config, date_shift_config, crypto_deterministic_config. If a field in that set is populated, all other fields in the set will automatically be cleared.

Returns
  • (::Google::Cloud::Dlp::V2::ReplaceDictionaryConfig) — Replace with a value randomly drawn (with replacement) from a dictionary.

    Note: The following fields are mutually exclusive: replace_dictionary_config, replace_config, redact_config, character_mask_config, crypto_replace_ffx_fpe_config, fixed_size_bucketing_config, bucketing_config, replace_with_info_type_config, time_part_config, crypto_hash_config, date_shift_config, crypto_deterministic_config. If a field in that set is populated, all other fields in the set will automatically be cleared.

#replace_with_info_type_config

def replace_with_info_type_config() -> ::Google::Cloud::Dlp::V2::ReplaceWithInfoTypeConfig
Returns
  • (::Google::Cloud::Dlp::V2::ReplaceWithInfoTypeConfig) — Replace with infotype

    Note: The following fields are mutually exclusive: replace_with_info_type_config, replace_config, redact_config, character_mask_config, crypto_replace_ffx_fpe_config, fixed_size_bucketing_config, bucketing_config, time_part_config, crypto_hash_config, date_shift_config, crypto_deterministic_config, replace_dictionary_config. If a field in that set is populated, all other fields in the set will automatically be cleared.

#replace_with_info_type_config=

def replace_with_info_type_config=(value) -> ::Google::Cloud::Dlp::V2::ReplaceWithInfoTypeConfig
Parameter
  • value (::Google::Cloud::Dlp::V2::ReplaceWithInfoTypeConfig) — Replace with infotype

    Note: The following fields are mutually exclusive: replace_with_info_type_config, replace_config, redact_config, character_mask_config, crypto_replace_ffx_fpe_config, fixed_size_bucketing_config, bucketing_config, time_part_config, crypto_hash_config, date_shift_config, crypto_deterministic_config, replace_dictionary_config. If a field in that set is populated, all other fields in the set will automatically be cleared.

Returns
  • (::Google::Cloud::Dlp::V2::ReplaceWithInfoTypeConfig) — Replace with infotype

    Note: The following fields are mutually exclusive: replace_with_info_type_config, replace_config, redact_config, character_mask_config, crypto_replace_ffx_fpe_config, fixed_size_bucketing_config, bucketing_config, time_part_config, crypto_hash_config, date_shift_config, crypto_deterministic_config, replace_dictionary_config. If a field in that set is populated, all other fields in the set will automatically be cleared.

#time_part_config

def time_part_config() -> ::Google::Cloud::Dlp::V2::TimePartConfig
Returns
  • (::Google::Cloud::Dlp::V2::TimePartConfig) — Time extraction

    Note: The following fields are mutually exclusive: time_part_config, replace_config, redact_config, character_mask_config, crypto_replace_ffx_fpe_config, fixed_size_bucketing_config, bucketing_config, replace_with_info_type_config, crypto_hash_config, date_shift_config, crypto_deterministic_config, replace_dictionary_config. If a field in that set is populated, all other fields in the set will automatically be cleared.

#time_part_config=

def time_part_config=(value) -> ::Google::Cloud::Dlp::V2::TimePartConfig
Parameter
  • value (::Google::Cloud::Dlp::V2::TimePartConfig) — Time extraction

    Note: The following fields are mutually exclusive: time_part_config, replace_config, redact_config, character_mask_config, crypto_replace_ffx_fpe_config, fixed_size_bucketing_config, bucketing_config, replace_with_info_type_config, crypto_hash_config, date_shift_config, crypto_deterministic_config, replace_dictionary_config. If a field in that set is populated, all other fields in the set will automatically be cleared.

Returns
  • (::Google::Cloud::Dlp::V2::TimePartConfig) — Time extraction

    Note: The following fields are mutually exclusive: time_part_config, replace_config, redact_config, character_mask_config, crypto_replace_ffx_fpe_config, fixed_size_bucketing_config, bucketing_config, replace_with_info_type_config, crypto_hash_config, date_shift_config, crypto_deterministic_config, replace_dictionary_config. If a field in that set is populated, all other fields in the set will automatically be cleared.