{-# 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 -- Copyright : (c) 2015 Brendan Hay -- License : Mozilla Public License, v. 2.0. -- Maintainer : Brendan Hay -- Stability : auto-generated -- Portability : non-portable (GHC extensions) -- -- Dismiss an invitation to join a room. For internal use by the Games SDK -- only. Calling this method directly is unsupported. -- -- /See:/ for @games.rooms.dismiss@. module Network.Google.Resource.Games.Rooms.Dismiss ( -- * REST Resource RoomsDismissResource -- * Creating a Request , roomsDismiss , RoomsDismiss -- * Request Lenses , rdRoomId ) where import Network.Google.Games.Types import Network.Google.Prelude -- | A resource alias for @games.rooms.dismiss@ method which the -- 'RoomsDismiss' request conforms to. type RoomsDismissResource = "games" :> "v1" :> "rooms" :> Capture "roomId" Text :> "dismiss" :> QueryParam "alt" AltJSON :> Post '[JSON] () -- | Dismiss an invitation to join a room. For internal use by the Games SDK -- only. Calling this method directly is unsupported. -- -- /See:/ 'roomsDismiss' smart constructor. newtype RoomsDismiss = RoomsDismiss { _rdRoomId :: Text } deriving (Eq,Show,Data,Typeable,Generic) -- | Creates a value of 'RoomsDismiss' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired: -- -- * 'rdRoomId' roomsDismiss :: Text -- ^ 'rdRoomId' -> RoomsDismiss roomsDismiss pRdRoomId_ = RoomsDismiss { _rdRoomId = pRdRoomId_ } -- | The ID of the room. rdRoomId :: Lens' RoomsDismiss Text rdRoomId = lens _rdRoomId (\ s a -> s{_rdRoomId = a}) instance GoogleRequest RoomsDismiss where type Rs RoomsDismiss = () requestClient RoomsDismiss{..} = go _rdRoomId (Just AltJSON) gamesService where go = buildClient (Proxy :: Proxy RoomsDismissResource) mempty