{-# 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.GamesConfiguration.LeaderboardConfigurations.Delete
(
LeaderboardConfigurationsDeleteResource
, leaderboardConfigurationsDelete
, LeaderboardConfigurationsDelete
, lcdLeaderboardId
) where
import Network.Google.GamesConfiguration.Types
import Network.Google.Prelude
type LeaderboardConfigurationsDeleteResource =
"games" :>
"v1configuration" :>
"leaderboards" :>
Capture "leaderboardId" Text :>
QueryParam "alt" AltJSON :> Delete '[JSON] ()
newtype LeaderboardConfigurationsDelete = LeaderboardConfigurationsDelete'
{ _lcdLeaderboardId :: Text
} deriving (Eq,Show,Data,Typeable,Generic)
leaderboardConfigurationsDelete
:: Text
-> LeaderboardConfigurationsDelete
leaderboardConfigurationsDelete pLcdLeaderboardId_ =
LeaderboardConfigurationsDelete'
{ _lcdLeaderboardId = pLcdLeaderboardId_
}
lcdLeaderboardId :: Lens' LeaderboardConfigurationsDelete Text
lcdLeaderboardId
= lens _lcdLeaderboardId
(\ s a -> s{_lcdLeaderboardId = a})
instance GoogleRequest
LeaderboardConfigurationsDelete where
type Rs LeaderboardConfigurationsDelete = ()
type Scopes LeaderboardConfigurationsDelete =
'["https://www.googleapis.com/auth/androidpublisher"]
requestClient LeaderboardConfigurationsDelete'{..}
= go _lcdLeaderboardId (Just AltJSON)
gamesConfigurationService
where go
= buildClient
(Proxy ::
Proxy LeaderboardConfigurationsDeleteResource)
mempty