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

Constructor Details

#initialize(**args) ⇒ GooglePrivacyDlpV2Trigger

Returns a new instance of GooglePrivacyDlpV2Trigger.



6189
6190
6191
# File 'generated/google/apis/dlp_v2/classes.rb', line 6189

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



6182
6183
6184
# File 'generated/google/apis/dlp_v2/classes.rb', line 6182

def manual
  @manual
end

#scheduleGoogle::Apis::DlpV2::GooglePrivacyDlpV2Schedule

Schedule for triggeredJobs. Corresponds to the JSON property schedule



6187
6188
6189
# File 'generated/google/apis/dlp_v2/classes.rb', line 6187

def schedule
  @schedule
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6194
6195
6196
6197
# File 'generated/google/apis/dlp_v2/classes.rb', line 6194

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