gogol-adexchange-buyer-0.2.0: Google Ad Exchange Buyer 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.AdExchangeBuyer.Proposals.Patch

Contents

Description

Update the given proposal. This method supports patch semantics.

See: Ad Exchange Buyer API Reference for adexchangebuyer.proposals.patch.

Synopsis

REST Resource

type ProposalsPatchResource = "adexchangebuyer" :> ("v1.4" :> ("proposals" :> (Capture "proposalId" Text :> (Capture "revisionNumber" (Textual Int64) :> (Capture "updateAction" ProposalsPatchUpdateAction :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Proposal :> Patch '[JSON] Proposal))))))) Source #

A resource alias for adexchangebuyer.proposals.patch method which the ProposalsPatch request conforms to.

Creating a Request

proposalsPatch Source #

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

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

data ProposalsPatch Source #

Update the given proposal. This method supports patch semantics.

See: proposalsPatch smart constructor.

Instances

Eq ProposalsPatch Source # 
Data ProposalsPatch Source # 

Methods

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

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

toConstr :: ProposalsPatch -> Constr #

dataTypeOf :: ProposalsPatch -> DataType #

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

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

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

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

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

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

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

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

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

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

Show ProposalsPatch Source # 
Generic ProposalsPatch Source # 

Associated Types

type Rep ProposalsPatch :: * -> * #

GoogleRequest ProposalsPatch Source # 
type Rep ProposalsPatch Source # 
type Rep ProposalsPatch = D1 (MetaData "ProposalsPatch" "Network.Google.Resource.AdExchangeBuyer.Proposals.Patch" "gogol-adexchange-buyer-0.2.0-7hKGM4LXxGdBpdUkxFCsCD" False) (C1 (MetaCons "ProposalsPatch'" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_ppUpdateAction") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 ProposalsPatchUpdateAction)) (S1 (MetaSel (Just Symbol "_ppRevisionNumber") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Textual Int64)))) ((:*:) (S1 (MetaSel (Just Symbol "_ppPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Proposal)) (S1 (MetaSel (Just Symbol "_ppProposalId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))))
type Scopes ProposalsPatch Source # 
type Scopes ProposalsPatch = (:) Symbol "https://www.googleapis.com/auth/adexchange.buyer" ([] Symbol)
type Rs ProposalsPatch Source # 

Request Lenses

ppUpdateAction :: Lens' ProposalsPatch ProposalsPatchUpdateAction Source #

The proposed action to take on the proposal. This field is required and it must be set when updating a proposal.

ppRevisionNumber :: Lens' ProposalsPatch Int64 Source #

The last known revision number to update. If the head revision in the marketplace database has since changed, an error will be thrown. The caller should then fetch the latest proposal at head revision and retry the update at that revision.

ppPayload :: Lens' ProposalsPatch Proposal Source #

Multipart request metadata.

ppProposalId :: Lens' ProposalsPatch Text Source #

The proposal id to update.