Class GoogleCloudRunV2Task
Task represents a single run of a container to completion.
Implements
Inherited Members
Namespace: Google.Apis.CloudRun.v2.Data
Assembly: Google.Apis.CloudRun.v2.dll
Syntax
public class GoogleCloudRunV2Task : IDirectResponseSchema
Properties
Annotations
Output only. Unstructured key value map that may be set by external tools to store and arbitrary metadata. They are not queryable and should be preserved when modifying objects.
Declaration
[JsonProperty("annotations")]
public virtual IDictionary<string, string> Annotations { get; set; }
Property Value
Type | Description |
---|---|
IDictionary<string, string> |
CompletionTime
object representation of CompletionTimeRaw.
Declaration
[JsonIgnore]
[Obsolete("This property is obsolete and may behave unexpectedly; please use CompletionTimeDateTimeOffset instead.")]
public virtual object CompletionTime { get; set; }
Property Value
Type | Description |
---|---|
object |
CompletionTimeDateTimeOffset
DateTimeOffset representation of CompletionTimeRaw.
Declaration
[JsonIgnore]
public virtual DateTimeOffset? CompletionTimeDateTimeOffset { get; set; }
Property Value
Type | Description |
---|---|
DateTimeOffset? |
CompletionTimeRaw
Output only. Represents time when the Task was completed. It is not guaranteed to be set in happens-before order across separate operations.
Declaration
[JsonProperty("completionTime")]
public virtual string CompletionTimeRaw { get; set; }
Property Value
Type | Description |
---|---|
string |
Conditions
Output only. The Condition of this Task, containing its readiness status, and detailed error information in case it did not reach the desired state.
Declaration
[JsonProperty("conditions")]
public virtual IList<GoogleCloudRunV2Condition> Conditions { get; set; }
Property Value
Type | Description |
---|---|
IList<GoogleCloudRunV2Condition> |
Containers
Holds the single container that defines the unit of execution for this task.
Declaration
[JsonProperty("containers")]
public virtual IList<GoogleCloudRunV2Container> Containers { get; set; }
Property Value
Type | Description |
---|---|
IList<GoogleCloudRunV2Container> |
CreateTime
object representation of CreateTimeRaw.
Declaration
[JsonIgnore]
[Obsolete("This property is obsolete and may behave unexpectedly; please use CreateTimeDateTimeOffset instead.")]
public virtual object CreateTime { get; set; }
Property Value
Type | Description |
---|---|
object |
CreateTimeDateTimeOffset
DateTimeOffset representation of CreateTimeRaw.
Declaration
[JsonIgnore]
public virtual DateTimeOffset? CreateTimeDateTimeOffset { get; set; }
Property Value
Type | Description |
---|---|
DateTimeOffset? |
CreateTimeRaw
Output only. Represents time when the task was created by the system. It is not guaranteed to be set in happens-before order across separate operations.
Declaration
[JsonProperty("createTime")]
public virtual string CreateTimeRaw { get; set; }
Property Value
Type | Description |
---|---|
string |
DeleteTime
object representation of DeleteTimeRaw.
Declaration
[JsonIgnore]
[Obsolete("This property is obsolete and may behave unexpectedly; please use DeleteTimeDateTimeOffset instead.")]
public virtual object DeleteTime { get; set; }
Property Value
Type | Description |
---|---|
object |
DeleteTimeDateTimeOffset
DateTimeOffset representation of DeleteTimeRaw.
Declaration
[JsonIgnore]
public virtual DateTimeOffset? DeleteTimeDateTimeOffset { get; set; }
Property Value
Type | Description |
---|---|
DateTimeOffset? |
DeleteTimeRaw
Output only. For a deleted resource, the deletion time. It is only populated as a response to a Delete request.
Declaration
[JsonProperty("deleteTime")]
public virtual string DeleteTimeRaw { get; set; }
Property Value
Type | Description |
---|---|
string |
ETag
Output only. A system-generated fingerprint for this version of the resource. May be used to detect modification conflict during updates.
Declaration
[JsonProperty("etag")]
public virtual string ETag { get; set; }
Property Value
Type | Description |
---|---|
string |
EncryptionKey
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
Declaration
[JsonProperty("encryptionKey")]
public virtual string EncryptionKey { get; set; }
Property Value
Type | Description |
---|---|
string |
Execution
Output only. The name of the parent Execution.
Declaration
[JsonProperty("execution")]
public virtual string Execution { get; set; }
Property Value
Type | Description |
---|---|
string |
ExecutionEnvironment
The execution environment being used to host this Task.
Declaration
[JsonProperty("executionEnvironment")]
public virtual string ExecutionEnvironment { get; set; }
Property Value
Type | Description |
---|---|
string |
ExpireTime
object representation of ExpireTimeRaw.
Declaration
[JsonIgnore]
[Obsolete("This property is obsolete and may behave unexpectedly; please use ExpireTimeDateTimeOffset instead.")]
public virtual object ExpireTime { get; set; }
Property Value
Type | Description |
---|---|
object |
ExpireTimeDateTimeOffset
DateTimeOffset representation of ExpireTimeRaw.
Declaration
[JsonIgnore]
public virtual DateTimeOffset? ExpireTimeDateTimeOffset { get; set; }
Property Value
Type | Description |
---|---|
DateTimeOffset? |
ExpireTimeRaw
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.
Declaration
[JsonProperty("expireTime")]
public virtual string ExpireTimeRaw { get; set; }
Property Value
Type | Description |
---|---|
string |
Generation
Output only. A number that monotonically increases every time the user modifies the desired state.
Declaration
[JsonProperty("generation")]
public virtual long? Generation { get; set; }
Property Value
Type | Description |
---|---|
long? |
Index
Output only. Index of the Task, unique per execution, and beginning at 0.
Declaration
[JsonProperty("index")]
public virtual int? Index { get; set; }
Property Value
Type | Description |
---|---|
int? |
Job
Output only. The name of the parent Job.
Declaration
[JsonProperty("job")]
public virtual string Job { get; set; }
Property Value
Type | Description |
---|---|
string |
Labels
Output only. Unstructured key value map that can be used to organize and categorize objects. 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
Declaration
[JsonProperty("labels")]
public virtual IDictionary<string, string> Labels { get; set; }
Property Value
Type | Description |
---|---|
IDictionary<string, string> |
LastAttemptResult
Output only. Result of the last attempt of this Task.
Declaration
[JsonProperty("lastAttemptResult")]
public virtual GoogleCloudRunV2TaskAttemptResult LastAttemptResult { get; set; }
Property Value
Type | Description |
---|---|
GoogleCloudRunV2TaskAttemptResult |
LogUri
Output only. URI where logs for this execution can be found in Cloud Console.
Declaration
[JsonProperty("logUri")]
public virtual string LogUri { get; set; }
Property Value
Type | Description |
---|---|
string |
MaxRetries
Number of retries allowed per Task, before marking this Task failed.
Declaration
[JsonProperty("maxRetries")]
public virtual int? MaxRetries { get; set; }
Property Value
Type | Description |
---|---|
int? |
Name
Output only. The unique name of this Task.
Declaration
[JsonProperty("name")]
public virtual string Name { get; set; }
Property Value
Type | Description |
---|---|
string |
ObservedGeneration
Output only. The generation of this Task. See comments in Job.reconciling
for additional information on
reconciliation process in Cloud Run.
Declaration
[JsonProperty("observedGeneration")]
public virtual long? ObservedGeneration { get; set; }
Property Value
Type | Description |
---|---|
long? |
Reconciling
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.
Declaration
[JsonProperty("reconciling")]
public virtual bool? Reconciling { get; set; }
Property Value
Type | Description |
---|---|
bool? |
Retried
Output only. The number of times this Task was retried. Tasks are retried when they fail up to the maxRetries limit.
Declaration
[JsonProperty("retried")]
public virtual int? Retried { get; set; }
Property Value
Type | Description |
---|---|
int? |
SatisfiesPzs
Output only. Reserved for future use.
Declaration
[JsonProperty("satisfiesPzs")]
public virtual bool? SatisfiesPzs { get; set; }
Property Value
Type | Description |
---|---|
bool? |
ScheduledTime
object representation of ScheduledTimeRaw.
Declaration
[JsonIgnore]
[Obsolete("This property is obsolete and may behave unexpectedly; please use ScheduledTimeDateTimeOffset instead.")]
public virtual object ScheduledTime { get; set; }
Property Value
Type | Description |
---|---|
object |
ScheduledTimeDateTimeOffset
DateTimeOffset representation of ScheduledTimeRaw.
Declaration
[JsonIgnore]
public virtual DateTimeOffset? ScheduledTimeDateTimeOffset { get; set; }
Property Value
Type | Description |
---|---|
DateTimeOffset? |
ScheduledTimeRaw
Output only. Represents time when the task was scheduled to run by the system. It is not guaranteed to be set in happens-before order across separate operations.
Declaration
[JsonProperty("scheduledTime")]
public virtual string ScheduledTimeRaw { get; set; }
Property Value
Type | Description |
---|---|
string |
ServiceAccount
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.
Declaration
[JsonProperty("serviceAccount")]
public virtual string ServiceAccount { get; set; }
Property Value
Type | Description |
---|---|
string |
StartTime
object representation of StartTimeRaw.
Declaration
[JsonIgnore]
[Obsolete("This property is obsolete and may behave unexpectedly; please use StartTimeDateTimeOffset instead.")]
public virtual object StartTime { get; set; }
Property Value
Type | Description |
---|---|
object |
StartTimeDateTimeOffset
DateTimeOffset representation of StartTimeRaw.
Declaration
[JsonIgnore]
public virtual DateTimeOffset? StartTimeDateTimeOffset { get; set; }
Property Value
Type | Description |
---|---|
DateTimeOffset? |
StartTimeRaw
Output only. Represents time when the task started to run. It is not guaranteed to be set in happens-before order across separate operations.
Declaration
[JsonProperty("startTime")]
public virtual string StartTimeRaw { get; set; }
Property Value
Type | Description |
---|---|
string |
Timeout
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.
Declaration
[JsonProperty("timeout")]
public virtual object Timeout { get; set; }
Property Value
Type | Description |
---|---|
object |
Uid
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.
Declaration
[JsonProperty("uid")]
public virtual string Uid { get; set; }
Property Value
Type | Description |
---|---|
string |
UpdateTime
object representation of UpdateTimeRaw.
Declaration
[JsonIgnore]
[Obsolete("This property is obsolete and may behave unexpectedly; please use UpdateTimeDateTimeOffset instead.")]
public virtual object UpdateTime { get; set; }
Property Value
Type | Description |
---|---|
object |
UpdateTimeDateTimeOffset
DateTimeOffset representation of UpdateTimeRaw.
Declaration
[JsonIgnore]
public virtual DateTimeOffset? UpdateTimeDateTimeOffset { get; set; }
Property Value
Type | Description |
---|---|
DateTimeOffset? |
UpdateTimeRaw
Output only. The last-modified time.
Declaration
[JsonProperty("updateTime")]
public virtual string UpdateTimeRaw { get; set; }
Property Value
Type | Description |
---|---|
string |
Volumes
A list of Volumes to make available to containers.
Declaration
[JsonProperty("volumes")]
public virtual IList<GoogleCloudRunV2Volume> Volumes { get; set; }
Property Value
Type | Description |
---|---|
IList<GoogleCloudRunV2Volume> |
VpcAccess
Output only. VPC Access configuration to use for this Task. For more information, visit https://cloud.google.com/run/docs/configuring/connecting-vpc.
Declaration
[JsonProperty("vpcAccess")]
public virtual GoogleCloudRunV2VpcAccess VpcAccess { get; set; }
Property Value
Type | Description |
---|---|
GoogleCloudRunV2VpcAccess |