{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators #-}
{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
{-# OPTIONS_GHC -fno-warn-unused-binds #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Network.Google.Resource.Games.Rooms.Dismiss
(
RoomsDismissResource
, roomsDismiss
, RoomsDismiss
, rdRoomId
) where
import Network.Google.Games.Types
import Network.Google.Prelude
type RoomsDismissResource =
"games" :>
"v1" :>
"rooms" :>
Capture "roomId" Text :>
"dismiss" :>
QueryParam "alt" AltJSON :> Post '[JSON] ()
newtype RoomsDismiss = RoomsDismiss'
{ _rdRoomId :: Text
} deriving (Eq,Show,Data,Typeable,Generic)
roomsDismiss
:: Text
-> RoomsDismiss
roomsDismiss pRdRoomId_ =
RoomsDismiss'
{ _rdRoomId = pRdRoomId_
}
rdRoomId :: Lens' RoomsDismiss Text
rdRoomId = lens _rdRoomId (\ s a -> s{_rdRoomId = a})
instance GoogleRequest RoomsDismiss where
type Rs RoomsDismiss = ()
type Scopes RoomsDismiss =
'["https://www.googleapis.com/auth/games"]
requestClient RoomsDismiss'{..}
= go _rdRoomId (Just AltJSON) gamesService
where go
= buildClient (Proxy :: Proxy RoomsDismissResource)
mempty