Struct gcp_bigquery_client::model_api::ModelApi
source · [−]pub struct ModelApi { /* private fields */ }
Expand description
A model API handler.
Implementations
sourceimpl ModelApi
impl ModelApi
sourcepub async fn list(
&self,
project_id: &str,
dataset_id: &str,
options: ListOptions
) -> Result<ListModelsResponse, BQError>
pub async fn list(
&self,
project_id: &str,
dataset_id: &str,
options: ListOptions
) -> Result<ListModelsResponse, BQError>
Lists all models in the specified dataset. Requires the READER dataset role.
Arguments
project_id
- Project ID of the models to list.dataset_id
- Dataset ID of the models to list.
sourcepub async fn delete(
&self,
project_id: &str,
dataset_id: &str,
model_id: &str
) -> Result<(), BQError>
pub async fn delete(
&self,
project_id: &str,
dataset_id: &str,
model_id: &str
) -> Result<(), BQError>
Deletes the model specified by modelId from the dataset.
Arguments
project_id
- Project ID of the model to deletedataset_id
- Dataset ID of the model to deletemodel_id
- Model ID of the model to delete
sourcepub async fn get(
&self,
project_id: &str,
dataset_id: &str,
model_id: &str
) -> Result<Model, BQError>
pub async fn get(
&self,
project_id: &str,
dataset_id: &str,
model_id: &str
) -> Result<Model, BQError>
Gets the specified model resource by model ID.
Arguments
project_id
- Project ID of the requested modeldataset_id
- Dataset ID of the requested modelroutine_id
- Routine ID of the requested model
sourcepub async fn update(
&self,
project_id: &str,
dataset_id: &str,
model_id: &str,
model: Model
) -> Result<Model, BQError>
pub async fn update(
&self,
project_id: &str,
dataset_id: &str,
model_id: &str,
model: Model
) -> Result<Model, BQError>
Patch specific fields in the specified model.
Arguments
project_id
- Project ID of the model to patchdataset_id
- Dataset ID of the model to patchmodel_id
- Routine ID of the model to patchmodel
- Model to patch
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for ModelApi
impl Send for ModelApi
impl Sync for ModelApi
impl Unpin for ModelApi
impl !UnwindSafe for ModelApi
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