blob: 96fcd7ef3f4c4f13dd6526df992edaed5dcd0a5e [file] [log] [blame]
John Asmuth614db982014-04-24 15:46:26 -04001<html><body>
2<style>
3
4body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13}
14
15body {
16 font-size: 13px;
17 padding: 1em;
18}
19
20h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23}
24
25h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28}
29
30h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34}
35
36pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42 margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46 font-family: Arial, sans serif;
47}
48
49h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51}
52
53.toc_element {
54 margin-top: 0.5em;
55}
56
57.firstline {
58 margin-left: 2 em;
59}
60
61.method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66}
67
68.details {
69 font-weight: bold;
70 font-size: 14px;
71}
72
73</style>
74
75<h1><a href="drive_v2.html">Drive API</a> . <a href="drive_v2.changes.html">changes</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070078 <code><a href="#close">close()</a></code></p>
79<p class="firstline">Close httplib2 connections.</p>
80<p class="toc_element">
Bu Sun Kim65020912020-05-20 12:08:20 -070081 <code><a href="#get">get(changeId, driveId=None, supportsAllDrives=None, supportsTeamDrives=None, teamDriveId=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070082<p class="firstline">Deprecated - Use changes.getStartPageToken and changes.list to retrieve recent changes.</p>
John Asmuth614db982014-04-24 15:46:26 -040083<p class="toc_element">
Bu Sun Kim65020912020-05-20 12:08:20 -070084 <code><a href="#getStartPageToken">getStartPageToken(driveId=None, supportsAllDrives=None, supportsTeamDrives=None, teamDriveId=None)</a></code></p>
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -040085<p class="firstline">Gets the starting pageToken for listing future changes.</p>
86<p class="toc_element">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070087 <code><a href="#list">list(driveId=None, includeCorpusRemovals=None, includeDeleted=None, includeItemsFromAllDrives=None, includePermissionsForView=None, includeSubscribed=None, includeTeamDriveItems=None, maxResults=None, pageToken=None, spaces=None, startChangeId=None, supportsAllDrives=None, supportsTeamDrives=None, teamDriveId=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070088<p class="firstline">Lists the changes for a user or shared drive.</p>
John Asmuth614db982014-04-24 15:46:26 -040089<p class="toc_element">
90 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
91<p class="firstline">Retrieves the next page of results.</p>
92<p class="toc_element">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070093 <code><a href="#watch">watch(body=None, driveId=None, includeCorpusRemovals=None, includeDeleted=None, includeItemsFromAllDrives=None, includePermissionsForView=None, includeSubscribed=None, includeTeamDriveItems=None, maxResults=None, pageToken=None, spaces=None, startChangeId=None, supportsAllDrives=None, supportsTeamDrives=None, teamDriveId=None)</a></code></p>
John Asmuth614db982014-04-24 15:46:26 -040094<p class="firstline">Subscribe to changes for a user.</p>
95<h3>Method Details</h3>
96<div class="method">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070097 <code class="details" id="close">close()</code>
98 <pre>Close httplib2 connections.</pre>
99</div>
100
101<div class="method">
Bu Sun Kim65020912020-05-20 12:08:20 -0700102 <code class="details" id="get">get(changeId, driveId=None, supportsAllDrives=None, supportsTeamDrives=None, teamDriveId=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700103 <pre>Deprecated - Use changes.getStartPageToken and changes.list to retrieve recent changes.
John Asmuth614db982014-04-24 15:46:26 -0400104
105Args:
106 changeId: string, The ID of the change. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700107 driveId: string, The shared drive from which the change is returned.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700108 supportsAllDrives: boolean, Whether the requesting application supports both My Drives and shared drives.
Bu Sun Kim65020912020-05-20 12:08:20 -0700109 supportsTeamDrives: boolean, Deprecated use supportsAllDrives instead.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700110 teamDriveId: string, Deprecated use driveId instead.
John Asmuth614db982014-04-24 15:46:26 -0400111
112Returns:
113 An object of the form:
114
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700115 { # Representation of a change to a file or shared drive.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800116 &quot;changeType&quot;: &quot;A String&quot;, # The type of the change. Possible values are file and drive.
117 &quot;deleted&quot;: True or False, # Whether the file or shared drive has been removed from this list of changes, for example by deletion or loss of access.
118 &quot;drive&quot;: { # Representation of a shared drive. # The updated state of the shared drive. Present if the changeType is drive, the user is still a member of the shared drive, and the shared drive has not been deleted.
119 &quot;backgroundImageFile&quot;: { # An image file and cropping parameters from which a background image for this shared drive is set. This is a write only field; it can only be set on drive.drives.update requests that don&#x27;t set themeId. When specified, all fields of the backgroundImageFile must be set.
120 &quot;id&quot;: &quot;A String&quot;, # The ID of an image file in Google Drive to use for the background image.
121 &quot;width&quot;: 3.14, # The width of the cropped image in the closed range of 0 to 1. This value represents the width of the cropped image divided by the width of the entire image. The height is computed by applying a width to height aspect ratio of 80 to 9. The resulting image must be at least 1280 pixels wide and 144 pixels high.
122 &quot;xCoordinate&quot;: 3.14, # The X coordinate of the upper left corner of the cropping area in the background image. This is a value in the closed range of 0 to 1. This value represents the horizontal distance from the left side of the entire image to the left side of the cropping area divided by the width of the entire image.
123 &quot;yCoordinate&quot;: 3.14, # The Y coordinate of the upper left corner of the cropping area in the background image. This is a value in the closed range of 0 to 1. This value represents the vertical distance from the top side of the entire image to the top side of the cropping area divided by the height of the entire image.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400124 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800125 &quot;backgroundImageLink&quot;: &quot;A String&quot;, # A short-lived link to this shared drive&#x27;s background image.
126 &quot;capabilities&quot;: { # Capabilities the current user has on this shared drive.
127 &quot;canAddChildren&quot;: True or False, # Whether the current user can add children to folders in this shared drive.
128 &quot;canChangeCopyRequiresWriterPermissionRestriction&quot;: True or False, # Whether the current user can change the copyRequiresWriterPermission restriction of this shared drive.
129 &quot;canChangeDomainUsersOnlyRestriction&quot;: True or False, # Whether the current user can change the domainUsersOnly restriction of this shared drive.
130 &quot;canChangeDriveBackground&quot;: True or False, # Whether the current user can change the background of this shared drive.
131 &quot;canChangeDriveMembersOnlyRestriction&quot;: True or False, # Whether the current user can change the driveMembersOnly restriction of this shared drive.
132 &quot;canComment&quot;: True or False, # Whether the current user can comment on files in this shared drive.
133 &quot;canCopy&quot;: True or False, # Whether the current user can copy files in this shared drive.
134 &quot;canDeleteChildren&quot;: True or False, # Whether the current user can delete children from folders in this shared drive.
135 &quot;canDeleteDrive&quot;: True or False, # Whether the current user can delete this shared drive. Attempting to delete the shared drive may still fail if there are untrashed items inside the shared drive.
136 &quot;canDownload&quot;: True or False, # Whether the current user can download files in this shared drive.
137 &quot;canEdit&quot;: True or False, # Whether the current user can edit files in this shared drive
138 &quot;canListChildren&quot;: True or False, # Whether the current user can list the children of folders in this shared drive.
139 &quot;canManageMembers&quot;: True or False, # Whether the current user can add members to this shared drive or remove them or change their role.
140 &quot;canReadRevisions&quot;: True or False, # Whether the current user can read the revisions resource of files in this shared drive.
141 &quot;canRename&quot;: True or False, # Whether the current user can rename files or folders in this shared drive.
142 &quot;canRenameDrive&quot;: True or False, # Whether the current user can rename this shared drive.
143 &quot;canShare&quot;: True or False, # Whether the current user can share files or folders in this shared drive.
144 &quot;canTrashChildren&quot;: True or False, # Whether the current user can trash children from folders in this shared drive.
145 },
146 &quot;colorRgb&quot;: &quot;A String&quot;, # The color of this shared drive as an RGB hex string. It can only be set on a drive.drives.update request that does not set themeId.
147 &quot;createdDate&quot;: &quot;A String&quot;, # The time at which the shared drive was created (RFC 3339 date-time).
148 &quot;hidden&quot;: True or False, # Whether the shared drive is hidden from default view.
149 &quot;id&quot;: &quot;A String&quot;, # The ID of this shared drive which is also the ID of the top level folder of this shared drive.
150 &quot;kind&quot;: &quot;drive#drive&quot;, # This is always drive#drive
151 &quot;name&quot;: &quot;A String&quot;, # The name of this shared drive.
152 &quot;restrictions&quot;: { # A set of restrictions that apply to this shared drive or items inside this shared drive.
153 &quot;adminManagedRestrictions&quot;: True or False, # Whether administrative privileges on this shared drive are required to modify restrictions.
154 &quot;copyRequiresWriterPermission&quot;: True or False, # Whether the options to copy, print, or download files inside this shared drive, should be disabled for readers and commenters. When this restriction is set to true, it will override the similarly named field to true for any file inside this shared drive.
155 &quot;domainUsersOnly&quot;: True or False, # Whether access to this shared drive and items inside this shared drive is restricted to users of the domain to which this shared drive belongs. This restriction may be overridden by other sharing policies controlled outside of this shared drive.
156 &quot;driveMembersOnly&quot;: True or False, # Whether access to items inside this shared drive is restricted to its members.
157 },
158 &quot;themeId&quot;: &quot;A String&quot;, # The ID of the theme from which the background image and color will be set. The set of possible driveThemes can be retrieved from a drive.about.get response. When not specified on a drive.drives.insert request, a random theme is chosen from which the background image and color are set. This is a write-only field; it can only be set on requests that don&#x27;t set colorRgb or backgroundImageFile.
159 },
160 &quot;driveId&quot;: &quot;A String&quot;, # The ID of the shared drive associated with this change.
161 &quot;file&quot;: { # The metadata for a file. # The updated state of the file. Present if the type is file and the file has not been removed from this list of changes.
162 &quot;alternateLink&quot;: &quot;A String&quot;, # A link for opening the file in a relevant Google editor or viewer.
163 &quot;appDataContents&quot;: True or False, # Whether this file is in the Application Data folder.
164 &quot;canComment&quot;: True or False, # Deprecated: use capabilities/canComment.
165 &quot;canReadRevisions&quot;: True or False, # Deprecated: use capabilities/canReadRevisions.
166 &quot;capabilities&quot;: { # Capabilities the current user has on this file. Each capability corresponds to a fine-grained action that a user may take.
167 &quot;canAddChildren&quot;: True or False, # Whether the current user can add children to this folder. This is always false when the item is not a folder.
168 &quot;canAddFolderFromAnotherDrive&quot;: True or False, # Whether the current user can add a folder from another drive (different shared drive or My Drive) to this folder. This is false when the item is not a folder. Only populated for items in shared drives.
169 &quot;canAddMyDriveParent&quot;: True or False, # Whether the current user can add a parent for the item without removing an existing parent in the same request. Not populated for shared drive files.
170 &quot;canChangeCopyRequiresWriterPermission&quot;: True or False, # Whether the current user can change the copyRequiresWriterPermission restriction of this file.
171 &quot;canChangeRestrictedDownload&quot;: True or False, # Deprecated
172 &quot;canComment&quot;: True or False, # Whether the current user can comment on this file.
173 &quot;canCopy&quot;: True or False, # Whether the current user can copy this file. For an item in a shared drive, whether the current user can copy non-folder descendants of this item, or this item itself if it is not a folder.
174 &quot;canDelete&quot;: True or False, # Whether the current user can delete this file.
175 &quot;canDeleteChildren&quot;: True or False, # Whether the current user can delete children of this folder. This is false when the item is not a folder. Only populated for items in shared drives.
176 &quot;canDownload&quot;: True or False, # Whether the current user can download this file.
177 &quot;canEdit&quot;: True or False, # Whether the current user can edit this file. Other factors may limit the type of changes a user can make to a file. For example, see canChangeCopyRequiresWriterPermission or canModifyContent.
178 &quot;canListChildren&quot;: 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.
179 &quot;canModifyContent&quot;: True or False, # Whether the current user can modify the content of this file.
180 &quot;canModifyContentRestriction&quot;: True or False, # Whether the current user can modify restrictions on content of this file.
181 &quot;canMoveChildrenOutOfDrive&quot;: True or False, # Whether the current user can move children of this folder outside of the shared drive. This is false when the item is not a folder. Only populated for items in shared drives.
182 &quot;canMoveChildrenOutOfTeamDrive&quot;: True or False, # Deprecated - use canMoveChildrenOutOfDrive instead.
183 &quot;canMoveChildrenWithinDrive&quot;: True or False, # Whether the current user can move children of this folder within this drive. This is false when the item is not a folder. Note that a request to move the child may still fail depending on the current user&#x27;s access to the child and to the destination folder.
184 &quot;canMoveChildrenWithinTeamDrive&quot;: True or False, # Deprecated - use canMoveChildrenWithinDrive instead.
185 &quot;canMoveItemIntoTeamDrive&quot;: True or False, # Deprecated - use canMoveItemOutOfDrive instead.
186 &quot;canMoveItemOutOfDrive&quot;: True or False, # Whether the current user can move this item outside of this drive by changing its parent. Note that a request to change the parent of the item may still fail depending on the new parent that is being added.
187 &quot;canMoveItemOutOfTeamDrive&quot;: True or False, # Deprecated - use canMoveItemOutOfDrive instead.
188 &quot;canMoveItemWithinDrive&quot;: True or False, # Whether the current user can move this item within this drive. Note that a request to change the parent of the item may still fail depending on the new parent that is being added and the parent that is being removed.
189 &quot;canMoveItemWithinTeamDrive&quot;: True or False, # Deprecated - use canMoveItemWithinDrive instead.
190 &quot;canMoveTeamDriveItem&quot;: True or False, # Deprecated - use canMoveItemWithinDrive or canMoveItemOutOfDrive instead.
191 &quot;canReadDrive&quot;: True or False, # Whether the current user can read the shared drive to which this file belongs. Only populated for items in shared drives.
192 &quot;canReadRevisions&quot;: True or False, # Whether the current user can read the revisions resource of this file. For a shared drive item, whether revisions of non-folder descendants of this item, or this item itself if it is not a folder, can be read.
193 &quot;canReadTeamDrive&quot;: True or False, # Deprecated - use canReadDrive instead.
194 &quot;canRemoveChildren&quot;: True or False, # Whether the current user can remove children from this folder. This is always false when the item is not a folder. For a folder in a shared drive, use canDeleteChildren or canTrashChildren instead.
195 &quot;canRemoveMyDriveParent&quot;: True or False, # Whether the current user can remove a parent from the item without adding another parent in the same request. Not populated for shared drive files.
196 &quot;canRename&quot;: True or False, # Whether the current user can rename this file.
197 &quot;canShare&quot;: True or False, # Whether the current user can modify the sharing settings for this file.
198 &quot;canTrash&quot;: True or False, # Whether the current user can move this file to trash.
199 &quot;canTrashChildren&quot;: True or False, # Whether the current user can trash children of this folder. This is false when the item is not a folder. Only populated for items in shared drives.
200 &quot;canUntrash&quot;: True or False, # Whether the current user can restore this file from trash.
201 },
202 &quot;contentRestrictions&quot;: [ # Restrictions for accessing the content of the file. Only populated if such a restriction exists.
203 { # A restriction for accessing the content of the file.
204 &quot;readOnly&quot;: True or False, # Whether the content of the file is read-only. If a file is read-only, a new revision of the file may not be added, comments may not be added or modified, and the title of the file may not be modified.
205 &quot;reason&quot;: &quot;A String&quot;, # Reason for why the content of the file is restricted. This is only mutable on requests that also set readOnly=true.
206 &quot;restrictingUser&quot;: { # Information about a Drive user. # The user who set the content restriction. Only populated if readOnly is true.
Bu Sun Kim65020912020-05-20 12:08:20 -0700207 &quot;displayName&quot;: &quot;A String&quot;, # A plain text displayable name for this user.
208 &quot;emailAddress&quot;: &quot;A String&quot;, # The email address of the user.
209 &quot;isAuthenticatedUser&quot;: True or False, # Whether this user is the same as the authenticated user for whom the request was made.
210 &quot;kind&quot;: &quot;drive#user&quot;, # This is always drive#user.
211 &quot;permissionId&quot;: &quot;A String&quot;, # The user&#x27;s ID as visible in the permissions collection.
212 &quot;picture&quot;: { # The user&#x27;s profile picture.
213 &quot;url&quot;: &quot;A String&quot;, # A URL that points to a profile picture of this user.
John Asmuth614db982014-04-24 15:46:26 -0400214 },
John Asmuth614db982014-04-24 15:46:26 -0400215 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800216 &quot;restrictionDate&quot;: &quot;A String&quot;, # The time at which the content restriction was set (formatted RFC 3339 timestamp). Only populated if readOnly is true.
217 &quot;type&quot;: &quot;A String&quot;, # The type of the content restriction. Currently the only possible value is globalContentRestriction.
218 },
219 ],
220 &quot;copyRequiresWriterPermission&quot;: True or False, # Whether the options to copy, print, or download this file, should be disabled for readers and commenters.
221 &quot;copyable&quot;: True or False, # Deprecated: use capabilities/canCopy.
222 &quot;createdDate&quot;: &quot;A String&quot;, # Create time for this file (formatted RFC 3339 timestamp).
223 &quot;defaultOpenWithLink&quot;: &quot;A String&quot;, # A link to open this file with the user&#x27;s default app for this file. Only populated when the drive.apps.readonly scope is used.
224 &quot;description&quot;: &quot;A String&quot;, # A short description of the file.
225 &quot;downloadUrl&quot;: &quot;A String&quot;, # Short lived download URL for the file. This field is only populated for files with content stored in Google Drive; it is not populated for Docs Editors or shortcut files.
226 &quot;driveId&quot;: &quot;A String&quot;, # ID of the shared drive the file resides in. Only populated for items in shared drives.
227 &quot;editable&quot;: True or False, # Deprecated: use capabilities/canEdit.
228 &quot;embedLink&quot;: &quot;A String&quot;, # A link for embedding the file.
229 &quot;etag&quot;: &quot;A String&quot;, # ETag of the file.
230 &quot;explicitlyTrashed&quot;: True or False, # Whether this file has been explicitly trashed, as opposed to recursively trashed.
231 &quot;exportLinks&quot;: { # Links for exporting Docs Editors files to specific formats.
232 &quot;a_key&quot;: &quot;A String&quot;, # A mapping from export format to URL
233 },
234 &quot;fileExtension&quot;: &quot;A String&quot;, # 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 Google Drive; it is not populated for Docs Editors or shortcut files.
235 &quot;fileSize&quot;: &quot;A String&quot;, # The size of the file in bytes. This field is populated for files with content stored in Google Drive and for files in Docs Editors; it is not populated for shortcut files.
236 &quot;folderColorRgb&quot;: &quot;A String&quot;, # 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 items in shared drives.
237 &quot;fullFileExtension&quot;: &quot;A String&quot;, # The full file extension; extracted from the title. May contain multiple concatenated extensions, such as &quot;tar.gz&quot;. Removing an extension from the title does not clear this field; however, changing the extension on the title does update this field. This field is only populated for files with content stored in Google Drive; it is not populated for Docs Editors or shortcut files.
238 &quot;hasAugmentedPermissions&quot;: True or False, # Whether there are permissions directly on this file. This field is only populated for items in shared drives.
239 &quot;hasThumbnail&quot;: 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.
240 &quot;headRevisionId&quot;: &quot;A String&quot;, # The ID of the file&#x27;s head revision. This field is only populated for files with content stored in Google Drive; it is not populated for Docs Editors or shortcut files.
241 &quot;iconLink&quot;: &quot;A String&quot;, # A link to the file&#x27;s icon.
242 &quot;id&quot;: &quot;A String&quot;, # The ID of the file.
243 &quot;imageMediaMetadata&quot;: { # 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.
244 &quot;aperture&quot;: 3.14, # The aperture used to create the photo (f-number).
245 &quot;cameraMake&quot;: &quot;A String&quot;, # The make of the camera used to create the photo.
246 &quot;cameraModel&quot;: &quot;A String&quot;, # The model of the camera used to create the photo.
247 &quot;colorSpace&quot;: &quot;A String&quot;, # The color space of the photo.
248 &quot;date&quot;: &quot;A String&quot;, # The date and time the photo was taken (EXIF format timestamp).
249 &quot;exposureBias&quot;: 3.14, # The exposure bias of the photo (APEX value).
250 &quot;exposureMode&quot;: &quot;A String&quot;, # The exposure mode used to create the photo.
251 &quot;exposureTime&quot;: 3.14, # The length of the exposure, in seconds.
252 &quot;flashUsed&quot;: True or False, # Whether a flash was used to create the photo.
253 &quot;focalLength&quot;: 3.14, # The focal length used to create the photo, in millimeters.
254 &quot;height&quot;: 42, # The height of the image in pixels.
255 &quot;isoSpeed&quot;: 42, # The ISO speed used to create the photo.
256 &quot;lens&quot;: &quot;A String&quot;, # The lens used to create the photo.
257 &quot;location&quot;: { # Geographic location information stored in the image.
258 &quot;altitude&quot;: 3.14, # The altitude stored in the image.
259 &quot;latitude&quot;: 3.14, # The latitude stored in the image.
260 &quot;longitude&quot;: 3.14, # The longitude stored in the image.
261 },
262 &quot;maxApertureValue&quot;: 3.14, # The smallest f-number of the lens at the focal length used to create the photo (APEX value).
263 &quot;meteringMode&quot;: &quot;A String&quot;, # The metering mode used to create the photo.
264 &quot;rotation&quot;: 42, # The number of clockwise 90 degree rotations applied from the image&#x27;s original orientation.
265 &quot;sensor&quot;: &quot;A String&quot;, # The type of sensor used to create the photo.
266 &quot;subjectDistance&quot;: 42, # The distance to the subject of the photo, in meters.
267 &quot;whiteBalance&quot;: &quot;A String&quot;, # The white balance mode used to create the photo.
268 &quot;width&quot;: 42, # The width of the image in pixels.
269 },
270 &quot;indexableText&quot;: { # Indexable text attributes for the file (can only be written)
271 &quot;text&quot;: &quot;A String&quot;, # The text to be indexed for this file.
272 },
273 &quot;isAppAuthorized&quot;: True or False, # Whether the file was created or opened by the requesting app.
274 &quot;kind&quot;: &quot;drive#file&quot;, # The type of file. This is always drive#file.
275 &quot;labels&quot;: { # A group of labels for the file.
276 &quot;hidden&quot;: True or False, # Deprecated.
277 &quot;modified&quot;: True or False, # Whether the file has been modified by this user.
278 &quot;restricted&quot;: True or False, # Deprecated - use copyRequiresWriterPermission instead.
279 &quot;starred&quot;: True or False, # Whether this file is starred by the user.
280 &quot;trashed&quot;: True or False, # Whether the file has been trashed, either explicitly or from a trashed parent folder. Only the owner may trash a file. The trashed item is excluded from all files.list responses returned for any user who does not own the file. However, all users with access to the file can see the trashed item metadata in an API response. All users with access can copy, download, export, and share the file.
281 &quot;viewed&quot;: True or False, # Whether this file has been viewed by this user.
282 },
283 &quot;lastModifyingUser&quot;: { # Information about a Drive user. # The last user to modify this file.
284 &quot;displayName&quot;: &quot;A String&quot;, # A plain text displayable name for this user.
285 &quot;emailAddress&quot;: &quot;A String&quot;, # The email address of the user.
286 &quot;isAuthenticatedUser&quot;: True or False, # Whether this user is the same as the authenticated user for whom the request was made.
287 &quot;kind&quot;: &quot;drive#user&quot;, # This is always drive#user.
288 &quot;permissionId&quot;: &quot;A String&quot;, # The user&#x27;s ID as visible in the permissions collection.
289 &quot;picture&quot;: { # The user&#x27;s profile picture.
290 &quot;url&quot;: &quot;A String&quot;, # A URL that points to a profile picture of this user.
291 },
292 },
293 &quot;lastModifyingUserName&quot;: &quot;A String&quot;, # Name of the last user to modify this file.
294 &quot;lastViewedByMeDate&quot;: &quot;A String&quot;, # Last time this file was viewed by the user (formatted RFC 3339 timestamp).
295 &quot;markedViewedByMeDate&quot;: &quot;A String&quot;, # Deprecated.
296 &quot;md5Checksum&quot;: &quot;A String&quot;, # An MD5 checksum for the content of this file. This field is only populated for files with content stored in Google Drive; it is not populated for Docs Editors or shortcut files.
297 &quot;mimeType&quot;: &quot;A String&quot;, # The MIME type of the file. This is only mutable on update when uploading new content. This field can be left blank, and the mimetype will be determined from the uploaded content&#x27;s MIME type.
298 &quot;modifiedByMeDate&quot;: &quot;A String&quot;, # Last time this file was modified by the user (formatted RFC 3339 timestamp). Note that setting modifiedDate will also update the modifiedByMe date for the user which set the date.
299 &quot;modifiedDate&quot;: &quot;A String&quot;, # Last time this file was modified by anyone (formatted RFC 3339 timestamp). This is only mutable on update when the setModifiedDate parameter is set.
300 &quot;openWithLinks&quot;: { # A map of the id of each of the user&#x27;s apps to a link to open this file with that app. Only populated when the drive.apps.readonly scope is used.
301 &quot;a_key&quot;: &quot;A String&quot;,
302 },
303 &quot;originalFilename&quot;: &quot;A String&quot;, # 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 Google Drive.
304 &quot;ownedByMe&quot;: True or False, # Whether the file is owned by the current user. Not populated for items in shared drives.
305 &quot;ownerNames&quot;: [ # Name(s) of the owner(s) of this file. Not populated for items in shared drives.
306 &quot;A String&quot;,
307 ],
308 &quot;owners&quot;: [ # The owner(s) of this file. Not populated for items in shared drives.
309 { # Information about a Drive user.
Bu Sun Kim65020912020-05-20 12:08:20 -0700310 &quot;displayName&quot;: &quot;A String&quot;, # A plain text displayable name for this user.
311 &quot;emailAddress&quot;: &quot;A String&quot;, # The email address of the user.
312 &quot;isAuthenticatedUser&quot;: True or False, # Whether this user is the same as the authenticated user for whom the request was made.
313 &quot;kind&quot;: &quot;drive#user&quot;, # This is always drive#user.
314 &quot;permissionId&quot;: &quot;A String&quot;, # The user&#x27;s ID as visible in the permissions collection.
315 &quot;picture&quot;: { # The user&#x27;s profile picture.
316 &quot;url&quot;: &quot;A String&quot;, # A URL that points to a profile picture of this user.
317 },
Takashi Matsuo06694102015-09-11 13:55:40 -0700318 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800319 ],
320 &quot;parents&quot;: [ # Collection of parent folders which contain this file.
321 # If not specified as part of an insert request, the file will be placed directly in the user&#x27;s My Drive folder. If not specified as part of a copy request, the file will inherit any discoverable parents of the source file. Update requests can also use the addParents and removeParents parameters to modify the parents list.
322 { # A reference to a file&#x27;s parent.
323 &quot;id&quot;: &quot;A String&quot;, # The ID of the parent.
324 &quot;isRoot&quot;: True or False, # Whether or not the parent is the root folder.
325 &quot;kind&quot;: &quot;drive#parentReference&quot;, # This is always drive#parentReference.
326 &quot;parentLink&quot;: &quot;A String&quot;, # A link to the parent.
327 &quot;selfLink&quot;: &quot;A String&quot;, # A link back to this reference.
Bu Sun Kim65020912020-05-20 12:08:20 -0700328 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800329 ],
330 &quot;permissionIds&quot;: [ # List of permission IDs for users with access to this file.
331 &quot;A String&quot;,
332 ],
333 &quot;permissions&quot;: [ # The list of permissions for users with access to this file. Not populated for items in shared drives.
334 { # A permission for a file.
Bu Sun Kim65020912020-05-20 12:08:20 -0700335 &quot;additionalRoles&quot;: [ # Additional roles for this user. Only commenter is currently allowed, though more may be supported in the future.
336 &quot;A String&quot;,
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400337 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700338 &quot;authKey&quot;: &quot;A String&quot;, # Deprecated.
339 &quot;deleted&quot;: True or False, # Whether the account associated with this permission has been deleted. This field only pertains to user and group permissions.
340 &quot;domain&quot;: &quot;A String&quot;, # 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.
341 &quot;emailAddress&quot;: &quot;A String&quot;, # The email address of the user or group this permission refers to. This is an output-only field which is present when the permission type is user or group.
342 &quot;etag&quot;: &quot;A String&quot;, # The ETag of the permission.
343 &quot;expirationDate&quot;: &quot;A String&quot;, # The time at which this permission will expire (RFC 3339 date-time). Expiration dates have the following restrictions:
Dan O'Mearadd494642020-05-01 07:42:23 -0700344 # - They cannot be set on shared drive items
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400345 # - They can only be set on user and group permissions
346 # - The date must be in the future
347 # - The date cannot be more than a year in the future
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700348 # - The date can only be set on drive.permissions.update or drive.permissions.patch requests
Bu Sun Kim65020912020-05-20 12:08:20 -0700349 &quot;id&quot;: &quot;A String&quot;, # 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.
350 &quot;kind&quot;: &quot;drive#permission&quot;, # This is always drive#permission.
351 &quot;name&quot;: &quot;A String&quot;, # The name for this permission.
352 &quot;permissionDetails&quot;: [ # Details of whether the permissions on this shared drive item are inherited or directly on this item. This is an output-only field which is present only for shared drive items.
353 {
354 &quot;additionalRoles&quot;: [ # Additional roles for this user. Only commenter is currently possible, though more may be supported in the future.
355 &quot;A String&quot;,
356 ],
357 &quot;inherited&quot;: True or False, # Whether this permission is inherited. This field is always populated. This is an output-only field.
358 &quot;inheritedFrom&quot;: &quot;A String&quot;, # The ID of the item from which this permission is inherited. This is an output-only field.
359 &quot;permissionType&quot;: &quot;A String&quot;, # The permission type for this user. While new values may be added in future, the following are currently possible:
360 # - file
361 # - member
362 &quot;role&quot;: &quot;A String&quot;, # The primary role for this user. While new values may be added in the future, the following are currently possible:
363 # - organizer
364 # - fileOrganizer
365 # - writer
366 # - reader
367 },
368 ],
369 &quot;photoLink&quot;: &quot;A String&quot;, # A link to the profile photo, if available.
370 &quot;role&quot;: &quot;A String&quot;, # The primary role for this user. While new values may be supported in the future, the following are currently allowed:
John Asmuth614db982014-04-24 15:46:26 -0400371 # - owner
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700372 # - organizer
373 # - fileOrganizer
John Asmuth614db982014-04-24 15:46:26 -0400374 # - writer
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700375 # - reader
Bu Sun Kim65020912020-05-20 12:08:20 -0700376 &quot;selfLink&quot;: &quot;A String&quot;, # A link back to this permission.
377 &quot;teamDrivePermissionDetails&quot;: [ # Deprecated - use permissionDetails instead.
378 {
379 &quot;additionalRoles&quot;: [ # Deprecated - use permissionDetails/additionalRoles instead.
380 &quot;A String&quot;,
381 ],
382 &quot;inherited&quot;: True or False, # Deprecated - use permissionDetails/inherited instead.
383 &quot;inheritedFrom&quot;: &quot;A String&quot;, # Deprecated - use permissionDetails/inheritedFrom instead.
384 &quot;role&quot;: &quot;A String&quot;, # Deprecated - use permissionDetails/role instead.
385 &quot;teamDrivePermissionType&quot;: &quot;A String&quot;, # Deprecated - use permissionDetails/permissionType instead.
386 },
387 ],
388 &quot;type&quot;: &quot;A String&quot;, # The account type. Allowed values are:
John Asmuth614db982014-04-24 15:46:26 -0400389 # - user
390 # - group
391 # - domain
392 # - anyone
Bu Sun Kim65020912020-05-20 12:08:20 -0700393 &quot;value&quot;: &quot;A String&quot;, # 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.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700394 &quot;view&quot;: &quot;A String&quot;, # Indicates the view for this permission. Only populated for permissions that belong to a view. published is the only supported value.
Bu Sun Kim65020912020-05-20 12:08:20 -0700395 &quot;withLink&quot;: True or False, # Whether the link is required for this permission.
John Asmuth614db982014-04-24 15:46:26 -0400396 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800397 ],
398 &quot;properties&quot;: [ # The list of properties.
399 { # A key-value pair attached to a file that is either public or private to an application.
400 # The following limits apply to file properties:
401 # - Maximum of 100 properties total per file
402 # - Maximum of 30 private properties per app
403 # - Maximum of 30 public properties
404 # - Maximum of 124 bytes size limit on (key + value) string in UTF-8 encoding for a single property.
405 &quot;etag&quot;: &quot;A String&quot;, # ETag of the property.
406 &quot;key&quot;: &quot;A String&quot;, # The key of this property.
407 &quot;kind&quot;: &quot;drive#property&quot;, # This is always drive#property.
408 &quot;selfLink&quot;: &quot;A String&quot;, # The link back to this property.
409 &quot;value&quot;: &quot;A String&quot;, # The value of this property.
410 &quot;visibility&quot;: &quot;A String&quot;, # The visibility of this property. Allowed values are PRIVATE and PUBLIC. (Default: PRIVATE)
Bu Sun Kim65020912020-05-20 12:08:20 -0700411 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800412 ],
413 &quot;quotaBytesUsed&quot;: &quot;A String&quot;, # The number of quota bytes used by this file.
414 &quot;selfLink&quot;: &quot;A String&quot;, # A link back to this file.
415 &quot;shareable&quot;: True or False, # Deprecated: use capabilities/canShare.
416 &quot;shared&quot;: True or False, # Whether the file has been shared. Not populated for items in shared drives.
417 &quot;sharedWithMeDate&quot;: &quot;A String&quot;, # Time at which this file was shared with the user (formatted RFC 3339 timestamp).
418 &quot;sharingUser&quot;: { # Information about a Drive user. # User that shared the item with the current user, if available.
419 &quot;displayName&quot;: &quot;A String&quot;, # A plain text displayable name for this user.
420 &quot;emailAddress&quot;: &quot;A String&quot;, # The email address of the user.
421 &quot;isAuthenticatedUser&quot;: True or False, # Whether this user is the same as the authenticated user for whom the request was made.
422 &quot;kind&quot;: &quot;drive#user&quot;, # This is always drive#user.
423 &quot;permissionId&quot;: &quot;A String&quot;, # The user&#x27;s ID as visible in the permissions collection.
424 &quot;picture&quot;: { # The user&#x27;s profile picture.
425 &quot;url&quot;: &quot;A String&quot;, # A URL that points to a profile picture of this user.
426 },
John Asmuth614db982014-04-24 15:46:26 -0400427 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800428 &quot;shortcutDetails&quot;: { # Shortcut file details. Only populated for shortcut files, which have the mimeType field set to application/vnd.google-apps.shortcut.
429 &quot;targetId&quot;: &quot;A String&quot;, # The ID of the file that this shortcut points to.
430 &quot;targetMimeType&quot;: &quot;A String&quot;, # The MIME type of the file that this shortcut points to. The value of this field is a snapshot of the target&#x27;s MIME type, captured when the shortcut is created.
Bu Sun Kim65020912020-05-20 12:08:20 -0700431 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800432 &quot;spaces&quot;: [ # The list of spaces which contain the file. Supported values are &#x27;drive&#x27;, &#x27;appDataFolder&#x27; and &#x27;photos&#x27;.
433 &quot;A String&quot;,
434 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700435 &quot;teamDriveId&quot;: &quot;A String&quot;, # Deprecated - use driveId instead.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800436 &quot;thumbnail&quot;: { # A thumbnail for the file. This will only be used if a standard thumbnail cannot be generated.
437 &quot;image&quot;: &quot;A String&quot;, # The URL-safe Base64 encoded bytes of the thumbnail image. It should conform to RFC 4648 section 5.
438 &quot;mimeType&quot;: &quot;A String&quot;, # The MIME type of the thumbnail.
439 },
440 &quot;thumbnailLink&quot;: &quot;A String&quot;, # A short-lived link to the file&#x27;s thumbnail. Typically lasts on the order of hours. Only populated when the requesting app can access the file&#x27;s content. If the file isn&#x27;t shared publicly, the URL returned in Files.thumbnailLink must be fetched using a credentialed request.
441 &quot;thumbnailVersion&quot;: &quot;A String&quot;, # The thumbnail version for use in thumbnail cache invalidation.
442 &quot;title&quot;: &quot;A String&quot;, # The title of this file. Note that for immutable items such as the top level folders of shared drives, My Drive root folder, and Application Data folder the title is constant.
443 &quot;trashedDate&quot;: &quot;A String&quot;, # The time that the item was trashed (formatted RFC 3339 timestamp). Only populated for items in shared drives.
444 &quot;trashingUser&quot;: { # Information about a Drive user. # If the file has been explicitly trashed, the user who trashed it. Only populated for items in shared drives.
445 &quot;displayName&quot;: &quot;A String&quot;, # A plain text displayable name for this user.
446 &quot;emailAddress&quot;: &quot;A String&quot;, # The email address of the user.
447 &quot;isAuthenticatedUser&quot;: True or False, # Whether this user is the same as the authenticated user for whom the request was made.
448 &quot;kind&quot;: &quot;drive#user&quot;, # This is always drive#user.
449 &quot;permissionId&quot;: &quot;A String&quot;, # The user&#x27;s ID as visible in the permissions collection.
450 &quot;picture&quot;: { # The user&#x27;s profile picture.
451 &quot;url&quot;: &quot;A String&quot;, # A URL that points to a profile picture of this user.
452 },
453 },
454 &quot;userPermission&quot;: { # A permission for a file. # The permissions for the authenticated user on this file.
455 &quot;additionalRoles&quot;: [ # Additional roles for this user. Only commenter is currently allowed, though more may be supported in the future.
456 &quot;A String&quot;,
457 ],
458 &quot;authKey&quot;: &quot;A String&quot;, # Deprecated.
459 &quot;deleted&quot;: True or False, # Whether the account associated with this permission has been deleted. This field only pertains to user and group permissions.
460 &quot;domain&quot;: &quot;A String&quot;, # 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.
461 &quot;emailAddress&quot;: &quot;A String&quot;, # The email address of the user or group this permission refers to. This is an output-only field which is present when the permission type is user or group.
462 &quot;etag&quot;: &quot;A String&quot;, # The ETag of the permission.
463 &quot;expirationDate&quot;: &quot;A String&quot;, # The time at which this permission will expire (RFC 3339 date-time). Expiration dates have the following restrictions:
464 # - They cannot be set on shared drive items
465 # - They can only be set on user and group permissions
466 # - The date must be in the future
467 # - The date cannot be more than a year in the future
468 # - The date can only be set on drive.permissions.update or drive.permissions.patch requests
469 &quot;id&quot;: &quot;A String&quot;, # 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.
470 &quot;kind&quot;: &quot;drive#permission&quot;, # This is always drive#permission.
471 &quot;name&quot;: &quot;A String&quot;, # The name for this permission.
472 &quot;permissionDetails&quot;: [ # Details of whether the permissions on this shared drive item are inherited or directly on this item. This is an output-only field which is present only for shared drive items.
473 {
474 &quot;additionalRoles&quot;: [ # Additional roles for this user. Only commenter is currently possible, though more may be supported in the future.
475 &quot;A String&quot;,
476 ],
477 &quot;inherited&quot;: True or False, # Whether this permission is inherited. This field is always populated. This is an output-only field.
478 &quot;inheritedFrom&quot;: &quot;A String&quot;, # The ID of the item from which this permission is inherited. This is an output-only field.
479 &quot;permissionType&quot;: &quot;A String&quot;, # The permission type for this user. While new values may be added in future, the following are currently possible:
480 # - file
481 # - member
482 &quot;role&quot;: &quot;A String&quot;, # The primary role for this user. While new values may be added in the future, the following are currently possible:
483 # - organizer
484 # - fileOrganizer
485 # - writer
486 # - reader
487 },
488 ],
489 &quot;photoLink&quot;: &quot;A String&quot;, # A link to the profile photo, if available.
490 &quot;role&quot;: &quot;A String&quot;, # The primary role for this user. While new values may be supported in the future, the following are currently allowed:
491 # - owner
492 # - organizer
493 # - fileOrganizer
494 # - writer
495 # - reader
496 &quot;selfLink&quot;: &quot;A String&quot;, # A link back to this permission.
497 &quot;teamDrivePermissionDetails&quot;: [ # Deprecated - use permissionDetails instead.
498 {
499 &quot;additionalRoles&quot;: [ # Deprecated - use permissionDetails/additionalRoles instead.
500 &quot;A String&quot;,
501 ],
502 &quot;inherited&quot;: True or False, # Deprecated - use permissionDetails/inherited instead.
503 &quot;inheritedFrom&quot;: &quot;A String&quot;, # Deprecated - use permissionDetails/inheritedFrom instead.
504 &quot;role&quot;: &quot;A String&quot;, # Deprecated - use permissionDetails/role instead.
505 &quot;teamDrivePermissionType&quot;: &quot;A String&quot;, # Deprecated - use permissionDetails/permissionType instead.
506 },
507 ],
508 &quot;type&quot;: &quot;A String&quot;, # The account type. Allowed values are:
509 # - user
510 # - group
511 # - domain
512 # - anyone
513 &quot;value&quot;: &quot;A String&quot;, # 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.
514 &quot;view&quot;: &quot;A String&quot;, # Indicates the view for this permission. Only populated for permissions that belong to a view. published is the only supported value.
515 &quot;withLink&quot;: True or False, # Whether the link is required for this permission.
516 },
517 &quot;version&quot;: &quot;A String&quot;, # 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.
518 &quot;videoMediaMetadata&quot;: { # Metadata about video media. This will only be present for video types.
519 &quot;durationMillis&quot;: &quot;A String&quot;, # The duration of the video in milliseconds.
520 &quot;height&quot;: 42, # The height of the video in pixels.
521 &quot;width&quot;: 42, # The width of the video in pixels.
522 },
523 &quot;webContentLink&quot;: &quot;A String&quot;, # A link for downloading the content of the file in a browser using cookie based authentication. In cases where the content is shared publicly, the content can be downloaded without any credentials.
524 &quot;webViewLink&quot;: &quot;A String&quot;, # A link only available on public folders for viewing their static web assets (HTML, CSS, JS, etc) via Google Drive&#x27;s Website Hosting.
525 &quot;writersCanShare&quot;: True or False, # Whether writers can share the document with other users. Not populated for items in shared drives.
526 },
527 &quot;fileId&quot;: &quot;A String&quot;, # The ID of the file associated with this change.
528 &quot;id&quot;: &quot;A String&quot;, # The ID of the change.
529 &quot;kind&quot;: &quot;drive#change&quot;, # This is always drive#change.
530 &quot;modificationDate&quot;: &quot;A String&quot;, # The time of this modification.
531 &quot;selfLink&quot;: &quot;A String&quot;, # A link back to this change.
532 &quot;teamDrive&quot;: { # Deprecated: use the drive collection instead. # Deprecated - use drive instead.
533 &quot;backgroundImageFile&quot;: { # An image file and cropping parameters from which a background image for this Team Drive is set. This is a write only field; it can only be set on drive.teamdrives.update requests that don&#x27;t set themeId. When specified, all fields of the backgroundImageFile must be set.
534 &quot;id&quot;: &quot;A String&quot;, # The ID of an image file in Drive to use for the background image.
535 &quot;width&quot;: 3.14, # The width of the cropped image in the closed range of 0 to 1. This value represents the width of the cropped image divided by the width of the entire image. The height is computed by applying a width to height aspect ratio of 80 to 9. The resulting image must be at least 1280 pixels wide and 144 pixels high.
536 &quot;xCoordinate&quot;: 3.14, # The X coordinate of the upper left corner of the cropping area in the background image. This is a value in the closed range of 0 to 1. This value represents the horizontal distance from the left side of the entire image to the left side of the cropping area divided by the width of the entire image.
537 &quot;yCoordinate&quot;: 3.14, # The Y coordinate of the upper left corner of the cropping area in the background image. This is a value in the closed range of 0 to 1. This value represents the vertical distance from the top side of the entire image to the top side of the cropping area divided by the height of the entire image.
538 },
539 &quot;backgroundImageLink&quot;: &quot;A String&quot;, # A short-lived link to this Team Drive&#x27;s background image.
540 &quot;capabilities&quot;: { # Capabilities the current user has on this Team Drive.
541 &quot;canAddChildren&quot;: True or False, # Whether the current user can add children to folders in this Team Drive.
542 &quot;canChangeCopyRequiresWriterPermissionRestriction&quot;: True or False, # Whether the current user can change the copyRequiresWriterPermission restriction of this Team Drive.
543 &quot;canChangeDomainUsersOnlyRestriction&quot;: True or False, # Whether the current user can change the domainUsersOnly restriction of this Team Drive.
544 &quot;canChangeTeamDriveBackground&quot;: True or False, # Whether the current user can change the background of this Team Drive.
545 &quot;canChangeTeamMembersOnlyRestriction&quot;: True or False, # Whether the current user can change the teamMembersOnly restriction of this Team Drive.
546 &quot;canComment&quot;: True or False, # Whether the current user can comment on files in this Team Drive.
547 &quot;canCopy&quot;: True or False, # Whether the current user can copy files in this Team Drive.
548 &quot;canDeleteChildren&quot;: True or False, # Whether the current user can delete children from folders in this Team Drive.
549 &quot;canDeleteTeamDrive&quot;: True or False, # Whether the current user can delete this Team Drive. Attempting to delete the Team Drive may still fail if there are untrashed items inside the Team Drive.
550 &quot;canDownload&quot;: True or False, # Whether the current user can download files in this Team Drive.
551 &quot;canEdit&quot;: True or False, # Whether the current user can edit files in this Team Drive
552 &quot;canListChildren&quot;: True or False, # Whether the current user can list the children of folders in this Team Drive.
553 &quot;canManageMembers&quot;: True or False, # Whether the current user can add members to this Team Drive or remove them or change their role.
554 &quot;canReadRevisions&quot;: True or False, # Whether the current user can read the revisions resource of files in this Team Drive.
555 &quot;canRemoveChildren&quot;: True or False, # Deprecated - use canDeleteChildren or canTrashChildren instead.
556 &quot;canRename&quot;: True or False, # Whether the current user can rename files or folders in this Team Drive.
557 &quot;canRenameTeamDrive&quot;: True or False, # Whether the current user can rename this Team Drive.
558 &quot;canShare&quot;: True or False, # Whether the current user can share files or folders in this Team Drive.
559 &quot;canTrashChildren&quot;: True or False, # Whether the current user can trash children from folders in this Team Drive.
560 },
561 &quot;colorRgb&quot;: &quot;A String&quot;, # The color of this Team Drive as an RGB hex string. It can only be set on a drive.teamdrives.update request that does not set themeId.
562 &quot;createdDate&quot;: &quot;A String&quot;, # The time at which the Team Drive was created (RFC 3339 date-time).
563 &quot;id&quot;: &quot;A String&quot;, # The ID of this Team Drive which is also the ID of the top level folder of this Team Drive.
564 &quot;kind&quot;: &quot;drive#teamDrive&quot;, # This is always drive#teamDrive
565 &quot;name&quot;: &quot;A String&quot;, # The name of this Team Drive.
566 &quot;restrictions&quot;: { # A set of restrictions that apply to this Team Drive or items inside this Team Drive.
567 &quot;adminManagedRestrictions&quot;: True or False, # Whether administrative privileges on this Team Drive are required to modify restrictions.
568 &quot;copyRequiresWriterPermission&quot;: True or False, # Whether the options to copy, print, or download files inside this Team Drive, should be disabled for readers and commenters. When this restriction is set to true, it will override the similarly named field to true for any file inside this Team Drive.
569 &quot;domainUsersOnly&quot;: True or False, # Whether access to this Team Drive and items inside this Team Drive is restricted to users of the domain to which this Team Drive belongs. This restriction may be overridden by other sharing policies controlled outside of this Team Drive.
570 &quot;teamMembersOnly&quot;: True or False, # Whether access to items inside this Team Drive is restricted to members of this Team Drive.
571 },
572 &quot;themeId&quot;: &quot;A String&quot;, # The ID of the theme from which the background image and color will be set. The set of possible teamDriveThemes can be retrieved from a drive.about.get response. When not specified on a drive.teamdrives.insert request, a random theme is chosen from which the background image and color are set. This is a write-only field; it can only be set on requests that don&#x27;t set colorRgb or backgroundImageFile.
573 },
574 &quot;teamDriveId&quot;: &quot;A String&quot;, # Deprecated - use driveId instead.
575 &quot;type&quot;: &quot;A String&quot;, # Deprecated - use changeType instead.
576}</pre>
John Asmuth614db982014-04-24 15:46:26 -0400577</div>
578
579<div class="method">
Bu Sun Kim65020912020-05-20 12:08:20 -0700580 <code class="details" id="getStartPageToken">getStartPageToken(driveId=None, supportsAllDrives=None, supportsTeamDrives=None, teamDriveId=None)</code>
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400581 <pre>Gets the starting pageToken for listing future changes.
582
583Args:
Dan O'Mearadd494642020-05-01 07:42:23 -0700584 driveId: string, The ID of the shared drive for which the starting pageToken for listing future changes from that shared drive is returned.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700585 supportsAllDrives: boolean, Whether the requesting application supports both My Drives and shared drives.
Bu Sun Kim65020912020-05-20 12:08:20 -0700586 supportsTeamDrives: boolean, Deprecated use supportsAllDrives instead.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700587 teamDriveId: string, Deprecated use driveId instead.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400588
589Returns:
590 An object of the form:
591
592 {
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800593 &quot;kind&quot;: &quot;drive#startPageToken&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;drive#startPageToken&quot;.
594 &quot;startPageToken&quot;: &quot;A String&quot;, # The starting page token for listing changes.
595}</pre>
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400596</div>
597
598<div class="method">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700599 <code class="details" id="list">list(driveId=None, includeCorpusRemovals=None, includeDeleted=None, includeItemsFromAllDrives=None, includePermissionsForView=None, includeSubscribed=None, includeTeamDriveItems=None, maxResults=None, pageToken=None, spaces=None, startChangeId=None, supportsAllDrives=None, supportsTeamDrives=None, teamDriveId=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700600 <pre>Lists the changes for a user or shared drive.
John Asmuth614db982014-04-24 15:46:26 -0400601
602Args:
Dan O'Mearadd494642020-05-01 07:42:23 -0700603 driveId: string, The shared drive from which changes are returned. If specified the change IDs will be reflective of the shared drive; use the combined drive ID and change ID as an identifier.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400604 includeCorpusRemovals: boolean, Whether changes should include the file resource if the file is still accessible by the user at the time of the request, even when a file was removed from the list of changes and there will be no further change entries for this file.
Bu Sun Kim65020912020-05-20 12:08:20 -0700605 includeDeleted: boolean, Whether to include changes indicating that items have been removed from the list of changes, for example by deletion or loss of access.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700606 includeItemsFromAllDrives: boolean, Whether both My Drive and shared drive items should be included in results.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700607 includePermissionsForView: string, Specifies which additional view&#x27;s permissions to include in the response. Only &#x27;published&#x27; is supported.
Bu Sun Kim65020912020-05-20 12:08:20 -0700608 includeSubscribed: boolean, Whether to include changes outside the My Drive hierarchy in the result. When set to false, changes to files such as those in the Application Data folder or shared files which have not been added to My Drive are omitted from the result.
609 includeTeamDriveItems: boolean, Deprecated use includeItemsFromAllDrives instead.
610 maxResults: integer, Maximum number of changes to return.
611 pageToken: string, The token for continuing a previous list request on the next page. This should be set to the value of &#x27;nextPageToken&#x27; from the previous response or to the response from the getStartPageToken method.
612 spaces: string, A comma-separated list of spaces to query. Supported values are &#x27;drive&#x27;, &#x27;appDataFolder&#x27; and &#x27;photos&#x27;.
613 startChangeId: string, Deprecated - use pageToken instead.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700614 supportsAllDrives: boolean, Whether the requesting application supports both My Drives and shared drives.
Bu Sun Kim65020912020-05-20 12:08:20 -0700615 supportsTeamDrives: boolean, Deprecated use supportsAllDrives instead.
616 teamDriveId: string, Deprecated use driveId instead.
John Asmuth614db982014-04-24 15:46:26 -0400617
618Returns:
619 An object of the form:
620
621 { # A list of changes for a user.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800622 &quot;etag&quot;: &quot;A String&quot;, # The ETag of the list.
623 &quot;items&quot;: [ # The list of changes. If nextPageToken is populated, then this list may be incomplete and an additional page of results should be fetched.
624 { # Representation of a change to a file or shared drive.
625 &quot;changeType&quot;: &quot;A String&quot;, # The type of the change. Possible values are file and drive.
626 &quot;deleted&quot;: True or False, # Whether the file or shared drive has been removed from this list of changes, for example by deletion or loss of access.
627 &quot;drive&quot;: { # Representation of a shared drive. # The updated state of the shared drive. Present if the changeType is drive, the user is still a member of the shared drive, and the shared drive has not been deleted.
628 &quot;backgroundImageFile&quot;: { # An image file and cropping parameters from which a background image for this shared drive is set. This is a write only field; it can only be set on drive.drives.update requests that don&#x27;t set themeId. When specified, all fields of the backgroundImageFile must be set.
629 &quot;id&quot;: &quot;A String&quot;, # The ID of an image file in Google Drive to use for the background image.
630 &quot;width&quot;: 3.14, # The width of the cropped image in the closed range of 0 to 1. This value represents the width of the cropped image divided by the width of the entire image. The height is computed by applying a width to height aspect ratio of 80 to 9. The resulting image must be at least 1280 pixels wide and 144 pixels high.
631 &quot;xCoordinate&quot;: 3.14, # The X coordinate of the upper left corner of the cropping area in the background image. This is a value in the closed range of 0 to 1. This value represents the horizontal distance from the left side of the entire image to the left side of the cropping area divided by the width of the entire image.
632 &quot;yCoordinate&quot;: 3.14, # The Y coordinate of the upper left corner of the cropping area in the background image. This is a value in the closed range of 0 to 1. This value represents the vertical distance from the top side of the entire image to the top side of the cropping area divided by the height of the entire image.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400633 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800634 &quot;backgroundImageLink&quot;: &quot;A String&quot;, # A short-lived link to this shared drive&#x27;s background image.
635 &quot;capabilities&quot;: { # Capabilities the current user has on this shared drive.
636 &quot;canAddChildren&quot;: True or False, # Whether the current user can add children to folders in this shared drive.
637 &quot;canChangeCopyRequiresWriterPermissionRestriction&quot;: True or False, # Whether the current user can change the copyRequiresWriterPermission restriction of this shared drive.
638 &quot;canChangeDomainUsersOnlyRestriction&quot;: True or False, # Whether the current user can change the domainUsersOnly restriction of this shared drive.
639 &quot;canChangeDriveBackground&quot;: True or False, # Whether the current user can change the background of this shared drive.
640 &quot;canChangeDriveMembersOnlyRestriction&quot;: True or False, # Whether the current user can change the driveMembersOnly restriction of this shared drive.
641 &quot;canComment&quot;: True or False, # Whether the current user can comment on files in this shared drive.
642 &quot;canCopy&quot;: True or False, # Whether the current user can copy files in this shared drive.
643 &quot;canDeleteChildren&quot;: True or False, # Whether the current user can delete children from folders in this shared drive.
644 &quot;canDeleteDrive&quot;: True or False, # Whether the current user can delete this shared drive. Attempting to delete the shared drive may still fail if there are untrashed items inside the shared drive.
645 &quot;canDownload&quot;: True or False, # Whether the current user can download files in this shared drive.
646 &quot;canEdit&quot;: True or False, # Whether the current user can edit files in this shared drive
647 &quot;canListChildren&quot;: True or False, # Whether the current user can list the children of folders in this shared drive.
648 &quot;canManageMembers&quot;: True or False, # Whether the current user can add members to this shared drive or remove them or change their role.
649 &quot;canReadRevisions&quot;: True or False, # Whether the current user can read the revisions resource of files in this shared drive.
650 &quot;canRename&quot;: True or False, # Whether the current user can rename files or folders in this shared drive.
651 &quot;canRenameDrive&quot;: True or False, # Whether the current user can rename this shared drive.
652 &quot;canShare&quot;: True or False, # Whether the current user can share files or folders in this shared drive.
653 &quot;canTrashChildren&quot;: True or False, # Whether the current user can trash children from folders in this shared drive.
654 },
655 &quot;colorRgb&quot;: &quot;A String&quot;, # The color of this shared drive as an RGB hex string. It can only be set on a drive.drives.update request that does not set themeId.
656 &quot;createdDate&quot;: &quot;A String&quot;, # The time at which the shared drive was created (RFC 3339 date-time).
657 &quot;hidden&quot;: True or False, # Whether the shared drive is hidden from default view.
658 &quot;id&quot;: &quot;A String&quot;, # The ID of this shared drive which is also the ID of the top level folder of this shared drive.
659 &quot;kind&quot;: &quot;drive#drive&quot;, # This is always drive#drive
660 &quot;name&quot;: &quot;A String&quot;, # The name of this shared drive.
661 &quot;restrictions&quot;: { # A set of restrictions that apply to this shared drive or items inside this shared drive.
662 &quot;adminManagedRestrictions&quot;: True or False, # Whether administrative privileges on this shared drive are required to modify restrictions.
663 &quot;copyRequiresWriterPermission&quot;: True or False, # Whether the options to copy, print, or download files inside this shared drive, should be disabled for readers and commenters. When this restriction is set to true, it will override the similarly named field to true for any file inside this shared drive.
664 &quot;domainUsersOnly&quot;: True or False, # Whether access to this shared drive and items inside this shared drive is restricted to users of the domain to which this shared drive belongs. This restriction may be overridden by other sharing policies controlled outside of this shared drive.
665 &quot;driveMembersOnly&quot;: True or False, # Whether access to items inside this shared drive is restricted to its members.
666 },
667 &quot;themeId&quot;: &quot;A String&quot;, # The ID of the theme from which the background image and color will be set. The set of possible driveThemes can be retrieved from a drive.about.get response. When not specified on a drive.drives.insert request, a random theme is chosen from which the background image and color are set. This is a write-only field; it can only be set on requests that don&#x27;t set colorRgb or backgroundImageFile.
668 },
669 &quot;driveId&quot;: &quot;A String&quot;, # The ID of the shared drive associated with this change.
670 &quot;file&quot;: { # The metadata for a file. # The updated state of the file. Present if the type is file and the file has not been removed from this list of changes.
671 &quot;alternateLink&quot;: &quot;A String&quot;, # A link for opening the file in a relevant Google editor or viewer.
672 &quot;appDataContents&quot;: True or False, # Whether this file is in the Application Data folder.
673 &quot;canComment&quot;: True or False, # Deprecated: use capabilities/canComment.
674 &quot;canReadRevisions&quot;: True or False, # Deprecated: use capabilities/canReadRevisions.
675 &quot;capabilities&quot;: { # Capabilities the current user has on this file. Each capability corresponds to a fine-grained action that a user may take.
676 &quot;canAddChildren&quot;: True or False, # Whether the current user can add children to this folder. This is always false when the item is not a folder.
677 &quot;canAddFolderFromAnotherDrive&quot;: True or False, # Whether the current user can add a folder from another drive (different shared drive or My Drive) to this folder. This is false when the item is not a folder. Only populated for items in shared drives.
678 &quot;canAddMyDriveParent&quot;: True or False, # Whether the current user can add a parent for the item without removing an existing parent in the same request. Not populated for shared drive files.
679 &quot;canChangeCopyRequiresWriterPermission&quot;: True or False, # Whether the current user can change the copyRequiresWriterPermission restriction of this file.
680 &quot;canChangeRestrictedDownload&quot;: True or False, # Deprecated
681 &quot;canComment&quot;: True or False, # Whether the current user can comment on this file.
682 &quot;canCopy&quot;: True or False, # Whether the current user can copy this file. For an item in a shared drive, whether the current user can copy non-folder descendants of this item, or this item itself if it is not a folder.
683 &quot;canDelete&quot;: True or False, # Whether the current user can delete this file.
684 &quot;canDeleteChildren&quot;: True or False, # Whether the current user can delete children of this folder. This is false when the item is not a folder. Only populated for items in shared drives.
685 &quot;canDownload&quot;: True or False, # Whether the current user can download this file.
686 &quot;canEdit&quot;: True or False, # Whether the current user can edit this file. Other factors may limit the type of changes a user can make to a file. For example, see canChangeCopyRequiresWriterPermission or canModifyContent.
687 &quot;canListChildren&quot;: 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.
688 &quot;canModifyContent&quot;: True or False, # Whether the current user can modify the content of this file.
689 &quot;canModifyContentRestriction&quot;: True or False, # Whether the current user can modify restrictions on content of this file.
690 &quot;canMoveChildrenOutOfDrive&quot;: True or False, # Whether the current user can move children of this folder outside of the shared drive. This is false when the item is not a folder. Only populated for items in shared drives.
691 &quot;canMoveChildrenOutOfTeamDrive&quot;: True or False, # Deprecated - use canMoveChildrenOutOfDrive instead.
692 &quot;canMoveChildrenWithinDrive&quot;: True or False, # Whether the current user can move children of this folder within this drive. This is false when the item is not a folder. Note that a request to move the child may still fail depending on the current user&#x27;s access to the child and to the destination folder.
693 &quot;canMoveChildrenWithinTeamDrive&quot;: True or False, # Deprecated - use canMoveChildrenWithinDrive instead.
694 &quot;canMoveItemIntoTeamDrive&quot;: True or False, # Deprecated - use canMoveItemOutOfDrive instead.
695 &quot;canMoveItemOutOfDrive&quot;: True or False, # Whether the current user can move this item outside of this drive by changing its parent. Note that a request to change the parent of the item may still fail depending on the new parent that is being added.
696 &quot;canMoveItemOutOfTeamDrive&quot;: True or False, # Deprecated - use canMoveItemOutOfDrive instead.
697 &quot;canMoveItemWithinDrive&quot;: True or False, # Whether the current user can move this item within this drive. Note that a request to change the parent of the item may still fail depending on the new parent that is being added and the parent that is being removed.
698 &quot;canMoveItemWithinTeamDrive&quot;: True or False, # Deprecated - use canMoveItemWithinDrive instead.
699 &quot;canMoveTeamDriveItem&quot;: True or False, # Deprecated - use canMoveItemWithinDrive or canMoveItemOutOfDrive instead.
700 &quot;canReadDrive&quot;: True or False, # Whether the current user can read the shared drive to which this file belongs. Only populated for items in shared drives.
701 &quot;canReadRevisions&quot;: True or False, # Whether the current user can read the revisions resource of this file. For a shared drive item, whether revisions of non-folder descendants of this item, or this item itself if it is not a folder, can be read.
702 &quot;canReadTeamDrive&quot;: True or False, # Deprecated - use canReadDrive instead.
703 &quot;canRemoveChildren&quot;: True or False, # Whether the current user can remove children from this folder. This is always false when the item is not a folder. For a folder in a shared drive, use canDeleteChildren or canTrashChildren instead.
704 &quot;canRemoveMyDriveParent&quot;: True or False, # Whether the current user can remove a parent from the item without adding another parent in the same request. Not populated for shared drive files.
705 &quot;canRename&quot;: True or False, # Whether the current user can rename this file.
706 &quot;canShare&quot;: True or False, # Whether the current user can modify the sharing settings for this file.
707 &quot;canTrash&quot;: True or False, # Whether the current user can move this file to trash.
708 &quot;canTrashChildren&quot;: True or False, # Whether the current user can trash children of this folder. This is false when the item is not a folder. Only populated for items in shared drives.
709 &quot;canUntrash&quot;: True or False, # Whether the current user can restore this file from trash.
710 },
711 &quot;contentRestrictions&quot;: [ # Restrictions for accessing the content of the file. Only populated if such a restriction exists.
712 { # A restriction for accessing the content of the file.
713 &quot;readOnly&quot;: True or False, # Whether the content of the file is read-only. If a file is read-only, a new revision of the file may not be added, comments may not be added or modified, and the title of the file may not be modified.
714 &quot;reason&quot;: &quot;A String&quot;, # Reason for why the content of the file is restricted. This is only mutable on requests that also set readOnly=true.
715 &quot;restrictingUser&quot;: { # Information about a Drive user. # The user who set the content restriction. Only populated if readOnly is true.
Bu Sun Kim65020912020-05-20 12:08:20 -0700716 &quot;displayName&quot;: &quot;A String&quot;, # A plain text displayable name for this user.
717 &quot;emailAddress&quot;: &quot;A String&quot;, # The email address of the user.
718 &quot;isAuthenticatedUser&quot;: True or False, # Whether this user is the same as the authenticated user for whom the request was made.
719 &quot;kind&quot;: &quot;drive#user&quot;, # This is always drive#user.
720 &quot;permissionId&quot;: &quot;A String&quot;, # The user&#x27;s ID as visible in the permissions collection.
721 &quot;picture&quot;: { # The user&#x27;s profile picture.
722 &quot;url&quot;: &quot;A String&quot;, # A URL that points to a profile picture of this user.
John Asmuth614db982014-04-24 15:46:26 -0400723 },
John Asmuth614db982014-04-24 15:46:26 -0400724 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800725 &quot;restrictionDate&quot;: &quot;A String&quot;, # The time at which the content restriction was set (formatted RFC 3339 timestamp). Only populated if readOnly is true.
726 &quot;type&quot;: &quot;A String&quot;, # The type of the content restriction. Currently the only possible value is globalContentRestriction.
727 },
728 ],
729 &quot;copyRequiresWriterPermission&quot;: True or False, # Whether the options to copy, print, or download this file, should be disabled for readers and commenters.
730 &quot;copyable&quot;: True or False, # Deprecated: use capabilities/canCopy.
731 &quot;createdDate&quot;: &quot;A String&quot;, # Create time for this file (formatted RFC 3339 timestamp).
732 &quot;defaultOpenWithLink&quot;: &quot;A String&quot;, # A link to open this file with the user&#x27;s default app for this file. Only populated when the drive.apps.readonly scope is used.
733 &quot;description&quot;: &quot;A String&quot;, # A short description of the file.
734 &quot;downloadUrl&quot;: &quot;A String&quot;, # Short lived download URL for the file. This field is only populated for files with content stored in Google Drive; it is not populated for Docs Editors or shortcut files.
735 &quot;driveId&quot;: &quot;A String&quot;, # ID of the shared drive the file resides in. Only populated for items in shared drives.
736 &quot;editable&quot;: True or False, # Deprecated: use capabilities/canEdit.
737 &quot;embedLink&quot;: &quot;A String&quot;, # A link for embedding the file.
738 &quot;etag&quot;: &quot;A String&quot;, # ETag of the file.
739 &quot;explicitlyTrashed&quot;: True or False, # Whether this file has been explicitly trashed, as opposed to recursively trashed.
740 &quot;exportLinks&quot;: { # Links for exporting Docs Editors files to specific formats.
741 &quot;a_key&quot;: &quot;A String&quot;, # A mapping from export format to URL
742 },
743 &quot;fileExtension&quot;: &quot;A String&quot;, # 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 Google Drive; it is not populated for Docs Editors or shortcut files.
744 &quot;fileSize&quot;: &quot;A String&quot;, # The size of the file in bytes. This field is populated for files with content stored in Google Drive and for files in Docs Editors; it is not populated for shortcut files.
745 &quot;folderColorRgb&quot;: &quot;A String&quot;, # 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 items in shared drives.
746 &quot;fullFileExtension&quot;: &quot;A String&quot;, # The full file extension; extracted from the title. May contain multiple concatenated extensions, such as &quot;tar.gz&quot;. Removing an extension from the title does not clear this field; however, changing the extension on the title does update this field. This field is only populated for files with content stored in Google Drive; it is not populated for Docs Editors or shortcut files.
747 &quot;hasAugmentedPermissions&quot;: True or False, # Whether there are permissions directly on this file. This field is only populated for items in shared drives.
748 &quot;hasThumbnail&quot;: 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.
749 &quot;headRevisionId&quot;: &quot;A String&quot;, # The ID of the file&#x27;s head revision. This field is only populated for files with content stored in Google Drive; it is not populated for Docs Editors or shortcut files.
750 &quot;iconLink&quot;: &quot;A String&quot;, # A link to the file&#x27;s icon.
751 &quot;id&quot;: &quot;A String&quot;, # The ID of the file.
752 &quot;imageMediaMetadata&quot;: { # 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.
753 &quot;aperture&quot;: 3.14, # The aperture used to create the photo (f-number).
754 &quot;cameraMake&quot;: &quot;A String&quot;, # The make of the camera used to create the photo.
755 &quot;cameraModel&quot;: &quot;A String&quot;, # The model of the camera used to create the photo.
756 &quot;colorSpace&quot;: &quot;A String&quot;, # The color space of the photo.
757 &quot;date&quot;: &quot;A String&quot;, # The date and time the photo was taken (EXIF format timestamp).
758 &quot;exposureBias&quot;: 3.14, # The exposure bias of the photo (APEX value).
759 &quot;exposureMode&quot;: &quot;A String&quot;, # The exposure mode used to create the photo.
760 &quot;exposureTime&quot;: 3.14, # The length of the exposure, in seconds.
761 &quot;flashUsed&quot;: True or False, # Whether a flash was used to create the photo.
762 &quot;focalLength&quot;: 3.14, # The focal length used to create the photo, in millimeters.
763 &quot;height&quot;: 42, # The height of the image in pixels.
764 &quot;isoSpeed&quot;: 42, # The ISO speed used to create the photo.
765 &quot;lens&quot;: &quot;A String&quot;, # The lens used to create the photo.
766 &quot;location&quot;: { # Geographic location information stored in the image.
767 &quot;altitude&quot;: 3.14, # The altitude stored in the image.
768 &quot;latitude&quot;: 3.14, # The latitude stored in the image.
769 &quot;longitude&quot;: 3.14, # The longitude stored in the image.
770 },
771 &quot;maxApertureValue&quot;: 3.14, # The smallest f-number of the lens at the focal length used to create the photo (APEX value).
772 &quot;meteringMode&quot;: &quot;A String&quot;, # The metering mode used to create the photo.
773 &quot;rotation&quot;: 42, # The number of clockwise 90 degree rotations applied from the image&#x27;s original orientation.
774 &quot;sensor&quot;: &quot;A String&quot;, # The type of sensor used to create the photo.
775 &quot;subjectDistance&quot;: 42, # The distance to the subject of the photo, in meters.
776 &quot;whiteBalance&quot;: &quot;A String&quot;, # The white balance mode used to create the photo.
777 &quot;width&quot;: 42, # The width of the image in pixels.
778 },
779 &quot;indexableText&quot;: { # Indexable text attributes for the file (can only be written)
780 &quot;text&quot;: &quot;A String&quot;, # The text to be indexed for this file.
781 },
782 &quot;isAppAuthorized&quot;: True or False, # Whether the file was created or opened by the requesting app.
783 &quot;kind&quot;: &quot;drive#file&quot;, # The type of file. This is always drive#file.
784 &quot;labels&quot;: { # A group of labels for the file.
785 &quot;hidden&quot;: True or False, # Deprecated.
786 &quot;modified&quot;: True or False, # Whether the file has been modified by this user.
787 &quot;restricted&quot;: True or False, # Deprecated - use copyRequiresWriterPermission instead.
788 &quot;starred&quot;: True or False, # Whether this file is starred by the user.
789 &quot;trashed&quot;: True or False, # Whether the file has been trashed, either explicitly or from a trashed parent folder. Only the owner may trash a file. The trashed item is excluded from all files.list responses returned for any user who does not own the file. However, all users with access to the file can see the trashed item metadata in an API response. All users with access can copy, download, export, and share the file.
790 &quot;viewed&quot;: True or False, # Whether this file has been viewed by this user.
791 },
792 &quot;lastModifyingUser&quot;: { # Information about a Drive user. # The last user to modify this file.
793 &quot;displayName&quot;: &quot;A String&quot;, # A plain text displayable name for this user.
794 &quot;emailAddress&quot;: &quot;A String&quot;, # The email address of the user.
795 &quot;isAuthenticatedUser&quot;: True or False, # Whether this user is the same as the authenticated user for whom the request was made.
796 &quot;kind&quot;: &quot;drive#user&quot;, # This is always drive#user.
797 &quot;permissionId&quot;: &quot;A String&quot;, # The user&#x27;s ID as visible in the permissions collection.
798 &quot;picture&quot;: { # The user&#x27;s profile picture.
799 &quot;url&quot;: &quot;A String&quot;, # A URL that points to a profile picture of this user.
800 },
801 },
802 &quot;lastModifyingUserName&quot;: &quot;A String&quot;, # Name of the last user to modify this file.
803 &quot;lastViewedByMeDate&quot;: &quot;A String&quot;, # Last time this file was viewed by the user (formatted RFC 3339 timestamp).
804 &quot;markedViewedByMeDate&quot;: &quot;A String&quot;, # Deprecated.
805 &quot;md5Checksum&quot;: &quot;A String&quot;, # An MD5 checksum for the content of this file. This field is only populated for files with content stored in Google Drive; it is not populated for Docs Editors or shortcut files.
806 &quot;mimeType&quot;: &quot;A String&quot;, # The MIME type of the file. This is only mutable on update when uploading new content. This field can be left blank, and the mimetype will be determined from the uploaded content&#x27;s MIME type.
807 &quot;modifiedByMeDate&quot;: &quot;A String&quot;, # Last time this file was modified by the user (formatted RFC 3339 timestamp). Note that setting modifiedDate will also update the modifiedByMe date for the user which set the date.
808 &quot;modifiedDate&quot;: &quot;A String&quot;, # Last time this file was modified by anyone (formatted RFC 3339 timestamp). This is only mutable on update when the setModifiedDate parameter is set.
809 &quot;openWithLinks&quot;: { # A map of the id of each of the user&#x27;s apps to a link to open this file with that app. Only populated when the drive.apps.readonly scope is used.
810 &quot;a_key&quot;: &quot;A String&quot;,
811 },
812 &quot;originalFilename&quot;: &quot;A String&quot;, # 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 Google Drive.
813 &quot;ownedByMe&quot;: True or False, # Whether the file is owned by the current user. Not populated for items in shared drives.
814 &quot;ownerNames&quot;: [ # Name(s) of the owner(s) of this file. Not populated for items in shared drives.
815 &quot;A String&quot;,
816 ],
817 &quot;owners&quot;: [ # The owner(s) of this file. Not populated for items in shared drives.
818 { # Information about a Drive user.
Bu Sun Kim65020912020-05-20 12:08:20 -0700819 &quot;displayName&quot;: &quot;A String&quot;, # A plain text displayable name for this user.
820 &quot;emailAddress&quot;: &quot;A String&quot;, # The email address of the user.
821 &quot;isAuthenticatedUser&quot;: True or False, # Whether this user is the same as the authenticated user for whom the request was made.
822 &quot;kind&quot;: &quot;drive#user&quot;, # This is always drive#user.
823 &quot;permissionId&quot;: &quot;A String&quot;, # The user&#x27;s ID as visible in the permissions collection.
824 &quot;picture&quot;: { # The user&#x27;s profile picture.
825 &quot;url&quot;: &quot;A String&quot;, # A URL that points to a profile picture of this user.
826 },
Takashi Matsuo06694102015-09-11 13:55:40 -0700827 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800828 ],
829 &quot;parents&quot;: [ # Collection of parent folders which contain this file.
830 # If not specified as part of an insert request, the file will be placed directly in the user&#x27;s My Drive folder. If not specified as part of a copy request, the file will inherit any discoverable parents of the source file. Update requests can also use the addParents and removeParents parameters to modify the parents list.
831 { # A reference to a file&#x27;s parent.
832 &quot;id&quot;: &quot;A String&quot;, # The ID of the parent.
833 &quot;isRoot&quot;: True or False, # Whether or not the parent is the root folder.
834 &quot;kind&quot;: &quot;drive#parentReference&quot;, # This is always drive#parentReference.
835 &quot;parentLink&quot;: &quot;A String&quot;, # A link to the parent.
836 &quot;selfLink&quot;: &quot;A String&quot;, # A link back to this reference.
Bu Sun Kim65020912020-05-20 12:08:20 -0700837 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800838 ],
839 &quot;permissionIds&quot;: [ # List of permission IDs for users with access to this file.
840 &quot;A String&quot;,
841 ],
842 &quot;permissions&quot;: [ # The list of permissions for users with access to this file. Not populated for items in shared drives.
843 { # A permission for a file.
Bu Sun Kim65020912020-05-20 12:08:20 -0700844 &quot;additionalRoles&quot;: [ # Additional roles for this user. Only commenter is currently allowed, though more may be supported in the future.
845 &quot;A String&quot;,
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400846 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700847 &quot;authKey&quot;: &quot;A String&quot;, # Deprecated.
848 &quot;deleted&quot;: True or False, # Whether the account associated with this permission has been deleted. This field only pertains to user and group permissions.
849 &quot;domain&quot;: &quot;A String&quot;, # 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.
850 &quot;emailAddress&quot;: &quot;A String&quot;, # The email address of the user or group this permission refers to. This is an output-only field which is present when the permission type is user or group.
851 &quot;etag&quot;: &quot;A String&quot;, # The ETag of the permission.
852 &quot;expirationDate&quot;: &quot;A String&quot;, # The time at which this permission will expire (RFC 3339 date-time). Expiration dates have the following restrictions:
Dan O'Mearadd494642020-05-01 07:42:23 -0700853 # - They cannot be set on shared drive items
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400854 # - They can only be set on user and group permissions
855 # - The date must be in the future
856 # - The date cannot be more than a year in the future
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700857 # - The date can only be set on drive.permissions.update or drive.permissions.patch requests
Bu Sun Kim65020912020-05-20 12:08:20 -0700858 &quot;id&quot;: &quot;A String&quot;, # 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.
859 &quot;kind&quot;: &quot;drive#permission&quot;, # This is always drive#permission.
860 &quot;name&quot;: &quot;A String&quot;, # The name for this permission.
861 &quot;permissionDetails&quot;: [ # Details of whether the permissions on this shared drive item are inherited or directly on this item. This is an output-only field which is present only for shared drive items.
862 {
863 &quot;additionalRoles&quot;: [ # Additional roles for this user. Only commenter is currently possible, though more may be supported in the future.
864 &quot;A String&quot;,
865 ],
866 &quot;inherited&quot;: True or False, # Whether this permission is inherited. This field is always populated. This is an output-only field.
867 &quot;inheritedFrom&quot;: &quot;A String&quot;, # The ID of the item from which this permission is inherited. This is an output-only field.
868 &quot;permissionType&quot;: &quot;A String&quot;, # The permission type for this user. While new values may be added in future, the following are currently possible:
869 # - file
870 # - member
871 &quot;role&quot;: &quot;A String&quot;, # The primary role for this user. While new values may be added in the future, the following are currently possible:
872 # - organizer
873 # - fileOrganizer
874 # - writer
875 # - reader
876 },
877 ],
878 &quot;photoLink&quot;: &quot;A String&quot;, # A link to the profile photo, if available.
879 &quot;role&quot;: &quot;A String&quot;, # The primary role for this user. While new values may be supported in the future, the following are currently allowed:
John Asmuth614db982014-04-24 15:46:26 -0400880 # - owner
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700881 # - organizer
882 # - fileOrganizer
John Asmuth614db982014-04-24 15:46:26 -0400883 # - writer
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700884 # - reader
Bu Sun Kim65020912020-05-20 12:08:20 -0700885 &quot;selfLink&quot;: &quot;A String&quot;, # A link back to this permission.
886 &quot;teamDrivePermissionDetails&quot;: [ # Deprecated - use permissionDetails instead.
887 {
888 &quot;additionalRoles&quot;: [ # Deprecated - use permissionDetails/additionalRoles instead.
889 &quot;A String&quot;,
890 ],
891 &quot;inherited&quot;: True or False, # Deprecated - use permissionDetails/inherited instead.
892 &quot;inheritedFrom&quot;: &quot;A String&quot;, # Deprecated - use permissionDetails/inheritedFrom instead.
893 &quot;role&quot;: &quot;A String&quot;, # Deprecated - use permissionDetails/role instead.
894 &quot;teamDrivePermissionType&quot;: &quot;A String&quot;, # Deprecated - use permissionDetails/permissionType instead.
895 },
896 ],
897 &quot;type&quot;: &quot;A String&quot;, # The account type. Allowed values are:
John Asmuth614db982014-04-24 15:46:26 -0400898 # - user
899 # - group
900 # - domain
901 # - anyone
Bu Sun Kim65020912020-05-20 12:08:20 -0700902 &quot;value&quot;: &quot;A String&quot;, # 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.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700903 &quot;view&quot;: &quot;A String&quot;, # Indicates the view for this permission. Only populated for permissions that belong to a view. published is the only supported value.
Bu Sun Kim65020912020-05-20 12:08:20 -0700904 &quot;withLink&quot;: True or False, # Whether the link is required for this permission.
John Asmuth614db982014-04-24 15:46:26 -0400905 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800906 ],
907 &quot;properties&quot;: [ # The list of properties.
908 { # A key-value pair attached to a file that is either public or private to an application.
909 # The following limits apply to file properties:
910 # - Maximum of 100 properties total per file
911 # - Maximum of 30 private properties per app
912 # - Maximum of 30 public properties
913 # - Maximum of 124 bytes size limit on (key + value) string in UTF-8 encoding for a single property.
914 &quot;etag&quot;: &quot;A String&quot;, # ETag of the property.
915 &quot;key&quot;: &quot;A String&quot;, # The key of this property.
916 &quot;kind&quot;: &quot;drive#property&quot;, # This is always drive#property.
917 &quot;selfLink&quot;: &quot;A String&quot;, # The link back to this property.
918 &quot;value&quot;: &quot;A String&quot;, # The value of this property.
919 &quot;visibility&quot;: &quot;A String&quot;, # The visibility of this property. Allowed values are PRIVATE and PUBLIC. (Default: PRIVATE)
Bu Sun Kim65020912020-05-20 12:08:20 -0700920 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800921 ],
922 &quot;quotaBytesUsed&quot;: &quot;A String&quot;, # The number of quota bytes used by this file.
923 &quot;selfLink&quot;: &quot;A String&quot;, # A link back to this file.
924 &quot;shareable&quot;: True or False, # Deprecated: use capabilities/canShare.
925 &quot;shared&quot;: True or False, # Whether the file has been shared. Not populated for items in shared drives.
926 &quot;sharedWithMeDate&quot;: &quot;A String&quot;, # Time at which this file was shared with the user (formatted RFC 3339 timestamp).
927 &quot;sharingUser&quot;: { # Information about a Drive user. # User that shared the item with the current user, if available.
928 &quot;displayName&quot;: &quot;A String&quot;, # A plain text displayable name for this user.
929 &quot;emailAddress&quot;: &quot;A String&quot;, # The email address of the user.
930 &quot;isAuthenticatedUser&quot;: True or False, # Whether this user is the same as the authenticated user for whom the request was made.
931 &quot;kind&quot;: &quot;drive#user&quot;, # This is always drive#user.
932 &quot;permissionId&quot;: &quot;A String&quot;, # The user&#x27;s ID as visible in the permissions collection.
933 &quot;picture&quot;: { # The user&#x27;s profile picture.
934 &quot;url&quot;: &quot;A String&quot;, # A URL that points to a profile picture of this user.
935 },
John Asmuth614db982014-04-24 15:46:26 -0400936 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800937 &quot;shortcutDetails&quot;: { # Shortcut file details. Only populated for shortcut files, which have the mimeType field set to application/vnd.google-apps.shortcut.
938 &quot;targetId&quot;: &quot;A String&quot;, # The ID of the file that this shortcut points to.
939 &quot;targetMimeType&quot;: &quot;A String&quot;, # The MIME type of the file that this shortcut points to. The value of this field is a snapshot of the target&#x27;s MIME type, captured when the shortcut is created.
Bu Sun Kim65020912020-05-20 12:08:20 -0700940 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800941 &quot;spaces&quot;: [ # The list of spaces which contain the file. Supported values are &#x27;drive&#x27;, &#x27;appDataFolder&#x27; and &#x27;photos&#x27;.
942 &quot;A String&quot;,
943 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700944 &quot;teamDriveId&quot;: &quot;A String&quot;, # Deprecated - use driveId instead.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800945 &quot;thumbnail&quot;: { # A thumbnail for the file. This will only be used if a standard thumbnail cannot be generated.
946 &quot;image&quot;: &quot;A String&quot;, # The URL-safe Base64 encoded bytes of the thumbnail image. It should conform to RFC 4648 section 5.
947 &quot;mimeType&quot;: &quot;A String&quot;, # The MIME type of the thumbnail.
948 },
949 &quot;thumbnailLink&quot;: &quot;A String&quot;, # A short-lived link to the file&#x27;s thumbnail. Typically lasts on the order of hours. Only populated when the requesting app can access the file&#x27;s content. If the file isn&#x27;t shared publicly, the URL returned in Files.thumbnailLink must be fetched using a credentialed request.
950 &quot;thumbnailVersion&quot;: &quot;A String&quot;, # The thumbnail version for use in thumbnail cache invalidation.
951 &quot;title&quot;: &quot;A String&quot;, # The title of this file. Note that for immutable items such as the top level folders of shared drives, My Drive root folder, and Application Data folder the title is constant.
952 &quot;trashedDate&quot;: &quot;A String&quot;, # The time that the item was trashed (formatted RFC 3339 timestamp). Only populated for items in shared drives.
953 &quot;trashingUser&quot;: { # Information about a Drive user. # If the file has been explicitly trashed, the user who trashed it. Only populated for items in shared drives.
954 &quot;displayName&quot;: &quot;A String&quot;, # A plain text displayable name for this user.
955 &quot;emailAddress&quot;: &quot;A String&quot;, # The email address of the user.
956 &quot;isAuthenticatedUser&quot;: True or False, # Whether this user is the same as the authenticated user for whom the request was made.
957 &quot;kind&quot;: &quot;drive#user&quot;, # This is always drive#user.
958 &quot;permissionId&quot;: &quot;A String&quot;, # The user&#x27;s ID as visible in the permissions collection.
959 &quot;picture&quot;: { # The user&#x27;s profile picture.
960 &quot;url&quot;: &quot;A String&quot;, # A URL that points to a profile picture of this user.
961 },
962 },
963 &quot;userPermission&quot;: { # A permission for a file. # The permissions for the authenticated user on this file.
964 &quot;additionalRoles&quot;: [ # Additional roles for this user. Only commenter is currently allowed, though more may be supported in the future.
965 &quot;A String&quot;,
966 ],
967 &quot;authKey&quot;: &quot;A String&quot;, # Deprecated.
968 &quot;deleted&quot;: True or False, # Whether the account associated with this permission has been deleted. This field only pertains to user and group permissions.
969 &quot;domain&quot;: &quot;A String&quot;, # 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.
970 &quot;emailAddress&quot;: &quot;A String&quot;, # The email address of the user or group this permission refers to. This is an output-only field which is present when the permission type is user or group.
971 &quot;etag&quot;: &quot;A String&quot;, # The ETag of the permission.
972 &quot;expirationDate&quot;: &quot;A String&quot;, # The time at which this permission will expire (RFC 3339 date-time). Expiration dates have the following restrictions:
973 # - They cannot be set on shared drive items
974 # - They can only be set on user and group permissions
975 # - The date must be in the future
976 # - The date cannot be more than a year in the future
977 # - The date can only be set on drive.permissions.update or drive.permissions.patch requests
978 &quot;id&quot;: &quot;A String&quot;, # 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.
979 &quot;kind&quot;: &quot;drive#permission&quot;, # This is always drive#permission.
980 &quot;name&quot;: &quot;A String&quot;, # The name for this permission.
981 &quot;permissionDetails&quot;: [ # Details of whether the permissions on this shared drive item are inherited or directly on this item. This is an output-only field which is present only for shared drive items.
982 {
983 &quot;additionalRoles&quot;: [ # Additional roles for this user. Only commenter is currently possible, though more may be supported in the future.
984 &quot;A String&quot;,
985 ],
986 &quot;inherited&quot;: True or False, # Whether this permission is inherited. This field is always populated. This is an output-only field.
987 &quot;inheritedFrom&quot;: &quot;A String&quot;, # The ID of the item from which this permission is inherited. This is an output-only field.
988 &quot;permissionType&quot;: &quot;A String&quot;, # The permission type for this user. While new values may be added in future, the following are currently possible:
989 # - file
990 # - member
991 &quot;role&quot;: &quot;A String&quot;, # The primary role for this user. While new values may be added in the future, the following are currently possible:
992 # - organizer
993 # - fileOrganizer
994 # - writer
995 # - reader
996 },
997 ],
998 &quot;photoLink&quot;: &quot;A String&quot;, # A link to the profile photo, if available.
999 &quot;role&quot;: &quot;A String&quot;, # The primary role for this user. While new values may be supported in the future, the following are currently allowed:
1000 # - owner
1001 # - organizer
1002 # - fileOrganizer
1003 # - writer
1004 # - reader
1005 &quot;selfLink&quot;: &quot;A String&quot;, # A link back to this permission.
1006 &quot;teamDrivePermissionDetails&quot;: [ # Deprecated - use permissionDetails instead.
1007 {
1008 &quot;additionalRoles&quot;: [ # Deprecated - use permissionDetails/additionalRoles instead.
1009 &quot;A String&quot;,
1010 ],
1011 &quot;inherited&quot;: True or False, # Deprecated - use permissionDetails/inherited instead.
1012 &quot;inheritedFrom&quot;: &quot;A String&quot;, # Deprecated - use permissionDetails/inheritedFrom instead.
1013 &quot;role&quot;: &quot;A String&quot;, # Deprecated - use permissionDetails/role instead.
1014 &quot;teamDrivePermissionType&quot;: &quot;A String&quot;, # Deprecated - use permissionDetails/permissionType instead.
1015 },
1016 ],
1017 &quot;type&quot;: &quot;A String&quot;, # The account type. Allowed values are:
1018 # - user
1019 # - group
1020 # - domain
1021 # - anyone
1022 &quot;value&quot;: &quot;A String&quot;, # 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.
1023 &quot;view&quot;: &quot;A String&quot;, # Indicates the view for this permission. Only populated for permissions that belong to a view. published is the only supported value.
1024 &quot;withLink&quot;: True or False, # Whether the link is required for this permission.
1025 },
1026 &quot;version&quot;: &quot;A String&quot;, # 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.
1027 &quot;videoMediaMetadata&quot;: { # Metadata about video media. This will only be present for video types.
1028 &quot;durationMillis&quot;: &quot;A String&quot;, # The duration of the video in milliseconds.
1029 &quot;height&quot;: 42, # The height of the video in pixels.
1030 &quot;width&quot;: 42, # The width of the video in pixels.
1031 },
1032 &quot;webContentLink&quot;: &quot;A String&quot;, # A link for downloading the content of the file in a browser using cookie based authentication. In cases where the content is shared publicly, the content can be downloaded without any credentials.
1033 &quot;webViewLink&quot;: &quot;A String&quot;, # A link only available on public folders for viewing their static web assets (HTML, CSS, JS, etc) via Google Drive&#x27;s Website Hosting.
1034 &quot;writersCanShare&quot;: True or False, # Whether writers can share the document with other users. Not populated for items in shared drives.
John Asmuth614db982014-04-24 15:46:26 -04001035 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001036 &quot;fileId&quot;: &quot;A String&quot;, # The ID of the file associated with this change.
1037 &quot;id&quot;: &quot;A String&quot;, # The ID of the change.
1038 &quot;kind&quot;: &quot;drive#change&quot;, # This is always drive#change.
1039 &quot;modificationDate&quot;: &quot;A String&quot;, # The time of this modification.
1040 &quot;selfLink&quot;: &quot;A String&quot;, # A link back to this change.
1041 &quot;teamDrive&quot;: { # Deprecated: use the drive collection instead. # Deprecated - use drive instead.
1042 &quot;backgroundImageFile&quot;: { # An image file and cropping parameters from which a background image for this Team Drive is set. This is a write only field; it can only be set on drive.teamdrives.update requests that don&#x27;t set themeId. When specified, all fields of the backgroundImageFile must be set.
1043 &quot;id&quot;: &quot;A String&quot;, # The ID of an image file in Drive to use for the background image.
1044 &quot;width&quot;: 3.14, # The width of the cropped image in the closed range of 0 to 1. This value represents the width of the cropped image divided by the width of the entire image. The height is computed by applying a width to height aspect ratio of 80 to 9. The resulting image must be at least 1280 pixels wide and 144 pixels high.
1045 &quot;xCoordinate&quot;: 3.14, # The X coordinate of the upper left corner of the cropping area in the background image. This is a value in the closed range of 0 to 1. This value represents the horizontal distance from the left side of the entire image to the left side of the cropping area divided by the width of the entire image.
1046 &quot;yCoordinate&quot;: 3.14, # The Y coordinate of the upper left corner of the cropping area in the background image. This is a value in the closed range of 0 to 1. This value represents the vertical distance from the top side of the entire image to the top side of the cropping area divided by the height of the entire image.
1047 },
1048 &quot;backgroundImageLink&quot;: &quot;A String&quot;, # A short-lived link to this Team Drive&#x27;s background image.
1049 &quot;capabilities&quot;: { # Capabilities the current user has on this Team Drive.
1050 &quot;canAddChildren&quot;: True or False, # Whether the current user can add children to folders in this Team Drive.
1051 &quot;canChangeCopyRequiresWriterPermissionRestriction&quot;: True or False, # Whether the current user can change the copyRequiresWriterPermission restriction of this Team Drive.
1052 &quot;canChangeDomainUsersOnlyRestriction&quot;: True or False, # Whether the current user can change the domainUsersOnly restriction of this Team Drive.
1053 &quot;canChangeTeamDriveBackground&quot;: True or False, # Whether the current user can change the background of this Team Drive.
1054 &quot;canChangeTeamMembersOnlyRestriction&quot;: True or False, # Whether the current user can change the teamMembersOnly restriction of this Team Drive.
1055 &quot;canComment&quot;: True or False, # Whether the current user can comment on files in this Team Drive.
1056 &quot;canCopy&quot;: True or False, # Whether the current user can copy files in this Team Drive.
1057 &quot;canDeleteChildren&quot;: True or False, # Whether the current user can delete children from folders in this Team Drive.
1058 &quot;canDeleteTeamDrive&quot;: True or False, # Whether the current user can delete this Team Drive. Attempting to delete the Team Drive may still fail if there are untrashed items inside the Team Drive.
1059 &quot;canDownload&quot;: True or False, # Whether the current user can download files in this Team Drive.
1060 &quot;canEdit&quot;: True or False, # Whether the current user can edit files in this Team Drive
1061 &quot;canListChildren&quot;: True or False, # Whether the current user can list the children of folders in this Team Drive.
1062 &quot;canManageMembers&quot;: True or False, # Whether the current user can add members to this Team Drive or remove them or change their role.
1063 &quot;canReadRevisions&quot;: True or False, # Whether the current user can read the revisions resource of files in this Team Drive.
1064 &quot;canRemoveChildren&quot;: True or False, # Deprecated - use canDeleteChildren or canTrashChildren instead.
1065 &quot;canRename&quot;: True or False, # Whether the current user can rename files or folders in this Team Drive.
1066 &quot;canRenameTeamDrive&quot;: True or False, # Whether the current user can rename this Team Drive.
1067 &quot;canShare&quot;: True or False, # Whether the current user can share files or folders in this Team Drive.
1068 &quot;canTrashChildren&quot;: True or False, # Whether the current user can trash children from folders in this Team Drive.
1069 },
1070 &quot;colorRgb&quot;: &quot;A String&quot;, # The color of this Team Drive as an RGB hex string. It can only be set on a drive.teamdrives.update request that does not set themeId.
1071 &quot;createdDate&quot;: &quot;A String&quot;, # The time at which the Team Drive was created (RFC 3339 date-time).
1072 &quot;id&quot;: &quot;A String&quot;, # The ID of this Team Drive which is also the ID of the top level folder of this Team Drive.
1073 &quot;kind&quot;: &quot;drive#teamDrive&quot;, # This is always drive#teamDrive
1074 &quot;name&quot;: &quot;A String&quot;, # The name of this Team Drive.
1075 &quot;restrictions&quot;: { # A set of restrictions that apply to this Team Drive or items inside this Team Drive.
1076 &quot;adminManagedRestrictions&quot;: True or False, # Whether administrative privileges on this Team Drive are required to modify restrictions.
1077 &quot;copyRequiresWriterPermission&quot;: True or False, # Whether the options to copy, print, or download files inside this Team Drive, should be disabled for readers and commenters. When this restriction is set to true, it will override the similarly named field to true for any file inside this Team Drive.
1078 &quot;domainUsersOnly&quot;: True or False, # Whether access to this Team Drive and items inside this Team Drive is restricted to users of the domain to which this Team Drive belongs. This restriction may be overridden by other sharing policies controlled outside of this Team Drive.
1079 &quot;teamMembersOnly&quot;: True or False, # Whether access to items inside this Team Drive is restricted to members of this Team Drive.
1080 },
1081 &quot;themeId&quot;: &quot;A String&quot;, # The ID of the theme from which the background image and color will be set. The set of possible teamDriveThemes can be retrieved from a drive.about.get response. When not specified on a drive.teamdrives.insert request, a random theme is chosen from which the background image and color are set. This is a write-only field; it can only be set on requests that don&#x27;t set colorRgb or backgroundImageFile.
1082 },
1083 &quot;teamDriveId&quot;: &quot;A String&quot;, # Deprecated - use driveId instead.
1084 &quot;type&quot;: &quot;A String&quot;, # Deprecated - use changeType instead.
1085 },
1086 ],
1087 &quot;kind&quot;: &quot;drive#changeList&quot;, # This is always drive#changeList.
1088 &quot;largestChangeId&quot;: &quot;A String&quot;, # The current largest change ID.
1089 &quot;newStartPageToken&quot;: &quot;A String&quot;, # The starting page token for future changes. This will be present only if the end of the current changes list has been reached.
1090 &quot;nextLink&quot;: &quot;A String&quot;, # A link to the next page of changes.
1091 &quot;nextPageToken&quot;: &quot;A String&quot;, # The page token for the next page of changes. This will be absent if the end of the changes list has been reached. If the token is rejected for any reason, it should be discarded, and pagination should be restarted from the first page of results.
1092 &quot;selfLink&quot;: &quot;A String&quot;, # A link back to this list.
1093}</pre>
John Asmuth614db982014-04-24 15:46:26 -04001094</div>
1095
1096<div class="method">
1097 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
1098 <pre>Retrieves the next page of results.
1099
1100Args:
1101 previous_request: The request for the previous page. (required)
1102 previous_response: The response from the request for the previous page. (required)
1103
1104Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -07001105 A request object that you can call &#x27;execute()&#x27; on to request the next
John Asmuth614db982014-04-24 15:46:26 -04001106 page. Returns None if there are no more items in the collection.
1107 </pre>
1108</div>
1109
1110<div class="method">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001111 <code class="details" id="watch">watch(body=None, driveId=None, includeCorpusRemovals=None, includeDeleted=None, includeItemsFromAllDrives=None, includePermissionsForView=None, includeSubscribed=None, includeTeamDriveItems=None, maxResults=None, pageToken=None, spaces=None, startChangeId=None, supportsAllDrives=None, supportsTeamDrives=None, teamDriveId=None)</code>
John Asmuth614db982014-04-24 15:46:26 -04001112 <pre>Subscribe to changes for a user.
1113
1114Args:
Dan O'Mearadd494642020-05-01 07:42:23 -07001115 body: object, The request body.
John Asmuth614db982014-04-24 15:46:26 -04001116 The object takes the form of:
1117
1118{ # An notification channel used to watch for resource changes.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001119 &quot;address&quot;: &quot;A String&quot;, # The address where notifications are delivered for this channel.
1120 &quot;expiration&quot;: &quot;A String&quot;, # Date and time of notification channel expiration, expressed as a Unix timestamp, in milliseconds. Optional.
1121 &quot;id&quot;: &quot;A String&quot;, # A UUID or similar unique string that identifies this channel.
1122 &quot;kind&quot;: &quot;api#channel&quot;, # Identifies this as a notification channel used to watch for changes to a resource, which is &quot;api#channel&quot;.
1123 &quot;params&quot;: { # Additional parameters controlling delivery channel behavior. Optional.
1124 &quot;a_key&quot;: &quot;A String&quot;, # Declares a new parameter by name.
1125 },
1126 &quot;payload&quot;: True or False, # A Boolean value to indicate whether payload is wanted. Optional.
1127 &quot;resourceId&quot;: &quot;A String&quot;, # An opaque ID that identifies the resource being watched on this channel. Stable across different API versions.
1128 &quot;resourceUri&quot;: &quot;A String&quot;, # A version-specific identifier for the watched resource.
1129 &quot;token&quot;: &quot;A String&quot;, # An arbitrary string delivered to the target address with each notification delivered over this channel. Optional.
1130 &quot;type&quot;: &quot;A String&quot;, # The type of delivery mechanism used for this channel.
1131}
John Asmuth614db982014-04-24 15:46:26 -04001132
Dan O'Mearadd494642020-05-01 07:42:23 -07001133 driveId: string, The shared drive from which changes are returned. If specified the change IDs will be reflective of the shared drive; use the combined drive ID and change ID as an identifier.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001134 includeCorpusRemovals: boolean, Whether changes should include the file resource if the file is still accessible by the user at the time of the request, even when a file was removed from the list of changes and there will be no further change entries for this file.
Bu Sun Kim65020912020-05-20 12:08:20 -07001135 includeDeleted: boolean, Whether to include changes indicating that items have been removed from the list of changes, for example by deletion or loss of access.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001136 includeItemsFromAllDrives: boolean, Whether both My Drive and shared drive items should be included in results.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001137 includePermissionsForView: string, Specifies which additional view&#x27;s permissions to include in the response. Only &#x27;published&#x27; is supported.
Bu Sun Kim65020912020-05-20 12:08:20 -07001138 includeSubscribed: boolean, Whether to include changes outside the My Drive hierarchy in the result. When set to false, changes to files such as those in the Application Data folder or shared files which have not been added to My Drive are omitted from the result.
1139 includeTeamDriveItems: boolean, Deprecated use includeItemsFromAllDrives instead.
1140 maxResults: integer, Maximum number of changes to return.
1141 pageToken: string, The token for continuing a previous list request on the next page. This should be set to the value of &#x27;nextPageToken&#x27; from the previous response or to the response from the getStartPageToken method.
1142 spaces: string, A comma-separated list of spaces to query. Supported values are &#x27;drive&#x27;, &#x27;appDataFolder&#x27; and &#x27;photos&#x27;.
1143 startChangeId: string, Deprecated - use pageToken instead.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001144 supportsAllDrives: boolean, Whether the requesting application supports both My Drives and shared drives.
Bu Sun Kim65020912020-05-20 12:08:20 -07001145 supportsTeamDrives: boolean, Deprecated use supportsAllDrives instead.
1146 teamDriveId: string, Deprecated use driveId instead.
John Asmuth614db982014-04-24 15:46:26 -04001147
1148Returns:
1149 An object of the form:
1150
1151 { # An notification channel used to watch for resource changes.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001152 &quot;address&quot;: &quot;A String&quot;, # The address where notifications are delivered for this channel.
1153 &quot;expiration&quot;: &quot;A String&quot;, # Date and time of notification channel expiration, expressed as a Unix timestamp, in milliseconds. Optional.
1154 &quot;id&quot;: &quot;A String&quot;, # A UUID or similar unique string that identifies this channel.
1155 &quot;kind&quot;: &quot;api#channel&quot;, # Identifies this as a notification channel used to watch for changes to a resource, which is &quot;api#channel&quot;.
1156 &quot;params&quot;: { # Additional parameters controlling delivery channel behavior. Optional.
1157 &quot;a_key&quot;: &quot;A String&quot;, # Declares a new parameter by name.
1158 },
1159 &quot;payload&quot;: True or False, # A Boolean value to indicate whether payload is wanted. Optional.
1160 &quot;resourceId&quot;: &quot;A String&quot;, # An opaque ID that identifies the resource being watched on this channel. Stable across different API versions.
1161 &quot;resourceUri&quot;: &quot;A String&quot;, # A version-specific identifier for the watched resource.
1162 &quot;token&quot;: &quot;A String&quot;, # An arbitrary string delivered to the target address with each notification delivered over this channel. Optional.
1163 &quot;type&quot;: &quot;A String&quot;, # The type of delivery mechanism used for this channel.
1164}</pre>
John Asmuth614db982014-04-24 15:46:26 -04001165</div>
1166
1167</body></html>