pub struct GoogleCloudRunV2TaskTemplate {
pub containers: Option<Vec<GoogleCloudRunV2Container>>,
pub encryption_key: Option<String>,
pub execution_environment: Option<String>,
pub max_retries: Option<i32>,
pub service_account: Option<String>,
pub timeout: Option<Duration>,
pub volumes: Option<Vec<GoogleCloudRunV2Volume>>,
pub vpc_access: Option<GoogleCloudRunV2VpcAccess>,
}
Expand description
TaskTemplate describes the data a task should have when created from a template.
This type is not used in any activity, and only used as part of another schema.
Fields§
§containers: Option<Vec<GoogleCloudRunV2Container>>
Holds the single container that defines the unit of execution for this task.
encryption_key: Option<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
execution_environment: Option<String>
Optional. The execution environment being used to host this Task.
max_retries: Option<i32>
Number of retries allowed per Task, before marking this Task failed. Defaults to 3.
service_account: Option<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.
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.
volumes: Option<Vec<GoogleCloudRunV2Volume>>
Optional. A list of Volumes to make available to containers.
vpc_access: Option<GoogleCloudRunV2VpcAccess>
Optional. VPC Access configuration to use for this Task. For more information, visit https://cloud.google.com/run/docs/configuring/connecting-vpc.
Trait Implementations§
Source§impl Clone for GoogleCloudRunV2TaskTemplate
impl Clone for GoogleCloudRunV2TaskTemplate
Source§fn clone(&self) -> GoogleCloudRunV2TaskTemplate
fn clone(&self) -> GoogleCloudRunV2TaskTemplate
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for GoogleCloudRunV2TaskTemplate
impl Debug for GoogleCloudRunV2TaskTemplate
Source§impl Default for GoogleCloudRunV2TaskTemplate
impl Default for GoogleCloudRunV2TaskTemplate
Source§fn default() -> GoogleCloudRunV2TaskTemplate
fn default() -> GoogleCloudRunV2TaskTemplate
Source§impl<'de> Deserialize<'de> for GoogleCloudRunV2TaskTemplate
impl<'de> Deserialize<'de> for GoogleCloudRunV2TaskTemplate
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Part for GoogleCloudRunV2TaskTemplate
Auto Trait Implementations§
impl Freeze for GoogleCloudRunV2TaskTemplate
impl RefUnwindSafe for GoogleCloudRunV2TaskTemplate
impl Send for GoogleCloudRunV2TaskTemplate
impl Sync for GoogleCloudRunV2TaskTemplate
impl Unpin for GoogleCloudRunV2TaskTemplate
impl UnwindSafe for GoogleCloudRunV2TaskTemplate
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more