gogol-shopping-content-0.1.1: 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.Patch

Contents

Description

Updates a Merchant Center account. This method supports patch semantics.

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

Synopsis

REST Resource

type AccountsPatchResource = "content" :> ("v2" :> (Capture "merchantId" (Textual Word64) :> ("accounts" :> (Capture "accountId" (Textual Word64) :> (QueryParam "dryRun" Bool :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Account :> Patch '[JSON] Account))))))) Source #

A resource alias for content.accounts.patch method which the AccountsPatch request conforms to.

Creating a Request

accountsPatch Source #

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

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

data AccountsPatch Source #

Updates a Merchant Center account. This method supports patch semantics.

See: accountsPatch smart constructor.

Instances

Eq AccountsPatch Source # 
Data AccountsPatch Source # 

Methods

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

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

toConstr :: AccountsPatch -> Constr #

dataTypeOf :: AccountsPatch -> DataType #

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

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

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

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

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

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

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

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

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

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

Show AccountsPatch Source # 
Generic AccountsPatch Source # 

Associated Types

type Rep AccountsPatch :: * -> * #

GoogleRequest AccountsPatch Source # 

Associated Types

type Rs AccountsPatch :: * #

type Scopes AccountsPatch :: [Symbol] #

type Rep AccountsPatch Source # 
type Rep AccountsPatch = D1 (MetaData "AccountsPatch" "Network.Google.Resource.Content.Accounts.Patch" "gogol-shopping-content-0.1.1-29WHQG6JiPy8ClAOaTtAzJ" False) (C1 (MetaCons "AccountsPatch'" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_apMerchantId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Textual Word64))) (S1 (MetaSel (Just Symbol "_apPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Account))) ((:*:) (S1 (MetaSel (Just Symbol "_apAccountId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Textual Word64))) (S1 (MetaSel (Just Symbol "_apDryRun") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool))))))
type Scopes AccountsPatch Source # 
type Scopes AccountsPatch = (:) Symbol "https://www.googleapis.com/auth/content" ([] Symbol)
type Rs AccountsPatch Source # 

Request Lenses

apMerchantId :: Lens' AccountsPatch Word64 Source #

The ID of the managing account.

apPayload :: Lens' AccountsPatch Account Source #

Multipart request metadata.

apAccountId :: Lens' AccountsPatch Word64 Source #

The ID of the account.

apDryRun :: Lens' AccountsPatch (Maybe Bool) Source #

Flag to run the request in dry-run mode.