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.



237
238
239
# File 'lib/google/apis/adsense_v2/classes.rb', line 237

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)


218
219
220
# File 'lib/google/apis/adsense_v2/classes.rb', line 218

def message
  @message
end

#nameString

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

Returns:

  • (String)


223
224
225
# File 'lib/google/apis/adsense_v2/classes.rb', line 223

def name
  @name
end

#severityString

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

Returns:

  • (String)


228
229
230
# File 'lib/google/apis/adsense_v2/classes.rb', line 228

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)


235
236
237
# File 'lib/google/apis/adsense_v2/classes.rb', line 235

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



242
243
244
245
246
247
# File 'lib/google/apis/adsense_v2/classes.rb', line 242

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