---
request: POST /v4/spreadsheets
request_content:
  properties:
    title: mock_spreadsheet1
response:
  code: 200
  content: |
    {
      "spreadsheetId": "1ujKMTBmal432DSJibedcQepvC8ZUU7FZJmNtAo78bwM",
      "properties": {
        "title": "mock_spreadsheet1",
        "locale": "en_GB",
        "autoRecalc": "ON_CHANGE",
        "timeZone": "Etc/GMT",
        "defaultFormat": {
          "backgroundColor": {
            "red": 1,
            "green": 1,
            "blue": 1
          },
          "padding": {
            "top": 2,
            "right": 3,
            "bottom": 2,
            "left": 3
          },
          "verticalAlignment": "BOTTOM",
          "wrapStrategy": "OVERFLOW_CELL",
          "textFormat": {
            "foregroundColor": {},
            "fontFamily": "arial,sans,sans-serif",
            "fontSize": 10,
            "bold": false,
            "italic": false,
            "strikethrough": false,
            "underline": false,
            "foregroundColorStyle": {
              "rgbColor": {}
            }
          },
          "backgroundColorStyle": {
            "rgbColor": {
              "red": 1,
              "green": 1,
              "blue": 1
            }
          }
        },
        "spreadsheetTheme": {
          "primaryFontFamily": "Arial",
          "themeColors": [
            {
              "colorType": "TEXT",
              "color": {
                "rgbColor": {}
              }
            },
            {
              "colorType": "BACKGROUND",
              "color": {
                "rgbColor": {
                  "red": 1,
                  "green": 1,
                  "blue": 1
                }
              }
            },
            {
              "colorType": "ACCENT1",
              "color": {
                "rgbColor": {
                  "red": 0.25882354,
                  "green": 0.52156866,
                  "blue": 0.95686275
                }
              }
            },
            {
              "colorType": "ACCENT2",
              "color": {
                "rgbColor": {
                  "red": 0.91764706,
                  "green": 0.2627451,
                  "blue": 0.20784314
                }
              }
            },
            {
              "colorType": "ACCENT3",
              "color": {
                "rgbColor": {
                  "red": 0.9843137,
                  "green": 0.7372549,
                  "blue": 0.015686275
                }
              }
            },
            {
              "colorType": "ACCENT4",
              "color": {
                "rgbColor": {
                  "red": 0.20392157,
                  "green": 0.65882355,
                  "blue": 0.3254902
                }
              }
            },
            {
              "colorType": "ACCENT5",
              "color": {
                "rgbColor": {
                  "red": 1,
                  "green": 0.42745098,
                  "blue": 0.003921569
                }
              }
            },
            {
              "colorType": "ACCENT6",
              "color": {
                "rgbColor": {
                  "red": 0.27450982,
                  "green": 0.7411765,
                  "blue": 0.7764706
                }
              }
            },
            {
              "colorType": "LINK",
              "color": {
                "rgbColor": {
                  "red": 0.06666667,
                  "green": 0.33333334,
                  "blue": 0.8
                }
              }
            }
          ]
        }
      },
      "sheets": [
        {
          "properties": {
            "sheetId": 0,
            "title": "Sheet1",
            "index": 0,
            "sheetType": "GRID",
            "gridProperties": {
              "rowCount": 1000,
              "columnCount": 26
            }
          }
        }
      ],
      "spreadsheetUrl": "https://docs.google.com/spreadsheets/d/1ujKMTBmal432DSJibedcQepvC8ZUU7FZJmNtAo78bwM/edit"
    }
  headers:
  - content-type
  - application/json; charset=UTF-8
  - transfer-encoding
  - chunked
  - x-frame-options
  - SAMEORIGIN
  - accept-ranges
  - none
  - vary
  - X-Origin
  - vary
  - Referer
  - vary
  - Origin,Accept-Encoding
  - x-l2-request-path
  - l2-managed-6
  - date
  - Thu, 16 Apr 2026 19:14:04 GMT
  - x-xss-protection
  - '0'
  - alt-svc
  - h3=":443"; ma=2592000,h3-29=":443"; ma=2592000
  - x-content-type-options
  - nosniff
  - server
  - ESF
  message: OK
source: Test::Unit::TestBase::startup

---
query_params:
  supportsAllDrives: 'true'
request: GET /drive/v3/changes/startPageToken
response:
  code: 200
  content: |
    {
      "kind": "drive#startPageToken",
      "startPageToken": "2446"
    }
  headers:
  - vary
  - Origin, X-Origin,Accept-Encoding
  - expires
  - Mon, 01 Jan 1990 00:00:00 GMT
  - x-frame-options
  - SAMEORIGIN
  - accept-ranges
  - none
  - transfer-encoding
  - chunked
  - content-type
  - application/json; charset=UTF-8
  - cache-control
  - no-cache, no-store, max-age=0, must-revalidate
  - pragma
  - no-cache
  - server
  - ESF
  - x-xss-protection
  - '0'
  - alt-svc
  - h3=":443"; ma=2592000,h3-29=":443"; ma=2592000
  - x-content-type-options
  - nosniff
  - date
  - Thu, 16 Apr 2026 19:14:06 GMT
  message: OK
source: Test::Google::RestApi::DriveApi3::Changes::get_start_page_token

---
query_params:
  supportsAllDrives: 'true'
request: GET /drive/v3/changes/startPageToken
response:
  code: 200
  content: |
    {
      "kind": "drive#startPageToken",
      "startPageToken": "2446"
    }
  headers:
  - server
  - ESF
  - pragma
  - no-cache
  - x-content-type-options
  - nosniff
  - vary
  - Origin, X-Origin,Accept-Encoding
  - x-xss-protection
  - '0'
  - alt-svc
  - h3=":443"; ma=2592000,h3-29=":443"; ma=2592000
  - accept-ranges
  - none
  - x-frame-options
  - SAMEORIGIN
  - expires
  - Mon, 01 Jan 1990 00:00:00 GMT
  - date
  - Thu, 16 Apr 2026 19:14:08 GMT
  - cache-control
  - no-cache, no-store, max-age=0, must-revalidate
  - content-type
  - application/json; charset=UTF-8
  - transfer-encoding
  - chunked
  message: OK
source: Test::Google::RestApi::DriveApi3::Changes::list

---
query_params:
  includeItemsFromAllDrives: 'true'
  includeRemoved: 'true'
  pageSize: 100
  pageToken: '2446'
  spaces: drive
  supportsAllDrives: 'true'
request: GET /drive/v3/changes
response:
  code: 200
  content: |
    {
      "changes": [],
      "kind": "drive#changeList",
      "newStartPageToken": "2446"
    }
  headers:
  - vary
  - Origin, X-Origin,Accept-Encoding
  - transfer-encoding
  - chunked
  - content-type
  - application/json; charset=UTF-8
  - cache-control
  - no-cache, no-store, max-age=0, must-revalidate
  - expires
  - Mon, 01 Jan 1990 00:00:00 GMT
  - x-frame-options
  - SAMEORIGIN
  - accept-ranges
  - none
  - alt-svc
  - h3=":443"; ma=2592000,h3-29=":443"; ma=2592000
  - x-xss-protection
  - '0'
  - x-content-type-options
  - nosniff
  - pragma
  - no-cache
  - server
  - ESF
  - date
  - Thu, 16 Apr 2026 19:14:09 GMT
  message: OK
source: Test::Google::RestApi::DriveApi3::Changes::list

---
request: DELETE /drive/v3/files/1ujKMTBmal432DSJibedcQepvC8ZUU7FZJmNtAo78bwM
response:
  code: 204
  content: ''
  headers:
  - x-xss-protection
  - '0'
  - alt-svc
  - h3=":443"; ma=2592000,h3-29=":443"; ma=2592000
  - x-content-type-options
  - nosniff
  - vary
  - Origin, X-Origin
  - pragma
  - no-cache
  - server
  - ESF
  - content-type
  - text/html
  - content-length
  - '0'
  - cache-control
  - no-cache, no-store, max-age=0, must-revalidate
  - x-frame-options
  - SAMEORIGIN
  - date
  - Thu, 16 Apr 2026 19:14:12 GMT
  - expires
  - Mon, 01 Jan 1990 00:00:00 GMT
  message: No Content
source: Test::Unit::TestBase::shutdown

---
query_params:
  fields: nextPageToken, files(id, name)
  q: mimeType = 'application/vnd.google-apps.spreadsheet' and (name contains 'mock_spreadsheet')
request: GET /drive/v3/files
response:
  code: 200
  content: "{\n  \"files\": []\n}\n"
  headers:
  - server
  - ESF
  - pragma
  - no-cache
  - x-content-type-options
  - nosniff
  - alt-svc
  - h3=":443"; ma=2592000,h3-29=":443"; ma=2592000
  - x-xss-protection
  - '0'
  - date
  - Thu, 16 Apr 2026 19:14:13 GMT
  - vary
  - Origin, X-Origin,Accept-Encoding
  - accept-ranges
  - none
  - x-frame-options
  - SAMEORIGIN
  - expires
  - Mon, 01 Jan 1990 00:00:00 GMT
  - cache-control
  - no-cache, no-store, max-age=0, must-revalidate
  - content-type
  - application/json; charset=UTF-8
  - transfer-encoding
  - chunked
  message: OK
source: Test::Unit::TestBase::shutdown

