{-# 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.GamesManagement.Players.Unhide
(
PlayersUnhideResource
, playersUnhide
, PlayersUnhide
, puApplicationId
, puPlayerId
) where
import Network.Google.GamesManagement.Types
import Network.Google.Prelude
type PlayersUnhideResource =
"games" :>
"v1management" :>
"applications" :>
Capture "applicationId" Text :>
"players" :>
"hidden" :>
Capture "playerId" Text :>
QueryParam "alt" AltJSON :> Delete '[JSON] ()
data PlayersUnhide = PlayersUnhide'
{ _puApplicationId :: !Text
, _puPlayerId :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
playersUnhide
:: Text
-> Text
-> PlayersUnhide
playersUnhide pPuApplicationId_ pPuPlayerId_ =
PlayersUnhide'
{ _puApplicationId = pPuApplicationId_
, _puPlayerId = pPuPlayerId_
}
puApplicationId :: Lens' PlayersUnhide Text
puApplicationId
= lens _puApplicationId
(\ s a -> s{_puApplicationId = a})
puPlayerId :: Lens' PlayersUnhide Text
puPlayerId
= lens _puPlayerId (\ s a -> s{_puPlayerId = a})
instance GoogleRequest PlayersUnhide where
type Rs PlayersUnhide = ()
type Scopes PlayersUnhide =
'["https://www.googleapis.com/auth/games"]
requestClient PlayersUnhide'{..}
= go _puApplicationId _puPlayerId (Just AltJSON)
gamesManagementService
where go
= buildClient (Proxy :: Proxy PlayersUnhideResource)
mempty