Class: Google::Apis::DlpV2beta1::GooglePrivacyDlpV2beta1TimePartConfig

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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ GooglePrivacyDlpV2beta1TimePartConfig

Returns a new instance of GooglePrivacyDlpV2beta1TimePartConfig



2929
2930
2931
# File 'generated/google/apis/dlp_v2beta1/classes.rb', line 2929

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

Instance Attribute Details

#part_to_extractString

Corresponds to the JSON property partToExtract

Returns:

  • (String)


2927
2928
2929
# File 'generated/google/apis/dlp_v2beta1/classes.rb', line 2927

def part_to_extract
  @part_to_extract
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2934
2935
2936
# File 'generated/google/apis/dlp_v2beta1/classes.rb', line 2934

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