Class: Google::Apis::DlpV2::GooglePrivacyDlpV2TimespanConfig

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

Configuration of the timespan of the items to include in scanning. Currently only supported when inspecting Google Cloud Storage and BigQuery.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GooglePrivacyDlpV2TimespanConfig

Returns a new instance of GooglePrivacyDlpV2TimespanConfig.



6641
6642
6643
# File 'lib/google/apis/dlp_v2/classes.rb', line 6641

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

Instance Attribute Details

#enable_auto_population_of_timespan_configBoolean Also known as: enable_auto_population_of_timespan_config?

When the job is started by a JobTrigger we will automatically figure out a valid start_time to avoid scanning files that have not been modified since the last time the JobTrigger executed. This will be based on the time of the execution of the last run of the JobTrigger. Corresponds to the JSON property enableAutoPopulationOfTimespanConfig

Returns:

  • (Boolean)


6621
6622
6623
# File 'lib/google/apis/dlp_v2/classes.rb', line 6621

def enable_auto_population_of_timespan_config
  @enable_auto_population_of_timespan_config
end

#end_timeString

Exclude files, tables, or rows newer than this value. If not set, no upper time limit is applied. Corresponds to the JSON property endTime

Returns:

  • (String)


6628
6629
6630
# File 'lib/google/apis/dlp_v2/classes.rb', line 6628

def end_time
  @end_time
end

#start_timeString

Exclude files, tables, or rows older than this value. If not set, no lower time limit is applied. Corresponds to the JSON property startTime

Returns:

  • (String)


6634
6635
6636
# File 'lib/google/apis/dlp_v2/classes.rb', line 6634

def start_time
  @start_time
end

#timestamp_fieldGoogle::Apis::DlpV2::GooglePrivacyDlpV2FieldId

General identifier of a data field in a storage service. Corresponds to the JSON property timestampField



6639
6640
6641
# File 'lib/google/apis/dlp_v2/classes.rb', line 6639

def timestamp_field
  @timestamp_field
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6646
6647
6648
6649
6650
6651
# File 'lib/google/apis/dlp_v2/classes.rb', line 6646

def update!(**args)
  @enable_auto_population_of_timespan_config = args[:enable_auto_population_of_timespan_config] if args.key?(:enable_auto_population_of_timespan_config)
  @end_time = args[:end_time] if args.key?(:end_time)
  @start_time = args[:start_time] if args.key?(:start_time)
  @timestamp_field = args[:timestamp_field] if args.key?(:timestamp_field)
end