{-# 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.Achievements.Reveal
(
AchievementsRevealResource
, achievementsReveal
, AchievementsReveal
, arAchievementId
) where
import Network.Google.Games.Types
import Network.Google.Prelude
type AchievementsRevealResource =
"games" :>
"v1" :>
"achievements" :>
Capture "achievementId" Text :>
"reveal" :>
QueryParam "alt" AltJSON :>
Post '[JSON] AchievementRevealResponse
newtype AchievementsReveal = AchievementsReveal'
{ _arAchievementId :: Text
} deriving (Eq,Show,Data,Typeable,Generic)
achievementsReveal
:: Text
-> AchievementsReveal
achievementsReveal pArAchievementId_ =
AchievementsReveal'
{ _arAchievementId = pArAchievementId_
}
arAchievementId :: Lens' AchievementsReveal Text
arAchievementId
= lens _arAchievementId
(\ s a -> s{_arAchievementId = a})
instance GoogleRequest AchievementsReveal where
type Rs AchievementsReveal =
AchievementRevealResponse
type Scopes AchievementsReveal =
'["https://www.googleapis.com/auth/games"]
requestClient AchievementsReveal'{..}
= go _arAchievementId (Just AltJSON) gamesService
where go
= buildClient
(Proxy :: Proxy AchievementsRevealResource)
mempty