Google-api-nodejs-client: Drive class is not listed for drive V3 api

Created on 2 May 2019  路  5Comments  路  Source: googleapis/google-api-nodejs-client

  • API V39.2.0
  • Using typescript 3.4.5
  • Node.js 11

Hi,
I'm trying to get the list of drives using the V3 of google.drive.
But the drives resources if not listed in the Drive class, although I can see it in the V3.ts file....

Any help ?

drivesmissing

Here the drives is not available.

const driveList = google.drive({ version: "v3", auth });
  const AllDrives = await driveList.drives.list({
        pageToken,
        maxResults : 
      })

V3.ts definition :

export class Drive {
    context: APIRequestContext;
    about: Resource$About;
    changes: Resource$Changes;
    channels: Resource$Channels;
    comments: Resource$Comments;
    drives: Resource$Drives;
    files: Resource$Files;
    permissions: Resource$Permissions;
    replies: Resource$Replies;
    revisions: Resource$Revisions;
    teamdrives: Resource$Teamdrives;
needs work p2 question

All 5 comments

any help ?

Any update for this? Still using the deprecated teamdrives API instead of the new drives API.

@imjustd @ghost, we regenerated and published a newer version of the APIs yesterday, so it might be worth testing version 40, and seeing if this issue is still cropping up.

If the issue is cropping up, we'll try to dig into this bug as soon as possible :+1: thanks for reporting.

I can confirm it works, although it is still required to use deprecated parameters like includeItemsFromAllDrives and supportsAllDrives in order to work, although in the docs for files.list() it clearly says they are deprecated https://developers.google.com/drive/api/v3/reference/files/list

Awesome! For the need to use deprecated parameters - for that would you mind filing a new bug here?
https://developers.google.com/drive/api/v3/support

There's not a lot we can do with the backend support, so I'm going to close this out. Thank you!

Was this page helpful?
0 / 5 - 0 ratings