Trait JobService

Source
pub trait JobService:
    Debug
    + Send
    + Sync {
Show 47 methods // Provided methods fn create_custom_job( &self, _req: CreateCustomJobRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<CustomJob>>> + Send { ... } fn get_custom_job( &self, _req: GetCustomJobRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<CustomJob>>> + Send { ... } fn list_custom_jobs( &self, _req: ListCustomJobsRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<ListCustomJobsResponse>>> + Send { ... } fn delete_custom_job( &self, _req: DeleteCustomJobRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Operation>>> + Send { ... } fn cancel_custom_job( &self, _req: CancelCustomJobRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<()>>> + Send { ... } fn create_data_labeling_job( &self, _req: CreateDataLabelingJobRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<DataLabelingJob>>> + Send { ... } fn get_data_labeling_job( &self, _req: GetDataLabelingJobRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<DataLabelingJob>>> + Send { ... } fn list_data_labeling_jobs( &self, _req: ListDataLabelingJobsRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<ListDataLabelingJobsResponse>>> + Send { ... } fn delete_data_labeling_job( &self, _req: DeleteDataLabelingJobRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Operation>>> + Send { ... } fn cancel_data_labeling_job( &self, _req: CancelDataLabelingJobRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<()>>> + Send { ... } fn create_hyperparameter_tuning_job( &self, _req: CreateHyperparameterTuningJobRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<HyperparameterTuningJob>>> + Send { ... } fn get_hyperparameter_tuning_job( &self, _req: GetHyperparameterTuningJobRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<HyperparameterTuningJob>>> + Send { ... } fn list_hyperparameter_tuning_jobs( &self, _req: ListHyperparameterTuningJobsRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<ListHyperparameterTuningJobsResponse>>> + Send { ... } fn delete_hyperparameter_tuning_job( &self, _req: DeleteHyperparameterTuningJobRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Operation>>> + Send { ... } fn cancel_hyperparameter_tuning_job( &self, _req: CancelHyperparameterTuningJobRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<()>>> + Send { ... } fn create_nas_job( &self, _req: CreateNasJobRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<NasJob>>> + Send { ... } fn get_nas_job( &self, _req: GetNasJobRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<NasJob>>> + Send { ... } fn list_nas_jobs( &self, _req: ListNasJobsRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<ListNasJobsResponse>>> + Send { ... } fn delete_nas_job( &self, _req: DeleteNasJobRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Operation>>> + Send { ... } fn cancel_nas_job( &self, _req: CancelNasJobRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<()>>> + Send { ... } fn get_nas_trial_detail( &self, _req: GetNasTrialDetailRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<NasTrialDetail>>> + Send { ... } fn list_nas_trial_details( &self, _req: ListNasTrialDetailsRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<ListNasTrialDetailsResponse>>> + Send { ... } fn create_batch_prediction_job( &self, _req: CreateBatchPredictionJobRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<BatchPredictionJob>>> + Send { ... } fn get_batch_prediction_job( &self, _req: GetBatchPredictionJobRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<BatchPredictionJob>>> + Send { ... } fn list_batch_prediction_jobs( &self, _req: ListBatchPredictionJobsRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<ListBatchPredictionJobsResponse>>> + Send { ... } fn delete_batch_prediction_job( &self, _req: DeleteBatchPredictionJobRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Operation>>> + Send { ... } fn cancel_batch_prediction_job( &self, _req: CancelBatchPredictionJobRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<()>>> + Send { ... } fn create_model_deployment_monitoring_job( &self, _req: CreateModelDeploymentMonitoringJobRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<ModelDeploymentMonitoringJob>>> + Send { ... } fn search_model_deployment_monitoring_stats_anomalies( &self, _req: SearchModelDeploymentMonitoringStatsAnomaliesRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<SearchModelDeploymentMonitoringStatsAnomaliesResponse>>> + Send { ... } fn get_model_deployment_monitoring_job( &self, _req: GetModelDeploymentMonitoringJobRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<ModelDeploymentMonitoringJob>>> + Send { ... } fn list_model_deployment_monitoring_jobs( &self, _req: ListModelDeploymentMonitoringJobsRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<ListModelDeploymentMonitoringJobsResponse>>> + Send { ... } fn update_model_deployment_monitoring_job( &self, _req: UpdateModelDeploymentMonitoringJobRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Operation>>> + Send { ... } fn delete_model_deployment_monitoring_job( &self, _req: DeleteModelDeploymentMonitoringJobRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Operation>>> + Send { ... } fn pause_model_deployment_monitoring_job( &self, _req: PauseModelDeploymentMonitoringJobRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<()>>> + Send { ... } fn resume_model_deployment_monitoring_job( &self, _req: ResumeModelDeploymentMonitoringJobRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<()>>> + Send { ... } fn list_locations( &self, _req: ListLocationsRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<ListLocationsResponse>>> + Send { ... } fn get_location( &self, _req: GetLocationRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Location>>> + Send { ... } fn set_iam_policy( &self, _req: SetIamPolicyRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Policy>>> + Send { ... } fn get_iam_policy( &self, _req: GetIamPolicyRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Policy>>> + Send { ... } fn test_iam_permissions( &self, _req: TestIamPermissionsRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<TestIamPermissionsResponse>>> + Send { ... } fn list_operations( &self, _req: ListOperationsRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<ListOperationsResponse>>> + Send { ... } fn get_operation( &self, _req: GetOperationRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Operation>>> + Send { ... } fn delete_operation( &self, _req: DeleteOperationRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<()>>> + Send { ... } fn cancel_operation( &self, _req: CancelOperationRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<()>>> + Send { ... } fn wait_operation( &self, _req: WaitOperationRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Operation>>> + Send { ... } fn get_polling_error_policy( &self, _options: &RequestOptions, ) -> Arc<dyn PollingErrorPolicy> { ... } fn get_polling_backoff_policy( &self, _options: &RequestOptions, ) -> Arc<dyn PollingBackoffPolicy> { ... }
}
Available on crate feature job-service only.
Expand description

Defines the trait used to implement super::client::JobService.

Application developers may need to implement this trait to mock client::JobService. In other use-cases, application developers only use client::JobService and need not be concerned with this trait or its implementations.

Services gain new RPCs routinely. Consequently, this trait gains new methods too. To avoid breaking applications the trait provides a default implementation of each method. Most of these implementations just return an error.

Provided Methods§

Source

fn create_custom_job( &self, _req: CreateCustomJobRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<CustomJob>>> + Send

Source

fn get_custom_job( &self, _req: GetCustomJobRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<CustomJob>>> + Send

Source

fn list_custom_jobs( &self, _req: ListCustomJobsRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<ListCustomJobsResponse>>> + Send

Source

fn delete_custom_job( &self, _req: DeleteCustomJobRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Operation>>> + Send

Source

fn cancel_custom_job( &self, _req: CancelCustomJobRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<()>>> + Send

Source

fn create_data_labeling_job( &self, _req: CreateDataLabelingJobRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<DataLabelingJob>>> + Send

Source

fn get_data_labeling_job( &self, _req: GetDataLabelingJobRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<DataLabelingJob>>> + Send

Source

fn list_data_labeling_jobs( &self, _req: ListDataLabelingJobsRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<ListDataLabelingJobsResponse>>> + Send

Source

fn delete_data_labeling_job( &self, _req: DeleteDataLabelingJobRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Operation>>> + Send

Source

fn cancel_data_labeling_job( &self, _req: CancelDataLabelingJobRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<()>>> + Send

Source

fn create_hyperparameter_tuning_job( &self, _req: CreateHyperparameterTuningJobRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<HyperparameterTuningJob>>> + Send

Source

fn get_hyperparameter_tuning_job( &self, _req: GetHyperparameterTuningJobRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<HyperparameterTuningJob>>> + Send

Source

fn list_hyperparameter_tuning_jobs( &self, _req: ListHyperparameterTuningJobsRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<ListHyperparameterTuningJobsResponse>>> + Send

Source

fn delete_hyperparameter_tuning_job( &self, _req: DeleteHyperparameterTuningJobRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Operation>>> + Send

Source

fn cancel_hyperparameter_tuning_job( &self, _req: CancelHyperparameterTuningJobRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<()>>> + Send

Source

fn create_nas_job( &self, _req: CreateNasJobRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<NasJob>>> + Send

Source

fn get_nas_job( &self, _req: GetNasJobRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<NasJob>>> + Send

Source

fn list_nas_jobs( &self, _req: ListNasJobsRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<ListNasJobsResponse>>> + Send

Source

fn delete_nas_job( &self, _req: DeleteNasJobRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Operation>>> + Send

Source

fn cancel_nas_job( &self, _req: CancelNasJobRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<()>>> + Send

Source

fn get_nas_trial_detail( &self, _req: GetNasTrialDetailRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<NasTrialDetail>>> + Send

Source

fn list_nas_trial_details( &self, _req: ListNasTrialDetailsRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<ListNasTrialDetailsResponse>>> + Send

Source

fn create_batch_prediction_job( &self, _req: CreateBatchPredictionJobRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<BatchPredictionJob>>> + Send

Source

fn get_batch_prediction_job( &self, _req: GetBatchPredictionJobRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<BatchPredictionJob>>> + Send

Source

fn list_batch_prediction_jobs( &self, _req: ListBatchPredictionJobsRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<ListBatchPredictionJobsResponse>>> + Send

Source

fn delete_batch_prediction_job( &self, _req: DeleteBatchPredictionJobRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Operation>>> + Send

Source

fn cancel_batch_prediction_job( &self, _req: CancelBatchPredictionJobRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<()>>> + Send

Source

fn create_model_deployment_monitoring_job( &self, _req: CreateModelDeploymentMonitoringJobRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<ModelDeploymentMonitoringJob>>> + Send

Source

fn search_model_deployment_monitoring_stats_anomalies( &self, _req: SearchModelDeploymentMonitoringStatsAnomaliesRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<SearchModelDeploymentMonitoringStatsAnomaliesResponse>>> + Send

Source

fn get_model_deployment_monitoring_job( &self, _req: GetModelDeploymentMonitoringJobRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<ModelDeploymentMonitoringJob>>> + Send

Source

fn list_model_deployment_monitoring_jobs( &self, _req: ListModelDeploymentMonitoringJobsRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<ListModelDeploymentMonitoringJobsResponse>>> + Send

Source

fn update_model_deployment_monitoring_job( &self, _req: UpdateModelDeploymentMonitoringJobRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Operation>>> + Send

Source

fn delete_model_deployment_monitoring_job( &self, _req: DeleteModelDeploymentMonitoringJobRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Operation>>> + Send

Source

fn pause_model_deployment_monitoring_job( &self, _req: PauseModelDeploymentMonitoringJobRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<()>>> + Send

Source

fn resume_model_deployment_monitoring_job( &self, _req: ResumeModelDeploymentMonitoringJobRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<()>>> + Send

Source

fn list_locations( &self, _req: ListLocationsRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<ListLocationsResponse>>> + Send

Source

fn get_location( &self, _req: GetLocationRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Location>>> + Send

Source

fn set_iam_policy( &self, _req: SetIamPolicyRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Policy>>> + Send

Source

fn get_iam_policy( &self, _req: GetIamPolicyRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Policy>>> + Send

Source

fn test_iam_permissions( &self, _req: TestIamPermissionsRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<TestIamPermissionsResponse>>> + Send

Source

fn list_operations( &self, _req: ListOperationsRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<ListOperationsResponse>>> + Send

Source

fn get_operation( &self, _req: GetOperationRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Operation>>> + Send

Source

fn delete_operation( &self, _req: DeleteOperationRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<()>>> + Send

Source

fn cancel_operation( &self, _req: CancelOperationRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<()>>> + Send

Source

fn wait_operation( &self, _req: WaitOperationRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Operation>>> + Send

Source

fn get_polling_error_policy( &self, _options: &RequestOptions, ) -> Arc<dyn PollingErrorPolicy>

Returns the polling error policy.

When mocking, this method is typically irrelevant. Do not try to verify it is called by your mocks.

Source

fn get_polling_backoff_policy( &self, _options: &RequestOptions, ) -> Arc<dyn PollingBackoffPolicy>

Returns the polling backoff policy.

When mocking, this method is typically irrelevant. Do not try to verify it is called by your mocks.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§