gogol-apps-tasks-0.4.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.Resource.Tasks.Tasks.Insert

Contents

Description

Creates a new task on the specified task list.

See: Tasks API Reference for tasks.tasks.insert.

Synopsis

REST Resource

type TasksInsertResource = "tasks" :> ("v1" :> ("lists" :> (Capture "tasklist" Text :> ("tasks" :> (QueryParam "parent" Text :> (QueryParam "previous" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Task :> Post '[JSON] Task)))))))) Source #

A resource alias for tasks.tasks.insert method which the TasksInsert request conforms to.

Creating a Request

tasksInsert Source #

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

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

data TasksInsert Source #

Creates a new task on the specified task list.

See: tasksInsert smart constructor.

Instances
Eq TasksInsert Source # 
Instance details

Defined in Network.Google.Resource.Tasks.Tasks.Insert

Data TasksInsert Source # 
Instance details

Defined in Network.Google.Resource.Tasks.Tasks.Insert

Methods

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

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

toConstr :: TasksInsert -> Constr #

dataTypeOf :: TasksInsert -> DataType #

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

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

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

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

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

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

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

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

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

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

Show TasksInsert Source # 
Instance details

Defined in Network.Google.Resource.Tasks.Tasks.Insert

Generic TasksInsert Source # 
Instance details

Defined in Network.Google.Resource.Tasks.Tasks.Insert

Associated Types

type Rep TasksInsert :: Type -> Type #

GoogleRequest TasksInsert Source # 
Instance details

Defined in Network.Google.Resource.Tasks.Tasks.Insert

Associated Types

type Rs TasksInsert :: Type #

type Scopes TasksInsert :: [Symbol] #

type Rep TasksInsert Source # 
Instance details

Defined in Network.Google.Resource.Tasks.Tasks.Insert

type Rep TasksInsert = D1 (MetaData "TasksInsert" "Network.Google.Resource.Tasks.Tasks.Insert" "gogol-apps-tasks-0.4.0-CNAH5hnYqRXH4ZXCEmJhMf" False) (C1 (MetaCons "TasksInsert'" PrefixI True) ((S1 (MetaSel (Just "_tiParent") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_tiPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Task)) :*: (S1 (MetaSel (Just "_tiTaskList") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_tiPrevious") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))))
type Scopes TasksInsert Source # 
Instance details

Defined in Network.Google.Resource.Tasks.Tasks.Insert

type Scopes TasksInsert = "https://www.googleapis.com/auth/tasks" ': ([] :: [Symbol])
type Rs TasksInsert Source # 
Instance details

Defined in Network.Google.Resource.Tasks.Tasks.Insert

Request Lenses

tiParent :: Lens' TasksInsert (Maybe Text) Source #

Parent task identifier. If the task is created at the top level, this parameter is omitted. Optional.

tiPayload :: Lens' TasksInsert Task Source #

Multipart request metadata.

tiTaskList :: Lens' TasksInsert Text Source #

Task list identifier.

tiPrevious :: Lens' TasksInsert (Maybe Text) Source #

Previous sibling task identifier. If the task is created at the first position among its siblings, this parameter is omitted. Optional.