{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/google-cloud-dataflow/json-schema/google-cloud-dataflow-lease-work-item-request-schema.json",
  "title": "LeaseWorkItemRequest",
  "description": "Request to lease WorkItems.",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/google-cloud-dataflow-dataflow-projects-api-openapi.yml#/components/schemas/LeaseWorkItemRequest",
  "properties": {
    "workerId": {
      "type": "string",
      "description": "Identifies the worker leasing work -- typically the ID of the virtual machine running the worker."
    },
    "location": {
      "type": "string",
      "description": "The [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that contains the WorkItem's job."
    },
    "projectNumber": {
      "description": "Optional. The project number of the project this worker belongs to.",
      "type": "string",
      "format": "int64"
    },
    "unifiedWorkerRequest": {
      "type": "object",
      "additionalProperties": {
        "description": "Properties of the object. Contains field @type with type URL."
      },
      "description": "Untranslated bag-of-bytes WorkRequest from UnifiedWorker."
    },
    "workItemTypes": {
      "type": "array",
      "description": "Filter for WorkItem type.",
      "items": {
        "type": "string"
      }
    },
    "requestedLeaseDuration": {
      "type": "string",
      "format": "google-duration",
      "description": "The initial lease period."
    },
    "workerCapabilities": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Worker capabilities. WorkItems might be limited to workers with specific capabilities."
    },
    "currentWorkerTime": {
      "format": "google-datetime",
      "description": "The current timestamp at the worker.",
      "type": "string"
    }
  },
  "type": "object"
}