{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/google-cloud-sql/json-schema/google-cloud-sql-workload-captures-stop-request-schema.json",
  "title": "WorkloadCapturesStopRequest",
  "description": "Request to stop recording traffic from the primary instance.",
  "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/WorkloadCapturesStopRequest",
  "properties": {
    "stopWorkloadCaptureContext": {
      "$ref": "#/$defs/StopWorkloadCaptureContext",
      "description": "Optional. Contains details about the stop workload capture operation."
    }
  },
  "type": "object",
  "$defs": {
    "StopWorkloadCaptureContext": {
      "description": "The context for the `StopWorkloadCapture` operation, which contains details to stop recording the workload (SQL queries) on a Cloud SQL instance.",
      "properties": {
        "abortLiveReplay": {
          "type": "boolean",
          "description": "Optional. If true, immediately aborts the concurrent live replay and discards any un-replayed traffic alongside stopping the capture. If false (the default), the capture stops recording new traffic, but the live replay will continue executing until the entire backlog of captured traffic has been replayed."
        }
      },
      "type": "object"
    }
  }
}