[][src]Struct google_alertcenter1_beta1::AlertMethods

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 `batch_delete(...)`, `batch_undelete(...)`, `delete(...)`, `feedback_create(...)`, `feedback_list(...)`, `get(...)`, `get_metadata(...)`, `list(...)` and `undelete(...)`
// to build up your call.
let rb = hub.alerts();

Implementations

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

pub fn delete(&self, alert_id: &str) -> AlertDeleteCall<'a, C, A>[src]

Create a builder to help you perform the following task:

Marks the specified alert for deletion. An alert that has been marked for deletion is removed from Alert Center after 30 days. Marking an alert for deletion has no effect on an alert which has already been marked for deletion. Attempting to mark a nonexistent alert for deletion results in a NOT_FOUND error.

Arguments

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

pub fn batch_undelete(
    &self,
    request: BatchUndeleteAlertsRequest
) -> AlertBatchUndeleteCall<'a, C, A>
[src]

Create a builder to help you perform the following task:

Performs batch undelete operation on alerts.

Arguments

  • request - No description provided.

pub fn undelete(
    &self,
    request: UndeleteAlertRequest,
    alert_id: &str
) -> AlertUndeleteCall<'a, C, A>
[src]

Create a builder to help you perform the following task:

Restores, or "undeletes", an alert that was marked for deletion within the past 30 days. Attempting to undelete an alert which was marked for deletion over 30 days ago (which has been removed from the Alert Center database) or a nonexistent alert returns a NOT_FOUND error. Attempting to undelete an alert which has not been marked for deletion has no effect.

Arguments

  • request - No description provided.
  • alertId - Required. The identifier of the alert to undelete.

pub fn get(&self, alert_id: &str) -> AlertGetCall<'a, C, A>[src]

Create a builder to help you perform the following task:

Gets the specified alert. Attempting to get a nonexistent alert returns NOT_FOUND error.

Arguments

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

pub fn batch_delete(
    &self,
    request: BatchDeleteAlertsRequest
) -> AlertBatchDeleteCall<'a, C, A>
[src]

Create a builder to help you perform the following task:

Performs batch delete operation on alerts.

Arguments

  • request - No description provided.

pub fn list(&self) -> AlertListCall<'a, C, A>[src]

Create a builder to help you perform the following task:

Lists the alerts.

pub fn get_metadata(&self, alert_id: &str) -> AlertGetMetadataCall<'a, C, A>[src]

Create a builder to help you perform the following task:

Returns the metadata of an alert. Attempting to get metadata for a non-existent alert returns NOT_FOUND error.

Arguments

  • alertId - Required. The identifier of the alert this metadata belongs to.

pub fn feedback_list(&self, alert_id: &str) -> AlertFeedbackListCall<'a, C, A>[src]

Create a builder to help you perform the following task:

Lists all the feedback for an alert. Attempting to list feedbacks for a non-existent alert returns NOT_FOUND error.

Arguments

  • alertId - Required. The alert identifier. The "-" wildcard could be used to represent all alerts.

pub fn feedback_create(
    &self,
    request: AlertFeedback,
    alert_id: &str
) -> AlertFeedbackCreateCall<'a, C, A>
[src]

Create a builder to help you perform the following task:

Creates new feedback for an alert. Attempting to create a feedback for a non-existent alert returns NOT_FOUND error. Attempting to create a feedback for an alert that is marked for deletion returns `FAILED_PRECONDITION' error.

Arguments

  • request - No description provided.
  • alertId - Required. The identifier of the alert this feedback belongs to.

Trait Implementations

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

Auto Trait Implementations

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

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

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

impl<'a, C, A> Unpin for AlertMethods<'a, C, A>

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

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Typeable for T where
    T: Any