---
request: POST /v4/spreadsheets
request_content:
  properties:
    title: mock_spreadsheet1
response:
  code: 200
  content: |
    {
      "spreadsheetId": "15-SGx_ZYeW02fl0t9Rc2EE09vPMRAkLPxYbWmW7SF4M",
      "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/15-SGx_ZYeW02fl0t9Rc2EE09vPMRAkLPxYbWmW7SF4M/edit"
    }
  headers:
    - alt-svc
    - 'h3=":443"; ma=2592000,h3-29=":443"; ma=2592000'
    - vary
    - X-Origin
    - vary
    - Referer
    - vary
    - 'Origin,Accept-Encoding'
    - content-type
    - application/json; charset=UTF-8
    - x-xss-protection
    - 0
    - accept-ranges
    - none
    - x-content-type-options
    - nosniff
    - x-l2-request-path
    - l2-managed-6
    - server
    - ESF
    - transfer-encoding
    - chunked
    - x-frame-options
    - SAMEORIGIN
    - date
    - 'Sat, 10 Jan 2026 16:34:04 GMT'
  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": "209437"
    }
  headers:
    - expires
    - 'Mon, 01 Jan 1990 00:00:00 GMT'
    - x-content-type-options
    - nosniff
    - server
    - ESF
    - transfer-encoding
    - chunked
    - x-frame-options
    - SAMEORIGIN
    - date
    - 'Sat, 10 Jan 2026 16:34:06 GMT'
    - alt-svc
    - 'h3=":443"; ma=2592000,h3-29=":443"; ma=2592000'
    - cache-control
    - 'no-cache, no-store, max-age=0, must-revalidate'
    - vary
    - 'Origin, X-Origin,Accept-Encoding'
    - content-type
    - application/json; charset=UTF-8
    - pragma
    - no-cache
    - x-xss-protection
    - 0
    - accept-ranges
    - none
  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": "209440"
    }
  headers:
    - x-content-type-options
    - nosniff
    - expires
    - 'Mon, 01 Jan 1990 00:00:00 GMT'
    - server
    - ESF
    - x-frame-options
    - SAMEORIGIN
    - transfer-encoding
    - chunked
    - date
    - 'Sat, 10 Jan 2026 16:34:08 GMT'
    - cache-control
    - 'no-cache, no-store, max-age=0, must-revalidate'
    - alt-svc
    - 'h3=":443"; ma=2592000,h3-29=":443"; ma=2592000'
    - pragma
    - no-cache
    - content-type
    - application/json; charset=UTF-8
    - vary
    - 'Origin, X-Origin,Accept-Encoding'
    - x-xss-protection
    - 0
    - accept-ranges
    - none
  message: OK
source: Test::Google::RestApi::DriveApi3::Changes::list

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

---
request: DELETE /drive/v3/files/15-SGx_ZYeW02fl0t9Rc2EE09vPMRAkLPxYbWmW7SF4M
response:
  code: 204
  content: ''
  headers:
    - expires
    - 'Mon, 01 Jan 1990 00:00:00 GMT'
    - x-content-type-options
    - nosniff
    - server
    - ESF
    - x-frame-options
    - SAMEORIGIN
    - date
    - 'Sat, 10 Jan 2026 16:34:12 GMT'
    - alt-svc
    - 'h3=":443"; ma=2592000,h3-29=":443"; ma=2592000'
    - cache-control
    - 'no-cache, no-store, max-age=0, must-revalidate'
    - content-type
    - text/html
    - vary
    - 'Origin, X-Origin'
    - pragma
    - no-cache
    - x-xss-protection
    - 0
    - content-length
    - 0
  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:
    - x-frame-options
    - SAMEORIGIN
    - accept-ranges
    - none
    - content-type
    - application/json; charset=UTF-8
    - vary
    - 'Origin, X-Origin,Accept-Encoding'
    - pragma
    - no-cache
    - alt-svc
    - 'h3=":443"; ma=2592000,h3-29=":443"; ma=2592000'
    - date
    - 'Sat, 10 Jan 2026 16:34:13 GMT'
    - transfer-encoding
    - chunked
    - server
    - ESF
    - x-content-type-options
    - nosniff
    - expires
    - 'Mon, 01 Jan 1990 00:00:00 GMT'
    - x-xss-protection
    - 0
    - cache-control
    - 'no-cache, no-store, max-age=0, must-revalidate'
  message: OK
source: Test::Unit::TestBase::shutdown

