Class: Google::Apis::AdvisorynotificationsV1::GoogleCloudAdvisorynotificationsV1NotificationSettings

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

Overview

Settings for each NotificationType.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAdvisorynotificationsV1NotificationSettings

Returns a new instance of GoogleCloudAdvisorynotificationsV1NotificationSettings.



242
243
244
# File 'lib/google/apis/advisorynotifications_v1/classes.rb', line 242

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

Instance Attribute Details

#enabledBoolean Also known as: enabled?

Whether the associated NotificationType is enabled. Corresponds to the JSON property enabled

Returns:

  • (Boolean)


239
240
241
# File 'lib/google/apis/advisorynotifications_v1/classes.rb', line 239

def enabled
  @enabled
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



247
248
249
# File 'lib/google/apis/advisorynotifications_v1/classes.rb', line 247

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