pub struct RoutineApi { /* private fields */ }
Expand description
A routine API handler.
Implementations§
Source§impl 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§
Source§impl Clone for RoutineApi
impl Clone for RoutineApi
Source§fn clone(&self) -> RoutineApi
fn clone(&self) -> RoutineApi
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for RoutineApi
impl !RefUnwindSafe for RoutineApi
impl Send for RoutineApi
impl Sync for RoutineApi
impl Unpin for RoutineApi
impl !UnwindSafe for RoutineApi
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request