{
  "$id": "https://firefox-ci-tc.services.mozilla.com/schemas/worker-manager/v1/reregister-worker-response.json#",
  "$schema": "https://firefox-ci-tc.services.mozilla.com/schemas/common/metaschema.json#",
  "additionalProperties": false,
  "description": "Response body to `reregisterWorker`.",
  "properties": {
    "credentials": {
      "additionalProperties": false,
      "description": "The credentials the worker\nwill need to perform its work. Specifically, credentials with scopes\n* `assume:worker-pool:<workerPoolId>`\n* `assume:worker-id:<workerGroup>/<workerId>`\n* `queue:worker-id:<workerGroup>/<workerId>`\n* `secrets:get:worker-pool:<workerPoolId>`\n* `queue:claim-work:<workerPoolId>`\n* `worker-manager:remove-worker:<workerPoolId>/<workerGroup>/<workerId>`\n* `worker-manager:reregister-worker:<workerPoolId>/<workerGroup>/<workerId>`\n",
      "properties": {
        "accessToken": {
          "type": "string"
        },
        "certificate": {
          "description": "Note that a certificate may not be provided, if the credentials are not temporary.\n",
          "type": "string"
        },
        "clientId": {
          "type": "string"
        }
      },
      "required": [
        "accessToken",
        "clientId"
      ],
      "title": "Credentials",
      "type": "object"
    },
    "expires": {
      "description": "Time at which the included credentials will expire. Workers must\nre-register before this time.\n",
      "format": "date-time",
      "title": "Expires",
      "type": "string"
    },
    "secret": {
      "description": "The next secret value needed to reregister the worker (in `reregisterWorker).\nFor more information, refer to https://docs.taskcluster.net/docs/reference/core/worker-manager#reregistration.\n",
      "pattern": "^[a-zA-Z0-9_-]{44}$",
      "title": "Secret",
      "type": "string"
    }
  },
  "required": [
    "expires",
    "credentials",
    "secret"
  ],
  "title": "Reregister Worker Response",
  "type": "object"
}