public sealed class Task : IMessage<Task>, IEquatable<Task>, IDeepCloneable<Task>, IBufferMessage, IMessage
Reference documentation and code samples for the Cloud Run Admin v2 API class Task.
Task represents a single run of a container to completion.
Namespace
Google.Cloud.Run.V2Assembly
Google.Cloud.Run.V2.dll
Constructors
Task()
public Task()
Task(Task)
public Task(Task other)
Name | Description |
other | Task |
Properties
Annotations
public MapField<string, string> Annotations { get; }
KRM-style annotations for the resource.
Type | Description |
MapField<String, String> |
CompletionTime
public Timestamp CompletionTime { get; set; }
Output only. Represents time when the Task was completed. It is not guaranteed to be set in happens-before order across separate operations.
Type | Description |
Timestamp |
Conditions
public RepeatedField<Condition> Conditions { get; }
Output only. The Condition of this Task, containing its readiness status, and detailed error information in case it did not reach the desired state.
Type | Description |
RepeatedField<Condition> |
Containers
public RepeatedField<Container> Containers { get; }
Holds the single container that defines the unit of execution for this task.
Type | Description |
RepeatedField<Container> |
CreateTime
public Timestamp CreateTime { get; set; }
Output only. Represents time when the task was created by the job controller. It is not guaranteed to be set in happens-before order across separate operations.
Type | Description |
Timestamp |
DeleteTime
public Timestamp DeleteTime { get; set; }
Output only. For a deleted resource, the deletion time. It is only populated as a response to a Delete request.
Type | Description |
Timestamp |
EncryptionKey
public string EncryptionKey { get; set; }
Output only. 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
Type | Description |
String |
EncryptionKeyAsCryptoKeyName
public CryptoKeyName EncryptionKeyAsCryptoKeyName { get; set; }
CryptoKeyName-typed view over the EncryptionKey resource name property.
Type | Description |
CryptoKeyName |
Etag
public string Etag { get; set; }
Output only. A system-generated fingerprint for this version of the resource. May be used to detect modification conflict during updates.
Type | Description |
String |
Execution
public string Execution { get; set; }
Output only. The name of the parent Execution.
Type | Description |
String |
ExecutionAsExecutionName
public ExecutionName ExecutionAsExecutionName { get; set; }
ExecutionName-typed view over the Execution resource name property.
Type | Description |
ExecutionName |
ExecutionEnvironment
public ExecutionEnvironment ExecutionEnvironment { get; set; }
The execution environment being used to host this Task.
Type | Description |
ExecutionEnvironment |
ExpireTime
public Timestamp ExpireTime { get; set; }
Output only. For a deleted resource, the time after which it will be permamently deleted. It is only populated as a response to a Delete request.
Type | Description |
Timestamp |
Generation
public long Generation { get; set; }
Output only. A number that monotonically increases every time the user modifies the desired state.
Type | Description |
Int64 |
Index
public int Index { get; set; }
Output only. Index of the Task, unique per execution, and beginning at 0.
Type | Description |
Int32 |
Job
public string Job { get; set; }
Output only. The name of the parent Job.
Type | Description |
String |
JobAsJobName
public JobName JobAsJobName { get; set; }
Type | Description |
JobName |
Labels
public MapField<string, string> Labels { get; }
KRM-style labels for the resource. User-provided labels are shared with Google's billing system, so they can be used to filter, or break down billing charges by team, component, environment, state, etc. For more information, visit https://cloud.google.com/resource-manager/docs/creating-managing-labels or https://cloud.google.com/run/docs/configuring/labels
Type | Description |
MapField<String, String> |
LastAttemptResult
public TaskAttemptResult LastAttemptResult { get; set; }
Output only. Result of the last attempt of this Task.
Type | Description |
TaskAttemptResult |
LogUri
public string LogUri { get; set; }
Output only. URI where logs for this execution can be found in Cloud Console.
Type | Description |
String |
MaxRetries
public int MaxRetries { get; set; }
Number of retries allowed per Task, before marking this Task failed.
Type | Description |
Int32 |
Name
public string Name { get; set; }
Output only. The unique name of this Task.
Type | Description |
String |
ObservedGeneration
public long ObservedGeneration { get; set; }
Output only. The generation of this Task. See comments in Job.reconciling
for additional information on reconciliation process in Cloud Run.
Type | Description |
Int64 |
Reconciling
public bool Reconciling { get; set; }
Output only. Indicates whether the resource's reconciliation is still in
progress. See comments in Job.reconciling
for additional information on
reconciliation process in Cloud Run.
Type | Description |
Boolean |
Retried
public int Retried { get; set; }
Output only. The number of times this Task was retried. Tasks are retried when they fail up to the maxRetries limit.
Type | Description |
Int32 |
ServiceAccount
public string ServiceAccount { get; set; }
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.
Type | Description |
String |
StartTime
public Timestamp StartTime { get; set; }
Output only. Represents time when the task started to run. It is not guaranteed to be set in happens-before order across separate operations.
Type | Description |
Timestamp |
TaskName
public TaskName TaskName { get; set; }
Type | Description |
TaskName |
Timeout
public Duration Timeout { get; set; }
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.
Type | Description |
Duration |
Uid
public string Uid { get; set; }
Output only. Server assigned unique identifier for the Task. The value is a UUID4 string and guaranteed to remain unchanged until the resource is deleted.
Type | Description |
String |
UpdateTime
public Timestamp UpdateTime { get; set; }
Output only. The last-modified time.
Type | Description |
Timestamp |
Volumes
public RepeatedField<Volume> Volumes { get; }
A list of Volumes to make available to containers.
Type | Description |
RepeatedField<Volume> |
VpcAccess
public VpcAccess VpcAccess { get; set; }
Output only. VPC Access configuration to use for this Task. For more information, visit https://cloud.google.com/run/docs/configuring/connecting-vpc.
Type | Description |
VpcAccess |