Struct google_api_proto::google::cloud::workflows::v1::workflows_client::WorkflowsClient
source · pub struct WorkflowsClient<T> { /* private fields */ }
Expand description
Workflows is used to deploy and execute workflow programs. Workflows makes sure the program executes reliably, despite hardware and networking interruptions.
Implementations§
source§impl<T> WorkflowsClient<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> WorkflowsClient<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,
) -> WorkflowsClient<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 list_workflows(
&mut self,
request: impl IntoRequest<ListWorkflowsRequest>,
) -> Result<Response<ListWorkflowsResponse>, Status>
pub async fn list_workflows( &mut self, request: impl IntoRequest<ListWorkflowsRequest>, ) -> Result<Response<ListWorkflowsResponse>, Status>
Lists workflows in a given project and location. The default order is not specified.
sourcepub async fn get_workflow(
&mut self,
request: impl IntoRequest<GetWorkflowRequest>,
) -> Result<Response<Workflow>, Status>
pub async fn get_workflow( &mut self, request: impl IntoRequest<GetWorkflowRequest>, ) -> Result<Response<Workflow>, Status>
Gets details of a single workflow.
sourcepub async fn create_workflow(
&mut self,
request: impl IntoRequest<CreateWorkflowRequest>,
) -> Result<Response<Operation>, Status>
pub async fn create_workflow( &mut self, request: impl IntoRequest<CreateWorkflowRequest>, ) -> Result<Response<Operation>, Status>
Creates a new workflow. If a workflow with the specified name already exists in the specified project and location, the long running operation returns a [ALREADY_EXISTS][google.rpc.Code.ALREADY_EXISTS] error.
sourcepub async fn delete_workflow(
&mut self,
request: impl IntoRequest<DeleteWorkflowRequest>,
) -> Result<Response<Operation>, Status>
pub async fn delete_workflow( &mut self, request: impl IntoRequest<DeleteWorkflowRequest>, ) -> Result<Response<Operation>, Status>
Deletes a workflow with the specified name. This method also cancels and deletes all running executions of the workflow.
sourcepub async fn update_workflow(
&mut self,
request: impl IntoRequest<UpdateWorkflowRequest>,
) -> Result<Response<Operation>, Status>
pub async fn update_workflow( &mut self, request: impl IntoRequest<UpdateWorkflowRequest>, ) -> Result<Response<Operation>, Status>
Updates an existing workflow. Running this method has no impact on already running executions of the workflow. A new revision of the workflow might be created as a result of a successful update operation. In that case, the new revision is used in new workflow executions.
Trait Implementations§
source§impl<T: Clone> Clone for WorkflowsClient<T>
impl<T: Clone> Clone for WorkflowsClient<T>
source§fn clone(&self) -> WorkflowsClient<T>
fn clone(&self) -> WorkflowsClient<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 WorkflowsClient<T>
impl<T> RefUnwindSafe for WorkflowsClient<T>where
T: RefUnwindSafe,
impl<T> Send for WorkflowsClient<T>where
T: Send,
impl<T> Sync for WorkflowsClient<T>where
T: Sync,
impl<T> Unpin for WorkflowsClient<T>where
T: Unpin,
impl<T> UnwindSafe for WorkflowsClient<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