#[non_exhaustive]pub struct WorkflowTemplate {
pub id: String,
pub name: String,
pub version: i32,
pub create_time: Option<Timestamp>,
pub update_time: Option<Timestamp>,
pub labels: HashMap<String, String>,
pub placement: Option<WorkflowTemplatePlacement>,
pub jobs: Vec<OrderedJob>,
pub parameters: Vec<TemplateParameter>,
pub dag_timeout: Option<Duration>,
pub encryption_config: Option<EncryptionConfig>,
/* private fields */
}Expand description
A Dataproc workflow template resource.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.id: String§name: StringOutput 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: i32Optional. 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: HashMap<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.
encryption_config: Option<EncryptionConfig>Optional. Encryption settings for encrypting workflow template job arguments.
Implementations§
Source§impl WorkflowTemplate
impl WorkflowTemplate
pub fn new() -> Self
Sourcepub fn set_version<T: Into<i32>>(self, v: T) -> Self
pub fn set_version<T: Into<i32>>(self, v: T) -> Self
Sets the value of version.
Sourcepub fn set_create_time<T: Into<Option<Timestamp>>>(self, v: T) -> Self
pub fn set_create_time<T: Into<Option<Timestamp>>>(self, v: T) -> Self
Sets the value of create_time.
Sourcepub fn set_update_time<T: Into<Option<Timestamp>>>(self, v: T) -> Self
pub fn set_update_time<T: Into<Option<Timestamp>>>(self, v: T) -> Self
Sets the value of update_time.
Sourcepub fn set_placement<T: Into<Option<WorkflowTemplatePlacement>>>(
self,
v: T,
) -> Self
pub fn set_placement<T: Into<Option<WorkflowTemplatePlacement>>>( self, v: T, ) -> Self
Sets the value of placement.
Sourcepub fn set_dag_timeout<T: Into<Option<Duration>>>(self, v: T) -> Self
pub fn set_dag_timeout<T: Into<Option<Duration>>>(self, v: T) -> Self
Sets the value of dag_timeout.
Sourcepub fn set_encryption_config<T: Into<Option<EncryptionConfig>>>(
self,
v: T,
) -> Self
pub fn set_encryption_config<T: Into<Option<EncryptionConfig>>>( self, v: T, ) -> Self
Sets the value of encryption_config.
Sourcepub fn set_parameters<T, V>(self, v: T) -> Self
pub fn set_parameters<T, V>(self, v: T) -> Self
Sets the value of parameters.
Sourcepub fn set_labels<T, K, V>(self, v: T) -> Self
pub fn set_labels<T, K, V>(self, v: T) -> Self
Sets the value of labels.
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 more