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
-
(::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
-
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.
-
(::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
-
(::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
-
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.
-
(::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
-
(::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
-
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.
-
(::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
-
(::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
-
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.
-
(::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
-
(::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
-
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.
-
(::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
-
(::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
-
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.
-
(::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
-
(::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
-
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.
-
(::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
-
(::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
-
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.
-
(::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
-
(::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
-
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.
-
(::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
-
(::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
-
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.
-
(::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
-
(::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
-
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.
-
(::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
-
(::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
-
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.
-
(::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.