| Copyright | (c) 2015 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | None |
| Language | Haskell2010 |
Network.Google.Resource.DFAReporting.Sites.Insert
Description
Inserts a new site.
See: DCM/DFA Reporting And Trafficking API Reference for dfareporting.sites.insert.
- type SitesInsertResource = "dfareporting" :> ("v2.2" :> ("userprofiles" :> (Capture "profileId" (Textual Int64) :> ("sites" :> (QueryParam "alt" AltJSON :> (ReqBody `[JSON]` Site :> Post `[JSON]` Site))))))
- sitesInsert :: Int64 -> Site -> SitesInsert
- data SitesInsert
- sProFileId :: Lens' SitesInsert Int64
- sPayload :: Lens' SitesInsert Site
REST Resource
type SitesInsertResource = "dfareporting" :> ("v2.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
Arguments
| :: Int64 | |
| -> Site | |
| -> SitesInsert |
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:
Request Lenses
sProFileId :: Lens' SitesInsert Int64 Source
User profile ID associated with this request.
sPayload :: Lens' SitesInsert Site Source
Multipart request metadata.