Skip to main content

drives

Overview

Namedrives
TypeResource
Idgoogleworkspace.drive.drives

Fields

NameDatatypeDescription
idstringThe ID of this shared drive which is also the ID of the top level folder of this shared drive.
namestringThe name of this shared drive.
createdTimestringThe time at which the shared drive was created (RFC 3339 date-time).
orgUnitIdstringThe organizational unit of this shared drive. This field is only populated on drives.list responses when the useDomainAdminAccess parameter is set to true.
themeIdstringThe ID of the theme from which the background image and color will be set. The set of possible driveThemes can be retrieved from a drive.about.get response. When not specified on a drive.drives.create request, a random theme is chosen from which the background image and color are set. This is a write-only field; it can only be set on requests that don't set colorRgb or backgroundImageFile.
colorRgbstringThe color of this shared drive as an RGB hex string. It can only be set on a drive.drives.update request that does not set themeId.
hiddenbooleanWhether the shared drive is hidden from default view.
backgroundImageFileobjectAn image file and cropping parameters from which a background image for this shared drive is set. This is a write only field; it can only be set on drive.drives.update requests that don't set themeId. When specified, all fields of the backgroundImageFile must be set.
capabilitiesobjectCapabilities the current user has on this shared drive.
backgroundImageLinkstringA short-lived link to this shared drive's background image.
kindstringIdentifies what kind of resource this is. Value: the fixed string "drive#drive".
restrictionsobjectA set of restrictions that apply to this shared drive or items inside this shared drive.

Methods

NameAccessible byRequired ParamsDescription
getSELECTdriveIdGets a shared drive's metadata by ID.
listSELECTLists the user's shared drives.
createINSERTrequestIdCreates a shared drive.
deleteDELETEdriveIdPermanently deletes a shared drive for which the user is an organizer. The shared drive cannot contain any untrashed items.
hideEXECdriveIdHides a shared drive from the default view.
unhideEXECdriveIdRestores a shared drive to the default view.
updateEXECdriveIdUpdates the metadate for a shared drive.