pub struct WorkflowTemplate {
pub create_time: Option<DateTime<Utc>>,
pub dag_timeout: Option<Duration>,
pub encryption_config: Option<GoogleCloudDataprocV1WorkflowTemplateEncryptionConfig>,
pub id: Option<String>,
pub jobs: Option<Vec<OrderedJob>>,
pub labels: Option<HashMap<String, String>>,
pub name: Option<String>,
pub parameters: Option<Vec<TemplateParameter>>,
pub placement: Option<WorkflowTemplatePlacement>,
pub update_time: Option<DateTime<Utc>>,
pub version: Option<i32>,
}
Expand description
A Dataproc workflow template resource.
§Activities
This type is used in activities, which are methods you may call on this type or where this type is involved in. The list links the activity name, along with information about where it is used (one of request and response).
- locations workflow templates create projects (request|response)
- locations workflow templates get projects (response)
- locations workflow templates instantiate inline projects (request)
- locations workflow templates update projects (request|response)
- regions workflow templates create projects (request|response)
- regions workflow templates get projects (response)
- regions workflow templates instantiate inline projects (request)
- regions workflow templates update projects (request|response)
Fields§
§create_time: Option<DateTime<Utc>>
Output only. The time template was created.
dag_timeout: Option<Duration>
Optional. Timeout duration for the DAG of jobs, expressed in seconds (see JSON representation of duration (https://developers.google.com/protocol-buffers/docs/proto3#json)). 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<GoogleCloudDataprocV1WorkflowTemplateEncryptionConfig>
Optional. Encryption settings for encrypting workflow template job arguments.
id: Option<String>
no description provided
jobs: Option<Vec<OrderedJob>>
Required. The Directed Acyclic Graph of Jobs to submit.
labels: Option<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 (https://www.ietf.org/rfc/rfc1035.txt).Label values may be empty, but, if present, must contain 1 to 63 characters, and must conform to RFC 1035 (https://www.ietf.org/rfc/rfc1035.txt).No more than 32 labels can be associated with a template.
name: Option<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}
parameters: Option<Vec<TemplateParameter>>
Optional. Template parameters whose values are substituted into the template. Values for parameters must be provided when the template is instantiated.
placement: Option<WorkflowTemplatePlacement>
Required. WorkflowTemplate scheduling information.
update_time: Option<DateTime<Utc>>
Output only. The time template was last updated.
version: Option<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.
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§fn default() -> WorkflowTemplate
fn default() -> WorkflowTemplate
Source§impl<'de> Deserialize<'de> for WorkflowTemplate
impl<'de> Deserialize<'de> for WorkflowTemplate
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl Serialize for WorkflowTemplate
impl Serialize for WorkflowTemplate
impl RequestValue for WorkflowTemplate
impl ResponseResult 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more