{-# 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.List
(
TaskListsListResource
, taskListsList
, TaskListsList
, tllPageToken
, tllMaxResults
) where
import Network.Google.AppsTasks.Types
import Network.Google.Prelude
type TaskListsListResource =
"tasks" :>
"v1" :>
"users" :>
"@me" :>
"lists" :>
QueryParam "pageToken" Text :>
QueryParam "maxResults" (Textual Int64) :>
QueryParam "alt" AltJSON :> Get '[JSON] TaskLists
data TaskListsList = TaskListsList'
{ _tllPageToken :: !(Maybe Text)
, _tllMaxResults :: !(Maybe (Textual Int64))
} deriving (Eq,Show,Data,Typeable,Generic)
taskListsList
:: TaskListsList
taskListsList =
TaskListsList'
{ _tllPageToken = Nothing
, _tllMaxResults = Nothing
}
tllPageToken :: Lens' TaskListsList (Maybe Text)
tllPageToken
= lens _tllPageToken (\ s a -> s{_tllPageToken = a})
tllMaxResults :: Lens' TaskListsList (Maybe Int64)
tllMaxResults
= lens _tllMaxResults
(\ s a -> s{_tllMaxResults = a})
. mapping _Coerce
instance GoogleRequest TaskListsList where
type Rs TaskListsList = TaskLists
type Scopes TaskListsList =
'["https://www.googleapis.com/auth/tasks",
"https://www.googleapis.com/auth/tasks.readonly"]
requestClient TaskListsList'{..}
= go _tllPageToken _tllMaxResults (Just AltJSON)
appsTasksService
where go
= buildClient (Proxy :: Proxy TaskListsListResource)
mempty