Struct gcp_bigquery_client::routine::RoutineApi
source · [−]pub struct RoutineApi { /* private fields */ }Expand description
A routine API handler.
Implementations
sourceimpl RoutineApi
impl RoutineApi
sourcepub async fn insert(
&self,
project_id: &str,
dataset_id: &str,
routine: Routine
) -> Result<Routine, BQError>
pub async fn insert(
&self,
project_id: &str,
dataset_id: &str,
routine: Routine
) -> Result<Routine, BQError>
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.
sourcepub async fn list(
&self,
project_id: &str,
dataset_id: &str,
options: ListOptions
) -> Result<ListRoutinesResponse, BQError>
pub async fn list(
&self,
project_id: &str,
dataset_id: &str,
options: ListOptions
) -> Result<ListRoutinesResponse, BQError>
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.
sourcepub async fn delete(
&self,
project_id: &str,
dataset_id: &str,
routine_id: &str
) -> Result<(), BQError>
pub async fn delete(
&self,
project_id: &str,
dataset_id: &str,
routine_id: &str
) -> Result<(), BQError>
Deletes the routine specified by routineId from the dataset.
Arguments
project_id- Project ID of the routine to deletedataset_id- Dataset ID of the routine to deleteroutine_id- Routine ID of the routine to delete
sourcepub async fn get(
&self,
project_id: &str,
dataset_id: &str,
routine_id: &str
) -> Result<Routine, BQError>
pub async fn get(
&self,
project_id: &str,
dataset_id: &str,
routine_id: &str
) -> Result<Routine, BQError>
Gets the specified routine resource by routine ID.
Arguments
project_id- Project ID of the requested routinedataset_id- Dataset ID of the requested routineroutine_id- Routine ID of the requested routine
sourcepub async fn update(
&self,
project_id: &str,
dataset_id: &str,
routine_id: &str,
routine: Routine
) -> Result<Routine, BQError>
pub async fn update(
&self,
project_id: &str,
dataset_id: &str,
routine_id: &str,
routine: Routine
) -> Result<Routine, BQError>
Updates information in an existing routine. The update method replaces the entire Routine resource.
Arguments
project_id- Project ID of the routine to updatedataset_id- Dataset ID of the routine to updateroutine_id- Routine ID of the routine to updateroutine- Routine to update
Trait Implementations
sourceimpl Clone for RoutineApi
impl Clone for RoutineApi
sourcefn clone(&self) -> RoutineApi
fn clone(&self) -> RoutineApi
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
Auto Trait Implementations
impl !RefUnwindSafe for RoutineApi
impl Send for RoutineApi
impl Sync for RoutineApi
impl Unpin for RoutineApi
impl !UnwindSafe for RoutineApi
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more