IPWorks Cloud 2020 Delphi Edition

Questions / Feedback?

SharedDriveList Event

Fires once for each shared drive returned when listing shared drives.

Syntax

type TSharedDriveListEvent = procedure (
  Sender: TObject;
  const Id: String;
  const Name: String;
  const CreatedTime: String;
  Hidden: Boolean;
  Capabilities: Integer;
  Restrictions: Integer
) of Object;

property OnSharedDriveList: TSharedDriveListEvent read FOnSharedDriveList write FOnSharedDriveList;

Remarks

This event fires once for each shared drive returned when ListSharedDrives is called.

Id is the Id of the shared drive.

Name holds the shared drive's name.

CreatedTime holds a DateTime string representing the creation date of the resource. This is a combined date-time value (formatted according to RFC 3339).

Hidden indicates whether the shared drive is hidden from default view (i.e., whether it is shown by default in the Google Drive UI).

Capabilities describes the effective capabilities that the current user has for the shared drive. The value is a bit field comprised of one or more of the following, OR'ed together:

Hex Value Description
0x00001 User can add children to the shared drive's folders.
0x00002 User can change the shared drive's copyRequiresWriterPermission restriction.
0x00004 User can change the shared drive's domainUsersOnly restriction.
0x00008 User can change the shared drive's background image.
0x00010 User can change the shared drive's driveMembersOnly restriction.
0x00020 User can comment on the shared drive's files.
0x00040 User can copy files in the shared drive.
0x00080 User can permanently delete children from the shared drive's folders.
0x00100 User can delete the shared drive.
0x00200 User can download the shared drive's files.
0x00400 User can edit the shared drive's files.
0x00800 User can list children of folders in the shared drive.
0x01000 User can add, remove, and update shared drive members.
0x02000 User can read revisions of the shared drive's files.
0x04000 User can rename the shared drive's files and folders.
0x08000 User can rename the shared drive.
0x10000 User can share the shared drive's files and folders.
0x20000 User can trash children from the shared drive's folders.

Restrictions describes any restrictions that apply to the shared drive and/or its contents. The value is a bit field comprised of one or more of the following, OR'ed together:

Hex Value Description
0x0001 Administrative privileges on the shared drive are required to modify restrictions.
0x0002 Readers and commenters cannot copy, print, or download files in the shared drive.
0x0004 Access to the shared drive, and its contents, is restricted to users in its domain.
0x0008 Access to items in the shared drive is restricted to its members.

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks Cloud 2020 Delphi Edition - Version 20.0 [Build 8265]