Struct google_alertcenter1_beta1::AlertMethods[][src]

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

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

Example

Instantiate a resource builder

extern crate hyper;
extern crate hyper_rustls;
extern crate yup_oauth2 as oauth2;
extern crate google_alertcenter1_beta1 as alertcenter1_beta1;
 
use std::default::Default;
use oauth2::{Authenticator, DefaultAuthenticatorDelegate, ApplicationSecret, MemoryStorage};
use alertcenter1_beta1::AlertCenter;
 
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 = AlertCenter::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 `delete(...)`, `feedback_create(...)`, `feedback_list(...)`, `get(...)` and `list(...)`
// to build up your call.
let rb = hub.alerts();

Methods

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

Create a builder to help you perform the following task:

Lists all the feedback for an alert.

Arguments

  • alertId - Required. The alert identifier. If the alert does not exist returns a NOT_FOUND error.

Create a builder to help you perform the following task:

Gets the specified alert.

Arguments

  • alertId - Required. The identifier of the alert to retrieve.

Create a builder to help you perform the following task:

Creates a new alert feedback.

Arguments

  • request - No description provided.
  • alertId - Required. The identifier of the alert this feedback belongs to. Returns a NOT_FOUND error if no such alert.

Create a builder to help you perform the following task:

Marks the specified alert for deletion. An alert that has been marked for deletion will be excluded from the results of a List operation by default, and will be removed from the Alert Center after 30 days. Marking an alert for deletion will have no effect on an alert which has already been marked for deletion. Attempting to mark a nonexistent alert for deletion will return NOT_FOUND.

Arguments

  • alertId - Required. The identifier of the alert to delete.

Create a builder to help you perform the following task:

Lists all the alerts for the current user and application.

Trait Implementations

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

Auto Trait Implementations

impl<'a, C, A> !Send for AlertMethods<'a, C, A>

impl<'a, C, A> !Sync for AlertMethods<'a, C, A>