{-# 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.Games.Pushtokens.Remove
(
PushtokensRemoveResource
, pushtokensRemove
, PushtokensRemove
, prPayload
) where
import Network.Google.Games.Types
import Network.Google.Prelude
type PushtokensRemoveResource =
"games" :>
"v1" :>
"pushtokens" :>
"remove" :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON] PushTokenId :> Post '[JSON] ()
newtype PushtokensRemove = PushtokensRemove'
{ _prPayload :: PushTokenId
} deriving (Eq,Show,Data,Typeable,Generic)
pushtokensRemove
:: PushTokenId
-> PushtokensRemove
pushtokensRemove pPrPayload_ =
PushtokensRemove'
{ _prPayload = pPrPayload_
}
prPayload :: Lens' PushtokensRemove PushTokenId
prPayload
= lens _prPayload (\ s a -> s{_prPayload = a})
instance GoogleRequest PushtokensRemove where
type Rs PushtokensRemove = ()
type Scopes PushtokensRemove =
'["https://www.googleapis.com/auth/games"]
requestClient PushtokensRemove'{..}
= go (Just AltJSON) _prPayload gamesService
where go
= buildClient
(Proxy :: Proxy PushtokensRemoveResource)
mempty