gogol-adexchange-buyer-0.4.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.Update

Contents

Description

Update the given proposal

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

Synopsis

REST Resource

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

A resource alias for adexchangebuyer.proposals.update method which the ProposalsUpdate request conforms to.

Creating a Request

proposalsUpdate Source #

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

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

data ProposalsUpdate Source #

Update the given proposal

See: proposalsUpdate smart constructor.

Instances
Eq ProposalsUpdate Source # 
Instance details

Defined in Network.Google.Resource.AdExchangeBuyer.Proposals.Update

Data ProposalsUpdate Source # 
Instance details

Defined in Network.Google.Resource.AdExchangeBuyer.Proposals.Update

Methods

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

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

toConstr :: ProposalsUpdate -> Constr #

dataTypeOf :: ProposalsUpdate -> DataType #

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

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

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

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

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

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

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

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

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

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

Show ProposalsUpdate Source # 
Instance details

Defined in Network.Google.Resource.AdExchangeBuyer.Proposals.Update

Generic ProposalsUpdate Source # 
Instance details

Defined in Network.Google.Resource.AdExchangeBuyer.Proposals.Update

Associated Types

type Rep ProposalsUpdate :: Type -> Type #

GoogleRequest ProposalsUpdate Source # 
Instance details

Defined in Network.Google.Resource.AdExchangeBuyer.Proposals.Update

Associated Types

type Rs ProposalsUpdate :: Type #

type Scopes ProposalsUpdate :: [Symbol] #

type Rep ProposalsUpdate Source # 
Instance details

Defined in Network.Google.Resource.AdExchangeBuyer.Proposals.Update

type Rep ProposalsUpdate = D1 (MetaData "ProposalsUpdate" "Network.Google.Resource.AdExchangeBuyer.Proposals.Update" "gogol-adexchange-buyer-0.4.0-EHd3Fo85oo55DtQ4u9aSwi" False) (C1 (MetaCons "ProposalsUpdate'" PrefixI True) ((S1 (MetaSel (Just "_puUpdateAction") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 ProposalsUpdateUpdateAction) :*: S1 (MetaSel (Just "_puRevisionNumber") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Textual Int64))) :*: (S1 (MetaSel (Just "_puPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Proposal) :*: S1 (MetaSel (Just "_puProposalId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))
type Scopes ProposalsUpdate Source # 
Instance details

Defined in Network.Google.Resource.AdExchangeBuyer.Proposals.Update

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

Defined in Network.Google.Resource.AdExchangeBuyer.Proposals.Update

Request Lenses

puUpdateAction :: Lens' ProposalsUpdate ProposalsUpdateUpdateAction Source #

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

puRevisionNumber :: Lens' ProposalsUpdate 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.

puPayload :: Lens' ProposalsUpdate Proposal Source #

Multipart request metadata.

puProposalId :: Lens' ProposalsUpdate Text Source #

The proposal id to update.