pub struct InstantiateWorkflowTemplateRequest {
pub name: String,
pub version: i32,
pub request_id: String,
pub parameters: BTreeMap<String, String>,
}
Expand description
A request to instantiate a workflow template.
Fields§
§name: String
Required. 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: i32
Optional. 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: String
Optional. 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: BTreeMap<String, String>
Optional. Map from parameter names to values that should be used for those parameters. Values may not exceed 1000 characters.
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 Message for InstantiateWorkflowTemplateRequest
impl Message for InstantiateWorkflowTemplateRequest
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.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 ==
.impl StructuralPartialEq for InstantiateWorkflowTemplateRequest
Auto Trait Implementations§
impl Freeze for InstantiateWorkflowTemplateRequest
impl RefUnwindSafe for InstantiateWorkflowTemplateRequest
impl Send for InstantiateWorkflowTemplateRequest
impl Sync for InstantiateWorkflowTemplateRequest
impl Unpin for InstantiateWorkflowTemplateRequest
impl UnwindSafe for InstantiateWorkflowTemplateRequest
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request