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

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/bigquerydatatransfer_v1/classes.rb,
generated/google/apis/bigquerydatatransfer_v1/representations.rb,
generated/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.



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

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)


324
325
326
# File 'generated/google/apis/bigquerydatatransfer_v1/classes.rb', line 324

def enable_failure_email
  @enable_failure_email
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



332
333
334
# File 'generated/google/apis/bigquerydatatransfer_v1/classes.rb', line 332

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