Show / Hide Table of Contents

Class TaskSpec

TaskSpec is a description of a task.

Inheritance
object
TaskSpec
Implements
IDirectResponseSchema
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Google.Apis.CloudRun.v1.Data
Assembly: Google.Apis.CloudRun.v1.dll
Syntax
public class TaskSpec : IDirectResponseSchema

Properties

Containers

Optional. List of containers belonging to the task. We disallow a number of fields on this Container.

Declaration
[JsonProperty("containers")]
public virtual IList<Container> Containers { get; set; }
Property Value
Type Description
IList<Container>

ETag

The ETag of the item.

Declaration
public virtual string ETag { get; set; }
Property Value
Type Description
string

MaxRetries

Optional. Number of retries allowed per task, before marking this job failed. Defaults to 3.

Declaration
[JsonProperty("maxRetries")]
public virtual int? MaxRetries { get; set; }
Property Value
Type Description
int?

NodeSelector

Optional. The Node Selector configuration. Map of selector key to a value which matches a node.

Declaration
[JsonProperty("nodeSelector")]
public virtual IDictionary<string, string> NodeSelector { get; set; }
Property Value
Type Description
IDictionary<string, string>

ServiceAccountName

Optional. Email address of the IAM service account associated with the task of a job execution. 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.

Declaration
[JsonProperty("serviceAccountName")]
public virtual string ServiceAccountName { get; set; }
Property Value
Type Description
string

TimeoutSeconds

Optional. Duration in seconds 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.

Declaration
[JsonProperty("timeoutSeconds")]
public virtual long? TimeoutSeconds { get; set; }
Property Value
Type Description
long?

Volumes

Optional. List of volumes that can be mounted by containers belonging to the task.

Declaration
[JsonProperty("volumes")]
public virtual IList<Volume> Volumes { get; set; }
Property Value
Type Description
IList<Volume>

Implements

IDirectResponseSchema
In this article
Back to top Generated by DocFX