{-# 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.AchievementConfigurations.Delete
(
AchievementConfigurationsDeleteResource
, achievementConfigurationsDelete
, AchievementConfigurationsDelete
, acdAchievementId
) where
import Network.Google.GamesConfiguration.Types
import Network.Google.Prelude
type AchievementConfigurationsDeleteResource =
"games" :>
"v1configuration" :>
"achievements" :>
Capture "achievementId" Text :>
QueryParam "alt" AltJSON :> Delete '[JSON] ()
newtype AchievementConfigurationsDelete = AchievementConfigurationsDelete'
{ _acdAchievementId :: Text
} deriving (Eq,Show,Data,Typeable,Generic)
achievementConfigurationsDelete
:: Text
-> AchievementConfigurationsDelete
achievementConfigurationsDelete pAcdAchievementId_ =
AchievementConfigurationsDelete'
{ _acdAchievementId = pAcdAchievementId_
}
acdAchievementId :: Lens' AchievementConfigurationsDelete Text
acdAchievementId
= lens _acdAchievementId
(\ s a -> s{_acdAchievementId = a})
instance GoogleRequest
AchievementConfigurationsDelete where
type Rs AchievementConfigurationsDelete = ()
type Scopes AchievementConfigurationsDelete =
'["https://www.googleapis.com/auth/androidpublisher"]
requestClient AchievementConfigurationsDelete'{..}
= go _acdAchievementId (Just AltJSON)
gamesConfigurationService
where go
= buildClient
(Proxy ::
Proxy AchievementConfigurationsDeleteResource)
mempty