Class: Google::Apis::GamesV1::CreateTurnBasedMatchRequest
- Inherits:
-
Object
- Object
- Google::Apis::GamesV1::CreateTurnBasedMatchRequest
- 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 turn-based match creation request.
Instance Attribute Summary collapse
-
#auto_matching_criteria ⇒ Google::Apis::GamesV1::TurnBasedAutoMatchingCriteria
This is a JSON template for an turn-based auto-match criteria object.
-
#invited_player_ids ⇒ Array<String>
The player ids to invite to the match.
-
#kind ⇒ String
Uniquely identifies the type of this resource.
-
#request_id ⇒ Fixnum
A randomly generated numeric ID.
-
#variant ⇒ Fixnum
The variant / mode of the application to be played.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CreateTurnBasedMatchRequest
constructor
A new instance of CreateTurnBasedMatchRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ CreateTurnBasedMatchRequest
Returns a new instance of CreateTurnBasedMatchRequest.
4015 4016 4017 |
# File 'generated/google/apis/games_v1/classes.rb', line 4015 def initialize(**args) update!(**args) end |
Instance Attribute Details
#auto_matching_criteria ⇒ Google::Apis::GamesV1::TurnBasedAutoMatchingCriteria
This is a JSON template for an turn-based auto-match criteria object.
Corresponds to the JSON property autoMatchingCriteria
3989 3990 3991 |
# File 'generated/google/apis/games_v1/classes.rb', line 3989 def auto_matching_criteria @auto_matching_criteria end |
#invited_player_ids ⇒ Array<String>
The player ids to invite to the match.
Corresponds to the JSON property invitedPlayerIds
3994 3995 3996 |
# File 'generated/google/apis/games_v1/classes.rb', line 3994 def invited_player_ids @invited_player_ids end |
#kind ⇒ String
Uniquely identifies the type of this resource. Value is always the fixed
string games#turnBasedMatchCreateRequest.
Corresponds to the JSON property kind
4000 4001 4002 |
# File 'generated/google/apis/games_v1/classes.rb', line 4000 def kind @kind end |
#request_id ⇒ Fixnum
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
4006 4007 4008 |
# File 'generated/google/apis/games_v1/classes.rb', line 4006 def request_id @request_id end |
#variant ⇒ Fixnum
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
4013 4014 4015 |
# File 'generated/google/apis/games_v1/classes.rb', line 4013 def variant @variant end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4020 4021 4022 4023 4024 4025 4026 |
# File 'generated/google/apis/games_v1/classes.rb', line 4020 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 |