Class: Google::Apis::DlpV2::GooglePrivacyDlpV2TimePartConfig

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GooglePrivacyDlpV2TimePartConfig

Returns a new instance of GooglePrivacyDlpV2TimePartConfig.



9319
9320
9321
# File 'lib/google/apis/dlp_v2/classes.rb', line 9319

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#part_to_extractString

The part of the time to keep. Corresponds to the JSON property partToExtract

Returns:

  • (String)


9317
9318
9319
# File 'lib/google/apis/dlp_v2/classes.rb', line 9317

def part_to_extract
  @part_to_extract
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



9324
9325
9326
# File 'lib/google/apis/dlp_v2/classes.rb', line 9324

def update!(**args)
  @part_to_extract = args[:part_to_extract] if args.key?(:part_to_extract)
end