Class: Google::Apis::AdexchangesellerV2_0::Alert

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/adexchangeseller_v2_0/classes.rb,
generated/google/apis/adexchangeseller_v2_0/representations.rb,
generated/google/apis/adexchangeseller_v2_0/representations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Alert

Returns a new instance of Alert



210
211
212
# File 'generated/google/apis/adexchangeseller_v2_0/classes.rb', line 210

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#idString

Unique identifier of this alert. This should be considered an opaque identifier; it is not safe to rely on it being in any particular format. Corresponds to the JSON property id

Returns:

  • (String)


186
187
188
# File 'generated/google/apis/adexchangeseller_v2_0/classes.rb', line 186

def id
  @id
end

#kindString

Kind of resource this is, in this case adexchangeseller#alert. Corresponds to the JSON property kind

Returns:

  • (String)


191
192
193
# File 'generated/google/apis/adexchangeseller_v2_0/classes.rb', line 191

def kind
  @kind
end

#messageString

The localized alert message. Corresponds to the JSON property message

Returns:

  • (String)


196
197
198
# File 'generated/google/apis/adexchangeseller_v2_0/classes.rb', line 196

def message
  @message
end

#severityString

Severity of this alert. Possible values: INFO, WARNING, SEVERE. Corresponds to the JSON property severity

Returns:

  • (String)


201
202
203
# File 'generated/google/apis/adexchangeseller_v2_0/classes.rb', line 201

def severity
  @severity
end

#typeString

Type of this alert. Possible values: SELF_HOLD, MIGRATED_TO_BILLING3, ADDRESS_PIN_VERIFICATION, PHONE_PIN_VERIFICATION, CORPORATE_ENTITY, GRAYLISTED_PUBLISHER, API_HOLD. Corresponds to the JSON property type

Returns:

  • (String)


208
209
210
# File 'generated/google/apis/adexchangeseller_v2_0/classes.rb', line 208

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



215
216
217
218
219
220
221
# File 'generated/google/apis/adexchangeseller_v2_0/classes.rb', line 215

def update!(**args)
  @id = args[:id] if args.key?(:id)
  @kind = args[:kind] if args.key?(:kind)
  @message = args[:message] if args.key?(:message)
  @severity = args[:severity] if args.key?(:severity)
  @type = args[:type] if args.key?(:type)
end