Class: Google::Apis::AdvisorynotificationsV1::GoogleCloudAdvisorynotificationsV1NotificationSettings
- Inherits:
-
Object
- Object
- Google::Apis::AdvisorynotificationsV1::GoogleCloudAdvisorynotificationsV1NotificationSettings
- 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
-
#enabled ⇒ Boolean
(also: #enabled?)
Whether the associated NotificationType is enabled.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudAdvisorynotificationsV1NotificationSettings
constructor
A new instance of GoogleCloudAdvisorynotificationsV1NotificationSettings.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudAdvisorynotificationsV1NotificationSettings
Returns a new instance of GoogleCloudAdvisorynotificationsV1NotificationSettings.
241 242 243 |
# File 'lib/google/apis/advisorynotifications_v1/classes.rb', line 241 def initialize(**args) update!(**args) end |
Instance Attribute Details
#enabled ⇒ Boolean Also known as: enabled?
Whether the associated NotificationType is enabled.
Corresponds to the JSON property enabled
238 239 240 |
# File 'lib/google/apis/advisorynotifications_v1/classes.rb', line 238 def enabled @enabled end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
246 247 248 |
# File 'lib/google/apis/advisorynotifications_v1/classes.rb', line 246 def update!(**args) @enabled = args[:enabled] if args.key?(:enabled) end |