| Copyright | (c) 2015-2016 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.SubAccounts.Insert
Description
Inserts a new subaccount.
See: DCM/DFA Reporting And Trafficking API Reference for dfareporting.subaccounts.insert.
Synopsis
- type SubAccountsInsertResource = "dfareporting" :> ("v3.2" :> ("userprofiles" :> (Capture "profileId" (Textual Int64) :> ("subaccounts" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] SubAccount :> Post '[JSON] SubAccount))))))
- subAccountsInsert :: Int64 -> SubAccount -> SubAccountsInsert
- data SubAccountsInsert
- saiProFileId :: Lens' SubAccountsInsert Int64
- saiPayload :: Lens' SubAccountsInsert SubAccount
REST Resource
type SubAccountsInsertResource = "dfareporting" :> ("v3.2" :> ("userprofiles" :> (Capture "profileId" (Textual Int64) :> ("subaccounts" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] SubAccount :> Post '[JSON] SubAccount)))))) Source #
A resource alias for dfareporting.subaccounts.insert method which the
SubAccountsInsert request conforms to.
Creating a Request
Arguments
| :: Int64 | |
| -> SubAccount | |
| -> SubAccountsInsert |
Creates a value of SubAccountsInsert with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data SubAccountsInsert Source #
Inserts a new subaccount.
See: subAccountsInsert smart constructor.
Instances
Request Lenses
saiProFileId :: Lens' SubAccountsInsert Int64 Source #
User profile ID associated with this request.
saiPayload :: Lens' SubAccountsInsert SubAccount Source #
Multipart request metadata.