[−][src]Struct gcp_client::google::cloud::automl::v1::auto_ml_client::AutoMlClient
AutoML Server API.
The resource names are assigned by the server. The server never reuses names that it has created after the resources with those names are deleted.
An ID of a resource is the last element of the item's resource name. For
projects/{project_id}/locations/{location_id}/datasets/{dataset_id}
, then
the id for the item is {dataset_id}
.
Currently the only supported location_id
is "us-central1".
On any input that is documented to expect a string parameter in snake_case or kebab-case, either of those cases is accepted.
Implementations
impl<T> AutoMlClient<T> where
T: GrpcService<BoxBody>,
T::ResponseBody: Body + HttpBody + Send + 'static,
T::Error: Into<StdError>,
<T::ResponseBody as HttpBody>::Error: Into<StdError> + Send,
[src]
T: GrpcService<BoxBody>,
T::ResponseBody: Body + HttpBody + Send + 'static,
T::Error: Into<StdError>,
<T::ResponseBody as HttpBody>::Error: Into<StdError> + Send,
pub fn new(inner: T) -> Self
[src]
pub fn with_interceptor(inner: T, interceptor: impl Into<Interceptor>) -> Self
[src]
pub async fn create_dataset<'_>(
&'_ mut self,
request: impl IntoRequest<CreateDatasetRequest>
) -> Result<Response<Operation>, Status>
[src]
&'_ mut self,
request: impl IntoRequest<CreateDatasetRequest>
) -> Result<Response<Operation>, Status>
Creates a dataset.
pub async fn get_dataset<'_>(
&'_ mut self,
request: impl IntoRequest<GetDatasetRequest>
) -> Result<Response<Dataset>, Status>
[src]
&'_ mut self,
request: impl IntoRequest<GetDatasetRequest>
) -> Result<Response<Dataset>, Status>
Gets a dataset.
pub async fn list_datasets<'_>(
&'_ mut self,
request: impl IntoRequest<ListDatasetsRequest>
) -> Result<Response<ListDatasetsResponse>, Status>
[src]
&'_ mut self,
request: impl IntoRequest<ListDatasetsRequest>
) -> Result<Response<ListDatasetsResponse>, Status>
Lists datasets in a project.
pub async fn update_dataset<'_>(
&'_ mut self,
request: impl IntoRequest<UpdateDatasetRequest>
) -> Result<Response<Dataset>, Status>
[src]
&'_ mut self,
request: impl IntoRequest<UpdateDatasetRequest>
) -> Result<Response<Dataset>, Status>
Updates a dataset.
pub async fn delete_dataset<'_>(
&'_ mut self,
request: impl IntoRequest<DeleteDatasetRequest>
) -> Result<Response<Operation>, Status>
[src]
&'_ mut self,
request: impl IntoRequest<DeleteDatasetRequest>
) -> Result<Response<Operation>, Status>
Deletes a dataset and all of its contents.
Returns empty response in the
[response][google.longrunning.Operation.response] field when it completes,
and delete_details
in the
[metadata][google.longrunning.Operation.metadata] field.
pub async fn import_data<'_>(
&'_ mut self,
request: impl IntoRequest<ImportDataRequest>
) -> Result<Response<Operation>, Status>
[src]
&'_ mut self,
request: impl IntoRequest<ImportDataRequest>
) -> Result<Response<Operation>, Status>
Imports data into a dataset. For Tables this method can only be called on an empty Dataset.
For Tables:
- A [schema_inference_version][google.cloud.automl.v1.InputConfig.params] parameter must be explicitly set. Returns an empty response in the [response][google.longrunning.Operation.response] field when it completes.
pub async fn export_data<'_>(
&'_ mut self,
request: impl IntoRequest<ExportDataRequest>
) -> Result<Response<Operation>, Status>
[src]
&'_ mut self,
request: impl IntoRequest<ExportDataRequest>
) -> Result<Response<Operation>, Status>
Exports dataset's data to the provided output location. Returns an empty response in the [response][google.longrunning.Operation.response] field when it completes.
pub async fn get_annotation_spec<'_>(
&'_ mut self,
request: impl IntoRequest<GetAnnotationSpecRequest>
) -> Result<Response<AnnotationSpec>, Status>
[src]
&'_ mut self,
request: impl IntoRequest<GetAnnotationSpecRequest>
) -> Result<Response<AnnotationSpec>, Status>
Gets an annotation spec.
pub async fn create_model<'_>(
&'_ mut self,
request: impl IntoRequest<CreateModelRequest>
) -> Result<Response<Operation>, Status>
[src]
&'_ mut self,
request: impl IntoRequest<CreateModelRequest>
) -> Result<Response<Operation>, Status>
Creates a model. Returns a Model in the [response][google.longrunning.Operation.response] field when it completes. When you create a model, several model evaluations are created for it: a global evaluation, and one evaluation for each annotation spec.
pub async fn get_model<'_>(
&'_ mut self,
request: impl IntoRequest<GetModelRequest>
) -> Result<Response<Model>, Status>
[src]
&'_ 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>
[src]
&'_ mut self,
request: impl IntoRequest<ListModelsRequest>
) -> Result<Response<ListModelsResponse>, Status>
Lists models.
pub async fn delete_model<'_>(
&'_ mut self,
request: impl IntoRequest<DeleteModelRequest>
) -> Result<Response<Operation>, Status>
[src]
&'_ mut self,
request: impl IntoRequest<DeleteModelRequest>
) -> Result<Response<Operation>, Status>
Deletes a model.
Returns google.protobuf.Empty
in the
[response][google.longrunning.Operation.response] field when it completes,
and delete_details
in the
[metadata][google.longrunning.Operation.metadata] field.
pub async fn update_model<'_>(
&'_ mut self,
request: impl IntoRequest<UpdateModelRequest>
) -> Result<Response<Model>, Status>
[src]
&'_ mut self,
request: impl IntoRequest<UpdateModelRequest>
) -> Result<Response<Model>, Status>
Updates a model.
pub async fn deploy_model<'_>(
&'_ mut self,
request: impl IntoRequest<DeployModelRequest>
) -> Result<Response<Operation>, Status>
[src]
&'_ mut self,
request: impl IntoRequest<DeployModelRequest>
) -> Result<Response<Operation>, Status>
Deploys a model. If a model is already deployed, deploying it with the same parameters has no effect. Deploying with different parametrs (as e.g. changing
[node_number][google.cloud.automl.v1p1beta.ImageObjectDetectionModelDeploymentMetadata.node_number]) will reset the deployment state without pausing the model's availability.
Only applicable for Text Classification, Image Object Detection , Tables, and Image Segmentation; all other domains manage deployment automatically.
Returns an empty response in the [response][google.longrunning.Operation.response] field when it completes.
pub async fn undeploy_model<'_>(
&'_ mut self,
request: impl IntoRequest<UndeployModelRequest>
) -> Result<Response<Operation>, Status>
[src]
&'_ mut self,
request: impl IntoRequest<UndeployModelRequest>
) -> Result<Response<Operation>, Status>
Undeploys a model. If the model is not deployed this method has no effect.
Only applicable for Text Classification, Image Object Detection and Tables; all other domains manage deployment automatically.
Returns an empty response in the [response][google.longrunning.Operation.response] field when it completes.
pub async fn export_model<'_>(
&'_ mut self,
request: impl IntoRequest<ExportModelRequest>
) -> Result<Response<Operation>, Status>
[src]
&'_ mut self,
request: impl IntoRequest<ExportModelRequest>
) -> Result<Response<Operation>, Status>
Exports a trained, "export-able", model to a user specified Google Cloud Storage location. A model is considered export-able if and only if it has an export format defined for it in [ModelExportOutputConfig][google.cloud.automl.v1.ModelExportOutputConfig].
Returns an empty response in the [response][google.longrunning.Operation.response] field when it completes.
pub async fn get_model_evaluation<'_>(
&'_ mut self,
request: impl IntoRequest<GetModelEvaluationRequest>
) -> Result<Response<ModelEvaluation>, Status>
[src]
&'_ mut self,
request: impl IntoRequest<GetModelEvaluationRequest>
) -> Result<Response<ModelEvaluation>, Status>
Gets a model evaluation.
pub async fn list_model_evaluations<'_>(
&'_ mut self,
request: impl IntoRequest<ListModelEvaluationsRequest>
) -> Result<Response<ListModelEvaluationsResponse>, Status>
[src]
&'_ mut self,
request: impl IntoRequest<ListModelEvaluationsRequest>
) -> Result<Response<ListModelEvaluationsResponse>, Status>
Lists model evaluations.
Trait Implementations
impl<T: Clone> Clone for AutoMlClient<T>
[src]
fn clone(&self) -> Self
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<T> Debug for AutoMlClient<T>
[src]
Auto Trait Implementations
impl<T> !RefUnwindSafe for AutoMlClient<T>
impl<T> Send for AutoMlClient<T> where
T: Send,
T: Send,
impl<T> Sync for AutoMlClient<T> where
T: Sync,
T: Sync,
impl<T> Unpin for AutoMlClient<T> where
T: Unpin,
T: Unpin,
impl<T> !UnwindSafe for AutoMlClient<T>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> IntoRequest<T> for T
[src]
fn into_request(self) -> Request<T>
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,
fn vzip(self) -> V
impl<T> WithSubscriber for T
[src]
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
[src]
S: Into<Dispatch>,