class Google::Apis::GamesV1::CreateRoomRequest
This is a JSON template for a room creation request.
Attributes
This is a JSON template for a room auto-match criteria object. Corresponds to the JSON property `autoMatchingCriteria` @return [Google::Apis::GamesV1::RoomAutoMatchingCriteria]
The capabilities that this client supports for realtime communication. Corresponds to the JSON property `capabilities` @return [Array<String>]
This is a JSON template for the client address when setting up a room. Corresponds to the JSON property `clientAddress` @return [Google::Apis::GamesV1::RoomClientAddress]
The player IDs to invite to the room. Corresponds to the JSON property `invitedPlayerIds` @return [Array<String>]
Uniquely identifies the type of this resource. Value is always the fixed string games#roomCreateRequest. Corresponds to the JSON property `kind` @return [String]
This is a JSON template for network diagnostics reported for a client. Corresponds to the JSON property `networkDiagnostics` @return [Google::Apis::GamesV1::NetworkDiagnostics]
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 3323 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File generated/google/apis/games_v1/classes.rb, line 3328 def update!(**args) @auto_matching_criteria = args[:auto_matching_criteria] if args.key?(:auto_matching_criteria) @capabilities = args[:capabilities] if args.key?(:capabilities) @client_address = args[:client_address] if args.key?(:client_address) @invited_player_ids = args[:invited_player_ids] if args.key?(:invited_player_ids) @kind = args[:kind] if args.key?(:kind) @network_diagnostics = args[:network_diagnostics] if args.key?(:network_diagnostics) @request_id = args[:request_id] if args.key?(:request_id) @variant = args[:variant] if args.key?(:variant) end