Class: Google::Apis::BigquerydatatransferV1::EmailPreferences

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

Overview

Represents preferences for sending email notifications for transfer run events.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ EmailPreferences

Returns a new instance of EmailPreferences.



322
323
324
# File 'lib/google/apis/bigquerydatatransfer_v1/classes.rb', line 322

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

Instance Attribute Details

#enable_failure_emailBoolean Also known as: enable_failure_email?

If true, email notifications will be sent on transfer run failures. Corresponds to the JSON property enableFailureEmail

Returns:

  • (Boolean)


319
320
321
# File 'lib/google/apis/bigquerydatatransfer_v1/classes.rb', line 319

def enable_failure_email
  @enable_failure_email
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



327
328
329
# File 'lib/google/apis/bigquerydatatransfer_v1/classes.rb', line 327

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