{-# 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.Events.ResetForAllPlayers
(
EventsResetForAllPlayersResource
, eventsResetForAllPlayers
, EventsResetForAllPlayers
, erfapEventId
) where
import Network.Google.GamesManagement.Types
import Network.Google.Prelude
type EventsResetForAllPlayersResource =
"games" :>
"v1management" :>
"events" :>
Capture "eventId" Text :>
"resetForAllPlayers" :>
QueryParam "alt" AltJSON :> Post '[JSON] ()
newtype EventsResetForAllPlayers = EventsResetForAllPlayers'
{ _erfapEventId :: Text
} deriving (Eq,Show,Data,Typeable,Generic)
eventsResetForAllPlayers
:: Text
-> EventsResetForAllPlayers
eventsResetForAllPlayers pErfapEventId_ =
EventsResetForAllPlayers'
{ _erfapEventId = pErfapEventId_
}
erfapEventId :: Lens' EventsResetForAllPlayers Text
erfapEventId
= lens _erfapEventId (\ s a -> s{_erfapEventId = a})
instance GoogleRequest EventsResetForAllPlayers where
type Rs EventsResetForAllPlayers = ()
type Scopes EventsResetForAllPlayers =
'["https://www.googleapis.com/auth/games"]
requestClient EventsResetForAllPlayers'{..}
= go _erfapEventId (Just AltJSON)
gamesManagementService
where go
= buildClient
(Proxy :: Proxy EventsResetForAllPlayersResource)
mempty