gogol-shopping-content-0.3.0: Google Content API for Shopping 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.Content.Accounts.Insert

Contents

Description

Creates a Merchant Center sub-account. This method can only be called for multi-client accounts.

See: Content API for Shopping Reference for content.accounts.insert.

Synopsis

REST Resource

type AccountsInsertResource = "content" :> ("v2" :> (Capture "merchantId" (Textual Word64) :> ("accounts" :> (QueryParam "dryRun" Bool :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Account :> Post '[JSON] Account)))))) Source #

A resource alias for content.accounts.insert method which the AccountsInsert request conforms to.

Creating a Request

accountsInsert Source #

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

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

data AccountsInsert Source #

Creates a Merchant Center sub-account. This method can only be called for multi-client accounts.

See: accountsInsert smart constructor.

Instances

Eq AccountsInsert Source # 
Data AccountsInsert Source # 

Methods

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

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

toConstr :: AccountsInsert -> Constr #

dataTypeOf :: AccountsInsert -> DataType #

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

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

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

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

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

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

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

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

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

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

Show AccountsInsert Source # 
Generic AccountsInsert Source # 

Associated Types

type Rep AccountsInsert :: * -> * #

GoogleRequest AccountsInsert Source # 
type Rep AccountsInsert Source # 
type Rep AccountsInsert = D1 (MetaData "AccountsInsert" "Network.Google.Resource.Content.Accounts.Insert" "gogol-shopping-content-0.3.0-41TtXTFsjJg1FCE4alRDuM" False) (C1 (MetaCons "AccountsInsert'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_aMerchantId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Textual Word64))) ((:*:) (S1 (MetaSel (Just Symbol "_aPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Account)) (S1 (MetaSel (Just Symbol "_aDryRun") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool))))))
type Scopes AccountsInsert Source # 
type Scopes AccountsInsert = (:) Symbol "https://www.googleapis.com/auth/content" ([] Symbol)
type Rs AccountsInsert Source # 

Request Lenses

aMerchantId :: Lens' AccountsInsert Word64 Source #

The ID of the managing account.

aPayload :: Lens' AccountsInsert Account Source #

Multipart request metadata.

aDryRun :: Lens' AccountsInsert (Maybe Bool) Source #

Flag to run the request in dry-run mode.