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

This is a JSON template for an event period update 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) ⇒ UpdateEventRequest

Returns a new instance of UpdateEventRequest.



1075
1076
1077
# File 'generated/google/apis/games_v1/classes.rb', line 1075

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)


1062
1063
1064
# File 'generated/google/apis/games_v1/classes.rb', line 1062

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)


1068
1069
1070
# File 'generated/google/apis/games_v1/classes.rb', line 1068

def kind
  @kind
end

#update_countString

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

Returns:

  • (String)


1073
1074
1075
# File 'generated/google/apis/games_v1/classes.rb', line 1073

def update_count
  @update_count
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1080
1081
1082
1083
1084
# File 'generated/google/apis/games_v1/classes.rb', line 1080

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