gogol-games-0.3.0: Google Play Game Services SDK.

Copyright(c) 2015-2016 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.Google.Resource.Games.Rooms.Create

Contents

Description

Create a room. For internal use by the Games SDK only. Calling this method directly is unsupported.

See: Google Play Game Services API Reference for games.rooms.create.

Synopsis

REST Resource

type RoomsCreateResource = "games" :> ("v1" :> ("rooms" :> ("create" :> (QueryParam "consistencyToken" (Textual Int64) :> (QueryParam "language" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] RoomCreateRequest :> Post '[JSON] Room))))))) Source #

A resource alias for games.rooms.create method which the RoomsCreate request conforms to.

Creating a Request

roomsCreate Source #

Creates a value of RoomsCreate with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data RoomsCreate Source #

Create a room. For internal use by the Games SDK only. Calling this method directly is unsupported.

See: roomsCreate smart constructor.

Instances

Eq RoomsCreate Source # 
Data RoomsCreate Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> RoomsCreate -> c RoomsCreate #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c RoomsCreate #

toConstr :: RoomsCreate -> Constr #

dataTypeOf :: RoomsCreate -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c RoomsCreate) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c RoomsCreate) #

gmapT :: (forall b. Data b => b -> b) -> RoomsCreate -> RoomsCreate #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> RoomsCreate -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> RoomsCreate -> r #

gmapQ :: (forall d. Data d => d -> u) -> RoomsCreate -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> RoomsCreate -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> RoomsCreate -> m RoomsCreate #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> RoomsCreate -> m RoomsCreate #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> RoomsCreate -> m RoomsCreate #

Show RoomsCreate Source # 
Generic RoomsCreate Source # 

Associated Types

type Rep RoomsCreate :: * -> * #

GoogleRequest RoomsCreate Source # 

Associated Types

type Rs RoomsCreate :: * #

type Scopes RoomsCreate :: [Symbol] #

type Rep RoomsCreate Source # 
type Rep RoomsCreate = D1 (MetaData "RoomsCreate" "Network.Google.Resource.Games.Rooms.Create" "gogol-games-0.3.0-8BCKppY4rzpLLml8wyBtKz" False) (C1 (MetaCons "RoomsCreate'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_rcConsistencyToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Textual Int64)))) ((:*:) (S1 (MetaSel (Just Symbol "_rcPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 RoomCreateRequest)) (S1 (MetaSel (Just Symbol "_rcLanguage") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))))
type Scopes RoomsCreate Source # 
type Scopes RoomsCreate = (:) Symbol "https://www.googleapis.com/auth/games" ((:) Symbol "https://www.googleapis.com/auth/plus.login" ([] Symbol))
type Rs RoomsCreate Source # 

Request Lenses

rcConsistencyToken :: Lens' RoomsCreate (Maybe Int64) Source #

The last-seen mutation timestamp.

rcPayload :: Lens' RoomsCreate RoomCreateRequest Source #

Multipart request metadata.

rcLanguage :: Lens' RoomsCreate (Maybe Text) Source #

The preferred language to use for strings returned by this method.