[][src]Struct gcp_client::google::cloud::dataproc::v1::job_controller_client::JobControllerClient

pub struct JobControllerClient<T> { /* fields omitted */ }

The JobController provides methods to manage jobs.

Implementations

impl<T> JobControllerClient<T> where
    T: GrpcService<BoxBody>,
    T::ResponseBody: Body + HttpBody + Send + 'static,
    T::Error: Into<StdError>,
    <T::ResponseBody as HttpBody>::Error: Into<StdError> + Send
[src]

pub fn new(inner: T) -> Self[src]

pub fn with_interceptor(inner: T, interceptor: impl Into<Interceptor>) -> Self[src]

pub async fn submit_job<'_>(
    &'_ mut self,
    request: impl IntoRequest<SubmitJobRequest>
) -> Result<Response<Job>, Status>
[src]

Submits a job to a cluster.

pub async fn submit_job_as_operation<'_>(
    &'_ mut self,
    request: impl IntoRequest<SubmitJobRequest>
) -> Result<Response<Operation>, Status>
[src]

Submits job to a cluster.

pub async fn get_job<'_>(
    &'_ mut self,
    request: impl IntoRequest<GetJobRequest>
) -> Result<Response<Job>, Status>
[src]

Gets the resource representation for a job in a project.

pub async fn list_jobs<'_>(
    &'_ mut self,
    request: impl IntoRequest<ListJobsRequest>
) -> Result<Response<ListJobsResponse>, Status>
[src]

Lists regions/{region}/jobs in a project.

pub async fn update_job<'_>(
    &'_ mut self,
    request: impl IntoRequest<UpdateJobRequest>
) -> Result<Response<Job>, Status>
[src]

Updates a job in a project.

pub async fn cancel_job<'_>(
    &'_ mut self,
    request: impl IntoRequest<CancelJobRequest>
) -> Result<Response<Job>, Status>
[src]

Starts a job cancellation request. To access the job resource after cancellation, call regions/{region}/jobs.list or regions/{region}/jobs.get.

pub async fn delete_job<'_>(
    &'_ mut self,
    request: impl IntoRequest<DeleteJobRequest>
) -> Result<Response<()>, Status>
[src]

Deletes the job from the project. If the job is active, the delete fails, and the response returns FAILED_PRECONDITION.

Trait Implementations

impl<T: Clone> Clone for JobControllerClient<T>[src]

impl<T> Debug for JobControllerClient<T>[src]

Auto Trait Implementations

impl<T> !RefUnwindSafe for JobControllerClient<T>

impl<T> Send for JobControllerClient<T> where
    T: Send

impl<T> Sync for JobControllerClient<T> where
    T: Sync

impl<T> Unpin for JobControllerClient<T> where
    T: Unpin

impl<T> !UnwindSafe for JobControllerClient<T>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoRequest<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithSubscriber for T[src]