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 Source #

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"] Source #

View your tasks

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

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 Source #

Instances

Eq TaskLinksItem Source # 
Data TaskLinksItem Source # 

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 Source # 
Generic TaskLinksItem Source # 

Associated Types

type Rep TaskLinksItem :: * -> * #

ToJSON TaskLinksItem Source # 
FromJSON TaskLinksItem Source # 
type Rep TaskLinksItem Source # 
type Rep TaskLinksItem = D1 (MetaData "TaskLinksItem" "Network.Google.AppsTasks.Types.Product" "gogol-apps-tasks-0.3.0-2H7uZs9zgUBLWyRuaEw6Ms" 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 Source #

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) Source #

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

tliDescription :: Lens' TaskLinksItem (Maybe Text) Source #

The description. In HTML speak: Everything between and.

Tasks

data Tasks Source #

Instances

Eq Tasks Source # 

Methods

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

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

Data Tasks Source # 

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 Source # 

Methods

showsPrec :: Int -> Tasks -> ShowS #

show :: Tasks -> String #

showList :: [Tasks] -> ShowS #

Generic Tasks Source # 

Associated Types

type Rep Tasks :: * -> * #

Methods

from :: Tasks -> Rep Tasks x #

to :: Rep Tasks x -> Tasks #

ToJSON Tasks Source # 
FromJSON Tasks Source # 
type Rep Tasks Source # 
type Rep Tasks = D1 (MetaData "Tasks" "Network.Google.AppsTasks.Types.Product" "gogol-apps-tasks-0.3.0-2H7uZs9zgUBLWyRuaEw6Ms" 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 Source #

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) Source #

ETag of the resource.

tNextPageToken :: Lens' Tasks (Maybe Text) Source #

Token used to access the next page of this result.

tKind :: Lens' Tasks Text Source #

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

tItems :: Lens' Tasks [Task] Source #

Collection of tasks.

TaskLists

data TaskLists Source #

Instances

Eq TaskLists Source # 
Data TaskLists Source # 

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 Source # 
Generic TaskLists Source # 

Associated Types

type Rep TaskLists :: * -> * #

ToJSON TaskLists Source # 
FromJSON TaskLists Source # 
type Rep TaskLists Source # 
type Rep TaskLists = D1 (MetaData "TaskLists" "Network.Google.AppsTasks.Types.Product" "gogol-apps-tasks-0.3.0-2H7uZs9zgUBLWyRuaEw6Ms" 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 Source #

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) Source #

ETag of the resource.

tlNextPageToken :: Lens' TaskLists (Maybe Text) Source #

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

tlKind :: Lens' TaskLists Text Source #

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

tlItems :: Lens' TaskLists [TaskList] Source #

Collection of task lists.

TaskList

data TaskList Source #

Instances

Eq TaskList Source # 
Data TaskList Source # 

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 Source # 
Generic TaskList Source # 

Associated Types

type Rep TaskList :: * -> * #

Methods

from :: TaskList -> Rep TaskList x #

to :: Rep TaskList x -> TaskList #

ToJSON TaskList Source # 
FromJSON TaskList Source # 
type Rep TaskList Source # 

taskList :: TaskList Source #

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) Source #

ETag of the resource.

tasKind :: Lens' TaskList Text Source #

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

tasSelfLink :: Lens' TaskList (Maybe Text) Source #

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

tasId :: Lens' TaskList (Maybe Text) Source #

Task list identifier.

tasUpdated :: Lens' TaskList (Maybe UTCTime) Source #

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

tasTitle :: Lens' TaskList (Maybe Text) Source #

Title of the task list.

Task

data Task Source #

Instances

Eq Task Source # 

Methods

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

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

Data Task Source # 

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 Source # 

Methods

showsPrec :: Int -> Task -> ShowS #

show :: Task -> String #

showList :: [Task] -> ShowS #

Generic Task Source # 

Associated Types

type Rep Task :: * -> * #

Methods

from :: Task -> Rep Task x #

to :: Rep Task x -> Task #

ToJSON Task Source # 
FromJSON Task Source # 
type Rep Task Source # 
type Rep Task = D1 (MetaData "Task" "Network.Google.AppsTasks.Types.Product" "gogol-apps-tasks-0.3.0-2H7uZs9zgUBLWyRuaEw6Ms" 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 Source #

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) Source #

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) Source #

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

ttDue :: Lens' Task (Maybe UTCTime) Source #

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

ttEtag :: Lens' Task (Maybe Text) Source #

ETag of the resource.

ttKind :: Lens' Task Text Source #

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

ttSelfLink :: Lens' Task (Maybe Text) Source #

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

ttHidden :: Lens' Task (Maybe Bool) Source #

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) Source #

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) Source #

Task identifier.

ttDeleted :: Lens' Task (Maybe Bool) Source #

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

ttUpdated :: Lens' Task (Maybe UTCTime) Source #

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

ttTitle :: Lens' Task (Maybe Text) Source #

Title of the task.

ttLinks :: Lens' Task [TaskLinksItem] Source #

Collection of links. This collection is read-only.

ttNotes :: Lens' Task (Maybe Text) Source #

Notes describing the task. Optional.

ttPosition :: Lens' Task (Maybe Text) Source #

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.