{"package":"@executor.sh/google-drive","files":[{"path":"README.md","content":"# Google Drive\n\nFiles, folders, shared drives, permissions, comments, replies, revisions, changes, labels,\naccess proposals and approvals in Google Drive: 64 tools (36 mutations, each requiring approval).\n\n## Curated tools\n\nThe top-level tools are shaped for agents, after [gogcli](https://github.com/openclaw/gogcli)'s typed tool set: `search` (plain words or Drive query syntax, newest first) and `read` (any file as text: Docs as Markdown, Sheets as CSV, Slides as text). Reads span every linked account at once unless `account` names one; writes need `account` only when several accounts are linked, and ask for approval. Results name the account they came from by its address, read from Drive's `about` resource and cached for a day. Their code is `tools/`, copied from `shared/google-tools` by `node scripts/google-vendor.ts`, which also gives the same tools to the all-in-one `google` package. The generated tools described below are under `api`, each taking an `accountId`.\n\n## Interface\n\nOpenAPI, vendored as `drive-openapi.json`. Google publishes Drive v3 only as a Discovery\ndocument, so `discovery-to-openapi.mjs` converts Google's own document\n(`https://www.googleapis.com/discovery/v1/apis/drive/v3/rest`, **revision 20261005**) into\nOpenAPI 3. The conversion is ours, not Google's, and the output is checked in so any upstream\nchange shows up in review. To refresh:\n`curl -s https://www.googleapis.com/discovery/v1/apis/drive/v3/rest -o /tmp/d.json && node packages/google-drive/discovery-to-openapi.mjs /tmp/d.json > packages/google-drive/drive-openapi.json`,\nthen update the revision above. (APIs.guru's copy was not used: it lagged Google's by 16\nmethods, including approvals, access proposals, `files.download`, `files.generateCseToken`.)\nEvery operation is declared with a plain bearer requirement.\n\nGoogle also runs an official remote MCP server (`https://drivemcp.googleapis.com/mcp/v1`),\nbut it has 8 tools and is limited to the Google Workspace Developer Preview Program, so\nthe REST API is used instead.\n\n## Auth\n\nOAuth 2.0 only (Google has no user API keys for private Drive data). Create an OAuth client\nof type \"Web application\" in Google Cloud Console (APIs & Services > Credentials), enable the\nGoogle Drive API for the project, and configure the consent screen (add test users while it is\nExternal and unverified). Add Executor's OAuth redirect URI shown on the connect page to the\nclient's authorized redirect URIs. The app requests the\n`https://www.googleapis.com/auth/drive` scope with `access_type=offline` and `prompt=consent`\nso a refresh token is issued. Discovery is from `https://accounts.google.com`.\n\n`auth/drive` is a restricted scope. Production use by users outside your own organization\nneeds Google's restricted-scope OAuth verification (and possibly an annual third-party\nsecurity assessment). The test stage with test users does not. The narrower `drive.file` scope\nwould avoid this, but limits the tools to files the user opens with or shares to the app (and\nfiles the app creates), so listing and searching the whole Drive would not work.\n\n## Known gaps\n\n- File content upload (`upload/drive/v3`, media and multipart) is not in the Discovery\n  REST surface used here; `files.create` and `files.update` handle metadata only.\n- `files.export` and `files.get?alt=media` return binary data as base64 (`alt` is not exposed;\n  use `files.download`, a long-running operation, for content).\n- Watch/push-notification channels are present but need a public webhook receiver.\n"},{"path":"discovery-to-openapi.mjs","content":"// Converts Google's Drive v3 Discovery document into the vendored drive-openapi.json.\n// Usage: node discovery-to-openapi.mjs <discovery.json> > drive-openapi.json\n// Fetch the input from https://www.googleapis.com/discovery/v1/apis/drive/v3/rest\nimport { readFileSync } from \"node:fs\";\n\nconst d = JSON.parse(readFileSync(process.argv[2], \"utf8\"));\n\nconst schema = (s) => {\n  if (!s) return {};\n  if (s.$ref) return { $ref: `#/components/schemas/${s.$ref}` };\n  const out = {};\n  if (s.description) out.description = s.description;\n  if (s.type === \"any\") return out;\n  if (s.type) out.type = s.type;\n  if (s.format) out.format = s.format;\n  if (s.enum) out.enum = s.enum;\n  if (s.properties) {\n    out.properties = Object.fromEntries(Object.entries(s.properties).map(([k, v]) => [k, schema(v)]));\n  }\n  if (s.additionalProperties) out.additionalProperties = schema(s.additionalProperties);\n  if (s.items) out.items = schema(s.items);\n  return out;\n};\n\nconst param = (name, p) => {\n  const base = schema({ type: p.type, format: p.format, enum: p.enum });\n  return {\n    name,\n    in: p.location,\n    required: p.location === \"path\" ? true : Boolean(p.required),\n    description: p.description,\n    schema: p.repeated ? { type: \"array\", items: base } : base,\n  };\n};\n\nconst paths = {};\nconst walk = (resources) => {\n  for (const r of Object.values(resources ?? {})) {\n    for (const m of Object.values(r.methods ?? {})) {\n      const key = `/${m.path.replace(/^\\//, \"\")}`;\n      const params = Object.entries(m.parameters ?? {}).map(([n, p]) => param(n, p));\n      params.push({ name: \"fields\", in: \"query\", required: false, description: d.parameters.fields.description, schema: { type: \"string\" } });\n      const op = {\n        operationId: m.id,\n        description: m.description?.trim(),\n        parameters: params,\n        responses: {\n          200: m.response\n            ? { description: \"Success\", content: { \"application/json\": { schema: schema(m.response) } } }\n            : { description: \"Success\" },\n        },\n        security: [{ bearer: [] }],\n      };\n      if (m.request) {\n        op.requestBody = { required: true, content: { \"application/json\": { schema: schema(m.request) } } };\n      }\n      (paths[key] ??= {})[m.httpMethod.toLowerCase()] = op;\n    }\n    walk(r.resources);\n  }\n};\nwalk(d.resources);\n\nconst doc = {\n  openapi: \"3.0.3\",\n  info: {\n    title: d.title,\n    version: `${d.version} (discovery revision ${d.revision})`,\n    description: d.description,\n  },\n  servers: [{ url: d.baseUrl.replace(/\\/$/, \"\") }],\n  security: [{ bearer: [] }],\n  paths,\n  components: {\n    schemas: Object.fromEntries(Object.entries(d.schemas).map(([k, v]) => [k, schema(v)])),\n    securitySchemes: { bearer: { type: \"http\", scheme: \"bearer\" } },\n  },\n};\nprocess.stdout.write(JSON.stringify(doc, null, 1) + \"\\n\");\n"},{"path":"drive-openapi.json","content":"{\n \"openapi\": \"3.0.3\",\n \"info\": {\n  \"title\": \"Google Drive API\",\n  \"version\": \"v3 (discovery revision 20261005)\",\n  \"description\": \"The Google Drive API allows clients to access resources from Google Drive.\"\n },\n \"servers\": [\n  {\n   \"url\": \"https://www.googleapis.com/drive/v3\"\n  }\n ],\n \"security\": [\n  {\n   \"bearer\": []\n  }\n ],\n \"paths\": {\n  \"/about\": {\n   \"get\": {\n    \"operationId\": \"drive.about.get\",\n    \"description\": \"Gets information about the user, the user's Drive, and system capabilities. For more information, see [Return user info](https://developers.google.com/workspace/drive/api/guides/user-info). Required: The `fields` parameter must be set. To return the exact fields you need, see [Return specific fields](https://developers.google.com/workspace/drive/api/guides/fields-parameter).\",\n    \"parameters\": [\n     {\n      \"name\": \"fields\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"Selector specifying which fields to include in a partial response.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     }\n    ],\n    \"responses\": {\n     \"200\": {\n      \"description\": \"Success\",\n      \"content\": {\n       \"application/json\": {\n        \"schema\": {\n         \"$ref\": \"#/components/schemas/About\"\n        }\n       }\n      }\n     }\n    },\n    \"security\": [\n     {\n      \"bearer\": []\n     }\n    ]\n   }\n  },\n  \"/operations/{name}\": {\n   \"get\": {\n    \"operationId\": \"drive.operations.get\",\n    \"description\": \"Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.\",\n    \"parameters\": [\n     {\n      \"name\": \"name\",\n      \"in\": \"path\",\n      \"required\": true,\n      \"description\": \"The name of the operation resource.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     },\n     {\n      \"name\": \"fields\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"Selector specifying which fields to include in a partial response.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     }\n    ],\n    \"responses\": {\n     \"200\": {\n      \"description\": \"Success\",\n      \"content\": {\n       \"application/json\": {\n        \"schema\": {\n         \"$ref\": \"#/components/schemas/Operation\"\n        }\n       }\n      }\n     }\n    },\n    \"security\": [\n     {\n      \"bearer\": []\n     }\n    ]\n   }\n  },\n  \"/channels/stop\": {\n   \"post\": {\n    \"operationId\": \"drive.channels.stop\",\n    \"description\": \"Stops watching resources through this channel. For more information, see [Notifications for resource changes](https://developers.google.com/workspace/drive/api/guides/push).\",\n    \"parameters\": [\n     {\n      \"name\": \"fields\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"Selector specifying which fields to include in a partial response.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     }\n    ],\n    \"responses\": {\n     \"200\": {\n      \"description\": \"Success\"\n     }\n    },\n    \"security\": [\n     {\n      \"bearer\": []\n     }\n    ],\n    \"requestBody\": {\n     \"required\": true,\n     \"content\": {\n      \"application/json\": {\n       \"schema\": {\n        \"$ref\": \"#/components/schemas/Channel\"\n       }\n      }\n     }\n    }\n   }\n  },\n  \"/apps\": {\n   \"get\": {\n    \"operationId\": \"drive.apps.list\",\n    \"description\": \"Lists a user's installed apps. For more information, see [Return user info](https://developers.google.com/workspace/drive/api/guides/user-info).\",\n    \"parameters\": [\n     {\n      \"name\": \"appFilterExtensions\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"A comma-separated list of file extensions to limit returned results. All results within the given app query scope which can open any of the given file extensions are included in the response. If `appFilterMimeTypes` are provided as well, the result is a union of the two resulting app lists.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     },\n     {\n      \"name\": \"appFilterMimeTypes\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"A comma-separated list of file extensions to limit returned results. All results within the given app query scope which can open any of the given MIME types will be included in the response. If `appFilterExtensions` are provided as well, the result is a union of the two resulting app lists.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     },\n     {\n      \"name\": \"languageCode\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"A language or locale code, as defined by BCP 47, with some extensions from Unicode's LDML format (http://www.unicode.org/reports/tr35/).\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     },\n     {\n      \"name\": \"fields\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"Selector specifying which fields to include in a partial response.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     }\n    ],\n    \"responses\": {\n     \"200\": {\n      \"description\": \"Success\",\n      \"content\": {\n       \"application/json\": {\n        \"schema\": {\n         \"$ref\": \"#/components/schemas/AppList\"\n        }\n       }\n      }\n     }\n    },\n    \"security\": [\n     {\n      \"bearer\": []\n     }\n    ]\n   }\n  },\n  \"/apps/{appId}\": {\n   \"get\": {\n    \"operationId\": \"drive.apps.get\",\n    \"description\": \"Gets a specific app. For more information, see [Return user info](https://developers.google.com/workspace/drive/api/guides/user-info).\",\n    \"parameters\": [\n     {\n      \"name\": \"appId\",\n      \"in\": \"path\",\n      \"required\": true,\n      \"description\": \"The ID of the app.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     },\n     {\n      \"name\": \"fields\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"Selector specifying which fields to include in a partial response.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     }\n    ],\n    \"responses\": {\n     \"200\": {\n      \"description\": \"Success\",\n      \"content\": {\n       \"application/json\": {\n        \"schema\": {\n         \"$ref\": \"#/components/schemas/App\"\n        }\n       }\n      }\n     }\n    },\n    \"security\": [\n     {\n      \"bearer\": []\n     }\n    ]\n   }\n  },\n  \"/changes/watch\": {\n   \"post\": {\n    \"operationId\": \"drive.changes.watch\",\n    \"description\": \"Subscribes to changes for a user. For more information, see [Notifications for resource changes](https://developers.google.com/workspace/drive/api/guides/push).\",\n    \"parameters\": [\n     {\n      \"name\": \"includeRemoved\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"Whether to include changes indicating that items have been removed from the list of changes, for example by deletion or loss of access.\",\n      \"schema\": {\n       \"type\": \"boolean\"\n      }\n     },\n     {\n      \"name\": \"pageToken\",\n      \"in\": \"query\",\n      \"required\": true,\n      \"description\": \"The token for continuing a previous list request on the next page. This should be set to the value of 'nextPageToken' from the previous response or to the response from the getStartPageToken method.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     },\n     {\n      \"name\": \"supportsTeamDrives\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"Deprecated: Use `supportsAllDrives` instead.\",\n      \"schema\": {\n       \"type\": \"boolean\"\n      }\n     },\n     {\n      \"name\": \"driveId\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"The shared drive from which changes will be returned. If specified the change IDs will be reflective of the shared drive; use the combined drive ID and change ID as an identifier.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     },\n     {\n      \"name\": \"pageSize\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"The maximum number of changes to return. The service may return fewer than this value. If unspecified, at most 100 changes will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.\",\n      \"schema\": {\n       \"type\": \"integer\",\n       \"format\": \"int32\"\n      }\n     },\n     {\n      \"name\": \"includePermissionsForView\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"Specifies which additional view's permissions to include in the response. Only 'published' is supported.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     },\n     {\n      \"name\": \"restrictToMyDrive\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"Whether to restrict the results to changes inside the My Drive hierarchy. This omits changes to files such as those in the Application Data folder or shared files which have not been added to My Drive.\",\n      \"schema\": {\n       \"type\": \"boolean\"\n      }\n     },\n     {\n      \"name\": \"supportsAllDrives\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"Whether the requesting application supports both My Drives and shared drives.\",\n      \"schema\": {\n       \"type\": \"boolean\"\n      }\n     },\n     {\n      \"name\": \"teamDriveId\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"Deprecated: Use `driveId` instead.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     },\n     {\n      \"name\": \"includeLabels\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"A comma-separated list of IDs of labels to include in the `labelInfo` part of the response.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     },\n     {\n      \"name\": \"includeTeamDriveItems\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"Deprecated: Use `includeItemsFromAllDrives` instead.\",\n      \"schema\": {\n       \"type\": \"boolean\"\n      }\n     },\n     {\n      \"name\": \"includeCorpusRemovals\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"Whether changes should include the file resource if the file is still accessible by the user at the time of the request, even when a file was removed from the list of changes and there will be no further change entries for this file.\",\n      \"schema\": {\n       \"type\": \"boolean\"\n      }\n     },\n     {\n      \"name\": \"spaces\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"A comma-separated list of spaces to query within the corpora. Supported values are 'drive' and 'appDataFolder'.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     },\n     {\n      \"name\": \"includeItemsFromAllDrives\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"Whether both My Drive and shared drive items should be included in results.\",\n      \"schema\": {\n       \"type\": \"boolean\"\n      }\n     },\n     {\n      \"name\": \"fields\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"Selector specifying which fields to include in a partial response.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     }\n    ],\n    \"responses\": {\n     \"200\": {\n      \"description\": \"Success\",\n      \"content\": {\n       \"application/json\": {\n        \"schema\": {\n         \"$ref\": \"#/components/schemas/Channel\"\n        }\n       }\n      }\n     }\n    },\n    \"security\": [\n     {\n      \"bearer\": []\n     }\n    ],\n    \"requestBody\": {\n     \"required\": true,\n     \"content\": {\n      \"application/json\": {\n       \"schema\": {\n        \"$ref\": \"#/components/schemas/Channel\"\n       }\n      }\n     }\n    }\n   }\n  },\n  \"/changes/startPageToken\": {\n   \"get\": {\n    \"operationId\": \"drive.changes.getStartPageToken\",\n    \"description\": \"Gets the starting pageToken for listing future changes. For more information, see [Retrieve changes](https://developers.google.com/workspace/drive/api/guides/manage-changes).\",\n    \"parameters\": [\n     {\n      \"name\": \"teamDriveId\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"Deprecated: Use `driveId` instead.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     },\n     {\n      \"name\": \"driveId\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"The ID of the shared drive for which the starting pageToken for listing future changes from that shared drive will be returned.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     },\n     {\n      \"name\": \"supportsTeamDrives\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"Deprecated: Use `supportsAllDrives` instead.\",\n      \"schema\": {\n       \"type\": \"boolean\"\n      }\n     },\n     {\n      \"name\": \"supportsAllDrives\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"Whether the requesting application supports both My Drives and shared drives.\",\n      \"schema\": {\n       \"type\": \"boolean\"\n      }\n     },\n     {\n      \"name\": \"fields\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"Selector specifying which fields to include in a partial response.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     }\n    ],\n    \"responses\": {\n     \"200\": {\n      \"description\": \"Success\",\n      \"content\": {\n       \"application/json\": {\n        \"schema\": {\n         \"$ref\": \"#/components/schemas/StartPageToken\"\n        }\n       }\n      }\n     }\n    },\n    \"security\": [\n     {\n      \"bearer\": []\n     }\n    ]\n   }\n  },\n  \"/changes\": {\n   \"get\": {\n    \"operationId\": \"drive.changes.list\",\n    \"description\": \"Lists the changes for a user or shared drive. For more information, see [Retrieve changes](https://developers.google.com/workspace/drive/api/guides/manage-changes).\",\n    \"parameters\": [\n     {\n      \"name\": \"spaces\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"A comma-separated list of spaces to query within the corpora. Supported values are 'drive' and 'appDataFolder'.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     },\n     {\n      \"name\": \"supportsTeamDrives\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"Deprecated: Use `supportsAllDrives` instead.\",\n      \"schema\": {\n       \"type\": \"boolean\"\n      }\n     },\n     {\n      \"name\": \"includeItemsFromAllDrives\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"Whether both My Drive and shared drive items should be included in results.\",\n      \"schema\": {\n       \"type\": \"boolean\"\n      }\n     },\n     {\n      \"name\": \"includeTeamDriveItems\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"Deprecated: Use `includeItemsFromAllDrives` instead.\",\n      \"schema\": {\n       \"type\": \"boolean\"\n      }\n     },\n     {\n      \"name\": \"includeCorpusRemovals\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"Whether changes should include the file resource if the file is still accessible by the user at the time of the request, even when a file was removed from the list of changes and there will be no further change entries for this file.\",\n      \"schema\": {\n       \"type\": \"boolean\"\n      }\n     },\n     {\n      \"name\": \"supportsAllDrives\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"Whether the requesting application supports both My Drives and shared drives.\",\n      \"schema\": {\n       \"type\": \"boolean\"\n      }\n     },\n     {\n      \"name\": \"restrictToMyDrive\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"Whether to restrict the results to changes inside the My Drive hierarchy. This omits changes to files such as those in the Application Data folder or shared files which have not been added to My Drive.\",\n      \"schema\": {\n       \"type\": \"boolean\"\n      }\n     },\n     {\n      \"name\": \"includePermissionsForView\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"Specifies which additional view's permissions to include in the response. Only 'published' is supported.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     },\n     {\n      \"name\": \"includeLabels\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"A comma-separated list of IDs of labels to include in the `labelInfo` part of the response.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     },\n     {\n      \"name\": \"driveId\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"The shared drive from which changes will be returned. If specified the change IDs will be reflective of the shared drive; use the combined drive ID and change ID as an identifier.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     },\n     {\n      \"name\": \"pageToken\",\n      \"in\": \"query\",\n      \"required\": true,\n      \"description\": \"The token for continuing a previous list request on the next page. This should be set to the value of 'nextPageToken' from the previous response or to the response from the getStartPageToken method.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     },\n     {\n      \"name\": \"pageSize\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"The maximum number of changes to return. The service may return fewer than this value. If unspecified, at most 100 changes will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.\",\n      \"schema\": {\n       \"type\": \"integer\",\n       \"format\": \"int32\"\n      }\n     },\n     {\n      \"name\": \"includeRemoved\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"Whether to include changes indicating that items have been removed from the list of changes, for example by deletion or loss of access.\",\n      \"schema\": {\n       \"type\": \"boolean\"\n      }\n     },\n     {\n      \"name\": \"teamDriveId\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"Deprecated: Use `driveId` instead.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     },\n     {\n      \"name\": \"fields\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"Selector specifying which fields to include in a partial response.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     }\n    ],\n    \"responses\": {\n     \"200\": {\n      \"description\": \"Success\",\n      \"content\": {\n       \"application/json\": {\n        \"schema\": {\n         \"$ref\": \"#/components/schemas/ChangeList\"\n        }\n       }\n      }\n     }\n    },\n    \"security\": [\n     {\n      \"bearer\": []\n     }\n    ]\n   }\n  },\n  \"/drives/{driveId}\": {\n   \"patch\": {\n    \"operationId\": \"drive.drives.update\",\n    \"description\": \"Updates the metadata for a shared drive. For more information, see [Manage shared drives](https://developers.google.com/workspace/drive/api/guides/manage-shareddrives).\",\n    \"parameters\": [\n     {\n      \"name\": \"useDomainAdminAccess\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"Issue the request as a domain administrator; if set to true, then the requester will be granted access if they are an administrator of the domain to which the shared drive belongs.\",\n      \"schema\": {\n       \"type\": \"boolean\"\n      }\n     },\n     {\n      \"name\": \"driveId\",\n      \"in\": \"path\",\n      \"required\": true,\n      \"description\": \"The ID of the shared drive.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     },\n     {\n      \"name\": \"fields\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"Selector specifying which fields to include in a partial response.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     }\n    ],\n    \"responses\": {\n     \"200\": {\n      \"description\": \"Success\",\n      \"content\": {\n       \"application/json\": {\n        \"schema\": {\n         \"$ref\": \"#/components/schemas/Drive\"\n        }\n       }\n      }\n     }\n    },\n    \"security\": [\n     {\n      \"bearer\": []\n     }\n    ],\n    \"requestBody\": {\n     \"required\": true,\n     \"content\": {\n      \"application/json\": {\n       \"schema\": {\n        \"$ref\": \"#/components/schemas/Drive\"\n       }\n      }\n     }\n    }\n   },\n   \"get\": {\n    \"operationId\": \"drive.drives.get\",\n    \"description\": \"Gets a shared drive's metadata by ID. For more information, see [Manage shared drives](https://developers.google.com/workspace/drive/api/guides/manage-shareddrives).\",\n    \"parameters\": [\n     {\n      \"name\": \"driveId\",\n      \"in\": \"path\",\n      \"required\": true,\n      \"description\": \"The ID of the shared drive.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     },\n     {\n      \"name\": \"useDomainAdminAccess\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"Issue the request as a domain administrator; if set to true, then the requester will be granted access if they are an administrator of the domain to which the shared drive belongs.\",\n      \"schema\": {\n       \"type\": \"boolean\"\n      }\n     },\n     {\n      \"name\": \"fields\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"Selector specifying which fields to include in a partial response.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     }\n    ],\n    \"responses\": {\n     \"200\": {\n      \"description\": \"Success\",\n      \"content\": {\n       \"application/json\": {\n        \"schema\": {\n         \"$ref\": \"#/components/schemas/Drive\"\n        }\n       }\n      }\n     }\n    },\n    \"security\": [\n     {\n      \"bearer\": []\n     }\n    ]\n   },\n   \"delete\": {\n    \"operationId\": \"drive.drives.delete\",\n    \"description\": \"Permanently deletes a shared drive for which the user is an `organizer`. The shared drive cannot contain any untrashed items. For more information, see [Manage shared drives](https://developers.google.com/workspace/drive/api/guides/manage-shareddrives).\",\n    \"parameters\": [\n     {\n      \"name\": \"useDomainAdminAccess\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"Issue the request as a domain administrator; if set to true, then the requester will be granted access if they are an administrator of the domain to which the shared drive belongs.\",\n      \"schema\": {\n       \"type\": \"boolean\"\n      }\n     },\n     {\n      \"name\": \"driveId\",\n      \"in\": \"path\",\n      \"required\": true,\n      \"description\": \"The ID of the shared drive.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     },\n     {\n      \"name\": \"allowItemDeletion\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"Whether any items inside the shared drive should also be deleted. This option is only supported when `useDomainAdminAccess` is also set to `true`.\",\n      \"schema\": {\n       \"type\": \"boolean\"\n      }\n     },\n     {\n      \"name\": \"fields\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"Selector specifying which fields to include in a partial response.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     }\n    ],\n    \"responses\": {\n     \"200\": {\n      \"description\": \"Success\"\n     }\n    },\n    \"security\": [\n     {\n      \"bearer\": []\n     }\n    ]\n   }\n  },\n  \"/drives\": {\n   \"get\": {\n    \"operationId\": \"drive.drives.list\",\n    \"description\": \"Lists the user's shared drives. This method accepts the `q` parameter, which is a search query combining one or more search terms. For more information, see the [Search for shared drives](https://developers.google.com/workspace/drive/api/guides/search-shareddrives) guide.\",\n    \"parameters\": [\n     {\n      \"name\": \"pageSize\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"The maximum number of shared drives to return. The service may return fewer than this value. If unspecified, at most 10 shared drives will be returned. The maximum value is 100; values above 100 will be coerced to 100.\",\n      \"schema\": {\n       \"type\": \"integer\",\n       \"format\": \"int32\"\n      }\n     },\n     {\n      \"name\": \"useDomainAdminAccess\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"Issue the request as a domain administrator; if set to true, then all shared drives of the domain in which the requester is an administrator are returned.\",\n      \"schema\": {\n       \"type\": \"boolean\"\n      }\n     },\n     {\n      \"name\": \"pageToken\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"Page token for shared drives.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     },\n     {\n      \"name\": \"q\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"Query string for searching shared drives.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     },\n     {\n      \"name\": \"fields\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"Selector specifying which fields to include in a partial response.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     }\n    ],\n    \"responses\": {\n     \"200\": {\n      \"description\": \"Success\",\n      \"content\": {\n       \"application/json\": {\n        \"schema\": {\n         \"$ref\": \"#/components/schemas/DriveList\"\n        }\n       }\n      }\n     }\n    },\n    \"security\": [\n     {\n      \"bearer\": []\n     }\n    ]\n   },\n   \"post\": {\n    \"operationId\": \"drive.drives.create\",\n    \"description\": \"Creates a shared drive. For more information, see [Manage shared drives](https://developers.google.com/workspace/drive/api/guides/manage-shareddrives).\",\n    \"parameters\": [\n     {\n      \"name\": \"requestId\",\n      \"in\": \"query\",\n      \"required\": true,\n      \"description\": \"Required. An ID, such as a random UUID, which uniquely identifies this user's request for idempotent creation of a shared drive. A repeated request by the same user and with the same request ID will avoid creating duplicates by attempting to create the same shared drive. If the shared drive already exists a 409 error will be returned.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     },\n     {\n      \"name\": \"fields\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"Selector specifying which fields to include in a partial response.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     }\n    ],\n    \"responses\": {\n     \"200\": {\n      \"description\": \"Success\",\n      \"content\": {\n       \"application/json\": {\n        \"schema\": {\n         \"$ref\": \"#/components/schemas/Drive\"\n        }\n       }\n      }\n     }\n    },\n    \"security\": [\n     {\n      \"bearer\": []\n     }\n    ],\n    \"requestBody\": {\n     \"required\": true,\n     \"content\": {\n      \"application/json\": {\n       \"schema\": {\n        \"$ref\": \"#/components/schemas/Drive\"\n       }\n      }\n     }\n    }\n   }\n  },\n  \"/drives/{driveId}/hide\": {\n   \"post\": {\n    \"operationId\": \"drive.drives.hide\",\n    \"description\": \"Hides a shared drive from the default view. For more information, see [Manage shared drives](https://developers.google.com/workspace/drive/api/guides/manage-shareddrives).\",\n    \"parameters\": [\n     {\n      \"name\": \"driveId\",\n      \"in\": \"path\",\n      \"required\": true,\n      \"description\": \"The ID of the shared drive.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     },\n     {\n      \"name\": \"fields\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"Selector specifying which fields to include in a partial response.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     }\n    ],\n    \"responses\": {\n     \"200\": {\n      \"description\": \"Success\",\n      \"content\": {\n       \"application/json\": {\n        \"schema\": {\n         \"$ref\": \"#/components/schemas/Drive\"\n        }\n       }\n      }\n     }\n    },\n    \"security\": [\n     {\n      \"bearer\": []\n     }\n    ]\n   }\n  },\n  \"/drives/{driveId}/unhide\": {\n   \"post\": {\n    \"operationId\": \"drive.drives.unhide\",\n    \"description\": \"Restores a shared drive to the default view. For more information, see [Manage shared drives](https://developers.google.com/workspace/drive/api/guides/manage-shareddrives).\",\n    \"parameters\": [\n     {\n      \"name\": \"driveId\",\n      \"in\": \"path\",\n      \"required\": true,\n      \"description\": \"The ID of the shared drive.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     },\n     {\n      \"name\": \"fields\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"Selector specifying which fields to include in a partial response.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     }\n    ],\n    \"responses\": {\n     \"200\": {\n      \"description\": \"Success\",\n      \"content\": {\n       \"application/json\": {\n        \"schema\": {\n         \"$ref\": \"#/components/schemas/Drive\"\n        }\n       }\n      }\n     }\n    },\n    \"security\": [\n     {\n      \"bearer\": []\n     }\n    ]\n   }\n  },\n  \"/files/{fileId}/permissions\": {\n   \"post\": {\n    \"operationId\": \"drive.permissions.create\",\n    \"description\": \"Creates a permission for a file or shared drive. For more information, see [Share files, folders, and drives](https://developers.google.com/workspace/drive/api/guides/manage-sharing). **Warning:** Concurrent permission modifications (such as update or delete) on the same file, folder, or shared drive aren't supported across any users or clients; only the last update is applied.\",\n    \"parameters\": [\n     {\n      \"name\": \"fileId\",\n      \"in\": \"path\",\n      \"required\": true,\n      \"description\": \"The ID of the file or shared drive.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     },\n     {\n      \"name\": \"useDomainAdminAccess\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"Issue the request as a domain administrator. If set to `true`, and if the following additional conditions are met, the requester is granted access: 1. The file ID parameter refers to a shared drive. 2. The requester is an administrator of the domain to which the shared drive belongs. For more information, see [Manage shared drives as domain administrators](https://developers.google.com/workspace/drive/api/guides/manage-shareddrives#manage-administrators).\",\n      \"schema\": {\n       \"type\": \"boolean\"\n      }\n     },\n     {\n      \"name\": \"enforceExpansiveAccess\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"Deprecated: All requests use the expansive access rules.\",\n      \"schema\": {\n       \"type\": \"boolean\"\n      }\n     },\n     {\n      \"name\": \"emailMessage\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"A plain text custom message to include in the notification email.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     },\n     {\n      \"name\": \"supportsTeamDrives\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"Deprecated: Use `supportsAllDrives` instead.\",\n      \"schema\": {\n       \"type\": \"boolean\"\n      }\n     },\n     {\n      \"name\": \"supportsAllDrives\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"Whether the requesting application supports both My Drives and shared drives.\",\n      \"schema\": {\n       \"type\": \"boolean\"\n      }\n     },\n     {\n      \"name\": \"enforceSingleParent\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"Deprecated: See `moveToNewOwnersRoot` for details.\",\n      \"schema\": {\n       \"type\": \"boolean\"\n      }\n     },\n     {\n      \"name\": \"moveToNewOwnersRoot\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"This parameter only takes effect if the item isn't in a shared drive and the request is attempting to transfer the ownership of the item. If set to `true`, the item is moved to the new owner's My Drive root folder and all prior parents removed. If set to `false`, parents aren't changed.\",\n      \"schema\": {\n       \"type\": \"boolean\"\n      }\n     },\n     {\n      \"name\": \"sendNotificationEmail\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"Whether to send a notification email when sharing to users or groups. This defaults to `true` for users and groups, and is not allowed for other requests. It must not be disabled for ownership transfers.\",\n      \"schema\": {\n       \"type\": \"boolean\"\n      }\n     },\n     {\n      \"name\": \"transferOwnership\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"Whether to transfer ownership to the specified user and downgrade the current owner to a writer. This parameter is required as an acknowledgement of the side effect. For more information, see [Transfer file ownership](https://developers.google.com/workspace/drive/api/guides/transfer-file).\",\n      \"schema\": {\n       \"type\": \"boolean\"\n      }\n     },\n     {\n      \"name\": \"fields\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"Selector specifying which fields to include in a partial response.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     }\n    ],\n    \"responses\": {\n     \"200\": {\n      \"description\": \"Success\",\n      \"content\": {\n       \"application/json\": {\n        \"schema\": {\n         \"$ref\": \"#/components/schemas/Permission\"\n        }\n       }\n      }\n     }\n    },\n    \"security\": [\n     {\n      \"bearer\": []\n     }\n    ],\n    \"requestBody\": {\n     \"required\": true,\n     \"content\": {\n      \"application/json\": {\n       \"schema\": {\n        \"$ref\": \"#/components/schemas/Permission\"\n       }\n      }\n     }\n    }\n   },\n   \"get\": {\n    \"operationId\": \"drive.permissions.list\",\n    \"description\": \"Lists a file's or shared drive's permissions. For more information, see [Share files, folders, and drives](https://developers.google.com/workspace/drive/api/guides/manage-sharing).\",\n    \"parameters\": [\n     {\n      \"name\": \"supportsTeamDrives\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"Deprecated: Use `supportsAllDrives` instead.\",\n      \"schema\": {\n       \"type\": \"boolean\"\n      }\n     },\n     {\n      \"name\": \"fileId\",\n      \"in\": \"path\",\n      \"required\": true,\n      \"description\": \"The ID of the file or shared drive.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     },\n     {\n      \"name\": \"includePermissionsForView\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"Specifies which additional view's permissions to include in the response. Only `published` is supported.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     },\n     {\n      \"name\": \"pageToken\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"The token for continuing a previous list request on the next page. This should be set to the value of `nextPageToken` from the previous response.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     },\n     {\n      \"name\": \"pageSize\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"The maximum number of permissions to return. The service may return fewer than this value. If unspecified, at most 100 permissions will be returned for shared drives, and the entire list of permissions for non-shared drives. The maximum value is 100; values above 100 will be coerced to 100.\",\n      \"schema\": {\n       \"type\": \"integer\",\n       \"format\": \"int32\"\n      }\n     },\n     {\n      \"name\": \"supportsAllDrives\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"Whether the requesting application supports both My Drives and shared drives.\",\n      \"schema\": {\n       \"type\": \"boolean\"\n      }\n     },\n     {\n      \"name\": \"useDomainAdminAccess\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"Issue the request as a domain administrator. If set to `true`, and if the following additional conditions are met, the requester is granted access: 1. The file ID parameter refers to a shared drive. 2. The requester is an administrator of the domain to which the shared drive belongs. For more information, see [Manage shared drives as domain administrators](https://developers.google.com/workspace/drive/api/guides/manage-shareddrives#manage-administrators).\",\n      \"schema\": {\n       \"type\": \"boolean\"\n      }\n     },\n     {\n      \"name\": \"fields\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"Selector specifying which fields to include in a partial response.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     }\n    ],\n    \"responses\": {\n     \"200\": {\n      \"description\": \"Success\",\n      \"content\": {\n       \"application/json\": {\n        \"schema\": {\n         \"$ref\": \"#/components/schemas/PermissionList\"\n        }\n       }\n      }\n     }\n    },\n    \"security\": [\n     {\n      \"bearer\": []\n     }\n    ]\n   }\n  },\n  \"/files/{fileId}/permissions/{permissionId}\": {\n   \"get\": {\n    \"operationId\": \"drive.permissions.get\",\n    \"description\": \"Gets a permission by ID. For more information, see [Share files, folders, and drives](https://developers.google.com/workspace/drive/api/guides/manage-sharing).\",\n    \"parameters\": [\n     {\n      \"name\": \"supportsAllDrives\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"Whether the requesting application supports both My Drives and shared drives.\",\n      \"schema\": {\n       \"type\": \"boolean\"\n      }\n     },\n     {\n      \"name\": \"permissionId\",\n      \"in\": \"path\",\n      \"required\": true,\n      \"description\": \"The ID of the permission.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     },\n     {\n      \"name\": \"fileId\",\n      \"in\": \"path\",\n      \"required\": true,\n      \"description\": \"The ID of the file.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     },\n     {\n      \"name\": \"supportsTeamDrives\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"Deprecated: Use `supportsAllDrives` instead.\",\n      \"schema\": {\n       \"type\": \"boolean\"\n      }\n     },\n     {\n      \"name\": \"useDomainAdminAccess\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"Issue the request as a domain administrator. If set to `true`, and if the following additional conditions are met, the requester is granted access: 1. The file ID parameter refers to a shared drive. 2. The requester is an administrator of the domain to which the shared drive belongs. For more information, see [Manage shared drives as domain administrators](https://developers.google.com/workspace/drive/api/guides/manage-shareddrives#manage-administrators).\",\n      \"schema\": {\n       \"type\": \"boolean\"\n      }\n     },\n     {\n      \"name\": \"fields\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"Selector specifying which fields to include in a partial response.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     }\n    ],\n    \"responses\": {\n     \"200\": {\n      \"description\": \"Success\",\n      \"content\": {\n       \"application/json\": {\n        \"schema\": {\n         \"$ref\": \"#/components/schemas/Permission\"\n        }\n       }\n      }\n     }\n    },\n    \"security\": [\n     {\n      \"bearer\": []\n     }\n    ]\n   },\n   \"delete\": {\n    \"operationId\": \"drive.permissions.delete\",\n    \"description\": \"Deletes a permission. For more information, see [Share files, folders, and drives](https://developers.google.com/workspace/drive/api/guides/manage-sharing). **Warning:** Concurrent permission modifications (such as update or delete) on the same file, folder, or shared drive aren't supported across any users or clients; only the last update is applied.\",\n    \"parameters\": [\n     {\n      \"name\": \"fileId\",\n      \"in\": \"path\",\n      \"required\": true,\n      \"description\": \"The ID of the file or shared drive.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     },\n     {\n      \"name\": \"permissionId\",\n      \"in\": \"path\",\n      \"required\": true,\n      \"description\": \"The ID of the permission.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     },\n     {\n      \"name\": \"supportsTeamDrives\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"Deprecated: Use `supportsAllDrives` instead.\",\n      \"schema\": {\n       \"type\": \"boolean\"\n      }\n     },\n     {\n      \"name\": \"supportsAllDrives\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"Whether the requesting application supports both My Drives and shared drives.\",\n      \"schema\": {\n       \"type\": \"boolean\"\n      }\n     },\n     {\n      \"name\": \"enforceExpansiveAccess\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"Deprecated: All requests use the expansive access rules.\",\n      \"schema\": {\n       \"type\": \"boolean\"\n      }\n     },\n     {\n      \"name\": \"useDomainAdminAccess\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"Issue the request as a domain administrator. If set to `true`, and if the following additional conditions are met, the requester is granted access: 1. The file ID parameter refers to a shared drive. 2. The requester is an administrator of the domain to which the shared drive belongs. For more information, see [Manage shared drives as domain administrators](https://developers.google.com/workspace/drive/api/guides/manage-shareddrives#manage-administrators).\",\n      \"schema\": {\n       \"type\": \"boolean\"\n      }\n     },\n     {\n      \"name\": \"fields\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"Selector specifying which fields to include in a partial response.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     }\n    ],\n    \"responses\": {\n     \"200\": {\n      \"description\": \"Success\"\n     }\n    },\n    \"security\": [\n     {\n      \"bearer\": []\n     }\n    ]\n   },\n   \"patch\": {\n    \"operationId\": \"drive.permissions.update\",\n    \"description\": \"Updates a permission with patch semantics. For more information, see [Share files, folders, and drives](https://developers.google.com/workspace/drive/api/guides/manage-sharing). **Warning:** Concurrent permission modifications (such as update or delete) on the same file, folder, or shared drive aren't supported across any users or clients; only the last update is applied.\",\n    \"parameters\": [\n     {\n      \"name\": \"useDomainAdminAccess\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"Issue the request as a domain administrator. If set to `true`, and if the following additional conditions are met, the requester is granted access: 1. The file ID parameter refers to a shared drive. 2. The requester is an administrator of the domain to which the shared drive belongs. For more information, see [Manage shared drives as domain administrators](https://developers.google.com/workspace/drive/api/guides/manage-shareddrives#manage-administrators).\",\n      \"schema\": {\n       \"type\": \"boolean\"\n      }\n     },\n     {\n      \"name\": \"enforceExpansiveAccess\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"Deprecated: All requests use the expansive access rules.\",\n      \"schema\": {\n       \"type\": \"boolean\"\n      }\n     },\n     {\n      \"name\": \"transferOwnership\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"Whether to transfer ownership to the specified user and downgrade the current owner to a writer. This parameter is required as an acknowledgement of the side effect. For more information, see [Transfer file ownership](https://developers.google.com//workspace/drive/api/guides/transfer-file).\",\n      \"schema\": {\n       \"type\": \"boolean\"\n      }\n     },\n     {\n      \"name\": \"removeExpiration\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"Whether to remove the expiration date.\",\n      \"schema\": {\n       \"type\": \"boolean\"\n      }\n     },\n     {\n      \"name\": \"supportsAllDrives\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"Whether the requesting application supports both My Drives and shared drives.\",\n      \"schema\": {\n       \"type\": \"boolean\"\n      }\n     },\n     {\n      \"name\": \"permissionId\",\n      \"in\": \"path\",\n      \"required\": true,\n      \"description\": \"The ID of the permission.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     },\n     {\n      \"name\": \"fileId\",\n      \"in\": \"path\",\n      \"required\": true,\n      \"description\": \"The ID of the file or shared drive.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     },\n     {\n      \"name\": \"supportsTeamDrives\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"Deprecated: Use `supportsAllDrives` instead.\",\n      \"schema\": {\n       \"type\": \"boolean\"\n      }\n     },\n     {\n      \"name\": \"fields\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"Selector specifying which fields to include in a partial response.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     }\n    ],\n    \"responses\": {\n     \"200\": {\n      \"description\": \"Success\",\n      \"content\": {\n       \"application/json\": {\n        \"schema\": {\n         \"$ref\": \"#/components/schemas/Permission\"\n        }\n       }\n      }\n     }\n    },\n    \"security\": [\n     {\n      \"bearer\": []\n     }\n    ],\n    \"requestBody\": {\n     \"required\": true,\n     \"content\": {\n      \"application/json\": {\n       \"schema\": {\n        \"$ref\": \"#/components/schemas/Permission\"\n       }\n      }\n     }\n    }\n   }\n  },\n  \"/teamdrives/{teamDriveId}\": {\n   \"get\": {\n    \"operationId\": \"drive.teamdrives.get\",\n    \"description\": \"Deprecated: Use `drives.get` instead.\",\n    \"parameters\": [\n     {\n      \"name\": \"teamDriveId\",\n      \"in\": \"path\",\n      \"required\": true,\n      \"description\": \"The ID of the Team Drive\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     },\n     {\n      \"name\": \"useDomainAdminAccess\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"Issue the request as a domain administrator; if set to true, then the requester will be granted access if they are an administrator of the domain to which the Team Drive belongs.\",\n      \"schema\": {\n       \"type\": \"boolean\"\n      }\n     },\n     {\n      \"name\": \"fields\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"Selector specifying which fields to include in a partial response.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     }\n    ],\n    \"responses\": {\n     \"200\": {\n      \"description\": \"Success\",\n      \"content\": {\n       \"application/json\": {\n        \"schema\": {\n         \"$ref\": \"#/components/schemas/TeamDrive\"\n        }\n       }\n      }\n     }\n    },\n    \"security\": [\n     {\n      \"bearer\": []\n     }\n    ]\n   },\n   \"delete\": {\n    \"operationId\": \"drive.teamdrives.delete\",\n    \"description\": \"Deprecated: Use `drives.delete` instead.\",\n    \"parameters\": [\n     {\n      \"name\": \"teamDriveId\",\n      \"in\": \"path\",\n      \"required\": true,\n      \"description\": \"The ID of the Team Drive\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     },\n     {\n      \"name\": \"fields\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"Selector specifying which fields to include in a partial response.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     }\n    ],\n    \"responses\": {\n     \"200\": {\n      \"description\": \"Success\"\n     }\n    },\n    \"security\": [\n     {\n      \"bearer\": []\n     }\n    ]\n   },\n   \"patch\": {\n    \"operationId\": \"drive.teamdrives.update\",\n    \"description\": \"Deprecated: Use `drives.update` instead.\",\n    \"parameters\": [\n     {\n      \"name\": \"useDomainAdminAccess\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"Issue the request as a domain administrator; if set to true, then the requester will be granted access if they are an administrator of the domain to which the Team Drive belongs.\",\n      \"schema\": {\n       \"type\": \"boolean\"\n      }\n     },\n     {\n      \"name\": \"teamDriveId\",\n      \"in\": \"path\",\n      \"required\": true,\n      \"description\": \"The ID of the Team Drive\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     },\n     {\n      \"name\": \"fields\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"Selector specifying which fields to include in a partial response.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     }\n    ],\n    \"responses\": {\n     \"200\": {\n      \"description\": \"Success\",\n      \"content\": {\n       \"application/json\": {\n        \"schema\": {\n         \"$ref\": \"#/components/schemas/TeamDrive\"\n        }\n       }\n      }\n     }\n    },\n    \"security\": [\n     {\n      \"bearer\": []\n     }\n    ],\n    \"requestBody\": {\n     \"required\": true,\n     \"content\": {\n      \"application/json\": {\n       \"schema\": {\n        \"$ref\": \"#/components/schemas/TeamDrive\"\n       }\n      }\n     }\n    }\n   }\n  },\n  \"/teamdrives\": {\n   \"post\": {\n    \"operationId\": \"drive.teamdrives.create\",\n    \"description\": \"Deprecated: Use `drives.create` instead.\",\n    \"parameters\": [\n     {\n      \"name\": \"requestId\",\n      \"in\": \"query\",\n      \"required\": true,\n      \"description\": \"Required. An ID, such as a random UUID, which uniquely identifies this user's request for idempotent creation of a Team Drive. A repeated request by the same user and with the same request ID will avoid creating duplicates by attempting to create the same Team Drive. If the Team Drive already exists a 409 error will be returned.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     },\n     {\n      \"name\": \"fields\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"Selector specifying which fields to include in a partial response.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     }\n    ],\n    \"responses\": {\n     \"200\": {\n      \"description\": \"Success\",\n      \"content\": {\n       \"application/json\": {\n        \"schema\": {\n         \"$ref\": \"#/components/schemas/TeamDrive\"\n        }\n       }\n      }\n     }\n    },\n    \"security\": [\n     {\n      \"bearer\": []\n     }\n    ],\n    \"requestBody\": {\n     \"required\": true,\n     \"content\": {\n      \"application/json\": {\n       \"schema\": {\n        \"$ref\": \"#/components/schemas/TeamDrive\"\n       }\n      }\n     }\n    }\n   },\n   \"get\": {\n    \"operationId\": \"drive.teamdrives.list\",\n    \"description\": \"Deprecated: Use `drives.list` instead.\",\n    \"parameters\": [\n     {\n      \"name\": \"q\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"Query string for searching Team Drives.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     },\n     {\n      \"name\": \"pageSize\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"Maximum number of Team Drives to return.\",\n      \"schema\": {\n       \"type\": \"integer\",\n       \"format\": \"int32\"\n      }\n     },\n     {\n      \"name\": \"pageToken\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"Page token for Team Drives.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     },\n     {\n      \"name\": \"useDomainAdminAccess\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"Issue the request as a domain administrator; if set to true, then all Team Drives of the domain in which the requester is an administrator are returned.\",\n      \"schema\": {\n       \"type\": \"boolean\"\n      }\n     },\n     {\n      \"name\": \"fields\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"Selector specifying which fields to include in a partial response.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     }\n    ],\n    \"responses\": {\n     \"200\": {\n      \"description\": \"Success\",\n      \"content\": {\n       \"application/json\": {\n        \"schema\": {\n         \"$ref\": \"#/components/schemas/TeamDriveList\"\n        }\n       }\n      }\n     }\n    },\n    \"security\": [\n     {\n      \"bearer\": []\n     }\n    ]\n   }\n  },\n  \"/files/trash\": {\n   \"delete\": {\n    \"operationId\": \"drive.files.emptyTrash\",\n    \"description\": \"Permanently deletes all of the user's trashed files. For more information, see [Trash or delete files and folders](https://developers.google.com/workspace/drive/api/guides/delete).\",\n    \"parameters\": [\n     {\n      \"name\": \"driveId\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"If set, empties the trash of the provided shared drive.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     },\n     {\n      \"name\": \"enforceSingleParent\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"Deprecated: If an item isn't in a shared drive and its last parent is deleted but the item itself isn't, the item will be placed under its owner's root.\",\n      \"schema\": {\n       \"type\": \"boolean\"\n      }\n     },\n     {\n      \"name\": \"fields\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"Selector specifying which fields to include in a partial response.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     }\n    ],\n    \"responses\": {\n     \"200\": {\n      \"description\": \"Success\"\n     }\n    },\n    \"security\": [\n     {\n      \"bearer\": []\n     }\n    ]\n   }\n  },\n  \"/files\": {\n   \"post\": {\n    \"operationId\": \"drive.files.create\",\n    \"description\": \"Creates a file. For more information, see [Create and manage files](https://developers.google.com/workspace/drive/api/guides/create-file). This method supports an */upload* URI and accepts uploaded media with the following characteristics: - *Maximum file size:* 5,120 GB - *Accepted Media MIME types:* `*/*` (Specify a valid MIME type, rather than the literal `*/*` value. The literal `*/*` is only used to indicate that any valid MIME type can be uploaded. For more information, see [Google Workspace and Google Drive supported MIME types](https://developers.google.com/workspace/drive/api/guides/mime-types).) For more information on uploading files, see [Upload file data](https://developers.google.com/workspace/drive/api/guides/manage-uploads). Apps creating shortcuts with the `create` method must specify the MIME type `application/vnd.google-apps.shortcut`. Apps should specify a file extension in the `name` property when inserting files with the API. For example, an operation to insert a JPEG file should specify something like `\\\"name\\\": \\\"cat.jpg\\\"` in the metadata. Subsequent `GET` requests include the read-only `fileExtension` property populated with the extension originally specified in the `name` property. When a Google Drive user requests to download a file, or when the file is downloaded through the sync client, Drive builds a full filename (with extension) based on the name. In cases where the extension is missing, Drive attempts to determine the extension based on the file's MIME type.\",\n    \"parameters\": [\n     {\n      \"name\": \"includePermissionsForView\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"Specifies which additional view's permissions to include in the response. Only `published` is supported.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     },\n     {\n      \"name\": \"ignoreDefaultVisibility\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"Whether to ignore the domain's default visibility settings for the created file. Domain administrators can choose to make all uploaded files visible to the domain by default; this parameter bypasses that behavior for the request. Permissions are still inherited from parent folders.\",\n      \"schema\": {\n       \"type\": \"boolean\"\n      }\n     },\n     {\n      \"name\": \"enforceSingleParent\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"Deprecated: Creating files in multiple folders is no longer supported.\",\n      \"schema\": {\n       \"type\": \"boolean\"\n      }\n     },\n     {\n      \"name\": \"useContentAsIndexableText\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"Whether to use the uploaded content as indexable text.\",\n      \"schema\": {\n       \"type\": \"boolean\"\n      }\n     },\n     {\n      \"name\": \"ocrLanguage\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"A language hint for OCR processing during image import (ISO 639-1 code).\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     },\n     {\n      \"name\": \"supportsAllDrives\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"Whether the requesting application supports both My Drives and shared drives.\",\n      \"schema\": {\n       \"type\": \"boolean\"\n      }\n     },\n     {\n      \"name\": \"includeLabels\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"A comma-separated list of IDs of labels to include in the `labelInfo` part of the response.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     },\n     {\n      \"name\": \"supportsTeamDrives\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"Deprecated: Use `supportsAllDrives` instead.\",\n      \"schema\": {\n       \"type\": \"boolean\"\n      }\n     },\n     {\n      \"name\": \"keepRevisionForever\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"Whether to set the `keepForever` field in the new head revision. This is only applicable to files with binary content in Google Drive. Only 200 revisions for the file can be kept forever. If the limit is reached, try deleting pinned revisions.\",\n      \"schema\": {\n       \"type\": \"boolean\"\n      }\n     },\n     {\n      \"name\": \"fields\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"Selector specifying which fields to include in a partial response.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     }\n    ],\n    \"responses\": {\n     \"200\": {\n      \"description\": \"Success\",\n      \"content\": {\n       \"application/json\": {\n        \"schema\": {\n         \"$ref\": \"#/components/schemas/File\"\n        }\n       }\n      }\n     }\n    },\n    \"security\": [\n     {\n      \"bearer\": []\n     }\n    ],\n    \"requestBody\": {\n     \"required\": true,\n     \"content\": {\n      \"application/json\": {\n       \"schema\": {\n        \"$ref\": \"#/components/schemas/File\"\n       }\n      }\n     }\n    }\n   },\n   \"get\": {\n    \"operationId\": \"drive.files.list\",\n    \"description\": \"Lists the user's files. For more information, see [Search for files and folders](https://developers.google.com/workspace/drive/api/guides/search-files). This method accepts the `q` parameter, which is a search query combining one or more search terms. This method returns *all* files by default, including trashed files. If you don't want trashed files to appear in the list, use the `trashed=false` query parameter to remove trashed files from the results.\",\n    \"parameters\": [\n     {\n      \"name\": \"orderBy\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"A comma-separated list of sort keys. Valid keys are: * `createdTime`: When the file was created. Avoid using this key for queries on large item collections as it might result in timeouts or other issues. For time-related sorting on large item collections, use `modifiedTime desc` instead. * `folder`: The folder ID. This field is sorted using alphabetical ordering. * `modifiedByMeTime`: The last time the file was modified by the user. * `modifiedTime`: The last time the file was modified by anyone. * `name`: The name of the file. This field is sorted using alphabetical ordering, so 1, 12, 2, 22. * `name_natural`: The name of the file. This field is sorted using natural sort ordering, so 1, 2, 12, 22. * `quotaBytesUsed`: The number of storage quota bytes used by the file. * `recency`: The most recent timestamp from the file's date-time fields. * `sharedWithMeTime`: When the file was shared with the user, if applicable. * `starred`: Whether the user has starred the file. * `viewedByMeTime`: The last time the file was viewed by the user. Each key sorts ascending by default, but can be reversed with the `desc` modifier. Example usage: `?orderBy=folder,modifiedTime desc,name`.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     },\n     {\n      \"name\": \"includeLabels\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"A comma-separated list of IDs of labels to include in the `labelInfo` part of the response.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     },\n     {\n      \"name\": \"teamDriveId\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"Deprecated: Use `driveId` instead.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     },\n     {\n      \"name\": \"supportsAllDrives\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"Whether the requesting application supports both My Drives and shared drives.\",\n      \"schema\": {\n       \"type\": \"boolean\"\n      }\n     },\n     {\n      \"name\": \"pageSize\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"The maximum number of files to return. The service may return fewer than this value. If unspecified, at most 100 files will be returned for shared drives, and the entire list of files for non-shared drives. The maximum value is 1000; values above 1000 will be coerced to 1000.\",\n      \"schema\": {\n       \"type\": \"integer\",\n       \"format\": \"int32\"\n      }\n     },\n     {\n      \"name\": \"includeItemsFromAllDrives\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"Whether both My Drive and shared drive items should be included in results.\",\n      \"schema\": {\n       \"type\": \"boolean\"\n      }\n     },\n     {\n      \"name\": \"spaces\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"A comma-separated list of spaces to query within the corpora. Supported values are `drive` and `appDataFolder`. For more information, see [File organization](https://developers.google.com/workspace/drive/api/guides/about-files#file-organization).\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     },\n     {\n      \"name\": \"corpus\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"Deprecated: The source of files to list. Use `corpora` instead.\",\n      \"schema\": {\n       \"type\": \"string\",\n       \"enum\": [\n        \"domain\",\n        \"user\"\n       ]\n      }\n     },\n     {\n      \"name\": \"includeTeamDriveItems\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"Deprecated: Use `includeItemsFromAllDrives` instead.\",\n      \"schema\": {\n       \"type\": \"boolean\"\n      }\n     },\n     {\n      \"name\": \"driveId\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"ID of the shared drive to search.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     },\n     {\n      \"name\": \"supportsTeamDrives\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"Deprecated: Use `supportsAllDrives` instead.\",\n      \"schema\": {\n       \"type\": \"boolean\"\n      }\n     },\n     {\n      \"name\": \"corpora\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"Specifies a collection of items (files or documents) to which the query applies. Supported items include: * `user` * `domain` * `drive` * `allDrives` Prefer `user` or `drive` to `allDrives` for efficiency. By default, corpora is set to `user`. However, this can change depending on the filter set through the `q` parameter. For more information, see [File organization](https://developers.google.com/workspace/drive/api/guides/about-files#file-organization).\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     },\n     {\n      \"name\": \"pageToken\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"The token for continuing a previous list request on the next page. This should be set to the value of `nextPageToken` from the previous response.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     },\n     {\n      \"name\": \"includePermissionsForView\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"Specifies which additional view's permissions to include in the response. Only `published` is supported.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     },\n     {\n      \"name\": \"q\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"A query for filtering the file results. For supported syntax, see [Search for files and folders](/workspace/drive/api/guides/search-files).\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     },\n     {\n      \"name\": \"fields\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"Selector specifying which fields to include in a partial response.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     }\n    ],\n    \"responses\": {\n     \"200\": {\n      \"description\": \"Success\",\n      \"content\": {\n       \"application/json\": {\n        \"schema\": {\n         \"$ref\": \"#/components/schemas/FileList\"\n        }\n       }\n      }\n     }\n    },\n    \"security\": [\n     {\n      \"bearer\": []\n     }\n    ]\n   }\n  },\n  \"/files/generateIds\": {\n   \"get\": {\n    \"operationId\": \"drive.files.generateIds\",\n    \"description\": \"Generates a set of file IDs which can be provided in create or copy requests. For more information, see [Create and manage files](https://developers.google.com/workspace/drive/api/guides/create-file).\",\n    \"parameters\": [\n     {\n      \"name\": \"type\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"The type of items which the IDs can be used for. Supported values are `files` and `shortcuts`. Note that `shortcuts` are only supported in the `drive` `space`. (Default: `files`.) For more information, see [File organization](https://developers.google.com/workspace/drive/api/guides/about-files#file-organization).\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     },\n     {\n      \"name\": \"count\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"The number of IDs to return.\",\n      \"schema\": {\n       \"type\": \"integer\",\n       \"format\": \"int32\"\n      }\n     },\n     {\n      \"name\": \"space\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"The space in which the IDs can be used to create files. Supported values are `drive` and `appDataFolder`. (Default: `drive`.) For more information, see [File organization](https://developers.google.com/workspace/drive/api/guides/about-files#file-organization).\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     },\n     {\n      \"name\": \"fields\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"Selector specifying which fields to include in a partial response.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     }\n    ],\n    \"responses\": {\n     \"200\": {\n      \"description\": \"Success\",\n      \"content\": {\n       \"application/json\": {\n        \"schema\": {\n         \"$ref\": \"#/components/schemas/GeneratedIds\"\n        }\n       }\n      }\n     }\n    },\n    \"security\": [\n     {\n      \"bearer\": []\n     }\n    ]\n   }\n  },\n  \"/files/{fileId}\": {\n   \"patch\": {\n    \"operationId\": \"drive.files.update\",\n    \"description\": \"Updates a file's metadata, content, or both. When calling this method, only populate fields in the request that you want to modify. When updating fields, some fields might be changed automatically, such as `modifiedDate`. This method supports patch semantics. This method supports an */upload* URI and accepts uploaded media with the following characteristics: - *Maximum file size:* 5,120 GB - *Accepted Media MIME types:* `*/*` (Specify a valid MIME type, rather than the literal `*/*` value. The literal `*/*` is only used to indicate that any valid MIME type can be uploaded. For more information, see [Google Workspace and Google Drive supported MIME types](https://developers.google.com/workspace/drive/api/guides/mime-types).) For more information on uploading files, see [Upload file data](https://developers.google.com/workspace/drive/api/guides/manage-uploads).\",\n    \"parameters\": [\n     {\n      \"name\": \"enforceSingleParent\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"Deprecated: Adding files to multiple folders is no longer supported. Use shortcuts instead.\",\n      \"schema\": {\n       \"type\": \"boolean\"\n      }\n     },\n     {\n      \"name\": \"supportsTeamDrives\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"Deprecated: Use `supportsAllDrives` instead.\",\n      \"schema\": {\n       \"type\": \"boolean\"\n      }\n     },\n     {\n      \"name\": \"includeLabels\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"A comma-separated list of IDs of labels to include in the `labelInfo` part of the response.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     },\n     {\n      \"name\": \"supportsAllDrives\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"Whether the requesting application supports both My Drives and shared drives.\",\n      \"schema\": {\n       \"type\": \"boolean\"\n      }\n     },\n     {\n      \"name\": \"ocrLanguage\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"A language hint for OCR processing during image import (ISO 639-1 code).\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     },\n     {\n      \"name\": \"includePermissionsForView\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"Specifies which additional view's permissions to include in the response. Only `published` is supported.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     },\n     {\n      \"name\": \"fileId\",\n      \"in\": \"path\",\n      \"required\": true,\n      \"description\": \"The ID of the file.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     },\n     {\n      \"name\": \"removeParents\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"A comma-separated list of parent IDs to remove.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     },\n     {\n      \"name\": \"addParents\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"A comma-separated list of parent IDs to add.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     },\n     {\n      \"name\": \"keepRevisionForever\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"Whether to set the `keepForever` field in the new head revision. This is only applicable to files with binary content in Google Drive. Only 200 revisions for the file can be kept forever. If the limit is reached, try deleting pinned revisions.\",\n      \"schema\": {\n       \"type\": \"boolean\"\n      }\n     },\n     {\n      \"name\": \"useContentAsIndexableText\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"Whether to use the uploaded content as indexable text.\",\n      \"schema\": {\n       \"type\": \"boolean\"\n      }\n     },\n     {\n      \"name\": \"fields\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"Selector specifying which fields to include in a partial response.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     }\n    ],\n    \"responses\": {\n     \"200\": {\n      \"description\": \"Success\",\n      \"content\": {\n       \"application/json\": {\n        \"schema\": {\n         \"$ref\": \"#/components/schemas/File\"\n        }\n       }\n      }\n     }\n    },\n    \"security\": [\n     {\n      \"bearer\": []\n     }\n    ],\n    \"requestBody\": {\n     \"required\": true,\n     \"content\": {\n      \"application/json\": {\n       \"schema\": {\n        \"$ref\": \"#/components/schemas/File\"\n       }\n      }\n     }\n    }\n   },\n   \"get\": {\n    \"operationId\": \"drive.files.get\",\n    \"description\": \"Gets a file's metadata or content by ID. For more information, see [Search for files and folders](https://developers.google.com/workspace/drive/api/guides/search-files). If you provide the URL parameter `alt=media`, then the response includes the file contents in the response body. Downloading content with `alt=media` only works if the file is stored in Drive. To download Google Docs, Sheets, and Slides use [`files.export`](https://developers.google.com/workspace/drive/api/reference/rest/v3/files/export) instead. For more information, see [Download and export files](https://developers.google.com/workspace/drive/api/guides/manage-downloads).\",\n    \"parameters\": [\n     {\n      \"name\": \"acknowledgeAbuse\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"Whether the user is acknowledging the risk of downloading known malware or other abusive files. This is only applicable when the `alt` parameter is set to `media` and the user is the owner of the file or an organizer of the shared drive in which the file resides.\",\n      \"schema\": {\n       \"type\": \"boolean\"\n      }\n     },\n     {\n      \"name\": \"includeLabels\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"A comma-separated list of IDs of labels to include in the `labelInfo` part of the response.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     },\n     {\n      \"name\": \"supportsAllDrives\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"Whether the requesting application supports both My Drives and shared drives.\",\n      \"schema\": {\n       \"type\": \"boolean\"\n      }\n     },\n     {\n      \"name\": \"fileId\",\n      \"in\": \"path\",\n      \"required\": true,\n      \"description\": \"The ID of the file.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     },\n     {\n      \"name\": \"supportsTeamDrives\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"Deprecated: Use `supportsAllDrives` instead.\",\n      \"schema\": {\n       \"type\": \"boolean\"\n      }\n     },\n     {\n      \"name\": \"includePermissionsForView\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"Specifies which additional view's permissions to include in the response. Only `published` is supported.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     },\n     {\n      \"name\": \"fields\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"Selector specifying which fields to include in a partial response.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     }\n    ],\n    \"responses\": {\n     \"200\": {\n      \"description\": \"Success\",\n      \"content\": {\n       \"application/json\": {\n        \"schema\": {\n         \"$ref\": \"#/components/schemas/File\"\n        }\n       }\n      }\n     }\n    },\n    \"security\": [\n     {\n      \"bearer\": []\n     }\n    ]\n   },\n   \"delete\": {\n    \"operationId\": \"drive.files.delete\",\n    \"description\": \"Permanently deletes a file owned by the user without moving it to the trash. For more information, see [Trash or delete files and folders](https://developers.google.com/workspace/drive/api/guides/delete). If the file belongs to a shared drive, the user must be an `organizer` on the parent folder. If the target is a folder, all descendants owned by the user are also deleted.\",\n    \"parameters\": [\n     {\n      \"name\": \"enforceSingleParent\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"Deprecated: If an item isn't in a shared drive and its last parent is deleted but the item itself isn't, the item will be placed under its owner's root.\",\n      \"schema\": {\n       \"type\": \"boolean\"\n      }\n     },\n     {\n      \"name\": \"supportsAllDrives\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"Whether the requesting application supports both My Drives and shared drives.\",\n      \"schema\": {\n       \"type\": \"boolean\"\n      }\n     },\n     {\n      \"name\": \"supportsTeamDrives\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"Deprecated: Use `supportsAllDrives` instead.\",\n      \"schema\": {\n       \"type\": \"boolean\"\n      }\n     },\n     {\n      \"name\": \"fileId\",\n      \"in\": \"path\",\n      \"required\": true,\n      \"description\": \"The ID of the file.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     },\n     {\n      \"name\": \"fields\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"Selector specifying which fields to include in a partial response.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     }\n    ],\n    \"responses\": {\n     \"200\": {\n      \"description\": \"Success\"\n     }\n    },\n    \"security\": [\n     {\n      \"bearer\": []\n     }\n    ]\n   }\n  },\n  \"/files/{fileId}/listLabels\": {\n   \"get\": {\n    \"operationId\": \"drive.files.listLabels\",\n    \"description\": \"Lists the labels on a file. For more information, see [List labels on a file](https://developers.google.com/workspace/drive/api/guides/list-labels).\",\n    \"parameters\": [\n     {\n      \"name\": \"pageToken\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"The token for continuing a previous list request on the next page. This should be set to the value of `nextPageToken` from the previous response.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     },\n     {\n      \"name\": \"fileId\",\n      \"in\": \"path\",\n      \"required\": true,\n      \"description\": \"The ID for the file.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     },\n     {\n      \"name\": \"maxResults\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"The maximum number of labels to return per page. When not set, defaults to 100.\",\n      \"schema\": {\n       \"type\": \"integer\",\n       \"format\": \"int32\"\n      }\n     },\n     {\n      \"name\": \"fields\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"Selector specifying which fields to include in a partial response.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     }\n    ],\n    \"responses\": {\n     \"200\": {\n      \"description\": \"Success\",\n      \"content\": {\n       \"application/json\": {\n        \"schema\": {\n         \"$ref\": \"#/components/schemas/LabelList\"\n        }\n       }\n      }\n     }\n    },\n    \"security\": [\n     {\n      \"bearer\": []\n     }\n    ]\n   }\n  },\n  \"/files/{fileId}/export\": {\n   \"get\": {\n    \"operationId\": \"drive.files.export\",\n    \"description\": \"Exports a Google Workspace document to the requested MIME type and returns exported byte content. For more information, see [Download and export files](https://developers.google.com/workspace/drive/api/guides/manage-downloads). Note that the exported content is limited to 10 MB.\",\n    \"parameters\": [\n     {\n      \"name\": \"mimeType\",\n      \"in\": \"query\",\n      \"required\": true,\n      \"description\": \"Required. The MIME type of the format requested for this export. For a list of supported MIME types, see [Export MIME types for Google Workspace documents](/workspace/drive/api/guides/ref-export-formats).\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     },\n     {\n      \"name\": \"fileId\",\n      \"in\": \"path\",\n      \"required\": true,\n      \"description\": \"The ID of the file.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     },\n     {\n      \"name\": \"fields\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"Selector specifying which fields to include in a partial response.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     }\n    ],\n    \"responses\": {\n     \"200\": {\n      \"description\": \"Success\"\n     }\n    },\n    \"security\": [\n     {\n      \"bearer\": []\n     }\n    ]\n   }\n  },\n  \"/files/{fileId}/watch\": {\n   \"post\": {\n    \"operationId\": \"drive.files.watch\",\n    \"description\": \"Subscribes to changes to a file. For more information, see [Notifications for resource changes](https://developers.google.com/workspace/drive/api/guides/push).\",\n    \"parameters\": [\n     {\n      \"name\": \"includePermissionsForView\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"Specifies which additional view's permissions to include in the response. Only `published` is supported.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     },\n     {\n      \"name\": \"supportsTeamDrives\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"Deprecated: Use `supportsAllDrives` instead.\",\n      \"schema\": {\n       \"type\": \"boolean\"\n      }\n     },\n     {\n      \"name\": \"supportsAllDrives\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"Whether the requesting application supports both My Drives and shared drives.\",\n      \"schema\": {\n       \"type\": \"boolean\"\n      }\n     },\n     {\n      \"name\": \"acknowledgeAbuse\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"Whether the user is acknowledging the risk of downloading known malware or other abusive files. This is only applicable when the `alt` parameter is set to `media` and the user is the owner of the file or an organizer of the shared drive in which the file resides.\",\n      \"schema\": {\n       \"type\": \"boolean\"\n      }\n     },\n     {\n      \"name\": \"includeLabels\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"A comma-separated list of IDs of labels to include in the `labelInfo` part of the response.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     },\n     {\n      \"name\": \"fileId\",\n      \"in\": \"path\",\n      \"required\": true,\n      \"description\": \"The ID of the file.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     },\n     {\n      \"name\": \"fields\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"Selector specifying which fields to include in a partial response.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     }\n    ],\n    \"responses\": {\n     \"200\": {\n      \"description\": \"Success\",\n      \"content\": {\n       \"application/json\": {\n        \"schema\": {\n         \"$ref\": \"#/components/schemas/Channel\"\n        }\n       }\n      }\n     }\n    },\n    \"security\": [\n     {\n      \"bearer\": []\n     }\n    ],\n    \"requestBody\": {\n     \"required\": true,\n     \"content\": {\n      \"application/json\": {\n       \"schema\": {\n        \"$ref\": \"#/components/schemas/Channel\"\n       }\n      }\n     }\n    }\n   }\n  },\n  \"/files/{fileId}/modifyLabels\": {\n   \"post\": {\n    \"operationId\": \"drive.files.modifyLabels\",\n    \"description\": \"Modifies the set of labels applied to a file. For more information, see [Set a label field on a file](https://developers.google.com/workspace/drive/api/guides/set-label). Returns a list of the labels that were added or modified.\",\n    \"parameters\": [\n     {\n      \"name\": \"fileId\",\n      \"in\": \"path\",\n      \"required\": true,\n      \"description\": \"The ID of the file to which the labels belong.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     },\n     {\n      \"name\": \"fields\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"Selector specifying which fields to include in a partial response.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     }\n    ],\n    \"responses\": {\n     \"200\": {\n      \"description\": \"Success\",\n      \"content\": {\n       \"application/json\": {\n        \"schema\": {\n         \"$ref\": \"#/components/schemas/ModifyLabelsResponse\"\n        }\n       }\n      }\n     }\n    },\n    \"security\": [\n     {\n      \"bearer\": []\n     }\n    ],\n    \"requestBody\": {\n     \"required\": true,\n     \"content\": {\n      \"application/json\": {\n       \"schema\": {\n        \"$ref\": \"#/components/schemas/ModifyLabelsRequest\"\n       }\n      }\n     }\n    }\n   }\n  },\n  \"/files/{fileId}/copy\": {\n   \"post\": {\n    \"operationId\": \"drive.files.copy\",\n    \"description\": \"Creates a copy of a file and applies any requested updates with patch semantics. For more information, see [Create and manage files](https://developers.google.com/workspace/drive/api/guides/create-file).\",\n    \"parameters\": [\n     {\n      \"name\": \"ocrLanguage\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"A language hint for OCR processing during image import (ISO 639-1 code).\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     },\n     {\n      \"name\": \"includePermissionsForView\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"Specifies which additional view's permissions to include in the response. Only `published` is supported.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     },\n     {\n      \"name\": \"supportsTeamDrives\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"Deprecated: Use `supportsAllDrives` instead.\",\n      \"schema\": {\n       \"type\": \"boolean\"\n      }\n     },\n     {\n      \"name\": \"copyComments\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"Whether to copy the open (unresolved) comments associated with the file.\",\n      \"schema\": {\n       \"type\": \"boolean\"\n      }\n     },\n     {\n      \"name\": \"keepRevisionForever\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"Whether to set the `keepForever` field in the new head revision. This is only applicable to files with binary content in Google Drive. Only 200 revisions for the file can be kept forever. If the limit is reached, try deleting pinned revisions.\",\n      \"schema\": {\n       \"type\": \"boolean\"\n      }\n     },\n     {\n      \"name\": \"supportsAllDrives\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"Whether the requesting application supports both My Drives and shared drives.\",\n      \"schema\": {\n       \"type\": \"boolean\"\n      }\n     },\n     {\n      \"name\": \"includeLabels\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"A comma-separated list of IDs of labels to include in the `labelInfo` part of the response.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     },\n     {\n      \"name\": \"ignoreDefaultVisibility\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"Whether to ignore the domain's default visibility settings for the created file. Domain administrators can choose to make all uploaded files visible to the domain by default; this parameter bypasses that behavior for the request. Permissions are still inherited from parent folders.\",\n      \"schema\": {\n       \"type\": \"boolean\"\n      }\n     },\n     {\n      \"name\": \"fileId\",\n      \"in\": \"path\",\n      \"required\": true,\n      \"description\": \"The ID of the file.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     },\n     {\n      \"name\": \"enforceSingleParent\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"Deprecated: Copying files into multiple folders is no longer supported. Use shortcuts instead.\",\n      \"schema\": {\n       \"type\": \"boolean\"\n      }\n     },\n     {\n      \"name\": \"fields\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"Selector specifying which fields to include in a partial response.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     }\n    ],\n    \"responses\": {\n     \"200\": {\n      \"description\": \"Success\",\n      \"content\": {\n       \"application/json\": {\n        \"schema\": {\n         \"$ref\": \"#/components/schemas/File\"\n        }\n       }\n      }\n     }\n    },\n    \"security\": [\n     {\n      \"bearer\": []\n     }\n    ],\n    \"requestBody\": {\n     \"required\": true,\n     \"content\": {\n      \"application/json\": {\n       \"schema\": {\n        \"$ref\": \"#/components/schemas/File\"\n       }\n      }\n     }\n    }\n   }\n  },\n  \"/files/{fileId}/download\": {\n   \"post\": {\n    \"operationId\": \"drive.files.download\",\n    \"description\": \"Downloads the content of a file. For more information, see [Download and export files](https://developers.google.com/workspace/drive/api/guides/manage-downloads). Operations are valid for 24 hours from the time of creation.\",\n    \"parameters\": [\n     {\n      \"name\": \"revisionId\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"Optional. The revision ID of the file to download. This field can only be set when downloading blob files, Google Docs, and Google Sheets. Returns `INVALID_ARGUMENT` if downloading a specific revision on the file is unsupported.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     },\n     {\n      \"name\": \"mimeType\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"Optional. The MIME type the file should be downloaded as. This field can only be set when downloading Google Workspace documents. For a list of supported MIME types, see [Export MIME types for Google Workspace documents](/workspace/drive/api/guides/ref-export-formats). If not set, a Google Workspace document is downloaded with a default MIME type. The default MIME type might change in the future.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     },\n     {\n      \"name\": \"fileId\",\n      \"in\": \"path\",\n      \"required\": true,\n      \"description\": \"Required. The ID of the file to download.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     },\n     {\n      \"name\": \"fields\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"Selector specifying which fields to include in a partial response.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     }\n    ],\n    \"responses\": {\n     \"200\": {\n      \"description\": \"Success\",\n      \"content\": {\n       \"application/json\": {\n        \"schema\": {\n         \"$ref\": \"#/components/schemas/Operation\"\n        }\n       }\n      }\n     }\n    },\n    \"security\": [\n     {\n      \"bearer\": []\n     }\n    ]\n   }\n  },\n  \"/files/generateCseToken\": {\n   \"get\": {\n    \"operationId\": \"drive.files.generateCseToken\",\n    \"description\": \"Generates a CSE token which can be used to create or update CSE files.\",\n    \"parameters\": [\n     {\n      \"name\": \"fileId\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"The ID of the file for which the JWT should be generated. If not provided, an id will be generated.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     },\n     {\n      \"name\": \"parent\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"The ID of the expected parent of the file. Used when generating a JWT for a new CSE file. If specified, the parent will be fetched, and if the parent is a shared drive item, the shared drive's policy will be used to determine the KACLS that should be used. It is invalid to specify both file_id and parent in a single request.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     },\n     {\n      \"name\": \"fields\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"Selector specifying which fields to include in a partial response.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     }\n    ],\n    \"responses\": {\n     \"200\": {\n      \"description\": \"Success\",\n      \"content\": {\n       \"application/json\": {\n        \"schema\": {\n         \"$ref\": \"#/components/schemas/GenerateCseTokenResponse\"\n        }\n       }\n      }\n     }\n    },\n    \"security\": [\n     {\n      \"bearer\": []\n     }\n    ]\n   }\n  },\n  \"/files/{fileId}/comments/{commentId}/replies/{replyId}\": {\n   \"patch\": {\n    \"operationId\": \"drive.replies.update\",\n    \"description\": \"Updates a reply with patch semantics. For more information, see [Manage comments and replies](https://developers.google.com/workspace/drive/api/guides/manage-comments).\",\n    \"parameters\": [\n     {\n      \"name\": \"replyId\",\n      \"in\": \"path\",\n      \"required\": true,\n      \"description\": \"The ID of the reply.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     },\n     {\n      \"name\": \"fileId\",\n      \"in\": \"path\",\n      \"required\": true,\n      \"description\": \"The ID of the file.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     },\n     {\n      \"name\": \"commentId\",\n      \"in\": \"path\",\n      \"required\": true,\n      \"description\": \"The ID of the comment.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     },\n     {\n      \"name\": \"fields\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"Selector specifying which fields to include in a partial response.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     }\n    ],\n    \"responses\": {\n     \"200\": {\n      \"description\": \"Success\",\n      \"content\": {\n       \"application/json\": {\n        \"schema\": {\n         \"$ref\": \"#/components/schemas/Reply\"\n        }\n       }\n      }\n     }\n    },\n    \"security\": [\n     {\n      \"bearer\": []\n     }\n    ],\n    \"requestBody\": {\n     \"required\": true,\n     \"content\": {\n      \"application/json\": {\n       \"schema\": {\n        \"$ref\": \"#/components/schemas/Reply\"\n       }\n      }\n     }\n    }\n   },\n   \"get\": {\n    \"operationId\": \"drive.replies.get\",\n    \"description\": \"Gets a reply by ID. For more information, see [Manage comments and replies](https://developers.google.com/workspace/drive/api/guides/manage-comments).\",\n    \"parameters\": [\n     {\n      \"name\": \"replyId\",\n      \"in\": \"path\",\n      \"required\": true,\n      \"description\": \"The ID of the reply.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     },\n     {\n      \"name\": \"fileId\",\n      \"in\": \"path\",\n      \"required\": true,\n      \"description\": \"The ID of the file.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     },\n     {\n      \"name\": \"commentId\",\n      \"in\": \"path\",\n      \"required\": true,\n      \"description\": \"The ID of the comment.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     },\n     {\n      \"name\": \"includeDeleted\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"Whether to return deleted replies. Deleted replies don't include their original content.\",\n      \"schema\": {\n       \"type\": \"boolean\"\n      }\n     },\n     {\n      \"name\": \"fields\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"Selector specifying which fields to include in a partial response.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     }\n    ],\n    \"responses\": {\n     \"200\": {\n      \"description\": \"Success\",\n      \"content\": {\n       \"application/json\": {\n        \"schema\": {\n         \"$ref\": \"#/components/schemas/Reply\"\n        }\n       }\n      }\n     }\n    },\n    \"security\": [\n     {\n      \"bearer\": []\n     }\n    ]\n   },\n   \"delete\": {\n    \"operationId\": \"drive.replies.delete\",\n    \"description\": \"Deletes a reply. For more information, see [Manage comments and replies](https://developers.google.com/workspace/drive/api/guides/manage-comments).\",\n    \"parameters\": [\n     {\n      \"name\": \"commentId\",\n      \"in\": \"path\",\n      \"required\": true,\n      \"description\": \"The ID of the comment.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     },\n     {\n      \"name\": \"fileId\",\n      \"in\": \"path\",\n      \"required\": true,\n      \"description\": \"The ID of the file.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     },\n     {\n      \"name\": \"replyId\",\n      \"in\": \"path\",\n      \"required\": true,\n      \"description\": \"The ID of the reply.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     },\n     {\n      \"name\": \"fields\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"Selector specifying which fields to include in a partial response.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     }\n    ],\n    \"responses\": {\n     \"200\": {\n      \"description\": \"Success\"\n     }\n    },\n    \"security\": [\n     {\n      \"bearer\": []\n     }\n    ]\n   }\n  },\n  \"/files/{fileId}/comments/{commentId}/replies\": {\n   \"post\": {\n    \"operationId\": \"drive.replies.create\",\n    \"description\": \"Creates a reply to a comment. For more information, see [Manage comments and replies](https://developers.google.com/workspace/drive/api/guides/manage-comments).\",\n    \"parameters\": [\n     {\n      \"name\": \"commentId\",\n      \"in\": \"path\",\n      \"required\": true,\n      \"description\": \"The ID of the comment.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     },\n     {\n      \"name\": \"fileId\",\n      \"in\": \"path\",\n      \"required\": true,\n      \"description\": \"The ID of the file.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     },\n     {\n      \"name\": \"fields\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"Selector specifying which fields to include in a partial response.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     }\n    ],\n    \"responses\": {\n     \"200\": {\n      \"description\": \"Success\",\n      \"content\": {\n       \"application/json\": {\n        \"schema\": {\n         \"$ref\": \"#/components/schemas/Reply\"\n        }\n       }\n      }\n     }\n    },\n    \"security\": [\n     {\n      \"bearer\": []\n     }\n    ],\n    \"requestBody\": {\n     \"required\": true,\n     \"content\": {\n      \"application/json\": {\n       \"schema\": {\n        \"$ref\": \"#/components/schemas/Reply\"\n       }\n      }\n     }\n    }\n   },\n   \"get\": {\n    \"operationId\": \"drive.replies.list\",\n    \"description\": \"Lists a comment's replies. For more information, see [Manage comments and replies](https://developers.google.com/workspace/drive/api/guides/manage-comments).\",\n    \"parameters\": [\n     {\n      \"name\": \"commentId\",\n      \"in\": \"path\",\n      \"required\": true,\n      \"description\": \"The ID of the comment.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     },\n     {\n      \"name\": \"fileId\",\n      \"in\": \"path\",\n      \"required\": true,\n      \"description\": \"The ID of the file.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     },\n     {\n      \"name\": \"includeDeleted\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"Whether to include deleted replies. Deleted replies don't include their original content.\",\n      \"schema\": {\n       \"type\": \"boolean\"\n      }\n     },\n     {\n      \"name\": \"pageToken\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"The token for continuing a previous list request on the next page. This should be set to the value of `nextPageToken` from the previous response.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     },\n     {\n      \"name\": \"pageSize\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"The maximum number of replies to return. The service may return fewer than this value. If unspecified, at most 20 replies will be returned. The maximum value is 100; values above 100 will be coerced to 100.\",\n      \"schema\": {\n       \"type\": \"integer\",\n       \"format\": \"int32\"\n      }\n     },\n     {\n      \"name\": \"fields\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"Selector specifying which fields to include in a partial response.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     }\n    ],\n    \"responses\": {\n     \"200\": {\n      \"description\": \"Success\",\n      \"content\": {\n       \"application/json\": {\n        \"schema\": {\n         \"$ref\": \"#/components/schemas/ReplyList\"\n        }\n       }\n      }\n     }\n    },\n    \"security\": [\n     {\n      \"bearer\": []\n     }\n    ]\n   }\n  },\n  \"/files/{fileId}/revisions\": {\n   \"get\": {\n    \"operationId\": \"drive.revisions.list\",\n    \"description\": \"Lists a file's revisions. For more information, see [Manage file revisions](https://developers.google.com/workspace/drive/api/guides/manage-revisions). **Important:** The list of revisions returned by this method might be incomplete for files with a large revision history, including frequently edited Google Docs, Sheets, and Slides. Older revisions might be omitted from the response, meaning the first revision returned may not be the oldest existing revision. The revision history visible in the Workspace editor user interface might be more complete than the list returned by the API.\",\n    \"parameters\": [\n     {\n      \"name\": \"pageToken\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"The token for continuing a previous list request on the next page. This should be set to the value of 'nextPageToken' from the previous response.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     },\n     {\n      \"name\": \"fileId\",\n      \"in\": \"path\",\n      \"required\": true,\n      \"description\": \"The ID of the file.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     },\n     {\n      \"name\": \"pageSize\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"The maximum number of revisions to return. The service may return fewer than this value. If unspecified, at most 200 revisions will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.\",\n      \"schema\": {\n       \"type\": \"integer\",\n       \"format\": \"int32\"\n      }\n     },\n     {\n      \"name\": \"fields\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"Selector specifying which fields to include in a partial response.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     }\n    ],\n    \"responses\": {\n     \"200\": {\n      \"description\": \"Success\",\n      \"content\": {\n       \"application/json\": {\n        \"schema\": {\n         \"$ref\": \"#/components/schemas/RevisionList\"\n        }\n       }\n      }\n     }\n    },\n    \"security\": [\n     {\n      \"bearer\": []\n     }\n    ]\n   }\n  },\n  \"/files/{fileId}/revisions/{revisionId}\": {\n   \"delete\": {\n    \"operationId\": \"drive.revisions.delete\",\n    \"description\": \"Permanently deletes a file version. You can only delete revisions for files with binary content in Google Drive, like images or videos. Revisions for other files, like Google Docs or Sheets, and the last remaining file version can't be deleted. For more information, see [Manage file revisions](https://developers.google.com/drive/api/guides/manage-revisions).\",\n    \"parameters\": [\n     {\n      \"name\": \"revisionId\",\n      \"in\": \"path\",\n      \"required\": true,\n      \"description\": \"The ID of the revision.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     },\n     {\n      \"name\": \"fileId\",\n      \"in\": \"path\",\n      \"required\": true,\n      \"description\": \"The ID of the file.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     },\n     {\n      \"name\": \"fields\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"Selector specifying which fields to include in a partial response.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     }\n    ],\n    \"responses\": {\n     \"200\": {\n      \"description\": \"Success\"\n     }\n    },\n    \"security\": [\n     {\n      \"bearer\": []\n     }\n    ]\n   },\n   \"patch\": {\n    \"operationId\": \"drive.revisions.update\",\n    \"description\": \"Updates a revision with patch semantics. For more information, see [Manage file revisions](https://developers.google.com/workspace/drive/api/guides/manage-revisions).\",\n    \"parameters\": [\n     {\n      \"name\": \"fileId\",\n      \"in\": \"path\",\n      \"required\": true,\n      \"description\": \"The ID of the file.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     },\n     {\n      \"name\": \"revisionId\",\n      \"in\": \"path\",\n      \"required\": true,\n      \"description\": \"The ID of the revision.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     },\n     {\n      \"name\": \"fields\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"Selector specifying which fields to include in a partial response.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     }\n    ],\n    \"responses\": {\n     \"200\": {\n      \"description\": \"Success\",\n      \"content\": {\n       \"application/json\": {\n        \"schema\": {\n         \"$ref\": \"#/components/schemas/Revision\"\n        }\n       }\n      }\n     }\n    },\n    \"security\": [\n     {\n      \"bearer\": []\n     }\n    ],\n    \"requestBody\": {\n     \"required\": true,\n     \"content\": {\n      \"application/json\": {\n       \"schema\": {\n        \"$ref\": \"#/components/schemas/Revision\"\n       }\n      }\n     }\n    }\n   },\n   \"get\": {\n    \"operationId\": \"drive.revisions.get\",\n    \"description\": \"Gets a revision's metadata or content by ID. For more information, see [Manage file revisions](https://developers.google.com/workspace/drive/api/guides/manage-revisions).\",\n    \"parameters\": [\n     {\n      \"name\": \"revisionId\",\n      \"in\": \"path\",\n      \"required\": true,\n      \"description\": \"The ID of the revision.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     },\n     {\n      \"name\": \"acknowledgeAbuse\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"Whether the user is acknowledging the risk of downloading known malware or other abusive files. This is only applicable when the `alt` parameter is set to `media` and the user is the owner of the file or an organizer of the shared drive in which the file resides.\",\n      \"schema\": {\n       \"type\": \"boolean\"\n      }\n     },\n     {\n      \"name\": \"fileId\",\n      \"in\": \"path\",\n      \"required\": true,\n      \"description\": \"The ID of the file.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     },\n     {\n      \"name\": \"fields\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"Selector specifying which fields to include in a partial response.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     }\n    ],\n    \"responses\": {\n     \"200\": {\n      \"description\": \"Success\",\n      \"content\": {\n       \"application/json\": {\n        \"schema\": {\n         \"$ref\": \"#/components/schemas/Revision\"\n        }\n       }\n      }\n     }\n    },\n    \"security\": [\n     {\n      \"bearer\": []\n     }\n    ]\n   }\n  },\n  \"/files/{fileId}/approvals/{approvalId}:reassign\": {\n   \"post\": {\n    \"operationId\": \"drive.approvals.reassign\",\n    \"description\": \"Reassigns the reviewers on an approval. For more information, see [Manage approvals](https://developers.google.com/workspace/drive/api/guides/approvals). Adds or replaces reviewers in the ReviewerResponse of the approval. This can be called by any user with the `writer` permission on the file while the approval Status is `IN_PROGRESS` and the Response for the reviewer being reassigned is `NO_RESPONSE`. A user with the `reader` permission can only reassign an approval that's assigned to themselves. Removing a reviewer isn't allowed.\",\n    \"parameters\": [\n     {\n      \"name\": \"fileId\",\n      \"in\": \"path\",\n      \"required\": true,\n      \"description\": \"Required. The ID of the file that the approval is on.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     },\n     {\n      \"name\": \"approvalId\",\n      \"in\": \"path\",\n      \"required\": true,\n      \"description\": \"Required. The ID of the approval to reassign.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     },\n     {\n      \"name\": \"fields\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"Selector specifying which fields to include in a partial response.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     }\n    ],\n    \"responses\": {\n     \"200\": {\n      \"description\": \"Success\",\n      \"content\": {\n       \"application/json\": {\n        \"schema\": {\n         \"$ref\": \"#/components/schemas/Approval\"\n        }\n       }\n      }\n     }\n    },\n    \"security\": [\n     {\n      \"bearer\": []\n     }\n    ],\n    \"requestBody\": {\n     \"required\": true,\n     \"content\": {\n      \"application/json\": {\n       \"schema\": {\n        \"$ref\": \"#/components/schemas/ReassignApprovalRequest\"\n       }\n      }\n     }\n    }\n   }\n  },\n  \"/files/{fileId}/approvals\": {\n   \"get\": {\n    \"operationId\": \"drive.approvals.list\",\n    \"description\": \"Lists the approvals on a file. For more information, see [Manage approvals](https://developers.google.com/workspace/drive/api/guides/approvals). By default, this method returns a minimal response that may not include the items array. To retrieve approval details, you must explicitly specify the fields you want using the `fields` query parameter. To return the exact fields you need, see [Return specific fields](https://developers.google.com/workspace/drive/api/guides/fields-parameter).\",\n    \"parameters\": [\n     {\n      \"name\": \"pageSize\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"The maximum number of approvals to return. When not set, at most 100 approvals are returned.\",\n      \"schema\": {\n       \"type\": \"integer\",\n       \"format\": \"int32\"\n      }\n     },\n     {\n      \"name\": \"fileId\",\n      \"in\": \"path\",\n      \"required\": true,\n      \"description\": \"Required. The ID of the file that the approval is on.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     },\n     {\n      \"name\": \"pageToken\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"The token for continuing a previous list request on the next page. This should be set to the value of `nextPageToken` from a previous response.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     },\n     {\n      \"name\": \"fields\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"Selector specifying which fields to include in a partial response.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     }\n    ],\n    \"responses\": {\n     \"200\": {\n      \"description\": \"Success\",\n      \"content\": {\n       \"application/json\": {\n        \"schema\": {\n         \"$ref\": \"#/components/schemas/ApprovalList\"\n        }\n       }\n      }\n     }\n    },\n    \"security\": [\n     {\n      \"bearer\": []\n     }\n    ]\n   }\n  },\n  \"/files/{fileId}/approvals/{approvalId}:decline\": {\n   \"post\": {\n    \"operationId\": \"drive.approvals.decline\",\n    \"description\": \"Declines an approval. For more information, see [Manage approvals](https://developers.google.com/workspace/drive/api/guides/approvals). This is used to update the ReviewerResponse of the requesting user with a Response of `DECLINED`. This also completes the approval and sets the approval Status to `DECLINED`.\",\n    \"parameters\": [\n     {\n      \"name\": \"approvalId\",\n      \"in\": \"path\",\n      \"required\": true,\n      \"description\": \"Required. The ID of the approval to decline.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     },\n     {\n      \"name\": \"fileId\",\n      \"in\": \"path\",\n      \"required\": true,\n      \"description\": \"Required. The ID of the file that the approval is on.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     },\n     {\n      \"name\": \"fields\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"Selector specifying which fields to include in a partial response.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     }\n    ],\n    \"responses\": {\n     \"200\": {\n      \"description\": \"Success\",\n      \"content\": {\n       \"application/json\": {\n        \"schema\": {\n         \"$ref\": \"#/components/schemas/Approval\"\n        }\n       }\n      }\n     }\n    },\n    \"security\": [\n     {\n      \"bearer\": []\n     }\n    ],\n    \"requestBody\": {\n     \"required\": true,\n     \"content\": {\n      \"application/json\": {\n       \"schema\": {\n        \"$ref\": \"#/components/schemas/DeclineApprovalRequest\"\n       }\n      }\n     }\n    }\n   }\n  },\n  \"/files/{fileId}/approvals/{approvalId}:cancel\": {\n   \"post\": {\n    \"operationId\": \"drive.approvals.cancel\",\n    \"description\": \"Cancels an approval. For more information, see [Manage approvals](https://developers.google.com/workspace/drive/api/guides/approvals). Updates the approval Status to `CANCELLED`. This can be called by any user with the `writer` permission on the file while the approval Status is `IN_PROGRESS`.\",\n    \"parameters\": [\n     {\n      \"name\": \"approvalId\",\n      \"in\": \"path\",\n      \"required\": true,\n      \"description\": \"Required. The ID of the approval to cancel.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     },\n     {\n      \"name\": \"fileId\",\n      \"in\": \"path\",\n      \"required\": true,\n      \"description\": \"Required. The ID of the file that the approval is on.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     },\n     {\n      \"name\": \"fields\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"Selector specifying which fields to include in a partial response.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     }\n    ],\n    \"responses\": {\n     \"200\": {\n      \"description\": \"Success\",\n      \"content\": {\n       \"application/json\": {\n        \"schema\": {\n         \"$ref\": \"#/components/schemas/Approval\"\n        }\n       }\n      }\n     }\n    },\n    \"security\": [\n     {\n      \"bearer\": []\n     }\n    ],\n    \"requestBody\": {\n     \"required\": true,\n     \"content\": {\n      \"application/json\": {\n       \"schema\": {\n        \"$ref\": \"#/components/schemas/CancelApprovalRequest\"\n       }\n      }\n     }\n    }\n   }\n  },\n  \"/files/{fileId}/approvals:start\": {\n   \"post\": {\n    \"operationId\": \"drive.approvals.start\",\n    \"description\": \"Starts an approval on a file. For more information, see [Manage approvals](https://developers.google.com/workspace/drive/api/guides/approvals).\",\n    \"parameters\": [\n     {\n      \"name\": \"fileId\",\n      \"in\": \"path\",\n      \"required\": true,\n      \"description\": \"Required. The ID of the file that the approval is created on.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     },\n     {\n      \"name\": \"fields\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"Selector specifying which fields to include in a partial response.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     }\n    ],\n    \"responses\": {\n     \"200\": {\n      \"description\": \"Success\",\n      \"content\": {\n       \"application/json\": {\n        \"schema\": {\n         \"$ref\": \"#/components/schemas/Approval\"\n        }\n       }\n      }\n     }\n    },\n    \"security\": [\n     {\n      \"bearer\": []\n     }\n    ],\n    \"requestBody\": {\n     \"required\": true,\n     \"content\": {\n      \"application/json\": {\n       \"schema\": {\n        \"$ref\": \"#/components/schemas/StartApprovalRequest\"\n       }\n      }\n     }\n    }\n   }\n  },\n  \"/files/{fileId}/approvals/{approvalId}\": {\n   \"get\": {\n    \"operationId\": \"drive.approvals.get\",\n    \"description\": \"Gets an approval by ID. For more information, see [Manage approvals](https://developers.google.com/workspace/drive/api/guides/approvals).\",\n    \"parameters\": [\n     {\n      \"name\": \"approvalId\",\n      \"in\": \"path\",\n      \"required\": true,\n      \"description\": \"Required. The ID of the approval.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     },\n     {\n      \"name\": \"fileId\",\n      \"in\": \"path\",\n      \"required\": true,\n      \"description\": \"Required. The ID of the file that the approval is on.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     },\n     {\n      \"name\": \"fields\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"Selector specifying which fields to include in a partial response.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     }\n    ],\n    \"responses\": {\n     \"200\": {\n      \"description\": \"Success\",\n      \"content\": {\n       \"application/json\": {\n        \"schema\": {\n         \"$ref\": \"#/components/schemas/Approval\"\n        }\n       }\n      }\n     }\n    },\n    \"security\": [\n     {\n      \"bearer\": []\n     }\n    ]\n   }\n  },\n  \"/files/{fileId}/approvals/{approvalId}:approve\": {\n   \"post\": {\n    \"operationId\": \"drive.approvals.approve\",\n    \"description\": \"Approves an approval. For more information, see [Manage approvals](https://developers.google.com/workspace/drive/api/guides/approvals). This is used to update the ReviewerResponse of the requesting user with a Response of `APPROVED`. If this is the last required reviewer response, this also completes the approval and sets the approval Status to `APPROVED`.\",\n    \"parameters\": [\n     {\n      \"name\": \"approvalId\",\n      \"in\": \"path\",\n      \"required\": true,\n      \"description\": \"Required. The ID of the approval to approve.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     },\n     {\n      \"name\": \"fileId\",\n      \"in\": \"path\",\n      \"required\": true,\n      \"description\": \"Required. The ID of the file that the approval is on.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     },\n     {\n      \"name\": \"fields\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"Selector specifying which fields to include in a partial response.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     }\n    ],\n    \"responses\": {\n     \"200\": {\n      \"description\": \"Success\",\n      \"content\": {\n       \"application/json\": {\n        \"schema\": {\n         \"$ref\": \"#/components/schemas/Approval\"\n        }\n       }\n      }\n     }\n    },\n    \"security\": [\n     {\n      \"bearer\": []\n     }\n    ],\n    \"requestBody\": {\n     \"required\": true,\n     \"content\": {\n      \"application/json\": {\n       \"schema\": {\n        \"$ref\": \"#/components/schemas/ApproveApprovalRequest\"\n       }\n      }\n     }\n    }\n   }\n  },\n  \"/files/{fileId}/approvals/{approvalId}:comment\": {\n   \"post\": {\n    \"operationId\": \"drive.approvals.comment\",\n    \"description\": \"Comments on an approval. For more information, see [Manage approvals](https://developers.google.com/workspace/drive/api/guides/approvals). This sends a notification to both the initiator and the reviewers. Additionally, a message is also added to the approval activity log.\",\n    \"parameters\": [\n     {\n      \"name\": \"fileId\",\n      \"in\": \"path\",\n      \"required\": true,\n      \"description\": \"Required. The ID of the file that the approval is on.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     },\n     {\n      \"name\": \"approvalId\",\n      \"in\": \"path\",\n      \"required\": true,\n      \"description\": \"Required. The ID of the approval to comment on.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     },\n     {\n      \"name\": \"fields\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"Selector specifying which fields to include in a partial response.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     }\n    ],\n    \"responses\": {\n     \"200\": {\n      \"description\": \"Success\",\n      \"content\": {\n       \"application/json\": {\n        \"schema\": {\n         \"$ref\": \"#/components/schemas/Approval\"\n        }\n       }\n      }\n     }\n    },\n    \"security\": [\n     {\n      \"bearer\": []\n     }\n    ],\n    \"requestBody\": {\n     \"required\": true,\n     \"content\": {\n      \"application/json\": {\n       \"schema\": {\n        \"$ref\": \"#/components/schemas/CommentApprovalRequest\"\n       }\n      }\n     }\n    }\n   }\n  },\n  \"/files/{fileId}/comments\": {\n   \"get\": {\n    \"operationId\": \"drive.comments.list\",\n    \"description\": \"Lists a file's comments. For more information, see [Manage comments and replies](https://developers.google.com/workspace/drive/api/guides/manage-comments). Required: The `fields` parameter must be set. To return the exact fields you need, see [Return specific fields](https://developers.google.com/workspace/drive/api/guides/fields-parameter).\",\n    \"parameters\": [\n     {\n      \"name\": \"pageToken\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"The token for continuing a previous list request on the next page. This should be set to the value of 'nextPageToken' from the previous response.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     },\n     {\n      \"name\": \"startModifiedTime\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"The minimum value of 'modifiedTime' for the result comments (RFC 3339 date-time).\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     },\n     {\n      \"name\": \"fileId\",\n      \"in\": \"path\",\n      \"required\": true,\n      \"description\": \"The ID of the file.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     },\n     {\n      \"name\": \"pageSize\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"The maximum number of comments to return. The service may return fewer than this value. If unspecified, at most 20 comments will be returned. The maximum value is 100; values above 100 will be coerced to 100.\",\n      \"schema\": {\n       \"type\": \"integer\",\n       \"format\": \"int32\"\n      }\n     },\n     {\n      \"name\": \"includeDeleted\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"Whether to include deleted comments. Deleted comments will not include their original content.\",\n      \"schema\": {\n       \"type\": \"boolean\"\n      }\n     },\n     {\n      \"name\": \"fields\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"Selector specifying which fields to include in a partial response.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     }\n    ],\n    \"responses\": {\n     \"200\": {\n      \"description\": \"Success\",\n      \"content\": {\n       \"application/json\": {\n        \"schema\": {\n         \"$ref\": \"#/components/schemas/CommentList\"\n        }\n       }\n      }\n     }\n    },\n    \"security\": [\n     {\n      \"bearer\": []\n     }\n    ]\n   },\n   \"post\": {\n    \"operationId\": \"drive.comments.create\",\n    \"description\": \"Creates a comment on a file. For more information, see [Manage comments and replies](https://developers.google.com/workspace/drive/api/guides/manage-comments). Required: The `fields` parameter must be set. To return the exact fields you need, see [Return specific fields](https://developers.google.com/workspace/drive/api/guides/fields-parameter).\",\n    \"parameters\": [\n     {\n      \"name\": \"fileId\",\n      \"in\": \"path\",\n      \"required\": true,\n      \"description\": \"The ID of the file.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     },\n     {\n      \"name\": \"fields\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"Selector specifying which fields to include in a partial response.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     }\n    ],\n    \"responses\": {\n     \"200\": {\n      \"description\": \"Success\",\n      \"content\": {\n       \"application/json\": {\n        \"schema\": {\n         \"$ref\": \"#/components/schemas/Comment\"\n        }\n       }\n      }\n     }\n    },\n    \"security\": [\n     {\n      \"bearer\": []\n     }\n    ],\n    \"requestBody\": {\n     \"required\": true,\n     \"content\": {\n      \"application/json\": {\n       \"schema\": {\n        \"$ref\": \"#/components/schemas/Comment\"\n       }\n      }\n     }\n    }\n   }\n  },\n  \"/files/{fileId}/comments/{commentId}\": {\n   \"patch\": {\n    \"operationId\": \"drive.comments.update\",\n    \"description\": \"Updates a comment with patch semantics. For more information, see [Manage comments and replies](https://developers.google.com/workspace/drive/api/guides/manage-comments). Required: The `fields` parameter must be set. To return the exact fields you need, see [Return specific fields](https://developers.google.com/workspace/drive/api/guides/fields-parameter).\",\n    \"parameters\": [\n     {\n      \"name\": \"fileId\",\n      \"in\": \"path\",\n      \"required\": true,\n      \"description\": \"The ID of the file.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     },\n     {\n      \"name\": \"commentId\",\n      \"in\": \"path\",\n      \"required\": true,\n      \"description\": \"The ID of the comment.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     },\n     {\n      \"name\": \"fields\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"Selector specifying which fields to include in a partial response.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     }\n    ],\n    \"responses\": {\n     \"200\": {\n      \"description\": \"Success\",\n      \"content\": {\n       \"application/json\": {\n        \"schema\": {\n         \"$ref\": \"#/components/schemas/Comment\"\n        }\n       }\n      }\n     }\n    },\n    \"security\": [\n     {\n      \"bearer\": []\n     }\n    ],\n    \"requestBody\": {\n     \"required\": true,\n     \"content\": {\n      \"application/json\": {\n       \"schema\": {\n        \"$ref\": \"#/components/schemas/Comment\"\n       }\n      }\n     }\n    }\n   },\n   \"get\": {\n    \"operationId\": \"drive.comments.get\",\n    \"description\": \"Gets a comment by ID. For more information, see [Manage comments and replies](https://developers.google.com/workspace/drive/api/guides/manage-comments). Required: The `fields` parameter must be set. To return the exact fields you need, see [Return specific fields](https://developers.google.com/workspace/drive/api/guides/fields-parameter).\",\n    \"parameters\": [\n     {\n      \"name\": \"includeDeleted\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"Whether to return deleted comments. Deleted comments will not include their original content.\",\n      \"schema\": {\n       \"type\": \"boolean\"\n      }\n     },\n     {\n      \"name\": \"fileId\",\n      \"in\": \"path\",\n      \"required\": true,\n      \"description\": \"The ID of the file.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     },\n     {\n      \"name\": \"commentId\",\n      \"in\": \"path\",\n      \"required\": true,\n      \"description\": \"The ID of the comment.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     },\n     {\n      \"name\": \"fields\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"Selector specifying which fields to include in a partial response.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     }\n    ],\n    \"responses\": {\n     \"200\": {\n      \"description\": \"Success\",\n      \"content\": {\n       \"application/json\": {\n        \"schema\": {\n         \"$ref\": \"#/components/schemas/Comment\"\n        }\n       }\n      }\n     }\n    },\n    \"security\": [\n     {\n      \"bearer\": []\n     }\n    ]\n   },\n   \"delete\": {\n    \"operationId\": \"drive.comments.delete\",\n    \"description\": \"Deletes a comment. For more information, see [Manage comments and replies](https://developers.google.com/workspace/drive/api/guides/manage-comments).\",\n    \"parameters\": [\n     {\n      \"name\": \"commentId\",\n      \"in\": \"path\",\n      \"required\": true,\n      \"description\": \"The ID of the comment.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     },\n     {\n      \"name\": \"fileId\",\n      \"in\": \"path\",\n      \"required\": true,\n      \"description\": \"The ID of the file.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     },\n     {\n      \"name\": \"fields\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"Selector specifying which fields to include in a partial response.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     }\n    ],\n    \"responses\": {\n     \"200\": {\n      \"description\": \"Success\"\n     }\n    },\n    \"security\": [\n     {\n      \"bearer\": []\n     }\n    ]\n   }\n  },\n  \"/files/{fileId}/accessproposals\": {\n   \"get\": {\n    \"operationId\": \"drive.accessproposals.list\",\n    \"description\": \"List the access proposals on a file. For more information, see [Manage pending access proposals](https://developers.google.com/workspace/drive/api/guides/pending-access). Note: Only approvers are able to list access proposals on a file. If the user isn't an approver, a 403 error is returned.\",\n    \"parameters\": [\n     {\n      \"name\": \"fileId\",\n      \"in\": \"path\",\n      \"required\": true,\n      \"description\": \"Required. The ID of the item the request is on.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     },\n     {\n      \"name\": \"pageSize\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"Optional. The number of results per page.\",\n      \"schema\": {\n       \"type\": \"integer\",\n       \"format\": \"int32\"\n      }\n     },\n     {\n      \"name\": \"pageToken\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"Optional. The continuation token on the list of access requests.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     },\n     {\n      \"name\": \"fields\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"Selector specifying which fields to include in a partial response.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     }\n    ],\n    \"responses\": {\n     \"200\": {\n      \"description\": \"Success\",\n      \"content\": {\n       \"application/json\": {\n        \"schema\": {\n         \"$ref\": \"#/components/schemas/ListAccessProposalsResponse\"\n        }\n       }\n      }\n     }\n    },\n    \"security\": [\n     {\n      \"bearer\": []\n     }\n    ]\n   }\n  },\n  \"/files/{fileId}/accessproposals/{proposalId}\": {\n   \"get\": {\n    \"operationId\": \"drive.accessproposals.get\",\n    \"description\": \"Retrieves an access proposal by ID. For more information, see [Manage pending access proposals](https://developers.google.com/workspace/drive/api/guides/pending-access).\",\n    \"parameters\": [\n     {\n      \"name\": \"proposalId\",\n      \"in\": \"path\",\n      \"required\": true,\n      \"description\": \"Required. The ID of the access proposal to resolve.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     },\n     {\n      \"name\": \"fileId\",\n      \"in\": \"path\",\n      \"required\": true,\n      \"description\": \"Required. The ID of the item the request is on.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     },\n     {\n      \"name\": \"fields\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"Selector specifying which fields to include in a partial response.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     }\n    ],\n    \"responses\": {\n     \"200\": {\n      \"description\": \"Success\",\n      \"content\": {\n       \"application/json\": {\n        \"schema\": {\n         \"$ref\": \"#/components/schemas/AccessProposal\"\n        }\n       }\n      }\n     }\n    },\n    \"security\": [\n     {\n      \"bearer\": []\n     }\n    ]\n   }\n  },\n  \"/files/{fileId}/accessproposals/{proposalId}:resolve\": {\n   \"post\": {\n    \"operationId\": \"drive.accessproposals.resolve\",\n    \"description\": \"Approves or denies an access proposal. For more information, see [Manage pending access proposals](https://developers.google.com/workspace/drive/api/guides/pending-access).\",\n    \"parameters\": [\n     {\n      \"name\": \"proposalId\",\n      \"in\": \"path\",\n      \"required\": true,\n      \"description\": \"Required. The ID of the access proposal to resolve.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     },\n     {\n      \"name\": \"fileId\",\n      \"in\": \"path\",\n      \"required\": true,\n      \"description\": \"Required. The ID of the item the request is on.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     },\n     {\n      \"name\": \"fields\",\n      \"in\": \"query\",\n      \"required\": false,\n      \"description\": \"Selector specifying which fields to include in a partial response.\",\n      \"schema\": {\n       \"type\": \"string\"\n      }\n     }\n    ],\n    \"responses\": {\n     \"200\": {\n      \"description\": \"Success\"\n     }\n    },\n    \"security\": [\n     {\n      \"bearer\": []\n     }\n    ],\n    \"requestBody\": {\n     \"required\": true,\n     \"content\": {\n      \"application/json\": {\n       \"schema\": {\n        \"$ref\": \"#/components/schemas/ResolveAccessProposalRequest\"\n       }\n      }\n     }\n    }\n   }\n  }\n },\n \"components\": {\n  \"schemas\": {\n   \"Revision\": {\n    \"description\": \"The metadata for a revision to a file. Some resource methods (such as `revisions.update`) require a `revisionId`. Use the `revisions.list` method to retrieve the ID for a revision.\",\n    \"type\": \"object\",\n    \"properties\": {\n     \"id\": {\n      \"description\": \"Output only. The ID of the revision.\",\n      \"type\": \"string\"\n     },\n     \"mimeType\": {\n      \"description\": \"Output only. The MIME type of the revision.\",\n      \"type\": \"string\"\n     },\n     \"modifiedTime\": {\n      \"description\": \"The last time the revision was modified (RFC 3339 date-time).\",\n      \"type\": \"string\",\n      \"format\": \"date-time\"\n     },\n     \"size\": {\n      \"description\": \"Output only. The size of the revision's content in bytes. This is only applicable to files with binary content in Drive.\",\n      \"type\": \"string\",\n      \"format\": \"int64\"\n     },\n     \"keepForever\": {\n      \"description\": \"Whether to keep this revision forever, even if it is no longer the head revision. If not set, the revision will be automatically purged 30 days after newer content is uploaded. This can be set on a maximum of 200 revisions for a file. This field is only applicable to files with binary content in Drive.\",\n      \"type\": \"boolean\"\n     },\n     \"kind\": {\n      \"description\": \"Output only. Identifies what kind of resource this is. Value: the fixed string `\\\"drive#revision\\\"`.\",\n      \"type\": \"string\"\n     },\n     \"publishAuto\": {\n      \"description\": \"Whether subsequent revisions will be automatically republished. This is only applicable to Docs Editors files.\",\n      \"type\": \"boolean\"\n     },\n     \"originalFilename\": {\n      \"description\": \"Output only. The original filename used to create this revision. This is only applicable to files with binary content in Drive.\",\n      \"type\": \"string\"\n     },\n     \"exportLinks\": {\n      \"description\": \"Output only. Links for exporting Docs Editors files to specific formats.\",\n      \"type\": \"object\",\n      \"additionalProperties\": {\n       \"type\": \"string\"\n      }\n     },\n     \"publishedOutsideDomain\": {\n      \"description\": \"Whether this revision is published outside the domain. This is only applicable to Docs Editors files.\",\n      \"type\": \"boolean\"\n     },\n     \"md5Checksum\": {\n      \"description\": \"Output only. The MD5 checksum of the revision's content. This is only applicable to files with binary content in Drive.\",\n      \"type\": \"string\"\n     },\n     \"publishedLink\": {\n      \"description\": \"Output only. A link to the published revision. This is only populated for Docs Editors files.\",\n      \"type\": \"string\"\n     },\n     \"published\": {\n      \"description\": \"Whether this revision is published. This is only applicable to Docs Editors files.\",\n      \"type\": \"boolean\"\n     },\n     \"lastModifyingUser\": {\n      \"$ref\": \"#/components/schemas/User\"\n     }\n    }\n   },\n   \"LabelFieldModification\": {\n    \"description\": \"A modification to a label's field.\",\n    \"type\": \"object\",\n    \"properties\": {\n     \"setSelectionValues\": {\n      \"description\": \"Replaces a `selection` field with these new values.\",\n      \"type\": \"array\",\n      \"items\": {\n       \"type\": \"string\"\n      }\n     },\n     \"setUserValues\": {\n      \"description\": \"Replaces a `user` field with these new values. The values must be a valid email addresses.\",\n      \"type\": \"array\",\n      \"items\": {\n       \"type\": \"string\"\n      }\n     },\n     \"setIntegerValues\": {\n      \"description\": \"Replaces the value of an `integer` field with these new values.\",\n      \"type\": \"array\",\n      \"items\": {\n       \"type\": \"string\",\n       \"format\": \"int64\"\n      }\n     },\n     \"setTextValues\": {\n      \"description\": \"Sets the value of a `text` field.\",\n      \"type\": \"array\",\n      \"items\": {\n       \"type\": \"string\"\n      }\n     },\n     \"fieldId\": {\n      \"description\": \"The ID of the field to be modified.\",\n      \"type\": \"string\"\n     },\n     \"kind\": {\n      \"description\": \"This is always `\\\"drive#labelFieldModification\\\"`.\",\n      \"type\": \"string\"\n     },\n     \"setDateValues\": {\n      \"description\": \"Replaces the value of a dateString Field with these new values. The string must be in the RFC 3339 full-date format: YYYY-MM-DD.\",\n      \"type\": \"array\",\n      \"items\": {\n       \"type\": \"string\",\n       \"format\": \"date\"\n      }\n     },\n     \"unsetValues\": {\n      \"description\": \"Unsets the values for this field.\",\n      \"type\": \"boolean\"\n     }\n    }\n   },\n   \"Label\": {\n    \"description\": \"Representation of label and label fields.\",\n    \"type\": \"object\",\n    \"properties\": {\n     \"id\": {\n      \"description\": \"The ID of the label.\",\n      \"type\": \"string\"\n     },\n     \"kind\": {\n      \"description\": \"This is always drive#label\",\n      \"type\": \"string\"\n     },\n     \"fields\": {\n      \"description\": \"A map of the fields on the label, keyed by the field's ID.\",\n      \"type\": \"object\",\n      \"additionalProperties\": {\n       \"$ref\": \"#/components/schemas/LabelField\"\n      }\n     },\n     \"revisionId\": {\n      \"description\": \"The revision ID of the label.\",\n      \"type\": \"string\"\n     }\n    }\n   },\n   \"ChangeList\": {\n    \"description\": \"A list of changes for a user.\",\n    \"type\": \"object\",\n    \"properties\": {\n     \"changes\": {\n      \"description\": \"The list of changes. If nextPageToken is populated, then this list may be incomplete and an additional page of results should be fetched.\",\n      \"type\": \"array\",\n      \"items\": {\n       \"$ref\": \"#/components/schemas/Change\"\n      }\n     },\n     \"newStartPageToken\": {\n      \"description\": \"The starting page token for future changes. This will be present only if the end of the current changes list has been reached. The page token doesn't expire.\",\n      \"type\": \"string\"\n     },\n     \"kind\": {\n      \"description\": \"Identifies what kind of resource this is. Value: the fixed string `\\\"drive#changeList\\\"`.\",\n      \"type\": \"string\"\n     },\n     \"nextPageToken\": {\n      \"description\": \"The page token for the next page of changes. This will be absent if the end of the changes list has been reached. The page token doesn't expire.\",\n      \"type\": \"string\"\n     }\n    }\n   },\n   \"ReplyList\": {\n    \"description\": \"A list of replies to a comment on a file.\",\n    \"type\": \"object\",\n    \"properties\": {\n     \"kind\": {\n      \"description\": \"Identifies what kind of resource this is. Value: the fixed string `\\\"drive#replyList\\\"`.\",\n      \"type\": \"string\"\n     },\n     \"replies\": {\n      \"description\": \"The list of replies. If `nextPageToken` is populated, then this list may be incomplete and an additional page of results should be fetched.\",\n      \"type\": \"array\",\n      \"items\": {\n       \"$ref\": \"#/components/schemas/Reply\"\n      }\n     },\n     \"nextPageToken\": {\n      \"description\": \"The page token for the next page of replies. This will be absent if the end of the replies list has been reached. If the token is rejected for any reason, it should be discarded, and pagination should be restarted from the first page of results. The page token is typically valid for several hours. However, if new items are added or removed, your expected results might differ.\",\n      \"type\": \"string\"\n     }\n    }\n   },\n   \"ClientEncryptionDetails\": {\n    \"description\": \"Details about the client-side encryption applied to the file.\",\n    \"type\": \"object\",\n    \"properties\": {\n     \"encryptionState\": {\n      \"description\": \"The encryption state of the file. The values expected here are: - encrypted - unencrypted \",\n      \"type\": \"string\"\n     },\n     \"decryptionMetadata\": {\n      \"$ref\": \"#/components/schemas/DecryptionMetadata\"\n     }\n    }\n   },\n   \"GenerateCseTokenResponse\": {\n    \"description\": \"JWT and associated metadata used to generate CSE files.\",\n    \"type\": \"object\",\n    \"properties\": {\n     \"fileId\": {\n      \"description\": \"The fileId for which the JWT was generated.\",\n      \"type\": \"string\"\n     },\n     \"jwt\": {\n      \"description\": \"The signed JSON Web Token (JWT) for the file.\",\n      \"type\": \"string\"\n     },\n     \"kind\": {\n      \"description\": \"Output only. Identifies what kind of resource this is. Value: the fixed string `\\\"drive#generateCseTokenResponse\\\"`.\",\n      \"type\": \"string\"\n     },\n     \"currentKaclsId\": {\n      \"description\": \"The current Key ACL Service (KACLS) ID associated with the JWT.\",\n      \"type\": \"string\",\n      \"format\": \"int64\"\n     },\n     \"currentKaclsName\": {\n      \"description\": \"Name of the KACLs that the returned KACLs ID points to.\",\n      \"type\": \"string\"\n     }\n    }\n   },\n   \"ReplaceReviewer\": {\n    \"description\": \"Representation of a reviewer replacement.\",\n    \"type\": \"object\",\n    \"properties\": {\n     \"removedReviewerEmail\": {\n      \"description\": \"Required. The email of the reviewer to remove.\",\n      \"type\": \"string\"\n     },\n     \"addedReviewerEmail\": {\n      \"description\": \"Required. The email of the reviewer to add.\",\n      \"type\": \"string\"\n     }\n    }\n   },\n   \"About\": {\n    \"description\": \"Information about the user, the user's Drive, and system capabilities.\",\n    \"type\": \"object\",\n    \"properties\": {\n     \"user\": {\n      \"$ref\": \"#/components/schemas/User\"\n     },\n     \"canCreateDrives\": {\n      \"description\": \"Whether the user can create shared drives.\",\n      \"type\": \"boolean\"\n     },\n     \"appInstalled\": {\n      \"description\": \"Whether the user has installed the requesting app.\",\n      \"type\": \"boolean\"\n     },\n     \"storageQuota\": {\n      \"description\": \"The user's storage quota limits and usage. For users that are part of an organization with pooled storage, information about the limit and usage across all services is for the organization, rather than the individual user. All fields are measured in bytes.\",\n      \"type\": \"object\",\n      \"properties\": {\n       \"usageInDrive\": {\n        \"description\": \"The usage by all files in Google Drive.\",\n        \"type\": \"string\",\n        \"format\": \"int64\"\n       },\n       \"limit\": {\n        \"description\": \"The usage limit, if applicable. This will not be present if the user has unlimited storage. For users that are part of an organization with pooled storage, this is the limit for the organization, rather than the individual user.\",\n        \"type\": \"string\",\n        \"format\": \"int64\"\n       },\n       \"usageInDriveTrash\": {\n        \"description\": \"The usage by trashed files in Google Drive.\",\n        \"type\": \"string\",\n        \"format\": \"int64\"\n       },\n       \"usage\": {\n        \"description\": \"The total usage across all services. For users that are part of an organization with pooled storage, this is the usage across all services for the organization, rather than the individual user.\",\n        \"type\": \"string\",\n        \"format\": \"int64\"\n       }\n      }\n     },\n     \"driveThemes\": {\n      \"description\": \"A list of themes that are supported for shared drives.\",\n      \"type\": \"array\",\n      \"items\": {\n       \"type\": \"object\",\n       \"properties\": {\n        \"id\": {\n         \"description\": \"The ID of the theme.\",\n         \"type\": \"string\"\n        },\n        \"backgroundImageLink\": {\n         \"description\": \"A link to this theme's background image.\",\n         \"type\": \"string\"\n        },\n        \"colorRgb\": {\n         \"description\": \"The color of this theme as an RGB hex string.\",\n         \"type\": \"string\"\n        }\n       }\n      }\n     },\n     \"importFormats\": {\n      \"description\": \"A map of source MIME type to possible targets for all supported imports.\",\n      \"type\": \"object\",\n      \"additionalProperties\": {\n       \"type\": \"array\",\n       \"items\": {\n        \"type\": \"string\"\n       }\n      }\n     },\n     \"exportFormats\": {\n      \"description\": \"A map of source MIME type to possible targets for all supported exports.\",\n      \"type\": \"object\",\n      \"additionalProperties\": {\n       \"type\": \"array\",\n       \"items\": {\n        \"type\": \"string\"\n       }\n      }\n     },\n     \"kind\": {\n      \"description\": \"Identifies what kind of resource this is. Value: the fixed string `\\\"drive#about\\\"`.\",\n      \"type\": \"string\"\n     },\n     \"maxImportSizes\": {\n      \"description\": \"A map of maximum import sizes by MIME type, in bytes.\",\n      \"type\": \"object\",\n      \"additionalProperties\": {\n       \"type\": \"string\",\n       \"format\": \"int64\"\n      }\n     },\n     \"canCreateTeamDrives\": {\n      \"description\": \"Deprecated: Use `canCreateDrives` instead.\",\n      \"type\": \"boolean\"\n     },\n     \"teamDriveThemes\": {\n      \"description\": \"Deprecated: Use `driveThemes` instead.\",\n      \"type\": \"array\",\n      \"items\": {\n       \"type\": \"object\",\n       \"properties\": {\n        \"id\": {\n         \"description\": \"Deprecated: Use `driveThemes/id` instead.\",\n         \"type\": \"string\"\n        },\n        \"colorRgb\": {\n         \"description\": \"Deprecated: Use `driveThemes/colorRgb` instead.\",\n         \"type\": \"string\"\n        },\n        \"backgroundImageLink\": {\n         \"description\": \"Deprecated: Use `driveThemes/backgroundImageLink` instead.\",\n         \"type\": \"string\"\n        }\n       }\n      }\n     },\n     \"folderColorPalette\": {\n      \"description\": \"The currently supported folder colors as RGB hex strings.\",\n      \"type\": \"array\",\n      \"items\": {\n       \"type\": \"string\"\n      }\n     },\n     \"maxUploadSize\": {\n      \"description\": \"The maximum upload size in bytes.\",\n      \"type\": \"string\",\n      \"format\": \"int64\"\n     }\n    }\n   },\n   \"Channel\": {\n    \"description\": \"A notification channel used to watch for resource changes.\",\n    \"type\": \"object\",\n    \"properties\": {\n     \"token\": {\n      \"description\": \"An arbitrary string delivered to the target address with each notification delivered over this channel. Optional.\",\n      \"type\": \"string\"\n     },\n     \"params\": {\n      \"description\": \"Additional parameters controlling delivery channel behavior. Optional.\",\n      \"type\": \"object\",\n      \"additionalProperties\": {\n       \"type\": \"string\"\n      }\n     },\n     \"kind\": {\n      \"description\": \"Identifies this as a notification channel used to watch for changes to a resource, which is `api#channel`.\",\n      \"type\": \"string\"\n     },\n     \"expiration\": {\n      \"description\": \"Date and time of notification channel expiration, expressed as a Unix timestamp, in milliseconds. Optional.\",\n      \"type\": \"string\",\n      \"format\": \"int64\"\n     },\n     \"id\": {\n      \"description\": \"A UUID or similar unique string that identifies this channel.\",\n      \"type\": \"string\"\n     },\n     \"resourceId\": {\n      \"description\": \"An opaque ID that identifies the resource being watched on this channel. Stable across different API versions.\",\n      \"type\": \"string\"\n     },\n     \"payload\": {\n      \"description\": \"A Boolean value to indicate whether payload is wanted. Optional.\",\n      \"type\": \"boolean\"\n     },\n     \"type\": {\n      \"description\": \"The type of delivery mechanism used for this channel. Valid values are \\\"web_hook\\\" or \\\"webhook\\\".\",\n      \"type\": \"string\"\n     },\n     \"resourceUri\": {\n      \"description\": \"A version-specific identifier for the watched resource.\",\n      \"type\": \"string\"\n     },\n     \"address\": {\n      \"description\": \"The address where notifications are delivered for this channel.\",\n      \"type\": \"string\"\n     }\n    }\n   },\n   \"Change\": {\n    \"description\": \"A change to a file or shared drive.\",\n    \"type\": \"object\",\n    \"properties\": {\n     \"time\": {\n      \"description\": \"The time of this change (RFC 3339 date-time).\",\n      \"type\": \"string\",\n      \"format\": \"date-time\"\n     },\n     \"changeType\": {\n      \"description\": \"The type of the change. Possible values are `file` and `drive`.\",\n      \"type\": \"string\"\n     },\n     \"type\": {\n      \"description\": \"Deprecated: Use `changeType` instead.\",\n      \"type\": \"string\"\n     },\n     \"teamDrive\": {\n      \"$ref\": \"#/components/schemas/TeamDrive\"\n     },\n     \"teamDriveId\": {\n      \"description\": \"Deprecated: Use `driveId` instead.\",\n      \"type\": \"string\"\n     },\n     \"fileId\": {\n      \"description\": \"The ID of the file which has changed.\",\n      \"type\": \"string\"\n     },\n     \"removed\": {\n      \"description\": \"Whether the file or shared drive has been removed from this list of changes, for example by deletion or loss of access.\",\n      \"type\": \"boolean\"\n     },\n     \"file\": {\n      \"$ref\": \"#/components/schemas/File\"\n     },\n     \"drive\": {\n      \"$ref\": \"#/components/schemas/Drive\"\n     },\n     \"driveId\": {\n      \"description\": \"The ID of the shared drive associated with this change.\",\n      \"type\": \"string\"\n     },\n     \"kind\": {\n      \"description\": \"Identifies what kind of resource this is. Value: the fixed string `\\\"drive#change\\\"`.\",\n      \"type\": \"string\"\n     }\n    }\n   },\n   \"PermissionList\": {\n    \"description\": \"A list of permissions for a file.\",\n    \"type\": \"object\",\n    \"properties\": {\n     \"kind\": {\n      \"description\": \"Identifies what kind of resource this is. Value: the fixed string `\\\"drive#permissionList\\\"`.\",\n      \"type\": \"string\"\n     },\n     \"nextPageToken\": {\n      \"description\": \"The page token for the next page of permissions. This field will be absent if the end of the permissions list has been reached. If the token is rejected for any reason, it should be discarded, and pagination should be restarted from the first page of results. The page token is typically valid for several hours. However, if new items are added or removed, your expected results might differ.\",\n      \"type\": \"string\"\n     },\n     \"permissions\": {\n      \"description\": \"The list of permissions. If `nextPageToken` is populated, then this list may be incomplete and an additional page of results should be fetched.\",\n      \"type\": \"array\",\n      \"items\": {\n       \"$ref\": \"#/components/schemas/Permission\"\n      }\n     }\n    }\n   },\n   \"ResolveAccessProposalRequest\": {\n    \"description\": \"Request message for resolving an AccessProposal on a file.\",\n    \"type\": \"object\",\n    \"properties\": {\n     \"sendNotification\": {\n      \"description\": \"Optional. Whether to send an email to the requester when the access proposal is denied or accepted.\",\n      \"type\": \"boolean\"\n     },\n     \"action\": {\n      \"description\": \"Required. The action to take on the access proposal.\",\n      \"type\": \"string\",\n      \"enum\": [\n       \"ACTION_UNSPECIFIED\",\n       \"ACCEPT\",\n       \"DENY\"\n      ]\n     },\n     \"role\": {\n      \"description\": \"Optional. The roles that the approver has allowed, if any. For more information, see [Roles and permissions](https://developers.google.com/workspace/drive/api/guides/ref-roles). Note: This field is required for the `ACCEPT` action.\",\n      \"type\": \"array\",\n      \"items\": {\n       \"type\": \"string\"\n      }\n     },\n     \"view\": {\n      \"description\": \"Optional. Indicates the view for this access proposal. This should only be set when the proposal belongs to a view. Only `published` is supported.\",\n      \"type\": \"string\"\n     }\n    }\n   },\n   \"Status\": {\n    \"description\": \"The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors).\",\n    \"type\": \"object\",\n    \"properties\": {\n     \"details\": {\n      \"description\": \"A list of messages that carry the error details. There is a common set of message types for APIs to use.\",\n      \"type\": \"array\",\n      \"items\": {\n       \"type\": \"object\",\n       \"additionalProperties\": {\n        \"description\": \"Properties of the object. Contains field @type with type URL.\"\n       }\n      }\n     },\n     \"code\": {\n      \"description\": \"The status code, which should be an enum value of google.rpc.Code.\",\n      \"type\": \"integer\",\n      \"format\": \"int32\"\n     },\n     \"message\": {\n      \"description\": \"A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.\",\n      \"type\": \"string\"\n     }\n    }\n   },\n   \"ApproveApprovalRequest\": {\n    \"description\": \"Request for approving an approval as a reviewer.\",\n    \"type\": \"object\",\n    \"properties\": {\n     \"message\": {\n      \"description\": \"Optional. A message to accompany the reviewer response on the approval. This message is included in notifications for the action and in the approval activity log.\",\n      \"type\": \"string\"\n     }\n    }\n   },\n   \"AppList\": {\n    \"description\": \"A list of third-party applications which the user has installed or given access to Google Drive.\",\n    \"type\": \"object\",\n    \"properties\": {\n     \"items\": {\n      \"description\": \"The list of apps.\",\n      \"type\": \"array\",\n      \"items\": {\n       \"$ref\": \"#/components/schemas/App\"\n      }\n     },\n     \"selfLink\": {\n      \"description\": \"A link back to this list.\",\n      \"type\": \"string\"\n     },\n     \"kind\": {\n      \"description\": \"Output only. Identifies what kind of resource this is. Value: the fixed string \\\"drive#appList\\\".\",\n      \"type\": \"string\"\n     },\n     \"defaultAppIds\": {\n      \"description\": \"The list of app IDs that the user has specified to use by default. The list is in reverse-priority order (lowest to highest).\",\n      \"type\": \"array\",\n      \"items\": {\n       \"type\": \"string\"\n      }\n     }\n    }\n   },\n   \"LabelModification\": {\n    \"description\": \"A modification to a label on a file. A `LabelModification` can be used to apply a label to a file, update an existing label on a file, or remove a label from a file.\",\n    \"type\": \"object\",\n    \"properties\": {\n     \"fieldModifications\": {\n      \"description\": \"The list of modifications to this label's fields.\",\n      \"type\": \"array\",\n      \"items\": {\n       \"$ref\": \"#/components/schemas/LabelFieldModification\"\n      }\n     },\n     \"kind\": {\n      \"description\": \"This is always `\\\"drive#labelModification\\\"`.\",\n      \"type\": \"string\"\n     },\n     \"labelId\": {\n      \"description\": \"The ID of the label to modify.\",\n      \"type\": \"string\"\n     },\n     \"removeLabel\": {\n      \"description\": \"If true, the label will be removed from the file.\",\n      \"type\": \"boolean\"\n     }\n    }\n   },\n   \"User\": {\n    \"description\": \"Information about a Drive user.\",\n    \"type\": \"object\",\n    \"properties\": {\n     \"permissionId\": {\n      \"description\": \"Output only. The user's ID as visible in Permission resources.\",\n      \"type\": \"string\"\n     },\n     \"displayName\": {\n      \"description\": \"Output only. A plain text displayable name for this user.\",\n      \"type\": \"string\"\n     },\n     \"me\": {\n      \"description\": \"Output only. Whether this user is the requesting user.\",\n      \"type\": \"boolean\"\n     },\n     \"emailAddress\": {\n      \"description\": \"Output only. The email address of the user. This may not be present in certain contexts if the user has not made their email address visible to the requester.\",\n      \"type\": \"string\"\n     },\n     \"photoLink\": {\n      \"description\": \"Output only. A link to the user's profile photo, if available.\",\n      \"type\": \"string\"\n     },\n     \"kind\": {\n      \"description\": \"Output only. Identifies what kind of resource this is. Value: the fixed string `drive#user`.\",\n      \"type\": \"string\"\n     }\n    }\n   },\n   \"AccessProposal\": {\n    \"description\": \"Manage outstanding access proposals on a file.\",\n    \"type\": \"object\",\n    \"properties\": {\n     \"rolesAndViews\": {\n      \"description\": \"A wrapper for the role and view of an access proposal. For more information, see [Roles and permissions](https://developers.google.com/workspace/drive/api/guides/ref-roles).\",\n      \"type\": \"array\",\n      \"items\": {\n       \"$ref\": \"#/components/schemas/AccessProposalRoleAndView\"\n      }\n     },\n     \"recipientEmailAddress\": {\n      \"description\": \"The email address of the user that will receive permissions, if accepted.\",\n      \"type\": \"string\"\n     },\n     \"requestMessage\": {\n      \"description\": \"The message that the requester added to the proposal.\",\n      \"type\": \"string\"\n     },\n     \"proposalId\": {\n      \"description\": \"The ID of the access proposal.\",\n      \"type\": \"string\"\n     },\n     \"createTime\": {\n      \"description\": \"The creation time.\",\n      \"type\": \"string\",\n      \"format\": \"google-datetime\"\n     },\n     \"fileId\": {\n      \"description\": \"The file ID that the proposal for access is on.\",\n      \"type\": \"string\"\n     },\n     \"requesterEmailAddress\": {\n      \"description\": \"The email address of the requesting user.\",\n      \"type\": \"string\"\n     }\n    }\n   },\n   \"Drive\": {\n    \"description\": \"Representation of a shared drive. Some resource methods (such as `drives.update`) require a `driveId`. Use the `drives.list` method to retrieve the ID for a shared drive.\",\n    \"type\": \"object\",\n    \"properties\": {\n     \"name\": {\n      \"description\": \"The name of this shared drive.\",\n      \"type\": \"string\"\n     },\n     \"capabilities\": {\n      \"description\": \"Output only. Capabilities the current user has on this shared drive.\",\n      \"type\": \"object\",\n      \"properties\": {\n       \"canListChildren\": {\n        \"description\": \"Output only. Whether the current user can list the children of folders in this shared drive.\",\n        \"type\": \"boolean\"\n       },\n       \"canShare\": {\n        \"description\": \"Output only. Whether the current user can share files or folders in this shared drive.\",\n        \"type\": \"boolean\"\n       },\n       \"canRename\": {\n        \"description\": \"Output only. Whether the current user can rename files or folders in this shared drive.\",\n        \"type\": \"boolean\"\n       },\n       \"canChangeCopyRequiresWriterPermissionRestriction\": {\n        \"description\": \"Output only. Whether the current user can change the `copyRequiresWriterPermission` restriction of this shared drive.\",\n        \"type\": \"boolean\"\n       },\n       \"canChangeSharingFoldersRequiresOrganizerPermissionRestriction\": {\n        \"description\": \"Output only. Whether the current user can change the `sharingFoldersRequiresOrganizerPermission` restriction of this shared drive.\",\n        \"type\": \"boolean\"\n       },\n       \"canReadRevisions\": {\n        \"description\": \"Output only. Whether the current user can read the revisions resource of files in this shared drive.\",\n        \"type\": \"boolean\"\n       },\n       \"canTrashChildren\": {\n        \"description\": \"Output only. Whether the current user can trash children from folders in this shared drive.\",\n        \"type\": \"boolean\"\n       },\n       \"canComment\": {\n        \"description\": \"Output only. Whether the current user can comment on files in this shared drive.\",\n        \"type\": \"boolean\"\n       },\n       \"canResetDriveRestrictions\": {\n        \"description\": \"Output only. Whether the current user can reset the shared drive restrictions to defaults.\",\n        \"type\": \"boolean\"\n       },\n       \"canChangeDriveBackground\": {\n        \"description\": \"Output only. Whether the current user can change the background of this shared drive.\",\n        \"type\": \"boolean\"\n       },\n       \"canChangeDownloadRestriction\": {\n        \"description\": \"Output only. Whether the current user can change organizer-applied download restrictions of this shared drive.\",\n        \"type\": \"boolean\"\n       },\n       \"canCopy\": {\n        \"description\": \"Output only. Whether the current user can copy files in this shared drive.\",\n        \"type\": \"boolean\"\n       },\n       \"canDeleteDrive\": {\n        \"description\": \"Output only. Whether the current user can delete this shared drive. Attempting to delete the shared drive may still fail if there are untrashed items inside the shared drive.\",\n        \"type\": \"boolean\"\n       },\n       \"canDeleteChildren\": {\n        \"description\": \"Output only. Whether the current user can delete children from folders in this shared drive.\",\n        \"type\": \"boolean\"\n       },\n       \"canChangeDriveMembersOnlyRestriction\": {\n        \"description\": \"Output only. Whether the current user can change the `driveMembersOnly` restriction of this shared drive.\",\n        \"type\": \"boolean\"\n       },\n       \"canDownload\": {\n        \"description\": \"Output only. Whether the current user can download files in this shared drive.\",\n        \"type\": \"boolean\"\n       },\n       \"canAddChildren\": {\n        \"description\": \"Output only. Whether the current user can add children to folders in this shared drive.\",\n        \"type\": \"boolean\"\n       },\n       \"canRenameDrive\": {\n        \"description\": \"Output only. Whether the current user can rename this shared drive.\",\n        \"type\": \"boolean\"\n       },\n       \"canChangeDomainUsersOnlyRestriction\": {\n        \"description\": \"Output only. Whether the current user can change the `domainUsersOnly` restriction of this shared drive.\",\n        \"type\": \"boolean\"\n       },\n       \"canManageMembers\": {\n        \"description\": \"Output only. Whether the current user can add members to this shared drive or remove them or change their role.\",\n        \"type\": \"boolean\"\n       },\n       \"canEdit\": {\n        \"description\": \"Output only. Whether the current user can edit files in this shared drive\",\n        \"type\": \"boolean\"\n       }\n      }\n     },\n     \"themeId\": {\n      \"description\": \"The ID of the theme from which the background image and color will be set. The set of possible `driveThemes` can be retrieved from a `drive.about.get` response. When not specified on a `drive.drives.create` request, a random theme is chosen from which the background image and color are set. This is a write-only field; it can only be set on requests that don't set `colorRgb` or `backgroundImageFile`.\",\n      \"type\": \"string\"\n     },\n     \"id\": {\n      \"description\": \"Output only. The ID of this shared drive which is also the ID of the top level folder of this shared drive.\",\n      \"type\": \"string\"\n     },\n     \"orgUnitId\": {\n      \"description\": \"Output only. The organizational unit of this shared drive. This field is only populated on `drives.list` responses when the `useDomainAdminAccess` parameter is set to `true`.\",\n      \"type\": \"string\"\n     },\n     \"colorRgb\": {\n      \"description\": \"The color of this shared drive as an RGB hex string. It can only be set on a `drive.drives.update` request that does not set `themeId`.\",\n      \"type\": \"string\"\n     },\n     \"createdTime\": {\n      \"description\": \"The time at which the shared drive was created (RFC 3339 date-time).\",\n      \"type\": \"string\",\n      \"format\": \"date-time\"\n     },\n     \"backgroundImageFile\": {\n      \"description\": \"An image file and cropping parameters from which a background image for this shared drive is set. This is a write only field; it can only be set on `drive.drives.update` requests that don't set `themeId`. When specified, all fields of the `backgroundImageFile` must be set.\",\n      \"type\": \"object\",\n      \"properties\": {\n       \"yCoordinate\": {\n        \"description\": \"The Y coordinate of the upper left corner of the cropping area in the background image. This is a value in the closed range of 0 to 1. This value represents the vertical distance from the top side of the entire image to the top side of the cropping area divided by the height of the entire image.\",\n        \"type\": \"number\",\n        \"format\": \"float\"\n       },\n       \"id\": {\n        \"description\": \"The ID of an image file in Google Drive to use for the background image.\",\n        \"type\": \"string\"\n       },\n       \"width\": {\n        \"description\": \"The width of the cropped image in the closed range of 0 to 1. This value represents the width of the cropped image divided by the width of the entire image. The height is computed by applying a width to height aspect ratio of 80 to 9. The resulting image must be at least 1280 pixels wide and 144 pixels high.\",\n        \"type\": \"number\",\n        \"format\": \"float\"\n       },\n       \"xCoordinate\": {\n        \"description\": \"The X coordinate of the upper left corner of the cropping area in the background image. This is a value in the closed range of 0 to 1. This value represents the horizontal distance from the left side of the entire image to the left side of the cropping area divided by the width of the entire image.\",\n        \"type\": \"number\",\n        \"format\": \"float\"\n       }\n      }\n     },\n     \"backgroundImageLink\": {\n      \"description\": \"Output only. A short-lived link to this shared drive's background image.\",\n      \"type\": \"string\"\n     },\n     \"restrictions\": {\n      \"description\": \"A set of restrictions that apply to this shared drive or items inside this shared drive. Note that restrictions can't be set when creating a shared drive. To add a restriction, first create a shared drive and then use `drives.update` to add restrictions.\",\n      \"type\": \"object\",\n      \"properties\": {\n       \"copyRequiresWriterPermission\": {\n        \"description\": \"Whether the options to copy, print, or download files inside this shared drive, should be disabled for readers and commenters. When this restriction is set to `true`, it will override the similarly named field to `true` for any file inside this shared drive.\",\n        \"type\": \"boolean\"\n       },\n       \"adminManagedRestrictions\": {\n        \"description\": \"Whether administrative privileges on this shared drive are required to modify restrictions.\",\n        \"type\": \"boolean\"\n       },\n       \"domainUsersOnly\": {\n        \"description\": \"Whether access to this shared drive and items inside this shared drive is restricted to users of the domain to which this shared drive belongs. This restriction may be overridden by other sharing policies controlled outside of this shared drive.\",\n        \"type\": \"boolean\"\n       },\n       \"downloadRestriction\": {\n        \"$ref\": \"#/components/schemas/DownloadRestriction\"\n       },\n       \"driveMembersOnly\": {\n        \"description\": \"Whether access to items inside this shared drive is restricted to its members.\",\n        \"type\": \"boolean\"\n       },\n       \"sharingFoldersRequiresOrganizerPermission\": {\n        \"description\": \"If true, only users with the organizer role can share folders. If false, users with either the organizer role or the file organizer role can share folders.\",\n        \"type\": \"boolean\"\n       }\n      }\n     },\n     \"kind\": {\n      \"description\": \"Output only. Identifies what kind of resource this is. Value: the fixed string `\\\"drive#drive\\\"`.\",\n      \"type\": \"string\"\n     },\n     \"hidden\": {\n      \"description\": \"Whether the shared drive is hidden from default view.\",\n      \"type\": \"boolean\"\n     }\n    }\n   },\n   \"DeclineApprovalRequest\": {\n    \"description\": \"Request for declining an approval as a reviewer.\",\n    \"type\": \"object\",\n    \"properties\": {\n     \"message\": {\n      \"description\": \"Optional. A message to accompany the reviewer response on the approval. This message is included in notifications for the action and in the approval activity log.\",\n      \"type\": \"string\"\n     }\n    }\n   },\n   \"Reply\": {\n    \"description\": \"A reply to a comment on a file. Some resource methods (such as `replies.update`) require a `replyId`. Use the `replies.list` method to retrieve the ID for a reply.\",\n    \"type\": \"object\",\n    \"properties\": {\n     \"modifiedTime\": {\n      \"description\": \"The last time the reply was modified (RFC 3339 date-time).\",\n      \"type\": \"string\",\n      \"format\": \"date-time\"\n     },\n     \"deleted\": {\n      \"description\": \"Output only. Whether the reply has been deleted. A deleted reply has no content.\",\n      \"type\": \"boolean\"\n     },\n     \"htmlContent\": {\n      \"description\": \"Output only. The content of the reply with HTML formatting.\",\n      \"type\": \"string\"\n     },\n     \"id\": {\n      \"description\": \"Output only. The ID of the reply.\",\n      \"type\": \"string\"\n     },\n     \"content\": {\n      \"description\": \"The plain text content of the reply. This field is used for setting the content, while `htmlContent` should be displayed. This field is required by the `create` method if no `action` value is specified.\",\n      \"type\": \"string\"\n     },\n     \"author\": {\n      \"$ref\": \"#/components/schemas/User\"\n     },\n     \"createdTime\": {\n      \"description\": \"The time at which the reply was created (RFC 3339 date-time).\",\n      \"type\": \"string\",\n      \"format\": \"date-time\"\n     },\n     \"mentionedEmailAddresses\": {\n      \"description\": \"Output only. A list of email addresses for users mentioned in this comment. If no users are mentioned, the list is empty.\",\n      \"type\": \"array\",\n      \"items\": {\n       \"type\": \"string\"\n      }\n     },\n     \"assigneeEmailAddress\": {\n      \"description\": \"Output only. The email address of the user assigned to this comment. If no user is assigned, the field is unset.\",\n      \"type\": \"string\"\n     },\n     \"kind\": {\n      \"description\": \"Output only. Identifies what kind of resource this is. Value: the fixed string `\\\"drive#reply\\\"`.\",\n      \"type\": \"string\"\n     },\n     \"action\": {\n      \"description\": \"The action the reply performed to the parent comment. The supported values are: * `resolve` * `reopen`\",\n      \"type\": \"string\"\n     }\n    }\n   },\n   \"ReviewerResponse\": {\n    \"description\": \"A response on an approval made by a specific reviewer.\",\n    \"type\": \"object\",\n    \"properties\": {\n     \"response\": {\n      \"description\": \"A reviewer’s response for the approval.\",\n      \"type\": \"string\",\n      \"enum\": [\n       \"RESPONSE_UNSPECIFIED\",\n       \"NO_RESPONSE\",\n       \"APPROVED\",\n       \"DECLINED\"\n      ]\n     },\n     \"kind\": {\n      \"description\": \"This is always drive#reviewerResponse.\",\n      \"type\": \"string\"\n     },\n     \"reviewer\": {\n      \"$ref\": \"#/components/schemas/User\"\n     }\n    }\n   },\n   \"LabelList\": {\n    \"description\": \"A list of labels applied to a file.\",\n    \"type\": \"object\",\n    \"properties\": {\n     \"labels\": {\n      \"description\": \"The list of labels.\",\n      \"type\": \"array\",\n      \"items\": {\n       \"$ref\": \"#/components/schemas/Label\"\n      }\n     },\n     \"nextPageToken\": {\n      \"description\": \"The page token for the next page of labels. This field will be absent if the end of the list has been reached. If the token is rejected for any reason, it should be discarded, and pagination should be restarted from the first page of results. The page token is typically valid for several hours. However, if new items are added or removed, your expected results might differ.\",\n      \"type\": \"string\"\n     },\n     \"kind\": {\n      \"description\": \"This is always `\\\"drive#labelList\\\"`.\",\n      \"type\": \"string\"\n     }\n    }\n   },\n   \"ModifyLabelsRequest\": {\n    \"description\": \"A request to modify the set of labels on a file. This request may contain many modifications that will either all succeed or all fail atomically.\",\n    \"type\": \"object\",\n    \"properties\": {\n     \"labelModifications\": {\n      \"description\": \"The list of modifications to apply to the labels on the file.\",\n      \"type\": \"array\",\n      \"items\": {\n       \"$ref\": \"#/components/schemas/LabelModification\"\n      }\n     },\n     \"kind\": {\n      \"description\": \"This is always `\\\"drive#modifyLabelsRequest\\\"`.\",\n      \"type\": \"string\"\n     }\n    }\n   },\n   \"FileList\": {\n    \"description\": \"A list of files.\",\n    \"type\": \"object\",\n    \"properties\": {\n     \"files\": {\n      \"description\": \"The list of files. If `nextPageToken` is populated, then this list may be incomplete and an additional page of results should be fetched.\",\n      \"type\": \"array\",\n      \"items\": {\n       \"$ref\": \"#/components/schemas/File\"\n      }\n     },\n     \"incompleteSearch\": {\n      \"description\": \"Whether the search process was incomplete. If true, then some search results might be missing, since all documents were not searched. This can occur when searching multiple drives with the `allDrives` corpora, but all corpora couldn't be searched. When this happens, it's suggested that clients narrow their query by choosing a different corpus such as `user` or `drive`.\",\n      \"type\": \"boolean\"\n     },\n     \"nextPageToken\": {\n      \"description\": \"The page token for the next page of files. This will be absent if the end of the files list has been reached. If the token is rejected for any reason, it should be discarded, and pagination should be restarted from the first page of results. The page token is typically valid for several hours. However, if new items are added or removed, your expected results might differ.\",\n      \"type\": \"string\"\n     },\n     \"kind\": {\n      \"description\": \"Identifies what kind of resource this is. Value: the fixed string `\\\"drive#fileList\\\"`.\",\n      \"type\": \"string\"\n     }\n    }\n   },\n   \"StartPageToken\": {\n    \"type\": \"object\",\n    \"properties\": {\n     \"kind\": {\n      \"description\": \"Identifies what kind of resource this is. Value: the fixed string `\\\"drive#startPageToken\\\"`.\",\n      \"type\": \"string\"\n     },\n     \"startPageToken\": {\n      \"description\": \"The starting page token for listing future changes. The page token doesn't expire.\",\n      \"type\": \"string\"\n     }\n    }\n   },\n   \"RevisionList\": {\n    \"description\": \"A list of revisions of a file.\",\n    \"type\": \"object\",\n    \"properties\": {\n     \"revisions\": {\n      \"description\": \"The list of revisions. If nextPageToken is populated, then this list may be incomplete and an additional page of results should be fetched.\",\n      \"type\": \"array\",\n      \"items\": {\n       \"$ref\": \"#/components/schemas/Revision\"\n      }\n     },\n     \"kind\": {\n      \"description\": \"Identifies what kind of resource this is. Value: the fixed string `\\\"drive#revisionList\\\"`.\",\n      \"type\": \"string\"\n     },\n     \"nextPageToken\": {\n      \"description\": \"The page token for the next page of revisions. This will be absent if the end of the revisions list has been reached. If the token is rejected for any reason, it should be discarded, and pagination should be restarted from the first page of results. The page token is typically valid for several hours. However, if new items are added or removed, your expected results might differ.\",\n      \"type\": \"string\"\n     }\n    }\n   },\n   \"ListAccessProposalsResponse\": {\n    \"description\": \"The response to an access proposal list request.\",\n    \"type\": \"object\",\n    \"properties\": {\n     \"nextPageToken\": {\n      \"description\": \"The continuation token for the next page of results. This will be absent if the end of the results list has been reached. If the token is rejected for any reason, it should be discarded, and pagination should be restarted from the first page of results.\",\n      \"type\": \"string\"\n     },\n     \"accessProposals\": {\n      \"description\": \"The list of access proposals. This field is only populated in Drive API v3.\",\n      \"type\": \"array\",\n      \"items\": {\n       \"$ref\": \"#/components/schemas/AccessProposal\"\n      }\n     }\n    }\n   },\n   \"DownloadRestrictionsMetadata\": {\n    \"description\": \"Download restrictions applied to the file.\",\n    \"type\": \"object\",\n    \"properties\": {\n     \"itemDownloadRestriction\": {\n      \"$ref\": \"#/components/schemas/DownloadRestriction\"\n     },\n     \"effectiveDownloadRestrictionWithContext\": {\n      \"$ref\": \"#/components/schemas/DownloadRestriction\"\n     }\n    }\n   },\n   \"TeamDriveList\": {\n    \"description\": \"A list of Team Drives.\",\n    \"type\": \"object\",\n    \"properties\": {\n     \"kind\": {\n      \"description\": \"Identifies what kind of resource this is. Value: the fixed string `\\\"drive#teamDriveList\\\"`.\",\n      \"type\": \"string\"\n     },\n     \"teamDrives\": {\n      \"description\": \"The list of Team Drives. If nextPageToken is populated, then this list may be incomplete and an additional page of results should be fetched.\",\n      \"type\": \"array\",\n      \"items\": {\n       \"$ref\": \"#/components/schemas/TeamDrive\"\n      }\n     },\n     \"nextPageToken\": {\n      \"description\": \"The page token for the next page of Team Drives. This will be absent if the end of the Team Drives list has been reached. If the token is rejected for any reason, it should be discarded, and pagination should be restarted from the first page of results. The page token is typically valid for several hours. However, if new items are added or removed, your expected results might differ.\",\n      \"type\": \"string\"\n     }\n    }\n   },\n   \"Operation\": {\n    \"description\": \"This resource represents a long-running operation that is the result of a network API call.\",\n    \"type\": \"object\",\n    \"properties\": {\n     \"name\": {\n      \"description\": \"The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.\",\n      \"type\": \"string\"\n     },\n     \"metadata\": {\n      \"description\": \"Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.\",\n      \"type\": \"object\",\n      \"additionalProperties\": {\n       \"description\": \"Properties of the object. Contains field @type with type URL.\"\n      }\n     },\n     \"done\": {\n      \"description\": \"If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.\",\n      \"type\": \"boolean\"\n     },\n     \"error\": {\n      \"$ref\": \"#/components/schemas/Status\"\n     },\n     \"response\": {\n      \"description\": \"The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.\",\n      \"type\": \"object\",\n      \"additionalProperties\": {\n       \"description\": \"Properties of the object. Contains field @type with type URL.\"\n      }\n     }\n    }\n   },\n   \"GeneratedIds\": {\n    \"description\": \"A list of generated file IDs which can be provided in create requests.\",\n    \"type\": \"object\",\n    \"properties\": {\n     \"ids\": {\n      \"description\": \"The IDs generated for the requesting user in the specified space.\",\n      \"type\": \"array\",\n      \"items\": {\n       \"type\": \"string\"\n      }\n     },\n     \"kind\": {\n      \"description\": \"Identifies what kind of resource this is. Value: the fixed string `\\\"drive#generatedIds\\\"`.\",\n      \"type\": \"string\"\n     },\n     \"space\": {\n      \"description\": \"The type of file that can be created with these IDs.\",\n      \"type\": \"string\"\n     }\n    }\n   },\n   \"StartApprovalRequest\": {\n    \"description\": \"Allows creating an approval on a file.\",\n    \"type\": \"object\",\n    \"properties\": {\n     \"reviewerEmails\": {\n      \"description\": \"Required. The emails of the users who are set to review the approval.\",\n      \"type\": \"array\",\n      \"items\": {\n       \"type\": \"string\"\n      }\n     },\n     \"lockFile\": {\n      \"description\": \"Optional. Whether to lock the file when starting the approval.\",\n      \"type\": \"boolean\"\n     },\n     \"fileContentChangeBehavior\": {\n      \"description\": \"Optional. The behavior of the approval when the file content changes.\",\n      \"type\": \"string\",\n      \"enum\": [\n       \"FILE_CONTENT_CHANGE_BEHAVIOR_UNSPECIFIED\",\n       \"RESET_APPROVAL\",\n       \"NO_APPROVAL_ACTION\"\n      ]\n     },\n     \"dueTime\": {\n      \"description\": \"Optional. The time that the approval is due.\",\n      \"type\": \"string\",\n      \"format\": \"google-datetime\"\n     },\n     \"message\": {\n      \"description\": \"Optional. A message to send to reviewers when notifying them of the approval request.\",\n      \"type\": \"string\"\n     }\n    }\n   },\n   \"CommentList\": {\n    \"description\": \"A list of comments on a file.\",\n    \"type\": \"object\",\n    \"properties\": {\n     \"comments\": {\n      \"description\": \"The list of comments. If nextPageToken is populated, then this list may be incomplete and an additional page of results should be fetched.\",\n      \"type\": \"array\",\n      \"items\": {\n       \"$ref\": \"#/components/schemas/Comment\"\n      }\n     },\n     \"kind\": {\n      \"description\": \"Identifies what kind of resource this is. Value: the fixed string `\\\"drive#commentList\\\"`.\",\n      \"type\": \"string\"\n     },\n     \"nextPageToken\": {\n      \"description\": \"The page token for the next page of comments. This will be absent if the end of the comments list has been reached. If the token is rejected for any reason, it should be discarded, and pagination should be restarted from the first page of results. The page token is typically valid for several hours. However, if new items are added or removed, your expected results might differ.\",\n      \"type\": \"string\"\n     }\n    }\n   },\n   \"AppIcons\": {\n    \"type\": \"object\",\n    \"properties\": {\n     \"size\": {\n      \"description\": \"Size of the icon. Represented as the maximum of the width and height.\",\n      \"type\": \"integer\",\n      \"format\": \"int32\"\n     },\n     \"iconUrl\": {\n      \"description\": \"URL for the icon.\",\n      \"type\": \"string\"\n     },\n     \"category\": {\n      \"description\": \"Category of the icon. Allowed values are: * `application` - The icon for the application. * `document` - The icon for a file associated with the app. * `documentShared` - The icon for a shared file associated with the app.\",\n      \"type\": \"string\"\n     }\n    }\n   },\n   \"ModifyLabelsResponse\": {\n    \"description\": \"Response to a `ModifyLabels` request. This contains only those labels which were added or updated by the request.\",\n    \"type\": \"object\",\n    \"properties\": {\n     \"modifiedLabels\": {\n      \"description\": \"The list of labels which were added or updated by the request.\",\n      \"type\": \"array\",\n      \"items\": {\n       \"$ref\": \"#/components/schemas/Label\"\n      }\n     },\n     \"kind\": {\n      \"description\": \"This is always `\\\"drive#modifyLabelsResponse\\\"`.\",\n      \"type\": \"string\"\n     }\n    }\n   },\n   \"LabelField\": {\n    \"description\": \"Representation of field, which is a typed key-value pair.\",\n    \"type\": \"object\",\n    \"properties\": {\n     \"selection\": {\n      \"description\": \"Only present if `valueType` is `selection`\",\n      \"type\": \"array\",\n      \"items\": {\n       \"type\": \"string\"\n      }\n     },\n     \"user\": {\n      \"description\": \"Only present if `valueType` is `user`.\",\n      \"type\": \"array\",\n      \"items\": {\n       \"$ref\": \"#/components/schemas/User\"\n      }\n     },\n     \"text\": {\n      \"description\": \"Only present if `valueType` is `text`.\",\n      \"type\": \"array\",\n      \"items\": {\n       \"type\": \"string\"\n      }\n     },\n     \"valueType\": {\n      \"description\": \"The field type. While new values may be supported in the future, the following are currently allowed: * `dateString` * `integer` * `selection` * `text` * `user`\",\n      \"type\": \"string\"\n     },\n     \"integer\": {\n      \"description\": \"Only present if `valueType` is `integer`.\",\n      \"type\": \"array\",\n      \"items\": {\n       \"type\": \"string\",\n       \"format\": \"int64\"\n      }\n     },\n     \"kind\": {\n      \"description\": \"This is always drive#labelField.\",\n      \"type\": \"string\"\n     },\n     \"id\": {\n      \"description\": \"The identifier of this label field.\",\n      \"type\": \"string\"\n     },\n     \"dateString\": {\n      \"description\": \"Only present if valueType is dateString. RFC 3339 formatted date: YYYY-MM-DD.\",\n      \"type\": \"array\",\n      \"items\": {\n       \"type\": \"string\",\n       \"format\": \"date\"\n      }\n     }\n    }\n   },\n   \"Comment\": {\n    \"description\": \"A comment on a file. Some resource methods (such as `comments.update`) require a `commentId`. Use the `comments.list` method to retrieve the ID for a comment in a file.\",\n    \"type\": \"object\",\n    \"properties\": {\n     \"content\": {\n      \"description\": \"The plain text content of the comment. This field is used for setting the content, while `htmlContent` should be displayed.\",\n      \"type\": \"string\"\n     },\n     \"createdTime\": {\n      \"description\": \"The time at which the comment was created (RFC 3339 date-time).\",\n      \"type\": \"string\",\n      \"format\": \"date-time\"\n     },\n     \"id\": {\n      \"description\": \"Output only. The ID of the comment.\",\n      \"type\": \"string\"\n     },\n     \"modifiedTime\": {\n      \"description\": \"The last time the comment or any of its replies was modified (RFC 3339 date-time).\",\n      \"type\": \"string\",\n      \"format\": \"date-time\"\n     },\n     \"htmlContent\": {\n      \"description\": \"Output only. The content of the comment with HTML formatting.\",\n      \"type\": \"string\"\n     },\n     \"resolved\": {\n      \"description\": \"Output only. Whether the comment has been resolved by one of its replies.\",\n      \"type\": \"boolean\"\n     },\n     \"deleted\": {\n      \"description\": \"Output only. Whether the comment has been deleted. A deleted comment has no content.\",\n      \"type\": \"boolean\"\n     },\n     \"mentionedEmailAddresses\": {\n      \"description\": \"Output only. A list of email addresses for users mentioned in this comment. If no users are mentioned, the list is empty.\",\n      \"type\": \"array\",\n      \"items\": {\n       \"type\": \"string\"\n      }\n     },\n     \"author\": {\n      \"$ref\": \"#/components/schemas/User\"\n     },\n     \"anchor\": {\n      \"description\": \"A region of the document represented as a JSON string. For details on defining anchor properties, refer to [Manage comments and replies](https://developers.google.com/workspace/drive/api/v3/manage-comments).\",\n      \"type\": \"string\"\n     },\n     \"assigneeEmailAddress\": {\n      \"description\": \"Output only. The email address of the user assigned to this comment. If no user is assigned, the field is unset.\",\n      \"type\": \"string\"\n     },\n     \"kind\": {\n      \"description\": \"Output only. Identifies what kind of resource this is. Value: the fixed string `\\\"drive#comment\\\"`.\",\n      \"type\": \"string\"\n     },\n     \"quotedFileContent\": {\n      \"description\": \"The file content to which the comment refers, typically within the anchor region. For a text file, for example, this would be the text at the location of the comment.\",\n      \"type\": \"object\",\n      \"properties\": {\n       \"value\": {\n        \"description\": \"The quoted content itself. This is interpreted as plain text if set through the API.\",\n        \"type\": \"string\"\n       },\n       \"mimeType\": {\n        \"description\": \"The MIME type of the quoted content.\",\n        \"type\": \"string\"\n       }\n      }\n     },\n     \"replies\": {\n      \"description\": \"Output only. The full list of replies to the comment in chronological order.\",\n      \"type\": \"array\",\n      \"items\": {\n       \"$ref\": \"#/components/schemas/Reply\"\n      }\n     }\n    }\n   },\n   \"DownloadRestriction\": {\n    \"description\": \"A restriction for copy and download of the file.\",\n    \"type\": \"object\",\n    \"properties\": {\n     \"restrictedForReaders\": {\n      \"description\": \"Whether download and copy is restricted for readers.\",\n      \"type\": \"boolean\"\n     },\n     \"restrictedForWriters\": {\n      \"description\": \"Whether download and copy is restricted for writers. If true, download is also restricted for readers.\",\n      \"type\": \"boolean\"\n     }\n    }\n   },\n   \"File\": {\n    \"description\": \"The metadata for a file. Some resource methods (such as `files.update`) require a `fileId`. Use the `files.list` method to retrieve the ID for a file.\",\n    \"type\": \"object\",\n    \"properties\": {\n     \"sha1Checksum\": {\n      \"description\": \"Output only. The SHA1 checksum associated with this file, if available. This field is only populated for files with content stored in Google Drive; it's not populated for Docs Editors or shortcut files.\",\n      \"type\": \"string\"\n     },\n     \"trashed\": {\n      \"description\": \"Whether the file has been trashed, either explicitly or from a trashed parent folder. Only the owner may trash a file, but other users can still access the file in the owner's trash until it's permanently deleted.\",\n      \"type\": \"boolean\"\n     },\n     \"thumbnailLink\": {\n      \"description\": \"Output only. A short-lived link to the file's thumbnail, if available. Typically lasts on the order of hours. Not intended for direct usage on web applications due to [Cross-Origin Resource Sharing (CORS)](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS) policies. Consider using a proxy server. Only populated when the requesting app can access the file's content. If the file isn't shared publicly, the URL returned in `files.thumbnailLink` must be fetched using a credentialed request.\",\n      \"type\": \"string\"\n     },\n     \"explicitlyTrashed\": {\n      \"description\": \"Output only. Whether the file has been explicitly trashed, as opposed to recursively trashed from a parent folder.\",\n      \"type\": \"boolean\"\n     },\n     \"sha256Checksum\": {\n      \"description\": \"Output only. The SHA256 checksum associated with this file, if available. This field is only populated for files with content stored in Google Drive; it's not populated for Docs Editors or shortcut files.\",\n      \"type\": \"string\"\n     },\n     \"modifiedTime\": {\n      \"description\": \"he last time the file was modified by anyone (RFC 3339 date-time). Note that setting modifiedTime will also update modifiedByMeTime for the user.\",\n      \"type\": \"string\",\n      \"format\": \"date-time\"\n     },\n     \"owners\": {\n      \"description\": \"Output only. The owner of this file. Only certain legacy files may have more than one owner. This field isn't populated for items in shared drives.\",\n      \"type\": \"array\",\n      \"items\": {\n       \"$ref\": \"#/components/schemas/User\"\n      }\n     },\n     \"labelInfo\": {\n      \"description\": \"Label information on the file.\",\n      \"type\": \"object\",\n      \"properties\": {\n       \"labels\": {\n        \"description\": \"Output only. The set of labels on the file as requested by the label IDs in the `includeLabels` parameter. By default, no labels are returned.\",\n        \"type\": \"array\",\n        \"items\": {\n         \"$ref\": \"#/components/schemas/Label\"\n        }\n       }\n      }\n     },\n     \"quotaBytesUsed\": {\n      \"description\": \"Output only. The number of storage quota bytes used by the file. This includes the head revision as well as previous revisions with `keepForever` enabled.\",\n      \"type\": \"string\",\n      \"format\": \"int64\"\n     },\n     \"originalFilename\": {\n      \"description\": \"The original filename of the uploaded content if available, or else the original value of the `name` field. This is only available for files with binary content in Google Drive.\",\n      \"type\": \"string\"\n     },\n     \"downloadRestrictions\": {\n      \"$ref\": \"#/components/schemas/DownloadRestrictionsMetadata\"\n     },\n     \"description\": {\n      \"description\": \"A short description of the file.\",\n      \"type\": \"string\"\n     },\n     \"hasThumbnail\": {\n      \"description\": \"Output only. Whether this file has a thumbnail. This doesn't indicate whether the requesting app has access to the thumbnail. To check access, look for the presence of the thumbnailLink field.\",\n      \"type\": \"boolean\"\n     },\n     \"imageMediaMetadata\": {\n      \"description\": \"Output only. Additional metadata about image media, if available.\",\n      \"type\": \"object\",\n      \"properties\": {\n       \"focalLength\": {\n        \"description\": \"Output only. The focal length used to create the photo, in millimeters.\",\n        \"type\": \"number\",\n        \"format\": \"float\"\n       },\n       \"rotation\": {\n        \"description\": \"Output only. The number of clockwise 90 degree rotations applied from the image's original orientation.\",\n        \"type\": \"integer\",\n        \"format\": \"int32\"\n       },\n       \"flashUsed\": {\n        \"description\": \"Output only. Whether a flash was used to create the photo.\",\n        \"type\": \"boolean\"\n       },\n       \"exposureTime\": {\n        \"description\": \"Output only. The length of the exposure, in seconds.\",\n        \"type\": \"number\",\n        \"format\": \"float\"\n       },\n       \"aperture\": {\n        \"description\": \"Output only. The aperture used to create the photo (f-number).\",\n        \"type\": \"number\",\n        \"format\": \"float\"\n       },\n       \"maxApertureValue\": {\n        \"description\": \"Output only. The smallest f-number of the lens at the focal length used to create the photo (APEX value).\",\n        \"type\": \"number\",\n        \"format\": \"float\"\n       },\n       \"exposureBias\": {\n        \"description\": \"Output only. The exposure bias of the photo (APEX value).\",\n        \"type\": \"number\",\n        \"format\": \"float\"\n       },\n       \"sensor\": {\n        \"description\": \"Output only. The type of sensor used to create the photo.\",\n        \"type\": \"string\"\n       },\n       \"isoSpeed\": {\n        \"description\": \"Output only. The ISO speed used to create the photo.\",\n        \"type\": \"integer\",\n        \"format\": \"int32\"\n       },\n       \"location\": {\n        \"description\": \"Output only. Geographic location information stored in the image.\",\n        \"type\": \"object\",\n        \"properties\": {\n         \"longitude\": {\n          \"description\": \"Output only. The longitude stored in the image.\",\n          \"type\": \"number\",\n          \"format\": \"double\"\n         },\n         \"latitude\": {\n          \"description\": \"Output only. The latitude stored in the image.\",\n          \"type\": \"number\",\n          \"format\": \"double\"\n         },\n         \"altitude\": {\n          \"description\": \"Output only. The altitude stored in the image.\",\n          \"type\": \"number\",\n          \"format\": \"double\"\n         }\n        }\n       },\n       \"whiteBalance\": {\n        \"description\": \"Output only. The white balance mode used to create the photo.\",\n        \"type\": \"string\"\n       },\n       \"cameraModel\": {\n        \"description\": \"Output only. The model of the camera used to create the photo.\",\n        \"type\": \"string\"\n       },\n       \"cameraMake\": {\n        \"description\": \"Output only. The make of the camera used to create the photo.\",\n        \"type\": \"string\"\n       },\n       \"time\": {\n        \"description\": \"Output only. The date and time the photo was taken (EXIF DateTime).\",\n        \"type\": \"string\"\n       },\n       \"exposureMode\": {\n        \"description\": \"Output only. The exposure mode used to create the photo.\",\n        \"type\": \"string\"\n       },\n       \"meteringMode\": {\n        \"description\": \"Output only. The metering mode used to create the photo.\",\n        \"type\": \"string\"\n       },\n       \"height\": {\n        \"description\": \"Output only. The height of the image in pixels.\",\n        \"type\": \"integer\",\n        \"format\": \"int32\"\n       },\n       \"lens\": {\n        \"description\": \"Output only. The lens used to create the photo.\",\n        \"type\": \"string\"\n       },\n       \"colorSpace\": {\n        \"description\": \"Output only. The color space of the photo.\",\n        \"type\": \"string\"\n       },\n       \"width\": {\n        \"description\": \"Output only. The width of the image in pixels.\",\n        \"type\": \"integer\",\n        \"format\": \"int32\"\n       },\n       \"subjectDistance\": {\n        \"description\": \"Output only. The distance to the subject of the photo, in meters.\",\n        \"type\": \"integer\",\n        \"format\": \"int32\"\n       }\n      }\n     },\n     \"contentHints\": {\n      \"description\": \"Additional information about the content of the file. These fields are never populated in responses.\",\n      \"type\": \"object\",\n      \"properties\": {\n       \"indexableText\": {\n        \"description\": \"Text to be indexed for the file to improve fullText queries. This is limited to 128 KB in length and may contain HTML elements.\",\n        \"type\": \"string\"\n       },\n       \"thumbnail\": {\n        \"description\": \"A thumbnail for the file. This will only be used if Google Drive cannot generate a standard thumbnail.\",\n        \"type\": \"object\",\n        \"properties\": {\n         \"image\": {\n          \"description\": \"The thumbnail data encoded with URL-safe Base64 ([RFC 4648 section 5](https://datatracker.ietf.org/doc/html/rfc4648#section-5)).\",\n          \"type\": \"string\",\n          \"format\": \"byte\"\n         },\n         \"mimeType\": {\n          \"description\": \"The MIME type of the thumbnail.\",\n          \"type\": \"string\"\n         }\n        }\n       }\n      }\n     },\n     \"contentRestrictions\": {\n      \"description\": \"Restrictions for accessing the content of the file. Only populated if such a restriction exists.\",\n      \"type\": \"array\",\n      \"items\": {\n       \"$ref\": \"#/components/schemas/ContentRestriction\"\n      }\n     },\n     \"createdTime\": {\n      \"description\": \"The time at which the file was created (RFC 3339 date-time).\",\n      \"type\": \"string\",\n      \"format\": \"date-time\"\n     },\n     \"parents\": {\n      \"description\": \"The ID of the parent folder containing the file. A file can only have one parent folder; specifying multiple parents isn't supported. If not specified as part of a create request, the file is placed directly in the user's My Drive folder. If not specified as part of a copy request, the file inherits any discoverable parent of the source file. Update requests must use the `addParents` and `removeParents` parameters to modify the parents list.\",\n      \"type\": \"array\",\n      \"items\": {\n       \"type\": \"string\"\n      }\n     },\n     \"trashingUser\": {\n      \"$ref\": \"#/components/schemas/User\"\n     },\n     \"sharedWithMeTime\": {\n      \"description\": \"The time at which the file was shared with the user, if applicable (RFC 3339 date-time).\",\n      \"type\": \"string\",\n      \"format\": \"date-time\"\n     },\n     \"trashedTime\": {\n      \"description\": \"The time that the item was trashed (RFC 3339 date-time). Only populated for items in shared drives.\",\n      \"type\": \"string\",\n      \"format\": \"date-time\"\n     },\n     \"shortcutDetails\": {\n      \"description\": \"Information about a shortcut file.\",\n      \"type\": \"object\",\n      \"properties\": {\n       \"targetResourceKey\": {\n        \"description\": \"Output only. The `resourceKey` for the target file.\",\n        \"type\": \"string\"\n       },\n       \"targetMimeType\": {\n        \"description\": \"Output only. The MIME type of the file that this shortcut points to. The value of this field is a snapshot of the target's MIME type, captured when the shortcut is created.\",\n        \"type\": \"string\"\n       },\n       \"targetId\": {\n        \"description\": \"The ID of the file that this shortcut points to. Can only be set on `files.create` requests.\",\n        \"type\": \"string\"\n       }\n      }\n     },\n     \"iconLink\": {\n      \"description\": \"Output only. A static, unauthenticated link to the file's icon.\",\n      \"type\": \"string\"\n     },\n     \"starred\": {\n      \"description\": \"Whether the user has starred the file.\",\n      \"type\": \"boolean\"\n     },\n     \"properties\": {\n      \"description\": \"A collection of arbitrary key-value pairs which are visible to all apps.\\nEntries with null values are cleared in update and copy requests.\",\n      \"type\": \"object\",\n      \"additionalProperties\": {\n       \"type\": \"string\"\n      }\n     },\n     \"lastModifyingUser\": {\n      \"$ref\": \"#/components/schemas/User\"\n     },\n     \"exportLinks\": {\n      \"description\": \"Output only. Links for exporting Docs Editors files to specific formats.\",\n      \"type\": \"object\",\n      \"additionalProperties\": {\n       \"type\": \"string\"\n      }\n     },\n     \"viewedByMe\": {\n      \"description\": \"Output only. Whether the file has been viewed by this user.\",\n      \"type\": \"boolean\"\n     },\n     \"size\": {\n      \"description\": \"Output only. Size in bytes of blobs and Google Workspace editor files. Won't be populated for files that have no size, like shortcuts and folders.\",\n      \"type\": \"string\",\n      \"format\": \"int64\"\n     },\n     \"name\": {\n      \"description\": \"The name of the file. This isn't necessarily unique within a folder. Note that for immutable items such as the top-level folders of shared drives, the My Drive root folder, and the Application Data folder, the name is constant.\",\n      \"type\": \"string\"\n     },\n     \"modifiedByMeTime\": {\n      \"description\": \"The last time the file was modified by the user (RFC 3339 date-time).\",\n      \"type\": \"string\",\n      \"format\": \"date-time\"\n     },\n     \"viewedByMeTime\": {\n      \"description\": \"The last time the file was viewed by the user (RFC 3339 date-time).\",\n      \"type\": \"string\",\n      \"format\": \"date-time\"\n     },\n     \"copyRequiresWriterPermission\": {\n      \"description\": \"Whether the options to copy, print, or download this file should be disabled for readers and commenters.\",\n      \"type\": \"boolean\"\n     },\n     \"sharingUser\": {\n      \"$ref\": \"#/components/schemas/User\"\n     },\n     \"permissions\": {\n      \"description\": \"Output only. The full list of permissions for the file. This is only available if the requesting user can share the file. Not populated for items in shared drives.\",\n      \"type\": \"array\",\n      \"items\": {\n       \"$ref\": \"#/components/schemas/Permission\"\n      }\n     },\n     \"writersCanShare\": {\n      \"description\": \"Whether users with only `writer` permission can modify the file's permissions. Not populated for items in shared drives.\",\n      \"type\": \"boolean\"\n     },\n     \"inheritedPermissionsDisabled\": {\n      \"description\": \"Whether this file has inherited permissions disabled. Inherited permissions are enabled by default.\",\n      \"type\": \"boolean\"\n     },\n     \"hasAugmentedPermissions\": {\n      \"description\": \"Output only. Whether there are permissions directly on this file. This field is only populated for items in shared drives.\",\n      \"type\": \"boolean\"\n     },\n     \"modifiedByMe\": {\n      \"description\": \"Output only. Whether the file has been modified by this user.\",\n      \"type\": \"boolean\"\n     },\n     \"shared\": {\n      \"description\": \"Output only. Whether the file has been shared. Not populated for items in shared drives.\",\n      \"type\": \"boolean\"\n     },\n     \"webViewLink\": {\n      \"description\": \"Output only. A link for opening the file in a relevant Google editor or viewer in a browser.\",\n      \"type\": \"string\"\n     },\n     \"viewersCanCopyContent\": {\n      \"description\": \"Deprecated: Use `copyRequiresWriterPermission` instead.\",\n      \"type\": \"boolean\"\n     },\n     \"linkShareMetadata\": {\n      \"description\": \"Contains details about the link URLs that clients are using to refer to this item.\",\n      \"type\": \"object\",\n      \"properties\": {\n       \"securityUpdateEnabled\": {\n        \"description\": \"Output only. Whether the security update is enabled for this file.\",\n        \"type\": \"boolean\"\n       },\n       \"securityUpdateEligible\": {\n        \"description\": \"Output only. Whether the file is eligible for security update.\",\n        \"type\": \"boolean\"\n       }\n      }\n     },\n     \"ownedByMe\": {\n      \"description\": \"Output only. Whether the user owns the file. Not populated for items in shared drives.\",\n      \"type\": \"boolean\"\n     },\n     \"isAppAuthorized\": {\n      \"description\": \"Output only. Whether the file was created or opened by the requesting app.\",\n      \"type\": \"boolean\"\n     },\n     \"videoMediaMetadata\": {\n      \"description\": \"Output only. Additional metadata about video media. This may not be available immediately upon upload.\",\n      \"type\": \"object\",\n      \"properties\": {\n       \"height\": {\n        \"description\": \"Output only. The height of the video in pixels.\",\n        \"type\": \"integer\",\n        \"format\": \"int32\"\n       },\n       \"width\": {\n        \"description\": \"Output only. The width of the video in pixels.\",\n        \"type\": \"integer\",\n        \"format\": \"int32\"\n       },\n       \"durationMillis\": {\n        \"description\": \"Output only. The duration of the video in milliseconds.\",\n        \"type\": \"string\",\n        \"format\": \"int64\"\n       }\n      }\n     },\n     \"spaces\": {\n      \"description\": \"Output only. The list of spaces which contain the file. The currently supported values are `drive`, `appDataFolder`, and `photos`.\",\n      \"type\": \"array\",\n      \"items\": {\n       \"type\": \"string\"\n      }\n     },\n     \"md5Checksum\": {\n      \"description\": \"Output only. The MD5 checksum for the content of the file. This is only applicable to files with binary content in Google Drive.\",\n      \"type\": \"string\"\n     },\n     \"mimeType\": {\n      \"description\": \"The MIME type of the file. Google Drive attempts to automatically detect an appropriate value from uploaded content, if no value is provided. The value cannot be changed unless a new revision is uploaded. If a file is created with a Google Doc MIME type, the uploaded content is imported, if possible. The supported import formats are published in the [`about`](/workspace/drive/api/reference/rest/v3/about) resource.\",\n      \"type\": \"string\"\n     },\n     \"resourceKey\": {\n      \"description\": \"Output only. A key needed to access the item via a shared link.\",\n      \"type\": \"string\"\n     },\n     \"version\": {\n      \"description\": \"Output only. A monotonically increasing version number for the file. This reflects every change made to the file on the server, even those not visible to the user.\",\n      \"type\": \"string\",\n      \"format\": \"int64\"\n     },\n     \"kind\": {\n      \"description\": \"Output only. Identifies what kind of resource this is. Value: the fixed string `\\\"drive#file\\\"`.\",\n      \"type\": \"string\"\n     },\n     \"driveId\": {\n      \"description\": \"Output only. ID of the shared drive the file resides in. Only populated for items in shared drives.\",\n      \"type\": \"string\"\n     },\n     \"clientEncryptionDetails\": {\n      \"$ref\": \"#/components/schemas/ClientEncryptionDetails\"\n     },\n     \"webContentLink\": {\n      \"description\": \"Output only. A link for downloading the content of the file in a browser. This is only available for files with binary content in Google Drive.\",\n      \"type\": \"string\"\n     },\n     \"permissionIds\": {\n      \"description\": \"Output only. List of permission IDs for users with access to this file.\",\n      \"type\": \"array\",\n      \"items\": {\n       \"type\": \"string\"\n      }\n     },\n     \"fileExtension\": {\n      \"description\": \"Output only. The final component of `fullFileExtension`. This is only available for files with binary content in Google Drive.\",\n      \"type\": \"string\"\n     },\n     \"appProperties\": {\n      \"description\": \"A collection of arbitrary key-value pairs which are private to the requesting app.\\nEntries with null values are cleared in update and copy requests. These properties can only be retrieved using an authenticated request. An authenticated request uses an access token obtained with a OAuth 2 client ID. You cannot use an API key to retrieve private properties.\",\n      \"type\": \"object\",\n      \"additionalProperties\": {\n       \"type\": \"string\"\n      }\n     },\n     \"capabilities\": {\n      \"description\": \"Output only. Capabilities the current user has on this file. Each capability corresponds to a fine-grained action that a user may take. For more information, see [Understand file capabilities](https://developers.google.com/workspace/drive/api/guides/manage-sharing#capabilities).\",\n      \"type\": \"object\",\n      \"properties\": {\n       \"canTrash\": {\n        \"description\": \"Output only. Whether the current user can move this file to trash.\",\n        \"type\": \"boolean\"\n       },\n       \"canModifyEditorContentRestriction\": {\n        \"description\": \"Output only. Whether the current user can add or modify content restrictions on the file which are editor restricted.\",\n        \"type\": \"boolean\"\n       },\n       \"canRemoveChildren\": {\n        \"description\": \"Output only. Whether the current user can remove children from this folder. This is always `false` when the item isn't a folder. For a folder in a shared drive, use `canDeleteChildren` or `canTrashChildren` instead.\",\n        \"type\": \"boolean\"\n       },\n       \"canShare\": {\n        \"description\": \"Output only. Whether the current user can modify the sharing settings for this file.\",\n        \"type\": \"boolean\"\n       },\n       \"canMoveChildrenOutOfDrive\": {\n        \"description\": \"Output only. Whether the current user can move children of this folder outside of the shared drive. This is `false` when the item isn't a folder. Only populated for items in shared drives.\",\n        \"type\": \"boolean\"\n       },\n       \"canMoveItemIntoTeamDrive\": {\n        \"description\": \"Deprecated: Output only. Use `canMoveItemOutOfDrive` instead.\",\n        \"type\": \"boolean\"\n       },\n       \"canChangeViewersCanCopyContent\": {\n        \"description\": \"Deprecated: Output only.\",\n        \"type\": \"boolean\"\n       },\n       \"canComment\": {\n        \"description\": \"Output only. Whether the current user can comment on this file.\",\n        \"type\": \"boolean\"\n       },\n       \"canMoveItemOutOfDrive\": {\n        \"description\": \"Output only. Whether the current user can move this item outside of this drive by changing its parent. Note that a request to change the parent of the item may still fail depending on the new parent that's being added.\",\n        \"type\": \"boolean\"\n       },\n       \"canModifyContent\": {\n        \"description\": \"Output only. Whether the current user can modify the content of this file.\",\n        \"type\": \"boolean\"\n       },\n       \"canUntrash\": {\n        \"description\": \"Output only. Whether the current user can restore this file from trash.\",\n        \"type\": \"boolean\"\n       },\n       \"canListChildren\": {\n        \"description\": \"Output only. Whether the current user can list the children of this folder. This is always `false` when the item isn't a folder.\",\n        \"type\": \"boolean\"\n       },\n       \"canReadDrive\": {\n        \"description\": \"Output only. Whether the current user can read the shared drive to which this file belongs. Only populated for items in shared drives.\",\n        \"type\": \"boolean\"\n       },\n       \"canMoveChildrenWithinDrive\": {\n        \"description\": \"Output only. Whether the current user can move children of this folder within this drive. This is `false` when the item isn't a folder. Note that a request to move the child may still fail depending on the current user's access to the child and to the destination folder.\",\n        \"type\": \"boolean\"\n       },\n       \"canReadLabels\": {\n        \"description\": \"Output only. Whether the current user can read the labels on the file.\",\n        \"type\": \"boolean\"\n       },\n       \"canMoveTeamDriveItem\": {\n        \"description\": \"Deprecated: Output only. Use `canMoveItemWithinDrive` or `canMoveItemOutOfDrive` instead.\",\n        \"type\": \"boolean\"\n       },\n       \"canModifyOwnerContentRestriction\": {\n        \"description\": \"Output only. Whether the current user can add or modify content restrictions which are owner restricted.\",\n        \"type\": \"boolean\"\n       },\n       \"canTrashChildren\": {\n        \"description\": \"Output only. Whether the current user can trash children of this folder. This is `false` when the item isn't a folder. Only populated for items in shared drives.\",\n        \"type\": \"boolean\"\n       },\n       \"canReadRevisions\": {\n        \"description\": \"Output only. Whether the current user can read the revisions resource of this file. For a shared drive item, whether revisions of non-folder descendants of this item, or this item if it's not a folder, can be read.\",\n        \"type\": \"boolean\"\n       },\n       \"canRemoveContentRestriction\": {\n        \"description\": \"Output only. Whether there's a content restriction on the file that can be removed by the current user.\",\n        \"type\": \"boolean\"\n       },\n       \"canMoveItemWithinDrive\": {\n        \"description\": \"Output only. Whether the current user can move this item within this drive. Note that a request to change the parent of the item may still fail depending on the new parent that's being added and the parent that is being removed.\",\n        \"type\": \"boolean\"\n       },\n       \"canDeleteChildren\": {\n        \"description\": \"Output only. Whether the current user can delete children of this folder. This is `false` when the item isn't a folder. Only populated for items in shared drives.\",\n        \"type\": \"boolean\"\n       },\n       \"canDelete\": {\n        \"description\": \"Output only. Whether the current user can delete this file.\",\n        \"type\": \"boolean\"\n       },\n       \"canRename\": {\n        \"description\": \"Output only. Whether the current user can rename this file.\",\n        \"type\": \"boolean\"\n       },\n       \"canReadTeamDrive\": {\n        \"description\": \"Deprecated: Output only. Use `canReadDrive` instead.\",\n        \"type\": \"boolean\"\n       },\n       \"canRemoveMyDriveParent\": {\n        \"description\": \"Output only. Whether the current user can remove a parent from the item without adding another parent in the same request. Not populated for shared drive files.\",\n        \"type\": \"boolean\"\n       },\n       \"canDownload\": {\n        \"description\": \"Output only. Whether the current user can download this file.\",\n        \"type\": \"boolean\"\n       },\n       \"canEdit\": {\n        \"description\": \"Output only. Whether the current user can edit this file. Other factors may limit the type of changes a user can make to a file. For example, see `canChangeCopyRequiresWriterPermission` or `canModifyContent`.\",\n        \"type\": \"boolean\"\n       },\n       \"canEnableInheritedPermissions\": {\n        \"description\": \"Whether a user can re-enable inherited permissions.\",\n        \"type\": \"boolean\"\n       },\n       \"canChangeCopyRequiresWriterPermission\": {\n        \"description\": \"Output only. Whether the current user can change the `copyRequiresWriterPermission` restriction of this file.\",\n        \"type\": \"boolean\"\n       },\n       \"canChangeItemDownloadRestriction\": {\n        \"description\": \"Output only. Whether the current user can change the owner or organizer-applied download restrictions of the file.\",\n        \"type\": \"boolean\"\n       },\n       \"canMoveChildrenOutOfTeamDrive\": {\n        \"description\": \"Deprecated: Output only. Use `canMoveChildrenOutOfDrive` instead.\",\n        \"type\": \"boolean\"\n       },\n       \"canModifyContentRestriction\": {\n        \"description\": \"Deprecated: Output only. Use one of `canModifyEditorContentRestriction`, `canModifyOwnerContentRestriction`, or `canRemoveContentRestriction`.\",\n        \"type\": \"boolean\"\n       },\n       \"canAcceptOwnership\": {\n        \"description\": \"Output only. Whether the current user is the pending owner of the file. Not populated for shared drive files.\",\n        \"type\": \"boolean\"\n       },\n       \"canMoveItemOutOfTeamDrive\": {\n        \"description\": \"Deprecated: Output only. Use `canMoveItemOutOfDrive` instead.\",\n        \"type\": \"boolean\"\n       },\n       \"canModifyLabels\": {\n        \"description\": \"Output only. Whether the current user can modify the labels on the file.\",\n        \"type\": \"boolean\"\n       },\n       \"canMoveChildrenWithinTeamDrive\": {\n        \"description\": \"Deprecated: Output only. Use `canMoveChildrenWithinDrive` instead.\",\n        \"type\": \"boolean\"\n       },\n       \"canAccessViaGenAi\": {\n        \"description\": \"Whether the current user can access this file via Gen AI features. For more information, see [Drive MCP file eligibility](https://developers.google.com/workspace/drive/api/guides/drive-mcp-server-file-eligibility).\",\n        \"type\": \"boolean\"\n       },\n       \"canChangeSecurityUpdateEnabled\": {\n        \"description\": \"Output only. Whether the current user can change the `securityUpdateEnabled` field on link share metadata.\",\n        \"type\": \"boolean\"\n       },\n       \"canStartApproval\": {\n        \"description\": \"Whether the current user can start an approval on the file.\",\n        \"type\": \"boolean\"\n       },\n       \"canDisableInheritedPermissions\": {\n        \"description\": \"Whether a user can disable inherited permissions.\",\n        \"type\": \"boolean\"\n       },\n       \"canCopy\": {\n        \"description\": \"Output only. Whether the current user can copy this file. For an item in a shared drive, whether the current user can copy non-folder descendants of this item, or this item if it's not a folder.\",\n        \"type\": \"boolean\"\n       },\n       \"canAddFolderFromAnotherDrive\": {\n        \"description\": \"Output only. Whether the current user can add a folder from another drive (different shared drive or My Drive) to this folder. This is `false` when the item isn't a folder. Only populated for items in shared drives.\",\n        \"type\": \"boolean\"\n       },\n       \"canAddMyDriveParent\": {\n        \"description\": \"Output only. Whether the current user can add a parent for the item without removing an existing parent in the same request. Not populated for shared drive files.\",\n        \"type\": \"boolean\"\n       },\n       \"canAddChildren\": {\n        \"description\": \"Output only. Whether the current user can add children to this folder. This is always `false` when the item isn't a folder.\",\n        \"type\": \"boolean\"\n       },\n       \"canMoveItemWithinTeamDrive\": {\n        \"description\": \"Deprecated: Output only. Use `canMoveItemWithinDrive` instead.\",\n        \"type\": \"boolean\"\n       }\n      }\n     },\n     \"teamDriveId\": {\n      \"description\": \"Deprecated: Output only. Use `driveId` instead.\",\n      \"type\": \"string\"\n     },\n     \"folderColorRgb\": {\n      \"description\": \"The color for a folder or a shortcut to a folder as an RGB hex string. The supported colors are published in the `folderColorPalette` field of the [`about`](/workspace/drive/api/reference/rest/v3/about) resource. If an unsupported color is specified, the closest color in the palette is used instead.\",\n      \"type\": \"string\"\n     },\n     \"thumbnailVersion\": {\n      \"description\": \"Output only. The thumbnail version for use in thumbnail cache invalidation.\",\n      \"type\": \"string\",\n      \"format\": \"int64\"\n     },\n     \"fullFileExtension\": {\n      \"description\": \"Output only. The full file extension extracted from the `name` field. May contain multiple concatenated extensions, such as \\\"tar.gz\\\". This is only available for files with binary content in Google Drive. This is automatically updated when the `name` field changes, however it's not cleared if the new name doesn't contain a valid extension.\",\n      \"type\": \"string\"\n     },\n     \"headRevisionId\": {\n      \"description\": \"Output only. The ID of the file's head revision. This is currently only available for files with binary content in Google Drive.\",\n      \"type\": \"string\"\n     },\n     \"id\": {\n      \"description\": \"The ID of the file.\",\n      \"type\": \"string\"\n     }\n    }\n   },\n   \"ContentRestriction\": {\n    \"description\": \"A restriction for accessing the content of the file.\",\n    \"type\": \"object\",\n    \"properties\": {\n     \"type\": {\n      \"description\": \"Output only. The type of the content restriction. Currently the only possible value is `globalContentRestriction`.\",\n      \"type\": \"string\"\n     },\n     \"reason\": {\n      \"description\": \"Reason for why the content of the file is restricted. This is only mutable on requests that also set `readOnly=true`.\",\n      \"type\": \"string\"\n     },\n     \"systemRestricted\": {\n      \"description\": \"Output only. Whether the content restriction was applied by the system, for example due to an esignature. Users cannot modify or remove system restricted content restrictions.\",\n      \"type\": \"boolean\"\n     },\n     \"readOnly\": {\n      \"description\": \"Whether the content of the file is read-only. If a file is read-only, a new revision of the file may not be added, comments may not be added or modified, and the title of the file may not be modified.\",\n      \"type\": \"boolean\"\n     },\n     \"restrictingUser\": {\n      \"$ref\": \"#/components/schemas/User\"\n     },\n     \"ownerRestricted\": {\n      \"description\": \"Whether the content restriction can only be modified or removed by a user who owns the file. For files in shared drives, any user with `organizer` capabilities can modify or remove this content restriction.\",\n      \"type\": \"boolean\"\n     },\n     \"restrictionTime\": {\n      \"description\": \"The time at which the content restriction was set (formatted RFC 3339 timestamp). Only populated if readOnly is true.\",\n      \"type\": \"string\",\n      \"format\": \"date-time\"\n     }\n    }\n   },\n   \"DriveList\": {\n    \"description\": \"A list of shared drives.\",\n    \"type\": \"object\",\n    \"properties\": {\n     \"drives\": {\n      \"description\": \"The list of shared drives. If nextPageToken is populated, then this list may be incomplete and an additional page of results should be fetched.\",\n      \"type\": \"array\",\n      \"items\": {\n       \"$ref\": \"#/components/schemas/Drive\"\n      }\n     },\n     \"nextPageToken\": {\n      \"description\": \"The page token for the next page of shared drives. This will be absent if the end of the list has been reached. If the token is rejected for any reason, it should be discarded, and pagination should be restarted from the first page of results. The page token is typically valid for several hours. However, if new items are added or removed, your expected results might differ.\",\n      \"type\": \"string\"\n     },\n     \"kind\": {\n      \"description\": \"Identifies what kind of resource this is. Value: the fixed string `\\\"drive#driveList\\\"`.\",\n      \"type\": \"string\"\n     }\n    }\n   },\n   \"App\": {\n    \"description\": \"The `apps` resource provides a list of apps that a user has installed, with information about each app's supported MIME types, file extensions, and other details. Some resource methods (such as `apps.get`) require an `appId`. Use the `apps.list` method to retrieve the ID for an installed application.\",\n    \"type\": \"object\",\n    \"properties\": {\n     \"primaryFileExtensions\": {\n      \"description\": \"The list of primary file extensions.\",\n      \"type\": \"array\",\n      \"items\": {\n       \"type\": \"string\"\n      }\n     },\n     \"icons\": {\n      \"description\": \"The various icons for the app.\",\n      \"type\": \"array\",\n      \"items\": {\n       \"$ref\": \"#/components/schemas/AppIcons\"\n      }\n     },\n     \"createUrl\": {\n      \"description\": \"The URL to create a file with this app.\",\n      \"type\": \"string\"\n     },\n     \"name\": {\n      \"description\": \"The name of the app.\",\n      \"type\": \"string\"\n     },\n     \"supportsOfflineCreate\": {\n      \"description\": \"Whether this app supports creating files when offline.\",\n      \"type\": \"boolean\"\n     },\n     \"supportsCreate\": {\n      \"description\": \"Whether this app supports creating objects.\",\n      \"type\": \"boolean\"\n     },\n     \"productUrl\": {\n      \"description\": \"A link to the product listing for this app.\",\n      \"type\": \"string\"\n     },\n     \"secondaryFileExtensions\": {\n      \"description\": \"The list of secondary file extensions.\",\n      \"type\": \"array\",\n      \"items\": {\n       \"type\": \"string\"\n      }\n     },\n     \"longDescription\": {\n      \"description\": \"A long description of the app.\",\n      \"type\": \"string\"\n     },\n     \"id\": {\n      \"description\": \"The ID of the app.\",\n      \"type\": \"string\"\n     },\n     \"createInFolderTemplate\": {\n      \"description\": \"The template URL to create a file with this app in a given folder. The template contains the {folderId} to be replaced by the folder ID house the new file.\",\n      \"type\": \"string\"\n     },\n     \"hasDriveWideScope\": {\n      \"description\": \"Whether the app has Drive-wide scope. An app with Drive-wide scope can access all files in the user's Drive.\",\n      \"type\": \"boolean\"\n     },\n     \"openUrlTemplate\": {\n      \"description\": \"The template URL for opening files with this app. The template contains {ids} or {exportIds} to be replaced by the actual file IDs. For more information, see Open Files for the full documentation.\",\n      \"type\": \"string\"\n     },\n     \"shortDescription\": {\n      \"description\": \"A short description of the app.\",\n      \"type\": \"string\"\n     },\n     \"supportsImport\": {\n      \"description\": \"Whether this app supports importing from Google Docs.\",\n      \"type\": \"boolean\"\n     },\n     \"secondaryMimeTypes\": {\n      \"description\": \"The list of secondary MIME types.\",\n      \"type\": \"array\",\n      \"items\": {\n       \"type\": \"string\"\n      }\n     },\n     \"useByDefault\": {\n      \"description\": \"Whether the app is selected as the default handler for the types it supports.\",\n      \"type\": \"boolean\"\n     },\n     \"kind\": {\n      \"description\": \"Output only. Identifies what kind of resource this is. Value: the fixed string \\\"drive#app\\\".\",\n      \"type\": \"string\"\n     },\n     \"primaryMimeTypes\": {\n      \"description\": \"The list of primary MIME types.\",\n      \"type\": \"array\",\n      \"items\": {\n       \"type\": \"string\"\n      }\n     },\n     \"productId\": {\n      \"description\": \"The ID of the product listing for this app.\",\n      \"type\": \"string\"\n     },\n     \"objectType\": {\n      \"description\": \"The type of object this app creates such as a Chart. If empty, the app name should be used instead.\",\n      \"type\": \"string\"\n     },\n     \"supportsMultiOpen\": {\n      \"description\": \"Whether this app supports opening more than one file.\",\n      \"type\": \"boolean\"\n     },\n     \"installed\": {\n      \"description\": \"Whether the app is installed.\",\n      \"type\": \"boolean\"\n     },\n     \"authorized\": {\n      \"description\": \"Whether the app is authorized to access data on the user's Drive.\",\n      \"type\": \"boolean\"\n     }\n    }\n   },\n   \"CancelApprovalRequest\": {\n    \"description\": \"Request for cancelling an approval as an initiator.\",\n    \"type\": \"object\",\n    \"properties\": {\n     \"message\": {\n      \"description\": \"Optional. A message to accompany the cancellation of the approval. This message is included in notifications for the action and in the approval activity log.\",\n      \"type\": \"string\"\n     }\n    }\n   },\n   \"DecryptionMetadata\": {\n    \"description\": \"Representation of the CSE DecryptionMetadata.\",\n    \"type\": \"object\",\n    \"properties\": {\n     \"aes256GcmChunkSize\": {\n      \"description\": \"Chunk size used if content was encrypted with the AES 256 GCM Cipher. Possible values are: - default - small \",\n      \"type\": \"string\"\n     },\n     \"kaclsName\": {\n      \"description\": \"The name of the KACLS (Key ACL Service) used to encrypt the file.\",\n      \"type\": \"string\"\n     },\n     \"kaclsId\": {\n      \"description\": \"The ID of the KACLS (Key ACL Service) used to encrypt the file.\",\n      \"type\": \"string\",\n      \"format\": \"int64\"\n     },\n     \"keyFormat\": {\n      \"description\": \"Key format for the unwrapped key. Must be `tinkAesGcmKey`.\",\n      \"type\": \"string\"\n     },\n     \"wrappedKey\": {\n      \"description\": \"The URL-safe Base64 encoded wrapped key used to encrypt the contents of the file.\",\n      \"type\": \"string\"\n     },\n     \"encryptionResourceKeyHash\": {\n      \"description\": \"The URL-safe Base64 encoded HMAC-SHA256 digest of the resource metadata with its DEK (Data Encryption Key); see https://developers.google.com/workspace/cse/reference\",\n      \"type\": \"string\"\n     },\n     \"jwt\": {\n      \"description\": \"The signed JSON Web Token (JWT) which can be used to authorize the requesting user with the Key ACL Service (KACLS). The JWT asserts that the requesting user has at least read permissions on the file.\",\n      \"type\": \"string\"\n     }\n    }\n   },\n   \"Permission\": {\n    \"description\": \"A permission for a file. A permission grants a user, group, domain, or the world access to a file or a folder hierarchy. For more information, see [Share files, folders, and drives](https://developers.google.com/workspace/drive/api/guides/manage-sharing). By default, permission requests only return a subset of fields. Permission `kind`, `ID`, `type`, and `role` are always returned. To retrieve specific fields, see [Return specific fields](https://developers.google.com/workspace/drive/api/guides/fields-parameter). Some resource methods (such as `permissions.update`) require a `permissionId`. Use the `permissions.list` method to retrieve the ID for a file, folder, or shared drive.\",\n    \"type\": \"object\",\n    \"properties\": {\n     \"type\": {\n      \"description\": \"The type of the grantee. Supported values include: * `user` * `group` * `domain` * `anyone` When creating a permission, if `type` is `user` or `group`, you must provide an `emailAddress` for the user or group. If `type` is `domain`, you must provide a `domain`. If `type` is `anyone`, no extra information is required.\",\n      \"type\": \"string\"\n     },\n     \"domain\": {\n      \"description\": \"Output only. The domain to which this permission refers.\",\n      \"type\": \"string\"\n     },\n     \"deleted\": {\n      \"description\": \"Output only. Whether the account associated with this permission has been deleted. This field only pertains to permissions of type `user` or `group`.\",\n      \"type\": \"boolean\"\n     },\n     \"emailAddress\": {\n      \"description\": \"Output only. The email address of the user or group to which this permission refers.\",\n      \"type\": \"string\"\n     },\n     \"kind\": {\n      \"description\": \"Output only. Identifies what kind of resource this is. Value: the fixed string `\\\"drive#permission\\\"`.\",\n      \"type\": \"string\"\n     },\n     \"expirationTime\": {\n      \"description\": \"The time at which this permission will expire (RFC 3339 date-time). Expiration times have the following restrictions: - They can only be set on user and group permissions - The time must be in the future - The time cannot be more than a year in the future\",\n      \"type\": \"string\",\n      \"format\": \"date-time\"\n     },\n     \"teamDrivePermissionDetails\": {\n      \"description\": \"Output only. Deprecated: Output only. Use `permissionDetails` instead.\",\n      \"type\": \"array\",\n      \"items\": {\n       \"type\": \"object\",\n       \"properties\": {\n        \"teamDrivePermissionType\": {\n         \"description\": \"Deprecated: Output only. Use `permissionDetails/permissionType` instead.\",\n         \"type\": \"string\"\n        },\n        \"inherited\": {\n         \"description\": \"Deprecated: Output only. Use `permissionDetails/inherited` instead.\",\n         \"type\": \"boolean\"\n        },\n        \"inheritedFrom\": {\n         \"description\": \"Deprecated: Output only. Use `permissionDetails/inheritedFrom` instead.\",\n         \"type\": \"string\"\n        },\n        \"role\": {\n         \"description\": \"Deprecated: Output only. Use `permissionDetails/role` instead.\",\n         \"type\": \"string\"\n        }\n       }\n      }\n     },\n     \"id\": {\n      \"description\": \"Output only. The ID of this permission. This is a unique identifier for the grantee, and is published in the [User resource](https://developers.google.com/workspace/drive/api/reference/rest/v3/User) as `permissionId`. IDs should be treated as opaque values.\",\n      \"type\": \"string\"\n     },\n     \"pendingOwner\": {\n      \"description\": \"Whether the account associated with this permission is a pending owner. Only populated for permissions of type `user` for files that aren't in a shared drive.\",\n      \"type\": \"boolean\"\n     },\n     \"allowFileDiscovery\": {\n      \"description\": \"Whether the permission allows the file to be discovered through search. This is only applicable for permissions of type `domain` or `anyone`.\",\n      \"type\": \"boolean\"\n     },\n     \"inheritedPermissionsDisabled\": {\n      \"description\": \"When `true`, only organizers, owners, and users with permissions added directly on the item can access it.\",\n      \"type\": \"boolean\"\n     },\n     \"permissionDetails\": {\n      \"description\": \"Output only. Details of whether the permissions on this item are inherited or are directly on this item.\",\n      \"type\": \"array\",\n      \"items\": {\n       \"type\": \"object\",\n       \"properties\": {\n        \"role\": {\n         \"description\": \"Output only. The primary role for this user. Supported values include: * `owner` * `organizer` * `fileOrganizer` * `writer` * `commenter` * `reader` For more information, see [Roles and permissions](https://developers.google.com/workspace/drive/api/guides/ref-roles).\",\n         \"type\": \"string\"\n        },\n        \"inheritedFrom\": {\n         \"description\": \"Output only. The ID of the item from which this permission is inherited. This is only populated for items in shared drives.\",\n         \"type\": \"string\"\n        },\n        \"inherited\": {\n         \"description\": \"Output only. Whether this permission is inherited. This field is always populated. This is an output-only field.\",\n         \"type\": \"boolean\"\n        },\n        \"permissionType\": {\n         \"description\": \"Output only. The permission type for this user. Supported values include: * `file` * `member`\",\n         \"type\": \"string\"\n        }\n       }\n      }\n     },\n     \"displayName\": {\n      \"description\": \"Output only. The \\\"pretty\\\" name of the value of the permission. The following is a list of examples for each type of permission: * `user` - User's full name, as defined for their Google Account, such as \\\"Dana A.\\\" * `group` - Name of the Google Group, such as \\\"The Company Administrators.\\\" * `domain` - String domain name, such as \\\"cymbalgroup.com.\\\" * `anyone` - No `displayName` is present.\",\n      \"type\": \"string\"\n     },\n     \"role\": {\n      \"description\": \"The role granted by this permission. Supported values include: * `owner` * `organizer` * `fileOrganizer` * `writer` * `commenter` * `reader` For more information, see [Roles and permissions](https://developers.google.com/workspace/drive/api/guides/ref-roles).\",\n      \"type\": \"string\"\n     },\n     \"photoLink\": {\n      \"description\": \"Output only. A link to the user's profile photo, if available.\",\n      \"type\": \"string\"\n     },\n     \"view\": {\n      \"description\": \"Indicates the view for this permission. Only populated for permissions that belong to a view. The only supported values are `published` and `metadata`: * `published`: The permission's role is `publishedReader`. * `metadata`: The item is only visible to the `metadata` view because the item has limited access and the scope has at least read access to the parent. The `metadata` view is only supported on folders. For more information, see [Views](https://developers.google.com/workspace/drive/api/guides/ref-roles#views).\",\n      \"type\": \"string\"\n     }\n    }\n   },\n   \"AddReviewer\": {\n    \"description\": \"Representation of a reviewer addition.\",\n    \"type\": \"object\",\n    \"properties\": {\n     \"addedReviewerEmail\": {\n      \"description\": \"Required. The email of the reviewer to add.\",\n      \"type\": \"string\"\n     }\n    }\n   },\n   \"AccessProposalRoleAndView\": {\n    \"description\": \"A wrapper for the role and view of an access proposal. For more information, see [Roles and permissions](https://developers.google.com/workspace/drive/api/guides/ref-roles).\",\n    \"type\": \"object\",\n    \"properties\": {\n     \"role\": {\n      \"description\": \"The role that was proposed by the requester. The supported values are: * `writer` * `commenter` * `reader`\",\n      \"type\": \"string\"\n     },\n     \"view\": {\n      \"description\": \"Indicates the view for this access proposal. Only populated for proposals that belong to a view. Only `published` is supported.\",\n      \"type\": \"string\"\n     }\n    }\n   },\n   \"ApprovalList\": {\n    \"description\": \"The response of an approvals list request.\",\n    \"type\": \"object\",\n    \"properties\": {\n     \"kind\": {\n      \"description\": \"This is always drive#approvalList\",\n      \"type\": \"string\"\n     },\n     \"items\": {\n      \"description\": \"The list of approvals. If `nextPageToken` is populated, then this list may be incomplete and an additional page of results should be fetched.\",\n      \"type\": \"array\",\n      \"items\": {\n       \"$ref\": \"#/components/schemas/Approval\"\n      }\n     },\n     \"nextPageToken\": {\n      \"description\": \"The page token for the next page of approvals. This is absent if the end of the approvals list has been reached. If the token is rejected for any reason, it should be discarded, and pagination should be restarted from the first page of results.\",\n      \"type\": \"string\"\n     }\n    }\n   },\n   \"Approval\": {\n    \"description\": \"Metadata for an approval. An approval is a review or approve process for a Drive item.\",\n    \"type\": \"object\",\n    \"properties\": {\n     \"createTime\": {\n      \"description\": \"Output only. The time the approval was created.\",\n      \"type\": \"string\",\n      \"format\": \"google-datetime\"\n     },\n     \"modifyTime\": {\n      \"description\": \"Output only. The most recent time the approval was modified.\",\n      \"type\": \"string\",\n      \"format\": \"google-datetime\"\n     },\n     \"initiator\": {\n      \"$ref\": \"#/components/schemas/User\"\n     },\n     \"status\": {\n      \"description\": \"Output only. The status of the approval at the time this resource was requested.\",\n      \"type\": \"string\",\n      \"enum\": [\n       \"STATUS_UNSPECIFIED\",\n       \"IN_PROGRESS\",\n       \"APPROVED\",\n       \"CANCELLED\",\n       \"DECLINED\"\n      ]\n     },\n     \"completeTime\": {\n      \"description\": \"Output only. The time the approval was completed.\",\n      \"type\": \"string\",\n      \"format\": \"google-datetime\"\n     },\n     \"kind\": {\n      \"description\": \"This is always drive#approval.\",\n      \"type\": \"string\"\n     },\n     \"dueTime\": {\n      \"description\": \"The time that the approval is due.\",\n      \"type\": \"string\",\n      \"format\": \"google-datetime\"\n     },\n     \"reviewerResponses\": {\n      \"description\": \"The responses made on the approval by reviewers.\",\n      \"type\": \"array\",\n      \"items\": {\n       \"$ref\": \"#/components/schemas/ReviewerResponse\"\n      }\n     },\n     \"targetFileId\": {\n      \"description\": \"Target file id of the approval.\",\n      \"type\": \"string\"\n     },\n     \"approvalId\": {\n      \"description\": \"The approval ID.\",\n      \"type\": \"string\"\n     },\n     \"fileContentChangeBehavior\": {\n      \"description\": \"Output only. The behavior of the approval when the file content changes.\",\n      \"type\": \"string\",\n      \"enum\": [\n       \"FILE_CONTENT_CHANGE_BEHAVIOR_UNSPECIFIED\",\n       \"RESET_APPROVAL\",\n       \"NO_APPROVAL_ACTION\"\n      ]\n     }\n    }\n   },\n   \"CommentApprovalRequest\": {\n    \"description\": \"Request for commenting on an approval.\",\n    \"type\": \"object\",\n    \"properties\": {\n     \"message\": {\n      \"description\": \"Required. A message to comment on the approval. This message is included in notifications for the action and in the approval activity log.\",\n      \"type\": \"string\"\n     }\n    }\n   },\n   \"TeamDrive\": {\n    \"description\": \"Deprecated: use the drive collection instead. Next ID: 33\",\n    \"type\": \"object\",\n    \"properties\": {\n     \"restrictions\": {\n      \"description\": \"A set of restrictions that apply to this Team Drive or items inside this Team Drive.\",\n      \"type\": \"object\",\n      \"properties\": {\n       \"teamMembersOnly\": {\n        \"description\": \"Whether access to items inside this Team Drive is restricted to members of this Team Drive.\",\n        \"type\": \"boolean\"\n       },\n       \"adminManagedRestrictions\": {\n        \"description\": \"Whether administrative privileges on this Team Drive are required to modify restrictions.\",\n        \"type\": \"boolean\"\n       },\n       \"sharingFoldersRequiresOrganizerPermission\": {\n        \"description\": \"If true, only users with the organizer role can share folders. If false, users with either the organizer role or the file organizer role can share folders.\",\n        \"type\": \"boolean\"\n       },\n       \"copyRequiresWriterPermission\": {\n        \"description\": \"Whether the options to copy, print, or download files inside this Team Drive, should be disabled for readers and commenters. When this restriction is set to `true`, it will override the similarly named field to `true` for any file inside this Team Drive.\",\n        \"type\": \"boolean\"\n       },\n       \"downloadRestriction\": {\n        \"$ref\": \"#/components/schemas/DownloadRestriction\"\n       },\n       \"domainUsersOnly\": {\n        \"description\": \"Whether access to this Team Drive and items inside this Team Drive is restricted to users of the domain to which this Team Drive belongs. This restriction may be overridden by other sharing policies controlled outside of this Team Drive.\",\n        \"type\": \"boolean\"\n       }\n      }\n     },\n     \"createdTime\": {\n      \"description\": \"The time at which the Team Drive was created (RFC 3339 date-time).\",\n      \"type\": \"string\",\n      \"format\": \"date-time\"\n     },\n     \"id\": {\n      \"description\": \"The ID of this Team Drive which is also the ID of the top level folder of this Team Drive.\",\n      \"type\": \"string\"\n     },\n     \"name\": {\n      \"description\": \"The name of this Team Drive.\",\n      \"type\": \"string\"\n     },\n     \"themeId\": {\n      \"description\": \"The ID of the theme from which the background image and color will be set. The set of possible `teamDriveThemes` can be retrieved from a `drive.about.get` response. When not specified on a `drive.teamdrives.create` request, a random theme is chosen from which the background image and color are set. This is a write-only field; it can only be set on requests that don't set `colorRgb` or `backgroundImageFile`.\",\n      \"type\": \"string\"\n     },\n     \"colorRgb\": {\n      \"description\": \"The color of this Team Drive as an RGB hex string. It can only be set on a `drive.teamdrives.update` request that does not set `themeId`.\",\n      \"type\": \"string\"\n     },\n     \"backgroundImageLink\": {\n      \"description\": \"A short-lived link to this Team Drive's background image.\",\n      \"type\": \"string\"\n     },\n     \"backgroundImageFile\": {\n      \"description\": \"The background image file for a Team Drive.\",\n      \"type\": \"object\",\n      \"properties\": {\n       \"id\": {\n        \"description\": \"The ID of an image file in Drive to use for the background image.\",\n        \"type\": \"string\"\n       },\n       \"xCoordinate\": {\n        \"description\": \"The X coordinate of the upper left corner of the cropping area in the background image. This is a value in the closed range of 0 to 1. This value represents the horizontal distance from the left side of the entire image to the left side of the cropping area divided by the width of the entire image.\",\n        \"type\": \"number\",\n        \"format\": \"float\"\n       },\n       \"width\": {\n        \"description\": \"The width of the cropped image in the closed range of 0 to 1. This value represents the width of the cropped image divided by the width of the entire image. The height is computed by applying a width to height aspect ratio of 80 to 9. The resulting image must be at least 1280 pixels wide and 144 pixels high.\",\n        \"type\": \"number\",\n        \"format\": \"float\"\n       },\n       \"yCoordinate\": {\n        \"description\": \"The Y coordinate of the upper left corner of the cropping area in the background image. This is a value in the closed range of 0 to 1. This value represents the vertical distance from the top side of the entire image to the top side of the cropping area divided by the height of the entire image.\",\n        \"type\": \"number\",\n        \"format\": \"float\"\n       }\n      }\n     },\n     \"capabilities\": {\n      \"description\": \"Capabilities the current user has on this Team Drive.\",\n      \"type\": \"object\",\n      \"properties\": {\n       \"canDeleteTeamDrive\": {\n        \"description\": \"Whether the current user can delete this Team Drive. Attempting to delete the Team Drive may still fail if there are untrashed items inside the Team Drive.\",\n        \"type\": \"boolean\"\n       },\n       \"canComment\": {\n        \"description\": \"Whether the current user can comment on files in this Team Drive.\",\n        \"type\": \"boolean\"\n       },\n       \"canRename\": {\n        \"description\": \"Whether the current user can rename files or folders in this Team Drive.\",\n        \"type\": \"boolean\"\n       },\n       \"canChangeDownloadRestriction\": {\n        \"description\": \"Output only. Whether the current user can change organizer-applied download restrictions of this shared drive.\",\n        \"type\": \"boolean\"\n       },\n       \"canEdit\": {\n        \"description\": \"Whether the current user can edit files in this Team Drive\",\n        \"type\": \"boolean\"\n       },\n       \"canChangeDomainUsersOnlyRestriction\": {\n        \"description\": \"Whether the current user can change the `domainUsersOnly` restriction of this Team Drive.\",\n        \"type\": \"boolean\"\n       },\n       \"canTrashChildren\": {\n        \"description\": \"Whether the current user can trash children from folders in this Team Drive.\",\n        \"type\": \"boolean\"\n       },\n       \"canReadRevisions\": {\n        \"description\": \"Whether the current user can read the revisions resource of files in this Team Drive.\",\n        \"type\": \"boolean\"\n       },\n       \"canRenameTeamDrive\": {\n        \"description\": \"Whether the current user can rename this Team Drive.\",\n        \"type\": \"boolean\"\n       },\n       \"canRemoveChildren\": {\n        \"description\": \"Deprecated: Use `canDeleteChildren` or `canTrashChildren` instead.\",\n        \"type\": \"boolean\"\n       },\n       \"canChangeTeamDriveBackground\": {\n        \"description\": \"Whether the current user can change the background of this Team Drive.\",\n        \"type\": \"boolean\"\n       },\n       \"canChangeTeamMembersOnlyRestriction\": {\n        \"description\": \"Whether the current user can change the `teamMembersOnly` restriction of this Team Drive.\",\n        \"type\": \"boolean\"\n       },\n       \"canDeleteChildren\": {\n        \"description\": \"Whether the current user can delete children from folders in this Team Drive.\",\n        \"type\": \"boolean\"\n       },\n       \"canCopy\": {\n        \"description\": \"Whether the current user can copy files in this Team Drive.\",\n        \"type\": \"boolean\"\n       },\n       \"canManageMembers\": {\n        \"description\": \"Whether the current user can add members to this Team Drive or remove them or change their role.\",\n        \"type\": \"boolean\"\n       },\n       \"canListChildren\": {\n        \"description\": \"Whether the current user can list the children of folders in this Team Drive.\",\n        \"type\": \"boolean\"\n       },\n       \"canResetTeamDriveRestrictions\": {\n        \"description\": \"Whether the current user can reset the Team Drive restrictions to defaults.\",\n        \"type\": \"boolean\"\n       },\n       \"canAddChildren\": {\n        \"description\": \"Whether the current user can add children to folders in this Team Drive.\",\n        \"type\": \"boolean\"\n       },\n       \"canDownload\": {\n        \"description\": \"Whether the current user can download files in this Team Drive.\",\n        \"type\": \"boolean\"\n       },\n       \"canChangeSharingFoldersRequiresOrganizerPermissionRestriction\": {\n        \"description\": \"Whether the current user can change the `sharingFoldersRequiresOrganizerPermission` restriction of this Team Drive.\",\n        \"type\": \"boolean\"\n       },\n       \"canShare\": {\n        \"description\": \"Whether the current user can share files or folders in this Team Drive.\",\n        \"type\": \"boolean\"\n       },\n       \"canChangeCopyRequiresWriterPermissionRestriction\": {\n        \"description\": \"Whether the current user can change the `copyRequiresWriterPermission` restriction of this Team Drive.\",\n        \"type\": \"boolean\"\n       }\n      }\n     },\n     \"orgUnitId\": {\n      \"description\": \"The organizational unit of this shared drive. This field is only populated on `drives.list` responses when the `useDomainAdminAccess` parameter is set to `true`.\",\n      \"type\": \"string\"\n     },\n     \"kind\": {\n      \"description\": \"Identifies what kind of resource this is. Value: the fixed string `\\\"drive#teamDrive\\\"`.\",\n      \"type\": \"string\"\n     }\n    }\n   },\n   \"ReassignApprovalRequest\": {\n    \"description\": \"Request for reassigning an approval. Reviewers can be added or replaced, but not removed.\",\n    \"type\": \"object\",\n    \"properties\": {\n     \"addReviewers\": {\n      \"description\": \"Optional. The list of reviewers to add.\",\n      \"type\": \"array\",\n      \"items\": {\n       \"$ref\": \"#/components/schemas/AddReviewer\"\n      }\n     },\n     \"message\": {\n      \"description\": \"Optional. A message to send to the new reviewers. This message is included in notifications for the action and in the approval activity log.\",\n      \"type\": \"string\"\n     },\n     \"replaceReviewers\": {\n      \"description\": \"Optional. The list of reviewer replacements.\",\n      \"type\": \"array\",\n      \"items\": {\n       \"$ref\": \"#/components/schemas/ReplaceReviewer\"\n      }\n     }\n    }\n   }\n  },\n  \"securitySchemes\": {\n   \"bearer\": {\n    \"type\": \"http\",\n    \"scheme\": \"bearer\"\n   }\n  }\n }\n}\n"},{"path":"icon.ts","content":"import type { AppIcon } from \"apps\";\n\n// Generated by scripts/icon.ts from the vendor's logo.\nexport const icons: readonly AppIcon[] = [\n  {\n    \"src\": \"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGVuYWJsZS1iYWNrZ3JvdW5kPSJuZXcgMCAwIDE5MiAxOTIiIGhlaWdodD0iMTkyIiB2aWV3Qm94PSIwIDAgMTkyIDE5MiIgd2lkdGg9IjE5MiI+PHJlY3QgZmlsbD0ibm9uZSIgaGVpZ2h0PSIxOTIiIHdpZHRoPSIxOTIiLz48Zz48Zz48cGF0aCBkPSJNMTI4LjMzLDEyMmw3LjU5LDI2LjE3bDE5Ljg5LDIxLjQyYzAsMCwwLDAsMCwwdjBjMi42OS0xLjU1LDQuOTgtMy44LDYuNTktNi41OWwxOC40OC0zMiBjMS42MS0yLjc4LDIuNDEtNS44OSwyLjQxLTlsLTI4LjM4LTUuNUwxMjguMzMsMTIyeiIgZmlsbD0iI0VBNDMzNSIvPjxwYXRoIGQ9Ik0xMjMuNDgsMTguNDFjLTIuNjktMS41NS01Ljc4LTIuNDEtOS0yLjQxSDc3LjUzYy0zLjIsMC02LjMyLDAuODgtOSwyLjQxbDAsMGw3Ljk2LDI2LjgxbDE5LjQ0LDIwLjY0IEw5Niw2NmwwLDBsMTkuNTgtMjAuODlMMTIzLjQ4LDE4LjQxQzEyMy40OCwxOC40MSwxMjMuNDgsMTguNDEsMTIzLjQ4LDE4LjQxQzEyMy40OCwxOC40MSwxMjMuNDgsMTguNDEsMTIzLjQ4LDE4LjQxeiIgZmlsbD0iIzE4ODAzOCIvPjxwYXRoIGQ9Ik02My42NywxMjJsLTI4LjMzLTYuNUw4LjcyLDEyMmMwLDMuMSwwLjgsNi4yLDIuNCw4Ljk5TDI5LjYsMTYzYzEuNjEsMi43OCwzLjksNS4wMyw2LjU5LDYuNTkgbDE5LjU5LTIwLjE4TDYzLjY3LDEyMkw2My42NywxMjJ6IiBmaWxsPSIjMTk2N0QyIi8+PHBhdGggZD0iTTE1NS40Nyw2OWwtMjUuNC00NGMtMS42MS0yLjc5LTMuOS01LjA0LTYuNTktNi41OUw5Niw2NmwzMi4zMyw1Nmg1NC45NWMwLTMuMTEtMC44LTYuMjEtMi40MS05IEwxNTUuNDcsNjl6IiBmaWxsPSIjRkJCQzA0Ii8+PHBhdGggZD0iTTEyOC4zMywxMjJINjMuNjdsLTI3LjQ4LDQ3LjU5YzIuNjksMS41NSw1Ljc4LDIuNDEsOSwyLjQxaDEwMS42MWMzLjIyLDAsNi4zMS0wLjg2LDktMi40MUwxMjguMzMsMTIyeiIgZmlsbD0iIzQyODVGNCIvPjxwYXRoIGQ9Ik05Niw2Nkw2OC41MywxOC40MWMtMi42OSwxLjU1LTQuOTcsMy43OS02LjU4LDYuNTdsLTUwLjgzLDg4LjA1Yy0xLjYsMi43OC0yLjQsNS44OC0yLjQsOC45N2g1NC45NUw5Niw2NiB6IiBmaWxsPSIjMzRBODUzIi8+PC9nPjwvZz48Zy8+PGcvPjxnLz48L3N2Zz4=\",\n    \"mimeType\": \"image/svg+xml\"\n  }\n];\n"},{"path":"index.ts","content":"import {\n  accountRouter,\n  decodeJson,\n  defineApp,\n  defineProvider,\n  oauth2,\n  object,\n  router,\n  string,\n  withApprovals,\n} from \"apps\";\nimport { always } from \"apps/operations/approval\";\nimport { liveOpenapiRouter } from \"apps/openapi\";\nimport { icons } from \"./icon.js\";\nimport { addresses } from \"./tools/shared.js\";\nimport { drive as driveTools } from \"./tools/drive.js\";\nimport { options } from \"./openapi.js\";\n\nconst About = object({ user: object({ permissionId: string(), displayName: string() }) });\n\nconst drive = defineProvider({\n  name: \"Google Drive\",\n  hosts: [\"www.googleapis.com\"],\n  auth: {\n    oauth: oauth2({\n      discover: \"https://accounts.google.com\",\n      scopes: [\"https://www.googleapis.com/auth/drive\"],\n      // Google issues refresh tokens only when asked for offline access.\n      authorizationParams: { access_type: \"offline\", prompt: \"consent\" },\n    }),\n  },\n  async health({ account, fetch, signal }) {\n    const response = await fetch(\n      \"https://www.googleapis.com/drive/v3/about?fields=user(permissionId,displayName)\",\n      { signal, headers: { Authorization: `Bearer ${account.fields.access_token}` } },\n    );\n    const { user } = await decodeJson(response, About);\n    return { accountInfo: { externalId: user.permissionId, displayName: user.displayName } };\n  },\n});\n\nexport default defineApp(\n  { user: { accounts: { drive: drive.many() } }, icons },\n  async ({ user, cache, fetch, signal }) => {\n    const curated = driveTools({ accounts: user?.accounts.drive ?? [], address: addresses.drive, api: () => \"api\" });\n    return {\n      tools: router(\n        {\n          ...curated.tools,\n          api: router(\n            await accountRouter(\n              user?.accounts.drive ?? [],\n              (account) =>\n                withApprovals(liveOpenapiRouter({ ...options, cache, fetch, signal, account }), (tool) =>\n                  tool.kind === \"mutation\" ? always() : undefined,\n                ),\n              { signal },\n            ),\n            {\n              title: \"Google Drive API\",\n              description: \"The complete Google Drive API, per account: every tool takes accountId and the API's own input.\",\n            },\n          ),\n        },\n        {\n          instructions: curated.meta.instructions,\n          title: \"Google Drive\",\n          description:\n            \"Files, folders, shared drives, permissions, comments, revisions and changes in Google Drive.\",\n          icons,\n        },\n      ),\n    };\n  },\n);\n"},{"path":"openapi.ts","content":"// drive-openapi.json is generated from Google's own Drive v3 Discovery document (revision 20261005)\n// by discovery-to-openapi.mjs; see README. Credentials go only to www.googleapis.com.\nimport type { JsonObject } from \"apps\";\nimport type { OpenapiToolNamesOptions } from \"apps/openapi\";\nimport drive from \"./drive-openapi.json\" with { type: \"json\" };\n\n// The inferred JSON type has no index signature, so widen it once here.\nconst document: JsonObject = JSON.parse(JSON.stringify(drive));\n\n// Every operation in the generated document already carries a plain bearer requirement.\nexport const options = {\n  source: { document },\n  allowedOrigin: \"https://www.googleapis.com\",\n  securitySchemes: { bearer: { type: \"http\", scheme: \"bearer\" } },\n  methods: {\n    oauth: [{ scheme: \"bearer\", field: \"access_token\", part: \"value\", prefix: \"\" }],\n  },\n  oauth: [],\n} satisfies OpenapiToolNamesOptions;\n"},{"path":"package.json","content":"{\n  \"name\": \"@executor.sh/google-drive\",\n  \"description\": \"Files, folders, shared drives, permissions, comments, revisions and changes in Google Drive.\",\n  \"private\": true,\n  \"type\": \"module\",\n  \"executor\": {\n    \"title\": \"Google Drive\"\n  },\n  \"dependencies\": {\n    \"apps\": \"0.0.1-beta.100\"\n  }\n}\n"},{"path":"tools/drive.ts","content":"// Generated by scripts/google-vendor.ts from shared/google-tools; edit the original and rerun it.\n// Drive tools shaped for agents: search across every linked account in plain words, and read any\n// file as text, exporting Google Docs, Sheets and Slides on the way.\nimport { number, object, query, string } from \"apps\";\nimport { defined, fanOut, google, googleText, select, single, type Base, type Context, type Source, type Target } from \"./shared.js\";\n\nconst base = \"https://www.googleapis.com/drive/v3\";\nconst account = string().optional();\nconst fields = \"id,name,mimeType,modifiedTime,size,webViewLink,owners(emailAddress),parents,shared\";\n\nconst kinds: Record<string, string> = {\n  doc: \"application/vnd.google-apps.document\",\n  sheet: \"application/vnd.google-apps.spreadsheet\",\n  slides: \"application/vnd.google-apps.presentation\",\n  form: \"application/vnd.google-apps.form\",\n  folder: \"application/vnd.google-apps.folder\",\n  pdf: \"application/pdf\",\n};\n\nconst quote = (text: string) => `'${text.replaceAll(\"\\\\\", \"\\\\\\\\\").replaceAll(\"'\", \"\\\\'\")}'`;\n\n/** Drive query language passes through; plain words search names and contents. */\nconst driveQuery = (text: string | undefined, kind: string | undefined) => {\n  const clauses = [\"trashed = false\"];\n  const trimmed = text?.trim();\n  if (trimmed) {\n    const raw = /\\b(contains|in parents|in owners|mimeType|modifiedTime|sharedWithMe|starred)\\b|[=<>]/.test(trimmed);\n    clauses.push(raw ? `(${trimmed})` : `(name contains ${quote(trimmed)} or fullText contains ${quote(trimmed)})`);\n  }\n  if (kind) {\n    const mimeType = kinds[kind];\n    if (mimeType === undefined) throw new Error(`type must be one of ${Object.keys(kinds).join(\", \")}.`);\n    clauses.push(`mimeType = ${quote(mimeType)}`);\n  }\n  return clauses.join(\" and \");\n};\n\nconst file = (target: Target, item: any) =>\n  defined({\n    account: target.email,\n    fileId: item.id as string,\n    name: item.name as string,\n    type: (Object.entries(kinds).find(([, mime]) => mime === item.mimeType)?.[0] ?? item.mimeType) as string,\n    modified: item.modifiedTime as string,\n    owner: item.owners?.[0]?.emailAddress as string | undefined,\n    size: item.size === undefined ? undefined : Number(item.size),\n    link: item.webViewLink as string,\n  });\n\n/** Exports for Google's own formats; other files download as they are. */\nconst exports: Record<string, string> = {\n  \"application/vnd.google-apps.document\": \"text/markdown\",\n  \"application/vnd.google-apps.spreadsheet\": \"text/csv\",\n  \"application/vnd.google-apps.presentation\": \"text/plain\",\n  \"application/vnd.google-apps.drawing\": \"image/svg+xml\",\n  \"application/vnd.google-apps.script\": \"application/vnd.google-apps.script+json\",\n};\nconst readable = /^(text\\/|application\\/(json|xml|javascript|x-yaml|yaml|csv|sql|x-sh))|\\+(json|xml)$/;\n\nconst readFile = async (ctx: Base, target: Target, fileId: string, maxCharacters: number) => {\n  const id = encodeURIComponent(fileId);\n  const meta = await google(ctx, target, `${base}/files/${id}`, { search: { fields, supportsAllDrives: true } });\n  const exportType = exports[meta.mimeType];\n  let text: string;\n  if (exportType) {\n    try {\n      text = await googleText(ctx, target, `${base}/files/${id}/export?mimeType=${encodeURIComponent(exportType)}`);\n    } catch (error) {\n      // Markdown export is newer than plain text; fall back where it is refused.\n      if (exportType !== \"text/markdown\") throw error;\n      text = await googleText(ctx, target, `${base}/files/${id}/export?mimeType=text/plain`);\n    }\n  } else if (readable.test(meta.mimeType)) {\n    text = await googleText(ctx, target, `${base}/files/${id}?alt=media&supportsAllDrives=true`);\n  } else {\n    return { ...file(target, meta), text: null, note: `${meta.mimeType} is not text; open the link or use api.drive to download it.` };\n  }\n  return {\n    ...file(target, meta),\n    ...(meta.mimeType === \"application/vnd.google-apps.spreadsheet\" ? { note: \"Only the first sheet is exported; use sheets.read for others.\" } : {}),\n    truncated: text.length > maxCharacters,\n    text: text.slice(0, maxCharacters),\n  };\n};\n\n/** Files matching a Drive query across targets, newest first. */\nexport const searchFiles = async (ctx: Base, targets: readonly Target[], q: string, max: number) => {\n  const { items, errors } = await fanOut(targets, async (target) => {\n    const { files = [] } = await google(ctx, target, `${base}/files`, {\n      search: {\n        q,\n        pageSize: max,\n        // Drive refuses ordering a fullText search.\n        orderBy: q.includes(\"fullText\") ? undefined : \"modifiedTime desc\",\n        fields: `files(${fields})`,\n        corpora: \"allDrives\",\n        includeItemsFromAllDrives: true,\n        supportsAllDrives: true,\n      },\n    });\n    return (files as any[]).map((item) => file(target, item));\n  });\n  items.sort((a, b) => b.modified.localeCompare(a.modified));\n  return { files: items.slice(0, max), errors };\n};\n\n/** The curated tools and their router's metadata; `source` names the package's accounts. */\nexport const drive = (source: Source) => ({\n  tools: {\n    search: query(\n      {\n        description:\n          \"Search Drive across every linked Google account (or one), newest first. Plain words match file names and contents; Drive query syntax (name contains 'x', mimeType = '...', 'me' in owners, sharedWithMe) passes through. Leave query empty for recently modified files. type narrows to doc, sheet, slides, form, folder or pdf.\",\n        input: object({\n          query: string().optional(),\n          type: string().optional(),\n          account,\n          max: number().optional(),\n        }),\n      },\n      async (ctx: Context, input) =>\n        searchFiles(ctx, await select(ctx, source, input.account), driveQuery(input.query, input.type), Math.min(Math.max(input.max ?? 20, 1), 100)),\n    ),\n    read: query(\n      {\n        description:\n          \"Read a Drive file as text: Google Docs as Markdown, Sheets as CSV (first sheet), Slides as text, and text-like files as they are. Other files return their details and link. Long files are cut at maxCharacters (default 100000).\",\n        input: object({ account, fileId: string({ minLength: 1 }), maxCharacters: number().optional() }),\n      },\n      async (ctx: Context, input) => readFile(ctx, await single(ctx, source, input.account), input.fileId, input.maxCharacters ?? 100_000),\n    ),\n  },\n  meta: {\n    title: \"Google Drive\",\n    description: \"Find and read files across every linked Google account.\",\n    instructions: `search spans every linked account unless \\`account\\` (an address) is given; read takes the account a result came from. Uploads, sharing, comments and revisions are under ${source.api(\"drive\")}.`,\n  },\n});\n\nexport { driveQuery };\n"},{"path":"tools/shared.ts","content":"// Generated by scripts/google-vendor.ts from shared/google-tools; edit the original and rerun it.\n// Helpers for the curated tools: choosing accounts, calling Google with one of them, running a read\n// across every linked account, and the encodings Gmail and Calendar need.\nimport { decodeJson, json, object, string, type MutationContext, type QueryContext } from \"apps\";\n\nexport type Context = QueryContext;\nexport type WriteContext = MutationContext;\n/** What the helpers use of a query or mutation context. */\nexport type Base = Pick<Context, \"fetch\" | \"signal\" | \"cache\">;\n/** A linked Google account, as any of the Google packages' slots provides it. */\nexport interface Account {\n  readonly id: string;\n  readonly fields: { readonly access_token: string };\n}\n\n/** How a package reads an account's address with the scopes it already has. */\nexport type Address = (load: { readonly fetch: typeof fetch; readonly signal: AbortSignal }, account: Account) => Promise<string>;\n\n/** The accounts a package's curated tools run with, and how it names them. */\nexport interface Source {\n  readonly accounts: readonly Account[];\n  readonly address: Address;\n  /** Where the package mounts a product's complete API (`gmail` → `api.gmail`), named in the tools' instructions. */\n  readonly api: (product: string) => string;\n}\n\nconst read =\n  <T>(url: string, schema: Parameters<typeof decodeJson<T>>[1], pick: (body: T) => string): Address =>\n  async ({ fetch, signal }, account) =>\n    pick(await decodeJson(await fetch(url, { signal, headers: { Authorization: `Bearer ${account.fields.access_token}` } }), schema));\n\n/** Address lookups for each package's scopes. */\nexport const addresses = {\n  /** Needs the `email` scope; `url` is the userinfo endpoint on a host the provider allows. */\n  userinfo: (url: string) => read(url, object({ email: string() }), (body) => body.email),\n  gmail: read(\"https://gmail.googleapis.com/gmail/v1/users/me/profile\", object({ emailAddress: string() }), (body) => body.emailAddress),\n  /** The primary calendar's ID is the account's address. */\n  calendar: read(\"https://www.googleapis.com/calendar/v3/calendars/primary\", object({ id: string() }), (body) => body.id),\n  drive: read(\n    \"https://www.googleapis.com/drive/v3/about?fields=user(emailAddress)\",\n    object({ user: object({ emailAddress: string() }) }),\n    (body) => body.user.emailAddress,\n  ),\n  /** For scopes that reveal no address, such as Tasks': accounts are named by their ID. */\n  id: (async (_load, account) => account.id) as Address,\n};\n\n/** One linked account with the address it signs in as. */\nexport interface Target {\n  readonly account: Account;\n  readonly email: string;\n}\n\n/** The account's address, cached per account so a fan-out costs one request per account at most once a day. */\nconst emailOf = (ctx: Base, source: Source, account: Account) =>\n  ctx.cache.forAccount(account).get({\n    key: \"email\",\n    schema: string(),\n    freshFor: \"1 day\",\n    load: (load) => source.address(load, account),\n  });\n\n/** Every linked account with its address. */\nexport const linked = (ctx: Base, source: Source): Promise<Target[]> =>\n  Promise.all(source.accounts.map(async (account) => ({ account, email: await emailOf(ctx, source, account) })));\n\n/** The accounts a call names: one by address or account ID, or all of them when `account` is omitted. */\nexport const select = async (ctx: Base, source: Source, account: string | undefined): Promise<Target[]> => {\n  const all = await linked(ctx, source);\n  if (all.length === 0) throw new Error(\"No Google account is linked to this app. Connect one first.\");\n  if (account === undefined) return all;\n  const wanted = account.trim().toLowerCase();\n  const match = all.filter((target) => target.email.toLowerCase() === wanted || target.account.id === account);\n  if (match.length === 0)\n    throw new Error(`No linked Google account matches ${account}. Linked accounts: ${all.map((t) => t.email).join(\", \")}.`);\n  return match;\n};\n\n/** The one account a write uses: the named one, or the only linked account. */\nexport const single = async (ctx: Base, source: Source, account: string | undefined): Promise<Target> => {\n  const targets = await select(ctx, source, account);\n  if (targets.length > 1)\n    throw new Error(`Several Google accounts are linked; pass account as one of: ${targets.map((t) => t.email).join(\", \")}.`);\n  return targets[0]!;\n};\n\n/**\n * Runs a read on each target at once. One account's failure does not hide the others' results: it\n * is reported under `errors` with the account's address.\n */\nexport const fanOut = async <T>(\n  targets: readonly Target[],\n  run: (target: Target) => Promise<readonly T[]>,\n): Promise<{ readonly items: T[]; readonly errors: { readonly account: string; readonly message: string }[] }> => {\n  const settled = await Promise.allSettled(targets.map(run));\n  const items: T[] = [];\n  const errors: { account: string; message: string }[] = [];\n  settled.forEach((result, index) => {\n    if (result.status === \"fulfilled\") items.push(...result.value);\n    else errors.push({ account: targets[index]!.email, message: result.reason instanceof Error ? result.reason.message : String(result.reason) });\n  });\n  return { items, errors };\n};\n\n/** Drops undefined fields, which tool results cannot carry: results must be plain JSON. */\nexport const defined = <T extends object>(value: T): T =>\n  Object.fromEntries(Object.entries(value).filter(([, field]) => field !== undefined)) as T;\n\n/** Calls a Google JSON API with the target's token. `search` values left undefined are omitted. */\nexport const google = async (\n  ctx: Base,\n  target: Target,\n  url: string,\n  init: {\n    readonly method?: string;\n    readonly body?: unknown;\n    readonly search?: Readonly<Record<string, string | number | boolean | readonly string[] | undefined>>;\n  } = {},\n): Promise<any> => {\n  const address = new URL(url);\n  for (const [key, value] of Object.entries(init.search ?? {})) {\n    if (value === undefined) continue;\n    for (const item of Array.isArray(value) ? value : [value]) address.searchParams.append(key, String(item));\n  }\n  const response = await ctx.fetch(address.toString(), {\n    method: init.method ?? \"GET\",\n    signal: ctx.signal,\n    headers: {\n      Authorization: `Bearer ${target.account.fields.access_token}`,\n      ...(init.body === undefined ? {} : { \"content-type\": \"application/json\" }),\n    },\n    body: init.body === undefined ? undefined : JSON.stringify(init.body),\n  });\n  if (response.status === 204) return {};\n  return decodeJson(response, json());\n};\n\n/** Fetches a body as text, for exports and downloads. */\nexport const googleText = async (ctx: Base, target: Target, url: string): Promise<string> => {\n  const response = await ctx.fetch(url, {\n    signal: ctx.signal,\n    headers: { Authorization: `Bearer ${target.account.fields.access_token}` },\n  });\n  if (!response.ok) throw new Error(`Google answered ${response.status}: ${(await response.text()).slice(0, 500)}`);\n  return response.text();\n};\n\n/** Bounded parallelism, so a 50-thread search does not open 50 connections at once. */\nexport const mapLimit = async <T, R>(items: readonly T[], limit: number, run: (item: T) => Promise<R>): Promise<R[]> => {\n  const results: R[] = new Array(items.length);\n  let next = 0;\n  const worker = async () => {\n    while (next < items.length) {\n      const index = next++;\n      results[index] = await run(items[index]!);\n    }\n  };\n  await Promise.all(Array.from({ length: Math.min(limit, items.length) }, worker));\n  return results;\n};\n\nconst bytesToBinary = (bytes: Uint8Array) => {\n  let binary = \"\";\n  for (let i = 0; i < bytes.length; i += 0x8000) binary += String.fromCharCode(...bytes.subarray(i, i + 0x8000));\n  return binary;\n};\n\n/** UTF-8 text as base64url, the encoding Gmail's `raw` field takes. */\nexport const base64url = (text: string) =>\n  btoa(bytesToBinary(new TextEncoder().encode(text))).replaceAll(\"+\", \"-\").replaceAll(\"/\", \"_\").replace(/=+$/, \"\");\n\n/** Base64 for a MIME body, wrapped at 76 characters. */\nexport const base64Lines = (text: string) => btoa(bytesToBinary(new TextEncoder().encode(text))).replace(/.{76}/g, \"$&\\r\\n\");\n\n/** Decodes a Gmail body part (base64url bytes) in the part's charset. */\nexport const decodeBody = (data: string, charset = \"utf-8\") => {\n  const binary = atob(data.replaceAll(\"-\", \"+\").replaceAll(\"_\", \"/\"));\n  const bytes = Uint8Array.from(binary, (char) => char.charCodeAt(0));\n  try {\n    return new TextDecoder(charset).decode(bytes);\n  } catch {\n    return new TextDecoder(\"utf-8\").decode(bytes);\n  }\n};\n\nconst entities: Record<string, string> = { amp: \"&\", lt: \"<\", gt: \">\", quot: '\"', apos: \"'\", nbsp: \" \" };\n\n/** Readable text from an HTML body: block elements become line breaks, tags and scripts go. */\nexport const htmlToText = (html: string) =>\n  html\n    .replace(/<(script|style|head)[\\s\\S]*?<\\/\\1>/gi, \"\")\n    .replace(/<br\\s*\\/?>/gi, \"\\n\")\n    .replace(/<\\/(p|div|tr|li|h[1-6]|blockquote)>/gi, \"\\n\")\n    .replace(/<li[^>]*>/gi, \"- \")\n    .replace(/<a\\s[^>]*href=\"([^\"]*)\"[^>]*>([\\s\\S]*?)<\\/a>/gi, (_, href: string, text: string) =>\n      text.trim() && !href.startsWith(\"mailto:\") && text.trim() !== href ? `${text} (${href})` : text,\n    )\n    .replace(/<[^>]+>/g, \"\")\n    .replace(/&(#x?[0-9a-f]+|\\w+);/gi, (match, code: string) => {\n      if (code.startsWith(\"#x\") || code.startsWith(\"#X\")) return String.fromCodePoint(parseInt(code.slice(2), 16));\n      if (code.startsWith(\"#\")) return String.fromCodePoint(parseInt(code.slice(1), 10));\n      return entities[code.toLowerCase()] ?? match;\n    })\n    .replace(/[ \\t]+\\n/g, \"\\n\")\n    .replace(/\\n{3,}/g, \"\\n\\n\")\n    .trim();\n\n/** A header value with non-ASCII text as an RFC 2047 encoded word. */\nexport const encodeHeader = (value: string) =>\n  /^[\\x20-\\x7e]*$/.test(value) ? value : `=?UTF-8?B?${btoa(bytesToBinary(new TextEncoder().encode(value)))}?=`;\n\n/** Milliseconds a zone is ahead of UTC at an instant. */\nconst zoneOffset = (zone: string, instant: number) => {\n  const parts = Object.fromEntries(\n    new Intl.DateTimeFormat(\"en-US\", {\n      timeZone: zone,\n      hourCycle: \"h23\",\n      year: \"numeric\",\n      month: \"2-digit\",\n      day: \"2-digit\",\n      hour: \"2-digit\",\n      minute: \"2-digit\",\n      second: \"2-digit\",\n    })\n      .formatToParts(new Date(instant))\n      .map((part) => [part.type, part.value]),\n  );\n  const asUtc = Date.UTC(+parts.year!, +parts.month! - 1, +parts.day!, +parts.hour!, +parts.minute!, +parts.second!);\n  return asUtc - Math.floor(instant / 1000) * 1000;\n};\n\n/** The instant a wall-clock time in a zone names. */\nexport const zonedTime = (zone: string, year: number, month: number, day: number, hour = 0, minute = 0) => {\n  const guess = Date.UTC(year, month - 1, day, hour, minute);\n  const first = guess - zoneOffset(zone, guess);\n  return first - (zoneOffset(zone, first) - zoneOffset(zone, guess));\n};\n\n/** The calendar date (year, month, day) of an instant in a zone. */\nexport const zonedDate = (zone: string, instant: number) => {\n  const [year, month, day] = new Intl.DateTimeFormat(\"en-CA\", { timeZone: zone, year: \"numeric\", month: \"2-digit\", day: \"2-digit\" })\n    .format(new Date(instant))\n    .split(\"-\")\n    .map(Number) as [number, number, number];\n  return { year, month, day };\n};\n\n/**\n * An instant from what a model is likely to pass: an RFC 3339 time, a date (midnight in `zone`),\n * \"now\", \"today\", \"tomorrow\" or \"yesterday\".\n */\nexport const parseTime = (value: string, zone: string, now = Date.now()) => {\n  const text = value.trim().toLowerCase();\n  if (text === \"now\") return now;\n  const shift = { yesterday: -1, today: 0, tomorrow: 1 }[text];\n  if (shift !== undefined) {\n    const today = zonedDate(zone, now);\n    return zonedTime(zone, today.year, today.month, today.day + shift);\n  }\n  const date = /^(\\d{4})-(\\d{2})-(\\d{2})$/.exec(text);\n  if (date) return zonedTime(zone, +date[1]!, +date[2]!, +date[3]!);\n  const local = /^(\\d{4})-(\\d{2})-(\\d{2})t(\\d{2}):(\\d{2})(?::\\d{2}(?:\\.\\d+)?)?$/.exec(text);\n  if (local) return zonedTime(zone, +local[1]!, +local[2]!, +local[3]!, +local[4]!, +local[5]!);\n  const instant = Date.parse(value);\n  if (Number.isNaN(instant))\n    throw new Error(`Could not read the time \"${value}\". Use RFC 3339 (2026-10-14T09:00:00-07:00), a date (2026-10-14), \"now\", \"today\" or \"tomorrow\".`);\n  return instant;\n};\n\nconst TimeZone = object({ value: string() });\n\n/** The zone of the account's Calendar settings, which dates without an offset are read in. */\nexport const calendarZone = async (ctx: Base, target: Target) =>\n  ctx.cache.forAccount(target.account).get({\n    key: \"calendar-zone\",\n    schema: string(),\n    freshFor: \"1 day\",\n    load: async ({ fetch, signal }) => {\n      const response = await fetch(\"https://www.googleapis.com/calendar/v3/users/me/settings/timezone\", {\n        signal,\n        headers: { Authorization: `Bearer ${target.account.fields.access_token}` },\n      });\n      return (await decodeJson(response, TimeZone)).value;\n    },\n  });\n"}]}