{-# 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] ()
-- | Delete the achievement configuration with the given ID.
--
-- /See:/ 'achievementConfigurationsDelete' smart constructor.
newtype AchievementConfigurationsDelete = AchievementConfigurationsDelete'
{ _acdAchievementId :: Text
} deriving (Eq,Show,Data,Typeable,Generic)
-- | Creates a value of 'AchievementConfigurationsDelete' with the minimum fields required to make a request.
--
-- Use one of the following lenses to modify other fields as desired:
--
-- * 'acdAchievementId'
achievementConfigurationsDelete
:: Text -- ^ 'acdAchievementId'
-> AchievementConfigurationsDelete
achievementConfigurationsDelete pAcdAchievementId_ =
AchievementConfigurationsDelete'
{ _acdAchievementId = pAcdAchievementId_
}
-- | The ID of the achievement used by this method.
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