View Source GoogleApi.Run.V2.Model.GoogleCloudRunV2Task (google_api_run v0.30.0)

Task represents a single run of a container to completion.

Attributes

  • annotations (type: map(), default: nil) - 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.
  • completionTime (type: DateTime.t, default: nil) - Output only. Represents time when the Task was completed. It is not guaranteed to be set in happens-before order across separate operations.
  • conditions (type: list(GoogleApi.Run.V2.Model.GoogleCloudRunV2Condition.t), default: nil) - Output only. The Condition of this Task, containing its readiness status, and detailed error information in case it did not reach the desired state.
  • containers (type: list(GoogleApi.Run.V2.Model.GoogleCloudRunV2Container.t), default: nil) - Holds the single container that defines the unit of execution for this task.
  • createTime (type: DateTime.t, default: nil) - 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.
  • deleteTime (type: DateTime.t, default: nil) - Output only. For a deleted resource, the deletion time. It is only populated as a response to a Delete request.
  • encryptionKey (type: String.t, default: nil) - 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
  • etag (type: String.t, default: nil) - Output only. A system-generated fingerprint for this version of the resource. May be used to detect modification conflict during updates.
  • execution (type: String.t, default: nil) - Output only. The name of the parent Execution.
  • executionEnvironment (type: String.t, default: nil) - The execution environment being used to host this Task.
  • expireTime (type: DateTime.t, default: nil) - 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.
  • generation (type: String.t, default: nil) - Output only. A number that monotonically increases every time the user modifies the desired state.
  • index (type: integer(), default: nil) - Output only. Index of the Task, unique per execution, and beginning at 0.
  • job (type: String.t, default: nil) - Output only. The name of the parent Job.
  • labels (type: map(), default: nil) - 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
  • lastAttemptResult (type: GoogleApi.Run.V2.Model.GoogleCloudRunV2TaskAttemptResult.t, default: nil) - Output only. Result of the last attempt of this Task.
  • logUri (type: String.t, default: nil) - Output only. URI where logs for this execution can be found in Cloud Console.
  • maxRetries (type: integer(), default: nil) - Number of retries allowed per Task, before marking this Task failed.
  • name (type: String.t, default: nil) - Output only. The unique name of this Task.
  • observedGeneration (type: String.t, default: nil) - Output only. The generation of this Task. See comments in Job.reconciling for additional information on reconciliation process in Cloud Run.
  • reconciling (type: boolean(), default: nil) - 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.
  • retried (type: integer(), default: nil) - Output only. The number of times this Task was retried. Tasks are retried when they fail up to the maxRetries limit.
  • satisfiesPzs (type: boolean(), default: nil) - Output only. Reserved for future use.
  • scheduledTime (type: DateTime.t, default: nil) - 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.
  • serviceAccount (type: String.t, default: nil) - 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.
  • startTime (type: DateTime.t, default: nil) - Output only. Represents time when the task started to run. It is not guaranteed to be set in happens-before order across separate operations.
  • timeout (type: String.t, default: nil) - 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.
  • uid (type: String.t, default: nil) - 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.
  • updateTime (type: DateTime.t, default: nil) - Output only. The last-modified time.
  • volumes (type: list(GoogleApi.Run.V2.Model.GoogleCloudRunV2Volume.t), default: nil) - A list of Volumes to make available to containers.
  • vpcAccess (type: GoogleApi.Run.V2.Model.GoogleCloudRunV2VpcAccess.t, default: nil) - Output only. VPC Access configuration to use for this Task. For more information, visit https://cloud.google.com/run/docs/configuring/connecting-vpc.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.Run.V2.Model.GoogleCloudRunV2Task{
  annotations: map() | nil,
  completionTime: DateTime.t() | nil,
  conditions: [GoogleApi.Run.V2.Model.GoogleCloudRunV2Condition.t()] | nil,
  containers: [GoogleApi.Run.V2.Model.GoogleCloudRunV2Container.t()] | nil,
  createTime: DateTime.t() | nil,
  deleteTime: DateTime.t() | nil,
  encryptionKey: String.t() | nil,
  etag: String.t() | nil,
  execution: String.t() | nil,
  executionEnvironment: String.t() | nil,
  expireTime: DateTime.t() | nil,
  generation: String.t() | nil,
  index: integer() | nil,
  job: String.t() | nil,
  labels: map() | nil,
  lastAttemptResult:
    GoogleApi.Run.V2.Model.GoogleCloudRunV2TaskAttemptResult.t() | nil,
  logUri: String.t() | nil,
  maxRetries: integer() | nil,
  name: String.t() | nil,
  observedGeneration: String.t() | nil,
  reconciling: boolean() | nil,
  retried: integer() | nil,
  satisfiesPzs: boolean() | nil,
  scheduledTime: DateTime.t() | nil,
  serviceAccount: String.t() | nil,
  startTime: DateTime.t() | nil,
  timeout: String.t() | nil,
  uid: String.t() | nil,
  updateTime: DateTime.t() | nil,
  volumes: [GoogleApi.Run.V2.Model.GoogleCloudRunV2Volume.t()] | nil,
  vpcAccess: GoogleApi.Run.V2.Model.GoogleCloudRunV2VpcAccess.t() | nil
}

Functions

@spec decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.