gogol-shopping-content-0.4.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.

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

Synopsis

REST Resource

type AccountsInsertResource = "content" :> ("v2.1" :> (Capture "merchantId" (Textual Word64) :> ("accounts" :> (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.

See: accountsInsert smart constructor.

Instances
Eq AccountsInsert Source # 
Instance details

Defined in Network.Google.Resource.Content.Accounts.Insert

Data AccountsInsert Source # 
Instance details

Defined in Network.Google.Resource.Content.Accounts.Insert

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 # 
Instance details

Defined in Network.Google.Resource.Content.Accounts.Insert

Generic AccountsInsert Source # 
Instance details

Defined in Network.Google.Resource.Content.Accounts.Insert

Associated Types

type Rep AccountsInsert :: Type -> Type #

GoogleRequest AccountsInsert Source # 
Instance details

Defined in Network.Google.Resource.Content.Accounts.Insert

Associated Types

type Rs AccountsInsert :: Type #

type Scopes AccountsInsert :: [Symbol] #

type Rep AccountsInsert Source # 
Instance details

Defined in Network.Google.Resource.Content.Accounts.Insert

type Rep AccountsInsert = D1 (MetaData "AccountsInsert" "Network.Google.Resource.Content.Accounts.Insert" "gogol-shopping-content-0.4.0-BIsXJOofTh8GkBklIAn8Hh" False) (C1 (MetaCons "AccountsInsert'" PrefixI True) (S1 (MetaSel (Just "_aMerchantId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Textual Word64)) :*: S1 (MetaSel (Just "_aPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Account)))
type Scopes AccountsInsert Source # 
Instance details

Defined in Network.Google.Resource.Content.Accounts.Insert

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

Defined in Network.Google.Resource.Content.Accounts.Insert

Request Lenses

aMerchantId :: Lens' AccountsInsert Word64 Source #

The ID of the managing account. This must be a multi-client account.

aPayload :: Lens' AccountsInsert Account Source #

Multipart request metadata.