Class: Google::Apis::AdexchangesellerV1_1::Alert

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/adexchangeseller_v1_1/classes.rb,
generated/google/apis/adexchangeseller_v1_1/representations.rb,
generated/google/apis/adexchangeseller_v1_1/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



260
261
262
# File 'generated/google/apis/adexchangeseller_v1_1/classes.rb', line 260

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)


236
237
238
# File 'generated/google/apis/adexchangeseller_v1_1/classes.rb', line 236

def id
  @id
end

#kindString

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

Returns:

  • (String)


241
242
243
# File 'generated/google/apis/adexchangeseller_v1_1/classes.rb', line 241

def kind
  @kind
end

#messageString

The localized alert message. Corresponds to the JSON property message

Returns:

  • (String)


246
247
248
# File 'generated/google/apis/adexchangeseller_v1_1/classes.rb', line 246

def message
  @message
end

#severityString

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

Returns:

  • (String)


251
252
253
# File 'generated/google/apis/adexchangeseller_v1_1/classes.rb', line 251

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)


258
259
260
# File 'generated/google/apis/adexchangeseller_v1_1/classes.rb', line 258

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



265
266
267
268
269
270
271
# File 'generated/google/apis/adexchangeseller_v1_1/classes.rb', line 265

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