{-# 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.TurnBasedMatches.Cancel
(
TurnBasedMatchesCancelResource
, turnBasedMatchesCancel
, TurnBasedMatchesCancel
, tbmcMatchId
) where
import Network.Google.Games.Types
import Network.Google.Prelude
type TurnBasedMatchesCancelResource =
"games" :>
"v1" :>
"turnbasedmatches" :>
Capture "matchId" Text :>
"cancel" :>
QueryParam "alt" AltJSON :> Put '[JSON] ()
newtype TurnBasedMatchesCancel = TurnBasedMatchesCancel'
{ _tbmcMatchId :: Text
} deriving (Eq,Show,Data,Typeable,Generic)
turnBasedMatchesCancel
:: Text
-> TurnBasedMatchesCancel
turnBasedMatchesCancel pTbmcMatchId_ =
TurnBasedMatchesCancel'
{ _tbmcMatchId = pTbmcMatchId_
}
tbmcMatchId :: Lens' TurnBasedMatchesCancel Text
tbmcMatchId
= lens _tbmcMatchId (\ s a -> s{_tbmcMatchId = a})
instance GoogleRequest TurnBasedMatchesCancel where
type Rs TurnBasedMatchesCancel = ()
type Scopes TurnBasedMatchesCancel =
'["https://www.googleapis.com/auth/games"]
requestClient TurnBasedMatchesCancel'{..}
= go _tbmcMatchId (Just AltJSON) gamesService
where go
= buildClient
(Proxy :: Proxy TurnBasedMatchesCancelResource)
mempty