class Google::Apis::GamesV1::EventRecordFailure

This is a JSON template for an event update failure resource.

Attributes

event_id[RW]

The ID of the event that was not updated. Corresponds to the JSON property `eventId` @return [String]

failure_cause[RW]

The cause for the update failure. Possible values are:

  • “NOT_FOUND” - An attempt was made to set an event that was not defined.

  • “INVALID_UPDATE_VALUE” - An attempt was made to increment an event by a non-

positive value. Corresponds to the JSON property `failureCause` @return [String]

kind[RW]

Uniquely identifies the type of this resource. Value is always the fixed string games#eventRecordFailure. Corresponds to the JSON property `kind` @return [String]

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/games_v1/classes.rb, line 1004
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File generated/google/apis/games_v1/classes.rb, line 1009
def update!(**args)
  @event_id = args[:event_id] if args.key?(:event_id)
  @failure_cause = args[:failure_cause] if args.key?(:failure_cause)
  @kind = args[:kind] if args.key?(:kind)
end