#[non_exhaustive]pub struct InstantiateInlineWorkflowTemplateRequest {
pub parent: String,
pub template: Option<WorkflowTemplate>,
pub request_id: String,
/* private fields */
}Expand description
A request to instantiate an inline 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.parent: StringRequired. The resource name of the region or location, as described in https://cloud.google.com/apis/design/resource_names.
-
For
projects.regions.workflowTemplates,instantiateinline, the resource name of the region has the following format:projects/{project_id}/regions/{region} -
For
projects.locations.workflowTemplates.instantiateinline, the resource name of the location has the following format:projects/{project_id}/locations/{location}
template: Option<WorkflowTemplate>Required. The workflow template to instantiate.
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.
Implementations§
Source§impl InstantiateInlineWorkflowTemplateRequest
impl InstantiateInlineWorkflowTemplateRequest
pub fn new() -> Self
Sourcepub fn set_parent<T: Into<String>>(self, v: T) -> Self
pub fn set_parent<T: Into<String>>(self, v: T) -> Self
Sets the value of parent.
Sourcepub fn set_template<T>(self, v: T) -> Selfwhere
T: Into<WorkflowTemplate>,
pub fn set_template<T>(self, v: T) -> Selfwhere
T: Into<WorkflowTemplate>,
Sets the value of template.
Sourcepub fn set_or_clear_template<T>(self, v: Option<T>) -> Selfwhere
T: Into<WorkflowTemplate>,
pub fn set_or_clear_template<T>(self, v: Option<T>) -> Selfwhere
T: Into<WorkflowTemplate>,
Sets or clears the value of template.
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.
Trait Implementations§
Source§impl Clone for InstantiateInlineWorkflowTemplateRequest
impl Clone for InstantiateInlineWorkflowTemplateRequest
Source§fn clone(&self) -> InstantiateInlineWorkflowTemplateRequest
fn clone(&self) -> InstantiateInlineWorkflowTemplateRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Default for InstantiateInlineWorkflowTemplateRequest
impl Default for InstantiateInlineWorkflowTemplateRequest
Source§fn default() -> InstantiateInlineWorkflowTemplateRequest
fn default() -> InstantiateInlineWorkflowTemplateRequest
Source§impl PartialEq for InstantiateInlineWorkflowTemplateRequest
impl PartialEq for InstantiateInlineWorkflowTemplateRequest
Source§fn eq(&self, other: &InstantiateInlineWorkflowTemplateRequest) -> bool
fn eq(&self, other: &InstantiateInlineWorkflowTemplateRequest) -> bool
self and other values to be equal, and is used by ==.