{
  "swagger": "2.0",
  "info": {
    "title": "project.proto",
    "version": "version not set"
  },
  "tags": [
    {
      "name": "Projects"
    }
  ],
  "consumes": [
    "application/json"
  ],
  "produces": [
    "application/json"
  ],
  "paths": {
    "/v1beta1/projects": {
      "get": {
        "summary": "Lists projects.",
        "operationId": "Projects_ListProjects",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/projectListProjectsResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "parameters": [
          {
            "name": "filter",
            "description": "The filter expression.",
            "in": "query",
            "required": false,
            "type": "string"
          },
          {
            "name": "pageSize",
            "description": "Number of projects to return in the list.",
            "in": "query",
            "required": false,
            "type": "integer",
            "format": "int32"
          },
          {
            "name": "pageToken",
            "description": "Token to provide to skip to a particular spot in the list.",
            "in": "query",
            "required": false,
            "type": "string"
          }
        ],
        "tags": [
          "Projects"
        ]
      },
      "post": {
        "summary": "Creates a new project.",
        "operationId": "Projects_CreateProject",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/projectProject"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "parameters": [
          {
            "name": "body",
            "description": "The project to create.",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/projectProject"
            }
          }
        ],
        "tags": [
          "Projects"
        ]
      }
    },
    "/v1beta1/{name}": {
      "get": {
        "summary": "Gets the specified project.",
        "operationId": "Projects_GetProject",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/projectProject"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "parameters": [
          {
            "name": "name",
            "description": "The name of the project in the form of `projects/{PROJECT_ID}`.",
            "in": "path",
            "required": true,
            "type": "string",
            "pattern": "projects/[^/]+"
          }
        ],
        "tags": [
          "Projects"
        ]
      },
      "delete": {
        "summary": "Deletes the specified project.",
        "operationId": "Projects_DeleteProject",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "properties": {}
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "parameters": [
          {
            "name": "name",
            "description": "The name of the project in the form of `projects/{PROJECT_ID}`.",
            "in": "path",
            "required": true,
            "type": "string",
            "pattern": "projects/[^/]+"
          }
        ],
        "tags": [
          "Projects"
        ]
      }
    }
  },
  "definitions": {
    "projectListProjectsResponse": {
      "type": "object",
      "properties": {
        "projects": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/projectProject"
          },
          "description": "The projects requested."
        },
        "nextPageToken": {
          "type": "string",
          "description": "The next pagination token in the list response. It should be used as\n`page_token` for the following request. An empty value means no more\nresults."
        }
      },
      "description": "Response for listing projects."
    },
    "projectProject": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "The name of the project in the form of `projects/{PROJECT_ID}`."
        }
      },
      "description": "Describes a Grafeas project."
    },
    "protobufAny": {
      "type": "object",
      "properties": {
        "@type": {
          "type": "string"
        }
      },
      "additionalProperties": {}
    },
    "rpcStatus": {
      "type": "object",
      "properties": {
        "code": {
          "type": "integer",
          "format": "int32"
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/protobufAny"
          }
        }
      }
    }
  }
}