{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/google-cloud-batch/json-schema/google-cloud-batch-report-agent-state-response-schema.json",
  "title": "ReportAgentStateResponse",
  "description": "Response to ReportAgentStateRequest.",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/google-cloud-batch-projects-api-openapi.yml#/components/schemas/ReportAgentStateResponse",
  "properties": {
    "minReportInterval": {
      "description": "Minimum report interval override",
      "format": "google-duration",
      "type": "string"
    },
    "useBatchMonitoredResource": {
      "description": "If true, the cloud logging for batch agent will use batch.googleapis.com/Job as monitored resource for Batch job related logging.",
      "type": "boolean"
    },
    "tasks": {
      "description": "Tasks assigned to the agent",
      "type": "array",
      "items": {
        "$ref": "#/$defs/AgentTask"
      }
    },
    "defaultReportInterval": {
      "description": "Default report interval override",
      "format": "google-duration",
      "type": "string"
    }
  },
  "type": "object",
  "$defs": {
    "ActionCondition": {
      "description": "Conditions for actions to deal with task failures.",
      "type": "object",
      "properties": {
        "exitCodes": {
          "type": "array",
          "description": "Exit codes of a task execution. If there are more than 1 exit codes, when task executes with any of the exit code in the list, the condition is met and the action will be executed.",
          "items": {
            "type": "integer",
            "format": "int32"
          }
        }
      }
    },
    "AgentContainer": {
      "properties": {
        "entrypoint": {
          "type": "string",
          "description": "Overrides the `ENTRYPOINT` specified in the container."
        },
        "imageUri": {
          "description": "The URI to pull the container image from.",
          "type": "string"
        },
        "volumes": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "description": "Volumes to mount (bind mount) from the host machine files or directories into the container, formatted to match docker run's --volume option, e.g. /foo:/bar, or /foo:/bar:ro"
        },
        "options": {
          "description": "Arbitrary additional options to include in the \"docker run\" command when running this container, e.g. \"--network host\".",
          "type": "string"
        },
        "commands": {
          "description": "Overrides the `CMD` specified in the container. If there is an ENTRYPOINT (either in the container image or with the entrypoint field below) then commands are appended as arguments to the ENTRYPOINT.",
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      },
      "type": "object",
      "description": "Container runnable representation on the agent side."
    },
    "AgentEnvironment": {
      "type": "object",
      "description": "AgentEnvironment is the Environment representation between Agent and CLH communication. The environment is used in both task level and agent level.",
      "properties": {
        "encryptedVariables": {
          "$ref": "#/$defs/AgentKMSEnvMap",
          "description": "An encrypted JSON dictionary where the key/value pairs correspond to environment variable names and their values."
        },
        "variables": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "A map of environment variable names to values."
        },
        "secretVariables": {
          "description": "A map of environment variable names to Secret Manager secret names. The VM will access the named secrets to set the value of each environment variable.",
          "type": "object",
          "additionalProperties": {
            "type": "string"
          }
        }
      }
    },
    "AgentKMSEnvMap": {
      "description": "AgentKMSEnvMap contains the encrypted key/value pair to be used in the environment on the Agent side.",
      "type": "object",
      "properties": {
        "keyName": {
          "description": "The name of the KMS key that will be used to decrypt the cipher text.",
          "type": "string"
        },
        "cipherText": {
          "type": "string",
          "description": "The value of the cipherText response from the `encrypt` method."
        }
      }
    },
    "AgentScript": {
      "description": "Script runnable representation on the agent side.",
      "properties": {
        "path": {
          "description": "Script file path on the host VM. To specify an interpreter, please add a `#!`(also known as [shebang line](https://en.wikipedia.org/wiki/Shebang_(Unix))) as the first line of the file.(For example, to execute the script using bash, `#!/bin/bash` should be the first line of the file. To execute the script using`Python3`, `#!/usr/bin/env python3` should be the first line of the file.) Otherwise, the file will by default be executed by `/bin/sh`.",
          "type": "string"
        },
        "text": {
          "description": "Shell script text. To specify an interpreter, please add a `#!\\n` at the beginning of the text.(For example, to execute the script using bash, `#!/bin/bash\\n` should be added. To execute the script using`Python3`, `#!/usr/bin/env python3\\n` should be added.) Otherwise, the script will by default be executed by `/bin/sh`.",
          "type": "string"
        }
      },
      "type": "object"
    },
    "AgentTask": {
      "description": "TODO(b/182501497) The message needs to be redefined when the Agent API server updates data in storage per the backend design.",
      "properties": {
        "intendedState": {
          "enum": [
            "INTENDED_STATE_UNSPECIFIED",
            "ASSIGNED",
            "CANCELLED",
            "DELETED"
          ],
          "type": "string",
          "description": "The intended state of the task."
        },
        "taskSource": {
          "type": "string",
          "enum": [
            "TASK_SOURCE_UNSPECIFIED",
            "BATCH_INTERNAL",
            "USER"
          ],
          "description": "TaskSource represents the source of the task."
        },
        "agentTaskSpec": {
          "$ref": "#/$defs/AgentTaskSpec",
          "description": "AgentTaskSpec is the taskSpec representation between Agent and CLH communication. This field will replace the TaskSpec field above in future to have a better separation between user-facaing API and internal API."
        },
        "spec": {
          "$ref": "#/$defs/TaskSpec",
          "description": "Task Spec. This field will be replaced by agent_task_spec below in future."
        },
        "status": {
          "$ref": "#/$defs/TaskStatus",
          "description": "Task status."
        },
        "task": {
          "type": "string",
          "description": "Task name."
        },
        "reachedBarrier": {
          "type": "string",
          "description": "The highest barrier reached by all tasks in the task's TaskGroup.",
          "format": "int64"
        }
      },
      "type": "object"
    },
    "AgentTaskLoggingOption": {
      "description": "AgentTaskLoggingOption contains the options for the logging of the task.",
      "type": "object",
      "properties": {
        "labels": {
          "description": "Labels to be added to the log entry. Now only cloud logging is supported.",
          "additionalProperties": {
            "type": "string"
          },
          "type": "object"
        }
      }
    },
    "AgentTaskRunnable": {
      "properties": {
        "container": {
          "$ref": "#/$defs/AgentContainer",
          "description": "Container runnable."
        },
        "timeout": {
          "description": "Timeout for this Runnable.",
          "type": "string",
          "format": "google-duration"
        },
        "ignoreExitStatus": {
          "type": "boolean",
          "description": "Normally, a non-zero exit status causes the Task to fail. This flag allows execution of other Runnables to continue instead."
        },
        "background": {
          "description": "This flag allows a Runnable to continue running in the background while the Task executes subsequent Runnables. This is useful to provide services to other Runnables (or to provide debugging support tools like SSH servers).",
          "type": "boolean"
        },
        "script": {
          "$ref": "#/$defs/AgentScript",
          "description": "Script runnable."
        },
        "alwaysRun": {
          "type": "boolean",
          "description": "By default, after a Runnable fails, no further Runnable are executed. This flag indicates that this Runnable must be run even if the Task has already failed. This is useful for Runnables that copy output files off of the VM or for debugging. The always_run flag does not override the Task's overall max_run_duration. If the max_run_duration has expired then no further Runnables will execute, not even always_run Runnables."
        },
        "environment": {
          "$ref": "#/$defs/AgentEnvironment",
          "description": "Environment variables for this Runnable (overrides variables set for the whole Task or TaskGroup)."
        }
      },
      "description": "AgentTaskRunnable is the Runnable representation between Agent and CLH communication.",
      "type": "object"
    },
    "AgentTaskSpec": {
      "type": "object",
      "properties": {
        "maxRunDuration": {
          "description": "Maximum duration the task should run before being automatically retried (if enabled) or automatically failed. Format the value of this field as a time limit in seconds followed by `s`—for example, `3600s` for 1 hour. The field accepts any value between 0 and the maximum listed for the `Duration` field type at https://protobuf.dev/reference/protobuf/google.protobuf/#duration; however, the actual maximum run time for a job will be limited to the maximum run time for a job listed at https://cloud.google.com/batch/quotas#max-job-duration.",
          "type": "string",
          "format": "google-duration"
        },
        "userAccount": {
          "$ref": "#/$defs/AgentTaskUserAccount",
          "description": "User account on the VM to run the runnables in the agentTaskSpec. If not set, the runnable will be run under root user."
        },
        "loggingOption": {
          "$ref": "#/$defs/AgentTaskLoggingOption",
          "description": "Logging option for the task."
        },
        "environment": {
          "$ref": "#/$defs/AgentEnvironment",
          "description": "Environment variables to set before running the Task."
        },
        "runnables": {
          "description": "AgentTaskRunnable is runanbles that will be executed on the agent.",
          "type": "array",
          "items": {
            "$ref": "#/$defs/AgentTaskRunnable"
          }
        }
      },
      "description": "AgentTaskSpec is the user's TaskSpec representation between Agent and CLH communication."
    },
    "AgentTaskUserAccount": {
      "properties": {
        "gid": {
          "description": "gid id an unique identifier of the POSIX account group corresponding to the user account.",
          "type": "string",
          "format": "int64"
        },
        "uid": {
          "format": "int64",
          "description": "uid is an unique identifier of the POSIX account corresponding to the user account.",
          "type": "string"
        }
      },
      "type": "object",
      "description": "AgentTaskUserAccount contains the information of a POSIX account on the guest os which is used to execute the runnables."
    },
    "Barrier": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "Barriers are identified by their index in runnable list. Names are not required, but if present should be an identifier."
        }
      },
      "description": "A barrier runnable automatically blocks the execution of subsequent runnables until all the tasks in the task group reach the barrier."
    },
    "ComputeResource": {
      "type": "object",
      "description": "Compute resource requirements. ComputeResource defines the amount of resources required for each task. Make sure your tasks have enough resources to successfully run. If you also define the types of resources for a job to use with the [InstancePolicyOrTemplate](https://cloud.google.com/batch/docs/reference/rest/v1/projects.locations.jobs#instancepolicyortemplate) field, make sure both fields are compatible with each other.",
      "properties": {
        "memoryMib": {
          "type": "string",
          "description": "Memory in MiB. `memoryMib` defines the amount of memory per task in MiB units. If undefined, the default value is `2000`. If you also define the VM's machine type using the `machineType` in [InstancePolicy](https://cloud.google.com/batch/docs/reference/rest/v1/projects.locations.jobs#instancepolicy) field or inside the `instanceTemplate` in the [InstancePolicyOrTemplate](https://cloud.google.com/batch/docs/reference/rest/v1/projects.locations.jobs#instancepolicyortemplate) field, make sure the memory resources for both fields are compatible with each other and with how many tasks you want to allow to run on the same VM at the same time. For example, if you specify the `n2-standard-2` machine type, which has 8 GiB each, you are recommended to set `memoryMib` to no more than `8192`, or you are recommended to run two tasks on the same VM if you set `memoryMib` to `4096` or less.",
          "format": "int64"
        },
        "cpuMilli": {
          "description": "The milliCPU count. `cpuMilli` defines the amount of CPU resources per task in milliCPU units. For example, `1000` corresponds to 1 vCPU per task. If undefined, the default value is `2000`. If you also define the VM's machine type using the `machineType` in [InstancePolicy](https://cloud.google.com/batch/docs/reference/rest/v1/projects.locations.jobs#instancepolicy) field or inside the `instanceTemplate` in the [InstancePolicyOrTemplate](https://cloud.google.com/batch/docs/reference/rest/v1/projects.locations.jobs#instancepolicyortemplate) field, make sure the CPU resources for both fields are compatible with each other and with how many tasks you want to allow to run on the same VM at the same time. For example, if you specify the `n2-standard-2` machine type, which has 2 vCPUs each, you are recommended to set `cpuMilli` no more than `2000`, or you are recommended to run two tasks on the same VM if you set `cpuMilli` to `1000` or less.",
          "type": "string",
          "format": "int64"
        },
        "bootDiskMib": {
          "description": "Extra boot disk size in MiB for each task.",
          "format": "int64",
          "type": "string"
        }
      }
    },
    "Container": {
      "type": "object",
      "description": "Container runnable.",
      "properties": {
        "password": {
          "type": "string",
          "description": "Required if the container image is from a private Docker registry. The password to login to the Docker registry that contains the image. For security, it is strongly recommended to specify an encrypted password by using a Secret Manager secret: `projects/*/secrets/*/versions/*`. Warning: If you specify the password using plain text, you risk the password being exposed to any users who can view the job or its logs. To avoid this risk, specify a secret that contains the password instead. Learn more about [Secret Manager](https://cloud.google.com/secret-manager/docs/) and [using Secret Manager with Batch](https://cloud.google.com/batch/docs/create-run-job-secret-manager)."
        },
        "commands": {
          "items": {
            "type": "string"
          },
          "description": "Required for some container images. Overrides the `CMD` specified in the container. If there is an `ENTRYPOINT` (either in the container image or with the `entrypoint` field below) then these commands are appended as arguments to the `ENTRYPOINT`.",
          "type": "array"
        },
        "volumes": {
          "items": {
            "type": "string"
          },
          "description": "Volumes to mount (bind mount) from the host machine files or directories into the container, formatted to match `--volume` option for the `docker run` command—for example, `/foo:/bar` or `/foo:/bar:ro`. If the `TaskSpec.Volumes` field is specified but this field is not, Batch will mount each volume from the host machine to the container with the same mount path by default. In this case, the default mount option for containers will be read-only (`ro`) for existing persistent disks and read-write (`rw`) for other volume types, regardless of the original mount options specified in `TaskSpec.Volumes`. If you need different mount settings, you can explicitly configure them in this field.",
          "type": "array"
        },
        "blockExternalNetwork": {
          "description": "If set to true, external network access to and from container will be blocked, containers that are with block_external_network as true can still communicate with each other, network cannot be specified in the `container.options` field.",
          "type": "boolean"
        },
        "entrypoint": {
          "type": "string",
          "description": "Required for some container images. Overrides the `ENTRYPOINT` specified in the container."
        },
        "imageUri": {
          "description": "Required. The URI to pull the container image from.",
          "type": "string"
        },
        "enableImageStreaming": {
          "description": "Optional. If set to true, this container runnable uses Image streaming. Use Image streaming to allow the runnable to initialize without waiting for the entire container image to download, which can significantly reduce startup time for large container images. When `enableImageStreaming` is set to true, the container runtime is [containerd](https://containerd.io/) instead of Docker. Additionally, this container runnable only supports the following `container` subfields: `imageUri`, `commands[]`, `entrypoint`, and `volumes[]`; any other `container` subfields are ignored. For more information about the requirements and limitations for using Image streaming with Batch, see the [`image-streaming` sample on GitHub](https://github.com/GoogleCloudPlatform/batch-samples/tree/main/api-samples/image-streaming).",
          "type": "boolean"
        },
        "username": {
          "description": "Required if the container image is from a private Docker registry. The username to login to the Docker registry that contains the image. You can either specify the username directly by using plain text or specify an encrypted username by using a Secret Manager secret: `projects/*/secrets/*/versions/*`. However, using a secret is recommended for enhanced security. Caution: If you specify the username using plain text, you risk the username being exposed to any users who can view the job or its logs. To avoid this risk, specify a secret that contains the username instead. Learn more about [Secret Manager](https://cloud.google.com/secret-manager/docs/) and [using Secret Manager with Batch](https://cloud.google.com/batch/docs/create-run-job-secret-manager).",
          "type": "string"
        },
        "options": {
          "description": "Required for some container images. Arbitrary additional options to include in the `docker run` command when running this container—for example, `--network host`. For the `--volume` option, use the `volumes` field for the container.",
          "type": "string"
        }
      }
    },
    "Environment": {
      "properties": {
        "variables": {
          "type": "object",
          "description": "A map of environment variable names to values.",
          "additionalProperties": {
            "type": "string"
          }
        },
        "secretVariables": {
          "additionalProperties": {
            "type": "string"
          },
          "type": "object",
          "description": "A map of environment variable names to Secret Manager secret names. The VM will access the named secrets to set the value of each environment variable."
        },
        "encryptedVariables": {
          "$ref": "#/$defs/KMSEnvMap",
          "description": "An encrypted JSON dictionary where the key/value pairs correspond to environment variable names and their values."
        }
      },
      "type": "object",
      "description": "An Environment describes a collection of environment variables to set when executing Tasks."
    },
    "GCS": {
      "properties": {
        "remotePath": {
          "type": "string",
          "description": "Remote path, either a bucket name or a subdirectory of a bucket, e.g.: bucket_name, bucket_name/subdirectory/"
        }
      },
      "description": "Represents a Google Cloud Storage volume.",
      "type": "object"
    },
    "KMSEnvMap": {
      "properties": {
        "keyName": {
          "description": "The name of the KMS key that will be used to decrypt the cipher text.",
          "type": "string"
        },
        "cipherText": {
          "type": "string",
          "description": "The value of the cipherText response from the `encrypt` method."
        }
      },
      "type": "object"
    },
    "LifecyclePolicy": {
      "description": "LifecyclePolicy describes how to deal with task failures based on different conditions.",
      "type": "object",
      "properties": {
        "action": {
          "enum": [
            "ACTION_UNSPECIFIED",
            "RETRY_TASK",
            "FAIL_TASK"
          ],
          "description": "Action to execute when ActionCondition is true. When RETRY_TASK is specified, we will retry failed tasks if we notice any exit code match and fail tasks if no match is found. Likewise, when FAIL_TASK is specified, we will fail tasks if we notice any exit code match and retry tasks if no match is found.",
          "type": "string"
        },
        "actionCondition": {
          "$ref": "#/$defs/ActionCondition",
          "description": "Conditions that decide why a task failure is dealt with a specific action."
        }
      }
    },
    "NFS": {
      "description": "Represents an NFS volume.",
      "properties": {
        "server": {
          "type": "string",
          "description": "The IP address of the NFS."
        },
        "remotePath": {
          "type": "string",
          "description": "Remote source path exported from the NFS, e.g., \"/share\"."
        }
      },
      "type": "object"
    },
    "Runnable": {
      "description": "Runnable describes instructions for executing a specific script or container as part of a Task.",
      "properties": {
        "container": {
          "$ref": "#/$defs/Container",
          "description": "Container runnable."
        },
        "ignoreExitStatus": {
          "type": "boolean",
          "description": "Normally, a runnable that returns a non-zero exit status fails and causes the task to fail. However, you can set this field to `true` to allow the task to continue executing its other runnables even if this runnable fails."
        },
        "environment": {
          "$ref": "#/$defs/Environment",
          "description": "Environment variables for this Runnable (overrides variables set for the whole Task or TaskGroup)."
        },
        "barrier": {
          "$ref": "#/$defs/Barrier",
          "description": "Barrier runnable."
        },
        "background": {
          "type": "boolean",
          "description": "Normally, a runnable that doesn't exit causes its task to fail. However, you can set this field to `true` to configure a background runnable. Background runnables are allowed continue running in the background while the task executes subsequent runnables. For example, background runnables are useful for providing services to other runnables or providing debugging-support tools like SSH servers. Specifically, background runnables are killed automatically (if they have not already exited) a short time after all foreground runnables have completed. Even though this is likely to result in a non-zero exit status for the background runnable, these automatic kills are not treated as task failures."
        },
        "displayName": {
          "type": "string",
          "description": "Optional. DisplayName is an optional field that can be provided by the caller. If provided, it will be used in logs and other outputs to identify the script, making it easier for users to understand the logs. If not provided the index of the runnable will be used for outputs."
        },
        "alwaysRun": {
          "type": "boolean",
          "description": "By default, after a Runnable fails, no further Runnable are executed. This flag indicates that this Runnable must be run even if the Task has already failed. This is useful for Runnables that copy output files off of the VM or for debugging. The always_run flag does not override the Task's overall max_run_duration. If the max_run_duration has expired then no further Runnables will execute, not even always_run Runnables."
        },
        "labels": {
          "additionalProperties": {
            "type": "string"
          },
          "type": "object",
          "description": "Labels for this Runnable."
        },
        "timeout": {
          "description": "Timeout for this Runnable.",
          "format": "google-duration",
          "type": "string"
        },
        "script": {
          "$ref": "#/$defs/Script",
          "description": "Script runnable."
        }
      },
      "type": "object"
    },
    "Script": {
      "description": "Script runnable.",
      "type": "object",
      "properties": {
        "text": {
          "description": "The text for a script. Unless the script text supports the default `#!/bin/sh` shell interpreter, you must specify an interpreter by including a [shebang line](https://en.wikipedia.org/wiki/Shebang_(Unix) at the beginning of the text. For example, to execute the script using bash, include `#!/bin/bash\\n` at the beginning of the text. Alternatively, to execute the script using Python3, include `#!/usr/bin/env python3\\n` at the beginning of the text.",
          "type": "string"
        },
        "path": {
          "description": "The path to a script file that is accessible from the host VM(s). Unless the script file supports the default `#!/bin/sh` shell interpreter, you must specify an interpreter by including a [shebang line](https://en.wikipedia.org/wiki/Shebang_(Unix) as the first line of the file. For example, to execute the script using bash, include `#!/bin/bash` as the first line of the file. Alternatively, to execute the script using Python3, include `#!/usr/bin/env python3` as the first line of the file.",
          "type": "string"
        }
      }
    },
    "StatusEvent": {
      "properties": {
        "description": {
          "description": "Description of the event.",
          "type": "string"
        },
        "taskState": {
          "type": "string",
          "description": "Task State. This field is only defined for task-level status events.",
          "enum": [
            "STATE_UNSPECIFIED",
            "PENDING",
            "ASSIGNED",
            "RUNNING",
            "FAILED",
            "SUCCEEDED",
            "UNEXECUTED"
          ]
        },
        "type": {
          "description": "Type of the event.",
          "type": "string"
        },
        "eventTime": {
          "type": "string",
          "format": "google-datetime",
          "description": "The time this event occurred."
        },
        "taskExecution": {
          "$ref": "#/$defs/TaskExecution",
          "description": "Task Execution. This field is only defined for task-level status events where the task fails."
        }
      },
      "type": "object",
      "description": "Status event."
    },
    "TaskExecution": {
      "type": "object",
      "properties": {
        "exitCode": {
          "type": "integer",
          "description": "The exit code of a finished task. If the task succeeded, the exit code will be 0. If the task failed but not due to the following reasons, the exit code will be 50000. Otherwise, it can be from different sources: * Batch known failures: https://cloud.google.com/batch/docs/troubleshooting#reserved-exit-codes. * Batch runnable execution failures; you can rely on Batch logs to further diagnose: https://cloud.google.com/batch/docs/analyze-job-using-logs. If there are multiple runnables failures, Batch only exposes the first error.",
          "format": "int32"
        }
      },
      "description": "This Task Execution field includes detail information for task execution procedures, based on StatusEvent types."
    },
    "TaskSpec": {
      "properties": {
        "volumes": {
          "description": "Volumes to mount before running Tasks using this TaskSpec.",
          "type": "array",
          "items": {
            "$ref": "#/$defs/Volume"
          }
        },
        "environments": {
          "description": "Deprecated: please use environment(non-plural) instead.",
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "deprecated": true
        },
        "lifecyclePolicies": {
          "items": {
            "$ref": "#/$defs/LifecyclePolicy"
          },
          "description": "Lifecycle management schema when any task in a task group is failed. Currently we only support one lifecycle policy. When the lifecycle policy condition is met, the action in the policy will execute. If task execution result does not meet with the defined lifecycle policy, we consider it as the default policy. Default policy means if the exit code is 0, exit task. If task ends with non-zero exit code, retry the task with max_retry_count.",
          "type": "array"
        },
        "maxRunDuration": {
          "format": "google-duration",
          "description": "Maximum duration the task should run before being automatically retried (if enabled) or automatically failed. Format the value of this field as a time limit in seconds followed by `s`—for example, `3600s` for 1 hour. The field accepts any value between 0 and the maximum listed for the `Duration` field type at https://protobuf.dev/reference/protobuf/google.protobuf/#duration; however, the actual maximum run time for a job will be limited to the maximum run time for a job listed at https://cloud.google.com/batch/quotas#max-job-duration.",
          "type": "string"
        },
        "environment": {
          "$ref": "#/$defs/Environment",
          "description": "Environment variables to set before running the Task."
        },
        "runnables": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Runnable"
          },
          "description": "Required. The sequence of one or more runnables (executable scripts, executable containers, and/or barriers) for each task in this task group to run. Each task runs this list of runnables in order. For a task to succeed, all of its script and container runnables each must meet at least one of the following conditions: + The runnable exited with a zero status. + The runnable didn't finish, but you enabled its `background` subfield. + The runnable exited with a non-zero status, but you enabled its `ignore_exit_status` subfield."
        },
        "computeResource": {
          "$ref": "#/$defs/ComputeResource",
          "description": "ComputeResource requirements."
        },
        "maxRetryCount": {
          "description": "Maximum number of retries on failures. The default, 0, which means never retry. The valid value range is [0, 10].",
          "format": "int32",
          "type": "integer"
        }
      },
      "type": "object",
      "description": "Spec of a task"
    },
    "TaskStatus": {
      "description": "Status of a task.",
      "properties": {
        "statusEvents": {
          "type": "array",
          "description": "Detailed info about why the state is reached.",
          "items": {
            "$ref": "#/$defs/StatusEvent"
          }
        },
        "state": {
          "description": "Task state.",
          "type": "string",
          "enum": [
            "STATE_UNSPECIFIED",
            "PENDING",
            "ASSIGNED",
            "RUNNING",
            "FAILED",
            "SUCCEEDED",
            "UNEXECUTED"
          ]
        }
      },
      "type": "object"
    },
    "Volume": {
      "description": "Volume describes a volume and parameters for it to be mounted to a VM.",
      "type": "object",
      "properties": {
        "gcs": {
          "$ref": "#/$defs/GCS",
          "description": "A Google Cloud Storage (GCS) volume."
        },
        "mountPath": {
          "type": "string",
          "description": "The mount path for the volume, e.g. /mnt/disks/share."
        },
        "nfs": {
          "$ref": "#/$defs/NFS",
          "description": "A Network File System (NFS) volume. For example, a Filestore file share."
        },
        "mountOptions": {
          "description": "Mount options vary based on the type of storage volume: * For a Cloud Storage bucket, all the mount options provided by the [`gcsfuse` tool](https://cloud.google.com/storage/docs/gcsfuse-cli) are supported. * For an existing persistent disk, all mount options provided by the [`mount` command](https://man7.org/linux/man-pages/man8/mount.8.html) except writing are supported. This is due to restrictions of [multi-writer mode](https://cloud.google.com/compute/docs/disks/sharing-disks-between-vms). * For any other disk or a Network File System (NFS), all the mount options provided by the `mount` command are supported.",
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "deviceName": {
          "description": "Device name of an attached disk volume, which should align with a device_name specified by job.allocation_policy.instances[0].policy.disks[i].device_name or defined by the given instance template in job.allocation_policy.instances[0].instance_template.",
          "type": "string"
        }
      }
    }
  }
}