class Google::Apis::DlpV2::GooglePrivacyDlpV2DateShiftConfig
Shifts dates by random number of days, with option to be consistent for the same context. See cloud.google.com/dlp/docs/concepts-date-shifting to learn more.
Attributes
General identifier of a data field in a storage service. Corresponds to the JSON property `context` @return [Google::Apis::DlpV2::GooglePrivacyDlpV2FieldId]
This is a data encryption key (DEK) (as opposed to a key encryption key (KEK) stored by Cloud Key Management Service (Cloud KMS). When using Cloud KMS to wrap or unwrap a DEK, be sure to set an appropriate IAM policy on the KEK to ensure an attacker cannot unwrap the DEK. Corresponds to the JSON property `cryptoKey` @return [Google::Apis::DlpV2::GooglePrivacyDlpV2CryptoKey]
Required. For example, -5 means shift date to at most 5 days back in the past. Corresponds to the JSON property `lowerBoundDays` @return [Fixnum]
Required. Range of shift in days. Actual shift will be selected at random within this range (inclusive ends). Negative means shift to earlier in time. Must not be more than 365250 days (1000 years) each direction. For example, 3 means shift date to at most 3 days into the future. Corresponds to the JSON property `upperBoundDays` @return [Fixnum]
Public Class Methods
# File lib/google/apis/dlp_v2/classes.rb, line 1629 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/dlp_v2/classes.rb, line 1634 def update!(**args) @context = args[:context] if args.key?(:context) @crypto_key = args[:crypto_key] if args.key?(:crypto_key) @lower_bound_days = args[:lower_bound_days] if args.key?(:lower_bound_days) @upper_bound_days = args[:upper_bound_days] if args.key?(:upper_bound_days) end