{-# 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.GamesManagement.Achievements.ResetAll -- Copyright : (c) 2015-2016 Brendan Hay -- License : Mozilla Public License, v. 2.0. -- Maintainer : Brendan Hay -- Stability : auto-generated -- Portability : non-portable (GHC extensions) -- -- Resets all achievements for the currently authenticated player for your -- application. This method is only accessible to whitelisted tester -- accounts for your application. -- -- /See:/ for @gamesManagement.achievements.resetAll@. module Network.Google.Resource.GamesManagement.Achievements.ResetAll ( -- * REST Resource AchievementsResetAllResource -- * Creating a Request , achievementsResetAll , AchievementsResetAll ) where import Network.Google.GamesManagement.Types import Network.Google.Prelude -- | A resource alias for @gamesManagement.achievements.resetAll@ method which the -- 'AchievementsResetAll' request conforms to. type AchievementsResetAllResource = "games" :> "v1management" :> "achievements" :> "reset" :> QueryParam "alt" AltJSON :> Post '[JSON] AchievementResetAllResponse -- | Resets all achievements for the currently authenticated player for your -- application. This method is only accessible to whitelisted tester -- accounts for your application. -- -- /See:/ 'achievementsResetAll' smart constructor. data AchievementsResetAll = AchievementsResetAll' deriving (Eq,Show,Data,Typeable,Generic) -- | Creates a value of 'AchievementsResetAll' with the minimum fields required to make a request. -- achievementsResetAll :: AchievementsResetAll achievementsResetAll = AchievementsResetAll' instance GoogleRequest AchievementsResetAll where type Rs AchievementsResetAll = AchievementResetAllResponse type Scopes AchievementsResetAll = '["https://www.googleapis.com/auth/games"] requestClient AchievementsResetAll'{} = go (Just AltJSON) gamesManagementService where go = buildClient (Proxy :: Proxy AchievementsResetAllResource) mempty