Class: Google::Apis::GamesV1::EventRecordFailure
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::GamesV1::EventRecordFailure
 
- 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 an event update failure resource.
Instance Attribute Summary collapse
- 
  
    
      #event_id  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The ID of the event that was not updated. 
- 
  
    
      #failure_cause  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The cause for the update failure. 
- 
  
    
      #kind  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Uniquely identifies the type of this resource. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ EventRecordFailure 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of EventRecordFailure. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ EventRecordFailure
Returns a new instance of EventRecordFailure
| 1004 1005 1006 | # File 'generated/google/apis/games_v1/classes.rb', line 1004 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#event_id ⇒ String
The ID of the event that was not updated.
Corresponds to the JSON property eventId
| 987 988 989 | # File 'generated/google/apis/games_v1/classes.rb', line 987 def event_id @event_id end | 
#failure_cause ⇒ String
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
| 996 997 998 | # File 'generated/google/apis/games_v1/classes.rb', line 996 def failure_cause @failure_cause end | 
#kind ⇒ String
Uniquely identifies the type of this resource. Value is always the fixed
string games#eventRecordFailure.
Corresponds to the JSON property kind
| 1002 1003 1004 | # File 'generated/google/apis/games_v1/classes.rb', line 1002 def kind @kind end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 1009 1010 1011 1012 1013 | # 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 |