get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/patches/817453/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 817453,
    "url": "http://patchwork.ozlabs.org/api/patches/817453/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/patch/1506081825-14209-3-git-send-email-pradeep.jagadeesh@huawei.com/",
    "project": {
        "id": 14,
        "url": "http://patchwork.ozlabs.org/api/projects/14/?format=api",
        "name": "QEMU Development",
        "link_name": "qemu-devel",
        "list_id": "qemu-devel.nongnu.org",
        "list_email": "qemu-devel@nongnu.org",
        "web_url": "",
        "scm_url": "",
        "webscm_url": "",
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<1506081825-14209-3-git-send-email-pradeep.jagadeesh@huawei.com>",
    "list_archive_url": null,
    "date": "2017-09-22T12:03:41",
    "name": "[v12,2/6] qmp: Use ThrottleLimits structure",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "4118d2e2aa93e0959c2c3ee7e067a8f88594278a",
    "submitter": {
        "id": 69852,
        "url": "http://patchwork.ozlabs.org/api/people/69852/?format=api",
        "name": "Pradeep Jagadeesh",
        "email": "pradeepkiruvale@gmail.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/qemu-devel/patch/1506081825-14209-3-git-send-email-pradeep.jagadeesh@huawei.com/mbox/",
    "series": [
        {
            "id": 4607,
            "url": "http://patchwork.ozlabs.org/api/series/4607/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/list/?series=4607",
            "date": "2017-09-22T12:03:39",
            "name": "fsdev: qmp interface for io throttling",
            "version": 12,
            "mbox": "http://patchwork.ozlabs.org/series/4607/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/817453/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/817453/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>",
        "X-Original-To": "incoming@patchwork.ozlabs.org",
        "Delivered-To": "patchwork-incoming@bilbo.ozlabs.org",
        "Authentication-Results": [
            "ozlabs.org;\n\tspf=pass (mailfrom) smtp.mailfrom=nongnu.org\n\t(client-ip=2001:4830:134:3::11; helo=lists.gnu.org;\n\tenvelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org;\n\treceiver=<UNKNOWN>)",
            "ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=gmail.com header.i=@gmail.com\n\theader.b=\"Kebz63lW\"; dkim-atps=neutral"
        ],
        "Received": [
            "from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11])\n\t(using TLSv1 with cipher AES256-SHA (256/256 bits))\n\t(No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xzBxk5Sfmz9sPm\n\tfor <incoming@patchwork.ozlabs.org>;\n\tFri, 22 Sep 2017 22:05:14 +1000 (AEST)",
            "from localhost ([::1]:58477 helo=lists.gnu.org)\n\tby lists.gnu.org with esmtp (Exim 4.71) (envelope-from\n\t<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>)\n\tid 1dvMhk-0006Nk-PK\n\tfor incoming@patchwork.ozlabs.org; Fri, 22 Sep 2017 08:05:12 -0400",
            "from eggs.gnu.org ([2001:4830:134:3::10]:46746)\n\tby lists.gnu.org with esmtp (Exim 4.71)\n\t(envelope-from <pradeepkiruvale@gmail.com>) id 1dvMgx-0006Ly-NG\n\tfor qemu-devel@nongnu.org; Fri, 22 Sep 2017 08:04:25 -0400",
            "from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)\n\t(envelope-from <pradeepkiruvale@gmail.com>) id 1dvMgu-0004td-Kq\n\tfor qemu-devel@nongnu.org; Fri, 22 Sep 2017 08:04:23 -0400",
            "from mail-wm0-x244.google.com ([2a00:1450:400c:c09::244]:35935)\n\tby eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16)\n\t(Exim 4.71) (envelope-from <pradeepkiruvale@gmail.com>)\n\tid 1dvMgu-0004tL-CV\n\tfor qemu-devel@nongnu.org; Fri, 22 Sep 2017 08:04:20 -0400",
            "by mail-wm0-x244.google.com with SMTP id r136so1089820wmf.3\n\tfor <qemu-devel@nongnu.org>; Fri, 22 Sep 2017 05:04:20 -0700 (PDT)",
            "from localhost.localdomain.localdomain ([217.110.131.66])\n\tby smtp.gmail.com with ESMTPSA id\n\tv78sm2567133wmv.48.2017.09.22.05.04.18\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tFri, 22 Sep 2017 05:04:18 -0700 (PDT)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;\n\th=from:to:cc:subject:date:message-id:in-reply-to:references;\n\tbh=sVdDqaQdvXDPH/eNGaIzQLyBc/iMByzC7L6004Gk/Hs=;\n\tb=Kebz63lWf8KPH++VPrCyXOCpWS4bz0PLkXZS74W0LW1pUoRLewtVBwkrMp0DyVaNP+\n\tfxfRL+0S5IKgskuZcSm4a4OAvM2yH7nKLxCkRnp0V83RrEdvF5uDeFNjnaHVqyziFM1P\n\tGptrgID7tsw/Ppn6J88Zvii9GqHWQ9/uZiLtNxd3EKTb0zZrG+1d4N42URdNONEH/fan\n\tEY3BJEnckJ+PP09pSTxLJ0Rlbqc4PrbyKqOfV4JfmM6ijYjsBem/aOfOTVB7QhOoJ8B2\n\t2Rijj9ljj6d+p3Dm3qIMbw9JUN3hFX+BehOUWqV3ya6euzs4OVF8NLLCBO4AoYLXma2G\n\tFx3A==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to\n\t:references;\n\tbh=sVdDqaQdvXDPH/eNGaIzQLyBc/iMByzC7L6004Gk/Hs=;\n\tb=YiB5BFyYeZuQkj7QUE5rg3UB7mvWVevezEHcPWdczhDXAb8a9wU2cuYk+/WGFZdOcO\n\tPrer4W3h7/6uJk9l5MHgh/W7xdA522ZIb444AzHbV7zT9v/UnxsN/Qk+H9Kn74DzDsh/\n\t5+BCQbILHFuFRuQZbChuMfe8LWnDAj61L2CxHGG2uvNXRunRLtBiSYGgS9UJFdGO0GLX\n\taWSQQMZMlIwkbwT1oNJ3Gcd3F/Fa47Tu7KC/MXSMGMUUwYQOCsT6++F6TqcW/uTz2BMs\n\tVytAK5VgwwijZ3bPd+WzCBZtCzQFiJxOfxLmObfhRACJQ4DRFgmfJZCyq1J0HJShJU8G\n\tgeHA==",
        "X-Gm-Message-State": "AHPjjUhWj69+6kO5X8WoYD5w6zXlApMWHkmzcf0it4Dp9uTdS/PTbqoV\n\tiBMsVSg046EcqMIKzB4cz/0=",
        "X-Google-Smtp-Source": "AOwi7QBLZx7XHGp8il/Pv/kTroVvdHEuKOvtAz6cCpfP3p+PD0QLwHAsr9UUBdRezTbf7K3grX3wxA==",
        "X-Received": "by 10.28.26.138 with SMTP id a132mr3796478wma.25.1506081859325; \n\tFri, 22 Sep 2017 05:04:19 -0700 (PDT)",
        "From": "Pradeep Jagadeesh <pradeepkiruvale@gmail.com>",
        "X-Google-Original-From": "Pradeep Jagadeesh <pradeep.jagadeesh@huawei.com>",
        "To": "\"eric blake\" <eblake@redhat.com>,\n\t\"greg kurz\" <groug@kaod.org>",
        "Date": "Fri, 22 Sep 2017 08:03:41 -0400",
        "Message-Id": "<1506081825-14209-3-git-send-email-pradeep.jagadeesh@huawei.com>",
        "X-Mailer": "git-send-email 1.8.3.1",
        "In-Reply-To": "<1506081825-14209-1-git-send-email-pradeep.jagadeesh@huawei.com>",
        "References": "<1506081825-14209-1-git-send-email-pradeep.jagadeesh@huawei.com>",
        "X-detected-operating-system": "by eggs.gnu.org: Genre and OS details not\n\trecognized.",
        "X-Received-From": "2a00:1450:400c:c09::244",
        "Subject": "[Qemu-devel] [PATCH v12 2/6] qmp: Use ThrottleLimits structure",
        "X-BeenThere": "qemu-devel@nongnu.org",
        "X-Mailman-Version": "2.1.21",
        "Precedence": "list",
        "List-Id": "<qemu-devel.nongnu.org>",
        "List-Unsubscribe": "<https://lists.nongnu.org/mailman/options/qemu-devel>,\n\t<mailto:qemu-devel-request@nongnu.org?subject=unsubscribe>",
        "List-Archive": "<http://lists.nongnu.org/archive/html/qemu-devel/>",
        "List-Post": "<mailto:qemu-devel@nongnu.org>",
        "List-Help": "<mailto:qemu-devel-request@nongnu.org?subject=help>",
        "List-Subscribe": "<https://lists.nongnu.org/mailman/listinfo/qemu-devel>,\n\t<mailto:qemu-devel-request@nongnu.org?subject=subscribe>",
        "Cc": "qemu-devel@nongnu.org, jani kokkonen <jani.kokkonen@huawei.com>,\n\talberto garcia <berto@igalia.com>,\n\tPradeep Jagadeesh <pradeep.jagadeesh@huawei.com>,\n\tManos Pitsidianakis <el13635@mail.ntua.gr>",
        "Errors-To": "qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org",
        "Sender": "\"Qemu-devel\"\n\t<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>"
    },
    "content": "This patch factors out code to use the ThrottleLimits\nstructure.\n\nSigned-off-by: Pradeep Jagadeesh <pradeep.jagadeesh@huawei.com>\n---\n qapi/block-core.json | 75 +++-------------------------------------------------\n 1 file changed, 3 insertions(+), 72 deletions(-)",
    "diff": "diff --git a/qapi/block-core.json b/qapi/block-core.json\nindex bb11815..5ca4597 100644\n--- a/qapi/block-core.json\n+++ b/qapi/block-core.json\n@@ -1824,86 +1824,17 @@\n #\n # A set of parameters describing block throttling.\n #\n-# @device: Block device name (deprecated, use @id instead)\n-#\n # @id: The name or QOM path of the guest device (since: 2.8)\n #\n-# @bps: total throughput limit in bytes per second\n-#\n-# @bps_rd: read throughput limit in bytes per second\n-#\n-# @bps_wr: write throughput limit in bytes per second\n-#\n-# @iops: total I/O operations per second\n-#\n-# @iops_rd: read I/O operations per second\n-#\n-# @iops_wr: write I/O operations per second\n-#\n-# @bps_max: total throughput limit during bursts,\n-#                     in bytes (Since 1.7)\n-#\n-# @bps_rd_max: read throughput limit during bursts,\n-#                        in bytes (Since 1.7)\n-#\n-# @bps_wr_max: write throughput limit during bursts,\n-#                        in bytes (Since 1.7)\n-#\n-# @iops_max: total I/O operations per second during bursts,\n-#                      in bytes (Since 1.7)\n-#\n-# @iops_rd_max: read I/O operations per second during bursts,\n-#                         in bytes (Since 1.7)\n-#\n-# @iops_wr_max: write I/O operations per second during bursts,\n-#                         in bytes (Since 1.7)\n-#\n-# @bps_max_length: maximum length of the @bps_max burst\n-#                            period, in seconds. It must only\n-#                            be set if @bps_max is set as well.\n-#                            Defaults to 1. (Since 2.6)\n-#\n-# @bps_rd_max_length: maximum length of the @bps_rd_max\n-#                               burst period, in seconds. It must only\n-#                               be set if @bps_rd_max is set as well.\n-#                               Defaults to 1. (Since 2.6)\n-#\n-# @bps_wr_max_length: maximum length of the @bps_wr_max\n-#                               burst period, in seconds. It must only\n-#                               be set if @bps_wr_max is set as well.\n-#                               Defaults to 1. (Since 2.6)\n-#\n-# @iops_max_length: maximum length of the @iops burst\n-#                             period, in seconds. It must only\n-#                             be set if @iops_max is set as well.\n-#                             Defaults to 1. (Since 2.6)\n-#\n-# @iops_rd_max_length: maximum length of the @iops_rd_max\n-#                                burst period, in seconds. It must only\n-#                                be set if @iops_rd_max is set as well.\n-#                                Defaults to 1. (Since 2.6)\n-#\n-# @iops_wr_max_length: maximum length of the @iops_wr_max\n-#                                burst period, in seconds. It must only\n-#                                be set if @iops_wr_max is set as well.\n-#                                Defaults to 1. (Since 2.6)\n-#\n-# @iops_size: an I/O size in bytes (Since 1.7)\n+# @device: Block device name (deprecated, use @id instead)\n #\n # @group: throttle group name (Since 2.4)\n #\n # Since: 1.1\n ##\n { 'struct': 'BlockIOThrottle',\n-  'data': { '*device': 'str', '*id': 'str', 'bps': 'int', 'bps_rd': 'int',\n-            'bps_wr': 'int', 'iops': 'int', 'iops_rd': 'int', 'iops_wr': 'int',\n-            '*bps_max': 'int', '*bps_rd_max': 'int',\n-            '*bps_wr_max': 'int', '*iops_max': 'int',\n-            '*iops_rd_max': 'int', '*iops_wr_max': 'int',\n-            '*bps_max_length': 'int', '*bps_rd_max_length': 'int',\n-            '*bps_wr_max_length': 'int', '*iops_max_length': 'int',\n-            '*iops_rd_max_length': 'int', '*iops_wr_max_length': 'int',\n-            '*iops_size': 'int', '*group': 'str' } }\n+  'base': 'ThrottleLimits',\n+  'data': { '*device': 'str', '*id': 'str', '*group': 'str' } }\n \n ##\n # @ThrottleLimits:\n",
    "prefixes": [
        "v12",
        "2/6"
    ]
}