{-# 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.Hide
(
PlayersHideResource
, playersHide
, PlayersHide
, phApplicationId
, phPlayerId
) where
import Network.Google.GamesManagement.Types
import Network.Google.Prelude
type PlayersHideResource =
"games" :>
"v1management" :>
"applications" :>
Capture "applicationId" Text :>
"players" :>
"hidden" :>
Capture "playerId" Text :>
QueryParam "alt" AltJSON :> Post '[JSON] ()
data PlayersHide = PlayersHide'
{ _phApplicationId :: !Text
, _phPlayerId :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
playersHide
:: Text
-> Text
-> PlayersHide
playersHide pPhApplicationId_ pPhPlayerId_ =
PlayersHide'
{ _phApplicationId = pPhApplicationId_
, _phPlayerId = pPhPlayerId_
}
phApplicationId :: Lens' PlayersHide Text
phApplicationId
= lens _phApplicationId
(\ s a -> s{_phApplicationId = a})
phPlayerId :: Lens' PlayersHide Text
phPlayerId
= lens _phPlayerId (\ s a -> s{_phPlayerId = a})
instance GoogleRequest PlayersHide where
type Rs PlayersHide = ()
type Scopes PlayersHide =
'["https://www.googleapis.com/auth/games"]
requestClient PlayersHide'{..}
= go _phApplicationId _phPlayerId (Just AltJSON)
gamesManagementService
where go
= buildClient (Proxy :: Proxy PlayersHideResource)
mempty