gogol-analytics-0.3.0: Google Analytics 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.Analytics.Management.Goals.Insert

Contents

Description

Create a new goal.

See: Google Analytics API Reference for analytics.management.goals.insert.

Synopsis

REST Resource

type ManagementGoalsInsertResource = "analytics" :> ("v3" :> ("management" :> ("accounts" :> (Capture "accountId" Text :> ("webproperties" :> (Capture "webPropertyId" Text :> ("profiles" :> (Capture "profileId" Text :> ("goals" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Goal :> Post '[JSON] Goal))))))))))) Source #

A resource alias for analytics.management.goals.insert method which the ManagementGoalsInsert request conforms to.

Creating a Request

managementGoalsInsert Source #

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

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

data ManagementGoalsInsert Source #

Create a new goal.

See: managementGoalsInsert smart constructor.

Instances

Eq ManagementGoalsInsert Source # 
Data ManagementGoalsInsert Source # 

Methods

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

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

toConstr :: ManagementGoalsInsert -> Constr #

dataTypeOf :: ManagementGoalsInsert -> DataType #

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

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

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

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

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

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

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

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

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

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

Show ManagementGoalsInsert Source # 
Generic ManagementGoalsInsert Source # 
GoogleRequest ManagementGoalsInsert Source # 
type Rep ManagementGoalsInsert Source # 
type Rep ManagementGoalsInsert = D1 (MetaData "ManagementGoalsInsert" "Network.Google.Resource.Analytics.Management.Goals.Insert" "gogol-analytics-0.3.0-HIek6YEHwnSLCn7HDgQZyX" False) (C1 (MetaCons "ManagementGoalsInsert'" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_mgiWebPropertyId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_mgiProFileId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))) ((:*:) (S1 (MetaSel (Just Symbol "_mgiPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Goal)) (S1 (MetaSel (Just Symbol "_mgiAccountId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))))
type Scopes ManagementGoalsInsert Source # 
type Scopes ManagementGoalsInsert = (:) Symbol "https://www.googleapis.com/auth/analytics.edit" ([] Symbol)
type Rs ManagementGoalsInsert Source # 

Request Lenses

mgiWebPropertyId :: Lens' ManagementGoalsInsert Text Source #

Web property ID to create the goal for.

mgiProFileId :: Lens' ManagementGoalsInsert Text Source #

View (Profile) ID to create the goal for.

mgiPayload :: Lens' ManagementGoalsInsert Goal Source #

Multipart request metadata.

mgiAccountId :: Lens' ManagementGoalsInsert Text Source #

Account ID to create the goal for.