Class: Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2DateShiftConfig
- Inherits:
-
Object
- Object
- Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2DateShiftConfig
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/dlp_v2beta2/classes.rb,
generated/google/apis/dlp_v2beta2/representations.rb,
generated/google/apis/dlp_v2beta2/representations.rb
Overview
Shifts dates by random number of days, with option to be consistent for the same context.
Instance Attribute Summary collapse
-
#context ⇒ Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2FieldId
General identifier of a data field in a storage service.
-
#crypto_key ⇒ Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2CryptoKey
This is a data encryption key (DEK) (as opposed to a key encryption key (KEK) stored by KMS).
-
#lower_bound_days ⇒ Fixnum
For example, -5 means shift date to at most 5 days back in the past.
-
#upper_bound_days ⇒ Fixnum
Range of shift in days.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GooglePrivacyDlpV2beta2DateShiftConfig
constructor
A new instance of GooglePrivacyDlpV2beta2DateShiftConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ GooglePrivacyDlpV2beta2DateShiftConfig
Returns a new instance of GooglePrivacyDlpV2beta2DateShiftConfig
2663 2664 2665 |
# File 'generated/google/apis/dlp_v2beta2/classes.rb', line 2663 def initialize(**args) update!(**args) end |
Instance Attribute Details
#context ⇒ Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2FieldId
General identifier of a data field in a storage service.
Corresponds to the JSON property context
2637 2638 2639 |
# File 'generated/google/apis/dlp_v2beta2/classes.rb', line 2637 def context @context end |
#crypto_key ⇒ Google::Apis::DlpV2beta2::GooglePrivacyDlpV2beta2CryptoKey
This is a data encryption key (DEK) (as opposed to
a key encryption key (KEK) stored by KMS).
When using KMS to wrap/unwrap DEKs, be sure to set an appropriate
IAM policy on the KMS CryptoKey (KEK) to ensure an attacker cannot
unwrap the data crypto key.
Corresponds to the JSON property cryptoKey
2646 2647 2648 |
# File 'generated/google/apis/dlp_v2beta2/classes.rb', line 2646 def crypto_key @crypto_key end |
#lower_bound_days ⇒ Fixnum
For example, -5 means shift date to at most 5 days back in the past.
[Required]
Corresponds to the JSON property lowerBoundDays
2652 2653 2654 |
# File 'generated/google/apis/dlp_v2beta2/classes.rb', line 2652 def lower_bound_days @lower_bound_days end |
#upper_bound_days ⇒ Fixnum
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.
[Required]
Corresponds to the JSON property upperBoundDays
2661 2662 2663 |
# File 'generated/google/apis/dlp_v2beta2/classes.rb', line 2661 def upper_bound_days @upper_bound_days end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2668 2669 2670 2671 2672 2673 |
# File 'generated/google/apis/dlp_v2beta2/classes.rb', line 2668 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 |