{-# 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.Tasks.Tasks.Clear
(
TasksClearResource
, tasksClear
, TasksClear
, tcTaskList
) where
import Network.Google.AppsTasks.Types
import Network.Google.Prelude
type TasksClearResource =
"tasks" :>
"v1" :>
"lists" :>
Capture "tasklist" Text :>
"clear" :>
QueryParam "alt" AltJSON :> Post '[JSON] ()
newtype TasksClear = TasksClear'
{ _tcTaskList :: Text
} deriving (Eq,Show,Data,Typeable,Generic)
tasksClear
:: Text
-> TasksClear
tasksClear pTcTaskList_ =
TasksClear'
{ _tcTaskList = pTcTaskList_
}
tcTaskList :: Lens' TasksClear Text
tcTaskList
= lens _tcTaskList (\ s a -> s{_tcTaskList = a})
instance GoogleRequest TasksClear where
type Rs TasksClear = ()
type Scopes TasksClear =
'["https://www.googleapis.com/auth/tasks"]
requestClient TasksClear'{..}
= go _tcTaskList (Just AltJSON) appsTasksService
where go
= buildClient (Proxy :: Proxy TasksClearResource)
mempty