{-# 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.Delete
(
TasksDeleteResource
, tasksDelete
, TasksDelete
, tdTaskList
, tdTask
) where
import Network.Google.AppsTasks.Types
import Network.Google.Prelude
type TasksDeleteResource =
"tasks" :>
"v1" :>
"lists" :>
Capture "tasklist" Text :>
"tasks" :>
Capture "task" Text :>
QueryParam "alt" AltJSON :> Delete '[JSON] ()
data TasksDelete = TasksDelete'
{ _tdTaskList :: !Text
, _tdTask :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
tasksDelete
:: Text
-> Text
-> TasksDelete
tasksDelete pTdTaskList_ pTdTask_ =
TasksDelete'
{ _tdTaskList = pTdTaskList_
, _tdTask = pTdTask_
}
tdTaskList :: Lens' TasksDelete Text
tdTaskList
= lens _tdTaskList (\ s a -> s{_tdTaskList = a})
tdTask :: Lens' TasksDelete Text
tdTask = lens _tdTask (\ s a -> s{_tdTask = a})
instance GoogleRequest TasksDelete where
type Rs TasksDelete = ()
type Scopes TasksDelete =
'["https://www.googleapis.com/auth/tasks"]
requestClient TasksDelete'{..}
= go _tdTaskList _tdTask (Just AltJSON)
appsTasksService
where go
= buildClient (Proxy :: Proxy TasksDeleteResource)
mempty