Struct google_api_proto::google::cloud::aiplatform::v1beta1::pipeline_service_client::PipelineServiceClient
source · pub struct PipelineServiceClient<T> { /* private fields */ }
Expand description
A service for creating and managing Vertex AI’s pipelines. This includes both
TrainingPipeline
resources (used for AutoML and custom training) and
PipelineJob
resources (used for Vertex AI Pipelines).
Implementations§
source§impl<T> PipelineServiceClient<T>where
T: GrpcService<BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
impl<T> PipelineServiceClient<T>where
T: GrpcService<BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
pub fn new(inner: T) -> Self
pub fn with_origin(inner: T, origin: Uri) -> Self
pub fn with_interceptor<F>(
inner: T,
interceptor: F,
) -> PipelineServiceClient<InterceptedService<T, F>>where
F: Interceptor,
T::ResponseBody: Default,
T: Service<Request<BoxBody>, Response = Response<<T as GrpcService<BoxBody>>::ResponseBody>>,
<T as Service<Request<BoxBody>>>::Error: Into<StdError> + Send + Sync,
sourcepub fn send_compressed(self, encoding: CompressionEncoding) -> Self
pub fn send_compressed(self, encoding: CompressionEncoding) -> Self
Compress requests with the given encoding.
This requires the server to support it otherwise it might respond with an error.
sourcepub fn accept_compressed(self, encoding: CompressionEncoding) -> Self
pub fn accept_compressed(self, encoding: CompressionEncoding) -> Self
Enable decompressing responses.
sourcepub fn max_decoding_message_size(self, limit: usize) -> Self
pub fn max_decoding_message_size(self, limit: usize) -> Self
Limits the maximum size of a decoded message.
Default: 4MB
sourcepub fn max_encoding_message_size(self, limit: usize) -> Self
pub fn max_encoding_message_size(self, limit: usize) -> Self
Limits the maximum size of an encoded message.
Default: usize::MAX
sourcepub async fn create_training_pipeline(
&mut self,
request: impl IntoRequest<CreateTrainingPipelineRequest>,
) -> Result<Response<TrainingPipeline>, Status>
pub async fn create_training_pipeline( &mut self, request: impl IntoRequest<CreateTrainingPipelineRequest>, ) -> Result<Response<TrainingPipeline>, Status>
Creates a TrainingPipeline. A created TrainingPipeline right away will be attempted to be run.
sourcepub async fn get_training_pipeline(
&mut self,
request: impl IntoRequest<GetTrainingPipelineRequest>,
) -> Result<Response<TrainingPipeline>, Status>
pub async fn get_training_pipeline( &mut self, request: impl IntoRequest<GetTrainingPipelineRequest>, ) -> Result<Response<TrainingPipeline>, Status>
Gets a TrainingPipeline.
sourcepub async fn list_training_pipelines(
&mut self,
request: impl IntoRequest<ListTrainingPipelinesRequest>,
) -> Result<Response<ListTrainingPipelinesResponse>, Status>
pub async fn list_training_pipelines( &mut self, request: impl IntoRequest<ListTrainingPipelinesRequest>, ) -> Result<Response<ListTrainingPipelinesResponse>, Status>
Lists TrainingPipelines in a Location.
sourcepub async fn delete_training_pipeline(
&mut self,
request: impl IntoRequest<DeleteTrainingPipelineRequest>,
) -> Result<Response<Operation>, Status>
pub async fn delete_training_pipeline( &mut self, request: impl IntoRequest<DeleteTrainingPipelineRequest>, ) -> Result<Response<Operation>, Status>
Deletes a TrainingPipeline.
sourcepub async fn cancel_training_pipeline(
&mut self,
request: impl IntoRequest<CancelTrainingPipelineRequest>,
) -> Result<Response<()>, Status>
pub async fn cancel_training_pipeline( &mut self, request: impl IntoRequest<CancelTrainingPipelineRequest>, ) -> Result<Response<()>, Status>
Cancels a TrainingPipeline.
Starts asynchronous cancellation on the TrainingPipeline. The server
makes a best effort to cancel the pipeline, but success is not
guaranteed. Clients can use
[PipelineService.GetTrainingPipeline][google.cloud.aiplatform.v1beta1.PipelineService.GetTrainingPipeline]
or other methods to check whether the cancellation succeeded or whether the
pipeline completed despite cancellation. On successful cancellation,
the TrainingPipeline is not deleted; instead it becomes a pipeline with
a
[TrainingPipeline.error][google.cloud.aiplatform.v1beta1.TrainingPipeline.error]
value with a [google.rpc.Status.code][google.rpc.Status.code] of 1,
corresponding to Code.CANCELLED
, and
[TrainingPipeline.state][google.cloud.aiplatform.v1beta1.TrainingPipeline.state]
is set to CANCELLED
.
sourcepub async fn create_pipeline_job(
&mut self,
request: impl IntoRequest<CreatePipelineJobRequest>,
) -> Result<Response<PipelineJob>, Status>
pub async fn create_pipeline_job( &mut self, request: impl IntoRequest<CreatePipelineJobRequest>, ) -> Result<Response<PipelineJob>, Status>
Creates a PipelineJob. A PipelineJob will run immediately when created.
sourcepub async fn get_pipeline_job(
&mut self,
request: impl IntoRequest<GetPipelineJobRequest>,
) -> Result<Response<PipelineJob>, Status>
pub async fn get_pipeline_job( &mut self, request: impl IntoRequest<GetPipelineJobRequest>, ) -> Result<Response<PipelineJob>, Status>
Gets a PipelineJob.
sourcepub async fn list_pipeline_jobs(
&mut self,
request: impl IntoRequest<ListPipelineJobsRequest>,
) -> Result<Response<ListPipelineJobsResponse>, Status>
pub async fn list_pipeline_jobs( &mut self, request: impl IntoRequest<ListPipelineJobsRequest>, ) -> Result<Response<ListPipelineJobsResponse>, Status>
Lists PipelineJobs in a Location.
sourcepub async fn delete_pipeline_job(
&mut self,
request: impl IntoRequest<DeletePipelineJobRequest>,
) -> Result<Response<Operation>, Status>
pub async fn delete_pipeline_job( &mut self, request: impl IntoRequest<DeletePipelineJobRequest>, ) -> Result<Response<Operation>, Status>
Deletes a PipelineJob.
sourcepub async fn batch_delete_pipeline_jobs(
&mut self,
request: impl IntoRequest<BatchDeletePipelineJobsRequest>,
) -> Result<Response<Operation>, Status>
pub async fn batch_delete_pipeline_jobs( &mut self, request: impl IntoRequest<BatchDeletePipelineJobsRequest>, ) -> Result<Response<Operation>, Status>
Batch deletes PipelineJobs The Operation is atomic. If it fails, none of the PipelineJobs are deleted. If it succeeds, all of the PipelineJobs are deleted.
sourcepub async fn cancel_pipeline_job(
&mut self,
request: impl IntoRequest<CancelPipelineJobRequest>,
) -> Result<Response<()>, Status>
pub async fn cancel_pipeline_job( &mut self, request: impl IntoRequest<CancelPipelineJobRequest>, ) -> Result<Response<()>, Status>
Cancels a PipelineJob.
Starts asynchronous cancellation on the PipelineJob. The server
makes a best effort to cancel the pipeline, but success is not
guaranteed. Clients can use
[PipelineService.GetPipelineJob][google.cloud.aiplatform.v1beta1.PipelineService.GetPipelineJob]
or other methods to check whether the cancellation succeeded or whether the
pipeline completed despite cancellation. On successful cancellation,
the PipelineJob is not deleted; instead it becomes a pipeline with
a [PipelineJob.error][google.cloud.aiplatform.v1beta1.PipelineJob.error]
value with a [google.rpc.Status.code][google.rpc.Status.code] of 1,
corresponding to Code.CANCELLED
, and
[PipelineJob.state][google.cloud.aiplatform.v1beta1.PipelineJob.state] is
set to CANCELLED
.
sourcepub async fn batch_cancel_pipeline_jobs(
&mut self,
request: impl IntoRequest<BatchCancelPipelineJobsRequest>,
) -> Result<Response<Operation>, Status>
pub async fn batch_cancel_pipeline_jobs( &mut self, request: impl IntoRequest<BatchCancelPipelineJobsRequest>, ) -> Result<Response<Operation>, Status>
Batch cancel PipelineJobs. Firstly the server will check if all the jobs are in non-terminal states, and skip the jobs that are already terminated. If the operation failed, none of the pipeline jobs are cancelled. The server will poll the states of all the pipeline jobs periodically to check the cancellation status. This operation will return an LRO.
Trait Implementations§
source§impl<T: Clone> Clone for PipelineServiceClient<T>
impl<T: Clone> Clone for PipelineServiceClient<T>
source§fn clone(&self) -> PipelineServiceClient<T>
fn clone(&self) -> PipelineServiceClient<T>
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl<T> !Freeze for PipelineServiceClient<T>
impl<T> RefUnwindSafe for PipelineServiceClient<T>where
T: RefUnwindSafe,
impl<T> Send for PipelineServiceClient<T>where
T: Send,
impl<T> Sync for PipelineServiceClient<T>where
T: Sync,
impl<T> Unpin for PipelineServiceClient<T>where
T: Unpin,
impl<T> UnwindSafe for PipelineServiceClient<T>where
T: UnwindSafe,
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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>
T
in a tonic::Request