{
  "name": "ListRunnerSessions",
  "plane": "control",
  "terraformEligible": false,
  "subProduct": "runner",
  "protocol": {
    "kind": "cloudJson",
    "target": "CloudDeploy.Runner.ListRunnerSessions",
    "service": "deploy"
  },
  "requestBody": "typed",
  "responseBody": "typed",
  "requestSchema": {
    "$schema": "http://json-schema.org/draft-07/schema#",
    "additionalProperties": false,
    "properties": {
      "maxResults": {
        "default": null,
        "format": "uint32",
        "minimum": 0.0,
        "type": [
          "integer",
          "null"
        ]
      },
      "nextToken": {
        "default": null,
        "type": [
          "string",
          "null"
        ]
      },
      "poolId": {
        "type": "string"
      }
    },
    "required": [
      "poolId"
    ],
    "title": "ListRunnerSessionsRequest",
    "type": "object"
  },
  "responseSchema": {
    "$schema": "http://json-schema.org/draft-07/schema#",
    "definitions": {
      "RunnerSessionResponse": {
        "properties": {
          "githubJobId": {
            "type": [
              "string",
              "null"
            ]
          },
          "machineFleet": {
            "type": [
              "string",
              "null"
            ]
          },
          "poolId": {
            "type": "string"
          },
          "sessionId": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "terminalReason": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "poolId",
          "sessionId",
          "status"
        ],
        "type": "object"
      }
    },
    "properties": {
      "nextToken": {
        "type": [
          "string",
          "null"
        ]
      },
      "sessions": {
        "items": {
          "$ref": "#/definitions/RunnerSessionResponse"
        },
        "type": "array"
      }
    },
    "required": [
      "sessions"
    ],
    "title": "ListRunnerSessionsResponse",
    "type": "object"
  }
}
