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
Resource name of the alert.
-
#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.
237 238 239 |
# File 'lib/google/apis/adsense_v2/classes.rb', line 237 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
218 219 220 |
# File 'lib/google/apis/adsense_v2/classes.rb', line 218 def @message end |
#name ⇒ String
Resource name of the alert. Format: accounts/account/alerts/alert
Corresponds to the JSON property name
223 224 225 |
# File 'lib/google/apis/adsense_v2/classes.rb', line 223 def name @name end |
#severity ⇒ String
Output only. Severity of this alert.
Corresponds to the JSON property severity
228 229 230 |
# File 'lib/google/apis/adsense_v2/classes.rb', line 228 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
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 |