{-# 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.ResetMultipleForAllPlayers
(
EventsResetMultipleForAllPlayersResource
, eventsResetMultipleForAllPlayers
, EventsResetMultipleForAllPlayers
, ermfapPayload
) where
import Network.Google.GamesManagement.Types
import Network.Google.Prelude
type EventsResetMultipleForAllPlayersResource =
"games" :>
"v1management" :>
"events" :>
"resetMultipleForAllPlayers" :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON] EventsResetMultipleForAllRequest :>
Post '[JSON] ()
newtype EventsResetMultipleForAllPlayers = EventsResetMultipleForAllPlayers'
{ _ermfapPayload :: EventsResetMultipleForAllRequest
} deriving (Eq,Show,Data,Typeable,Generic)
eventsResetMultipleForAllPlayers
:: EventsResetMultipleForAllRequest
-> EventsResetMultipleForAllPlayers
eventsResetMultipleForAllPlayers pErmfapPayload_ =
EventsResetMultipleForAllPlayers'
{ _ermfapPayload = pErmfapPayload_
}
ermfapPayload :: Lens' EventsResetMultipleForAllPlayers EventsResetMultipleForAllRequest
ermfapPayload
= lens _ermfapPayload
(\ s a -> s{_ermfapPayload = a})
instance GoogleRequest
EventsResetMultipleForAllPlayers where
type Rs EventsResetMultipleForAllPlayers = ()
type Scopes EventsResetMultipleForAllPlayers =
'["https://www.googleapis.com/auth/games"]
requestClient EventsResetMultipleForAllPlayers'{..}
= go (Just AltJSON) _ermfapPayload
gamesManagementService
where go
= buildClient
(Proxy ::
Proxy EventsResetMultipleForAllPlayersResource)
mempty