Class: Google::Apis::AdsenseV2::Alert
- Inherits:
-
Object
- Object
- Google::Apis::AdsenseV2::Alert
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/adsense_v2/classes.rb,
lib/google/apis/adsense_v2/representations.rb,
lib/google/apis/adsense_v2/representations.rb
Overview
Representation of an alert.
Instance Attribute Summary collapse
-
#message ⇒ String
Output only.
-
#name ⇒ String
Output only.
-
#severity ⇒ String
Output only.
-
#type ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Alert
constructor
A new instance of Alert.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Alert
Returns a new instance of Alert.
286 287 288 |
# File 'lib/google/apis/adsense_v2/classes.rb', line 286 def initialize(**args) update!(**args) end |
Instance Attribute Details
#message ⇒ String
Output only. The localized alert message. This may contain HTML markup, such
as phrase elements or links.
Corresponds to the JSON property message
266 267 268 |
# File 'lib/google/apis/adsense_v2/classes.rb', line 266 def @message end |
#name ⇒ String
Output only. Resource name of the alert. Format: accounts/account
/alerts/
alert
Corresponds to the JSON property name
272 273 274 |
# File 'lib/google/apis/adsense_v2/classes.rb', line 272 def name @name end |
#severity ⇒ String
Output only. Severity of this alert.
Corresponds to the JSON property severity
277 278 279 |
# File 'lib/google/apis/adsense_v2/classes.rb', line 277 def severity @severity end |
#type ⇒ String
Output only. Type of alert. This identifies the broad type of this alert, and
provides a stable machine-readable identifier that will not be translated. For
example, "payment-hold".
Corresponds to the JSON property type
284 285 286 |
# File 'lib/google/apis/adsense_v2/classes.rb', line 284 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
291 292 293 294 295 296 |
# File 'lib/google/apis/adsense_v2/classes.rb', line 291 def update!(**args) @message = args[:message] if args.key?(:message) @name = args[:name] if args.key?(:name) @severity = args[:severity] if args.key?(:severity) @type = args[:type] if args.key?(:type) end |