[][src]Struct google_bigquery2::ModelMethods

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

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

Example

Instantiate a resource builder

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

Methods

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

pub fn delete(
    &self,
    project_id: &str,
    dataset_id: &str,
    model_id: &str
) -> ModelDeleteCall<'a, C, A>
[src]

Create a builder to help you perform the following task:

Deletes the model specified by modelId from the dataset.

Arguments

  • projectId - Project ID of the model to delete.
  • datasetId - Dataset ID of the model to delete.
  • modelId - Model ID of the model to delete.

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

Create a builder to help you perform the following task:

Lists all models in the specified dataset. Requires the READER dataset role.

Arguments

  • projectId - Project ID of the models to list.
  • datasetId - Dataset ID of the models to list.

pub fn patch(
    &self,
    request: Model,
    project_id: &str,
    dataset_id: &str,
    model_id: &str
) -> ModelPatchCall<'a, C, A>
[src]

Create a builder to help you perform the following task:

Patch specific fields in the specified model.

Arguments

  • request - No description provided.
  • projectId - Project ID of the model to patch.
  • datasetId - Dataset ID of the model to patch.
  • modelId - Model ID of the model to patch.

pub fn get(
    &self,
    project_id: &str,
    dataset_id: &str,
    model_id: &str
) -> ModelGetCall<'a, C, A>
[src]

Create a builder to help you perform the following task:

Gets the specified model resource by model ID.

Arguments

  • projectId - Project ID of the requested model.
  • datasetId - Dataset ID of the requested model.
  • modelId - Model ID of the requested model.

Trait Implementations

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

Auto Trait Implementations

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

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

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

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

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

Blanket Implementations

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> BorrowMut<T> for T where
    T: ?Sized
[src]

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

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

impl<T> Typeable for T where
    T: Any

fn get_type(&self) -> TypeId

Get the TypeId of this object.