Cloud Dataproc V1 API - Class Google::Cloud::Dataproc::V1::WorkflowTemplate (v1.9.0)
Stay organized with collections
Save and categorize content based on your preferences.
Reference documentation and code samples for the Cloud Dataproc V1 API class Google::Cloud::Dataproc::V1::WorkflowTemplate.
A Dataproc workflow template resource.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#create_time
defcreate_time()->::Google::Protobuf::Timestamp- (::Google::Protobuf::Timestamp) — Output only. The time template was created.
#dag_timeout
defdag_timeout()->::Google::Protobuf::Duration- (::Google::Protobuf::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.
#dag_timeout=
defdag_timeout=(value)->::Google::Protobuf::Duration- value (::Google::Protobuf::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.
- (::Google::Protobuf::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
defencryption_config()->::Google::Cloud::Dataproc::V1::WorkflowTemplate::EncryptionConfig- (::Google::Cloud::Dataproc::V1::WorkflowTemplate::EncryptionConfig) — Optional. Encryption settings for encrypting workflow template job arguments.
#encryption_config=
defencryption_config=(value)->::Google::Cloud::Dataproc::V1::WorkflowTemplate::EncryptionConfig- value (::Google::Cloud::Dataproc::V1::WorkflowTemplate::EncryptionConfig) — Optional. Encryption settings for encrypting workflow template job arguments.
- (::Google::Cloud::Dataproc::V1::WorkflowTemplate::EncryptionConfig) — Optional. Encryption settings for encrypting workflow template job arguments.
#id
defid()->::String- (::String)
#id=
defid=(value)->::String- value (::String)
- (::String)
#jobs
defjobs()->::Array<::Google::Cloud::Dataproc::V1::OrderedJob>- (::Array<::Google::Cloud::Dataproc::V1::OrderedJob>) — Required. The Directed Acyclic Graph of Jobs to submit.
#jobs=
defjobs=(value)->::Array<::Google::Cloud::Dataproc::V1::OrderedJob>- value (::Array<::Google::Cloud::Dataproc::V1::OrderedJob>) — Required. The Directed Acyclic Graph of Jobs to submit.
- (::Array<::Google::Cloud::Dataproc::V1::OrderedJob>) — Required. The Directed Acyclic Graph of Jobs to submit.
#labels
deflabels()->::Google::Protobuf::Map{::String=>::String}-
(::Google::Protobuf::Map{::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.
#labels=
deflabels=(value)->::Google::Protobuf::Map{::String=>::String}-
value (::Google::Protobuf::Map{::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.
-
(::Google::Protobuf::Map{::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.
#name
defname()->::String-
(::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
defparameters()->::Array<::Google::Cloud::Dataproc::V1::TemplateParameter>- (::Array<::Google::Cloud::Dataproc::V1::TemplateParameter>) — Optional. Template parameters whose values are substituted into the template. Values for parameters must be provided when the template is instantiated.
#parameters=
defparameters=(value)->::Array<::Google::Cloud::Dataproc::V1::TemplateParameter>- value (::Array<::Google::Cloud::Dataproc::V1::TemplateParameter>) — Optional. Template parameters whose values are substituted into the template. Values for parameters must be provided when the template is instantiated.
- (::Array<::Google::Cloud::Dataproc::V1::TemplateParameter>) — Optional. Template parameters whose values are substituted into the template. Values for parameters must be provided when the template is instantiated.
#placement
defplacement()->::Google::Cloud::Dataproc::V1::WorkflowTemplatePlacement- (::Google::Cloud::Dataproc::V1::WorkflowTemplatePlacement) — Required. WorkflowTemplate scheduling information.
#placement=
defplacement=(value)->::Google::Cloud::Dataproc::V1::WorkflowTemplatePlacement- value (::Google::Cloud::Dataproc::V1::WorkflowTemplatePlacement) — Required. WorkflowTemplate scheduling information.
- (::Google::Cloud::Dataproc::V1::WorkflowTemplatePlacement) — Required. WorkflowTemplate scheduling information.
#update_time
defupdate_time()->::Google::Protobuf::Timestamp- (::Google::Protobuf::Timestamp) — Output only. The time template was last updated.
#version
defversion()->::Integer-
(::Integer) — Optional. Used to perform a consistent read-modify-write.
This field should be left blank for a
CreateWorkflowTemplaterequest. It is required for anUpdateWorkflowTemplaterequest, and must match the current server version. A typical update template flow would fetch the current template with aGetWorkflowTemplaterequest, which will return the current template with theversionfield filled in with the current server version. The user updates other fields in the template, then returns it as part of theUpdateWorkflowTemplaterequest.
#version=
defversion=(value)->::Integer-
value (::Integer) — Optional. Used to perform a consistent read-modify-write.
This field should be left blank for a
CreateWorkflowTemplaterequest. It is required for anUpdateWorkflowTemplaterequest, and must match the current server version. A typical update template flow would fetch the current template with aGetWorkflowTemplaterequest, which will return the current template with theversionfield filled in with the current server version. The user updates other fields in the template, then returns it as part of theUpdateWorkflowTemplaterequest.
-
(::Integer) — Optional. Used to perform a consistent read-modify-write.
This field should be left blank for a
CreateWorkflowTemplaterequest. It is required for anUpdateWorkflowTemplaterequest, and must match the current server version. A typical update template flow would fetch the current template with aGetWorkflowTemplaterequest, which will return the current template with theversionfield filled in with the current server version. The user updates other fields in the template, then returns it as part of theUpdateWorkflowTemplaterequest.