{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/google-cloud-sql/json-schema/google-cloud-sql-workload-captures-list-response-schema.json",
  "title": "WorkloadCapturesListResponse",
  "description": "Instance list captured workloads response.",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/google-cloud-sql-workload-captures-api-openapi.yml#/components/schemas/WorkloadCapturesListResponse",
  "type": "object",
  "properties": {
    "kind": {
      "type": "string",
      "description": "This is always `sql#workloadCapturesList`."
    },
    "workloadCaptures": {
      "description": "List of captured workloads for the instance.",
      "type": "array",
      "items": {
        "$ref": "#/$defs/WorkloadCapture"
      }
    }
  },
  "$defs": {
    "WorkloadCapture": {
      "description": "Captured workload for an instance.",
      "properties": {
        "startTime": {
          "format": "google-datetime",
          "description": "Output only. The start time of the workload capture.",
          "type": "string",
          "readOnly": true
        },
        "endTime": {
          "type": "string",
          "format": "google-datetime",
          "readOnly": true,
          "description": "Output only. The end time of the workload capture."
        },
        "sourceInstance": {
          "readOnly": true,
          "description": "Output only. The name of the source instance.",
          "type": "string"
        },
        "replayInstance": {
          "type": "string",
          "description": "Output only. The name of the replay instance, if live replay was enabled.",
          "readOnly": true
        },
        "workloadId": {
          "description": "Output only. The ID of the captured workload.",
          "type": "string",
          "readOnly": true
        },
        "workloadCaptureState": {
          "enum": [
            "STATE_UNSPECIFIED",
            "RUNNING",
            "COMPLETED",
            "FAILED",
            "TERMINATED"
          ],
          "type": "string",
          "description": "Output only. The state of the workload capture.",
          "readOnly": true
        },
        "retentionDays": {
          "readOnly": true,
          "description": "Output only. The retention period in days for the captured workload.",
          "type": "integer",
          "format": "int32"
        },
        "backupId": {
          "type": "string",
          "description": "Output only. The base backup ID associated with the workload capture.",
          "readOnly": true
        }
      },
      "type": "object"
    }
  }
}