gogol-shopping-content-0.5.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.Regionalinventory.Insert

Contents

Description

Update the regional inventory of a product in your Merchant Center account. If a regional inventory with the same region ID already exists, this method updates that entry.

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

Synopsis

REST Resource

type RegionalinventoryInsertResource = "content" :> ("v2.1" :> (Capture "merchantId" (Textual Word64) :> ("products" :> (Capture "productId" Text :> ("regionalinventory" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] RegionalInventory :> Post '[JSON] RegionalInventory))))))) Source #

A resource alias for content.regionalinventory.insert method which the RegionalinventoryInsert request conforms to.

Creating a Request

regionalinventoryInsert Source #

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

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

data RegionalinventoryInsert Source #

Update the regional inventory of a product in your Merchant Center account. If a regional inventory with the same region ID already exists, this method updates that entry.

See: regionalinventoryInsert smart constructor.

Instances
Eq RegionalinventoryInsert Source # 
Instance details

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

Data RegionalinventoryInsert Source # 
Instance details

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

Methods

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

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

toConstr :: RegionalinventoryInsert -> Constr #

dataTypeOf :: RegionalinventoryInsert -> DataType #

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

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

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

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

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

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

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

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

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

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

Show RegionalinventoryInsert Source # 
Instance details

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

Generic RegionalinventoryInsert Source # 
Instance details

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

Associated Types

type Rep RegionalinventoryInsert :: Type -> Type #

GoogleRequest RegionalinventoryInsert Source # 
Instance details

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

type Rep RegionalinventoryInsert Source # 
Instance details

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

type Rep RegionalinventoryInsert = D1 (MetaData "RegionalinventoryInsert" "Network.Google.Resource.Content.Regionalinventory.Insert" "gogol-shopping-content-0.5.0-JEbpzNrc2lB7bX2emYTGER" False) (C1 (MetaCons "RegionalinventoryInsert'" PrefixI True) (S1 (MetaSel (Just "_riMerchantId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Textual Word64)) :*: (S1 (MetaSel (Just "_riPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 RegionalInventory) :*: S1 (MetaSel (Just "_riProductId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))
type Scopes RegionalinventoryInsert Source # 
Instance details

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

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

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

Request Lenses

riMerchantId :: Lens' RegionalinventoryInsert Word64 Source #

The ID of the account that contains the product. This account cannot be a multi-client account.

riProductId :: Lens' RegionalinventoryInsert Text Source #

The REST ID of the product for which to update the regional inventory.