Class: Google::Apis::GamesV1::CreateRoomRequest
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::GamesV1::CreateRoomRequest
 
- 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 room creation request.
Instance Attribute Summary collapse
- 
  
    
      #auto_matching_criteria  ⇒ Google::Apis::GamesV1::RoomAutoMatchingCriteria 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    This is a JSON template for a room auto-match criteria object. 
- 
  
    
      #capabilities  ⇒ Array<String> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The capabilities that this client supports for realtime communication. 
- 
  
    
      #client_address  ⇒ Google::Apis::GamesV1::RoomClientAddress 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    This is a JSON template for the client address when setting up a room. 
- 
  
    
      #invited_player_ids  ⇒ Array<String> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The player IDs to invite to the room. 
- 
  
    
      #kind  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Uniquely identifies the type of this resource. 
- 
  
    
      #network_diagnostics  ⇒ Google::Apis::GamesV1::NetworkDiagnostics 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    This is a JSON template for network diagnostics reported for a client. 
- 
  
    
      #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)  ⇒ CreateRoomRequest 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of CreateRoomRequest. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ CreateRoomRequest
Returns a new instance of CreateRoomRequest
| 3359 3360 3361 | # File 'generated/google/apis/games_v1/classes.rb', line 3359 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#auto_matching_criteria ⇒ Google::Apis::GamesV1::RoomAutoMatchingCriteria
This is a JSON template for a room auto-match criteria object.
Corresponds to the JSON property autoMatchingCriteria
| 3318 3319 3320 | # File 'generated/google/apis/games_v1/classes.rb', line 3318 def auto_matching_criteria @auto_matching_criteria end | 
#capabilities ⇒ Array<String>
The capabilities that this client supports for realtime communication.
Corresponds to the JSON property capabilities
| 3323 3324 3325 | # File 'generated/google/apis/games_v1/classes.rb', line 3323 def capabilities @capabilities end | 
#client_address ⇒ Google::Apis::GamesV1::RoomClientAddress
This is a JSON template for the client address when setting up a room.
Corresponds to the JSON property clientAddress
| 3328 3329 3330 | # File 'generated/google/apis/games_v1/classes.rb', line 3328 def client_address @client_address end | 
#invited_player_ids ⇒ Array<String>
The player IDs to invite to the room.
Corresponds to the JSON property invitedPlayerIds
| 3333 3334 3335 | # File 'generated/google/apis/games_v1/classes.rb', line 3333 def invited_player_ids @invited_player_ids end | 
#kind ⇒ String
Uniquely identifies the type of this resource. Value is always the fixed
string games#roomCreateRequest.
Corresponds to the JSON property kind
| 3339 3340 3341 | # File 'generated/google/apis/games_v1/classes.rb', line 3339 def kind @kind end | 
#network_diagnostics ⇒ Google::Apis::GamesV1::NetworkDiagnostics
This is a JSON template for network diagnostics reported for a client.
Corresponds to the JSON property networkDiagnostics
| 3344 3345 3346 | # File 'generated/google/apis/games_v1/classes.rb', line 3344 def network_diagnostics @network_diagnostics 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
| 3350 3351 3352 | # File 'generated/google/apis/games_v1/classes.rb', line 3350 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
| 3357 3358 3359 | # File 'generated/google/apis/games_v1/classes.rb', line 3357 def variant @variant end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 3364 3365 3366 3367 3368 3369 3370 3371 3372 3373 | # File 'generated/google/apis/games_v1/classes.rb', line 3364 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 |