gogol-dfareporting-0.4.0: Google DCM/DFA Reporting And Trafficking 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.DFAReporting.Sites.Insert

Contents

Description

Inserts a new site.

See: DCM/DFA Reporting And Trafficking API Reference for dfareporting.sites.insert.

Synopsis

REST Resource

type SitesInsertResource = "dfareporting" :> ("v3.2" :> ("userprofiles" :> (Capture "profileId" (Textual Int64) :> ("sites" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Site :> Post '[JSON] Site)))))) Source #

A resource alias for dfareporting.sites.insert method which the SitesInsert request conforms to.

Creating a Request

sitesInsert Source #

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

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

data SitesInsert Source #

Inserts a new site.

See: sitesInsert smart constructor.

Instances
Eq SitesInsert Source # 
Instance details

Defined in Network.Google.Resource.DFAReporting.Sites.Insert

Data SitesInsert Source # 
Instance details

Defined in Network.Google.Resource.DFAReporting.Sites.Insert

Methods

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

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

toConstr :: SitesInsert -> Constr #

dataTypeOf :: SitesInsert -> DataType #

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

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

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

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

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

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

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

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

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

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

Show SitesInsert Source # 
Instance details

Defined in Network.Google.Resource.DFAReporting.Sites.Insert

Generic SitesInsert Source # 
Instance details

Defined in Network.Google.Resource.DFAReporting.Sites.Insert

Associated Types

type Rep SitesInsert :: Type -> Type #

GoogleRequest SitesInsert Source # 
Instance details

Defined in Network.Google.Resource.DFAReporting.Sites.Insert

Associated Types

type Rs SitesInsert :: Type #

type Scopes SitesInsert :: [Symbol] #

type Rep SitesInsert Source # 
Instance details

Defined in Network.Google.Resource.DFAReporting.Sites.Insert

type Rep SitesInsert = D1 (MetaData "SitesInsert" "Network.Google.Resource.DFAReporting.Sites.Insert" "gogol-dfareporting-0.4.0-9N9I1R95b3Y5YmOKldvlKw" False) (C1 (MetaCons "SitesInsert'" PrefixI True) (S1 (MetaSel (Just "_sProFileId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Textual Int64)) :*: S1 (MetaSel (Just "_sPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Site)))
type Scopes SitesInsert Source # 
Instance details

Defined in Network.Google.Resource.DFAReporting.Sites.Insert

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

Defined in Network.Google.Resource.DFAReporting.Sites.Insert

Request Lenses

sProFileId :: Lens' SitesInsert Int64 Source #

User profile ID associated with this request.

sPayload :: Lens' SitesInsert Site Source #

Multipart request metadata.