Struct google_adexchangebuyer1d4::ProposalMethods [] [src]

pub struct ProposalMethods<'a, C, A> where
    C: 'a,
    A: 'a, 
{ /* fields omitted */ }

A builder providing access to all methods supported on proposal resources. It is not used directly, but through the AdExchangeBuyer hub.

Example

Instantiate a resource builder

extern crate hyper;
extern crate hyper_rustls;
extern crate yup_oauth2 as oauth2;
extern crate google_adexchangebuyer1d4 as adexchangebuyer1d4;
 
use std::default::Default;
use oauth2::{Authenticator, DefaultAuthenticatorDelegate, ApplicationSecret, MemoryStorage};
use adexchangebuyer1d4::AdExchangeBuyer;
 
let secret: ApplicationSecret = Default::default();
let auth = Authenticator::new(&secret, DefaultAuthenticatorDelegate,
                              hyper::Client::with_connector(hyper::net::HttpsConnector::new(hyper_rustls::TlsClient::new())),
                              <MemoryStorage as Default>::default(), None);
let mut hub = AdExchangeBuyer::new(hyper::Client::with_connector(hyper::net::HttpsConnector::new(hyper_rustls::TlsClient::new())), auth);
// Usually you wouldn't bind this to a variable, but keep calling *CallBuilders*
// like `get(...)`, `insert(...)`, `patch(...)`, `search(...)`, `setupcomplete(...)` and `update(...)`
// to build up your call.
let rb = hub.proposals();

Methods

impl<'a, C, A> ProposalMethods<'a, C, A>
[src]

[src]

Create a builder to help you perform the following task:

Search for proposals using pql query

[src]

Create a builder to help you perform the following task:

Create the given list of proposals

Arguments

  • request - No description provided.

[src]

Create a builder to help you perform the following task:

Update the given proposal

Arguments

  • request - No description provided.
  • proposalId - The proposal id to update.
  • revisionNumber - 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.
  • updateAction - The proposed action to take on the proposal. This field is required and it must be set when updating a proposal.

[src]

Create a builder to help you perform the following task:

Update the given proposal to indicate that setup has been completed.

Arguments

  • proposalId - The proposal id for which the setup is complete

[src]

Create a builder to help you perform the following task:

Update the given proposal. This method supports patch semantics.

Arguments

  • request - No description provided.
  • proposalId - The proposal id to update.
  • revisionNumber - 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.
  • updateAction - The proposed action to take on the proposal. This field is required and it must be set when updating a proposal.

[src]

Create a builder to help you perform the following task:

Get a proposal given its id

Arguments

  • proposalId - Id of the proposal to retrieve.

Trait Implementations

impl<'a, C, A> MethodsBuilder for ProposalMethods<'a, C, A>
[src]