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

Contents

Description

Deletes a product from your Merchant Center account. This method can only be called for non-multi-client accounts.

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

Synopsis

REST Resource

type ProductsDeleteResource = "content" :> ("v2" :> (Capture "merchantId" (Textual Word64) :> ("products" :> (Capture "productId" Text :> (QueryParam "dryRun" Bool :> (QueryParam "alt" AltJSON :> Delete '[JSON] ())))))) Source #

A resource alias for content.products.delete method which the ProductsDelete request conforms to.

Creating a Request

productsDelete Source #

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

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

data ProductsDelete Source #

Deletes a product from your Merchant Center account. This method can only be called for non-multi-client accounts.

See: productsDelete smart constructor.

Instances

Eq ProductsDelete Source # 
Data ProductsDelete Source # 

Methods

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

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

toConstr :: ProductsDelete -> Constr #

dataTypeOf :: ProductsDelete -> DataType #

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

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

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

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

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

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

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

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

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

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

Show ProductsDelete Source # 
Generic ProductsDelete Source # 

Associated Types

type Rep ProductsDelete :: * -> * #

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

Request Lenses

pdMerchantId :: Lens' ProductsDelete Word64 Source #

The ID of the managing account.

pdProductId :: Lens' ProductsDelete Text Source #

The ID of the product.

pdDryRun :: Lens' ProductsDelete (Maybe Bool) Source #

Flag to run the request in dry-run mode.