{-# 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.SetStepsAtLeast
(
AchievementsSetStepsAtLeastResource
, achievementsSetStepsAtLeast
, AchievementsSetStepsAtLeast
, assalAchievementId
, assalSteps
) where
import Network.Google.Games.Types
import Network.Google.Prelude
type AchievementsSetStepsAtLeastResource =
"games" :>
"v1" :>
"achievements" :>
Capture "achievementId" Text :>
"setStepsAtLeast" :>
QueryParam "steps" (Textual Int32) :>
QueryParam "alt" AltJSON :>
Post '[JSON] AchievementSetStepsAtLeastResponse
data AchievementsSetStepsAtLeast = AchievementsSetStepsAtLeast'
{ _assalAchievementId :: !Text
, _assalSteps :: !(Textual Int32)
} deriving (Eq,Show,Data,Typeable,Generic)
achievementsSetStepsAtLeast
:: Text
-> Int32
-> AchievementsSetStepsAtLeast
achievementsSetStepsAtLeast pAssalAchievementId_ pAssalSteps_ =
AchievementsSetStepsAtLeast'
{ _assalAchievementId = pAssalAchievementId_
, _assalSteps = _Coerce # pAssalSteps_
}
assalAchievementId :: Lens' AchievementsSetStepsAtLeast Text
assalAchievementId
= lens _assalAchievementId
(\ s a -> s{_assalAchievementId = a})
assalSteps :: Lens' AchievementsSetStepsAtLeast Int32
assalSteps
= lens _assalSteps (\ s a -> s{_assalSteps = a}) .
_Coerce
instance GoogleRequest AchievementsSetStepsAtLeast
where
type Rs AchievementsSetStepsAtLeast =
AchievementSetStepsAtLeastResponse
type Scopes AchievementsSetStepsAtLeast =
'["https://www.googleapis.com/auth/games"]
requestClient AchievementsSetStepsAtLeast'{..}
= go _assalAchievementId (Just _assalSteps)
(Just AltJSON)
gamesService
where go
= buildClient
(Proxy :: Proxy AchievementsSetStepsAtLeastResource)
mempty