{-# 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.TaskLists.Delete
(
TaskListsDeleteResource
, taskListsDelete
, TaskListsDelete
, tldTaskList
) where
import Network.Google.AppsTasks.Types
import Network.Google.Prelude
type TaskListsDeleteResource =
"tasks" :>
"v1" :>
"users" :>
"@me" :>
"lists" :>
Capture "tasklist" Text :>
QueryParam "alt" AltJSON :> Delete '[JSON] ()
newtype TaskListsDelete = TaskListsDelete'
{ _tldTaskList :: Text
} deriving (Eq,Show,Data,Typeable,Generic)
taskListsDelete
:: Text
-> TaskListsDelete
taskListsDelete pTldTaskList_ =
TaskListsDelete'
{ _tldTaskList = pTldTaskList_
}
tldTaskList :: Lens' TaskListsDelete Text
tldTaskList
= lens _tldTaskList (\ s a -> s{_tldTaskList = a})
instance GoogleRequest TaskListsDelete where
type Rs TaskListsDelete = ()
type Scopes TaskListsDelete =
'["https://www.googleapis.com/auth/tasks"]
requestClient TaskListsDelete'{..}
= go _tldTaskList (Just AltJSON) appsTasksService
where go
= buildClient
(Proxy :: Proxy TaskListsDeleteResource)
mempty