{-# 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.Quests.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 player progress on all quests for the currently authenticated -- player. This method is only accessible to whitelisted tester accounts -- for your application. -- -- /See:/ for @gamesManagement.quests.resetAll@. module Network.Google.Resource.GamesManagement.Quests.ResetAll ( -- * REST Resource QuestsResetAllResource -- * Creating a Request , questsResetAll , QuestsResetAll ) where import Network.Google.GamesManagement.Types import Network.Google.Prelude -- | A resource alias for @gamesManagement.quests.resetAll@ method which the -- 'QuestsResetAll' request conforms to. type QuestsResetAllResource = "games" :> "v1management" :> "quests" :> "reset" :> QueryParam "alt" AltJSON :> Post '[JSON] () -- | Resets all player progress on all quests for the currently authenticated -- player. This method is only accessible to whitelisted tester accounts -- for your application. -- -- /See:/ 'questsResetAll' smart constructor. data QuestsResetAll = QuestsResetAll' deriving (Eq, Show, Data, Typeable, Generic) -- | Creates a value of 'QuestsResetAll' with the minimum fields required to make a request. -- questsResetAll :: QuestsResetAll questsResetAll = QuestsResetAll' instance GoogleRequest QuestsResetAll where type Rs QuestsResetAll = () type Scopes QuestsResetAll = '["https://www.googleapis.com/auth/games"] requestClient QuestsResetAll'{} = go (Just AltJSON) gamesManagementService where go = buildClient (Proxy :: Proxy QuestsResetAllResource) mempty