Struct gcp_bigquery_client::routine::RoutineApi[][src]

pub struct RoutineApi { /* fields omitted */ }

A routine API handler.

Implementations

impl RoutineApi[src]

pub async fn insert(
    &self,
    project_id: &str,
    dataset_id: &str,
    routine: Routine
) -> Result<Routine, BQError>
[src]

Creates a new routine in the dataset.

Arguments

  • project_id - Project ID of the new routine.
  • dataset_id - Dataset ID of the new routine.
  • routine - The request body contains an instance of Routine.

pub async fn list(
    &self,
    project_id: &str,
    dataset_id: &str,
    options: ListOptions
) -> Result<ListRoutinesResponse, BQError>
[src]

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

Arguments

  • project_id - Project ID of the routines to list.
  • dataset_id - Dataset ID of the routines to list.

pub async fn delete(
    &self,
    project_id: &str,
    dataset_id: &str,
    routine_id: &str
) -> Result<(), BQError>
[src]

Deletes the routine specified by routineId from the dataset.

Arguments

  • project_id- Project ID of the routine to delete
  • dataset_id - Dataset ID of the routine to delete
  • routine_id - Routine ID of the routine to delete

pub async fn get(
    &self,
    project_id: &str,
    dataset_id: &str,
    routine_id: &str
) -> Result<Routine, BQError>
[src]

Gets the specified routine resource by routine ID.

Arguments

  • project_id- Project ID of the requested routine
  • dataset_id - Dataset ID of the requested routine
  • routine_id - Routine ID of the requested routine

pub async fn update(
    &self,
    project_id: &str,
    dataset_id: &str,
    routine_id: &str,
    routine: Routine
) -> Result<Routine, BQError>
[src]

Updates information in an existing routine. The update method replaces the entire Routine resource.

Arguments

  • project_id- Project ID of the routine to update
  • dataset_id - Dataset ID of the routine to update
  • routine_id - Routine ID of the routine to update
  • routine - Routine to update

Auto Trait Implementations

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> Instrument for T[src]

impl<T> Instrument 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.