Skip to content

Instantly share code, notes, and snippets.

@Shmookoff
Created April 12, 2022 19:50
Show Gist options
  • Save Shmookoff/0edeaaa2987d4a7f5a3e3fc09003fe13 to your computer and use it in GitHub Desktop.
Save Shmookoff/0edeaaa2987d4a7f5a3e3fc09003fe13 to your computer and use it in GitHub Desktop.
{
"kind": {
"type": "string",
"description": "Identifies what kind of resource this is. Value: the fixed string \"drive#file\".",
"Notes": ""
},
"id": {
"type": "string",
"description": "The ID of the file.",
"Notes": "writable"
},
"name": {
"type": "string",
"description": "The name of the file. This is not necessarily unique within a folder. Note that for immutable items such as the top level folders of shared drives, My Drive root folder, and Application Data folder the name is constant.",
"Notes": "writable"
},
"mimeType": {
"type": "string",
"description": "The MIME type of the file. Google Drive will attempt to automatically detect an appropriate value from uploaded content if no value is provided. The value cannot be changed unless a new revision is uploaded. If a file is created with a Google Doc MIME type, the uploaded content will be imported if possible. The supported import formats are published in the About resource.",
"Notes": "writable"
},
"description": {
"type": "string",
"description": "A short description of the file.",
"Notes": "writable"
},
"starred": {
"type": "boolean",
"description": "Whether the user has starred the file.",
"Notes": "writable"
},
"trashed": {
"type": "boolean",
"description": "Whether the file has been trashed, either explicitly or from a trashed parent folder. Only the owner may trash a file. The trashed item is excluded from all files.list responses returned for any user who does not own the file. However, all users with access to the file can see the trashed item metadata in an API response. All users with access can copy, download, export, and share the file.",
"Notes": "writable"
},
"explicitlyTrashed": {
"type": "boolean",
"description": "Whether the file has been explicitly trashed, as opposed to recursively trashed from a parent folder.",
"Notes": ""
},
"parents[]": {
"type": "list",
"description": "The IDs of the parent folders which contain the file. If not specified as part of a create request, the file will be placed directly in the user's My Drive folder. If not specified as part of a copy request, the file will inherit any discoverable parents of the source file. Update requests must use the addParents and removeParents parameters to modify the parents list.",
"Notes": "writable"
},
"properties": {
"type": "object",
"description": "A collection of arbitrary key-value pairs which are visible to all apps. Entries with null values are cleared in update and copy requests.",
"Notes": "writable"
},
"properties.(key)": {
"type": "string",
"description": "",
"Notes": ""
},
"appProperties": {
"type": "object",
"description": "A collection of arbitrary key-value pairs which are private to the requesting app. Entries with null values are cleared in update and copy requests. These properties can only be retrieved using an authenticated request. An authenticated request uses an access token obtained with a OAuth 2 client ID. You cannot use an API key to retrieve private properties.",
"Notes": "writable"
},
"appProperties.(key)": {
"type": "string",
"description": "",
"Notes": ""
},
"spaces[]": {
"type": "list",
"description": "The list of spaces which contain the file. The currently supported values are 'drive', 'appDataFolder' and 'photos'.",
"Notes": ""
},
"version": {
"type": "long",
"description": "A monotonically increasing version number for the file. This reflects every change made to the file on the server, even those not visible to the user.",
"Notes": ""
},
"webContentLink": {
"type": "string",
"description": "A link for downloading the content of the file in a browser. This is only available for files with binary content in Google Drive.",
"Notes": ""
},
"webViewLink": {
"type": "string",
"description": "A link for opening the file in a relevant Google editor or viewer in a browser.",
"Notes": ""
},
"iconLink": {
"type": "string",
"description": "A static, unauthenticated link to the file's icon.",
"Notes": ""
},
"thumbnailLink": {
"type": "string",
"description": "A short-lived link to the file's thumbnail, if available. Typically lasts on the order of hours. Only populated when the requesting app can access the file's content. If the file isn't shared publicly, the URL returned in Files.thumbnailLink must be fetched using a credentialed request.",
"Notes": ""
},
"viewedByMe": {
"type": "boolean",
"description": "Whether the file has been viewed by this user.",
"Notes": ""
},
"viewedByMeTime": {
"type": "datetime",
"description": "The last time the file was viewed by the user (RFC 3339 date-time).",
"Notes": "writable"
},
"createdTime": {
"type": "datetime",
"description": "The time at which the file was created (RFC 3339 date-time).",
"Notes": "writable"
},
"modifiedTime": {
"type": "datetime",
"description": "The last time the file was modified by anyone (RFC 3339 date-time). Note that setting modifiedTime will also update modifiedByMeTime for the user.",
"Notes": "writable"
},
"modifiedByMeTime": {
"type": "datetime",
"description": "The last time the file was modified by the user (RFC 3339 date-time).",
"Notes": ""
},
"sharedWithMeTime": {
"type": "datetime",
"description": "The time at which the file was shared with the user, if applicable (RFC 3339 date-time).",
"Notes": ""
},
"sharingUser": {
"type": "nested object",
"description": "The user who shared the file with the requesting user, if applicable.",
"Notes": ""
},
"sharingUser.kind": {
"type": "string",
"description": "Identifies what kind of resource this is. Value: the fixed string \"drive#user\".",
"Notes": ""
},
"sharingUser.displayName": {
"type": "string",
"description": "A plain text displayable name for this user.",
"Notes": ""
},
"sharingUser.photoLink": {
"type": "string",
"description": "A link to the user's profile photo, if available.",
"Notes": ""
},
"sharingUser.me": {
"type": "boolean",
"description": "Whether this user is the requesting user.",
"Notes": ""
},
"sharingUser.permissionId": {
"type": "string",
"description": "The user's ID as visible in Permission resources.",
"Notes": ""
},
"sharingUser.emailAddress": {
"type": "string",
"description": "The email address of the user. This may not be present in certain contexts if the user has not made their email address visible to the requester.",
"Notes": ""
},
"owners[]": {
"type": "list",
"description": "The owner of this file. Only certain legacy files may have more than one owner. This field isn't populated for items in shared drives.",
"Notes": ""
},
"owners[].kind": {
"type": "string",
"description": "Identifies what kind of resource this is. Value: the fixed string \"drive#user\".",
"Notes": ""
},
"owners[].displayName": {
"type": "string",
"description": "A plain text displayable name for this user.",
"Notes": ""
},
"owners[].photoLink": {
"type": "string",
"description": "A link to the user's profile photo, if available.",
"Notes": ""
},
"owners[].me": {
"type": "boolean",
"description": "Whether this user is the requesting user.",
"Notes": ""
},
"owners[].permissionId": {
"type": "string",
"description": "The user's ID as visible in Permission resources.",
"Notes": ""
},
"owners[].emailAddress": {
"type": "string",
"description": "The email address of the user. This may not be present in certain contexts if the user has not made their email address visible to the requester.",
"Notes": ""
},
"lastModifyingUser": {
"type": "nested object",
"description": "The last user to modify the file.",
"Notes": ""
},
"lastModifyingUser.kind": {
"type": "string",
"description": "Identifies what kind of resource this is. Value: the fixed string \"drive#user\".",
"Notes": ""
},
"lastModifyingUser.displayName": {
"type": "string",
"description": "A plain text displayable name for this user.",
"Notes": ""
},
"lastModifyingUser.photoLink": {
"type": "string",
"description": "A link to the user's profile photo, if available.",
"Notes": ""
},
"lastModifyingUser.me": {
"type": "boolean",
"description": "Whether this user is the requesting user.",
"Notes": ""
},
"lastModifyingUser.permissionId": {
"type": "string",
"description": "The user's ID as visible in Permission resources.",
"Notes": ""
},
"lastModifyingUser.emailAddress": {
"type": "string",
"description": "The email address of the user. This may not be present in certain contexts if the user has not made their email address visible to the requester.",
"Notes": ""
},
"shared": {
"type": "boolean",
"description": "Whether the file has been shared. Not populated for items in shared drives.",
"Notes": ""
},
"ownedByMe": {
"type": "boolean",
"description": "Whether the user owns the file. Not populated for items in shared drives.",
"Notes": ""
},
"viewersCanCopyContent": {
"type": "boolean",
"description": "Warning: This item is deprecated.Deprecated - use copyRequiresWriterPermission instead.",
"Notes": ""
},
"writersCanShare": {
"type": "boolean",
"description": "Whether users with only writer permission can modify the file's permissions. Not populated for items in shared drives.",
"Notes": "writable"
},
"permissions[]": {
"type": "list",
"description": "The full list of permissions for the file. This is only available if the requesting user can share the file. Not populated for items in shared drives.",
"Notes": ""
},
"folderColorRgb": {
"type": "string",
"description": "The color for a folder or shortcut to a folder as an RGB hex string. The supported colors are published in the folderColorPalette field of the About resource. If an unsupported color is specified, the closest color in the palette will be used instead.",
"Notes": "writable"
},
"originalFilename": {
"type": "string",
"description": "The original filename of the uploaded content if available, or else the original value of the name field. This is only available for files with binary content in Google Drive.",
"Notes": "writable"
},
"fullFileExtension": {
"type": "string",
"description": "The full file extension extracted from the name field. May contain multiple concatenated extensions, such as \"tar.gz\". This is only available for files with binary content in Google Drive. This is automatically updated when the name field changes, however it is not cleared if the new name does not contain a valid extension.",
"Notes": ""
},
"fileExtension": {
"type": "string",
"description": "The final component of fullFileExtension. This is only available for files with binary content in Google Drive.",
"Notes": ""
},
"md5Checksum": {
"type": "string",
"description": "The MD5 checksum for the content of the file. This is only applicable to files with binary content in Google Drive.",
"Notes": ""
},
"size": {
"type": "long",
"description": "The size of the file's content in bytes. This is applicable to binary files in Google Drive and Google Docs files.",
"Notes": ""
},
"quotaBytesUsed": {
"type": "long",
"description": "The number of storage quota bytes used by the file. This includes the head revision as well as previous revisions with keepForever enabled.",
"Notes": ""
},
"headRevisionId": {
"type": "string",
"description": "The ID of the file's head revision. This is currently only available for files with binary content in Google Drive.",
"Notes": ""
},
"contentHints": {
"type": "object",
"description": "Additional information about the content of the file. These fields are never populated in responses.",
"Notes": ""
},
"contentHints.thumbnail": {
"type": "object",
"description": "A thumbnail for the file. This will only be used if Google Drive cannot generate a standard thumbnail.",
"Notes": ""
},
"contentHints.thumbnail.image": {
"type": "bytes",
"description": "The thumbnail data encoded with URL-safe Base64 (RFC 4648 section 5).",
"Notes": "writable"
},
"contentHints.thumbnail.mimeType": {
"type": "string",
"description": "The MIME type of the thumbnail.",
"Notes": "writable"
},
"contentHints.indexableText": {
"type": "string",
"description": "Text to be indexed for the file to improve fullText queries. This is limited to 128KB in length and may contain HTML elements.",
"Notes": "writable"
},
"imageMediaMetadata": {
"type": "object",
"description": "Additional metadata about image media, if available.",
"Notes": ""
},
"imageMediaMetadata.width": {
"type": "integer",
"description": "The width of the image in pixels.",
"Notes": ""
},
"imageMediaMetadata.height": {
"type": "integer",
"description": "The height of the image in pixels.",
"Notes": ""
},
"imageMediaMetadata.rotation": {
"type": "integer",
"description": "The number of clockwise 90 degree rotations applied from the image's original orientation.",
"Notes": ""
},
"imageMediaMetadata.location": {
"type": "object",
"description": "Geographic location information stored in the image.",
"Notes": ""
},
"imageMediaMetadata.location.latitude": {
"type": "double",
"description": "The latitude stored in the image.",
"Notes": ""
},
"imageMediaMetadata.location.longitude": {
"type": "double",
"description": "The longitude stored in the image.",
"Notes": ""
},
"imageMediaMetadata.location.altitude": {
"type": "double",
"description": "The altitude stored in the image.",
"Notes": ""
},
"imageMediaMetadata.time": {
"type": "string",
"description": "The date and time the photo was taken (EXIF DateTime).",
"Notes": ""
},
"imageMediaMetadata.cameraMake": {
"type": "string",
"description": "The make of the camera used to create the photo.",
"Notes": ""
},
"imageMediaMetadata.cameraModel": {
"type": "string",
"description": "The model of the camera used to create the photo.",
"Notes": ""
},
"imageMediaMetadata.exposureTime": {
"type": "float",
"description": "The length of the exposure, in seconds.",
"Notes": ""
},
"imageMediaMetadata.aperture": {
"type": "float",
"description": "The aperture used to create the photo (f-number).",
"Notes": ""
},
"imageMediaMetadata.flashUsed": {
"type": "boolean",
"description": "Whether a flash was used to create the photo.",
"Notes": ""
},
"imageMediaMetadata.focalLength": {
"type": "float",
"description": "The focal length used to create the photo, in millimeters.",
"Notes": ""
},
"imageMediaMetadata.isoSpeed": {
"type": "integer",
"description": "The ISO speed used to create the photo.",
"Notes": ""
},
"imageMediaMetadata.meteringMode": {
"type": "string",
"description": "The metering mode used to create the photo.",
"Notes": ""
},
"imageMediaMetadata.sensor": {
"type": "string",
"description": "The type of sensor used to create the photo.",
"Notes": ""
},
"imageMediaMetadata.exposureMode": {
"type": "string",
"description": "The exposure mode used to create the photo.",
"Notes": ""
},
"imageMediaMetadata.colorSpace": {
"type": "string",
"description": "The color space of the photo.",
"Notes": ""
},
"imageMediaMetadata.whiteBalance": {
"type": "string",
"description": "The white balance mode used to create the photo.",
"Notes": ""
},
"imageMediaMetadata.exposureBias": {
"type": "float",
"description": "The exposure bias of the photo (APEX value).",
"Notes": ""
},
"imageMediaMetadata.maxApertureValue": {
"type": "float",
"description": "The smallest f-number of the lens at the focal length used to create the photo (APEX value).",
"Notes": ""
},
"imageMediaMetadata.subjectDistance": {
"type": "integer",
"description": "The distance to the subject of the photo, in meters.",
"Notes": ""
},
"imageMediaMetadata.lens": {
"type": "string",
"description": "The lens used to create the photo.",
"Notes": ""
},
"videoMediaMetadata": {
"type": "object",
"description": "Additional metadata about video media. This may not be available immediately upon upload.",
"Notes": ""
},
"videoMediaMetadata.width": {
"type": "integer",
"description": "The width of the video in pixels.",
"Notes": ""
},
"videoMediaMetadata.height": {
"type": "integer",
"description": "The height of the video in pixels.",
"Notes": ""
},
"videoMediaMetadata.durationMillis": {
"type": "long",
"description": "The duration of the video in milliseconds.",
"Notes": ""
},
"capabilities": {
"type": "object",
"description": "Capabilities the current user has on this file. Each capability corresponds to a fine-grained action that a user may take.",
"Notes": ""
},
"capabilities.canEdit": {
"type": "boolean",
"description": "Whether the current user can edit this file. Other factors may limit the type of changes a user can make to a file. For example, see canChangeCopyRequiresWriterPermission or canModifyContent.",
"Notes": ""
},
"capabilities.canComment": {
"type": "boolean",
"description": "Whether the current user can comment on this file.",
"Notes": ""
},
"capabilities.canShare": {
"type": "boolean",
"description": "Whether the current user can modify the sharing settings for this file.",
"Notes": ""
},
"capabilities.canCopy": {
"type": "boolean",
"description": "Whether the current user can copy this file. For an item in a shared drive, whether the current user can copy non-folder descendants of this item, or this item itself if it is not a folder.",
"Notes": ""
},
"capabilities.canReadRevisions": {
"type": "boolean",
"description": "Whether the current user can read the revisions resource of this file. For a shared drive item, whether revisions of non-folder descendants of this item, or this item itself if it is not a folder, can be read.",
"Notes": ""
},
"isAppAuthorized": {
"type": "boolean",
"description": "Whether the file was created or opened by the requesting app.",
"Notes": ""
},
"hasThumbnail": {
"type": "boolean",
"description": "Whether this file has a thumbnail. This does not indicate whether the requesting app has access to the thumbnail. To check access, look for the presence of the thumbnailLink field.",
"Notes": ""
},
"thumbnailVersion": {
"type": "long",
"description": "The thumbnail version for use in thumbnail cache invalidation.",
"Notes": ""
},
"modifiedByMe": {
"type": "boolean",
"description": "Whether the file has been modified by this user.",
"Notes": ""
},
"trashingUser": {
"type": "nested object",
"description": "If the file has been explicitly trashed, the user who trashed it. Only populated for items in shared drives.",
"Notes": ""
},
"trashingUser.kind": {
"type": "string",
"description": "Identifies what kind of resource this is. Value: the fixed string \"drive#user\".",
"Notes": ""
},
"trashingUser.displayName": {
"type": "string",
"description": "A plain text displayable name for this user.",
"Notes": ""
},
"trashingUser.photoLink": {
"type": "string",
"description": "A link to the user's profile photo, if available.",
"Notes": ""
},
"trashingUser.me": {
"type": "boolean",
"description": "Whether this user is the requesting user.",
"Notes": ""
},
"trashingUser.permissionId": {
"type": "string",
"description": "The user's ID as visible in Permission resources.",
"Notes": ""
},
"trashingUser.emailAddress": {
"type": "string",
"description": "The email address of the user. This may not be present in certain contexts if the user has not made their email address visible to the requester.",
"Notes": ""
},
"trashedTime": {
"type": "datetime",
"description": "The time that the item was trashed (RFC 3339 date-time). Only populated for items in shared drives.",
"Notes": ""
},
"teamDriveId": {
"type": "string",
"description": "Warning: This item is deprecated.Deprecated - use driveId instead.",
"Notes": ""
},
"capabilities.canAddChildren": {
"type": "boolean",
"description": "Whether the current user can add children to this folder. This is always false when the item is not a folder.",
"Notes": ""
},
"capabilities.canDelete": {
"type": "boolean",
"description": "Whether the current user can delete this file.",
"Notes": ""
},
"capabilities.canDownload": {
"type": "boolean",
"description": "Whether the current user can download this file.",
"Notes": ""
},
"capabilities.canListChildren": {
"type": "boolean",
"description": "Whether the current user can list the children of this folder. This is always false when the item is not a folder.",
"Notes": ""
},
"capabilities.canMoveTeamDriveItem": {
"type": "boolean",
"description": "Warning: This item is deprecated.Deprecated - use canMoveItemWithinDrive or canMoveItemOutOfDrive instead.",
"Notes": ""
},
"capabilities.canMoveItemIntoTeamDrive": {
"type": "boolean",
"description": "Warning: This item is deprecated.Deprecated - use canMoveItemOutOfDrive instead.",
"Notes": ""
},
"capabilities.canReadTeamDrive": {
"type": "boolean",
"description": "Warning: This item is deprecated.Deprecated - use canReadDrive instead.",
"Notes": ""
},
"capabilities.canRemoveChildren": {
"type": "boolean",
"description": "Whether the current user can remove children from this folder. This is always false when the item is not a folder. For a folder in a shared drive, use canDeleteChildren or canTrashChildren instead.",
"Notes": ""
},
"capabilities.canRename": {
"type": "boolean",
"description": "Whether the current user can rename this file.",
"Notes": ""
},
"capabilities.canTrash": {
"type": "boolean",
"description": "Whether the current user can move this file to trash.",
"Notes": ""
},
"capabilities.canUntrash": {
"type": "boolean",
"description": "Whether the current user can restore this file from trash.",
"Notes": ""
},
"hasAugmentedPermissions": {
"type": "boolean",
"description": "Whether there are permissions directly on this file. This field is only populated for items in shared drives.",
"Notes": ""
},
"capabilities.canChangeViewersCanCopyContent": {
"type": "boolean",
"description": "Warning: This item is deprecated.Deprecated",
"Notes": ""
},
"permissionIds[]": {
"type": "list",
"description": "List of permission IDs for users with access to this file.",
"Notes": ""
},
"capabilities.canChangeCopyRequiresWriterPermission": {
"type": "boolean",
"description": "Whether the current user can change the copyRequiresWriterPermission restriction of this file.",
"Notes": ""
},
"copyRequiresWriterPermission": {
"type": "boolean",
"description": "Whether the options to copy, print, or download this file, should be disabled for readers and commenters.",
"Notes": "writable"
},
"capabilities.canDeleteChildren": {
"type": "boolean",
"description": "Whether the current user can delete children of this folder. This is false when the item is not a folder. Only populated for items in shared drives.",
"Notes": ""
},
"capabilities.canMoveChildrenOutOfTeamDrive": {
"type": "boolean",
"description": "Warning: This item is deprecated.Deprecated - use canMoveChildrenOutOfDrive instead.",
"Notes": ""
},
"capabilities.canMoveChildrenWithinTeamDrive": {
"type": "boolean",
"description": "Warning: This item is deprecated.Deprecated - use canMoveChildrenWithinDrive instead.",
"Notes": ""
},
"capabilities.canMoveItemOutOfTeamDrive": {
"type": "boolean",
"description": "Warning: This item is deprecated.Deprecated - use canMoveItemOutOfDrive instead.",
"Notes": ""
},
"capabilities.canMoveItemWithinTeamDrive": {
"type": "boolean",
"description": "Warning: This item is deprecated.Deprecated - use canMoveItemWithinDrive instead.",
"Notes": ""
},
"capabilities.canTrashChildren": {
"type": "boolean",
"description": "Whether the current user can trash children of this folder. This is false when the item is not a folder. Only populated for items in shared drives.",
"Notes": ""
},
"exportLinks": {
"type": "object",
"description": "Links for exporting Docs Editors files to specific formats.",
"Notes": ""
},
"exportLinks.(key)": {
"type": "string",
"description": "A mapping from export format to URL",
"Notes": ""
},
"driveId": {
"type": "string",
"description": "ID of the shared drive the file resides in. Only populated for items in shared drives.",
"Notes": ""
},
"capabilities.canMoveChildrenOutOfDrive": {
"type": "boolean",
"description": "Whether the current user can move children of this folder outside of the shared drive. This is false when the item is not a folder. Only populated for items in shared drives.",
"Notes": ""
},
"capabilities.canMoveChildrenWithinDrive": {
"type": "boolean",
"description": "Whether the current user can move children of this folder within this drive. This is false when the item is not a folder. Note that a request to move the child may still fail depending on the current user's access to the child and to the destination folder.",
"Notes": ""
},
"capabilities.canMoveItemOutOfDrive": {
"type": "boolean",
"description": "Whether the current user can move this item outside of this drive by changing its parent. Note that a request to change the parent of the item may still fail depending on the new parent that is being added.",
"Notes": ""
},
"capabilities.canMoveItemWithinDrive": {
"type": "boolean",
"description": "Whether the current user can move this item within this drive. Note that a request to change the parent of the item may still fail depending on the new parent that is being added and the parent that is being removed.",
"Notes": ""
},
"capabilities.canReadDrive": {
"type": "boolean",
"description": "Whether the current user can read the shared drive to which this file belongs. Only populated for items in shared drives.",
"Notes": ""
},
"capabilities.canModifyContent": {
"type": "boolean",
"description": "Whether the current user can modify the content of this file.",
"Notes": ""
},
"capabilities.canAddMyDriveParent": {
"type": "boolean",
"description": "Whether the current user can add a parent for the item without removing an existing parent in the same request. Not populated for shared drive files.",
"Notes": ""
},
"capabilities.canRemoveMyDriveParent": {
"type": "boolean",
"description": "Whether the current user can remove a parent from the item without adding another parent in the same request. Not populated for shared drive files.",
"Notes": ""
},
"shortcutDetails": {
"type": "object",
"description": "Shortcut file details. Only populated for shortcut files, which have the mimeType field set to application/vnd.google-apps.shortcut.",
"Notes": ""
},
"shortcutDetails.targetId": {
"type": "string",
"description": "The ID of the file that this shortcut points to.",
"Notes": "writable"
},
"shortcutDetails.targetMimeType": {
"type": "string",
"description": "The MIME type of the file that this shortcut points to. The value of this field is a snapshot of the target's MIME type, captured when the shortcut is created.",
"Notes": ""
},
"capabilities.canAddFolderFromAnotherDrive": {
"type": "boolean",
"description": "Whether the current user can add a folder from another drive (different shared drive or My Drive) to this folder. This is false when the item is not a folder. Only populated for items in shared drives.",
"Notes": ""
},
"capabilities.canModifyContentRestriction": {
"type": "boolean",
"description": "Whether the current user can modify restrictions on content of this file.",
"Notes": ""
},
"contentRestrictions[]": {
"type": "list",
"description": "Restrictions for accessing the content of the file. Only populated if such a restriction exists.",
"Notes": ""
},
"contentRestrictions[].readOnly": {
"type": "boolean",
"description": "Whether the content of the file is read-only. If a file is read-only, a new revision of the file may not be added, comments may not be added or modified, and the title of the file may not be modified.",
"Notes": "writable"
},
"contentRestrictions[].reason": {
"type": "string",
"description": "Reason for why the content of the file is restricted. This is only mutable on requests that also set readOnly=true.",
"Notes": "writable"
},
"contentRestrictions[].restrictingUser": {
"type": "nested object",
"description": "The user who set the content restriction. Only populated if readOnly is true.",
"Notes": ""
},
"contentRestrictions[].restrictingUser.kind": {
"type": "string",
"description": "Identifies what kind of resource this is. Value: the fixed string \"drive#user\".",
"Notes": ""
},
"contentRestrictions[].restrictingUser.displayName": {
"type": "string",
"description": "A plain text displayable name for this user.",
"Notes": ""
},
"contentRestrictions[].restrictingUser.photoLink": {
"type": "string",
"description": "A link to the user's profile photo, if available.",
"Notes": ""
},
"contentRestrictions[].restrictingUser.me": {
"type": "boolean",
"description": "Whether this user is the requesting user.",
"Notes": ""
},
"contentRestrictions[].restrictingUser.permissionId": {
"type": "string",
"description": "The user's ID as visible in Permission resources.",
"Notes": ""
},
"contentRestrictions[].restrictingUser.emailAddress": {
"type": "string",
"description": "The email address of the user. This may not be present in certain contexts if the user has not made their email address visible to the requester.",
"Notes": ""
},
"contentRestrictions[].restrictionTime": {
"type": "datetime",
"description": "The time at which the content restriction was set (formatted RFC 3339 timestamp). Only populated if readOnly is true.",
"Notes": ""
},
"contentRestrictions[].type": {
"type": "string",
"description": "The type of the content restriction. Currently the only possible value is globalContentRestriction.",
"Notes": ""
},
"capabilities.canChangeSecurityUpdateEnabled": {
"type": "boolean",
"description": "Whether the current user can change the securityUpdateEnabled field on link share metadata.",
"Notes": ""
},
"shortcutDetails.targetResourceKey": {
"type": "string",
"description": "The ResourceKey for the target file.",
"Notes": ""
},
"resourceKey": {
"type": "string",
"description": "A key needed to access the item via a shared link.",
"Notes": ""
},
"linkShareMetadata": {
"type": "object",
"description": "Contains details about the link URLs that clients are using to refer to this item.",
"Notes": ""
},
"linkShareMetadata.securityUpdateEligible": {
"type": "boolean",
"description": "Whether the file is eligible for security update.",
"Notes": ""
},
"linkShareMetadata.securityUpdateEnabled": {
"type": "boolean",
"description": "Whether the security update is enabled for this file.",
"Notes": ""
},
"capabilities.canAcceptOwnership": {
"type": "boolean",
"description": "Whether the current user is the pending owner of the file. Not populated for shared drive files.",
"Notes": ""
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment