IPWorks Cloud 2020 .NET Edition

Questions / Feedback?

GDriveSharedDrive Type

A shared drive.

Remarks

This type represents a shared drive.

Fields

Capabilities
Integer

The capabilities that the current user has for the shared drive.

This field 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.

CreatedTime
String

The creation date of the shared drive.

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

Hidden
Boolean

Whether the shared drive is hidden from default view.

This field specifies whether the shared drive is hidden from default view. To hide or unhide a shared drive, call the ToggleSharedDriveHidden method.

If a shared drive is hidden, it will not show up in the Google Drive UI by default (but is still otherwise accessible). Google Drive tracks this setting separately for each user; i.e., each member of a shared drive can choose whether the shared drive should be hidden or not.

Id
String

The Id of the shared drive.

This field holds the Id of the shared drive.

Name
String

The name of the shared drive.

This field reflects the name of the shared drive.

The UpdateSharedDrive method can be used to rename the shared drive if the current user is allowed to do so (i.e., if the Capabilities field has the 0x08000 flag set).

Restrictions
Integer

The restrictions that apply to the shared drive.

This field specifies the restrictions that apply to the shared drive. The value is a bitmask 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.

The UpdateSharedDrive method can be used to change any of the shared drive's restrictions that the current user is allowed to alter (indicated by the presence of the 0x00002, 0x00004, and/or 0x00010 flags in the Capabilities field).

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