Struct google_api_proto::google::cloud::run::v2::TaskTemplate
source · pub struct TaskTemplate {
pub containers: Vec<Container>,
pub volumes: Vec<Volume>,
pub timeout: Option<Duration>,
pub service_account: String,
pub execution_environment: i32,
pub encryption_key: String,
pub vpc_access: Option<VpcAccess>,
pub retries: Option<Retries>,
}
Expand description
TaskTemplate describes the data a task should have when created from a template.
Fields§
§containers: Vec<Container>
Holds the single container that defines the unit of execution for this task.
volumes: Vec<Volume>
Optional. A list of Volumes to make available to containers.
timeout: Option<Duration>
Optional. Max allowed time duration the Task may be active before the system will actively try to mark it failed and kill associated containers. This applies per attempt of a task, meaning each retry can run for the full timeout. Defaults to 600 seconds.
service_account: String
Optional. Email address of the IAM service account associated with the Task of a Job. The service account represents the identity of the running task, and determines what permissions the task has. If not provided, the task will use the project’s default service account.
execution_environment: i32
Optional. The execution environment being used to host this Task.
encryption_key: String
A reference to a customer managed encryption key (CMEK) to use to encrypt this container image. For more information, go to https://cloud.google.com/run/docs/securing/using-cmek
vpc_access: Option<VpcAccess>
Optional. VPC Access configuration to use for this Task. For more information, visit https://cloud.google.com/run/docs/configuring/connecting-vpc.
retries: Option<Retries>
Implementations§
source§impl TaskTemplate
impl TaskTemplate
sourcepub fn execution_environment(&self) -> ExecutionEnvironment
pub fn execution_environment(&self) -> ExecutionEnvironment
Returns the enum value of execution_environment
, or the default if the field is set to an invalid enum value.
sourcepub fn set_execution_environment(&mut self, value: ExecutionEnvironment)
pub fn set_execution_environment(&mut self, value: ExecutionEnvironment)
Sets execution_environment
to the provided enum value.
Trait Implementations§
source§impl Clone for TaskTemplate
impl Clone for TaskTemplate
source§fn clone(&self) -> TaskTemplate
fn clone(&self) -> TaskTemplate
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for TaskTemplate
impl Debug for TaskTemplate
source§impl Default for TaskTemplate
impl Default for TaskTemplate
source§impl Message for TaskTemplate
impl Message for TaskTemplate
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 TaskTemplate
impl PartialEq for TaskTemplate
source§fn eq(&self, other: &TaskTemplate) -> bool
fn eq(&self, other: &TaskTemplate) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for TaskTemplate
Auto Trait Implementations§
impl Freeze for TaskTemplate
impl RefUnwindSafe for TaskTemplate
impl Send for TaskTemplate
impl Sync for TaskTemplate
impl Unpin for TaskTemplate
impl UnwindSafe for TaskTemplate
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