Struct googapis::google::cloud::aiplatform::v1beta1::model_service_client::ModelServiceClient [−][src]
pub struct ModelServiceClient<T> { /* fields omitted */ }
Expand description
A service for managing Vertex AI’s machine learning Models.
Implementations
impl<T> ModelServiceClient<T> where
T: GrpcService<BoxBody>,
T::ResponseBody: Body + Send + 'static,
T::Error: Into<StdError>,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
impl<T> ModelServiceClient<T> where
T: GrpcService<BoxBody>,
T::ResponseBody: Body + Send + 'static,
T::Error: Into<StdError>,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
pub fn with_interceptor<F>(
inner: T,
interceptor: F
) -> ModelServiceClient<InterceptedService<T, F>> where
F: Interceptor,
T: Service<Request<BoxBody>, Response = Response<<T as GrpcService<BoxBody>>::ResponseBody>>,
<T as Service<Request<BoxBody>>>::Error: Into<StdError> + Send + Sync,
Compress requests with gzip
.
This requires the server to support it otherwise it might respond with an error.
Enable decompressing responses with gzip
.
pub async fn upload_model(
&mut self,
request: impl IntoRequest<UploadModelRequest>
) -> Result<Response<Operation>, Status>
pub async fn upload_model(
&mut self,
request: impl IntoRequest<UploadModelRequest>
) -> Result<Response<Operation>, Status>
Uploads a Model artifact into Vertex AI.
pub async fn get_model(
&mut self,
request: impl IntoRequest<GetModelRequest>
) -> Result<Response<Model>, Status>
pub async fn get_model(
&mut self,
request: impl IntoRequest<GetModelRequest>
) -> Result<Response<Model>, Status>
Gets a Model.
pub async fn list_models(
&mut self,
request: impl IntoRequest<ListModelsRequest>
) -> Result<Response<ListModelsResponse>, Status>
pub async fn list_models(
&mut self,
request: impl IntoRequest<ListModelsRequest>
) -> Result<Response<ListModelsResponse>, Status>
Lists Models in a Location.
pub async fn update_model(
&mut self,
request: impl IntoRequest<UpdateModelRequest>
) -> Result<Response<Model>, Status>
pub async fn update_model(
&mut self,
request: impl IntoRequest<UpdateModelRequest>
) -> Result<Response<Model>, Status>
Updates a Model.
pub async fn delete_model(
&mut self,
request: impl IntoRequest<DeleteModelRequest>
) -> Result<Response<Operation>, Status>
pub async fn delete_model(
&mut self,
request: impl IntoRequest<DeleteModelRequest>
) -> Result<Response<Operation>, Status>
Deletes a Model.
Model can only be deleted if there are no [DeployedModels][] created from it.
pub async fn export_model(
&mut self,
request: impl IntoRequest<ExportModelRequest>
) -> Result<Response<Operation>, Status>
pub async fn export_model(
&mut self,
request: impl IntoRequest<ExportModelRequest>
) -> Result<Response<Operation>, Status>
Exports a trained, exportable, Model to a location specified by the user. A Model is considered to be exportable if it has at least one [supported export format][google.cloud.aiplatform.v1beta1.Model.supported_export_formats].
pub async fn get_model_evaluation(
&mut self,
request: impl IntoRequest<GetModelEvaluationRequest>
) -> Result<Response<ModelEvaluation>, Status>
pub async fn get_model_evaluation(
&mut self,
request: impl IntoRequest<GetModelEvaluationRequest>
) -> Result<Response<ModelEvaluation>, Status>
Gets a ModelEvaluation.
pub async fn list_model_evaluations(
&mut self,
request: impl IntoRequest<ListModelEvaluationsRequest>
) -> Result<Response<ListModelEvaluationsResponse>, Status>
pub async fn list_model_evaluations(
&mut self,
request: impl IntoRequest<ListModelEvaluationsRequest>
) -> Result<Response<ListModelEvaluationsResponse>, Status>
Lists ModelEvaluations in a Model.
pub async fn get_model_evaluation_slice(
&mut self,
request: impl IntoRequest<GetModelEvaluationSliceRequest>
) -> Result<Response<ModelEvaluationSlice>, Status>
pub async fn get_model_evaluation_slice(
&mut self,
request: impl IntoRequest<GetModelEvaluationSliceRequest>
) -> Result<Response<ModelEvaluationSlice>, Status>
Gets a ModelEvaluationSlice.
pub async fn list_model_evaluation_slices(
&mut self,
request: impl IntoRequest<ListModelEvaluationSlicesRequest>
) -> Result<Response<ListModelEvaluationSlicesResponse>, Status>
pub async fn list_model_evaluation_slices(
&mut self,
request: impl IntoRequest<ListModelEvaluationSlicesRequest>
) -> Result<Response<ListModelEvaluationSlicesResponse>, Status>
Lists ModelEvaluationSlices in a ModelEvaluation.
Trait Implementations
Auto Trait Implementations
impl<T> RefUnwindSafe for ModelServiceClient<T> where
T: RefUnwindSafe,
impl<T> Send for ModelServiceClient<T> where
T: Send,
impl<T> Sync for ModelServiceClient<T> where
T: Sync,
impl<T> Unpin for ModelServiceClient<T> where
T: Unpin,
impl<T> UnwindSafe for ModelServiceClient<T> where
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Wrap the input message T
in a tonic::Request
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more