#[non_exhaustive]pub struct InstantiateWorkflowTemplateRequest {
pub name: String,
pub version: i32,
pub request_id: String,
pub parameters: HashMap<String, String>,
/* private fields */
}Expand description
A request to instantiate a workflow template.
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.name: StringRequired. The resource name of the workflow template, as described in https://cloud.google.com/apis/design/resource_names.
-
For
projects.regions.workflowTemplates.instantiate, the resource name of the template has the following format:projects/{project_id}/regions/{region}/workflowTemplates/{template_id} -
For
projects.locations.workflowTemplates.instantiate, the resource name of the template has the following format:projects/{project_id}/locations/{location}/workflowTemplates/{template_id}
version: i32Optional. The version of workflow template to instantiate. If specified, the workflow will be instantiated only if the current version of the workflow template has the supplied version.
This option cannot be used to instantiate a previous version of workflow template.
request_id: StringOptional. A tag that prevents multiple concurrent workflow instances with the same tag from running. This mitigates risk of concurrent instances started due to retries.
It is recommended to always set this value to a UUID.
The tag must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters.
parameters: HashMap<String, String>Optional. Map from parameter names to values that should be used for those parameters. Values may not exceed 1000 characters.
Implementations§
Source§impl InstantiateWorkflowTemplateRequest
impl InstantiateWorkflowTemplateRequest
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_request_id<T: Into<String>>(self, v: T) -> Self
pub fn set_request_id<T: Into<String>>(self, v: T) -> Self
Sets the value of request_id.
Sourcepub fn set_parameters<T, K, V>(self, v: T) -> Self
pub fn set_parameters<T, K, V>(self, v: T) -> Self
Sets the value of parameters.
Trait Implementations§
Source§impl Clone for InstantiateWorkflowTemplateRequest
impl Clone for InstantiateWorkflowTemplateRequest
Source§fn clone(&self) -> InstantiateWorkflowTemplateRequest
fn clone(&self) -> InstantiateWorkflowTemplateRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Default for InstantiateWorkflowTemplateRequest
impl Default for InstantiateWorkflowTemplateRequest
Source§fn default() -> InstantiateWorkflowTemplateRequest
fn default() -> InstantiateWorkflowTemplateRequest
Source§impl PartialEq for InstantiateWorkflowTemplateRequest
impl PartialEq for InstantiateWorkflowTemplateRequest
Source§fn eq(&self, other: &InstantiateWorkflowTemplateRequest) -> bool
fn eq(&self, other: &InstantiateWorkflowTemplateRequest) -> bool
self and other values to be equal, and is used by ==.