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.Products.Insert

Contents

Description

Uploads a product to your Merchant Center account. If an item with the same channel, contentLanguage, offerId, and targetCountry already exists, this method updates that entry. This method can only be called for non-multi-client accounts.

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

Synopsis

REST Resource

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

A resource alias for content.products.insert method which the ProductsInsert request conforms to.

Creating a Request

productsInsert Source #

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

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

data ProductsInsert Source #

Uploads a product to your Merchant Center account. If an item with the same channel, contentLanguage, offerId, and targetCountry already exists, this method updates that entry. This method can only be called for non-multi-client accounts.

See: productsInsert smart constructor.

Instances

Eq ProductsInsert Source # 
Data ProductsInsert Source # 

Methods

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

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

toConstr :: ProductsInsert -> Constr #

dataTypeOf :: ProductsInsert -> DataType #

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

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

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

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

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

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

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

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

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

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

Show ProductsInsert Source # 
Generic ProductsInsert Source # 

Associated Types

type Rep ProductsInsert :: * -> * #

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

Request Lenses

piMerchantId :: Lens' ProductsInsert Word64 Source #

The ID of the managing account.

piPayload :: Lens' ProductsInsert Product Source #

Multipart request metadata.

piDryRun :: Lens' ProductsInsert (Maybe Bool) Source #

Flag to run the request in dry-run mode.