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