Class: Google::Apis::DlpV2::GooglePrivacyDlpV2Trigger

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/dlp_v2/classes.rb,
generated/google/apis/dlp_v2/representations.rb,
generated/google/apis/dlp_v2/representations.rb

Overview

What event needs to occur for a new job to be started.

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) ⇒ GooglePrivacyDlpV2Trigger

Returns a new instance of GooglePrivacyDlpV2Trigger.



6383
6384
6385
# File 'generated/google/apis/dlp_v2/classes.rb', line 6383

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

Instance Attribute Details

#manualGoogle::Apis::DlpV2::GooglePrivacyDlpV2Manual

Job trigger option for hybrid jobs. Jobs must be manually created and finished. Corresponds to the JSON property manual



6376
6377
6378
# File 'generated/google/apis/dlp_v2/classes.rb', line 6376

def manual
  @manual
end

#scheduleGoogle::Apis::DlpV2::GooglePrivacyDlpV2Schedule

Schedule for triggeredJobs. Corresponds to the JSON property schedule



6381
6382
6383
# File 'generated/google/apis/dlp_v2/classes.rb', line 6381

def schedule
  @schedule
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6388
6389
6390
6391
# File 'generated/google/apis/dlp_v2/classes.rb', line 6388

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