---
http_interactions:
- request:
    method: post
    uri: https://login.microsoftonline.com/4d44bf36-9b56-45c0-8807-bbf386dd047f/oauth2/v2.0/token
    body:
      encoding: UTF-8
      string: grant_type=client_credentials&scope=https%3A%2F%2Fgraph.microsoft.com%2F.default
    headers:
      User-Agent:
      - Rack::OAuth2 (2.2.1)
      Authorization:
      - Basic <BASIC_AUTH>
      Content-Type:
      - application/x-www-form-urlencoded
      Accept-Encoding:
      - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
      Accept:
      - "*/*"
  response:
    status:
      code: 200
      message: OK
    headers:
      Cache-Control:
      - no-store, no-cache
      Pragma:
      - no-cache
      Content-Type:
      - application/json; charset=utf-8
      Expires:
      - "-1"
      Strict-Transport-Security:
      - max-age=31536000; includeSubDomains
      X-Content-Type-Options:
      - nosniff
      P3p:
      - CP="DSP CUR OTPi IND OTRi ONL FIN"
      X-Ms-Request-Id:
      - 5cad9093-3a22-406e-bb6e-91a1a8067200
      X-Ms-Ests-Server:
      - 2.1.17122.3 - FRC ProdSlices
      X-Xss-Protection:
      - '0'
      Set-Cookie:
      - fpc=AtJoMauZWOBDo0kxnN79HDmkbDoXAQAAAMfaSt0OAAAA; expires=Thu, 29-Feb-2024
        11:55:52 GMT; path=/; secure; HttpOnly; SameSite=None
      - stsservicecookie=estsfd; path=/; secure; samesite=none; httponly
      - x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly
      Date:
      - Tue, 30 Jan 2024 11:55:51 GMT
      Content-Length:
      - '1708'
    body:
      encoding: UTF-8
      string: '{"token_type":"Bearer","expires_in":3599,"ext_expires_in":3599,"access_token":"<ACCESS_TOKEN>"}'
  recorded_at: Tue, 30 Jan 2024 11:55:52 GMT
- request:
    method: post
    uri: https://graph.microsoft.com/v1.0/drives/b!dmVLG22QlE2PSW0AqVB7UOhZ8n7tjkVGkgqLNnuw2OBb-brzKzZAR4DYT1k9KPXs/root/children
    body:
      encoding: UTF-8
      string: '{"name":"Wrong Name","folder":{},"@microsoft.graph.conflictBehavior":"fail"}'
    headers:
      Authorization:
      - Bearer <BEARER TOKEN>
      Accept:
      - application/json
      Content-Type:
      - application/json
      User-Agent:
      - httpx.rb/1.2.1
      Accept-Encoding:
      - gzip, deflate
      Content-Length:
      - '76'
  response:
    status:
      code: 201
      message: Created
    headers:
      Cache-Control:
      - no-store, no-cache
      Transfer-Encoding:
      - chunked
      Content-Type:
      - application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8
      Content-Encoding:
      - gzip
      Etag:
      - '"{2CA620AC-3D42-437A-94B0-7DE8295827B8},1"'
      Location:
      - https://finn.sharepoint.com/_api/v2.0/drives('b!dmVLG22QlE2PSW0AqVB7UOhZ8n7tjkVGkgqLNnuw2OBb-brzKzZAR4DYT1k9KPXs')/items('root')/children('01AZJL5PNMECTCYQR5PJBZJMD55AUVQJ5Y')
      Vary:
      - Accept-Encoding
      Strict-Transport-Security:
      - max-age=31536000
      Request-Id:
      - 736fc399-438a-40ca-93fd-75a21903b009
      Client-Request-Id:
      - 736fc399-438a-40ca-93fd-75a21903b009
      X-Ms-Ags-Diagnostic:
      - '{"ServerInfo":{"DataCenter":"Germany West Central","Slice":"E","Ring":"5","ScaleUnit":"005","RoleInstance":"FR3PEPF00000318"}}'
      Odata-Version:
      - '4.0'
      Date:
      - Tue, 30 Jan 2024 11:55:51 GMT
    body:
      encoding: UTF-8
      string: '{"@odata.context":"https://graph.microsoft.com/v1.0/$metadata#drives(''b%21dmVLG22QlE2PSW0AqVB7UOhZ8n7tjkVGkgqLNnuw2OBb-brzKzZAR4DYT1k9KPXs'')/root/children/$entity","@odata.etag":"\"{2CA620AC-3D42-437A-94B0-7DE8295827B8},1\"","createdDateTime":"2024-01-30T11:55:52Z","eTag":"\"{2CA620AC-3D42-437A-94B0-7DE8295827B8},1\"","id":"01AZJL5PNMECTCYQR5PJBZJMD55AUVQJ5Y","lastModifiedDateTime":"2024-01-30T11:55:52Z","name":"Wrong
        Name","size":0,"webUrl":"https://finn.sharepoint.com/sites/openprojectfilestoragetests/VCR/Wrong%20Name","cTag":"\"c:{2CA620AC-3D42-437A-94B0-7DE8295827B8},0\"","commentSettings":{"commentingDisabled":{"isDisabled":false}},"createdBy":{"application":{"displayName":"OpenProject
        Dev App","id":"4262df2b-77bb-49c2-a5df-28355da676d2"},"user":{"displayName":"SharePoint
        App"}},"lastModifiedBy":{"application":{"displayName":"OpenProject Dev App","id":"4262df2b-77bb-49c2-a5df-28355da676d2"},"user":{"displayName":"SharePoint
        App"}},"parentReference":{"driveId":"b!dmVLG22QlE2PSW0AqVB7UOhZ8n7tjkVGkgqLNnuw2OBb-brzKzZAR4DYT1k9KPXs","driveType":"documentLibrary","id":"01AZJL5PN6Y2GOVW7725BZO354PWSELRRZ","path":"/drives/b!dmVLG22QlE2PSW0AqVB7UOhZ8n7tjkVGkgqLNnuw2OBb-brzKzZAR4DYT1k9KPXs/root:","sharepointIds":{"listId":"f3baf95b-362b-4740-80d8-4f593d28f5ec","listItemUniqueId":"049e81d0-52fb-4624-af6d-96611c29a9cc","siteId":"1b4b6576-906d-4d94-8f49-6d00a9507b50","siteUrl":"https://finn.sharepoint.com/sites/openprojectfilestoragetests","tenantId":"4d44bf36-9b56-45c0-8807-bbf386dd047f","webId":"7ef259e8-8eed-4645-920a-8b367bb0d8e0"}},"fileSystemInfo":{"createdDateTime":"2024-01-30T11:55:52Z","lastModifiedDateTime":"2024-01-30T11:55:52Z"},"folder":{"childCount":0}}'
  recorded_at: Tue, 30 Jan 2024 11:55:52 GMT
- request:
    method: patch
    uri: https://graph.microsoft.com/v1.0/drives/b!dmVLG22QlE2PSW0AqVB7UOhZ8n7tjkVGkgqLNnuw2OBb-brzKzZAR4DYT1k9KPXs/items/01AZJL5PNMECTCYQR5PJBZJMD55AUVQJ5Y
    body:
      encoding: UTF-8
      string: '{"name":"My Project No. 1 (19)"}'
    headers:
      Authorization:
      - Bearer <BEARER TOKEN>
      Accept:
      - application/json
      Content-Type:
      - application/json
      User-Agent:
      - httpx.rb/1.2.1
      Accept-Encoding:
      - gzip, deflate
      Content-Length:
      - '32'
  response:
    status:
      code: 200
      message: OK
    headers:
      Cache-Control:
      - no-store, no-cache
      Transfer-Encoding:
      - chunked
      Content-Type:
      - application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8
      Content-Encoding:
      - gzip
      Vary:
      - Accept-Encoding
      Strict-Transport-Security:
      - max-age=31536000
      Request-Id:
      - 1e9e401d-cacf-41f9-ac60-91ebb154f9fc
      Client-Request-Id:
      - 1e9e401d-cacf-41f9-ac60-91ebb154f9fc
      X-Ms-Ags-Diagnostic:
      - '{"ServerInfo":{"DataCenter":"Germany West Central","Slice":"E","Ring":"5","ScaleUnit":"005","RoleInstance":"FR3PEPF000002DC"}}'
      Odata-Version:
      - '4.0'
      Date:
      - Tue, 30 Jan 2024 11:55:52 GMT
    body:
      encoding: UTF-8
      string: '{"@odata.context":"https://graph.microsoft.com/v1.0/$metadata#drives(''b%21dmVLG22QlE2PSW0AqVB7UOhZ8n7tjkVGkgqLNnuw2OBb-brzKzZAR4DYT1k9KPXs'')/items/$entity","createdDateTime":"2024-01-30T11:55:52Z","eTag":"\"{2CA620AC-3D42-437A-94B0-7DE8295827B8},2\"","id":"01AZJL5PNMECTCYQR5PJBZJMD55AUVQJ5Y","lastModifiedDateTime":"2024-01-30T11:55:53Z","name":"My
        Project No. 1 (19)","webUrl":"https://finn.sharepoint.com/sites/openprojectfilestoragetests/VCR/My%20Project%20No.%201%20(19)","cTag":"\"c:{2CA620AC-3D42-437A-94B0-7DE8295827B8},0\"","size":0,"createdBy":{"application":{"id":"4262df2b-77bb-49c2-a5df-28355da676d2","displayName":"OpenProject
        Dev App"},"user":{"displayName":"SharePoint App"}},"lastModifiedBy":{"application":{"id":"4262df2b-77bb-49c2-a5df-28355da676d2","displayName":"OpenProject
        Dev App"},"user":{"displayName":"SharePoint App"}},"parentReference":{"driveType":"documentLibrary","driveId":"b!dmVLG22QlE2PSW0AqVB7UOhZ8n7tjkVGkgqLNnuw2OBb-brzKzZAR4DYT1k9KPXs","id":"01AZJL5PN6Y2GOVW7725BZO354PWSELRRZ","name":"VCR","path":"/drives/b!dmVLG22QlE2PSW0AqVB7UOhZ8n7tjkVGkgqLNnuw2OBb-brzKzZAR4DYT1k9KPXs/root:","siteId":"1b4b6576-906d-4d94-8f49-6d00a9507b50"},"fileSystemInfo":{"createdDateTime":"2024-01-30T11:55:52Z","lastModifiedDateTime":"2024-01-30T11:55:53Z"},"folder":{"childCount":0},"shared":{"scope":"users"}}'
  recorded_at: Tue, 30 Jan 2024 11:55:52 GMT
- request:
    method: delete
    uri: https://graph.microsoft.com/v1.0/drives/b!dmVLG22QlE2PSW0AqVB7UOhZ8n7tjkVGkgqLNnuw2OBb-brzKzZAR4DYT1k9KPXs/items/01AZJL5PNMECTCYQR5PJBZJMD55AUVQJ5Y
    body:
      encoding: US-ASCII
      string: ''
    headers:
      Authorization:
      - Bearer <BEARER TOKEN>
      Accept:
      - application/json
      Content-Type:
      - application/json
      User-Agent:
      - httpx.rb/1.2.1
      Accept-Encoding:
      - gzip, deflate
  response:
    status:
      code: 204
      message: No Content
    headers:
      Cache-Control:
      - no-store, no-cache
      Strict-Transport-Security:
      - max-age=31536000
      Request-Id:
      - 2a31e02e-a29a-443c-9da3-f2e3767198c2
      Client-Request-Id:
      - 2a31e02e-a29a-443c-9da3-f2e3767198c2
      X-Ms-Ags-Diagnostic:
      - '{"ServerInfo":{"DataCenter":"Germany West Central","Slice":"E","Ring":"5","ScaleUnit":"005","RoleInstance":"FR3PEPF00000366"}}'
      Date:
      - Tue, 30 Jan 2024 11:55:52 GMT
    body:
      encoding: UTF-8
      string: ''
  recorded_at: Tue, 30 Jan 2024 11:55:52 GMT
recorded_with: VCR 6.2.0
