gogol-apps-tasks-0.3.0: Google Tasks SDK.

Copyright(c) 2015-2016 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.Google.AppsTasks

Contents

Description

Lets you manage your tasks and task lists.

See: Tasks API Reference

Synopsis

Service Configuration

appsTasksService :: ServiceConfig #

Default request referring to version v1 of the Tasks API. This contains the host and root path used as a starting point for constructing service requests.

OAuth Scopes

tasksReadOnlyScope :: Proxy '["https://www.googleapis.com/auth/tasks.readonly"] #

View your tasks

tasksScope :: Proxy '["https://www.googleapis.com/auth/tasks"] #

Manage your tasks

API Declaration

Resources

tasks.tasklists.delete

tasks.tasklists.get

tasks.tasklists.insert

tasks.tasklists.list

tasks.tasklists.patch

tasks.tasklists.update

tasks.tasks.clear

tasks.tasks.delete

tasks.tasks.get

tasks.tasks.insert

tasks.tasks.list

tasks.tasks.move

tasks.tasks.patch

tasks.tasks.update

Types

TaskLinksItem

data TaskLinksItem #

Instances

Eq TaskLinksItem # 
Data TaskLinksItem # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> TaskLinksItem -> c TaskLinksItem #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c TaskLinksItem #

toConstr :: TaskLinksItem -> Constr #

dataTypeOf :: TaskLinksItem -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c TaskLinksItem) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c TaskLinksItem) #

gmapT :: (forall b. Data b => b -> b) -> TaskLinksItem -> TaskLinksItem #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> TaskLinksItem -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> TaskLinksItem -> r #

gmapQ :: (forall d. Data d => d -> u) -> TaskLinksItem -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> TaskLinksItem -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> TaskLinksItem -> m TaskLinksItem #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> TaskLinksItem -> m TaskLinksItem #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> TaskLinksItem -> m TaskLinksItem #

Show TaskLinksItem # 
Generic TaskLinksItem # 

Associated Types

type Rep TaskLinksItem :: * -> * #

ToJSON TaskLinksItem # 
FromJSON TaskLinksItem # 
type Rep TaskLinksItem # 
type Rep TaskLinksItem = D1 (MetaData "TaskLinksItem" "Network.Google.AppsTasks.Types.Product" "gogol-apps-tasks-0.3.0-2IsUM8cTX267M3zqvwh216" False) (C1 (MetaCons "TaskLinksItem'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_tliLink") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) ((:*:) (S1 (MetaSel (Just Symbol "_tliType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_tliDescription") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))))

taskLinksItem :: TaskLinksItem #

Creates a value of TaskLinksItem with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

tliType :: Lens' TaskLinksItem (Maybe Text) #

Type of the link, e.g. "email".

tliDescription :: Lens' TaskLinksItem (Maybe Text) #

The description. In HTML speak: Everything between and.

Tasks

data Tasks #

Instances

Eq Tasks # 

Methods

(==) :: Tasks -> Tasks -> Bool #

(/=) :: Tasks -> Tasks -> Bool #

Data Tasks # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Tasks -> c Tasks #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Tasks #

toConstr :: Tasks -> Constr #

dataTypeOf :: Tasks -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c Tasks) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Tasks) #

gmapT :: (forall b. Data b => b -> b) -> Tasks -> Tasks #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Tasks -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Tasks -> r #

gmapQ :: (forall d. Data d => d -> u) -> Tasks -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> Tasks -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> Tasks -> m Tasks #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Tasks -> m Tasks #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Tasks -> m Tasks #

Show Tasks # 

Methods

showsPrec :: Int -> Tasks -> ShowS #

show :: Tasks -> String #

showList :: [Tasks] -> ShowS #

Generic Tasks # 

Associated Types

type Rep Tasks :: * -> * #

Methods

from :: Tasks -> Rep Tasks x #

to :: Rep Tasks x -> Tasks #

ToJSON Tasks # 
FromJSON Tasks # 
type Rep Tasks # 
type Rep Tasks = D1 (MetaData "Tasks" "Network.Google.AppsTasks.Types.Product" "gogol-apps-tasks-0.3.0-2IsUM8cTX267M3zqvwh216" False) (C1 (MetaCons "Tasks'" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_tEtag") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_tNextPageToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) ((:*:) (S1 (MetaSel (Just Symbol "_tKind") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_tItems") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Task]))))))

tasks :: Tasks #

Creates a value of Tasks with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

tEtag :: Lens' Tasks (Maybe Text) #

ETag of the resource.

tNextPageToken :: Lens' Tasks (Maybe Text) #

Token used to access the next page of this result.

tKind :: Lens' Tasks Text #

Type of the resource. This is always "tasks#tasks".

tItems :: Lens' Tasks [Task] #

Collection of tasks.

TaskLists

data TaskLists #

Instances

Eq TaskLists # 
Data TaskLists # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> TaskLists -> c TaskLists #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c TaskLists #

toConstr :: TaskLists -> Constr #

dataTypeOf :: TaskLists -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c TaskLists) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c TaskLists) #

gmapT :: (forall b. Data b => b -> b) -> TaskLists -> TaskLists #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> TaskLists -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> TaskLists -> r #

gmapQ :: (forall d. Data d => d -> u) -> TaskLists -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> TaskLists -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> TaskLists -> m TaskLists #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> TaskLists -> m TaskLists #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> TaskLists -> m TaskLists #

Show TaskLists # 
Generic TaskLists # 

Associated Types

type Rep TaskLists :: * -> * #

ToJSON TaskLists # 
FromJSON TaskLists # 
type Rep TaskLists # 
type Rep TaskLists = D1 (MetaData "TaskLists" "Network.Google.AppsTasks.Types.Product" "gogol-apps-tasks-0.3.0-2IsUM8cTX267M3zqvwh216" False) (C1 (MetaCons "TaskLists'" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_tlEtag") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_tlNextPageToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) ((:*:) (S1 (MetaSel (Just Symbol "_tlKind") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_tlItems") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [TaskList]))))))

taskLists :: TaskLists #

Creates a value of TaskLists with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

tlEtag :: Lens' TaskLists (Maybe Text) #

ETag of the resource.

tlNextPageToken :: Lens' TaskLists (Maybe Text) #

Token that can be used to request the next page of this result.

tlKind :: Lens' TaskLists Text #

Type of the resource. This is always "tasks#taskLists".

tlItems :: Lens' TaskLists [TaskList] #

Collection of task lists.

TaskList

data TaskList #

Instances

Eq TaskList # 
Data TaskList # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> TaskList -> c TaskList #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c TaskList #

toConstr :: TaskList -> Constr #

dataTypeOf :: TaskList -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c TaskList) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c TaskList) #

gmapT :: (forall b. Data b => b -> b) -> TaskList -> TaskList #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> TaskList -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> TaskList -> r #

gmapQ :: (forall d. Data d => d -> u) -> TaskList -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> TaskList -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> TaskList -> m TaskList #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> TaskList -> m TaskList #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> TaskList -> m TaskList #

Show TaskList # 
Generic TaskList # 

Associated Types

type Rep TaskList :: * -> * #

Methods

from :: TaskList -> Rep TaskList x #

to :: Rep TaskList x -> TaskList #

ToJSON TaskList # 
FromJSON TaskList # 
type Rep TaskList # 

taskList :: TaskList #

Creates a value of TaskList with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

tasEtag :: Lens' TaskList (Maybe Text) #

ETag of the resource.

tasKind :: Lens' TaskList Text #

Type of the resource. This is always "tasks#taskList".

tasSelfLink :: Lens' TaskList (Maybe Text) #

URL pointing to this task list. Used to retrieve, update, or delete this task list.

tasId :: Lens' TaskList (Maybe Text) #

Task list identifier.

tasUpdated :: Lens' TaskList (Maybe UTCTime) #

Last modification time of the task list (as a RFC 3339 timestamp).

tasTitle :: Lens' TaskList (Maybe Text) #

Title of the task list.

Task

data Task #

Instances

Eq Task # 

Methods

(==) :: Task -> Task -> Bool #

(/=) :: Task -> Task -> Bool #

Data Task # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Task -> c Task #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Task #

toConstr :: Task -> Constr #

dataTypeOf :: Task -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c Task) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Task) #

gmapT :: (forall b. Data b => b -> b) -> Task -> Task #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Task -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Task -> r #

gmapQ :: (forall d. Data d => d -> u) -> Task -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> Task -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> Task -> m Task #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Task -> m Task #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Task -> m Task #

Show Task # 

Methods

showsPrec :: Int -> Task -> ShowS #

show :: Task -> String #

showList :: [Task] -> ShowS #

Generic Task # 

Associated Types

type Rep Task :: * -> * #

Methods

from :: Task -> Rep Task x #

to :: Rep Task x -> Task #

ToJSON Task # 
FromJSON Task # 
type Rep Task # 
type Rep Task = D1 (MetaData "Task" "Network.Google.AppsTasks.Types.Product" "gogol-apps-tasks-0.3.0-2IsUM8cTX267M3zqvwh216" False) (C1 (MetaCons "Task'" PrefixI True) ((:*:) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_ttParent") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) ((:*:) (S1 (MetaSel (Just Symbol "_ttStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_ttDue") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe DateTime'))))) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_ttEtag") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_ttKind") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))) ((:*:) (S1 (MetaSel (Just Symbol "_ttSelfLink") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_ttHidden") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool)))))) ((:*:) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_ttCompleted") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe DateTime'))) (S1 (MetaSel (Just Symbol "_ttId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) ((:*:) (S1 (MetaSel (Just Symbol "_ttDeleted") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool))) (S1 (MetaSel (Just Symbol "_ttUpdated") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe DateTime'))))) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_ttTitle") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_ttLinks") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [TaskLinksItem])))) ((:*:) (S1 (MetaSel (Just Symbol "_ttNotes") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_ttPosition") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))))))

task :: Task #

Creates a value of Task with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

ttParent :: Lens' Task (Maybe Text) #

Parent task identifier. This field is omitted if it is a top-level task. This field is read-only. Use the "move" method to move the task under a different parent or to the top level.

ttStatus :: Lens' Task (Maybe Text) #

Status of the task. This is either "needsAction" or "completed".

ttDue :: Lens' Task (Maybe UTCTime) #

Due date of the task (as a RFC 3339 timestamp). Optional.

ttEtag :: Lens' Task (Maybe Text) #

ETag of the resource.

ttKind :: Lens' Task Text #

Type of the resource. This is always "tasks#task".

ttSelfLink :: Lens' Task (Maybe Text) #

URL pointing to this task. Used to retrieve, update, or delete this task.

ttHidden :: Lens' Task (Maybe Bool) #

Flag indicating whether the task is hidden. This is the case if the task had been marked completed when the task list was last cleared. The default is False. This field is read-only.

ttCompleted :: Lens' Task (Maybe UTCTime) #

Completion date of the task (as a RFC 3339 timestamp). This field is omitted if the task has not been completed.

ttId :: Lens' Task (Maybe Text) #

Task identifier.

ttDeleted :: Lens' Task (Maybe Bool) #

Flag indicating whether the task has been deleted. The default if False.

ttUpdated :: Lens' Task (Maybe UTCTime) #

Last modification time of the task (as a RFC 3339 timestamp).

ttTitle :: Lens' Task (Maybe Text) #

Title of the task.

ttLinks :: Lens' Task [TaskLinksItem] #

Collection of links. This collection is read-only.

ttNotes :: Lens' Task (Maybe Text) #

Notes describing the task. Optional.

ttPosition :: Lens' Task (Maybe Text) #

String indicating the position of the task among its sibling tasks under the same parent task or at the top level. If this string is greater than another task's corresponding position string according to lexicographical ordering, the task is positioned after the other task under the same parent task (or at the top level). This field is read-only. Use the "move" method to move the task to another position.