Class: Google::Apis::AdsenseV2::Alert

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#messageString

Output only. The localized alert message. This may contain HTML markup, such as phrase elements or links. Corresponds to the JSON property message

Returns:

  • (String)


266
267
268
# File 'lib/google/apis/adsense_v2/classes.rb', line 266

def message
  @message
end

#nameString

Output only. Resource name of the alert. Format: accounts/account/alerts/ alert Corresponds to the JSON property name

Returns:

  • (String)


272
273
274
# File 'lib/google/apis/adsense_v2/classes.rb', line 272

def name
  @name
end

#severityString

Output only. Severity of this alert. Corresponds to the JSON property severity

Returns:

  • (String)


277
278
279
# File 'lib/google/apis/adsense_v2/classes.rb', line 277

def severity
  @severity
end

#typeString

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

Returns:

  • (String)


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