Google Drive
A Google Drive with Docs, Sheets and Slides that answers Drive v2 and v3, Docs v1, Sheets v4, Slides v1, Workspace audit APIs and uploads for Google's client libraries, plus Drive's MCP paths and an Admin console Reports screen.
Vendor reference: https://developers.google.com/drive/api/reference/rest/v3 ↗. Machine-readable: compat/google-drive.json.
Surfaces
| Kind | Path | Notes |
|---|---|---|
| REST | /drive/v3 | files, permissions, comments, revisions, changes and watch channels; Drive v2 reads and file/comment/reply writes under /drive/v2 |
| REST | /upload/drive/v3 | simple, multipart and resumable uploads; file insert uploads also under /upload/drive/v2 |
| REST | /v1/documents | Google Docs v1 |
| REST | /v4/spreadsheets | Google Sheets v4 |
| REST | /v1/presentations | Google Slides v1 — create/get/batchUpdate (all 49 request types), pages.get and pages.getThumbnail; signed contentUrls under /slides-media/ |
| REST | /admin/reports/v1 | Admin Reports drive, login, admin and token audit activities |
| REST | /v2/activity:query | Drive Activity v2 queries over visible Drive items |
| OAuth | /token | OAuth client credentials with Google-style scopes |
| MCP | /mcp | also at /mcp/v1, the path Google's Drive MCP server publishes; includes reports_activities_list and drive_activity_query |
API versions: Drive v2 (reads and file/comment/reply writes), Drive v3, Docs v1, Sheets v4, Slides v1, Admin Reports v1, Drive Activity v2
Supported
- Admin console Reports screen at
/_uiwith Drive and login audit tabs - Bearer tokens and the
access_tokenquery parameter Google also accepts - Google scopes for Drive/Docs/Sheets/Slides and audit reads (
admin.reports.audit.readonly,drive.activity,drive.activity.readonly); signed tokens are checked against each API's required scope 401 authErrorwithWWW-Authenticate: Bearerfor a missing or unverifiable token, so an SDK refreshes its credential- The
qsearch grammar files.exportup to 10 MiB, andexportLinksfor larger exports- Sheets v4
spreadsheets.batchUpdatewith every documented request kind,developerMetadata.get/search, and everyDataFilterkind - Sheets formula evaluation,
valueRenderOptionrender modes, number formats and richCellData - Watch channels with the
synchandshake, per-file resource states,X-Goog-Changedandexpiration
Not supported
apps.*,approvals.*andfiles.generateCseToken; installed-app inventory, the Workspace approvals workflow and client-side encryption have no data in the company graph- Drive Labels v2 taxonomy administration beyond
labels.list/get - Computed pivot-table and data-source output in Sheets (stored and returned as written)
- Converting an imported binary document (
.doc,.odt,.xlsx) into Docs text
Known differences and test guidance
| Scenario | Difference from Google Drive | In your tests |
|---|---|---|
| Sheets formulas | Formulas are evaluated by the simulator's engine over the common function set; a function outside it reads as #NAME?. | Assert on computed cells built from the documented function set; avoid niche functions. |
| Revisions | Each content version is listed, but only the head revision's bytes are kept. | Do not download an older revision's content and compare it. |
| Sharing and permissions | File access is enforced for act-as callers and comment writes; unrestricted bearer tokens see the whole tenant. | Use an act-as credential to test per-person access and comment roles. |
| Scopes with an opaque token | Scope checks only apply to IdP-signed tokens that carry a scope claim; an opaque bearer in open mode passes every request. | Request a signed token with a read-only scope from /token to test refusals. |
| Imported binary documents | Uploading a .doc, .odt or .xlsx as a Google Doc creates the Doc with empty text, so exporting it returns an empty body. | Do not assert on text extracted from an imported Office file. |
| Watch notifications | Delivery is in-process with three retries on 5xx; a notification is lost if your consumer is down for the whole backoff window, and channels do not survive a restart. | Re-read the changes feed after downtime rather than relying on every notification. |
| Quotas | No quota is enforced unless injected, and the injected status cannot be chosen per quota family. | Inject throttle or quota_limit to test backoff; do not test per-family quota handling. |
Fault injection
| Key | What the client sees |
|---|---|
throttle | 429 userRateLimitExceeded in Google's error envelope, with Retry-After |
fail_next | The next N calls fail as throttle does, then clear |
quota_limit | 429 quotaExceeded in Google's error envelope |
error_rate | 500 internalError for the given fraction of calls |
latency_ms | Fixed added latency on every data-plane request |
Applies to every system
- The hosted data plane is read-only: a write is refused with
403 writes_disabled. A SOQL, GraphQL or searchPOSTis a read and is answered. - Faults are injected through
POST /_admin/faultson a simulator you run yourself;POST /_admin/faults/resetclears them. - Rate limits do not happen on their own unless a page says so. Use fault injection to exercise a client's backoff.
- Distributions come from aggregated metadata sketches of data Eon backs up; no customer records; all Era data is simulated.