Class: Google::Apis::GamesV1::EventBatchRecordFailure

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

Overview

This is a JSON template for a batch update failure resource.

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) ⇒ EventBatchRecordFailure

Returns a new instance of EventBatchRecordFailure



777
778
779
# File 'generated/google/apis/games_v1/classes.rb', line 777

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

Instance Attribute Details

#failure_causeString

The cause for the update failure. Possible values are:

  • "TOO_LARGE": A batch request was issued with more events than are allowed in a single batch.
  • "TIME_PERIOD_EXPIRED": A batch was sent with data too far in the past to record.
  • "TIME_PERIOD_SHORT": A batch was sent with a time range that was too short.
  • "TIME_PERIOD_LONG": A batch was sent with a time range that was too long.
  • "ALREADY_UPDATED": An attempt was made to record a batch of data which was already seen.
  • "RECORD_RATE_HIGH": An attempt was made to record data faster than the server will apply updates. Corresponds to the JSON property failureCause

Returns:

  • (String)


764
765
766
# File 'generated/google/apis/games_v1/classes.rb', line 764

def failure_cause
  @failure_cause
end

#kindString

Uniquely identifies the type of this resource. Value is always the fixed string games#eventBatchRecordFailure. Corresponds to the JSON property kind

Returns:

  • (String)


770
771
772
# File 'generated/google/apis/games_v1/classes.rb', line 770

def kind
  @kind
end

#rangeGoogle::Apis::GamesV1::EventPeriodRange

This is a JSON template for an event period time range. Corresponds to the JSON property range



775
776
777
# File 'generated/google/apis/games_v1/classes.rb', line 775

def range
  @range
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



782
783
784
785
786
# File 'generated/google/apis/games_v1/classes.rb', line 782

def update!(**args)
  @failure_cause = args[:failure_cause] if args.key?(:failure_cause)
  @kind = args[:kind] if args.key?(:kind)
  @range = args[:range] if args.key?(:range)
end