[][src]Struct google_cloudasset1::FeedMethods

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

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

Example

Instantiate a resource builder

extern crate hyper;
extern crate hyper_rustls;
extern crate yup_oauth2 as oauth2;
extern crate google_cloudasset1 as cloudasset1;
 
use std::default::Default;
use oauth2::{Authenticator, DefaultAuthenticatorDelegate, ApplicationSecret, MemoryStorage};
use cloudasset1::CloudAsset;
 
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 = CloudAsset::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 `create(...)`, `delete(...)`, `get(...)`, `list(...)` and `patch(...)`
// to build up your call.
let rb = hub.feeds();

Implementations

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

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

Create a builder to help you perform the following task:

Deletes an asset feed.

Arguments

  • name - Required. The name of the feed and it must be in the format of: projects/project_number/feeds/feed_id folders/folder_number/feeds/feed_id organizations/organization_number/feeds/feed_id

pub fn create(
    &self,
    request: CreateFeedRequest,
    parent: &str
) -> FeedCreateCall<'a, C, A>
[src]

Create a builder to help you perform the following task:

Creates a feed in a parent project/folder/organization to listen to its asset updates.

Arguments

  • request - No description provided.
  • parent - Required. The name of the project/folder/organization where this feed should be created in. It can only be an organization number (such as "organizations/123"), a folder number (such as "folders/123"), a project ID (such as "projects/my-project-id")", or a project number (such as "projects/12345").

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

Create a builder to help you perform the following task:

Gets details about an asset feed.

Arguments

  • name - Required. The name of the Feed and it must be in the format of: projects/project_number/feeds/feed_id folders/folder_number/feeds/feed_id organizations/organization_number/feeds/feed_id

pub fn list(&self, parent: &str) -> FeedListCall<'a, C, A>[src]

Create a builder to help you perform the following task:

Lists all asset feeds in a parent project/folder/organization.

Arguments

  • parent - Required. The parent project/folder/organization whose feeds are to be listed. It can only be using project/folder/organization number (such as "folders/12345")", or a project ID (such as "projects/my-project-id").

pub fn patch(
    &self,
    request: UpdateFeedRequest,
    name: &str
) -> FeedPatchCall<'a, C, A>
[src]

Create a builder to help you perform the following task:

Updates an asset feed configuration.

Arguments

  • request - No description provided.
  • name - Required. The format will be projects/{project_number}/feeds/{client-assigned_feed_identifier} or folders/{folder_number}/feeds/{client-assigned_feed_identifier} or organizations/{organization_number}/feeds/{client-assigned_feed_identifier} The client-assigned feed identifier must be unique within the parent project/folder/organization.

Trait Implementations

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

Auto Trait Implementations

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

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

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

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

impl<'a, C, A> !UnwindSafe for FeedMethods<'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