{-# 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.Quests.ResetForAllPlayers
(
QuestsResetForAllPlayersResource
, questsResetForAllPlayers
, QuestsResetForAllPlayers
, qrfapQuestId
) where
import Network.Google.GamesManagement.Types
import Network.Google.Prelude
type QuestsResetForAllPlayersResource =
"games" :>
"v1management" :>
"quests" :>
Capture "questId" Text :>
"resetForAllPlayers" :>
QueryParam "alt" AltJSON :> Post '[JSON] ()
newtype QuestsResetForAllPlayers = QuestsResetForAllPlayers'
{ _qrfapQuestId :: Text
} deriving (Eq,Show,Data,Typeable,Generic)
questsResetForAllPlayers
:: Text
-> QuestsResetForAllPlayers
questsResetForAllPlayers pQrfapQuestId_ =
QuestsResetForAllPlayers'
{ _qrfapQuestId = pQrfapQuestId_
}
qrfapQuestId :: Lens' QuestsResetForAllPlayers Text
qrfapQuestId
= lens _qrfapQuestId (\ s a -> s{_qrfapQuestId = a})
instance GoogleRequest QuestsResetForAllPlayers where
type Rs QuestsResetForAllPlayers = ()
type Scopes QuestsResetForAllPlayers =
'["https://www.googleapis.com/auth/games"]
requestClient QuestsResetForAllPlayers'{..}
= go _qrfapQuestId (Just AltJSON)
gamesManagementService
where go
= buildClient
(Proxy :: Proxy QuestsResetForAllPlayersResource)
mempty