class Google::Apis::GamesV1::CreateTurnBasedMatchRequest
This is a JSON template for a turn-based match creation request.
Attributes
This is a JSON template for an turn-based auto-match criteria object. Corresponds to the JSON property `autoMatchingCriteria` @return [Google::Apis::GamesV1::TurnBasedAutoMatchingCriteria]
The player ids to invite to the match. Corresponds to the JSON property `invitedPlayerIds` @return [Array<String>]
Uniquely identifies the type of this resource. Value is always the fixed string games#turnBasedMatchCreateRequest. Corresponds to the JSON property `kind` @return [String]
A randomly generated numeric ID. This number is used at the server to ensure that the request is handled correctly across retries. Corresponds to the JSON property `requestId` @return [String]
The variant / mode of the application to be played. This can be any integer value, or left blank. You should use a small number of variants to keep the auto-matching pool as large as possible. Corresponds to the JSON property `variant` @return [Fixnum]
Public Class Methods
# File generated/google/apis/games_v1/classes.rb, line 4266 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File generated/google/apis/games_v1/classes.rb, line 4271 def update!(**args) @auto_matching_criteria = args[:auto_matching_criteria] if args.key?(:auto_matching_criteria) @invited_player_ids = args[:invited_player_ids] if args.key?(:invited_player_ids) @kind = args[:kind] if args.key?(:kind) @request_id = args[:request_id] if args.key?(:request_id) @variant = args[:variant] if args.key?(:variant) end