Clean and regen docs (#401)
diff --git a/docs/dyn/drive_v2.files.html b/docs/dyn/drive_v2.files.html
index 46686d3..b201612 100644
--- a/docs/dyn/drive_v2.files.html
+++ b/docs/dyn/drive_v2.files.html
@@ -139,7 +139,7 @@
The object takes the form of:
{ # The metadata for a file.
- "hasThumbnail": True or False, # Whether this file has a thumbnail.
+ "hasThumbnail": True or False, # 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.
"lastViewedByMeDate": "A String", # Last time this file was viewed by the user (formatted RFC 3339 timestamp).
"trashedDate": "A String", # The time that the item was trashed (formatted RFC 3339 timestamp). Only populated for Team Drive files.
"version": "A String", # 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 requesting user.
@@ -206,29 +206,30 @@
"isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
"emailAddress": "A String", # The email address of the user.
},
- "copyable": True or False, # Whether the file can be copied by the current user. Deprecated: use capabilities/canCopy.
+ "copyable": True or False, # Deprecated: use capabilities/canCopy.
"folderColorRgb": "A String", # Folder color as an RGB hex string if the file is a folder. The list of supported colors is available in the folderColorPalette field of the About resource. If an unsupported color is specified, it will be changed to the closest color in the palette. Not populated for Team Drive files.
"markedViewedByMeDate": "A String", # Deprecated.
"ownerNames": [ # Name(s) of the owner(s) of this file. Not populated for Team Drive files.
"A String",
],
- "capabilities": { # Capabilities the current user has on the file. Each capability corresponds to a fine-grained action that a user may take.
- "canReadRevisions": True or False, # Whether the current user has read access to the Revisions resource of the file. For a Team Drive item, whether revisions of non-folder descendants of this item, or this item itself if it is not a folder, can be read.
- "canTrash": True or False, # Whether the file can be trashed by the current user.
- "canCopy": True or False, # Whether the file can be copied by the current user. For a Team Drive item, whether non-folder descendants of this item, or this item itself if it is not a folder, can be copied.
- "canShare": True or False, # Whether the file's sharing settings can be modified by the current user.
- "canDelete": True or False, # Whether the file can be deleted by the current user.
+ "capabilities": { # Capabilities the current user has on this file. Each capability corresponds to a fine-grained action that a user may take.
+ "canReadRevisions": True or False, # Whether the current user can read the revisions resource of this file. For a Team Drive item, whether revisions of non-folder descendants of this item, or this item itself if it is not a folder, can be read.
+ "canTrash": True or False, # Whether the current user can move this file to trash.
+ "canCopy": True or False, # Whether the current user can copy this file. For a Team Drive item, whether the current user can copy non-folder descendants of this item, or this item itself if it is not a folder.
+ "canShare": True or False, # Whether the current user can modify the sharing settings for this file.
+ "canDelete": True or False, # Whether the current user can delete this file.
"canMoveTeamDriveItem": True or False, # Whether the current user can move this Team Drive item by changing its parent. Note that a request to change the parent for this item may still fail depending on the new parent that is being added. Only populated for Team Drive files.
- "canRename": True or False, # Whether the file can be renamed by the current user.
+ "canRename": True or False, # Whether the current user can rename this file.
"canListChildren": True or False, # Whether the current user can list the children of this folder. This is always false when the item is not a folder.
+ "canChangeRestrictedDownload": True or False, # Whether the current user can change the restricted download label of this file.
"canMoveItemIntoTeamDrive": True or False, # Whether the current user can move this item into a Team Drive. If the item is in a Team Drive, this field is equivalent to canMoveTeamDriveItem.
- "canDownload": True or False, # Whether the file can be downloaded by the current user.
- "canComment": True or False, # Whether the current user can comment on the file.
+ "canDownload": True or False, # Whether the current user can download this file.
+ "canComment": True or False, # Whether the current user can comment on this file.
"canRemoveChildren": True or False, # Whether the current user can remove children from this folder. This is always false when the item is not a folder.
- "canReadTeamDrive": True or False, # Whether the current user has read access to the Team Drive to which this file belongs. Only populated for Team Drive files.
+ "canReadTeamDrive": True or False, # Whether the current user can read the Team Drive to which this file belongs. Only populated for Team Drive files.
"canAddChildren": True or False, # Whether the current user can add children to this folder. This is always false when the item is not a folder.
- "canEdit": True or False, # Whether the file can be edited by the current user.
- "canUntrash": True or False, # Whether the file can be restored from the trash by the current user.
+ "canEdit": True or False, # Whether the current user can edit this file.
+ "canUntrash": True or False, # Whether the current user can restore this file from trash.
},
"sharedWithMeDate": "A String", # Time at which this file was shared with the user (formatted RFC 3339 timestamp).
"webViewLink": "A String", # A link only available on public folders for viewing their static web assets (HTML, CSS, JS, etc) via Google Drive's Website Hosting.
@@ -252,7 +253,7 @@
"withLink": True or False, # Whether the link is required for this permission.
"domain": "A String", # The domain name of the entity this permission refers to. This is an output-only field which is present when the permission type is user, group or domain.
"name": "A String", # The name for this permission.
- "teamDrivePermissionDetails": [ # Details of whether the Permissions on this Team Drive item are inherited or directly on this item. This is an output-only field which is present only for Team Drive items.
+ "teamDrivePermissionDetails": [ # Details of whether the permissions on this Team Drive item are inherited or directly on this item. This is an output-only field which is present only for Team Drive items.
{
"inheritedFrom": "A String", # The ID of the item from which this permission is inherited. This is an output-only field and is only populated for members of the Team Drive.
"role": "A String", # The primary role for this user. While new values may be added in the future, the following are currently possible:
@@ -268,6 +269,7 @@
"inherited": True or False, # Whether this permission is inherited. This field is always populated. This is an output-only field.
},
],
+ "deleted": True or False, # Whether the account associated with this permission has been deleted. This field only pertains to user and group permissions.
"kind": "drive#permission", # This is always drive#permission.
"value": "A String", # The email address or domain name for the entity. This is used during inserts and is not populated in responses. When making a drive.permissions.insert request, exactly one of the id or value fields must be specified unless the permission type is anyone, in which case both id and value are ignored.
"id": "A String", # The ID of the user this permission refers to, and identical to the permissionId in the About and Files resources. When making a drive.permissions.insert request, exactly one of the id or value fields must be specified unless the permission type is anyone, in which case both id and value are ignored.
@@ -300,7 +302,7 @@
"openWithLinks": { # A map of the id of each of the user's apps to a link to open this file with that app. Only populated when the drive.apps.readonly scope is used.
"a_key": "A String",
},
- "canReadRevisions": True or False, # Whether the current user has read access to the Revisions resource of the file. Deprecated: use capabilities/canReadRevisions.
+ "canReadRevisions": True or False, # Deprecated: use capabilities/canReadRevisions.
"imageMediaMetadata": { # Metadata about image media. This will only be present for image types, and its contents will depend on what can be parsed from the image content.
"exposureBias": 3.14, # The exposure bias of the photo (APEX value).
"exposureTime": 3.14, # The length of the exposure, in seconds.
@@ -335,9 +337,9 @@
"durationMillis": "A String", # The duration of the video in milliseconds.
"height": 42, # The height of the video in pixels.
},
- "editable": True or False, # Whether the file can be edited by the current user. Deprecated: use capabilities/canEdit.
+ "editable": True or False, # Deprecated: use capabilities/canEdit.
"kind": "drive#file", # The type of file. This is always drive#file.
- "canComment": True or False, # Whether the current user can comment on the file. Deprecated: use capabilities/canComment.
+ "canComment": True or False, # Deprecated: use capabilities/canComment.
"quotaBytesUsed": "A String", # The number of quota bytes used by this file.
"fileSize": "A String", # The size of the file in bytes. This field is only populated for files with content stored in Drive; it is not populated for Google Docs or shortcut files.
"createdDate": "A String", # Create time for this file (formatted RFC 3339 timestamp).
@@ -373,7 +375,7 @@
"withLink": True or False, # Whether the link is required for this permission.
"domain": "A String", # The domain name of the entity this permission refers to. This is an output-only field which is present when the permission type is user, group or domain.
"name": "A String", # The name for this permission.
- "teamDrivePermissionDetails": [ # Details of whether the Permissions on this Team Drive item are inherited or directly on this item. This is an output-only field which is present only for Team Drive items.
+ "teamDrivePermissionDetails": [ # Details of whether the permissions on this Team Drive item are inherited or directly on this item. This is an output-only field which is present only for Team Drive items.
{
"inheritedFrom": "A String", # The ID of the item from which this permission is inherited. This is an output-only field and is only populated for members of the Team Drive.
"role": "A String", # The primary role for this user. While new values may be added in the future, the following are currently possible:
@@ -389,6 +391,7 @@
"inherited": True or False, # Whether this permission is inherited. This field is always populated. This is an output-only field.
},
],
+ "deleted": True or False, # Whether the account associated with this permission has been deleted. This field only pertains to user and group permissions.
"kind": "drive#permission", # This is always drive#permission.
"value": "A String", # The email address or domain name for the entity. This is used during inserts and is not populated in responses. When making a drive.permissions.insert request, exactly one of the id or value fields must be specified unless the permission type is anyone, in which case both id and value are ignored.
"id": "A String", # The ID of the user this permission refers to, and identical to the permissionId in the About and Files resources. When making a drive.permissions.insert request, exactly one of the id or value fields must be specified unless the permission type is anyone, in which case both id and value are ignored.
@@ -419,7 +422,7 @@
"spaces": [ # The list of spaces which contain the file. Supported values are 'drive', 'appDataFolder' and 'photos'.
"A String",
],
- "shareable": True or False, # Whether the file's sharing settings can be modified by the current user. Deprecated: use capabilities/canShare.
+ "shareable": True or False, # Deprecated: use capabilities/canShare.
"originalFilename": "A String", # The original filename of the uploaded content if available, or else the original value of the title field. This is only available for files with binary content in Drive.
"fileExtension": "A String", # The final component of fullFileExtension with trailing text that does not appear to be part of the extension removed. This field is only populated for files with content stored in Drive; it is not populated for Google Docs or shortcut files.
"hasAugmentedPermissions": True or False, # Whether any users are granted file access directly on this file. This field is only populated for Team Drive files.
@@ -444,7 +447,7 @@
An object of the form:
{ # The metadata for a file.
- "hasThumbnail": True or False, # Whether this file has a thumbnail.
+ "hasThumbnail": True or False, # 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.
"lastViewedByMeDate": "A String", # Last time this file was viewed by the user (formatted RFC 3339 timestamp).
"trashedDate": "A String", # The time that the item was trashed (formatted RFC 3339 timestamp). Only populated for Team Drive files.
"version": "A String", # 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 requesting user.
@@ -511,29 +514,30 @@
"isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
"emailAddress": "A String", # The email address of the user.
},
- "copyable": True or False, # Whether the file can be copied by the current user. Deprecated: use capabilities/canCopy.
+ "copyable": True or False, # Deprecated: use capabilities/canCopy.
"folderColorRgb": "A String", # Folder color as an RGB hex string if the file is a folder. The list of supported colors is available in the folderColorPalette field of the About resource. If an unsupported color is specified, it will be changed to the closest color in the palette. Not populated for Team Drive files.
"markedViewedByMeDate": "A String", # Deprecated.
"ownerNames": [ # Name(s) of the owner(s) of this file. Not populated for Team Drive files.
"A String",
],
- "capabilities": { # Capabilities the current user has on the file. Each capability corresponds to a fine-grained action that a user may take.
- "canReadRevisions": True or False, # Whether the current user has read access to the Revisions resource of the file. For a Team Drive item, whether revisions of non-folder descendants of this item, or this item itself if it is not a folder, can be read.
- "canTrash": True or False, # Whether the file can be trashed by the current user.
- "canCopy": True or False, # Whether the file can be copied by the current user. For a Team Drive item, whether non-folder descendants of this item, or this item itself if it is not a folder, can be copied.
- "canShare": True or False, # Whether the file's sharing settings can be modified by the current user.
- "canDelete": True or False, # Whether the file can be deleted by the current user.
+ "capabilities": { # Capabilities the current user has on this file. Each capability corresponds to a fine-grained action that a user may take.
+ "canReadRevisions": True or False, # Whether the current user can read the revisions resource of this file. For a Team Drive item, whether revisions of non-folder descendants of this item, or this item itself if it is not a folder, can be read.
+ "canTrash": True or False, # Whether the current user can move this file to trash.
+ "canCopy": True or False, # Whether the current user can copy this file. For a Team Drive item, whether the current user can copy non-folder descendants of this item, or this item itself if it is not a folder.
+ "canShare": True or False, # Whether the current user can modify the sharing settings for this file.
+ "canDelete": True or False, # Whether the current user can delete this file.
"canMoveTeamDriveItem": True or False, # Whether the current user can move this Team Drive item by changing its parent. Note that a request to change the parent for this item may still fail depending on the new parent that is being added. Only populated for Team Drive files.
- "canRename": True or False, # Whether the file can be renamed by the current user.
+ "canRename": True or False, # Whether the current user can rename this file.
"canListChildren": True or False, # Whether the current user can list the children of this folder. This is always false when the item is not a folder.
+ "canChangeRestrictedDownload": True or False, # Whether the current user can change the restricted download label of this file.
"canMoveItemIntoTeamDrive": True or False, # Whether the current user can move this item into a Team Drive. If the item is in a Team Drive, this field is equivalent to canMoveTeamDriveItem.
- "canDownload": True or False, # Whether the file can be downloaded by the current user.
- "canComment": True or False, # Whether the current user can comment on the file.
+ "canDownload": True or False, # Whether the current user can download this file.
+ "canComment": True or False, # Whether the current user can comment on this file.
"canRemoveChildren": True or False, # Whether the current user can remove children from this folder. This is always false when the item is not a folder.
- "canReadTeamDrive": True or False, # Whether the current user has read access to the Team Drive to which this file belongs. Only populated for Team Drive files.
+ "canReadTeamDrive": True or False, # Whether the current user can read the Team Drive to which this file belongs. Only populated for Team Drive files.
"canAddChildren": True or False, # Whether the current user can add children to this folder. This is always false when the item is not a folder.
- "canEdit": True or False, # Whether the file can be edited by the current user.
- "canUntrash": True or False, # Whether the file can be restored from the trash by the current user.
+ "canEdit": True or False, # Whether the current user can edit this file.
+ "canUntrash": True or False, # Whether the current user can restore this file from trash.
},
"sharedWithMeDate": "A String", # Time at which this file was shared with the user (formatted RFC 3339 timestamp).
"webViewLink": "A String", # A link only available on public folders for viewing their static web assets (HTML, CSS, JS, etc) via Google Drive's Website Hosting.
@@ -557,7 +561,7 @@
"withLink": True or False, # Whether the link is required for this permission.
"domain": "A String", # The domain name of the entity this permission refers to. This is an output-only field which is present when the permission type is user, group or domain.
"name": "A String", # The name for this permission.
- "teamDrivePermissionDetails": [ # Details of whether the Permissions on this Team Drive item are inherited or directly on this item. This is an output-only field which is present only for Team Drive items.
+ "teamDrivePermissionDetails": [ # Details of whether the permissions on this Team Drive item are inherited or directly on this item. This is an output-only field which is present only for Team Drive items.
{
"inheritedFrom": "A String", # The ID of the item from which this permission is inherited. This is an output-only field and is only populated for members of the Team Drive.
"role": "A String", # The primary role for this user. While new values may be added in the future, the following are currently possible:
@@ -573,6 +577,7 @@
"inherited": True or False, # Whether this permission is inherited. This field is always populated. This is an output-only field.
},
],
+ "deleted": True or False, # Whether the account associated with this permission has been deleted. This field only pertains to user and group permissions.
"kind": "drive#permission", # This is always drive#permission.
"value": "A String", # The email address or domain name for the entity. This is used during inserts and is not populated in responses. When making a drive.permissions.insert request, exactly one of the id or value fields must be specified unless the permission type is anyone, in which case both id and value are ignored.
"id": "A String", # The ID of the user this permission refers to, and identical to the permissionId in the About and Files resources. When making a drive.permissions.insert request, exactly one of the id or value fields must be specified unless the permission type is anyone, in which case both id and value are ignored.
@@ -605,7 +610,7 @@
"openWithLinks": { # A map of the id of each of the user's apps to a link to open this file with that app. Only populated when the drive.apps.readonly scope is used.
"a_key": "A String",
},
- "canReadRevisions": True or False, # Whether the current user has read access to the Revisions resource of the file. Deprecated: use capabilities/canReadRevisions.
+ "canReadRevisions": True or False, # Deprecated: use capabilities/canReadRevisions.
"imageMediaMetadata": { # Metadata about image media. This will only be present for image types, and its contents will depend on what can be parsed from the image content.
"exposureBias": 3.14, # The exposure bias of the photo (APEX value).
"exposureTime": 3.14, # The length of the exposure, in seconds.
@@ -640,9 +645,9 @@
"durationMillis": "A String", # The duration of the video in milliseconds.
"height": 42, # The height of the video in pixels.
},
- "editable": True or False, # Whether the file can be edited by the current user. Deprecated: use capabilities/canEdit.
+ "editable": True or False, # Deprecated: use capabilities/canEdit.
"kind": "drive#file", # The type of file. This is always drive#file.
- "canComment": True or False, # Whether the current user can comment on the file. Deprecated: use capabilities/canComment.
+ "canComment": True or False, # Deprecated: use capabilities/canComment.
"quotaBytesUsed": "A String", # The number of quota bytes used by this file.
"fileSize": "A String", # The size of the file in bytes. This field is only populated for files with content stored in Drive; it is not populated for Google Docs or shortcut files.
"createdDate": "A String", # Create time for this file (formatted RFC 3339 timestamp).
@@ -678,7 +683,7 @@
"withLink": True or False, # Whether the link is required for this permission.
"domain": "A String", # The domain name of the entity this permission refers to. This is an output-only field which is present when the permission type is user, group or domain.
"name": "A String", # The name for this permission.
- "teamDrivePermissionDetails": [ # Details of whether the Permissions on this Team Drive item are inherited or directly on this item. This is an output-only field which is present only for Team Drive items.
+ "teamDrivePermissionDetails": [ # Details of whether the permissions on this Team Drive item are inherited or directly on this item. This is an output-only field which is present only for Team Drive items.
{
"inheritedFrom": "A String", # The ID of the item from which this permission is inherited. This is an output-only field and is only populated for members of the Team Drive.
"role": "A String", # The primary role for this user. While new values may be added in the future, the following are currently possible:
@@ -694,6 +699,7 @@
"inherited": True or False, # Whether this permission is inherited. This field is always populated. This is an output-only field.
},
],
+ "deleted": True or False, # Whether the account associated with this permission has been deleted. This field only pertains to user and group permissions.
"kind": "drive#permission", # This is always drive#permission.
"value": "A String", # The email address or domain name for the entity. This is used during inserts and is not populated in responses. When making a drive.permissions.insert request, exactly one of the id or value fields must be specified unless the permission type is anyone, in which case both id and value are ignored.
"id": "A String", # The ID of the user this permission refers to, and identical to the permissionId in the About and Files resources. When making a drive.permissions.insert request, exactly one of the id or value fields must be specified unless the permission type is anyone, in which case both id and value are ignored.
@@ -724,7 +730,7 @@
"spaces": [ # The list of spaces which contain the file. Supported values are 'drive', 'appDataFolder' and 'photos'.
"A String",
],
- "shareable": True or False, # Whether the file's sharing settings can be modified by the current user. Deprecated: use capabilities/canShare.
+ "shareable": True or False, # Deprecated: use capabilities/canShare.
"originalFilename": "A String", # The original filename of the uploaded content if available, or else the original value of the title field. This is only available for files with binary content in Drive.
"fileExtension": "A String", # The final component of fullFileExtension with trailing text that does not appear to be part of the extension removed. This field is only populated for files with content stored in Drive; it is not populated for Google Docs or shortcut files.
"hasAugmentedPermissions": True or False, # Whether any users are granted file access directly on this file. This field is only populated for Team Drive files.
@@ -811,7 +817,7 @@
An object of the form:
{ # The metadata for a file.
- "hasThumbnail": True or False, # Whether this file has a thumbnail.
+ "hasThumbnail": True or False, # 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.
"lastViewedByMeDate": "A String", # Last time this file was viewed by the user (formatted RFC 3339 timestamp).
"trashedDate": "A String", # The time that the item was trashed (formatted RFC 3339 timestamp). Only populated for Team Drive files.
"version": "A String", # 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 requesting user.
@@ -878,29 +884,30 @@
"isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
"emailAddress": "A String", # The email address of the user.
},
- "copyable": True or False, # Whether the file can be copied by the current user. Deprecated: use capabilities/canCopy.
+ "copyable": True or False, # Deprecated: use capabilities/canCopy.
"folderColorRgb": "A String", # Folder color as an RGB hex string if the file is a folder. The list of supported colors is available in the folderColorPalette field of the About resource. If an unsupported color is specified, it will be changed to the closest color in the palette. Not populated for Team Drive files.
"markedViewedByMeDate": "A String", # Deprecated.
"ownerNames": [ # Name(s) of the owner(s) of this file. Not populated for Team Drive files.
"A String",
],
- "capabilities": { # Capabilities the current user has on the file. Each capability corresponds to a fine-grained action that a user may take.
- "canReadRevisions": True or False, # Whether the current user has read access to the Revisions resource of the file. For a Team Drive item, whether revisions of non-folder descendants of this item, or this item itself if it is not a folder, can be read.
- "canTrash": True or False, # Whether the file can be trashed by the current user.
- "canCopy": True or False, # Whether the file can be copied by the current user. For a Team Drive item, whether non-folder descendants of this item, or this item itself if it is not a folder, can be copied.
- "canShare": True or False, # Whether the file's sharing settings can be modified by the current user.
- "canDelete": True or False, # Whether the file can be deleted by the current user.
+ "capabilities": { # Capabilities the current user has on this file. Each capability corresponds to a fine-grained action that a user may take.
+ "canReadRevisions": True or False, # Whether the current user can read the revisions resource of this file. For a Team Drive item, whether revisions of non-folder descendants of this item, or this item itself if it is not a folder, can be read.
+ "canTrash": True or False, # Whether the current user can move this file to trash.
+ "canCopy": True or False, # Whether the current user can copy this file. For a Team Drive item, whether the current user can copy non-folder descendants of this item, or this item itself if it is not a folder.
+ "canShare": True or False, # Whether the current user can modify the sharing settings for this file.
+ "canDelete": True or False, # Whether the current user can delete this file.
"canMoveTeamDriveItem": True or False, # Whether the current user can move this Team Drive item by changing its parent. Note that a request to change the parent for this item may still fail depending on the new parent that is being added. Only populated for Team Drive files.
- "canRename": True or False, # Whether the file can be renamed by the current user.
+ "canRename": True or False, # Whether the current user can rename this file.
"canListChildren": True or False, # Whether the current user can list the children of this folder. This is always false when the item is not a folder.
+ "canChangeRestrictedDownload": True or False, # Whether the current user can change the restricted download label of this file.
"canMoveItemIntoTeamDrive": True or False, # Whether the current user can move this item into a Team Drive. If the item is in a Team Drive, this field is equivalent to canMoveTeamDriveItem.
- "canDownload": True or False, # Whether the file can be downloaded by the current user.
- "canComment": True or False, # Whether the current user can comment on the file.
+ "canDownload": True or False, # Whether the current user can download this file.
+ "canComment": True or False, # Whether the current user can comment on this file.
"canRemoveChildren": True or False, # Whether the current user can remove children from this folder. This is always false when the item is not a folder.
- "canReadTeamDrive": True or False, # Whether the current user has read access to the Team Drive to which this file belongs. Only populated for Team Drive files.
+ "canReadTeamDrive": True or False, # Whether the current user can read the Team Drive to which this file belongs. Only populated for Team Drive files.
"canAddChildren": True or False, # Whether the current user can add children to this folder. This is always false when the item is not a folder.
- "canEdit": True or False, # Whether the file can be edited by the current user.
- "canUntrash": True or False, # Whether the file can be restored from the trash by the current user.
+ "canEdit": True or False, # Whether the current user can edit this file.
+ "canUntrash": True or False, # Whether the current user can restore this file from trash.
},
"sharedWithMeDate": "A String", # Time at which this file was shared with the user (formatted RFC 3339 timestamp).
"webViewLink": "A String", # A link only available on public folders for viewing their static web assets (HTML, CSS, JS, etc) via Google Drive's Website Hosting.
@@ -924,7 +931,7 @@
"withLink": True or False, # Whether the link is required for this permission.
"domain": "A String", # The domain name of the entity this permission refers to. This is an output-only field which is present when the permission type is user, group or domain.
"name": "A String", # The name for this permission.
- "teamDrivePermissionDetails": [ # Details of whether the Permissions on this Team Drive item are inherited or directly on this item. This is an output-only field which is present only for Team Drive items.
+ "teamDrivePermissionDetails": [ # Details of whether the permissions on this Team Drive item are inherited or directly on this item. This is an output-only field which is present only for Team Drive items.
{
"inheritedFrom": "A String", # The ID of the item from which this permission is inherited. This is an output-only field and is only populated for members of the Team Drive.
"role": "A String", # The primary role for this user. While new values may be added in the future, the following are currently possible:
@@ -940,6 +947,7 @@
"inherited": True or False, # Whether this permission is inherited. This field is always populated. This is an output-only field.
},
],
+ "deleted": True or False, # Whether the account associated with this permission has been deleted. This field only pertains to user and group permissions.
"kind": "drive#permission", # This is always drive#permission.
"value": "A String", # The email address or domain name for the entity. This is used during inserts and is not populated in responses. When making a drive.permissions.insert request, exactly one of the id or value fields must be specified unless the permission type is anyone, in which case both id and value are ignored.
"id": "A String", # The ID of the user this permission refers to, and identical to the permissionId in the About and Files resources. When making a drive.permissions.insert request, exactly one of the id or value fields must be specified unless the permission type is anyone, in which case both id and value are ignored.
@@ -972,7 +980,7 @@
"openWithLinks": { # A map of the id of each of the user's apps to a link to open this file with that app. Only populated when the drive.apps.readonly scope is used.
"a_key": "A String",
},
- "canReadRevisions": True or False, # Whether the current user has read access to the Revisions resource of the file. Deprecated: use capabilities/canReadRevisions.
+ "canReadRevisions": True or False, # Deprecated: use capabilities/canReadRevisions.
"imageMediaMetadata": { # Metadata about image media. This will only be present for image types, and its contents will depend on what can be parsed from the image content.
"exposureBias": 3.14, # The exposure bias of the photo (APEX value).
"exposureTime": 3.14, # The length of the exposure, in seconds.
@@ -1007,9 +1015,9 @@
"durationMillis": "A String", # The duration of the video in milliseconds.
"height": 42, # The height of the video in pixels.
},
- "editable": True or False, # Whether the file can be edited by the current user. Deprecated: use capabilities/canEdit.
+ "editable": True or False, # Deprecated: use capabilities/canEdit.
"kind": "drive#file", # The type of file. This is always drive#file.
- "canComment": True or False, # Whether the current user can comment on the file. Deprecated: use capabilities/canComment.
+ "canComment": True or False, # Deprecated: use capabilities/canComment.
"quotaBytesUsed": "A String", # The number of quota bytes used by this file.
"fileSize": "A String", # The size of the file in bytes. This field is only populated for files with content stored in Drive; it is not populated for Google Docs or shortcut files.
"createdDate": "A String", # Create time for this file (formatted RFC 3339 timestamp).
@@ -1045,7 +1053,7 @@
"withLink": True or False, # Whether the link is required for this permission.
"domain": "A String", # The domain name of the entity this permission refers to. This is an output-only field which is present when the permission type is user, group or domain.
"name": "A String", # The name for this permission.
- "teamDrivePermissionDetails": [ # Details of whether the Permissions on this Team Drive item are inherited or directly on this item. This is an output-only field which is present only for Team Drive items.
+ "teamDrivePermissionDetails": [ # Details of whether the permissions on this Team Drive item are inherited or directly on this item. This is an output-only field which is present only for Team Drive items.
{
"inheritedFrom": "A String", # The ID of the item from which this permission is inherited. This is an output-only field and is only populated for members of the Team Drive.
"role": "A String", # The primary role for this user. While new values may be added in the future, the following are currently possible:
@@ -1061,6 +1069,7 @@
"inherited": True or False, # Whether this permission is inherited. This field is always populated. This is an output-only field.
},
],
+ "deleted": True or False, # Whether the account associated with this permission has been deleted. This field only pertains to user and group permissions.
"kind": "drive#permission", # This is always drive#permission.
"value": "A String", # The email address or domain name for the entity. This is used during inserts and is not populated in responses. When making a drive.permissions.insert request, exactly one of the id or value fields must be specified unless the permission type is anyone, in which case both id and value are ignored.
"id": "A String", # The ID of the user this permission refers to, and identical to the permissionId in the About and Files resources. When making a drive.permissions.insert request, exactly one of the id or value fields must be specified unless the permission type is anyone, in which case both id and value are ignored.
@@ -1091,7 +1100,7 @@
"spaces": [ # The list of spaces which contain the file. Supported values are 'drive', 'appDataFolder' and 'photos'.
"A String",
],
- "shareable": True or False, # Whether the file's sharing settings can be modified by the current user. Deprecated: use capabilities/canShare.
+ "shareable": True or False, # Deprecated: use capabilities/canShare.
"originalFilename": "A String", # The original filename of the uploaded content if available, or else the original value of the title field. This is only available for files with binary content in Drive.
"fileExtension": "A String", # The final component of fullFileExtension with trailing text that does not appear to be part of the extension removed. This field is only populated for files with content stored in Drive; it is not populated for Google Docs or shortcut files.
"hasAugmentedPermissions": True or False, # Whether any users are granted file access directly on this file. This field is only populated for Team Drive files.
@@ -1131,7 +1140,7 @@
The object takes the form of:
{ # The metadata for a file.
- "hasThumbnail": True or False, # Whether this file has a thumbnail.
+ "hasThumbnail": True or False, # 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.
"lastViewedByMeDate": "A String", # Last time this file was viewed by the user (formatted RFC 3339 timestamp).
"trashedDate": "A String", # The time that the item was trashed (formatted RFC 3339 timestamp). Only populated for Team Drive files.
"version": "A String", # 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 requesting user.
@@ -1198,29 +1207,30 @@
"isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
"emailAddress": "A String", # The email address of the user.
},
- "copyable": True or False, # Whether the file can be copied by the current user. Deprecated: use capabilities/canCopy.
+ "copyable": True or False, # Deprecated: use capabilities/canCopy.
"folderColorRgb": "A String", # Folder color as an RGB hex string if the file is a folder. The list of supported colors is available in the folderColorPalette field of the About resource. If an unsupported color is specified, it will be changed to the closest color in the palette. Not populated for Team Drive files.
"markedViewedByMeDate": "A String", # Deprecated.
"ownerNames": [ # Name(s) of the owner(s) of this file. Not populated for Team Drive files.
"A String",
],
- "capabilities": { # Capabilities the current user has on the file. Each capability corresponds to a fine-grained action that a user may take.
- "canReadRevisions": True or False, # Whether the current user has read access to the Revisions resource of the file. For a Team Drive item, whether revisions of non-folder descendants of this item, or this item itself if it is not a folder, can be read.
- "canTrash": True or False, # Whether the file can be trashed by the current user.
- "canCopy": True or False, # Whether the file can be copied by the current user. For a Team Drive item, whether non-folder descendants of this item, or this item itself if it is not a folder, can be copied.
- "canShare": True or False, # Whether the file's sharing settings can be modified by the current user.
- "canDelete": True or False, # Whether the file can be deleted by the current user.
+ "capabilities": { # Capabilities the current user has on this file. Each capability corresponds to a fine-grained action that a user may take.
+ "canReadRevisions": True or False, # Whether the current user can read the revisions resource of this file. For a Team Drive item, whether revisions of non-folder descendants of this item, or this item itself if it is not a folder, can be read.
+ "canTrash": True or False, # Whether the current user can move this file to trash.
+ "canCopy": True or False, # Whether the current user can copy this file. For a Team Drive item, whether the current user can copy non-folder descendants of this item, or this item itself if it is not a folder.
+ "canShare": True or False, # Whether the current user can modify the sharing settings for this file.
+ "canDelete": True or False, # Whether the current user can delete this file.
"canMoveTeamDriveItem": True or False, # Whether the current user can move this Team Drive item by changing its parent. Note that a request to change the parent for this item may still fail depending on the new parent that is being added. Only populated for Team Drive files.
- "canRename": True or False, # Whether the file can be renamed by the current user.
+ "canRename": True or False, # Whether the current user can rename this file.
"canListChildren": True or False, # Whether the current user can list the children of this folder. This is always false when the item is not a folder.
+ "canChangeRestrictedDownload": True or False, # Whether the current user can change the restricted download label of this file.
"canMoveItemIntoTeamDrive": True or False, # Whether the current user can move this item into a Team Drive. If the item is in a Team Drive, this field is equivalent to canMoveTeamDriveItem.
- "canDownload": True or False, # Whether the file can be downloaded by the current user.
- "canComment": True or False, # Whether the current user can comment on the file.
+ "canDownload": True or False, # Whether the current user can download this file.
+ "canComment": True or False, # Whether the current user can comment on this file.
"canRemoveChildren": True or False, # Whether the current user can remove children from this folder. This is always false when the item is not a folder.
- "canReadTeamDrive": True or False, # Whether the current user has read access to the Team Drive to which this file belongs. Only populated for Team Drive files.
+ "canReadTeamDrive": True or False, # Whether the current user can read the Team Drive to which this file belongs. Only populated for Team Drive files.
"canAddChildren": True or False, # Whether the current user can add children to this folder. This is always false when the item is not a folder.
- "canEdit": True or False, # Whether the file can be edited by the current user.
- "canUntrash": True or False, # Whether the file can be restored from the trash by the current user.
+ "canEdit": True or False, # Whether the current user can edit this file.
+ "canUntrash": True or False, # Whether the current user can restore this file from trash.
},
"sharedWithMeDate": "A String", # Time at which this file was shared with the user (formatted RFC 3339 timestamp).
"webViewLink": "A String", # A link only available on public folders for viewing their static web assets (HTML, CSS, JS, etc) via Google Drive's Website Hosting.
@@ -1244,7 +1254,7 @@
"withLink": True or False, # Whether the link is required for this permission.
"domain": "A String", # The domain name of the entity this permission refers to. This is an output-only field which is present when the permission type is user, group or domain.
"name": "A String", # The name for this permission.
- "teamDrivePermissionDetails": [ # Details of whether the Permissions on this Team Drive item are inherited or directly on this item. This is an output-only field which is present only for Team Drive items.
+ "teamDrivePermissionDetails": [ # Details of whether the permissions on this Team Drive item are inherited or directly on this item. This is an output-only field which is present only for Team Drive items.
{
"inheritedFrom": "A String", # The ID of the item from which this permission is inherited. This is an output-only field and is only populated for members of the Team Drive.
"role": "A String", # The primary role for this user. While new values may be added in the future, the following are currently possible:
@@ -1260,6 +1270,7 @@
"inherited": True or False, # Whether this permission is inherited. This field is always populated. This is an output-only field.
},
],
+ "deleted": True or False, # Whether the account associated with this permission has been deleted. This field only pertains to user and group permissions.
"kind": "drive#permission", # This is always drive#permission.
"value": "A String", # The email address or domain name for the entity. This is used during inserts and is not populated in responses. When making a drive.permissions.insert request, exactly one of the id or value fields must be specified unless the permission type is anyone, in which case both id and value are ignored.
"id": "A String", # The ID of the user this permission refers to, and identical to the permissionId in the About and Files resources. When making a drive.permissions.insert request, exactly one of the id or value fields must be specified unless the permission type is anyone, in which case both id and value are ignored.
@@ -1292,7 +1303,7 @@
"openWithLinks": { # A map of the id of each of the user's apps to a link to open this file with that app. Only populated when the drive.apps.readonly scope is used.
"a_key": "A String",
},
- "canReadRevisions": True or False, # Whether the current user has read access to the Revisions resource of the file. Deprecated: use capabilities/canReadRevisions.
+ "canReadRevisions": True or False, # Deprecated: use capabilities/canReadRevisions.
"imageMediaMetadata": { # Metadata about image media. This will only be present for image types, and its contents will depend on what can be parsed from the image content.
"exposureBias": 3.14, # The exposure bias of the photo (APEX value).
"exposureTime": 3.14, # The length of the exposure, in seconds.
@@ -1327,9 +1338,9 @@
"durationMillis": "A String", # The duration of the video in milliseconds.
"height": 42, # The height of the video in pixels.
},
- "editable": True or False, # Whether the file can be edited by the current user. Deprecated: use capabilities/canEdit.
+ "editable": True or False, # Deprecated: use capabilities/canEdit.
"kind": "drive#file", # The type of file. This is always drive#file.
- "canComment": True or False, # Whether the current user can comment on the file. Deprecated: use capabilities/canComment.
+ "canComment": True or False, # Deprecated: use capabilities/canComment.
"quotaBytesUsed": "A String", # The number of quota bytes used by this file.
"fileSize": "A String", # The size of the file in bytes. This field is only populated for files with content stored in Drive; it is not populated for Google Docs or shortcut files.
"createdDate": "A String", # Create time for this file (formatted RFC 3339 timestamp).
@@ -1365,7 +1376,7 @@
"withLink": True or False, # Whether the link is required for this permission.
"domain": "A String", # The domain name of the entity this permission refers to. This is an output-only field which is present when the permission type is user, group or domain.
"name": "A String", # The name for this permission.
- "teamDrivePermissionDetails": [ # Details of whether the Permissions on this Team Drive item are inherited or directly on this item. This is an output-only field which is present only for Team Drive items.
+ "teamDrivePermissionDetails": [ # Details of whether the permissions on this Team Drive item are inherited or directly on this item. This is an output-only field which is present only for Team Drive items.
{
"inheritedFrom": "A String", # The ID of the item from which this permission is inherited. This is an output-only field and is only populated for members of the Team Drive.
"role": "A String", # The primary role for this user. While new values may be added in the future, the following are currently possible:
@@ -1381,6 +1392,7 @@
"inherited": True or False, # Whether this permission is inherited. This field is always populated. This is an output-only field.
},
],
+ "deleted": True or False, # Whether the account associated with this permission has been deleted. This field only pertains to user and group permissions.
"kind": "drive#permission", # This is always drive#permission.
"value": "A String", # The email address or domain name for the entity. This is used during inserts and is not populated in responses. When making a drive.permissions.insert request, exactly one of the id or value fields must be specified unless the permission type is anyone, in which case both id and value are ignored.
"id": "A String", # The ID of the user this permission refers to, and identical to the permissionId in the About and Files resources. When making a drive.permissions.insert request, exactly one of the id or value fields must be specified unless the permission type is anyone, in which case both id and value are ignored.
@@ -1411,7 +1423,7 @@
"spaces": [ # The list of spaces which contain the file. Supported values are 'drive', 'appDataFolder' and 'photos'.
"A String",
],
- "shareable": True or False, # Whether the file's sharing settings can be modified by the current user. Deprecated: use capabilities/canShare.
+ "shareable": True or False, # Deprecated: use capabilities/canShare.
"originalFilename": "A String", # The original filename of the uploaded content if available, or else the original value of the title field. This is only available for files with binary content in Drive.
"fileExtension": "A String", # The final component of fullFileExtension with trailing text that does not appear to be part of the extension removed. This field is only populated for files with content stored in Drive; it is not populated for Google Docs or shortcut files.
"hasAugmentedPermissions": True or False, # Whether any users are granted file access directly on this file. This field is only populated for Team Drive files.
@@ -1439,7 +1451,7 @@
An object of the form:
{ # The metadata for a file.
- "hasThumbnail": True or False, # Whether this file has a thumbnail.
+ "hasThumbnail": True or False, # 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.
"lastViewedByMeDate": "A String", # Last time this file was viewed by the user (formatted RFC 3339 timestamp).
"trashedDate": "A String", # The time that the item was trashed (formatted RFC 3339 timestamp). Only populated for Team Drive files.
"version": "A String", # 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 requesting user.
@@ -1506,29 +1518,30 @@
"isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
"emailAddress": "A String", # The email address of the user.
},
- "copyable": True or False, # Whether the file can be copied by the current user. Deprecated: use capabilities/canCopy.
+ "copyable": True or False, # Deprecated: use capabilities/canCopy.
"folderColorRgb": "A String", # Folder color as an RGB hex string if the file is a folder. The list of supported colors is available in the folderColorPalette field of the About resource. If an unsupported color is specified, it will be changed to the closest color in the palette. Not populated for Team Drive files.
"markedViewedByMeDate": "A String", # Deprecated.
"ownerNames": [ # Name(s) of the owner(s) of this file. Not populated for Team Drive files.
"A String",
],
- "capabilities": { # Capabilities the current user has on the file. Each capability corresponds to a fine-grained action that a user may take.
- "canReadRevisions": True or False, # Whether the current user has read access to the Revisions resource of the file. For a Team Drive item, whether revisions of non-folder descendants of this item, or this item itself if it is not a folder, can be read.
- "canTrash": True or False, # Whether the file can be trashed by the current user.
- "canCopy": True or False, # Whether the file can be copied by the current user. For a Team Drive item, whether non-folder descendants of this item, or this item itself if it is not a folder, can be copied.
- "canShare": True or False, # Whether the file's sharing settings can be modified by the current user.
- "canDelete": True or False, # Whether the file can be deleted by the current user.
+ "capabilities": { # Capabilities the current user has on this file. Each capability corresponds to a fine-grained action that a user may take.
+ "canReadRevisions": True or False, # Whether the current user can read the revisions resource of this file. For a Team Drive item, whether revisions of non-folder descendants of this item, or this item itself if it is not a folder, can be read.
+ "canTrash": True or False, # Whether the current user can move this file to trash.
+ "canCopy": True or False, # Whether the current user can copy this file. For a Team Drive item, whether the current user can copy non-folder descendants of this item, or this item itself if it is not a folder.
+ "canShare": True or False, # Whether the current user can modify the sharing settings for this file.
+ "canDelete": True or False, # Whether the current user can delete this file.
"canMoveTeamDriveItem": True or False, # Whether the current user can move this Team Drive item by changing its parent. Note that a request to change the parent for this item may still fail depending on the new parent that is being added. Only populated for Team Drive files.
- "canRename": True or False, # Whether the file can be renamed by the current user.
+ "canRename": True or False, # Whether the current user can rename this file.
"canListChildren": True or False, # Whether the current user can list the children of this folder. This is always false when the item is not a folder.
+ "canChangeRestrictedDownload": True or False, # Whether the current user can change the restricted download label of this file.
"canMoveItemIntoTeamDrive": True or False, # Whether the current user can move this item into a Team Drive. If the item is in a Team Drive, this field is equivalent to canMoveTeamDriveItem.
- "canDownload": True or False, # Whether the file can be downloaded by the current user.
- "canComment": True or False, # Whether the current user can comment on the file.
+ "canDownload": True or False, # Whether the current user can download this file.
+ "canComment": True or False, # Whether the current user can comment on this file.
"canRemoveChildren": True or False, # Whether the current user can remove children from this folder. This is always false when the item is not a folder.
- "canReadTeamDrive": True or False, # Whether the current user has read access to the Team Drive to which this file belongs. Only populated for Team Drive files.
+ "canReadTeamDrive": True or False, # Whether the current user can read the Team Drive to which this file belongs. Only populated for Team Drive files.
"canAddChildren": True or False, # Whether the current user can add children to this folder. This is always false when the item is not a folder.
- "canEdit": True or False, # Whether the file can be edited by the current user.
- "canUntrash": True or False, # Whether the file can be restored from the trash by the current user.
+ "canEdit": True or False, # Whether the current user can edit this file.
+ "canUntrash": True or False, # Whether the current user can restore this file from trash.
},
"sharedWithMeDate": "A String", # Time at which this file was shared with the user (formatted RFC 3339 timestamp).
"webViewLink": "A String", # A link only available on public folders for viewing their static web assets (HTML, CSS, JS, etc) via Google Drive's Website Hosting.
@@ -1552,7 +1565,7 @@
"withLink": True or False, # Whether the link is required for this permission.
"domain": "A String", # The domain name of the entity this permission refers to. This is an output-only field which is present when the permission type is user, group or domain.
"name": "A String", # The name for this permission.
- "teamDrivePermissionDetails": [ # Details of whether the Permissions on this Team Drive item are inherited or directly on this item. This is an output-only field which is present only for Team Drive items.
+ "teamDrivePermissionDetails": [ # Details of whether the permissions on this Team Drive item are inherited or directly on this item. This is an output-only field which is present only for Team Drive items.
{
"inheritedFrom": "A String", # The ID of the item from which this permission is inherited. This is an output-only field and is only populated for members of the Team Drive.
"role": "A String", # The primary role for this user. While new values may be added in the future, the following are currently possible:
@@ -1568,6 +1581,7 @@
"inherited": True or False, # Whether this permission is inherited. This field is always populated. This is an output-only field.
},
],
+ "deleted": True or False, # Whether the account associated with this permission has been deleted. This field only pertains to user and group permissions.
"kind": "drive#permission", # This is always drive#permission.
"value": "A String", # The email address or domain name for the entity. This is used during inserts and is not populated in responses. When making a drive.permissions.insert request, exactly one of the id or value fields must be specified unless the permission type is anyone, in which case both id and value are ignored.
"id": "A String", # The ID of the user this permission refers to, and identical to the permissionId in the About and Files resources. When making a drive.permissions.insert request, exactly one of the id or value fields must be specified unless the permission type is anyone, in which case both id and value are ignored.
@@ -1600,7 +1614,7 @@
"openWithLinks": { # A map of the id of each of the user's apps to a link to open this file with that app. Only populated when the drive.apps.readonly scope is used.
"a_key": "A String",
},
- "canReadRevisions": True or False, # Whether the current user has read access to the Revisions resource of the file. Deprecated: use capabilities/canReadRevisions.
+ "canReadRevisions": True or False, # Deprecated: use capabilities/canReadRevisions.
"imageMediaMetadata": { # Metadata about image media. This will only be present for image types, and its contents will depend on what can be parsed from the image content.
"exposureBias": 3.14, # The exposure bias of the photo (APEX value).
"exposureTime": 3.14, # The length of the exposure, in seconds.
@@ -1635,9 +1649,9 @@
"durationMillis": "A String", # The duration of the video in milliseconds.
"height": 42, # The height of the video in pixels.
},
- "editable": True or False, # Whether the file can be edited by the current user. Deprecated: use capabilities/canEdit.
+ "editable": True or False, # Deprecated: use capabilities/canEdit.
"kind": "drive#file", # The type of file. This is always drive#file.
- "canComment": True or False, # Whether the current user can comment on the file. Deprecated: use capabilities/canComment.
+ "canComment": True or False, # Deprecated: use capabilities/canComment.
"quotaBytesUsed": "A String", # The number of quota bytes used by this file.
"fileSize": "A String", # The size of the file in bytes. This field is only populated for files with content stored in Drive; it is not populated for Google Docs or shortcut files.
"createdDate": "A String", # Create time for this file (formatted RFC 3339 timestamp).
@@ -1673,7 +1687,7 @@
"withLink": True or False, # Whether the link is required for this permission.
"domain": "A String", # The domain name of the entity this permission refers to. This is an output-only field which is present when the permission type is user, group or domain.
"name": "A String", # The name for this permission.
- "teamDrivePermissionDetails": [ # Details of whether the Permissions on this Team Drive item are inherited or directly on this item. This is an output-only field which is present only for Team Drive items.
+ "teamDrivePermissionDetails": [ # Details of whether the permissions on this Team Drive item are inherited or directly on this item. This is an output-only field which is present only for Team Drive items.
{
"inheritedFrom": "A String", # The ID of the item from which this permission is inherited. This is an output-only field and is only populated for members of the Team Drive.
"role": "A String", # The primary role for this user. While new values may be added in the future, the following are currently possible:
@@ -1689,6 +1703,7 @@
"inherited": True or False, # Whether this permission is inherited. This field is always populated. This is an output-only field.
},
],
+ "deleted": True or False, # Whether the account associated with this permission has been deleted. This field only pertains to user and group permissions.
"kind": "drive#permission", # This is always drive#permission.
"value": "A String", # The email address or domain name for the entity. This is used during inserts and is not populated in responses. When making a drive.permissions.insert request, exactly one of the id or value fields must be specified unless the permission type is anyone, in which case both id and value are ignored.
"id": "A String", # The ID of the user this permission refers to, and identical to the permissionId in the About and Files resources. When making a drive.permissions.insert request, exactly one of the id or value fields must be specified unless the permission type is anyone, in which case both id and value are ignored.
@@ -1719,7 +1734,7 @@
"spaces": [ # The list of spaces which contain the file. Supported values are 'drive', 'appDataFolder' and 'photos'.
"A String",
],
- "shareable": True or False, # Whether the file's sharing settings can be modified by the current user. Deprecated: use capabilities/canShare.
+ "shareable": True or False, # Deprecated: use capabilities/canShare.
"originalFilename": "A String", # The original filename of the uploaded content if available, or else the original value of the title field. This is only available for files with binary content in Drive.
"fileExtension": "A String", # The final component of fullFileExtension with trailing text that does not appear to be part of the extension removed. This field is only populated for files with content stored in Drive; it is not populated for Google Docs or shortcut files.
"hasAugmentedPermissions": True or False, # Whether any users are granted file access directly on this file. This field is only populated for Team Drive files.
@@ -1746,7 +1761,7 @@
Allowed values
DEFAULT - The items that the user has accessed.
DOMAIN - Items shared to the user's domain.
- maxResults: integer, Maximum number of files to return.
+ maxResults: integer, The maximum number of files to return per page. Partial or empty result pages are possible even before the end of the files list has been reached.
teamDriveId: string, ID of Team Drive to search.
includeTeamDriveItems: boolean, Whether Team Drive items should be included in results.
corpora: string, Comma-separated list of bodies of items (files/documents) to which the query applies. Supported bodies are 'default', 'domain', 'teamDrive' and 'allTeamDrives'. 'allTeamDrives' must be combined with 'default'; all other values must be used in isolation. Prefer 'default' or 'teamDrive' to 'allTeamDrives' for efficiency.
@@ -1761,7 +1776,7 @@
"kind": "drive#fileList", # This is always drive#fileList.
"items": [ # The list of files. If nextPageToken is populated, then this list may be incomplete and an additional page of results should be fetched.
{ # The metadata for a file.
- "hasThumbnail": True or False, # Whether this file has a thumbnail.
+ "hasThumbnail": True or False, # 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.
"lastViewedByMeDate": "A String", # Last time this file was viewed by the user (formatted RFC 3339 timestamp).
"trashedDate": "A String", # The time that the item was trashed (formatted RFC 3339 timestamp). Only populated for Team Drive files.
"version": "A String", # 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 requesting user.
@@ -1828,29 +1843,30 @@
"isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
"emailAddress": "A String", # The email address of the user.
},
- "copyable": True or False, # Whether the file can be copied by the current user. Deprecated: use capabilities/canCopy.
+ "copyable": True or False, # Deprecated: use capabilities/canCopy.
"folderColorRgb": "A String", # Folder color as an RGB hex string if the file is a folder. The list of supported colors is available in the folderColorPalette field of the About resource. If an unsupported color is specified, it will be changed to the closest color in the palette. Not populated for Team Drive files.
"markedViewedByMeDate": "A String", # Deprecated.
"ownerNames": [ # Name(s) of the owner(s) of this file. Not populated for Team Drive files.
"A String",
],
- "capabilities": { # Capabilities the current user has on the file. Each capability corresponds to a fine-grained action that a user may take.
- "canReadRevisions": True or False, # Whether the current user has read access to the Revisions resource of the file. For a Team Drive item, whether revisions of non-folder descendants of this item, or this item itself if it is not a folder, can be read.
- "canTrash": True or False, # Whether the file can be trashed by the current user.
- "canCopy": True or False, # Whether the file can be copied by the current user. For a Team Drive item, whether non-folder descendants of this item, or this item itself if it is not a folder, can be copied.
- "canShare": True or False, # Whether the file's sharing settings can be modified by the current user.
- "canDelete": True or False, # Whether the file can be deleted by the current user.
+ "capabilities": { # Capabilities the current user has on this file. Each capability corresponds to a fine-grained action that a user may take.
+ "canReadRevisions": True or False, # Whether the current user can read the revisions resource of this file. For a Team Drive item, whether revisions of non-folder descendants of this item, or this item itself if it is not a folder, can be read.
+ "canTrash": True or False, # Whether the current user can move this file to trash.
+ "canCopy": True or False, # Whether the current user can copy this file. For a Team Drive item, whether the current user can copy non-folder descendants of this item, or this item itself if it is not a folder.
+ "canShare": True or False, # Whether the current user can modify the sharing settings for this file.
+ "canDelete": True or False, # Whether the current user can delete this file.
"canMoveTeamDriveItem": True or False, # Whether the current user can move this Team Drive item by changing its parent. Note that a request to change the parent for this item may still fail depending on the new parent that is being added. Only populated for Team Drive files.
- "canRename": True or False, # Whether the file can be renamed by the current user.
+ "canRename": True or False, # Whether the current user can rename this file.
"canListChildren": True or False, # Whether the current user can list the children of this folder. This is always false when the item is not a folder.
+ "canChangeRestrictedDownload": True or False, # Whether the current user can change the restricted download label of this file.
"canMoveItemIntoTeamDrive": True or False, # Whether the current user can move this item into a Team Drive. If the item is in a Team Drive, this field is equivalent to canMoveTeamDriveItem.
- "canDownload": True or False, # Whether the file can be downloaded by the current user.
- "canComment": True or False, # Whether the current user can comment on the file.
+ "canDownload": True or False, # Whether the current user can download this file.
+ "canComment": True or False, # Whether the current user can comment on this file.
"canRemoveChildren": True or False, # Whether the current user can remove children from this folder. This is always false when the item is not a folder.
- "canReadTeamDrive": True or False, # Whether the current user has read access to the Team Drive to which this file belongs. Only populated for Team Drive files.
+ "canReadTeamDrive": True or False, # Whether the current user can read the Team Drive to which this file belongs. Only populated for Team Drive files.
"canAddChildren": True or False, # Whether the current user can add children to this folder. This is always false when the item is not a folder.
- "canEdit": True or False, # Whether the file can be edited by the current user.
- "canUntrash": True or False, # Whether the file can be restored from the trash by the current user.
+ "canEdit": True or False, # Whether the current user can edit this file.
+ "canUntrash": True or False, # Whether the current user can restore this file from trash.
},
"sharedWithMeDate": "A String", # Time at which this file was shared with the user (formatted RFC 3339 timestamp).
"webViewLink": "A String", # A link only available on public folders for viewing their static web assets (HTML, CSS, JS, etc) via Google Drive's Website Hosting.
@@ -1874,7 +1890,7 @@
"withLink": True or False, # Whether the link is required for this permission.
"domain": "A String", # The domain name of the entity this permission refers to. This is an output-only field which is present when the permission type is user, group or domain.
"name": "A String", # The name for this permission.
- "teamDrivePermissionDetails": [ # Details of whether the Permissions on this Team Drive item are inherited or directly on this item. This is an output-only field which is present only for Team Drive items.
+ "teamDrivePermissionDetails": [ # Details of whether the permissions on this Team Drive item are inherited or directly on this item. This is an output-only field which is present only for Team Drive items.
{
"inheritedFrom": "A String", # The ID of the item from which this permission is inherited. This is an output-only field and is only populated for members of the Team Drive.
"role": "A String", # The primary role for this user. While new values may be added in the future, the following are currently possible:
@@ -1890,6 +1906,7 @@
"inherited": True or False, # Whether this permission is inherited. This field is always populated. This is an output-only field.
},
],
+ "deleted": True or False, # Whether the account associated with this permission has been deleted. This field only pertains to user and group permissions.
"kind": "drive#permission", # This is always drive#permission.
"value": "A String", # The email address or domain name for the entity. This is used during inserts and is not populated in responses. When making a drive.permissions.insert request, exactly one of the id or value fields must be specified unless the permission type is anyone, in which case both id and value are ignored.
"id": "A String", # The ID of the user this permission refers to, and identical to the permissionId in the About and Files resources. When making a drive.permissions.insert request, exactly one of the id or value fields must be specified unless the permission type is anyone, in which case both id and value are ignored.
@@ -1922,7 +1939,7 @@
"openWithLinks": { # A map of the id of each of the user's apps to a link to open this file with that app. Only populated when the drive.apps.readonly scope is used.
"a_key": "A String",
},
- "canReadRevisions": True or False, # Whether the current user has read access to the Revisions resource of the file. Deprecated: use capabilities/canReadRevisions.
+ "canReadRevisions": True or False, # Deprecated: use capabilities/canReadRevisions.
"imageMediaMetadata": { # Metadata about image media. This will only be present for image types, and its contents will depend on what can be parsed from the image content.
"exposureBias": 3.14, # The exposure bias of the photo (APEX value).
"exposureTime": 3.14, # The length of the exposure, in seconds.
@@ -1957,9 +1974,9 @@
"durationMillis": "A String", # The duration of the video in milliseconds.
"height": 42, # The height of the video in pixels.
},
- "editable": True or False, # Whether the file can be edited by the current user. Deprecated: use capabilities/canEdit.
+ "editable": True or False, # Deprecated: use capabilities/canEdit.
"kind": "drive#file", # The type of file. This is always drive#file.
- "canComment": True or False, # Whether the current user can comment on the file. Deprecated: use capabilities/canComment.
+ "canComment": True or False, # Deprecated: use capabilities/canComment.
"quotaBytesUsed": "A String", # The number of quota bytes used by this file.
"fileSize": "A String", # The size of the file in bytes. This field is only populated for files with content stored in Drive; it is not populated for Google Docs or shortcut files.
"createdDate": "A String", # Create time for this file (formatted RFC 3339 timestamp).
@@ -1995,7 +2012,7 @@
"withLink": True or False, # Whether the link is required for this permission.
"domain": "A String", # The domain name of the entity this permission refers to. This is an output-only field which is present when the permission type is user, group or domain.
"name": "A String", # The name for this permission.
- "teamDrivePermissionDetails": [ # Details of whether the Permissions on this Team Drive item are inherited or directly on this item. This is an output-only field which is present only for Team Drive items.
+ "teamDrivePermissionDetails": [ # Details of whether the permissions on this Team Drive item are inherited or directly on this item. This is an output-only field which is present only for Team Drive items.
{
"inheritedFrom": "A String", # The ID of the item from which this permission is inherited. This is an output-only field and is only populated for members of the Team Drive.
"role": "A String", # The primary role for this user. While new values may be added in the future, the following are currently possible:
@@ -2011,6 +2028,7 @@
"inherited": True or False, # Whether this permission is inherited. This field is always populated. This is an output-only field.
},
],
+ "deleted": True or False, # Whether the account associated with this permission has been deleted. This field only pertains to user and group permissions.
"kind": "drive#permission", # This is always drive#permission.
"value": "A String", # The email address or domain name for the entity. This is used during inserts and is not populated in responses. When making a drive.permissions.insert request, exactly one of the id or value fields must be specified unless the permission type is anyone, in which case both id and value are ignored.
"id": "A String", # The ID of the user this permission refers to, and identical to the permissionId in the About and Files resources. When making a drive.permissions.insert request, exactly one of the id or value fields must be specified unless the permission type is anyone, in which case both id and value are ignored.
@@ -2041,7 +2059,7 @@
"spaces": [ # The list of spaces which contain the file. Supported values are 'drive', 'appDataFolder' and 'photos'.
"A String",
],
- "shareable": True or False, # Whether the file's sharing settings can be modified by the current user. Deprecated: use capabilities/canShare.
+ "shareable": True or False, # Deprecated: use capabilities/canShare.
"originalFilename": "A String", # The original filename of the uploaded content if available, or else the original value of the title field. This is only available for files with binary content in Drive.
"fileExtension": "A String", # The final component of fullFileExtension with trailing text that does not appear to be part of the extension removed. This field is only populated for files with content stored in Drive; it is not populated for Google Docs or shortcut files.
"hasAugmentedPermissions": True or False, # Whether any users are granted file access directly on this file. This field is only populated for Team Drive files.
@@ -2080,7 +2098,7 @@
The object takes the form of:
{ # The metadata for a file.
- "hasThumbnail": True or False, # Whether this file has a thumbnail.
+ "hasThumbnail": True or False, # 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.
"lastViewedByMeDate": "A String", # Last time this file was viewed by the user (formatted RFC 3339 timestamp).
"trashedDate": "A String", # The time that the item was trashed (formatted RFC 3339 timestamp). Only populated for Team Drive files.
"version": "A String", # 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 requesting user.
@@ -2147,29 +2165,30 @@
"isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
"emailAddress": "A String", # The email address of the user.
},
- "copyable": True or False, # Whether the file can be copied by the current user. Deprecated: use capabilities/canCopy.
+ "copyable": True or False, # Deprecated: use capabilities/canCopy.
"folderColorRgb": "A String", # Folder color as an RGB hex string if the file is a folder. The list of supported colors is available in the folderColorPalette field of the About resource. If an unsupported color is specified, it will be changed to the closest color in the palette. Not populated for Team Drive files.
"markedViewedByMeDate": "A String", # Deprecated.
"ownerNames": [ # Name(s) of the owner(s) of this file. Not populated for Team Drive files.
"A String",
],
- "capabilities": { # Capabilities the current user has on the file. Each capability corresponds to a fine-grained action that a user may take.
- "canReadRevisions": True or False, # Whether the current user has read access to the Revisions resource of the file. For a Team Drive item, whether revisions of non-folder descendants of this item, or this item itself if it is not a folder, can be read.
- "canTrash": True or False, # Whether the file can be trashed by the current user.
- "canCopy": True or False, # Whether the file can be copied by the current user. For a Team Drive item, whether non-folder descendants of this item, or this item itself if it is not a folder, can be copied.
- "canShare": True or False, # Whether the file's sharing settings can be modified by the current user.
- "canDelete": True or False, # Whether the file can be deleted by the current user.
+ "capabilities": { # Capabilities the current user has on this file. Each capability corresponds to a fine-grained action that a user may take.
+ "canReadRevisions": True or False, # Whether the current user can read the revisions resource of this file. For a Team Drive item, whether revisions of non-folder descendants of this item, or this item itself if it is not a folder, can be read.
+ "canTrash": True or False, # Whether the current user can move this file to trash.
+ "canCopy": True or False, # Whether the current user can copy this file. For a Team Drive item, whether the current user can copy non-folder descendants of this item, or this item itself if it is not a folder.
+ "canShare": True or False, # Whether the current user can modify the sharing settings for this file.
+ "canDelete": True or False, # Whether the current user can delete this file.
"canMoveTeamDriveItem": True or False, # Whether the current user can move this Team Drive item by changing its parent. Note that a request to change the parent for this item may still fail depending on the new parent that is being added. Only populated for Team Drive files.
- "canRename": True or False, # Whether the file can be renamed by the current user.
+ "canRename": True or False, # Whether the current user can rename this file.
"canListChildren": True or False, # Whether the current user can list the children of this folder. This is always false when the item is not a folder.
+ "canChangeRestrictedDownload": True or False, # Whether the current user can change the restricted download label of this file.
"canMoveItemIntoTeamDrive": True or False, # Whether the current user can move this item into a Team Drive. If the item is in a Team Drive, this field is equivalent to canMoveTeamDriveItem.
- "canDownload": True or False, # Whether the file can be downloaded by the current user.
- "canComment": True or False, # Whether the current user can comment on the file.
+ "canDownload": True or False, # Whether the current user can download this file.
+ "canComment": True or False, # Whether the current user can comment on this file.
"canRemoveChildren": True or False, # Whether the current user can remove children from this folder. This is always false when the item is not a folder.
- "canReadTeamDrive": True or False, # Whether the current user has read access to the Team Drive to which this file belongs. Only populated for Team Drive files.
+ "canReadTeamDrive": True or False, # Whether the current user can read the Team Drive to which this file belongs. Only populated for Team Drive files.
"canAddChildren": True or False, # Whether the current user can add children to this folder. This is always false when the item is not a folder.
- "canEdit": True or False, # Whether the file can be edited by the current user.
- "canUntrash": True or False, # Whether the file can be restored from the trash by the current user.
+ "canEdit": True or False, # Whether the current user can edit this file.
+ "canUntrash": True or False, # Whether the current user can restore this file from trash.
},
"sharedWithMeDate": "A String", # Time at which this file was shared with the user (formatted RFC 3339 timestamp).
"webViewLink": "A String", # A link only available on public folders for viewing their static web assets (HTML, CSS, JS, etc) via Google Drive's Website Hosting.
@@ -2193,7 +2212,7 @@
"withLink": True or False, # Whether the link is required for this permission.
"domain": "A String", # The domain name of the entity this permission refers to. This is an output-only field which is present when the permission type is user, group or domain.
"name": "A String", # The name for this permission.
- "teamDrivePermissionDetails": [ # Details of whether the Permissions on this Team Drive item are inherited or directly on this item. This is an output-only field which is present only for Team Drive items.
+ "teamDrivePermissionDetails": [ # Details of whether the permissions on this Team Drive item are inherited or directly on this item. This is an output-only field which is present only for Team Drive items.
{
"inheritedFrom": "A String", # The ID of the item from which this permission is inherited. This is an output-only field and is only populated for members of the Team Drive.
"role": "A String", # The primary role for this user. While new values may be added in the future, the following are currently possible:
@@ -2209,6 +2228,7 @@
"inherited": True or False, # Whether this permission is inherited. This field is always populated. This is an output-only field.
},
],
+ "deleted": True or False, # Whether the account associated with this permission has been deleted. This field only pertains to user and group permissions.
"kind": "drive#permission", # This is always drive#permission.
"value": "A String", # The email address or domain name for the entity. This is used during inserts and is not populated in responses. When making a drive.permissions.insert request, exactly one of the id or value fields must be specified unless the permission type is anyone, in which case both id and value are ignored.
"id": "A String", # The ID of the user this permission refers to, and identical to the permissionId in the About and Files resources. When making a drive.permissions.insert request, exactly one of the id or value fields must be specified unless the permission type is anyone, in which case both id and value are ignored.
@@ -2241,7 +2261,7 @@
"openWithLinks": { # A map of the id of each of the user's apps to a link to open this file with that app. Only populated when the drive.apps.readonly scope is used.
"a_key": "A String",
},
- "canReadRevisions": True or False, # Whether the current user has read access to the Revisions resource of the file. Deprecated: use capabilities/canReadRevisions.
+ "canReadRevisions": True or False, # Deprecated: use capabilities/canReadRevisions.
"imageMediaMetadata": { # Metadata about image media. This will only be present for image types, and its contents will depend on what can be parsed from the image content.
"exposureBias": 3.14, # The exposure bias of the photo (APEX value).
"exposureTime": 3.14, # The length of the exposure, in seconds.
@@ -2276,9 +2296,9 @@
"durationMillis": "A String", # The duration of the video in milliseconds.
"height": 42, # The height of the video in pixels.
},
- "editable": True or False, # Whether the file can be edited by the current user. Deprecated: use capabilities/canEdit.
+ "editable": True or False, # Deprecated: use capabilities/canEdit.
"kind": "drive#file", # The type of file. This is always drive#file.
- "canComment": True or False, # Whether the current user can comment on the file. Deprecated: use capabilities/canComment.
+ "canComment": True or False, # Deprecated: use capabilities/canComment.
"quotaBytesUsed": "A String", # The number of quota bytes used by this file.
"fileSize": "A String", # The size of the file in bytes. This field is only populated for files with content stored in Drive; it is not populated for Google Docs or shortcut files.
"createdDate": "A String", # Create time for this file (formatted RFC 3339 timestamp).
@@ -2314,7 +2334,7 @@
"withLink": True or False, # Whether the link is required for this permission.
"domain": "A String", # The domain name of the entity this permission refers to. This is an output-only field which is present when the permission type is user, group or domain.
"name": "A String", # The name for this permission.
- "teamDrivePermissionDetails": [ # Details of whether the Permissions on this Team Drive item are inherited or directly on this item. This is an output-only field which is present only for Team Drive items.
+ "teamDrivePermissionDetails": [ # Details of whether the permissions on this Team Drive item are inherited or directly on this item. This is an output-only field which is present only for Team Drive items.
{
"inheritedFrom": "A String", # The ID of the item from which this permission is inherited. This is an output-only field and is only populated for members of the Team Drive.
"role": "A String", # The primary role for this user. While new values may be added in the future, the following are currently possible:
@@ -2330,6 +2350,7 @@
"inherited": True or False, # Whether this permission is inherited. This field is always populated. This is an output-only field.
},
],
+ "deleted": True or False, # Whether the account associated with this permission has been deleted. This field only pertains to user and group permissions.
"kind": "drive#permission", # This is always drive#permission.
"value": "A String", # The email address or domain name for the entity. This is used during inserts and is not populated in responses. When making a drive.permissions.insert request, exactly one of the id or value fields must be specified unless the permission type is anyone, in which case both id and value are ignored.
"id": "A String", # The ID of the user this permission refers to, and identical to the permissionId in the About and Files resources. When making a drive.permissions.insert request, exactly one of the id or value fields must be specified unless the permission type is anyone, in which case both id and value are ignored.
@@ -2360,7 +2381,7 @@
"spaces": [ # The list of spaces which contain the file. Supported values are 'drive', 'appDataFolder' and 'photos'.
"A String",
],
- "shareable": True or False, # Whether the file's sharing settings can be modified by the current user. Deprecated: use capabilities/canShare.
+ "shareable": True or False, # Deprecated: use capabilities/canShare.
"originalFilename": "A String", # The original filename of the uploaded content if available, or else the original value of the title field. This is only available for files with binary content in Drive.
"fileExtension": "A String", # The final component of fullFileExtension with trailing text that does not appear to be part of the extension removed. This field is only populated for files with content stored in Drive; it is not populated for Google Docs or shortcut files.
"hasAugmentedPermissions": True or False, # Whether any users are granted file access directly on this file. This field is only populated for Team Drive files.
@@ -2395,7 +2416,7 @@
An object of the form:
{ # The metadata for a file.
- "hasThumbnail": True or False, # Whether this file has a thumbnail.
+ "hasThumbnail": True or False, # 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.
"lastViewedByMeDate": "A String", # Last time this file was viewed by the user (formatted RFC 3339 timestamp).
"trashedDate": "A String", # The time that the item was trashed (formatted RFC 3339 timestamp). Only populated for Team Drive files.
"version": "A String", # 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 requesting user.
@@ -2462,29 +2483,30 @@
"isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
"emailAddress": "A String", # The email address of the user.
},
- "copyable": True or False, # Whether the file can be copied by the current user. Deprecated: use capabilities/canCopy.
+ "copyable": True or False, # Deprecated: use capabilities/canCopy.
"folderColorRgb": "A String", # Folder color as an RGB hex string if the file is a folder. The list of supported colors is available in the folderColorPalette field of the About resource. If an unsupported color is specified, it will be changed to the closest color in the palette. Not populated for Team Drive files.
"markedViewedByMeDate": "A String", # Deprecated.
"ownerNames": [ # Name(s) of the owner(s) of this file. Not populated for Team Drive files.
"A String",
],
- "capabilities": { # Capabilities the current user has on the file. Each capability corresponds to a fine-grained action that a user may take.
- "canReadRevisions": True or False, # Whether the current user has read access to the Revisions resource of the file. For a Team Drive item, whether revisions of non-folder descendants of this item, or this item itself if it is not a folder, can be read.
- "canTrash": True or False, # Whether the file can be trashed by the current user.
- "canCopy": True or False, # Whether the file can be copied by the current user. For a Team Drive item, whether non-folder descendants of this item, or this item itself if it is not a folder, can be copied.
- "canShare": True or False, # Whether the file's sharing settings can be modified by the current user.
- "canDelete": True or False, # Whether the file can be deleted by the current user.
+ "capabilities": { # Capabilities the current user has on this file. Each capability corresponds to a fine-grained action that a user may take.
+ "canReadRevisions": True or False, # Whether the current user can read the revisions resource of this file. For a Team Drive item, whether revisions of non-folder descendants of this item, or this item itself if it is not a folder, can be read.
+ "canTrash": True or False, # Whether the current user can move this file to trash.
+ "canCopy": True or False, # Whether the current user can copy this file. For a Team Drive item, whether the current user can copy non-folder descendants of this item, or this item itself if it is not a folder.
+ "canShare": True or False, # Whether the current user can modify the sharing settings for this file.
+ "canDelete": True or False, # Whether the current user can delete this file.
"canMoveTeamDriveItem": True or False, # Whether the current user can move this Team Drive item by changing its parent. Note that a request to change the parent for this item may still fail depending on the new parent that is being added. Only populated for Team Drive files.
- "canRename": True or False, # Whether the file can be renamed by the current user.
+ "canRename": True or False, # Whether the current user can rename this file.
"canListChildren": True or False, # Whether the current user can list the children of this folder. This is always false when the item is not a folder.
+ "canChangeRestrictedDownload": True or False, # Whether the current user can change the restricted download label of this file.
"canMoveItemIntoTeamDrive": True or False, # Whether the current user can move this item into a Team Drive. If the item is in a Team Drive, this field is equivalent to canMoveTeamDriveItem.
- "canDownload": True or False, # Whether the file can be downloaded by the current user.
- "canComment": True or False, # Whether the current user can comment on the file.
+ "canDownload": True or False, # Whether the current user can download this file.
+ "canComment": True or False, # Whether the current user can comment on this file.
"canRemoveChildren": True or False, # Whether the current user can remove children from this folder. This is always false when the item is not a folder.
- "canReadTeamDrive": True or False, # Whether the current user has read access to the Team Drive to which this file belongs. Only populated for Team Drive files.
+ "canReadTeamDrive": True or False, # Whether the current user can read the Team Drive to which this file belongs. Only populated for Team Drive files.
"canAddChildren": True or False, # Whether the current user can add children to this folder. This is always false when the item is not a folder.
- "canEdit": True or False, # Whether the file can be edited by the current user.
- "canUntrash": True or False, # Whether the file can be restored from the trash by the current user.
+ "canEdit": True or False, # Whether the current user can edit this file.
+ "canUntrash": True or False, # Whether the current user can restore this file from trash.
},
"sharedWithMeDate": "A String", # Time at which this file was shared with the user (formatted RFC 3339 timestamp).
"webViewLink": "A String", # A link only available on public folders for viewing their static web assets (HTML, CSS, JS, etc) via Google Drive's Website Hosting.
@@ -2508,7 +2530,7 @@
"withLink": True or False, # Whether the link is required for this permission.
"domain": "A String", # The domain name of the entity this permission refers to. This is an output-only field which is present when the permission type is user, group or domain.
"name": "A String", # The name for this permission.
- "teamDrivePermissionDetails": [ # Details of whether the Permissions on this Team Drive item are inherited or directly on this item. This is an output-only field which is present only for Team Drive items.
+ "teamDrivePermissionDetails": [ # Details of whether the permissions on this Team Drive item are inherited or directly on this item. This is an output-only field which is present only for Team Drive items.
{
"inheritedFrom": "A String", # The ID of the item from which this permission is inherited. This is an output-only field and is only populated for members of the Team Drive.
"role": "A String", # The primary role for this user. While new values may be added in the future, the following are currently possible:
@@ -2524,6 +2546,7 @@
"inherited": True or False, # Whether this permission is inherited. This field is always populated. This is an output-only field.
},
],
+ "deleted": True or False, # Whether the account associated with this permission has been deleted. This field only pertains to user and group permissions.
"kind": "drive#permission", # This is always drive#permission.
"value": "A String", # The email address or domain name for the entity. This is used during inserts and is not populated in responses. When making a drive.permissions.insert request, exactly one of the id or value fields must be specified unless the permission type is anyone, in which case both id and value are ignored.
"id": "A String", # The ID of the user this permission refers to, and identical to the permissionId in the About and Files resources. When making a drive.permissions.insert request, exactly one of the id or value fields must be specified unless the permission type is anyone, in which case both id and value are ignored.
@@ -2556,7 +2579,7 @@
"openWithLinks": { # A map of the id of each of the user's apps to a link to open this file with that app. Only populated when the drive.apps.readonly scope is used.
"a_key": "A String",
},
- "canReadRevisions": True or False, # Whether the current user has read access to the Revisions resource of the file. Deprecated: use capabilities/canReadRevisions.
+ "canReadRevisions": True or False, # Deprecated: use capabilities/canReadRevisions.
"imageMediaMetadata": { # Metadata about image media. This will only be present for image types, and its contents will depend on what can be parsed from the image content.
"exposureBias": 3.14, # The exposure bias of the photo (APEX value).
"exposureTime": 3.14, # The length of the exposure, in seconds.
@@ -2591,9 +2614,9 @@
"durationMillis": "A String", # The duration of the video in milliseconds.
"height": 42, # The height of the video in pixels.
},
- "editable": True or False, # Whether the file can be edited by the current user. Deprecated: use capabilities/canEdit.
+ "editable": True or False, # Deprecated: use capabilities/canEdit.
"kind": "drive#file", # The type of file. This is always drive#file.
- "canComment": True or False, # Whether the current user can comment on the file. Deprecated: use capabilities/canComment.
+ "canComment": True or False, # Deprecated: use capabilities/canComment.
"quotaBytesUsed": "A String", # The number of quota bytes used by this file.
"fileSize": "A String", # The size of the file in bytes. This field is only populated for files with content stored in Drive; it is not populated for Google Docs or shortcut files.
"createdDate": "A String", # Create time for this file (formatted RFC 3339 timestamp).
@@ -2629,7 +2652,7 @@
"withLink": True or False, # Whether the link is required for this permission.
"domain": "A String", # The domain name of the entity this permission refers to. This is an output-only field which is present when the permission type is user, group or domain.
"name": "A String", # The name for this permission.
- "teamDrivePermissionDetails": [ # Details of whether the Permissions on this Team Drive item are inherited or directly on this item. This is an output-only field which is present only for Team Drive items.
+ "teamDrivePermissionDetails": [ # Details of whether the permissions on this Team Drive item are inherited or directly on this item. This is an output-only field which is present only for Team Drive items.
{
"inheritedFrom": "A String", # The ID of the item from which this permission is inherited. This is an output-only field and is only populated for members of the Team Drive.
"role": "A String", # The primary role for this user. While new values may be added in the future, the following are currently possible:
@@ -2645,6 +2668,7 @@
"inherited": True or False, # Whether this permission is inherited. This field is always populated. This is an output-only field.
},
],
+ "deleted": True or False, # Whether the account associated with this permission has been deleted. This field only pertains to user and group permissions.
"kind": "drive#permission", # This is always drive#permission.
"value": "A String", # The email address or domain name for the entity. This is used during inserts and is not populated in responses. When making a drive.permissions.insert request, exactly one of the id or value fields must be specified unless the permission type is anyone, in which case both id and value are ignored.
"id": "A String", # The ID of the user this permission refers to, and identical to the permissionId in the About and Files resources. When making a drive.permissions.insert request, exactly one of the id or value fields must be specified unless the permission type is anyone, in which case both id and value are ignored.
@@ -2675,7 +2699,7 @@
"spaces": [ # The list of spaces which contain the file. Supported values are 'drive', 'appDataFolder' and 'photos'.
"A String",
],
- "shareable": True or False, # Whether the file's sharing settings can be modified by the current user. Deprecated: use capabilities/canShare.
+ "shareable": True or False, # Deprecated: use capabilities/canShare.
"originalFilename": "A String", # The original filename of the uploaded content if available, or else the original value of the title field. This is only available for files with binary content in Drive.
"fileExtension": "A String", # The final component of fullFileExtension with trailing text that does not appear to be part of the extension removed. This field is only populated for files with content stored in Drive; it is not populated for Google Docs or shortcut files.
"hasAugmentedPermissions": True or False, # Whether any users are granted file access directly on this file. This field is only populated for Team Drive files.
@@ -2697,7 +2721,7 @@
An object of the form:
{ # The metadata for a file.
- "hasThumbnail": True or False, # Whether this file has a thumbnail.
+ "hasThumbnail": True or False, # 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.
"lastViewedByMeDate": "A String", # Last time this file was viewed by the user (formatted RFC 3339 timestamp).
"trashedDate": "A String", # The time that the item was trashed (formatted RFC 3339 timestamp). Only populated for Team Drive files.
"version": "A String", # 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 requesting user.
@@ -2764,29 +2788,30 @@
"isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
"emailAddress": "A String", # The email address of the user.
},
- "copyable": True or False, # Whether the file can be copied by the current user. Deprecated: use capabilities/canCopy.
+ "copyable": True or False, # Deprecated: use capabilities/canCopy.
"folderColorRgb": "A String", # Folder color as an RGB hex string if the file is a folder. The list of supported colors is available in the folderColorPalette field of the About resource. If an unsupported color is specified, it will be changed to the closest color in the palette. Not populated for Team Drive files.
"markedViewedByMeDate": "A String", # Deprecated.
"ownerNames": [ # Name(s) of the owner(s) of this file. Not populated for Team Drive files.
"A String",
],
- "capabilities": { # Capabilities the current user has on the file. Each capability corresponds to a fine-grained action that a user may take.
- "canReadRevisions": True or False, # Whether the current user has read access to the Revisions resource of the file. For a Team Drive item, whether revisions of non-folder descendants of this item, or this item itself if it is not a folder, can be read.
- "canTrash": True or False, # Whether the file can be trashed by the current user.
- "canCopy": True or False, # Whether the file can be copied by the current user. For a Team Drive item, whether non-folder descendants of this item, or this item itself if it is not a folder, can be copied.
- "canShare": True or False, # Whether the file's sharing settings can be modified by the current user.
- "canDelete": True or False, # Whether the file can be deleted by the current user.
+ "capabilities": { # Capabilities the current user has on this file. Each capability corresponds to a fine-grained action that a user may take.
+ "canReadRevisions": True or False, # Whether the current user can read the revisions resource of this file. For a Team Drive item, whether revisions of non-folder descendants of this item, or this item itself if it is not a folder, can be read.
+ "canTrash": True or False, # Whether the current user can move this file to trash.
+ "canCopy": True or False, # Whether the current user can copy this file. For a Team Drive item, whether the current user can copy non-folder descendants of this item, or this item itself if it is not a folder.
+ "canShare": True or False, # Whether the current user can modify the sharing settings for this file.
+ "canDelete": True or False, # Whether the current user can delete this file.
"canMoveTeamDriveItem": True or False, # Whether the current user can move this Team Drive item by changing its parent. Note that a request to change the parent for this item may still fail depending on the new parent that is being added. Only populated for Team Drive files.
- "canRename": True or False, # Whether the file can be renamed by the current user.
+ "canRename": True or False, # Whether the current user can rename this file.
"canListChildren": True or False, # Whether the current user can list the children of this folder. This is always false when the item is not a folder.
+ "canChangeRestrictedDownload": True or False, # Whether the current user can change the restricted download label of this file.
"canMoveItemIntoTeamDrive": True or False, # Whether the current user can move this item into a Team Drive. If the item is in a Team Drive, this field is equivalent to canMoveTeamDriveItem.
- "canDownload": True or False, # Whether the file can be downloaded by the current user.
- "canComment": True or False, # Whether the current user can comment on the file.
+ "canDownload": True or False, # Whether the current user can download this file.
+ "canComment": True or False, # Whether the current user can comment on this file.
"canRemoveChildren": True or False, # Whether the current user can remove children from this folder. This is always false when the item is not a folder.
- "canReadTeamDrive": True or False, # Whether the current user has read access to the Team Drive to which this file belongs. Only populated for Team Drive files.
+ "canReadTeamDrive": True or False, # Whether the current user can read the Team Drive to which this file belongs. Only populated for Team Drive files.
"canAddChildren": True or False, # Whether the current user can add children to this folder. This is always false when the item is not a folder.
- "canEdit": True or False, # Whether the file can be edited by the current user.
- "canUntrash": True or False, # Whether the file can be restored from the trash by the current user.
+ "canEdit": True or False, # Whether the current user can edit this file.
+ "canUntrash": True or False, # Whether the current user can restore this file from trash.
},
"sharedWithMeDate": "A String", # Time at which this file was shared with the user (formatted RFC 3339 timestamp).
"webViewLink": "A String", # A link only available on public folders for viewing their static web assets (HTML, CSS, JS, etc) via Google Drive's Website Hosting.
@@ -2810,7 +2835,7 @@
"withLink": True or False, # Whether the link is required for this permission.
"domain": "A String", # The domain name of the entity this permission refers to. This is an output-only field which is present when the permission type is user, group or domain.
"name": "A String", # The name for this permission.
- "teamDrivePermissionDetails": [ # Details of whether the Permissions on this Team Drive item are inherited or directly on this item. This is an output-only field which is present only for Team Drive items.
+ "teamDrivePermissionDetails": [ # Details of whether the permissions on this Team Drive item are inherited or directly on this item. This is an output-only field which is present only for Team Drive items.
{
"inheritedFrom": "A String", # The ID of the item from which this permission is inherited. This is an output-only field and is only populated for members of the Team Drive.
"role": "A String", # The primary role for this user. While new values may be added in the future, the following are currently possible:
@@ -2826,6 +2851,7 @@
"inherited": True or False, # Whether this permission is inherited. This field is always populated. This is an output-only field.
},
],
+ "deleted": True or False, # Whether the account associated with this permission has been deleted. This field only pertains to user and group permissions.
"kind": "drive#permission", # This is always drive#permission.
"value": "A String", # The email address or domain name for the entity. This is used during inserts and is not populated in responses. When making a drive.permissions.insert request, exactly one of the id or value fields must be specified unless the permission type is anyone, in which case both id and value are ignored.
"id": "A String", # The ID of the user this permission refers to, and identical to the permissionId in the About and Files resources. When making a drive.permissions.insert request, exactly one of the id or value fields must be specified unless the permission type is anyone, in which case both id and value are ignored.
@@ -2858,7 +2884,7 @@
"openWithLinks": { # A map of the id of each of the user's apps to a link to open this file with that app. Only populated when the drive.apps.readonly scope is used.
"a_key": "A String",
},
- "canReadRevisions": True or False, # Whether the current user has read access to the Revisions resource of the file. Deprecated: use capabilities/canReadRevisions.
+ "canReadRevisions": True or False, # Deprecated: use capabilities/canReadRevisions.
"imageMediaMetadata": { # Metadata about image media. This will only be present for image types, and its contents will depend on what can be parsed from the image content.
"exposureBias": 3.14, # The exposure bias of the photo (APEX value).
"exposureTime": 3.14, # The length of the exposure, in seconds.
@@ -2893,9 +2919,9 @@
"durationMillis": "A String", # The duration of the video in milliseconds.
"height": 42, # The height of the video in pixels.
},
- "editable": True or False, # Whether the file can be edited by the current user. Deprecated: use capabilities/canEdit.
+ "editable": True or False, # Deprecated: use capabilities/canEdit.
"kind": "drive#file", # The type of file. This is always drive#file.
- "canComment": True or False, # Whether the current user can comment on the file. Deprecated: use capabilities/canComment.
+ "canComment": True or False, # Deprecated: use capabilities/canComment.
"quotaBytesUsed": "A String", # The number of quota bytes used by this file.
"fileSize": "A String", # The size of the file in bytes. This field is only populated for files with content stored in Drive; it is not populated for Google Docs or shortcut files.
"createdDate": "A String", # Create time for this file (formatted RFC 3339 timestamp).
@@ -2931,7 +2957,7 @@
"withLink": True or False, # Whether the link is required for this permission.
"domain": "A String", # The domain name of the entity this permission refers to. This is an output-only field which is present when the permission type is user, group or domain.
"name": "A String", # The name for this permission.
- "teamDrivePermissionDetails": [ # Details of whether the Permissions on this Team Drive item are inherited or directly on this item. This is an output-only field which is present only for Team Drive items.
+ "teamDrivePermissionDetails": [ # Details of whether the permissions on this Team Drive item are inherited or directly on this item. This is an output-only field which is present only for Team Drive items.
{
"inheritedFrom": "A String", # The ID of the item from which this permission is inherited. This is an output-only field and is only populated for members of the Team Drive.
"role": "A String", # The primary role for this user. While new values may be added in the future, the following are currently possible:
@@ -2947,6 +2973,7 @@
"inherited": True or False, # Whether this permission is inherited. This field is always populated. This is an output-only field.
},
],
+ "deleted": True or False, # Whether the account associated with this permission has been deleted. This field only pertains to user and group permissions.
"kind": "drive#permission", # This is always drive#permission.
"value": "A String", # The email address or domain name for the entity. This is used during inserts and is not populated in responses. When making a drive.permissions.insert request, exactly one of the id or value fields must be specified unless the permission type is anyone, in which case both id and value are ignored.
"id": "A String", # The ID of the user this permission refers to, and identical to the permissionId in the About and Files resources. When making a drive.permissions.insert request, exactly one of the id or value fields must be specified unless the permission type is anyone, in which case both id and value are ignored.
@@ -2977,7 +3004,7 @@
"spaces": [ # The list of spaces which contain the file. Supported values are 'drive', 'appDataFolder' and 'photos'.
"A String",
],
- "shareable": True or False, # Whether the file's sharing settings can be modified by the current user. Deprecated: use capabilities/canShare.
+ "shareable": True or False, # Deprecated: use capabilities/canShare.
"originalFilename": "A String", # The original filename of the uploaded content if available, or else the original value of the title field. This is only available for files with binary content in Drive.
"fileExtension": "A String", # The final component of fullFileExtension with trailing text that does not appear to be part of the extension removed. This field is only populated for files with content stored in Drive; it is not populated for Google Docs or shortcut files.
"hasAugmentedPermissions": True or False, # Whether any users are granted file access directly on this file. This field is only populated for Team Drive files.
@@ -2999,7 +3026,7 @@
An object of the form:
{ # The metadata for a file.
- "hasThumbnail": True or False, # Whether this file has a thumbnail.
+ "hasThumbnail": True or False, # 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.
"lastViewedByMeDate": "A String", # Last time this file was viewed by the user (formatted RFC 3339 timestamp).
"trashedDate": "A String", # The time that the item was trashed (formatted RFC 3339 timestamp). Only populated for Team Drive files.
"version": "A String", # 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 requesting user.
@@ -3066,29 +3093,30 @@
"isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
"emailAddress": "A String", # The email address of the user.
},
- "copyable": True or False, # Whether the file can be copied by the current user. Deprecated: use capabilities/canCopy.
+ "copyable": True or False, # Deprecated: use capabilities/canCopy.
"folderColorRgb": "A String", # Folder color as an RGB hex string if the file is a folder. The list of supported colors is available in the folderColorPalette field of the About resource. If an unsupported color is specified, it will be changed to the closest color in the palette. Not populated for Team Drive files.
"markedViewedByMeDate": "A String", # Deprecated.
"ownerNames": [ # Name(s) of the owner(s) of this file. Not populated for Team Drive files.
"A String",
],
- "capabilities": { # Capabilities the current user has on the file. Each capability corresponds to a fine-grained action that a user may take.
- "canReadRevisions": True or False, # Whether the current user has read access to the Revisions resource of the file. For a Team Drive item, whether revisions of non-folder descendants of this item, or this item itself if it is not a folder, can be read.
- "canTrash": True or False, # Whether the file can be trashed by the current user.
- "canCopy": True or False, # Whether the file can be copied by the current user. For a Team Drive item, whether non-folder descendants of this item, or this item itself if it is not a folder, can be copied.
- "canShare": True or False, # Whether the file's sharing settings can be modified by the current user.
- "canDelete": True or False, # Whether the file can be deleted by the current user.
+ "capabilities": { # Capabilities the current user has on this file. Each capability corresponds to a fine-grained action that a user may take.
+ "canReadRevisions": True or False, # Whether the current user can read the revisions resource of this file. For a Team Drive item, whether revisions of non-folder descendants of this item, or this item itself if it is not a folder, can be read.
+ "canTrash": True or False, # Whether the current user can move this file to trash.
+ "canCopy": True or False, # Whether the current user can copy this file. For a Team Drive item, whether the current user can copy non-folder descendants of this item, or this item itself if it is not a folder.
+ "canShare": True or False, # Whether the current user can modify the sharing settings for this file.
+ "canDelete": True or False, # Whether the current user can delete this file.
"canMoveTeamDriveItem": True or False, # Whether the current user can move this Team Drive item by changing its parent. Note that a request to change the parent for this item may still fail depending on the new parent that is being added. Only populated for Team Drive files.
- "canRename": True or False, # Whether the file can be renamed by the current user.
+ "canRename": True or False, # Whether the current user can rename this file.
"canListChildren": True or False, # Whether the current user can list the children of this folder. This is always false when the item is not a folder.
+ "canChangeRestrictedDownload": True or False, # Whether the current user can change the restricted download label of this file.
"canMoveItemIntoTeamDrive": True or False, # Whether the current user can move this item into a Team Drive. If the item is in a Team Drive, this field is equivalent to canMoveTeamDriveItem.
- "canDownload": True or False, # Whether the file can be downloaded by the current user.
- "canComment": True or False, # Whether the current user can comment on the file.
+ "canDownload": True or False, # Whether the current user can download this file.
+ "canComment": True or False, # Whether the current user can comment on this file.
"canRemoveChildren": True or False, # Whether the current user can remove children from this folder. This is always false when the item is not a folder.
- "canReadTeamDrive": True or False, # Whether the current user has read access to the Team Drive to which this file belongs. Only populated for Team Drive files.
+ "canReadTeamDrive": True or False, # Whether the current user can read the Team Drive to which this file belongs. Only populated for Team Drive files.
"canAddChildren": True or False, # Whether the current user can add children to this folder. This is always false when the item is not a folder.
- "canEdit": True or False, # Whether the file can be edited by the current user.
- "canUntrash": True or False, # Whether the file can be restored from the trash by the current user.
+ "canEdit": True or False, # Whether the current user can edit this file.
+ "canUntrash": True or False, # Whether the current user can restore this file from trash.
},
"sharedWithMeDate": "A String", # Time at which this file was shared with the user (formatted RFC 3339 timestamp).
"webViewLink": "A String", # A link only available on public folders for viewing their static web assets (HTML, CSS, JS, etc) via Google Drive's Website Hosting.
@@ -3112,7 +3140,7 @@
"withLink": True or False, # Whether the link is required for this permission.
"domain": "A String", # The domain name of the entity this permission refers to. This is an output-only field which is present when the permission type is user, group or domain.
"name": "A String", # The name for this permission.
- "teamDrivePermissionDetails": [ # Details of whether the Permissions on this Team Drive item are inherited or directly on this item. This is an output-only field which is present only for Team Drive items.
+ "teamDrivePermissionDetails": [ # Details of whether the permissions on this Team Drive item are inherited or directly on this item. This is an output-only field which is present only for Team Drive items.
{
"inheritedFrom": "A String", # The ID of the item from which this permission is inherited. This is an output-only field and is only populated for members of the Team Drive.
"role": "A String", # The primary role for this user. While new values may be added in the future, the following are currently possible:
@@ -3128,6 +3156,7 @@
"inherited": True or False, # Whether this permission is inherited. This field is always populated. This is an output-only field.
},
],
+ "deleted": True or False, # Whether the account associated with this permission has been deleted. This field only pertains to user and group permissions.
"kind": "drive#permission", # This is always drive#permission.
"value": "A String", # The email address or domain name for the entity. This is used during inserts and is not populated in responses. When making a drive.permissions.insert request, exactly one of the id or value fields must be specified unless the permission type is anyone, in which case both id and value are ignored.
"id": "A String", # The ID of the user this permission refers to, and identical to the permissionId in the About and Files resources. When making a drive.permissions.insert request, exactly one of the id or value fields must be specified unless the permission type is anyone, in which case both id and value are ignored.
@@ -3160,7 +3189,7 @@
"openWithLinks": { # A map of the id of each of the user's apps to a link to open this file with that app. Only populated when the drive.apps.readonly scope is used.
"a_key": "A String",
},
- "canReadRevisions": True or False, # Whether the current user has read access to the Revisions resource of the file. Deprecated: use capabilities/canReadRevisions.
+ "canReadRevisions": True or False, # Deprecated: use capabilities/canReadRevisions.
"imageMediaMetadata": { # Metadata about image media. This will only be present for image types, and its contents will depend on what can be parsed from the image content.
"exposureBias": 3.14, # The exposure bias of the photo (APEX value).
"exposureTime": 3.14, # The length of the exposure, in seconds.
@@ -3195,9 +3224,9 @@
"durationMillis": "A String", # The duration of the video in milliseconds.
"height": 42, # The height of the video in pixels.
},
- "editable": True or False, # Whether the file can be edited by the current user. Deprecated: use capabilities/canEdit.
+ "editable": True or False, # Deprecated: use capabilities/canEdit.
"kind": "drive#file", # The type of file. This is always drive#file.
- "canComment": True or False, # Whether the current user can comment on the file. Deprecated: use capabilities/canComment.
+ "canComment": True or False, # Deprecated: use capabilities/canComment.
"quotaBytesUsed": "A String", # The number of quota bytes used by this file.
"fileSize": "A String", # The size of the file in bytes. This field is only populated for files with content stored in Drive; it is not populated for Google Docs or shortcut files.
"createdDate": "A String", # Create time for this file (formatted RFC 3339 timestamp).
@@ -3233,7 +3262,7 @@
"withLink": True or False, # Whether the link is required for this permission.
"domain": "A String", # The domain name of the entity this permission refers to. This is an output-only field which is present when the permission type is user, group or domain.
"name": "A String", # The name for this permission.
- "teamDrivePermissionDetails": [ # Details of whether the Permissions on this Team Drive item are inherited or directly on this item. This is an output-only field which is present only for Team Drive items.
+ "teamDrivePermissionDetails": [ # Details of whether the permissions on this Team Drive item are inherited or directly on this item. This is an output-only field which is present only for Team Drive items.
{
"inheritedFrom": "A String", # The ID of the item from which this permission is inherited. This is an output-only field and is only populated for members of the Team Drive.
"role": "A String", # The primary role for this user. While new values may be added in the future, the following are currently possible:
@@ -3249,6 +3278,7 @@
"inherited": True or False, # Whether this permission is inherited. This field is always populated. This is an output-only field.
},
],
+ "deleted": True or False, # Whether the account associated with this permission has been deleted. This field only pertains to user and group permissions.
"kind": "drive#permission", # This is always drive#permission.
"value": "A String", # The email address or domain name for the entity. This is used during inserts and is not populated in responses. When making a drive.permissions.insert request, exactly one of the id or value fields must be specified unless the permission type is anyone, in which case both id and value are ignored.
"id": "A String", # The ID of the user this permission refers to, and identical to the permissionId in the About and Files resources. When making a drive.permissions.insert request, exactly one of the id or value fields must be specified unless the permission type is anyone, in which case both id and value are ignored.
@@ -3279,7 +3309,7 @@
"spaces": [ # The list of spaces which contain the file. Supported values are 'drive', 'appDataFolder' and 'photos'.
"A String",
],
- "shareable": True or False, # Whether the file's sharing settings can be modified by the current user. Deprecated: use capabilities/canShare.
+ "shareable": True or False, # Deprecated: use capabilities/canShare.
"originalFilename": "A String", # The original filename of the uploaded content if available, or else the original value of the title field. This is only available for files with binary content in Drive.
"fileExtension": "A String", # The final component of fullFileExtension with trailing text that does not appear to be part of the extension removed. This field is only populated for files with content stored in Drive; it is not populated for Google Docs or shortcut files.
"hasAugmentedPermissions": True or False, # Whether any users are granted file access directly on this file. This field is only populated for Team Drive files.
@@ -3301,7 +3331,7 @@
An object of the form:
{ # The metadata for a file.
- "hasThumbnail": True or False, # Whether this file has a thumbnail.
+ "hasThumbnail": True or False, # 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.
"lastViewedByMeDate": "A String", # Last time this file was viewed by the user (formatted RFC 3339 timestamp).
"trashedDate": "A String", # The time that the item was trashed (formatted RFC 3339 timestamp). Only populated for Team Drive files.
"version": "A String", # 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 requesting user.
@@ -3368,29 +3398,30 @@
"isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
"emailAddress": "A String", # The email address of the user.
},
- "copyable": True or False, # Whether the file can be copied by the current user. Deprecated: use capabilities/canCopy.
+ "copyable": True or False, # Deprecated: use capabilities/canCopy.
"folderColorRgb": "A String", # Folder color as an RGB hex string if the file is a folder. The list of supported colors is available in the folderColorPalette field of the About resource. If an unsupported color is specified, it will be changed to the closest color in the palette. Not populated for Team Drive files.
"markedViewedByMeDate": "A String", # Deprecated.
"ownerNames": [ # Name(s) of the owner(s) of this file. Not populated for Team Drive files.
"A String",
],
- "capabilities": { # Capabilities the current user has on the file. Each capability corresponds to a fine-grained action that a user may take.
- "canReadRevisions": True or False, # Whether the current user has read access to the Revisions resource of the file. For a Team Drive item, whether revisions of non-folder descendants of this item, or this item itself if it is not a folder, can be read.
- "canTrash": True or False, # Whether the file can be trashed by the current user.
- "canCopy": True or False, # Whether the file can be copied by the current user. For a Team Drive item, whether non-folder descendants of this item, or this item itself if it is not a folder, can be copied.
- "canShare": True or False, # Whether the file's sharing settings can be modified by the current user.
- "canDelete": True or False, # Whether the file can be deleted by the current user.
+ "capabilities": { # Capabilities the current user has on this file. Each capability corresponds to a fine-grained action that a user may take.
+ "canReadRevisions": True or False, # Whether the current user can read the revisions resource of this file. For a Team Drive item, whether revisions of non-folder descendants of this item, or this item itself if it is not a folder, can be read.
+ "canTrash": True or False, # Whether the current user can move this file to trash.
+ "canCopy": True or False, # Whether the current user can copy this file. For a Team Drive item, whether the current user can copy non-folder descendants of this item, or this item itself if it is not a folder.
+ "canShare": True or False, # Whether the current user can modify the sharing settings for this file.
+ "canDelete": True or False, # Whether the current user can delete this file.
"canMoveTeamDriveItem": True or False, # Whether the current user can move this Team Drive item by changing its parent. Note that a request to change the parent for this item may still fail depending on the new parent that is being added. Only populated for Team Drive files.
- "canRename": True or False, # Whether the file can be renamed by the current user.
+ "canRename": True or False, # Whether the current user can rename this file.
"canListChildren": True or False, # Whether the current user can list the children of this folder. This is always false when the item is not a folder.
+ "canChangeRestrictedDownload": True or False, # Whether the current user can change the restricted download label of this file.
"canMoveItemIntoTeamDrive": True or False, # Whether the current user can move this item into a Team Drive. If the item is in a Team Drive, this field is equivalent to canMoveTeamDriveItem.
- "canDownload": True or False, # Whether the file can be downloaded by the current user.
- "canComment": True or False, # Whether the current user can comment on the file.
+ "canDownload": True or False, # Whether the current user can download this file.
+ "canComment": True or False, # Whether the current user can comment on this file.
"canRemoveChildren": True or False, # Whether the current user can remove children from this folder. This is always false when the item is not a folder.
- "canReadTeamDrive": True or False, # Whether the current user has read access to the Team Drive to which this file belongs. Only populated for Team Drive files.
+ "canReadTeamDrive": True or False, # Whether the current user can read the Team Drive to which this file belongs. Only populated for Team Drive files.
"canAddChildren": True or False, # Whether the current user can add children to this folder. This is always false when the item is not a folder.
- "canEdit": True or False, # Whether the file can be edited by the current user.
- "canUntrash": True or False, # Whether the file can be restored from the trash by the current user.
+ "canEdit": True or False, # Whether the current user can edit this file.
+ "canUntrash": True or False, # Whether the current user can restore this file from trash.
},
"sharedWithMeDate": "A String", # Time at which this file was shared with the user (formatted RFC 3339 timestamp).
"webViewLink": "A String", # A link only available on public folders for viewing their static web assets (HTML, CSS, JS, etc) via Google Drive's Website Hosting.
@@ -3414,7 +3445,7 @@
"withLink": True or False, # Whether the link is required for this permission.
"domain": "A String", # The domain name of the entity this permission refers to. This is an output-only field which is present when the permission type is user, group or domain.
"name": "A String", # The name for this permission.
- "teamDrivePermissionDetails": [ # Details of whether the Permissions on this Team Drive item are inherited or directly on this item. This is an output-only field which is present only for Team Drive items.
+ "teamDrivePermissionDetails": [ # Details of whether the permissions on this Team Drive item are inherited or directly on this item. This is an output-only field which is present only for Team Drive items.
{
"inheritedFrom": "A String", # The ID of the item from which this permission is inherited. This is an output-only field and is only populated for members of the Team Drive.
"role": "A String", # The primary role for this user. While new values may be added in the future, the following are currently possible:
@@ -3430,6 +3461,7 @@
"inherited": True or False, # Whether this permission is inherited. This field is always populated. This is an output-only field.
},
],
+ "deleted": True or False, # Whether the account associated with this permission has been deleted. This field only pertains to user and group permissions.
"kind": "drive#permission", # This is always drive#permission.
"value": "A String", # The email address or domain name for the entity. This is used during inserts and is not populated in responses. When making a drive.permissions.insert request, exactly one of the id or value fields must be specified unless the permission type is anyone, in which case both id and value are ignored.
"id": "A String", # The ID of the user this permission refers to, and identical to the permissionId in the About and Files resources. When making a drive.permissions.insert request, exactly one of the id or value fields must be specified unless the permission type is anyone, in which case both id and value are ignored.
@@ -3462,7 +3494,7 @@
"openWithLinks": { # A map of the id of each of the user's apps to a link to open this file with that app. Only populated when the drive.apps.readonly scope is used.
"a_key": "A String",
},
- "canReadRevisions": True or False, # Whether the current user has read access to the Revisions resource of the file. Deprecated: use capabilities/canReadRevisions.
+ "canReadRevisions": True or False, # Deprecated: use capabilities/canReadRevisions.
"imageMediaMetadata": { # Metadata about image media. This will only be present for image types, and its contents will depend on what can be parsed from the image content.
"exposureBias": 3.14, # The exposure bias of the photo (APEX value).
"exposureTime": 3.14, # The length of the exposure, in seconds.
@@ -3497,9 +3529,9 @@
"durationMillis": "A String", # The duration of the video in milliseconds.
"height": 42, # The height of the video in pixels.
},
- "editable": True or False, # Whether the file can be edited by the current user. Deprecated: use capabilities/canEdit.
+ "editable": True or False, # Deprecated: use capabilities/canEdit.
"kind": "drive#file", # The type of file. This is always drive#file.
- "canComment": True or False, # Whether the current user can comment on the file. Deprecated: use capabilities/canComment.
+ "canComment": True or False, # Deprecated: use capabilities/canComment.
"quotaBytesUsed": "A String", # The number of quota bytes used by this file.
"fileSize": "A String", # The size of the file in bytes. This field is only populated for files with content stored in Drive; it is not populated for Google Docs or shortcut files.
"createdDate": "A String", # Create time for this file (formatted RFC 3339 timestamp).
@@ -3535,7 +3567,7 @@
"withLink": True or False, # Whether the link is required for this permission.
"domain": "A String", # The domain name of the entity this permission refers to. This is an output-only field which is present when the permission type is user, group or domain.
"name": "A String", # The name for this permission.
- "teamDrivePermissionDetails": [ # Details of whether the Permissions on this Team Drive item are inherited or directly on this item. This is an output-only field which is present only for Team Drive items.
+ "teamDrivePermissionDetails": [ # Details of whether the permissions on this Team Drive item are inherited or directly on this item. This is an output-only field which is present only for Team Drive items.
{
"inheritedFrom": "A String", # The ID of the item from which this permission is inherited. This is an output-only field and is only populated for members of the Team Drive.
"role": "A String", # The primary role for this user. While new values may be added in the future, the following are currently possible:
@@ -3551,6 +3583,7 @@
"inherited": True or False, # Whether this permission is inherited. This field is always populated. This is an output-only field.
},
],
+ "deleted": True or False, # Whether the account associated with this permission has been deleted. This field only pertains to user and group permissions.
"kind": "drive#permission", # This is always drive#permission.
"value": "A String", # The email address or domain name for the entity. This is used during inserts and is not populated in responses. When making a drive.permissions.insert request, exactly one of the id or value fields must be specified unless the permission type is anyone, in which case both id and value are ignored.
"id": "A String", # The ID of the user this permission refers to, and identical to the permissionId in the About and Files resources. When making a drive.permissions.insert request, exactly one of the id or value fields must be specified unless the permission type is anyone, in which case both id and value are ignored.
@@ -3581,7 +3614,7 @@
"spaces": [ # The list of spaces which contain the file. Supported values are 'drive', 'appDataFolder' and 'photos'.
"A String",
],
- "shareable": True or False, # Whether the file's sharing settings can be modified by the current user. Deprecated: use capabilities/canShare.
+ "shareable": True or False, # Deprecated: use capabilities/canShare.
"originalFilename": "A String", # The original filename of the uploaded content if available, or else the original value of the title field. This is only available for files with binary content in Drive.
"fileExtension": "A String", # The final component of fullFileExtension with trailing text that does not appear to be part of the extension removed. This field is only populated for files with content stored in Drive; it is not populated for Google Docs or shortcut files.
"hasAugmentedPermissions": True or False, # Whether any users are granted file access directly on this file. This field is only populated for Team Drive files.
@@ -3601,7 +3634,7 @@
The object takes the form of:
{ # The metadata for a file.
- "hasThumbnail": True or False, # Whether this file has a thumbnail.
+ "hasThumbnail": True or False, # 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.
"lastViewedByMeDate": "A String", # Last time this file was viewed by the user (formatted RFC 3339 timestamp).
"trashedDate": "A String", # The time that the item was trashed (formatted RFC 3339 timestamp). Only populated for Team Drive files.
"version": "A String", # 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 requesting user.
@@ -3668,29 +3701,30 @@
"isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
"emailAddress": "A String", # The email address of the user.
},
- "copyable": True or False, # Whether the file can be copied by the current user. Deprecated: use capabilities/canCopy.
+ "copyable": True or False, # Deprecated: use capabilities/canCopy.
"folderColorRgb": "A String", # Folder color as an RGB hex string if the file is a folder. The list of supported colors is available in the folderColorPalette field of the About resource. If an unsupported color is specified, it will be changed to the closest color in the palette. Not populated for Team Drive files.
"markedViewedByMeDate": "A String", # Deprecated.
"ownerNames": [ # Name(s) of the owner(s) of this file. Not populated for Team Drive files.
"A String",
],
- "capabilities": { # Capabilities the current user has on the file. Each capability corresponds to a fine-grained action that a user may take.
- "canReadRevisions": True or False, # Whether the current user has read access to the Revisions resource of the file. For a Team Drive item, whether revisions of non-folder descendants of this item, or this item itself if it is not a folder, can be read.
- "canTrash": True or False, # Whether the file can be trashed by the current user.
- "canCopy": True or False, # Whether the file can be copied by the current user. For a Team Drive item, whether non-folder descendants of this item, or this item itself if it is not a folder, can be copied.
- "canShare": True or False, # Whether the file's sharing settings can be modified by the current user.
- "canDelete": True or False, # Whether the file can be deleted by the current user.
+ "capabilities": { # Capabilities the current user has on this file. Each capability corresponds to a fine-grained action that a user may take.
+ "canReadRevisions": True or False, # Whether the current user can read the revisions resource of this file. For a Team Drive item, whether revisions of non-folder descendants of this item, or this item itself if it is not a folder, can be read.
+ "canTrash": True or False, # Whether the current user can move this file to trash.
+ "canCopy": True or False, # Whether the current user can copy this file. For a Team Drive item, whether the current user can copy non-folder descendants of this item, or this item itself if it is not a folder.
+ "canShare": True or False, # Whether the current user can modify the sharing settings for this file.
+ "canDelete": True or False, # Whether the current user can delete this file.
"canMoveTeamDriveItem": True or False, # Whether the current user can move this Team Drive item by changing its parent. Note that a request to change the parent for this item may still fail depending on the new parent that is being added. Only populated for Team Drive files.
- "canRename": True or False, # Whether the file can be renamed by the current user.
+ "canRename": True or False, # Whether the current user can rename this file.
"canListChildren": True or False, # Whether the current user can list the children of this folder. This is always false when the item is not a folder.
+ "canChangeRestrictedDownload": True or False, # Whether the current user can change the restricted download label of this file.
"canMoveItemIntoTeamDrive": True or False, # Whether the current user can move this item into a Team Drive. If the item is in a Team Drive, this field is equivalent to canMoveTeamDriveItem.
- "canDownload": True or False, # Whether the file can be downloaded by the current user.
- "canComment": True or False, # Whether the current user can comment on the file.
+ "canDownload": True or False, # Whether the current user can download this file.
+ "canComment": True or False, # Whether the current user can comment on this file.
"canRemoveChildren": True or False, # Whether the current user can remove children from this folder. This is always false when the item is not a folder.
- "canReadTeamDrive": True or False, # Whether the current user has read access to the Team Drive to which this file belongs. Only populated for Team Drive files.
+ "canReadTeamDrive": True or False, # Whether the current user can read the Team Drive to which this file belongs. Only populated for Team Drive files.
"canAddChildren": True or False, # Whether the current user can add children to this folder. This is always false when the item is not a folder.
- "canEdit": True or False, # Whether the file can be edited by the current user.
- "canUntrash": True or False, # Whether the file can be restored from the trash by the current user.
+ "canEdit": True or False, # Whether the current user can edit this file.
+ "canUntrash": True or False, # Whether the current user can restore this file from trash.
},
"sharedWithMeDate": "A String", # Time at which this file was shared with the user (formatted RFC 3339 timestamp).
"webViewLink": "A String", # A link only available on public folders for viewing their static web assets (HTML, CSS, JS, etc) via Google Drive's Website Hosting.
@@ -3714,7 +3748,7 @@
"withLink": True or False, # Whether the link is required for this permission.
"domain": "A String", # The domain name of the entity this permission refers to. This is an output-only field which is present when the permission type is user, group or domain.
"name": "A String", # The name for this permission.
- "teamDrivePermissionDetails": [ # Details of whether the Permissions on this Team Drive item are inherited or directly on this item. This is an output-only field which is present only for Team Drive items.
+ "teamDrivePermissionDetails": [ # Details of whether the permissions on this Team Drive item are inherited or directly on this item. This is an output-only field which is present only for Team Drive items.
{
"inheritedFrom": "A String", # The ID of the item from which this permission is inherited. This is an output-only field and is only populated for members of the Team Drive.
"role": "A String", # The primary role for this user. While new values may be added in the future, the following are currently possible:
@@ -3730,6 +3764,7 @@
"inherited": True or False, # Whether this permission is inherited. This field is always populated. This is an output-only field.
},
],
+ "deleted": True or False, # Whether the account associated with this permission has been deleted. This field only pertains to user and group permissions.
"kind": "drive#permission", # This is always drive#permission.
"value": "A String", # The email address or domain name for the entity. This is used during inserts and is not populated in responses. When making a drive.permissions.insert request, exactly one of the id or value fields must be specified unless the permission type is anyone, in which case both id and value are ignored.
"id": "A String", # The ID of the user this permission refers to, and identical to the permissionId in the About and Files resources. When making a drive.permissions.insert request, exactly one of the id or value fields must be specified unless the permission type is anyone, in which case both id and value are ignored.
@@ -3762,7 +3797,7 @@
"openWithLinks": { # A map of the id of each of the user's apps to a link to open this file with that app. Only populated when the drive.apps.readonly scope is used.
"a_key": "A String",
},
- "canReadRevisions": True or False, # Whether the current user has read access to the Revisions resource of the file. Deprecated: use capabilities/canReadRevisions.
+ "canReadRevisions": True or False, # Deprecated: use capabilities/canReadRevisions.
"imageMediaMetadata": { # Metadata about image media. This will only be present for image types, and its contents will depend on what can be parsed from the image content.
"exposureBias": 3.14, # The exposure bias of the photo (APEX value).
"exposureTime": 3.14, # The length of the exposure, in seconds.
@@ -3797,9 +3832,9 @@
"durationMillis": "A String", # The duration of the video in milliseconds.
"height": 42, # The height of the video in pixels.
},
- "editable": True or False, # Whether the file can be edited by the current user. Deprecated: use capabilities/canEdit.
+ "editable": True or False, # Deprecated: use capabilities/canEdit.
"kind": "drive#file", # The type of file. This is always drive#file.
- "canComment": True or False, # Whether the current user can comment on the file. Deprecated: use capabilities/canComment.
+ "canComment": True or False, # Deprecated: use capabilities/canComment.
"quotaBytesUsed": "A String", # The number of quota bytes used by this file.
"fileSize": "A String", # The size of the file in bytes. This field is only populated for files with content stored in Drive; it is not populated for Google Docs or shortcut files.
"createdDate": "A String", # Create time for this file (formatted RFC 3339 timestamp).
@@ -3835,7 +3870,7 @@
"withLink": True or False, # Whether the link is required for this permission.
"domain": "A String", # The domain name of the entity this permission refers to. This is an output-only field which is present when the permission type is user, group or domain.
"name": "A String", # The name for this permission.
- "teamDrivePermissionDetails": [ # Details of whether the Permissions on this Team Drive item are inherited or directly on this item. This is an output-only field which is present only for Team Drive items.
+ "teamDrivePermissionDetails": [ # Details of whether the permissions on this Team Drive item are inherited or directly on this item. This is an output-only field which is present only for Team Drive items.
{
"inheritedFrom": "A String", # The ID of the item from which this permission is inherited. This is an output-only field and is only populated for members of the Team Drive.
"role": "A String", # The primary role for this user. While new values may be added in the future, the following are currently possible:
@@ -3851,6 +3886,7 @@
"inherited": True or False, # Whether this permission is inherited. This field is always populated. This is an output-only field.
},
],
+ "deleted": True or False, # Whether the account associated with this permission has been deleted. This field only pertains to user and group permissions.
"kind": "drive#permission", # This is always drive#permission.
"value": "A String", # The email address or domain name for the entity. This is used during inserts and is not populated in responses. When making a drive.permissions.insert request, exactly one of the id or value fields must be specified unless the permission type is anyone, in which case both id and value are ignored.
"id": "A String", # The ID of the user this permission refers to, and identical to the permissionId in the About and Files resources. When making a drive.permissions.insert request, exactly one of the id or value fields must be specified unless the permission type is anyone, in which case both id and value are ignored.
@@ -3881,7 +3917,7 @@
"spaces": [ # The list of spaces which contain the file. Supported values are 'drive', 'appDataFolder' and 'photos'.
"A String",
],
- "shareable": True or False, # Whether the file's sharing settings can be modified by the current user. Deprecated: use capabilities/canShare.
+ "shareable": True or False, # Deprecated: use capabilities/canShare.
"originalFilename": "A String", # The original filename of the uploaded content if available, or else the original value of the title field. This is only available for files with binary content in Drive.
"fileExtension": "A String", # The final component of fullFileExtension with trailing text that does not appear to be part of the extension removed. This field is only populated for files with content stored in Drive; it is not populated for Google Docs or shortcut files.
"hasAugmentedPermissions": True or False, # Whether any users are granted file access directly on this file. This field is only populated for Team Drive files.
@@ -3918,7 +3954,7 @@
An object of the form:
{ # The metadata for a file.
- "hasThumbnail": True or False, # Whether this file has a thumbnail.
+ "hasThumbnail": True or False, # 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.
"lastViewedByMeDate": "A String", # Last time this file was viewed by the user (formatted RFC 3339 timestamp).
"trashedDate": "A String", # The time that the item was trashed (formatted RFC 3339 timestamp). Only populated for Team Drive files.
"version": "A String", # 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 requesting user.
@@ -3985,29 +4021,30 @@
"isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
"emailAddress": "A String", # The email address of the user.
},
- "copyable": True or False, # Whether the file can be copied by the current user. Deprecated: use capabilities/canCopy.
+ "copyable": True or False, # Deprecated: use capabilities/canCopy.
"folderColorRgb": "A String", # Folder color as an RGB hex string if the file is a folder. The list of supported colors is available in the folderColorPalette field of the About resource. If an unsupported color is specified, it will be changed to the closest color in the palette. Not populated for Team Drive files.
"markedViewedByMeDate": "A String", # Deprecated.
"ownerNames": [ # Name(s) of the owner(s) of this file. Not populated for Team Drive files.
"A String",
],
- "capabilities": { # Capabilities the current user has on the file. Each capability corresponds to a fine-grained action that a user may take.
- "canReadRevisions": True or False, # Whether the current user has read access to the Revisions resource of the file. For a Team Drive item, whether revisions of non-folder descendants of this item, or this item itself if it is not a folder, can be read.
- "canTrash": True or False, # Whether the file can be trashed by the current user.
- "canCopy": True or False, # Whether the file can be copied by the current user. For a Team Drive item, whether non-folder descendants of this item, or this item itself if it is not a folder, can be copied.
- "canShare": True or False, # Whether the file's sharing settings can be modified by the current user.
- "canDelete": True or False, # Whether the file can be deleted by the current user.
+ "capabilities": { # Capabilities the current user has on this file. Each capability corresponds to a fine-grained action that a user may take.
+ "canReadRevisions": True or False, # Whether the current user can read the revisions resource of this file. For a Team Drive item, whether revisions of non-folder descendants of this item, or this item itself if it is not a folder, can be read.
+ "canTrash": True or False, # Whether the current user can move this file to trash.
+ "canCopy": True or False, # Whether the current user can copy this file. For a Team Drive item, whether the current user can copy non-folder descendants of this item, or this item itself if it is not a folder.
+ "canShare": True or False, # Whether the current user can modify the sharing settings for this file.
+ "canDelete": True or False, # Whether the current user can delete this file.
"canMoveTeamDriveItem": True or False, # Whether the current user can move this Team Drive item by changing its parent. Note that a request to change the parent for this item may still fail depending on the new parent that is being added. Only populated for Team Drive files.
- "canRename": True or False, # Whether the file can be renamed by the current user.
+ "canRename": True or False, # Whether the current user can rename this file.
"canListChildren": True or False, # Whether the current user can list the children of this folder. This is always false when the item is not a folder.
+ "canChangeRestrictedDownload": True or False, # Whether the current user can change the restricted download label of this file.
"canMoveItemIntoTeamDrive": True or False, # Whether the current user can move this item into a Team Drive. If the item is in a Team Drive, this field is equivalent to canMoveTeamDriveItem.
- "canDownload": True or False, # Whether the file can be downloaded by the current user.
- "canComment": True or False, # Whether the current user can comment on the file.
+ "canDownload": True or False, # Whether the current user can download this file.
+ "canComment": True or False, # Whether the current user can comment on this file.
"canRemoveChildren": True or False, # Whether the current user can remove children from this folder. This is always false when the item is not a folder.
- "canReadTeamDrive": True or False, # Whether the current user has read access to the Team Drive to which this file belongs. Only populated for Team Drive files.
+ "canReadTeamDrive": True or False, # Whether the current user can read the Team Drive to which this file belongs. Only populated for Team Drive files.
"canAddChildren": True or False, # Whether the current user can add children to this folder. This is always false when the item is not a folder.
- "canEdit": True or False, # Whether the file can be edited by the current user.
- "canUntrash": True or False, # Whether the file can be restored from the trash by the current user.
+ "canEdit": True or False, # Whether the current user can edit this file.
+ "canUntrash": True or False, # Whether the current user can restore this file from trash.
},
"sharedWithMeDate": "A String", # Time at which this file was shared with the user (formatted RFC 3339 timestamp).
"webViewLink": "A String", # A link only available on public folders for viewing their static web assets (HTML, CSS, JS, etc) via Google Drive's Website Hosting.
@@ -4031,7 +4068,7 @@
"withLink": True or False, # Whether the link is required for this permission.
"domain": "A String", # The domain name of the entity this permission refers to. This is an output-only field which is present when the permission type is user, group or domain.
"name": "A String", # The name for this permission.
- "teamDrivePermissionDetails": [ # Details of whether the Permissions on this Team Drive item are inherited or directly on this item. This is an output-only field which is present only for Team Drive items.
+ "teamDrivePermissionDetails": [ # Details of whether the permissions on this Team Drive item are inherited or directly on this item. This is an output-only field which is present only for Team Drive items.
{
"inheritedFrom": "A String", # The ID of the item from which this permission is inherited. This is an output-only field and is only populated for members of the Team Drive.
"role": "A String", # The primary role for this user. While new values may be added in the future, the following are currently possible:
@@ -4047,6 +4084,7 @@
"inherited": True or False, # Whether this permission is inherited. This field is always populated. This is an output-only field.
},
],
+ "deleted": True or False, # Whether the account associated with this permission has been deleted. This field only pertains to user and group permissions.
"kind": "drive#permission", # This is always drive#permission.
"value": "A String", # The email address or domain name for the entity. This is used during inserts and is not populated in responses. When making a drive.permissions.insert request, exactly one of the id or value fields must be specified unless the permission type is anyone, in which case both id and value are ignored.
"id": "A String", # The ID of the user this permission refers to, and identical to the permissionId in the About and Files resources. When making a drive.permissions.insert request, exactly one of the id or value fields must be specified unless the permission type is anyone, in which case both id and value are ignored.
@@ -4079,7 +4117,7 @@
"openWithLinks": { # A map of the id of each of the user's apps to a link to open this file with that app. Only populated when the drive.apps.readonly scope is used.
"a_key": "A String",
},
- "canReadRevisions": True or False, # Whether the current user has read access to the Revisions resource of the file. Deprecated: use capabilities/canReadRevisions.
+ "canReadRevisions": True or False, # Deprecated: use capabilities/canReadRevisions.
"imageMediaMetadata": { # Metadata about image media. This will only be present for image types, and its contents will depend on what can be parsed from the image content.
"exposureBias": 3.14, # The exposure bias of the photo (APEX value).
"exposureTime": 3.14, # The length of the exposure, in seconds.
@@ -4114,9 +4152,9 @@
"durationMillis": "A String", # The duration of the video in milliseconds.
"height": 42, # The height of the video in pixels.
},
- "editable": True or False, # Whether the file can be edited by the current user. Deprecated: use capabilities/canEdit.
+ "editable": True or False, # Deprecated: use capabilities/canEdit.
"kind": "drive#file", # The type of file. This is always drive#file.
- "canComment": True or False, # Whether the current user can comment on the file. Deprecated: use capabilities/canComment.
+ "canComment": True or False, # Deprecated: use capabilities/canComment.
"quotaBytesUsed": "A String", # The number of quota bytes used by this file.
"fileSize": "A String", # The size of the file in bytes. This field is only populated for files with content stored in Drive; it is not populated for Google Docs or shortcut files.
"createdDate": "A String", # Create time for this file (formatted RFC 3339 timestamp).
@@ -4152,7 +4190,7 @@
"withLink": True or False, # Whether the link is required for this permission.
"domain": "A String", # The domain name of the entity this permission refers to. This is an output-only field which is present when the permission type is user, group or domain.
"name": "A String", # The name for this permission.
- "teamDrivePermissionDetails": [ # Details of whether the Permissions on this Team Drive item are inherited or directly on this item. This is an output-only field which is present only for Team Drive items.
+ "teamDrivePermissionDetails": [ # Details of whether the permissions on this Team Drive item are inherited or directly on this item. This is an output-only field which is present only for Team Drive items.
{
"inheritedFrom": "A String", # The ID of the item from which this permission is inherited. This is an output-only field and is only populated for members of the Team Drive.
"role": "A String", # The primary role for this user. While new values may be added in the future, the following are currently possible:
@@ -4168,6 +4206,7 @@
"inherited": True or False, # Whether this permission is inherited. This field is always populated. This is an output-only field.
},
],
+ "deleted": True or False, # Whether the account associated with this permission has been deleted. This field only pertains to user and group permissions.
"kind": "drive#permission", # This is always drive#permission.
"value": "A String", # The email address or domain name for the entity. This is used during inserts and is not populated in responses. When making a drive.permissions.insert request, exactly one of the id or value fields must be specified unless the permission type is anyone, in which case both id and value are ignored.
"id": "A String", # The ID of the user this permission refers to, and identical to the permissionId in the About and Files resources. When making a drive.permissions.insert request, exactly one of the id or value fields must be specified unless the permission type is anyone, in which case both id and value are ignored.
@@ -4198,7 +4237,7 @@
"spaces": [ # The list of spaces which contain the file. Supported values are 'drive', 'appDataFolder' and 'photos'.
"A String",
],
- "shareable": True or False, # Whether the file's sharing settings can be modified by the current user. Deprecated: use capabilities/canShare.
+ "shareable": True or False, # Deprecated: use capabilities/canShare.
"originalFilename": "A String", # The original filename of the uploaded content if available, or else the original value of the title field. This is only available for files with binary content in Drive.
"fileExtension": "A String", # The final component of fullFileExtension with trailing text that does not appear to be part of the extension removed. This field is only populated for files with content stored in Drive; it is not populated for Google Docs or shortcut files.
"hasAugmentedPermissions": True or False, # Whether any users are granted file access directly on this file. This field is only populated for Team Drive files.