Class: Google::Apis::DlpV2::GooglePrivacyDlpV2TimePartConfig
- Inherits:
-
Object
- Object
- Google::Apis::DlpV2::GooglePrivacyDlpV2TimePartConfig
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/dlp_v2/classes.rb,
lib/google/apis/dlp_v2/representations.rb,
lib/google/apis/dlp_v2/representations.rb
Overview
For use with Date, Timestamp, and TimeOfDay, extract or preserve a
portion of the value.
Instance Attribute Summary collapse
-
#part_to_extract ⇒ String
The part of the time to keep.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GooglePrivacyDlpV2TimePartConfig
constructor
A new instance of GooglePrivacyDlpV2TimePartConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GooglePrivacyDlpV2TimePartConfig
Returns a new instance of GooglePrivacyDlpV2TimePartConfig.
6580 6581 6582 |
# File 'lib/google/apis/dlp_v2/classes.rb', line 6580 def initialize(**args) update!(**args) end |
Instance Attribute Details
#part_to_extract ⇒ String
The part of the time to keep.
Corresponds to the JSON property partToExtract
6578 6579 6580 |
# File 'lib/google/apis/dlp_v2/classes.rb', line 6578 def part_to_extract @part_to_extract end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
6585 6586 6587 |
# File 'lib/google/apis/dlp_v2/classes.rb', line 6585 def update!(**args) @part_to_extract = args[:part_to_extract] if args.key?(:part_to_extract) end |