Copyright | (c) 2015-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Update the given proposal. This method supports patch semantics.
See: Ad Exchange Buyer API Reference for adexchangebuyer.proposals.patch
.
Synopsis
- 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)))))))
- proposalsPatch :: ProposalsPatchUpdateAction -> Int64 -> Proposal -> Text -> ProposalsPatch
- data ProposalsPatch
- ppUpdateAction :: Lens' ProposalsPatch ProposalsPatchUpdateAction
- ppRevisionNumber :: Lens' ProposalsPatch Int64
- ppPayload :: Lens' ProposalsPatch Proposal
- ppProposalId :: Lens' ProposalsPatch Text
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
:: ProposalsPatchUpdateAction | |
-> Int64 | |
-> Proposal | |
-> Text | |
-> ProposalsPatch |
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
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.
ppProposalId :: Lens' ProposalsPatch Text Source #
The proposal id to update.