{
  "info": {
    "version": "v1",
    "x-google-revision": "20261122",
    "description": "The Colab API lets you programmatically manage Colab runtimes.",
    "title": "Colab API"
  },
  "servers": [
    {
      "url": "https://colaboratory.googleapis.com",
      "description": "Global Endpoint"
    }
  ],
  "externalDocs": {
    "description": "Find more info here.",
    "url": "https://developers.google.com/colab/api/reference/rest"
  },
  "openapi": "3.0.3",
  "components": {
    "schemas": {
      "BaseOperation": {
        "type": "object",
        "properties": {
          "done": {
            "type": "boolean",
            "description": "If the value is `false`, it means the operation is still in progress.\nIf `true`, the operation is completed, and either `error` or `response` is\navailable."
          },
          "name": {
            "description": "The server-assigned name, which is only unique within the same service that\noriginally returns it. If you use the default HTTP mapping, the\n`name` should be a resource name ending with `operations/{unique_id}`.",
            "type": "string"
          },
          "error": {
            "description": "The error result of the operation in case of failure or cancellation.",
            "allOf": [
              {
                "$ref": "#/components/schemas/Status"
              }
            ]
          }
        },
        "description": "This resource represents a long-running operation that is the result of a\nnetwork API call."
      },
      "Operation": {
        "allOf": [
          {
            "$ref": "#/components/schemas/BaseOperation"
          },
          {
            "type": "object",
            "properties": {
              "metadata": {
                "type": "object",
                "additionalProperties": {
                  "description": "Properties of the object. Contains field @type with type URL."
                },
                "description": "Service-specific metadata associated with the operation.  It typically\ncontains progress information and common metadata such as create time.\nSome services might not provide such metadata.  Any method that returns a\nlong-running operation should document the metadata type, if any."
              },
              "response": {
                "description": "The normal, successful response of the operation.  If the original\nmethod returns no data on success, such as `Delete`, the response is\n`google.protobuf.Empty`.  If the original method is standard\n`Get`/`Create`/`Update`, the response should be the resource.  For other\nmethods, the response should have the type `XxxResponse`, where `Xxx`\nis the original method name.  For example, if the original method name\nis `TakeSnapshot()`, the inferred response type is\n`TakeSnapshotResponse`.",
                "type": "object",
                "additionalProperties": {
                  "description": "Properties of the object. Contains field @type with type URL."
                }
              }
            }
          }
        ],
        "description": "This resource represents a long-running operation that is the result of a\nnetwork API call.",
        "type": "object"
      },
      "ListOperationsResponse": {
        "description": "The response message for Operations.ListOperations.",
        "properties": {
          "operations": {
            "items": {
              "$ref": "#/components/schemas/Operation"
            },
            "description": "A list of operations that matches the specified filter in the request.",
            "type": "array"
          },
          "nextPageToken": {
            "description": "The standard List next-page token.",
            "type": "string"
          }
        },
        "type": "object"
      },
      "Status": {
        "type": "object",
        "properties": {
          "message": {
            "description": "A developer-facing error message, which should be in English. Any\nuser-facing error message should be localized and sent in the\ngoogle.rpc.Status.details field, or localized by the client.",
            "type": "string"
          },
          "code": {
            "format": "int32",
            "description": "The status code, which should be an enum value of google.rpc.Code.",
            "type": "integer"
          },
          "details": {
            "description": "A list of messages that carry the error details.  There is a common set of\nmessage types for APIs to use.",
            "type": "array",
            "items": {
              "additionalProperties": {
                "description": "Properties of the object. Contains field @type with type URL."
              },
              "type": "object"
            }
          }
        },
        "description": "The `Status` type defines a logical error model that is suitable for\ndifferent programming environments, including REST APIs and RPC APIs. It is\nused by [gRPC](https://github.com/grpc). Each `Status` message contains\nthree pieces of data: error code, error message, and error details.\n\nYou can find out more about this error model and how to work with it in the\n[API Design Guide](https://cloud.google.com/apis/design/errors)."
      },
      "ErrorInfo": {
        "type": "object",
        "properties": {
          "metadata": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            },
            "description": "Additional structured details about this error.\n\nKeys must match a regular expression of `a-z+` but should\nideally be lowerCamelCase. Also, they must be limited to 64 characters in\nlength. When identifying the current value of an exceeded limit, the units\nshould be contained in the key, not the value.  For example, rather than\n`{\"instanceLimit\": \"100/request\"}`, should be returned as,\n`{\"instanceLimitPerRequest\": \"100\"}`, if the client exceeds the number of\ninstances that can be created in a single (batch) request."
          },
          "reason": {
            "description": "The reason for the error. This is a constant value that identifies the\nproximate cause of the error. Error reasons are unique within a particular\ndomain of errors. This should be at most 63 characters and match a\nregular expression of `A-Z+[A-Z0-9]`, which represents\nUPPER_SNAKE_CASE.",
            "type": "string"
          },
          "domain": {
            "description": "The logical grouping to which the \"reason\" belongs. The error domain\nis typically the registered service name of the tool or product that\ngenerates the error. Example: \"pubsub.googleapis.com\". If the error is\ngenerated by some common infrastructure, the error domain must be a\nglobally unique value that identifies the infrastructure. For Google API\ninfrastructure, the error domain is \"googleapis.com\".",
            "type": "string"
          }
        },
        "description": "Describes the cause of the error with structured details.\n\nExample of an error when contacting the \"pubsub.googleapis.com\" API when it\nis not enabled:\n\n    { \"reason\": \"API_DISABLED\"\n      \"domain\": \"googleapis.com\"\n      \"metadata\": {\n        \"resource\": \"projects/123\",\n        \"service\": \"pubsub.googleapis.com\"\n      }\n    }\n\nThis response indicates that the pubsub.googleapis.com API is not enabled.\n\nExample of an error that is returned when attempting to create a Spanner\ninstance in a region that is out of stock:\n\n    { \"reason\": \"STOCKOUT\"\n      \"domain\": \"spanner.googleapis.com\",\n      \"metadata\": {\n        \"availableRegions\": \"us-central1,us-east2\"\n      }\n    }"
      }
    },
    "parameters": {
      "prettyPrint": {
        "in": "query",
        "description": "Returns response with indentations and line breaks.",
        "name": "$prettyPrint",
        "schema": {
          "type": "boolean",
          "default": "true"
        }
      },
      "_.xgafv": {
        "schema": {
          "x-google-enum-descriptions": [
            "v1 error format",
            "v2 error format"
          ],
          "type": "string",
          "enum": [
            "1",
            "2"
          ]
        },
        "name": "$.xgafv",
        "description": "V1 error format.",
        "in": "query"
      },
      "callback": {
        "name": "$callback",
        "description": "JSONP",
        "in": "query",
        "schema": {
          "type": "string"
        }
      },
      "alt": {
        "in": "query",
        "name": "$alt",
        "schema": {
          "default": "json",
          "type": "string",
          "x-google-enum-descriptions": [
            "Responses with Content-Type of application/json",
            "Media download with context-dependent Content-Type",
            "Responses with Content-Type of application/x-protobuf"
          ],
          "enum": [
            "json",
            "media",
            "proto"
          ]
        },
        "description": "Data format for response."
      }
    },
    "securitySchemes": {
      "google_oauth_code": {
        "flows": {
          "authorizationCode": {
            "refreshUrl": "https://oauth2.googleapis.com/token",
            "tokenUrl": "https://oauth2.googleapis.com/token",
            "authorizationUrl": "https://accounts.google.com/o/oauth2/v2/auth",
            "scopes": {
              "https://www.googleapis.com/auth/colaboratory": "Read, write, and delete your Colab resources",
              "https://www.googleapis.com/auth/colaboratory.readonly": "Read-only access to your Colab resources"
            }
          }
        },
        "description": "Google Oauth 2.0 authorizationCode authentication flow.",
        "type": "oauth2"
      },
      "google_oauth_implicit": {
        "type": "oauth2",
        "description": "Google Oauth 2.0 implicit authentication flow.",
        "flows": {
          "implicit": {
            "authorizationUrl": "https://accounts.google.com/o/oauth2/v2/auth",
            "scopes": {
              "https://www.googleapis.com/auth/colaboratory.readonly": "Read-only access to your Colab resources",
              "https://www.googleapis.com/auth/colaboratory": "Read, write, and delete your Colab resources"
            }
          }
        }
      },
      "bearer_auth": {
        "type": "http",
        "scheme": "bearer",
        "description": "Http bearer authentication."
      }
    }
  },
  "paths": {
    "/v1/operations": {
      "get": {
        "description": "Lists operations that match the specified filter in the request. If the\nserver doesn't support this method, it returns `UNIMPLEMENTED`.",
        "responses": {
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ListOperationsResponse"
                }
              }
            },
            "description": "Successful operation"
          }
        },
        "parameters": [
          {
            "description": "The standard list page size.",
            "in": "query",
            "name": "pageSize",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "schema": {
              "type": "string"
            },
            "description": "The standard list page token.",
            "name": "pageToken",
            "in": "query"
          }
        ],
        "operationId": "ListOperations",
        "tags": [
          "colaboratory"
        ],
        "security": [
          {
            "google_oauth_implicit": [
              "https://www.googleapis.com/auth/colaboratory",
              "https://www.googleapis.com/auth/colaboratory.readonly"
            ]
          },
          {
            "google_oauth_code": [
              "https://www.googleapis.com/auth/colaboratory",
              "https://www.googleapis.com/auth/colaboratory.readonly"
            ]
          },
          {
            "bearer_auth": []
          }
        ]
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/alt"
        },
        {
          "$ref": "#/components/parameters/callback"
        },
        {
          "$ref": "#/components/parameters/prettyPrint"
        },
        {
          "$ref": "#/components/parameters/_.xgafv"
        }
      ]
    },
    "/v1/operations/{operationsId}": {
      "parameters": [
        {
          "$ref": "#/components/parameters/alt"
        },
        {
          "$ref": "#/components/parameters/callback"
        },
        {
          "$ref": "#/components/parameters/prettyPrint"
        },
        {
          "$ref": "#/components/parameters/_.xgafv"
        }
      ],
      "get": {
        "operationId": "GetOperation",
        "security": [
          {
            "google_oauth_implicit": [
              "https://www.googleapis.com/auth/colaboratory",
              "https://www.googleapis.com/auth/colaboratory.readonly"
            ]
          },
          {
            "google_oauth_code": [
              "https://www.googleapis.com/auth/colaboratory",
              "https://www.googleapis.com/auth/colaboratory.readonly"
            ]
          },
          {
            "bearer_auth": []
          }
        ],
        "responses": {
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Operation"
                }
              }
            },
            "description": "Successful operation"
          }
        },
        "parameters": [
          {
            "name": "operationsId",
            "required": true,
            "description": "Part of `name`. The name of the operation resource.",
            "schema": {
              "type": "string"
            },
            "in": "path"
          }
        ],
        "description": "Gets the latest state of a long-running operation.  Clients can use this\nmethod to poll the operation result at intervals as recommended by the API\nservice.",
        "tags": [
          "colaboratory"
        ]
      }
    },
    "/v1/operations/{operationsId}:wait": {
      "parameters": [
        {
          "$ref": "#/components/parameters/alt"
        },
        {
          "$ref": "#/components/parameters/callback"
        },
        {
          "$ref": "#/components/parameters/prettyPrint"
        },
        {
          "$ref": "#/components/parameters/_.xgafv"
        }
      ],
      "get": {
        "description": "Waits until the specified long-running operation is done or reaches at most\na specified timeout, returning the latest state.  If the operation is\nalready done, the latest state is immediately returned.  If the timeout\nspecified is greater than the default HTTP/RPC timeout, the HTTP/RPC\ntimeout is used.  If the server does not support this method, it returns\n`google.rpc.Code.UNIMPLEMENTED`.\nNote that this method is on a best-effort basis.  It may return the latest\nstate before the specified timeout (including immediately), meaning even an\nimmediate response is no guarantee that the operation is done.",
        "responses": {
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Operation"
                }
              }
            },
            "description": "Successful operation"
          }
        },
        "parameters": [
          {
            "description": "Part of `name`. The name of the operation resource to wait on.",
            "required": true,
            "schema": {
              "type": "string"
            },
            "in": "path",
            "name": "operationsId"
          },
          {
            "schema": {
              "format": "google-duration",
              "type": "string"
            },
            "description": "The maximum duration to wait before timing out. If left blank, the wait\nwill be at most the time permitted by the underlying HTTP/RPC protocol.\nIf RPC context deadline is also specified, the shorter one will be used.",
            "in": "query",
            "name": "timeout"
          }
        ],
        "security": [
          {
            "google_oauth_implicit": [
              "https://www.googleapis.com/auth/colaboratory",
              "https://www.googleapis.com/auth/colaboratory.readonly"
            ]
          },
          {
            "google_oauth_code": [
              "https://www.googleapis.com/auth/colaboratory",
              "https://www.googleapis.com/auth/colaboratory.readonly"
            ]
          },
          {
            "bearer_auth": []
          }
        ],
        "operationId": "WaitOperation",
        "tags": [
          "colaboratory"
        ]
      }
    }
  }
}
