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.
242 243 244 |
# File 'lib/google/apis/advisorynotifications_v1/classes.rb', line 242 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
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 |