Google Drive API (drive:v2)

2023-05-25

26 updated methods

Updates

    Methods
  • drive.files.delete

      Parameters :

        enforceSingleParent

          Deprecated : Yes

          Default : false

          Location : query

          Description : Deprecated: If an item is not in a shared drive and its last parent is deleted but the item itself is not, the item is placed under its owner's root.

          Type : boolean

        supportsTeamDrives

          Default : false

          Deprecated : Yes

          Location : query

          Type : boolean

          Description : Deprecated: Use `supportsAllDrives` instead.

  • drive.files.watch

      Parameters :

        projection

          Type : string

          Enum Descriptions :

        • Deprecated.
        • Deprecated.
        • Deprecated : Yes

          Location : query

          Enum :

        • BASIC
        • FULL
        • Description : Deprecated: This parameter has no function.

        updateViewedDate

          Type : boolean

          Deprecated : Yes

          Location : query

          Description : Deprecated: Use files.update with modifiedDateBehavior=noChange, updateViewedDate=true and an empty request body.

          Default : false

        supportsTeamDrives

          Type : boolean

          Location : query

          Deprecated : Yes

          Description : Deprecated: Use `supportsAllDrives` instead.

          Default : false

  • drive.files.untrash

      Parameters :

        supportsTeamDrives

          Type : boolean

          Description : Deprecated: Use `supportsAllDrives` instead.

          Location : query

          Default : false

          Deprecated : Yes

  • drive.files.list

      Parameters :

        corpus

          Enum Descriptions :

        • The items that the user has accessed.
        • Items shared to the user's domain.
        • Location : query

          Type : string

          Deprecated : Yes

          Enum :

        • DEFAULT
        • DOMAIN
        • Description : Deprecated: The body of items (files/documents) to which the query applies. Use `corpora` instead.

        projection

          Description : Deprecated: This parameter has no function.

          Enum :

        • BASIC
        • FULL
        • Deprecated : Yes

          Location : query

          Enum Descriptions :

        • Deprecated.
        • Deprecated.
        • Type : string

        teamDriveId

          Location : query

          Description : Deprecated: Use `driveId` instead.

          Type : string

          Deprecated : Yes

        includeTeamDriveItems

          Deprecated : Yes

          Type : boolean

          Location : query

          Description : Deprecated: Use `includeItemsFromAllDrives` instead.

          Default : false

        supportsTeamDrives

          Type : boolean

          Default : false

          Description : Deprecated: Use `supportsAllDrives` instead.

          Deprecated : Yes

          Location : query

  • drive.files.get

      Parameters :

        supportsTeamDrives

          Description : Deprecated: Use `supportsAllDrives` instead.

          Location : query

          Default : false

          Type : boolean

          Deprecated : Yes

        updateViewedDate

          Type : boolean

          Default : false

          Location : query

          Deprecated : Yes

          Description : Deprecated: Use `files.update` with `modifiedDateBehavior=noChange, updateViewedDate=true` and an empty request body.

        projection

          Location : query

          Type : string

          Description : Deprecated: This parameter has no function.

          Enum Descriptions :

        • Deprecated.
        • Deprecated.
        • Enum :

        • BASIC
        • FULL
        • Deprecated : Yes

  • drive.files.emptyTrash

      Parameters :

        enforceSingleParent

          Default : false

          Type : boolean

          Location : query

          Description : Deprecated: If an item is not in a shared drive and its last parent is deleted but the item itself is not, the item is placed under its owner's root.

          Deprecated : Yes

  • drive.files.patch

      Parameters :

        enforceSingleParent

          Type : boolean

          Location : query

          Description : Deprecated: Adding files to multiple folders is no longer supported. Use `shortcuts` instead.

          Default : false

          Deprecated : Yes

        supportsTeamDrives

          Location : query

          Type : boolean

          Deprecated : Yes

          Default : false

          Description : Deprecated: Use `supportsAllDrives` instead.

        convert

          Default : false

          Location : query

          Description : Deprecated: This parameter has no function.

          Deprecated : Yes

          Type : boolean

  • drive.files.touch

      Parameters :

        supportsTeamDrives

          Deprecated : Yes

          Location : query

          Description : Deprecated: Use `supportsAllDrives` instead.

          Default : false

          Type : boolean

  • drive.files.trash

      Parameters :

        supportsTeamDrives

          Location : query

          Deprecated : Yes

          Type : boolean

          Default : false

          Description : Deprecated: Use `supportsAllDrives` instead.

  • drive.files.insert

      Parameters :

        enforceSingleParent

          Default : false

          Location : query

          Deprecated : Yes

          Type : boolean

          Description : Deprecated: Creating files in multiple folders is no longer supported.

        supportsTeamDrives

          Description : Deprecated: Use `supportsAllDrives` instead.

          Deprecated : Yes

          Location : query

          Type : boolean

          Default : false

  • drive.files.update

      Parameters :

        enforceSingleParent

          Deprecated : Yes

          Type : boolean

          Default : false

          Location : query

          Description : Deprecated: Adding files to multiple folders is no longer supported. Use `shortcuts` instead.

        convert

          Description : Deprecated: This parameter has no function.

          Default : false

          Type : boolean

          Deprecated : Yes

          Location : query

        supportsTeamDrives

          Deprecated : Yes

          Type : boolean

          Default : false

          Description : Deprecated: Use `supportsAllDrives` instead.

          Location : query

  • drive.files.copy

      Parameters :

        enforceSingleParent

          Location : query

          Default : false

          Description : Deprecated: Copying files into multiple folders is no longer supported. Use shortcuts instead.

          Type : boolean

          Deprecated : Yes

        supportsTeamDrives

          Default : false

          Type : boolean

          Description : Deprecated: Use `supportsAllDrives` instead.

          Location : query

          Deprecated : Yes

  • drive.parents.delete

      Parameters :

        enforceSingleParent

          Type : boolean

          Description : Deprecated: If an item is not in a shared drive and its last parent is removed, the item is placed under its owner's root.

          Location : query

          Deprecated : Yes

          Default : false

  • drive.parents.insert

      Parameters :

        supportsTeamDrives

          Description : Deprecated: Use `supportsAllDrives` instead.

          Default : false

          Deprecated : Yes

          Type : boolean

          Location : query

        enforceSingleParent

          Type : boolean

          Location : query

          Default : false

          Description : Deprecated: Adding files to multiple folders is no longer supported. Use `shortcuts` instead.

          Deprecated : Yes

  • drive.children.delete

      Parameters :

        enforceSingleParent

          Type : boolean

          Default : false

          Description : Deprecated: If an item is not in a shared drive and its last parent is removed, the item is placed under its owner's root.

          Location : query

          Deprecated : Yes

  • drive.children.insert

      Parameters :

        supportsTeamDrives

          Type : boolean

          Description : Deprecated: Use `supportsAllDrives` instead.

          Location : query

          Deprecated : Yes

          Default : false

        enforceSingleParent

          Location : query

          Default : false

          Deprecated : Yes

          Type : boolean

          Description : Deprecated: Adding files to multiple folders is no longer supported. Use `shortcuts` instead.

  • drive.changes.getStartPageToken

      Parameters :

        teamDriveId

          Description : Deprecated: Use `driveId` instead.

          Type : string

          Deprecated : Yes

          Location : query

        supportsTeamDrives

          Description : Deprecated: Use `supportsAllDrives` instead.

          Location : query

          Type : boolean

          Default : false

          Deprecated : Yes

  • drive.changes.get

      Parameters :

        supportsTeamDrives

          Description : Deprecated: Use `supportsAllDrives` instead.

          Deprecated : Yes

          Type : boolean

          Default : false

          Location : query

        teamDriveId

          Description : Deprecated: Use `driveId` instead.

          Type : string

          Location : query

          Deprecated : Yes

  • drive.changes.list

      Parameters :

        supportsTeamDrives

          Type : boolean

          Default : false

          Location : query

          Deprecated : Yes

          Description : Deprecated: Use `supportsAllDrives` instead.

        includeTeamDriveItems

          Deprecated : Yes

          Type : boolean

          Default : false

          Location : query

          Description : Deprecated: Use `includeItemsFromAllDrives` instead.

        startChangeId

          Type : string

          Format : int64

          Location : query

          Deprecated : Yes

          Description : Deprecated: Use `pageToken` instead.

        teamDriveId

          Location : query

          Deprecated : Yes

          Description : Deprecated: Use `driveId` instead.

          Type : string

  • drive.changes.watch

      Parameters :

        startChangeId

          Deprecated : Yes

          Location : query

          Type : string

          Description : Deprecated: Use `pageToken` instead.

          Format : int64

        includeTeamDriveItems

          Default : false

          Location : query

          Description : Deprecated: Use `includeItemsFromAllDrives` instead.

          Type : boolean

          Deprecated : Yes

        supportsTeamDrives

          Location : query

          Deprecated : Yes

          Type : boolean

          Description : Deprecated: Use `supportsAllDrives` instead.

          Default : false

        teamDriveId

          Deprecated : Yes

          Description : Deprecated: Use `driveId` instead.

          Location : query

          Type : string

  • drive.permissions.delete

      Parameters :

        supportsTeamDrives

          Location : query

          Type : boolean

          Default : false

          Deprecated : Yes

          Description : Deprecated: Use `supportsAllDrives` instead.

  • drive.permissions.insert

      Parameters :

        enforceSingleParent

          Type : boolean

          Location : query

          Default : false

          Description : Deprecated: See `moveToNewOwnersRoot` for details.

          Deprecated : Yes

        supportsTeamDrives

          Deprecated : Yes

          Location : query

          Type : boolean

          Description : Deprecated: Use `supportsAllDrives` instead.

          Default : false

  • drive.permissions.list

      Parameters :

        supportsTeamDrives

          Description : Deprecated: Use `supportsAllDrives` instead.

          Type : boolean

          Deprecated : Yes

          Location : query

          Default : false

  • drive.permissions.patch

      Parameters :

        supportsTeamDrives

          Description : Deprecated: Use `supportsAllDrives` instead.

          Location : query

          Default : false

          Deprecated : Yes

          Type : boolean

  • drive.permissions.update

      Parameters :

        supportsTeamDrives

          Description : Deprecated: Use `supportsAllDrives` instead.

          Type : boolean

          Location : query

          Deprecated : Yes

          Default : false

  • drive.permissions.get

      Parameters :

        supportsTeamDrives

          Description : Deprecated: Use `supportsAllDrives` instead.

          Default : false

          Type : boolean

          Deprecated : Yes

          Location : query