Class: Google::Apis::GamesV1::UpdateEventRequest

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

An event period update resource.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ UpdateEventRequest

Returns a new instance of UpdateEventRequest.



1006
1007
1008
# File 'generated/google/apis/games_v1/classes.rb', line 1006

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

Instance Attribute Details

#definition_idString

The ID of the event being modified in this update. Corresponds to the JSON property definitionId

Returns:

  • (String)


993
994
995
# File 'generated/google/apis/games_v1/classes.rb', line 993

def definition_id
  @definition_id
end

#kindString

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

Returns:

  • (String)


999
1000
1001
# File 'generated/google/apis/games_v1/classes.rb', line 999

def kind
  @kind
end

#update_countFixnum

The number of times this event occurred in this time period. Corresponds to the JSON property updateCount

Returns:

  • (Fixnum)


1004
1005
1006
# File 'generated/google/apis/games_v1/classes.rb', line 1004

def update_count
  @update_count
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1011
1012
1013
1014
1015
# File 'generated/google/apis/games_v1/classes.rb', line 1011

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