Class: Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1TimePartConfig
- Inherits:
-
Object
- Object
- Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1TimePartConfig
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/dlp_v2beta1/classes.rb,
generated/google/apis/dlp_v2beta1/representations.rb,
generated/google/apis/dlp_v2beta1/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
Corresponds to the JSON property
partToExtract
.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GooglePrivacyDlpV2beta1TimePartConfig
constructor
A new instance of GooglePrivacyDlpV2beta1TimePartConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ GooglePrivacyDlpV2beta1TimePartConfig
Returns a new instance of GooglePrivacyDlpV2beta1TimePartConfig
3411 3412 3413 |
# File 'generated/google/apis/dlp_v2beta1/classes.rb', line 3411 def initialize(**args) update!(**args) end |
Instance Attribute Details
#part_to_extract ⇒ String
Corresponds to the JSON property partToExtract
3409 3410 3411 |
# File 'generated/google/apis/dlp_v2beta1/classes.rb', line 3409 def part_to_extract @part_to_extract end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3416 3417 3418 |
# File 'generated/google/apis/dlp_v2beta1/classes.rb', line 3416 def update!(**args) @part_to_extract = args[:part_to_extract] if args.key?(:part_to_extract) end |