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

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

Synopsis

REST Resource

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

See: productsInsert smart constructor.

Instances
Eq ProductsInsert Source # 
Instance details

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

Data ProductsInsert Source # 
Instance details

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

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

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

Generic ProductsInsert Source # 
Instance details

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

Associated Types

type Rep ProductsInsert :: Type -> Type #

GoogleRequest ProductsInsert Source # 
Instance details

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

Associated Types

type Rs ProductsInsert :: Type #

type Scopes ProductsInsert :: [Symbol] #

type Rep ProductsInsert Source # 
Instance details

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

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

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

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

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

Request Lenses

piiMerchantId :: Lens' ProductsInsert Word64 Source #

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

piiPayload :: Lens' ProductsInsert Product Source #

Multipart request metadata.