Struct google_api_proto::google::cloud::dataproc::v1::WorkflowTemplate
source · pub struct WorkflowTemplate {
pub id: String,
pub name: String,
pub version: i32,
pub create_time: Option<Timestamp>,
pub update_time: Option<Timestamp>,
pub labels: BTreeMap<String, String>,
pub placement: Option<WorkflowTemplatePlacement>,
pub jobs: Vec<OrderedJob>,
pub parameters: Vec<TemplateParameter>,
pub dag_timeout: Option<Duration>,
}
Expand description
A Dataproc workflow template resource.
Fields§
§id: String
§name: String
Output only. The resource name of the workflow template, as described in https://cloud.google.com/apis/design/resource_names.
-
For
projects.regions.workflowTemplates
, the resource name of the template has the following format:projects/{project_id}/regions/{region}/workflowTemplates/{template_id}
-
For
projects.locations.workflowTemplates
, the resource name of the template has the following format:projects/{project_id}/locations/{location}/workflowTemplates/{template_id}
version: i32
Optional. Used to perform a consistent read-modify-write.
This field should be left blank for a CreateWorkflowTemplate
request. It
is required for an UpdateWorkflowTemplate
request, and must match the
current server version. A typical update template flow would fetch the
current template with a GetWorkflowTemplate
request, which will return
the current template with the version
field filled in with the
current server version. The user updates other fields in the template,
then returns it as part of the UpdateWorkflowTemplate
request.
create_time: Option<Timestamp>
Output only. The time template was created.
update_time: Option<Timestamp>
Output only. The time template was last updated.
labels: BTreeMap<String, String>
Optional. The labels to associate with this template. These labels will be propagated to all jobs and clusters created by the workflow instance.
Label keys must contain 1 to 63 characters, and must conform to RFC 1035.
Label values may be empty, but, if present, must contain 1 to 63 characters, and must conform to RFC 1035.
No more than 32 labels can be associated with a template.
placement: Option<WorkflowTemplatePlacement>
Required. WorkflowTemplate scheduling information.
jobs: Vec<OrderedJob>
Required. The Directed Acyclic Graph of Jobs to submit.
parameters: Vec<TemplateParameter>
Optional. Template parameters whose values are substituted into the template. Values for parameters must be provided when the template is instantiated.
dag_timeout: Option<Duration>
Optional. Timeout duration for the DAG of jobs, expressed in seconds (see JSON representation of duration). The timeout duration must be from 10 minutes (“600s”) to 24 hours (“86400s”). The timer begins when the first job is submitted. If the workflow is running at the end of the timeout period, any remaining jobs are cancelled, the workflow is ended, and if the workflow was running on a managed cluster, the cluster is deleted.
Trait Implementations§
source§impl Clone for WorkflowTemplate
impl Clone for WorkflowTemplate
source§fn clone(&self) -> WorkflowTemplate
fn clone(&self) -> WorkflowTemplate
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for WorkflowTemplate
impl Debug for WorkflowTemplate
source§impl Default for WorkflowTemplate
impl Default for WorkflowTemplate
source§impl Message for WorkflowTemplate
impl Message for WorkflowTemplate
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for WorkflowTemplate
impl PartialEq for WorkflowTemplate
source§fn eq(&self, other: &WorkflowTemplate) -> bool
fn eq(&self, other: &WorkflowTemplate) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for WorkflowTemplate
Auto Trait Implementations§
impl Freeze for WorkflowTemplate
impl RefUnwindSafe for WorkflowTemplate
impl Send for WorkflowTemplate
impl Sync for WorkflowTemplate
impl Unpin for WorkflowTemplate
impl UnwindSafe for WorkflowTemplate
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