• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<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.files.html">files</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
78  <code><a href="#copy">copy(fileId, body, supportsTeamDrives=None, pinned=None, ocrLanguage=None, ocr=None, visibility=None, timedTextTrackName=None, convert=None, supportsAllDrives=None, timedTextLanguage=None)</a></code></p>
79<p class="firstline">Creates a copy of the specified file.</p>
80<p class="toc_element">
81  <code><a href="#delete">delete(fileId, supportsTeamDrives=None, supportsAllDrives=None)</a></code></p>
82<p class="firstline">Permanently deletes a file by ID. Skips the trash. The currently authenticated user must own the file or be an organizer on the parent for shared drive files.</p>
83<p class="toc_element">
84  <code><a href="#emptyTrash">emptyTrash()</a></code></p>
85<p class="firstline">Permanently deletes all of the user's trashed files.</p>
86<p class="toc_element">
87  <code><a href="#export">export(fileId, mimeType)</a></code></p>
88<p class="firstline">Exports a Google Doc to the requested MIME type and returns the exported content. Please note that the exported content is limited to 10MB.</p>
89<p class="toc_element">
90  <code><a href="#export_media">export_media(fileId, mimeType)</a></code></p>
91<p class="firstline">Exports a Google Doc to the requested MIME type and returns the exported content. Please note that the exported content is limited to 10MB.</p>
92<p class="toc_element">
93  <code><a href="#generateIds">generateIds(space=None, maxResults=None)</a></code></p>
94<p class="firstline">Generates a set of file IDs which can be provided in insert requests.</p>
95<p class="toc_element">
96  <code><a href="#get">get(fileId, projection=None, revisionId=None, supportsTeamDrives=None, supportsAllDrives=None, acknowledgeAbuse=None, updateViewedDate=None)</a></code></p>
97<p class="firstline">Gets a file's metadata by ID.</p>
98<p class="toc_element">
99  <code><a href="#get_media">get_media(fileId, projection=None, revisionId=None, supportsTeamDrives=None, supportsAllDrives=None, acknowledgeAbuse=None, updateViewedDate=None)</a></code></p>
100<p class="firstline">Gets a file's metadata by ID.</p>
101<p class="toc_element">
102  <code><a href="#insert">insert(body=None, supportsTeamDrives=None, media_body=None, ocrLanguage=None, ocr=None, pinned=None, visibility=None, timedTextTrackName=None, convert=None, useContentAsIndexableText=None, supportsAllDrives=None, media_mime_type=None, timedTextLanguage=None)</a></code></p>
103<p class="firstline">Insert a new file.</p>
104<p class="toc_element">
105  <code><a href="#list">list(orderBy=None, projection=None, supportsTeamDrives=None, spaces=None, q=None, pageToken=None, corpus=None, maxResults=None, teamDriveId=None, includeItemsFromAllDrives=None, includeTeamDriveItems=None, corpora=None, supportsAllDrives=None, driveId=None)</a></code></p>
106<p class="firstline">Lists the user's files.</p>
107<p class="toc_element">
108  <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
109<p class="firstline">Retrieves the next page of results.</p>
110<p class="toc_element">
111  <code><a href="#patch">patch(fileId, body, supportsTeamDrives=None, newRevision=None, modifiedDateBehavior=None, pinned=None, ocrLanguage=None, ocr=None, addParents=None, removeParents=None, updateViewedDate=None, timedTextTrackName=None, convert=None, useContentAsIndexableText=None, supportsAllDrives=None, setModifiedDate=None, timedTextLanguage=None)</a></code></p>
112<p class="firstline">Updates file metadata and/or content. This method supports patch semantics.</p>
113<p class="toc_element">
114  <code><a href="#touch">touch(fileId, supportsTeamDrives=None, supportsAllDrives=None)</a></code></p>
115<p class="firstline">Set the file's updated time to the current server time.</p>
116<p class="toc_element">
117  <code><a href="#trash">trash(fileId, supportsTeamDrives=None, supportsAllDrives=None)</a></code></p>
118<p class="firstline">Moves a file to the trash. The currently authenticated user must own the file or be at least a fileOrganizer on the parent for shared drive files.</p>
119<p class="toc_element">
120  <code><a href="#untrash">untrash(fileId, supportsTeamDrives=None, supportsAllDrives=None)</a></code></p>
121<p class="firstline">Restores a file from the trash.</p>
122<p class="toc_element">
123  <code><a href="#update">update(fileId, body=None, supportsTeamDrives=None, newRevision=None, modifiedDateBehavior=None, media_body=None, ocrLanguage=None, ocr=None, pinned=None, addParents=None, removeParents=None, updateViewedDate=None, timedTextTrackName=None, convert=None, useContentAsIndexableText=None, supportsAllDrives=None, media_mime_type=None, setModifiedDate=None, timedTextLanguage=None)</a></code></p>
124<p class="firstline">Updates file metadata and/or content.</p>
125<p class="toc_element">
126  <code><a href="#watch">watch(fileId, body, projection=None, revisionId=None, supportsTeamDrives=None, supportsAllDrives=None, acknowledgeAbuse=None, updateViewedDate=None)</a></code></p>
127<p class="firstline">Subscribe to changes on a file</p>
128<p class="toc_element">
129  <code><a href="#watch_media">watch_media(fileId, body, projection=None, revisionId=None, supportsTeamDrives=None, supportsAllDrives=None, acknowledgeAbuse=None, updateViewedDate=None)</a></code></p>
130<p class="firstline">Subscribe to changes on a file</p>
131<h3>Method Details</h3>
132<div class="method">
133    <code class="details" id="copy">copy(fileId, body, supportsTeamDrives=None, pinned=None, ocrLanguage=None, ocr=None, visibility=None, timedTextTrackName=None, convert=None, supportsAllDrives=None, timedTextLanguage=None)</code>
134  <pre>Creates a copy of the specified file.
135
136Args:
137  fileId: string, The ID of the file to copy. (required)
138  body: object, The request body. (required)
139    The object takes the form of:
140
141{ # The metadata for a file.
142  "hasThumbnail": True or False, # Whether this file has a thumbnail. This does not indicate whether the requesting app has access to the thumbnail. To check access, look for the presence of the thumbnailLink field.
143  "lastViewedByMeDate": "A String", # Last time this file was viewed by the user (formatted RFC 3339 timestamp).
144  "trashedDate": "A String", # The time that the item was trashed (formatted RFC 3339 timestamp). Only populated for items in shared drives.
145  "version": "A String", # A monotonically increasing version number for the file. This reflects every change made to the file on the server, even those not visible to the requesting user.
146  "appDataContents": True or False, # Whether this file is in the Application Data folder.
147  "thumbnailLink": "A String", # A short-lived link to the file's thumbnail. Typically lasts on the order of hours. Only populated when the requesting app can access the file's content.
148  "labels": { # A group of labels for the file.
149    "restricted": True or False, # Deprecated - use copyRequiresWriterPermission instead.
150    "modified": True or False, # Whether the file has been modified by this user.
151    "trashed": True or False, # Whether this file has been trashed. This label applies to all users accessing the file; however, only owners are allowed to see and untrash files.
152    "hidden": True or False, # Deprecated.
153    "starred": True or False, # Whether this file is starred by the user.
154    "viewed": True or False, # Whether this file has been viewed by this user.
155  },
156  "indexableText": { # Indexable text attributes for the file (can only be written)
157    "text": "A String", # The text to be indexed for this file.
158  },
159  "thumbnailVersion": "A String", # The thumbnail version for use in thumbnail cache invalidation.
160  "explicitlyTrashed": True or False, # Whether this file has been explicitly trashed, as opposed to recursively trashed.
161  "isAppAuthorized": True or False, # Whether the file was created or opened by the requesting app.
162  "lastModifyingUserName": "A String", # Name of the last user to modify this file.
163  "writersCanShare": True or False, # Whether writers can share the document with other users. Not populated for items in shared drives.
164  "owners": [ # The owner(s) of this file. Not populated for items in shared drives.
165    { # Information about a Drive user.
166      "picture": { # The user's profile picture.
167        "url": "A String", # A URL that points to a profile picture of this user.
168      },
169      "kind": "drive#user", # This is always drive#user.
170      "displayName": "A String", # A plain text displayable name for this user.
171      "permissionId": "A String", # The user's ID as visible in the permissions collection.
172      "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
173      "emailAddress": "A String", # The email address of the user.
174    },
175  ],
176  "ownedByMe": True or False, # Whether the file is owned by the current user. Not populated for items in shared drives.
177  "id": "A String", # The ID of the file.
178  "sharingUser": { # Information about a Drive user. # User that shared the item with the current user, if available.
179    "picture": { # The user's profile picture.
180      "url": "A String", # A URL that points to a profile picture of this user.
181    },
182    "kind": "drive#user", # This is always drive#user.
183    "displayName": "A String", # A plain text displayable name for this user.
184    "permissionId": "A String", # The user's ID as visible in the permissions collection.
185    "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
186    "emailAddress": "A String", # The email address of the user.
187  },
188  "trashingUser": { # Information about a Drive user. # If the file has been explicitly trashed, the user who trashed it. Only populated for items in shared drives.
189    "picture": { # The user's profile picture.
190      "url": "A String", # A URL that points to a profile picture of this user.
191    },
192    "kind": "drive#user", # This is always drive#user.
193    "displayName": "A String", # A plain text displayable name for this user.
194    "permissionId": "A String", # The user's ID as visible in the permissions collection.
195    "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
196    "emailAddress": "A String", # The email address of the user.
197  },
198  "downloadUrl": "A String", # 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 Google Docs or shortcut files.
199  "mimeType": "A String", # 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's MIME type.
200  "lastModifyingUser": { # Information about a Drive user. # The last user to modify this file.
201    "picture": { # The user's profile picture.
202      "url": "A String", # A URL that points to a profile picture of this user.
203    },
204    "kind": "drive#user", # This is always drive#user.
205    "displayName": "A String", # A plain text displayable name for this user.
206    "permissionId": "A String", # The user's ID as visible in the permissions collection.
207    "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
208    "emailAddress": "A String", # The email address of the user.
209  },
210  "copyable": True or False, # Deprecated: use capabilities/canCopy.
211  "folderColorRgb": "A String", # Folder color as an RGB hex string if the file is a folder. The list of supported colors is available in the folderColorPalette field of the About resource. If an unsupported color is specified, it will be changed to the closest color in the palette. Not populated for items in shared drives.
212  "markedViewedByMeDate": "A String", # Deprecated.
213  "ownerNames": [ # Name(s) of the owner(s) of this file. Not populated for items in shared drives.
214    "A String",
215  ],
216  "capabilities": { # Capabilities the current user has on this file. Each capability corresponds to a fine-grained action that a user may take.
217    "canMoveItemOutOfDrive": 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.
218    "canUntrash": True or False, # Whether the current user can restore this file from trash.
219    "canMoveItemWithinTeamDrive": True or False, # Deprecated - use canMoveItemWithinDrive instead.
220    "canDeleteChildren": 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.
221    "canMoveChildrenWithinTeamDrive": True or False, # Deprecated - use canMoveChildrenWithinDrive instead.
222    "canListChildren": True or False, # Whether the current user can list the children of this folder. This is always false when the item is not a folder.
223    "canRename": True or False, # Whether the current user can rename this file.
224    "canReadDrive": True or False, # Whether the current user can read the shared drive to which this file belongs. Only populated for items in shared drives.
225    "canAddChildren": True or False, # Whether the current user can add children to this folder. This is always false when the item is not a folder.
226    "canChangeRestrictedDownload": True or False, # Deprecated
227    "canShare": True or False, # Whether the current user can modify the sharing settings for this file.
228    "canTrashChildren": 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.
229    "canMoveChildrenWithinDrive": True or False, # Whether the current user can move children of this folder within the shared drive. This is false when the item is not a folder. Only populated for items in shared drives.
230    "canReadRevisions": 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.
231    "canMoveItemWithinDrive": True or False, # Whether the current user can move this item within this shared drive. Note that a request to change the parent of the item may still fail depending on the new parent that is being added. Only populated for items in shared drives.
232    "canCopy": 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.
233    "canMoveItemIntoTeamDrive": True or False, # Deprecated - use canMoveItemOutOfDrive instead.
234    "canMoveItemOutOfTeamDrive": True or False, # Deprecated - use canMoveItemOutOfDrive instead.
235    "canComment": True or False, # Whether the current user can comment on this file.
236    "canMoveChildrenOutOfDrive": 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.
237    "canTrash": True or False, # Whether the current user can move this file to trash.
238    "canDelete": True or False, # Whether the current user can delete this file.
239    "canMoveTeamDriveItem": True or False, # Deprecated - use canMoveItemWithinDrive or canMoveItemOutOfDrive instead.
240    "canDownload": True or False, # Whether the current user can download this file.
241    "canChangeCopyRequiresWriterPermission": True or False, # Whether the current user can change the copyRequiresWriterPermission restriction of this file.
242    "canMoveChildrenOutOfTeamDrive": True or False, # Deprecated - use canMoveChildrenOutOfDrive instead.
243    "canRemoveChildren": True or False, # Whether the current user can remove children from this folder. This is always false when the item is not a folder. For a folder in a shared drive, use canDeleteChildren or canTrashChildren instead.
244    "canReadTeamDrive": True or False, # Deprecated - use canReadDrive instead.
245    "canEdit": True or False, # Whether the current user can edit this file.
246  },
247  "sharedWithMeDate": "A String", # Time at which this file was shared with the user (formatted RFC 3339 timestamp).
248  "webViewLink": "A String", # A link only available on public folders for viewing their static web assets (HTML, CSS, JS, etc) via Google Drive's Website Hosting.
249  "etag": "A String", # ETag of the file.
250  "parents": [ # Collection of parent folders which contain this file.
251      # If not specified as part of an insert request, the file will be placed directly in the user's My Drive folder. If not specified as part of a copy request, the file will inherit any discoverable parents of the source file. Update requests can also use the addParents and removeParents parameters to modify the parents list.
252    { # A reference to a file's parent.
253      "selfLink": "A String", # A link back to this reference.
254      "kind": "drive#parentReference", # This is always drive#parentReference.
255      "id": "A String", # The ID of the parent.
256      "isRoot": True or False, # Whether or not the parent is the root folder.
257      "parentLink": "A String", # A link to the parent.
258    },
259  ],
260  "exportLinks": { # Links for exporting Google Docs to specific formats.
261    "a_key": "A String", # A mapping from export format to URL
262  },
263  "shareable": True or False, # Deprecated: use capabilities/canShare.
264  "copyRequiresWriterPermission": True or False, # Whether the options to copy, print, or download this file, should be disabled for readers and commenters.
265  "fullFileExtension": "A String", # The full file extension; extracted from the title. May contain multiple concatenated extensions, such as "tar.gz". 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 Google Docs or shortcut files.
266  "openWithLinks": { # A map of the id of each of the user's apps to a link to open this file with that app. Only populated when the drive.apps.readonly scope is used.
267    "a_key": "A String",
268  },
269  "canReadRevisions": True or False, # Deprecated: use capabilities/canReadRevisions.
270  "imageMediaMetadata": { # Metadata about image media. This will only be present for image types, and its contents will depend on what can be parsed from the image content.
271    "exposureBias": 3.14, # The exposure bias of the photo (APEX value).
272    "exposureTime": 3.14, # The length of the exposure, in seconds.
273    "cameraMake": "A String", # The make of the camera used to create the photo.
274    "maxApertureValue": 3.14, # The smallest f-number of the lens at the focal length used to create the photo (APEX value).
275    "isoSpeed": 42, # The ISO speed used to create the photo.
276    "focalLength": 3.14, # The focal length used to create the photo, in millimeters.
277    "exposureMode": "A String", # The exposure mode used to create the photo.
278    "colorSpace": "A String", # The color space of the photo.
279    "location": { # Geographic location information stored in the image.
280      "latitude": 3.14, # The latitude stored in the image.
281      "altitude": 3.14, # The altitude stored in the image.
282      "longitude": 3.14, # The longitude stored in the image.
283    },
284    "subjectDistance": 42, # The distance to the subject of the photo, in meters.
285    "height": 42, # The height of the image in pixels.
286    "lens": "A String", # The lens used to create the photo.
287    "date": "A String", # The date and time the photo was taken (EXIF format timestamp).
288    "width": 42, # The width of the image in pixels.
289    "meteringMode": "A String", # The metering mode used to create the photo.
290    "flashUsed": True or False, # Whether a flash was used to create the photo.
291    "aperture": 3.14, # The aperture used to create the photo (f-number).
292    "rotation": 42, # The rotation in clockwise degrees from the image's original orientation.
293    "sensor": "A String", # The type of sensor used to create the photo.
294    "whiteBalance": "A String", # The white balance mode used to create the photo.
295    "cameraModel": "A String", # The model of the camera used to create the photo.
296  },
297  "description": "A String", # A short description of the file.
298  "webContentLink": "A String", # 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.
299  "videoMediaMetadata": { # Metadata about video media. This will only be present for video types.
300    "width": 42, # The width of the video in pixels.
301    "durationMillis": "A String", # The duration of the video in milliseconds.
302    "height": 42, # The height of the video in pixels.
303  },
304  "editable": True or False, # Deprecated: use capabilities/canEdit.
305  "kind": "drive#file", # The type of file. This is always drive#file.
306  "canComment": True or False, # Deprecated: use capabilities/canComment.
307  "quotaBytesUsed": "A String", # The number of quota bytes used by this file.
308  "fileSize": "A String", # The size of the file in bytes. This field is only populated for files with content stored in Google Drive; it is not populated for Google Docs or shortcut files.
309  "createdDate": "A String", # Create time for this file (formatted RFC 3339 timestamp).
310  "teamDriveId": "A String", # Deprecated - use driveId instead.
311  "properties": [ # The list of properties.
312    { # A key-value pair attached to a file that is either public or private to an application.
313        # The following limits apply to file properties:
314        # - Maximum of 100 properties total per file
315        # - Maximum of 30 private properties per app
316        # - Maximum of 30 public properties
317        # - Maximum of 124 bytes size limit on (key + value) string in UTF-8 encoding for a single property.
318      "kind": "drive#property", # This is always drive#property.
319      "value": "A String", # The value of this property.
320      "etag": "A String", # ETag of the property.
321      "visibility": "A String", # The visibility of this property. Allowed values are PRIVATE and PUBLIC. (Default: PRIVATE)
322      "key": "A String", # The key of this property.
323      "selfLink": "A String", # The link back to this property.
324    },
325  ],
326  "md5Checksum": "A String", # 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 Google Docs or shortcut files.
327  "iconLink": "A String", # A link to the file's icon.
328  "defaultOpenWithLink": "A String", # A link to open this file with the user's default app for this file. Only populated when the drive.apps.readonly scope is used.
329  "embedLink": "A String", # A link for embedding the file.
330  "alternateLink": "A String", # A link for opening the file in a relevant Google editor or viewer.
331  "shared": True or False, # Whether the file has been shared. Not populated for items in shared drives.
332  "title": "A String", # 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.
333  "modifiedByMeDate": "A String", # 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.
334  "thumbnail": { # A thumbnail for the file. This will only be used if a standard thumbnail cannot be generated.
335    "mimeType": "A String", # The MIME type of the thumbnail.
336    "image": "A String", # The URL-safe Base64 encoded bytes of the thumbnail image. It should conform to RFC 4648 section 5.
337  },
338  "driveId": "A String", # ID of the shared drive the file resides in. Only populated for items in shared drives.
339  "userPermission": { # A permission for a file. # The permissions for the authenticated user on this file.
340    "withLink": True or False, # Whether the link is required for this permission.
341    "domain": "A String", # The domain name of the entity this permission refers to. This is an output-only field which is present when the permission type is user, group or domain.
342    "permissionDetails": [ # 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.
343      {
344        "role": "A String", # The primary role for this user. While new values may be added in the future, the following are currently possible:
345            # - organizer
346            # - fileOrganizer
347            # - writer
348            # - reader
349        "inheritedFrom": "A String", # The ID of the item from which this permission is inherited. This is an output-only field and is only populated for members of the shared drive.
350        "permissionType": "A String", # The permission type for this user. While new values may be added in future, the following are currently possible:
351            # - file
352            # - member
353        "additionalRoles": [ # Additional roles for this user. Only commenter is currently possible, though more may be supported in the future.
354          "A String",
355        ],
356        "inherited": True or False, # Whether this permission is inherited. This field is always populated. This is an output-only field.
357      },
358    ],
359    "name": "A String", # The name for this permission.
360    "teamDrivePermissionDetails": [ # Deprecated - use permissionDetails instead.
361      {
362        "inheritedFrom": "A String", # Deprecated - use permissionDetails/inheritedFrom instead.
363        "role": "A String", # Deprecated - use permissionDetails/role instead.
364        "additionalRoles": [ # Deprecated - use permissionDetails/additionalRoles instead.
365          "A String",
366        ],
367        "teamDrivePermissionType": "A String", # Deprecated - use permissionDetails/permissionType instead.
368        "inherited": True or False, # Deprecated - use permissionDetails/inherited instead.
369      },
370    ],
371    "deleted": True or False, # Whether the account associated with this permission has been deleted. This field only pertains to user and group permissions.
372    "kind": "drive#permission", # This is always drive#permission.
373    "value": "A String", # The email address or domain name for the entity. This is used during inserts and is not populated in responses. When making a drive.permissions.insert request, exactly one of the id or value fields must be specified unless the permission type is anyone, in which case both id and value are ignored.
374    "id": "A String", # The ID of the user this permission refers to, and identical to the permissionId in the About and Files resources. When making a drive.permissions.insert request, exactly one of the id or value fields must be specified unless the permission type is anyone, in which case both id and value are ignored.
375    "authKey": "A String", # Deprecated.
376    "etag": "A String", # The ETag of the permission.
377    "emailAddress": "A String", # 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.
378    "expirationDate": "A String", # The time at which this permission will expire (RFC 3339 date-time). Expiration dates have the following restrictions:
379        # - They can only be set on user and group permissions
380        # - The date must be in the future
381        # - The date cannot be more than a year in the future
382        # - The date can only be set on drive.permissions.update or drive.permissions.patch requests
383    "role": "A String", # The primary role for this user. While new values may be supported in the future, the following are currently allowed:
384        # - owner
385        # - organizer
386        # - fileOrganizer
387        # - writer
388        # - reader
389    "type": "A String", # The account type. Allowed values are:
390        # - user
391        # - group
392        # - domain
393        # - anyone
394    "additionalRoles": [ # Additional roles for this user. Only commenter is currently allowed, though more may be supported in the future.
395      "A String",
396    ],
397    "selfLink": "A String", # A link back to this permission.
398    "photoLink": "A String", # A link to the profile photo, if available.
399  },
400  "spaces": [ # The list of spaces which contain the file. Supported values are 'drive', 'appDataFolder' and 'photos'.
401    "A String",
402  ],
403  "permissionIds": [ # List of permission IDs for users with access to this file.
404    "A String",
405  ],
406  "originalFilename": "A String", # The original filename of the uploaded content if available, or else the original value of the title field. This is only available for files with binary content in Google Drive.
407  "fileExtension": "A String", # The final component of fullFileExtension with trailing text that does not appear to be part of the extension removed. This field is only populated for files with content stored in Google Drive; it is not populated for Google Docs or shortcut files.
408  "hasAugmentedPermissions": True or False, # Whether any users are granted file access directly on this file. This field is only populated for items in shared drives.
409  "permissions": [ # The list of permissions for users with access to this file. Not populated for items in shared drives.
410    { # A permission for a file.
411      "withLink": True or False, # Whether the link is required for this permission.
412      "domain": "A String", # The domain name of the entity this permission refers to. This is an output-only field which is present when the permission type is user, group or domain.
413      "permissionDetails": [ # 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.
414        {
415          "role": "A String", # The primary role for this user. While new values may be added in the future, the following are currently possible:
416              # - organizer
417              # - fileOrganizer
418              # - writer
419              # - reader
420          "inheritedFrom": "A String", # The ID of the item from which this permission is inherited. This is an output-only field and is only populated for members of the shared drive.
421          "permissionType": "A String", # The permission type for this user. While new values may be added in future, the following are currently possible:
422              # - file
423              # - member
424          "additionalRoles": [ # Additional roles for this user. Only commenter is currently possible, though more may be supported in the future.
425            "A String",
426          ],
427          "inherited": True or False, # Whether this permission is inherited. This field is always populated. This is an output-only field.
428        },
429      ],
430      "name": "A String", # The name for this permission.
431      "teamDrivePermissionDetails": [ # Deprecated - use permissionDetails instead.
432        {
433          "inheritedFrom": "A String", # Deprecated - use permissionDetails/inheritedFrom instead.
434          "role": "A String", # Deprecated - use permissionDetails/role instead.
435          "additionalRoles": [ # Deprecated - use permissionDetails/additionalRoles instead.
436            "A String",
437          ],
438          "teamDrivePermissionType": "A String", # Deprecated - use permissionDetails/permissionType instead.
439          "inherited": True or False, # Deprecated - use permissionDetails/inherited instead.
440        },
441      ],
442      "deleted": True or False, # Whether the account associated with this permission has been deleted. This field only pertains to user and group permissions.
443      "kind": "drive#permission", # This is always drive#permission.
444      "value": "A String", # The email address or domain name for the entity. This is used during inserts and is not populated in responses. When making a drive.permissions.insert request, exactly one of the id or value fields must be specified unless the permission type is anyone, in which case both id and value are ignored.
445      "id": "A String", # The ID of the user this permission refers to, and identical to the permissionId in the About and Files resources. When making a drive.permissions.insert request, exactly one of the id or value fields must be specified unless the permission type is anyone, in which case both id and value are ignored.
446      "authKey": "A String", # Deprecated.
447      "etag": "A String", # The ETag of the permission.
448      "emailAddress": "A String", # 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.
449      "expirationDate": "A String", # The time at which this permission will expire (RFC 3339 date-time). Expiration dates have the following restrictions:
450          # - They can only be set on user and group permissions
451          # - The date must be in the future
452          # - The date cannot be more than a year in the future
453          # - The date can only be set on drive.permissions.update or drive.permissions.patch requests
454      "role": "A String", # The primary role for this user. While new values may be supported in the future, the following are currently allowed:
455          # - owner
456          # - organizer
457          # - fileOrganizer
458          # - writer
459          # - reader
460      "type": "A String", # The account type. Allowed values are:
461          # - user
462          # - group
463          # - domain
464          # - anyone
465      "additionalRoles": [ # Additional roles for this user. Only commenter is currently allowed, though more may be supported in the future.
466        "A String",
467      ],
468      "selfLink": "A String", # A link back to this permission.
469      "photoLink": "A String", # A link to the profile photo, if available.
470    },
471  ],
472  "headRevisionId": "A String", # The ID of the file's head revision. This field is only populated for files with content stored in Google Drive; it is not populated for Google Docs or shortcut files.
473  "selfLink": "A String", # A link back to this file.
474  "modifiedDate": "A String", # Last time this file was modified by anyone (formatted RFC 3339 timestamp). This is only mutable on update when the setModifiedDate parameter is set.
475}
476
477  supportsTeamDrives: boolean, Deprecated use supportsAllDrives instead.
478  pinned: boolean, Whether to pin the head revision of the new copy. A file can have a maximum of 200 pinned revisions.
479  ocrLanguage: string, If ocr is true, hints at the language to use. Valid values are BCP 47 codes.
480  ocr: boolean, Whether to attempt OCR on .jpg, .png, .gif, or .pdf uploads.
481  visibility: string, The visibility of the new file. This parameter is only relevant when the source is not a native Google Doc and convert=false.
482    Allowed values
483      DEFAULT - The visibility of the new file is determined by the user's default visibility/sharing policies.
484      PRIVATE - The new file will be visible to only the owner.
485  timedTextTrackName: string, The timed text track name.
486  convert: boolean, Whether to convert this file to the corresponding Google Docs format.
487  supportsAllDrives: boolean, Deprecated - Whether the requesting application supports both My Drives and shared drives. This parameter will only be effective until June 1, 2020. Afterwards all applications are assumed to support shared drives.
488  timedTextLanguage: string, The language of the timed text.
489
490Returns:
491  An object of the form:
492
493    { # The metadata for a file.
494    "hasThumbnail": True or False, # Whether this file has a thumbnail. This does not indicate whether the requesting app has access to the thumbnail. To check access, look for the presence of the thumbnailLink field.
495    "lastViewedByMeDate": "A String", # Last time this file was viewed by the user (formatted RFC 3339 timestamp).
496    "trashedDate": "A String", # The time that the item was trashed (formatted RFC 3339 timestamp). Only populated for items in shared drives.
497    "version": "A String", # A monotonically increasing version number for the file. This reflects every change made to the file on the server, even those not visible to the requesting user.
498    "appDataContents": True or False, # Whether this file is in the Application Data folder.
499    "thumbnailLink": "A String", # A short-lived link to the file's thumbnail. Typically lasts on the order of hours. Only populated when the requesting app can access the file's content.
500    "labels": { # A group of labels for the file.
501      "restricted": True or False, # Deprecated - use copyRequiresWriterPermission instead.
502      "modified": True or False, # Whether the file has been modified by this user.
503      "trashed": True or False, # Whether this file has been trashed. This label applies to all users accessing the file; however, only owners are allowed to see and untrash files.
504      "hidden": True or False, # Deprecated.
505      "starred": True or False, # Whether this file is starred by the user.
506      "viewed": True or False, # Whether this file has been viewed by this user.
507    },
508    "indexableText": { # Indexable text attributes for the file (can only be written)
509      "text": "A String", # The text to be indexed for this file.
510    },
511    "thumbnailVersion": "A String", # The thumbnail version for use in thumbnail cache invalidation.
512    "explicitlyTrashed": True or False, # Whether this file has been explicitly trashed, as opposed to recursively trashed.
513    "isAppAuthorized": True or False, # Whether the file was created or opened by the requesting app.
514    "lastModifyingUserName": "A String", # Name of the last user to modify this file.
515    "writersCanShare": True or False, # Whether writers can share the document with other users. Not populated for items in shared drives.
516    "owners": [ # The owner(s) of this file. Not populated for items in shared drives.
517      { # Information about a Drive user.
518        "picture": { # The user's profile picture.
519          "url": "A String", # A URL that points to a profile picture of this user.
520        },
521        "kind": "drive#user", # This is always drive#user.
522        "displayName": "A String", # A plain text displayable name for this user.
523        "permissionId": "A String", # The user's ID as visible in the permissions collection.
524        "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
525        "emailAddress": "A String", # The email address of the user.
526      },
527    ],
528    "ownedByMe": True or False, # Whether the file is owned by the current user. Not populated for items in shared drives.
529    "id": "A String", # The ID of the file.
530    "sharingUser": { # Information about a Drive user. # User that shared the item with the current user, if available.
531      "picture": { # The user's profile picture.
532        "url": "A String", # A URL that points to a profile picture of this user.
533      },
534      "kind": "drive#user", # This is always drive#user.
535      "displayName": "A String", # A plain text displayable name for this user.
536      "permissionId": "A String", # The user's ID as visible in the permissions collection.
537      "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
538      "emailAddress": "A String", # The email address of the user.
539    },
540    "trashingUser": { # Information about a Drive user. # If the file has been explicitly trashed, the user who trashed it. Only populated for items in shared drives.
541      "picture": { # The user's profile picture.
542        "url": "A String", # A URL that points to a profile picture of this user.
543      },
544      "kind": "drive#user", # This is always drive#user.
545      "displayName": "A String", # A plain text displayable name for this user.
546      "permissionId": "A String", # The user's ID as visible in the permissions collection.
547      "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
548      "emailAddress": "A String", # The email address of the user.
549    },
550    "downloadUrl": "A String", # 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 Google Docs or shortcut files.
551    "mimeType": "A String", # 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's MIME type.
552    "lastModifyingUser": { # Information about a Drive user. # The last user to modify this file.
553      "picture": { # The user's profile picture.
554        "url": "A String", # A URL that points to a profile picture of this user.
555      },
556      "kind": "drive#user", # This is always drive#user.
557      "displayName": "A String", # A plain text displayable name for this user.
558      "permissionId": "A String", # The user's ID as visible in the permissions collection.
559      "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
560      "emailAddress": "A String", # The email address of the user.
561    },
562    "copyable": True or False, # Deprecated: use capabilities/canCopy.
563    "folderColorRgb": "A String", # Folder color as an RGB hex string if the file is a folder. The list of supported colors is available in the folderColorPalette field of the About resource. If an unsupported color is specified, it will be changed to the closest color in the palette. Not populated for items in shared drives.
564    "markedViewedByMeDate": "A String", # Deprecated.
565    "ownerNames": [ # Name(s) of the owner(s) of this file. Not populated for items in shared drives.
566      "A String",
567    ],
568    "capabilities": { # Capabilities the current user has on this file. Each capability corresponds to a fine-grained action that a user may take.
569      "canMoveItemOutOfDrive": 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.
570      "canUntrash": True or False, # Whether the current user can restore this file from trash.
571      "canMoveItemWithinTeamDrive": True or False, # Deprecated - use canMoveItemWithinDrive instead.
572      "canDeleteChildren": 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.
573      "canMoveChildrenWithinTeamDrive": True or False, # Deprecated - use canMoveChildrenWithinDrive instead.
574      "canListChildren": True or False, # Whether the current user can list the children of this folder. This is always false when the item is not a folder.
575      "canRename": True or False, # Whether the current user can rename this file.
576      "canReadDrive": True or False, # Whether the current user can read the shared drive to which this file belongs. Only populated for items in shared drives.
577      "canAddChildren": True or False, # Whether the current user can add children to this folder. This is always false when the item is not a folder.
578      "canChangeRestrictedDownload": True or False, # Deprecated
579      "canShare": True or False, # Whether the current user can modify the sharing settings for this file.
580      "canTrashChildren": 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.
581      "canMoveChildrenWithinDrive": True or False, # Whether the current user can move children of this folder within the shared drive. This is false when the item is not a folder. Only populated for items in shared drives.
582      "canReadRevisions": 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.
583      "canMoveItemWithinDrive": True or False, # Whether the current user can move this item within this shared drive. Note that a request to change the parent of the item may still fail depending on the new parent that is being added. Only populated for items in shared drives.
584      "canCopy": 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.
585      "canMoveItemIntoTeamDrive": True or False, # Deprecated - use canMoveItemOutOfDrive instead.
586      "canMoveItemOutOfTeamDrive": True or False, # Deprecated - use canMoveItemOutOfDrive instead.
587      "canComment": True or False, # Whether the current user can comment on this file.
588      "canMoveChildrenOutOfDrive": 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.
589      "canTrash": True or False, # Whether the current user can move this file to trash.
590      "canDelete": True or False, # Whether the current user can delete this file.
591      "canMoveTeamDriveItem": True or False, # Deprecated - use canMoveItemWithinDrive or canMoveItemOutOfDrive instead.
592      "canDownload": True or False, # Whether the current user can download this file.
593      "canChangeCopyRequiresWriterPermission": True or False, # Whether the current user can change the copyRequiresWriterPermission restriction of this file.
594      "canMoveChildrenOutOfTeamDrive": True or False, # Deprecated - use canMoveChildrenOutOfDrive instead.
595      "canRemoveChildren": True or False, # Whether the current user can remove children from this folder. This is always false when the item is not a folder. For a folder in a shared drive, use canDeleteChildren or canTrashChildren instead.
596      "canReadTeamDrive": True or False, # Deprecated - use canReadDrive instead.
597      "canEdit": True or False, # Whether the current user can edit this file.
598    },
599    "sharedWithMeDate": "A String", # Time at which this file was shared with the user (formatted RFC 3339 timestamp).
600    "webViewLink": "A String", # A link only available on public folders for viewing their static web assets (HTML, CSS, JS, etc) via Google Drive's Website Hosting.
601    "etag": "A String", # ETag of the file.
602    "parents": [ # Collection of parent folders which contain this file.
603        # If not specified as part of an insert request, the file will be placed directly in the user's My Drive folder. If not specified as part of a copy request, the file will inherit any discoverable parents of the source file. Update requests can also use the addParents and removeParents parameters to modify the parents list.
604      { # A reference to a file's parent.
605        "selfLink": "A String", # A link back to this reference.
606        "kind": "drive#parentReference", # This is always drive#parentReference.
607        "id": "A String", # The ID of the parent.
608        "isRoot": True or False, # Whether or not the parent is the root folder.
609        "parentLink": "A String", # A link to the parent.
610      },
611    ],
612    "exportLinks": { # Links for exporting Google Docs to specific formats.
613      "a_key": "A String", # A mapping from export format to URL
614    },
615    "shareable": True or False, # Deprecated: use capabilities/canShare.
616    "copyRequiresWriterPermission": True or False, # Whether the options to copy, print, or download this file, should be disabled for readers and commenters.
617    "fullFileExtension": "A String", # The full file extension; extracted from the title. May contain multiple concatenated extensions, such as "tar.gz". 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 Google Docs or shortcut files.
618    "openWithLinks": { # A map of the id of each of the user's apps to a link to open this file with that app. Only populated when the drive.apps.readonly scope is used.
619      "a_key": "A String",
620    },
621    "canReadRevisions": True or False, # Deprecated: use capabilities/canReadRevisions.
622    "imageMediaMetadata": { # Metadata about image media. This will only be present for image types, and its contents will depend on what can be parsed from the image content.
623      "exposureBias": 3.14, # The exposure bias of the photo (APEX value).
624      "exposureTime": 3.14, # The length of the exposure, in seconds.
625      "cameraMake": "A String", # The make of the camera used to create the photo.
626      "maxApertureValue": 3.14, # The smallest f-number of the lens at the focal length used to create the photo (APEX value).
627      "isoSpeed": 42, # The ISO speed used to create the photo.
628      "focalLength": 3.14, # The focal length used to create the photo, in millimeters.
629      "exposureMode": "A String", # The exposure mode used to create the photo.
630      "colorSpace": "A String", # The color space of the photo.
631      "location": { # Geographic location information stored in the image.
632        "latitude": 3.14, # The latitude stored in the image.
633        "altitude": 3.14, # The altitude stored in the image.
634        "longitude": 3.14, # The longitude stored in the image.
635      },
636      "subjectDistance": 42, # The distance to the subject of the photo, in meters.
637      "height": 42, # The height of the image in pixels.
638      "lens": "A String", # The lens used to create the photo.
639      "date": "A String", # The date and time the photo was taken (EXIF format timestamp).
640      "width": 42, # The width of the image in pixels.
641      "meteringMode": "A String", # The metering mode used to create the photo.
642      "flashUsed": True or False, # Whether a flash was used to create the photo.
643      "aperture": 3.14, # The aperture used to create the photo (f-number).
644      "rotation": 42, # The rotation in clockwise degrees from the image's original orientation.
645      "sensor": "A String", # The type of sensor used to create the photo.
646      "whiteBalance": "A String", # The white balance mode used to create the photo.
647      "cameraModel": "A String", # The model of the camera used to create the photo.
648    },
649    "description": "A String", # A short description of the file.
650    "webContentLink": "A String", # 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.
651    "videoMediaMetadata": { # Metadata about video media. This will only be present for video types.
652      "width": 42, # The width of the video in pixels.
653      "durationMillis": "A String", # The duration of the video in milliseconds.
654      "height": 42, # The height of the video in pixels.
655    },
656    "editable": True or False, # Deprecated: use capabilities/canEdit.
657    "kind": "drive#file", # The type of file. This is always drive#file.
658    "canComment": True or False, # Deprecated: use capabilities/canComment.
659    "quotaBytesUsed": "A String", # The number of quota bytes used by this file.
660    "fileSize": "A String", # The size of the file in bytes. This field is only populated for files with content stored in Google Drive; it is not populated for Google Docs or shortcut files.
661    "createdDate": "A String", # Create time for this file (formatted RFC 3339 timestamp).
662    "teamDriveId": "A String", # Deprecated - use driveId instead.
663    "properties": [ # The list of properties.
664      { # A key-value pair attached to a file that is either public or private to an application.
665          # The following limits apply to file properties:
666          # - Maximum of 100 properties total per file
667          # - Maximum of 30 private properties per app
668          # - Maximum of 30 public properties
669          # - Maximum of 124 bytes size limit on (key + value) string in UTF-8 encoding for a single property.
670        "kind": "drive#property", # This is always drive#property.
671        "value": "A String", # The value of this property.
672        "etag": "A String", # ETag of the property.
673        "visibility": "A String", # The visibility of this property. Allowed values are PRIVATE and PUBLIC. (Default: PRIVATE)
674        "key": "A String", # The key of this property.
675        "selfLink": "A String", # The link back to this property.
676      },
677    ],
678    "md5Checksum": "A String", # 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 Google Docs or shortcut files.
679    "iconLink": "A String", # A link to the file's icon.
680    "defaultOpenWithLink": "A String", # A link to open this file with the user's default app for this file. Only populated when the drive.apps.readonly scope is used.
681    "embedLink": "A String", # A link for embedding the file.
682    "alternateLink": "A String", # A link for opening the file in a relevant Google editor or viewer.
683    "shared": True or False, # Whether the file has been shared. Not populated for items in shared drives.
684    "title": "A String", # 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.
685    "modifiedByMeDate": "A String", # 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.
686    "thumbnail": { # A thumbnail for the file. This will only be used if a standard thumbnail cannot be generated.
687      "mimeType": "A String", # The MIME type of the thumbnail.
688      "image": "A String", # The URL-safe Base64 encoded bytes of the thumbnail image. It should conform to RFC 4648 section 5.
689    },
690    "driveId": "A String", # ID of the shared drive the file resides in. Only populated for items in shared drives.
691    "userPermission": { # A permission for a file. # The permissions for the authenticated user on this file.
692      "withLink": True or False, # Whether the link is required for this permission.
693      "domain": "A String", # The domain name of the entity this permission refers to. This is an output-only field which is present when the permission type is user, group or domain.
694      "permissionDetails": [ # 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.
695        {
696          "role": "A String", # The primary role for this user. While new values may be added in the future, the following are currently possible:
697              # - organizer
698              # - fileOrganizer
699              # - writer
700              # - reader
701          "inheritedFrom": "A String", # The ID of the item from which this permission is inherited. This is an output-only field and is only populated for members of the shared drive.
702          "permissionType": "A String", # The permission type for this user. While new values may be added in future, the following are currently possible:
703              # - file
704              # - member
705          "additionalRoles": [ # Additional roles for this user. Only commenter is currently possible, though more may be supported in the future.
706            "A String",
707          ],
708          "inherited": True or False, # Whether this permission is inherited. This field is always populated. This is an output-only field.
709        },
710      ],
711      "name": "A String", # The name for this permission.
712      "teamDrivePermissionDetails": [ # Deprecated - use permissionDetails instead.
713        {
714          "inheritedFrom": "A String", # Deprecated - use permissionDetails/inheritedFrom instead.
715          "role": "A String", # Deprecated - use permissionDetails/role instead.
716          "additionalRoles": [ # Deprecated - use permissionDetails/additionalRoles instead.
717            "A String",
718          ],
719          "teamDrivePermissionType": "A String", # Deprecated - use permissionDetails/permissionType instead.
720          "inherited": True or False, # Deprecated - use permissionDetails/inherited instead.
721        },
722      ],
723      "deleted": True or False, # Whether the account associated with this permission has been deleted. This field only pertains to user and group permissions.
724      "kind": "drive#permission", # This is always drive#permission.
725      "value": "A String", # The email address or domain name for the entity. This is used during inserts and is not populated in responses. When making a drive.permissions.insert request, exactly one of the id or value fields must be specified unless the permission type is anyone, in which case both id and value are ignored.
726      "id": "A String", # The ID of the user this permission refers to, and identical to the permissionId in the About and Files resources. When making a drive.permissions.insert request, exactly one of the id or value fields must be specified unless the permission type is anyone, in which case both id and value are ignored.
727      "authKey": "A String", # Deprecated.
728      "etag": "A String", # The ETag of the permission.
729      "emailAddress": "A String", # 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.
730      "expirationDate": "A String", # The time at which this permission will expire (RFC 3339 date-time). Expiration dates have the following restrictions:
731          # - They can only be set on user and group permissions
732          # - The date must be in the future
733          # - The date cannot be more than a year in the future
734          # - The date can only be set on drive.permissions.update or drive.permissions.patch requests
735      "role": "A String", # The primary role for this user. While new values may be supported in the future, the following are currently allowed:
736          # - owner
737          # - organizer
738          # - fileOrganizer
739          # - writer
740          # - reader
741      "type": "A String", # The account type. Allowed values are:
742          # - user
743          # - group
744          # - domain
745          # - anyone
746      "additionalRoles": [ # Additional roles for this user. Only commenter is currently allowed, though more may be supported in the future.
747        "A String",
748      ],
749      "selfLink": "A String", # A link back to this permission.
750      "photoLink": "A String", # A link to the profile photo, if available.
751    },
752    "spaces": [ # The list of spaces which contain the file. Supported values are 'drive', 'appDataFolder' and 'photos'.
753      "A String",
754    ],
755    "permissionIds": [ # List of permission IDs for users with access to this file.
756      "A String",
757    ],
758    "originalFilename": "A String", # The original filename of the uploaded content if available, or else the original value of the title field. This is only available for files with binary content in Google Drive.
759    "fileExtension": "A String", # The final component of fullFileExtension with trailing text that does not appear to be part of the extension removed. This field is only populated for files with content stored in Google Drive; it is not populated for Google Docs or shortcut files.
760    "hasAugmentedPermissions": True or False, # Whether any users are granted file access directly on this file. This field is only populated for items in shared drives.
761    "permissions": [ # The list of permissions for users with access to this file. Not populated for items in shared drives.
762      { # A permission for a file.
763        "withLink": True or False, # Whether the link is required for this permission.
764        "domain": "A String", # The domain name of the entity this permission refers to. This is an output-only field which is present when the permission type is user, group or domain.
765        "permissionDetails": [ # 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.
766          {
767            "role": "A String", # The primary role for this user. While new values may be added in the future, the following are currently possible:
768                # - organizer
769                # - fileOrganizer
770                # - writer
771                # - reader
772            "inheritedFrom": "A String", # The ID of the item from which this permission is inherited. This is an output-only field and is only populated for members of the shared drive.
773            "permissionType": "A String", # The permission type for this user. While new values may be added in future, the following are currently possible:
774                # - file
775                # - member
776            "additionalRoles": [ # Additional roles for this user. Only commenter is currently possible, though more may be supported in the future.
777              "A String",
778            ],
779            "inherited": True or False, # Whether this permission is inherited. This field is always populated. This is an output-only field.
780          },
781        ],
782        "name": "A String", # The name for this permission.
783        "teamDrivePermissionDetails": [ # Deprecated - use permissionDetails instead.
784          {
785            "inheritedFrom": "A String", # Deprecated - use permissionDetails/inheritedFrom instead.
786            "role": "A String", # Deprecated - use permissionDetails/role instead.
787            "additionalRoles": [ # Deprecated - use permissionDetails/additionalRoles instead.
788              "A String",
789            ],
790            "teamDrivePermissionType": "A String", # Deprecated - use permissionDetails/permissionType instead.
791            "inherited": True or False, # Deprecated - use permissionDetails/inherited instead.
792          },
793        ],
794        "deleted": True or False, # Whether the account associated with this permission has been deleted. This field only pertains to user and group permissions.
795        "kind": "drive#permission", # This is always drive#permission.
796        "value": "A String", # The email address or domain name for the entity. This is used during inserts and is not populated in responses. When making a drive.permissions.insert request, exactly one of the id or value fields must be specified unless the permission type is anyone, in which case both id and value are ignored.
797        "id": "A String", # The ID of the user this permission refers to, and identical to the permissionId in the About and Files resources. When making a drive.permissions.insert request, exactly one of the id or value fields must be specified unless the permission type is anyone, in which case both id and value are ignored.
798        "authKey": "A String", # Deprecated.
799        "etag": "A String", # The ETag of the permission.
800        "emailAddress": "A String", # 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.
801        "expirationDate": "A String", # The time at which this permission will expire (RFC 3339 date-time). Expiration dates have the following restrictions:
802            # - They can only be set on user and group permissions
803            # - The date must be in the future
804            # - The date cannot be more than a year in the future
805            # - The date can only be set on drive.permissions.update or drive.permissions.patch requests
806        "role": "A String", # The primary role for this user. While new values may be supported in the future, the following are currently allowed:
807            # - owner
808            # - organizer
809            # - fileOrganizer
810            # - writer
811            # - reader
812        "type": "A String", # The account type. Allowed values are:
813            # - user
814            # - group
815            # - domain
816            # - anyone
817        "additionalRoles": [ # Additional roles for this user. Only commenter is currently allowed, though more may be supported in the future.
818          "A String",
819        ],
820        "selfLink": "A String", # A link back to this permission.
821        "photoLink": "A String", # A link to the profile photo, if available.
822      },
823    ],
824    "headRevisionId": "A String", # The ID of the file's head revision. This field is only populated for files with content stored in Google Drive; it is not populated for Google Docs or shortcut files.
825    "selfLink": "A String", # A link back to this file.
826    "modifiedDate": "A String", # Last time this file was modified by anyone (formatted RFC 3339 timestamp). This is only mutable on update when the setModifiedDate parameter is set.
827  }</pre>
828</div>
829
830<div class="method">
831    <code class="details" id="delete">delete(fileId, supportsTeamDrives=None, supportsAllDrives=None)</code>
832  <pre>Permanently deletes a file by ID. Skips the trash. The currently authenticated user must own the file or be an organizer on the parent for shared drive files.
833
834Args:
835  fileId: string, The ID of the file to delete. (required)
836  supportsTeamDrives: boolean, Deprecated use supportsAllDrives instead.
837  supportsAllDrives: boolean, Deprecated - Whether the requesting application supports both My Drives and shared drives. This parameter will only be effective until June 1, 2020. Afterwards all applications are assumed to support shared drives.
838</pre>
839</div>
840
841<div class="method">
842    <code class="details" id="emptyTrash">emptyTrash()</code>
843  <pre>Permanently deletes all of the user's trashed files.
844
845Args:
846</pre>
847</div>
848
849<div class="method">
850    <code class="details" id="export">export(fileId, mimeType)</code>
851  <pre>Exports a Google Doc to the requested MIME type and returns the exported content. Please note that the exported content is limited to 10MB.
852
853Args:
854  fileId: string, The ID of the file. (required)
855  mimeType: string, The MIME type of the format requested for this export. (required)
856</pre>
857</div>
858
859<div class="method">
860    <code class="details" id="export_media">export_media(fileId, mimeType)</code>
861  <pre>Exports a Google Doc to the requested MIME type and returns the exported content. Please note that the exported content is limited to 10MB.
862
863Args:
864  fileId: string, The ID of the file. (required)
865  mimeType: string, The MIME type of the format requested for this export. (required)
866</pre>
867</div>
868
869<div class="method">
870    <code class="details" id="generateIds">generateIds(space=None, maxResults=None)</code>
871  <pre>Generates a set of file IDs which can be provided in insert requests.
872
873Args:
874  space: string, The space in which the IDs can be used to create new files. Supported values are 'drive' and 'appDataFolder'.
875  maxResults: integer, Maximum number of IDs to return.
876
877Returns:
878  An object of the form:
879
880    { # A list of generated IDs which can be provided in insert requests
881    "kind": "drive#generatedIds", # This is always drive#generatedIds
882    "ids": [ # The IDs generated for the requesting user in the specified space.
883      "A String",
884    ],
885    "space": "A String", # The type of file that can be created with these IDs.
886  }</pre>
887</div>
888
889<div class="method">
890    <code class="details" id="get">get(fileId, projection=None, revisionId=None, supportsTeamDrives=None, supportsAllDrives=None, acknowledgeAbuse=None, updateViewedDate=None)</code>
891  <pre>Gets a file's metadata by ID.
892
893Args:
894  fileId: string, The ID for the file in question. (required)
895  projection: string, This parameter is deprecated and has no function.
896    Allowed values
897      BASIC - Deprecated
898      FULL - Deprecated
899  revisionId: string, Specifies the Revision ID that should be downloaded. Ignored unless alt=media is specified.
900  supportsTeamDrives: boolean, Deprecated use supportsAllDrives instead.
901  supportsAllDrives: boolean, Deprecated - Whether the requesting application supports both My Drives and shared drives. This parameter will only be effective until June 1, 2020. Afterwards all applications are assumed to support shared drives.
902  acknowledgeAbuse: boolean, Whether the user is acknowledging the risk of downloading known malware or other abusive files.
903  updateViewedDate: boolean, Deprecated: Use files.update with modifiedDateBehavior=noChange, updateViewedDate=true and an empty request body.
904
905Returns:
906  An object of the form:
907
908    { # The metadata for a file.
909    "hasThumbnail": True or False, # Whether this file has a thumbnail. This does not indicate whether the requesting app has access to the thumbnail. To check access, look for the presence of the thumbnailLink field.
910    "lastViewedByMeDate": "A String", # Last time this file was viewed by the user (formatted RFC 3339 timestamp).
911    "trashedDate": "A String", # The time that the item was trashed (formatted RFC 3339 timestamp). Only populated for items in shared drives.
912    "version": "A String", # A monotonically increasing version number for the file. This reflects every change made to the file on the server, even those not visible to the requesting user.
913    "appDataContents": True or False, # Whether this file is in the Application Data folder.
914    "thumbnailLink": "A String", # A short-lived link to the file's thumbnail. Typically lasts on the order of hours. Only populated when the requesting app can access the file's content.
915    "labels": { # A group of labels for the file.
916      "restricted": True or False, # Deprecated - use copyRequiresWriterPermission instead.
917      "modified": True or False, # Whether the file has been modified by this user.
918      "trashed": True or False, # Whether this file has been trashed. This label applies to all users accessing the file; however, only owners are allowed to see and untrash files.
919      "hidden": True or False, # Deprecated.
920      "starred": True or False, # Whether this file is starred by the user.
921      "viewed": True or False, # Whether this file has been viewed by this user.
922    },
923    "indexableText": { # Indexable text attributes for the file (can only be written)
924      "text": "A String", # The text to be indexed for this file.
925    },
926    "thumbnailVersion": "A String", # The thumbnail version for use in thumbnail cache invalidation.
927    "explicitlyTrashed": True or False, # Whether this file has been explicitly trashed, as opposed to recursively trashed.
928    "isAppAuthorized": True or False, # Whether the file was created or opened by the requesting app.
929    "lastModifyingUserName": "A String", # Name of the last user to modify this file.
930    "writersCanShare": True or False, # Whether writers can share the document with other users. Not populated for items in shared drives.
931    "owners": [ # The owner(s) of this file. Not populated for items in shared drives.
932      { # Information about a Drive user.
933        "picture": { # The user's profile picture.
934          "url": "A String", # A URL that points to a profile picture of this user.
935        },
936        "kind": "drive#user", # This is always drive#user.
937        "displayName": "A String", # A plain text displayable name for this user.
938        "permissionId": "A String", # The user's ID as visible in the permissions collection.
939        "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
940        "emailAddress": "A String", # The email address of the user.
941      },
942    ],
943    "ownedByMe": True or False, # Whether the file is owned by the current user. Not populated for items in shared drives.
944    "id": "A String", # The ID of the file.
945    "sharingUser": { # Information about a Drive user. # User that shared the item with the current user, if available.
946      "picture": { # The user's profile picture.
947        "url": "A String", # A URL that points to a profile picture of this user.
948      },
949      "kind": "drive#user", # This is always drive#user.
950      "displayName": "A String", # A plain text displayable name for this user.
951      "permissionId": "A String", # The user's ID as visible in the permissions collection.
952      "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
953      "emailAddress": "A String", # The email address of the user.
954    },
955    "trashingUser": { # Information about a Drive user. # If the file has been explicitly trashed, the user who trashed it. Only populated for items in shared drives.
956      "picture": { # The user's profile picture.
957        "url": "A String", # A URL that points to a profile picture of this user.
958      },
959      "kind": "drive#user", # This is always drive#user.
960      "displayName": "A String", # A plain text displayable name for this user.
961      "permissionId": "A String", # The user's ID as visible in the permissions collection.
962      "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
963      "emailAddress": "A String", # The email address of the user.
964    },
965    "downloadUrl": "A String", # 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 Google Docs or shortcut files.
966    "mimeType": "A String", # 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's MIME type.
967    "lastModifyingUser": { # Information about a Drive user. # The last user to modify this file.
968      "picture": { # The user's profile picture.
969        "url": "A String", # A URL that points to a profile picture of this user.
970      },
971      "kind": "drive#user", # This is always drive#user.
972      "displayName": "A String", # A plain text displayable name for this user.
973      "permissionId": "A String", # The user's ID as visible in the permissions collection.
974      "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
975      "emailAddress": "A String", # The email address of the user.
976    },
977    "copyable": True or False, # Deprecated: use capabilities/canCopy.
978    "folderColorRgb": "A String", # Folder color as an RGB hex string if the file is a folder. The list of supported colors is available in the folderColorPalette field of the About resource. If an unsupported color is specified, it will be changed to the closest color in the palette. Not populated for items in shared drives.
979    "markedViewedByMeDate": "A String", # Deprecated.
980    "ownerNames": [ # Name(s) of the owner(s) of this file. Not populated for items in shared drives.
981      "A String",
982    ],
983    "capabilities": { # Capabilities the current user has on this file. Each capability corresponds to a fine-grained action that a user may take.
984      "canMoveItemOutOfDrive": 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.
985      "canUntrash": True or False, # Whether the current user can restore this file from trash.
986      "canMoveItemWithinTeamDrive": True or False, # Deprecated - use canMoveItemWithinDrive instead.
987      "canDeleteChildren": 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.
988      "canMoveChildrenWithinTeamDrive": True or False, # Deprecated - use canMoveChildrenWithinDrive instead.
989      "canListChildren": True or False, # Whether the current user can list the children of this folder. This is always false when the item is not a folder.
990      "canRename": True or False, # Whether the current user can rename this file.
991      "canReadDrive": True or False, # Whether the current user can read the shared drive to which this file belongs. Only populated for items in shared drives.
992      "canAddChildren": True or False, # Whether the current user can add children to this folder. This is always false when the item is not a folder.
993      "canChangeRestrictedDownload": True or False, # Deprecated
994      "canShare": True or False, # Whether the current user can modify the sharing settings for this file.
995      "canTrashChildren": 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.
996      "canMoveChildrenWithinDrive": True or False, # Whether the current user can move children of this folder within the shared drive. This is false when the item is not a folder. Only populated for items in shared drives.
997      "canReadRevisions": 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.
998      "canMoveItemWithinDrive": True or False, # Whether the current user can move this item within this shared drive. Note that a request to change the parent of the item may still fail depending on the new parent that is being added. Only populated for items in shared drives.
999      "canCopy": 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.
1000      "canMoveItemIntoTeamDrive": True or False, # Deprecated - use canMoveItemOutOfDrive instead.
1001      "canMoveItemOutOfTeamDrive": True or False, # Deprecated - use canMoveItemOutOfDrive instead.
1002      "canComment": True or False, # Whether the current user can comment on this file.
1003      "canMoveChildrenOutOfDrive": 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.
1004      "canTrash": True or False, # Whether the current user can move this file to trash.
1005      "canDelete": True or False, # Whether the current user can delete this file.
1006      "canMoveTeamDriveItem": True or False, # Deprecated - use canMoveItemWithinDrive or canMoveItemOutOfDrive instead.
1007      "canDownload": True or False, # Whether the current user can download this file.
1008      "canChangeCopyRequiresWriterPermission": True or False, # Whether the current user can change the copyRequiresWriterPermission restriction of this file.
1009      "canMoveChildrenOutOfTeamDrive": True or False, # Deprecated - use canMoveChildrenOutOfDrive instead.
1010      "canRemoveChildren": True or False, # Whether the current user can remove children from this folder. This is always false when the item is not a folder. For a folder in a shared drive, use canDeleteChildren or canTrashChildren instead.
1011      "canReadTeamDrive": True or False, # Deprecated - use canReadDrive instead.
1012      "canEdit": True or False, # Whether the current user can edit this file.
1013    },
1014    "sharedWithMeDate": "A String", # Time at which this file was shared with the user (formatted RFC 3339 timestamp).
1015    "webViewLink": "A String", # A link only available on public folders for viewing their static web assets (HTML, CSS, JS, etc) via Google Drive's Website Hosting.
1016    "etag": "A String", # ETag of the file.
1017    "parents": [ # Collection of parent folders which contain this file.
1018        # If not specified as part of an insert request, the file will be placed directly in the user's My Drive folder. If not specified as part of a copy request, the file will inherit any discoverable parents of the source file. Update requests can also use the addParents and removeParents parameters to modify the parents list.
1019      { # A reference to a file's parent.
1020        "selfLink": "A String", # A link back to this reference.
1021        "kind": "drive#parentReference", # This is always drive#parentReference.
1022        "id": "A String", # The ID of the parent.
1023        "isRoot": True or False, # Whether or not the parent is the root folder.
1024        "parentLink": "A String", # A link to the parent.
1025      },
1026    ],
1027    "exportLinks": { # Links for exporting Google Docs to specific formats.
1028      "a_key": "A String", # A mapping from export format to URL
1029    },
1030    "shareable": True or False, # Deprecated: use capabilities/canShare.
1031    "copyRequiresWriterPermission": True or False, # Whether the options to copy, print, or download this file, should be disabled for readers and commenters.
1032    "fullFileExtension": "A String", # The full file extension; extracted from the title. May contain multiple concatenated extensions, such as "tar.gz". 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 Google Docs or shortcut files.
1033    "openWithLinks": { # A map of the id of each of the user's apps to a link to open this file with that app. Only populated when the drive.apps.readonly scope is used.
1034      "a_key": "A String",
1035    },
1036    "canReadRevisions": True or False, # Deprecated: use capabilities/canReadRevisions.
1037    "imageMediaMetadata": { # Metadata about image media. This will only be present for image types, and its contents will depend on what can be parsed from the image content.
1038      "exposureBias": 3.14, # The exposure bias of the photo (APEX value).
1039      "exposureTime": 3.14, # The length of the exposure, in seconds.
1040      "cameraMake": "A String", # The make of the camera used to create the photo.
1041      "maxApertureValue": 3.14, # The smallest f-number of the lens at the focal length used to create the photo (APEX value).
1042      "isoSpeed": 42, # The ISO speed used to create the photo.
1043      "focalLength": 3.14, # The focal length used to create the photo, in millimeters.
1044      "exposureMode": "A String", # The exposure mode used to create the photo.
1045      "colorSpace": "A String", # The color space of the photo.
1046      "location": { # Geographic location information stored in the image.
1047        "latitude": 3.14, # The latitude stored in the image.
1048        "altitude": 3.14, # The altitude stored in the image.
1049        "longitude": 3.14, # The longitude stored in the image.
1050      },
1051      "subjectDistance": 42, # The distance to the subject of the photo, in meters.
1052      "height": 42, # The height of the image in pixels.
1053      "lens": "A String", # The lens used to create the photo.
1054      "date": "A String", # The date and time the photo was taken (EXIF format timestamp).
1055      "width": 42, # The width of the image in pixels.
1056      "meteringMode": "A String", # The metering mode used to create the photo.
1057      "flashUsed": True or False, # Whether a flash was used to create the photo.
1058      "aperture": 3.14, # The aperture used to create the photo (f-number).
1059      "rotation": 42, # The rotation in clockwise degrees from the image's original orientation.
1060      "sensor": "A String", # The type of sensor used to create the photo.
1061      "whiteBalance": "A String", # The white balance mode used to create the photo.
1062      "cameraModel": "A String", # The model of the camera used to create the photo.
1063    },
1064    "description": "A String", # A short description of the file.
1065    "webContentLink": "A String", # 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.
1066    "videoMediaMetadata": { # Metadata about video media. This will only be present for video types.
1067      "width": 42, # The width of the video in pixels.
1068      "durationMillis": "A String", # The duration of the video in milliseconds.
1069      "height": 42, # The height of the video in pixels.
1070    },
1071    "editable": True or False, # Deprecated: use capabilities/canEdit.
1072    "kind": "drive#file", # The type of file. This is always drive#file.
1073    "canComment": True or False, # Deprecated: use capabilities/canComment.
1074    "quotaBytesUsed": "A String", # The number of quota bytes used by this file.
1075    "fileSize": "A String", # The size of the file in bytes. This field is only populated for files with content stored in Google Drive; it is not populated for Google Docs or shortcut files.
1076    "createdDate": "A String", # Create time for this file (formatted RFC 3339 timestamp).
1077    "teamDriveId": "A String", # Deprecated - use driveId instead.
1078    "properties": [ # The list of properties.
1079      { # A key-value pair attached to a file that is either public or private to an application.
1080          # The following limits apply to file properties:
1081          # - Maximum of 100 properties total per file
1082          # - Maximum of 30 private properties per app
1083          # - Maximum of 30 public properties
1084          # - Maximum of 124 bytes size limit on (key + value) string in UTF-8 encoding for a single property.
1085        "kind": "drive#property", # This is always drive#property.
1086        "value": "A String", # The value of this property.
1087        "etag": "A String", # ETag of the property.
1088        "visibility": "A String", # The visibility of this property. Allowed values are PRIVATE and PUBLIC. (Default: PRIVATE)
1089        "key": "A String", # The key of this property.
1090        "selfLink": "A String", # The link back to this property.
1091      },
1092    ],
1093    "md5Checksum": "A String", # 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 Google Docs or shortcut files.
1094    "iconLink": "A String", # A link to the file's icon.
1095    "defaultOpenWithLink": "A String", # A link to open this file with the user's default app for this file. Only populated when the drive.apps.readonly scope is used.
1096    "embedLink": "A String", # A link for embedding the file.
1097    "alternateLink": "A String", # A link for opening the file in a relevant Google editor or viewer.
1098    "shared": True or False, # Whether the file has been shared. Not populated for items in shared drives.
1099    "title": "A String", # 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.
1100    "modifiedByMeDate": "A String", # 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.
1101    "thumbnail": { # A thumbnail for the file. This will only be used if a standard thumbnail cannot be generated.
1102      "mimeType": "A String", # The MIME type of the thumbnail.
1103      "image": "A String", # The URL-safe Base64 encoded bytes of the thumbnail image. It should conform to RFC 4648 section 5.
1104    },
1105    "driveId": "A String", # ID of the shared drive the file resides in. Only populated for items in shared drives.
1106    "userPermission": { # A permission for a file. # The permissions for the authenticated user on this file.
1107      "withLink": True or False, # Whether the link is required for this permission.
1108      "domain": "A String", # The domain name of the entity this permission refers to. This is an output-only field which is present when the permission type is user, group or domain.
1109      "permissionDetails": [ # 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.
1110        {
1111          "role": "A String", # The primary role for this user. While new values may be added in the future, the following are currently possible:
1112              # - organizer
1113              # - fileOrganizer
1114              # - writer
1115              # - reader
1116          "inheritedFrom": "A String", # The ID of the item from which this permission is inherited. This is an output-only field and is only populated for members of the shared drive.
1117          "permissionType": "A String", # The permission type for this user. While new values may be added in future, the following are currently possible:
1118              # - file
1119              # - member
1120          "additionalRoles": [ # Additional roles for this user. Only commenter is currently possible, though more may be supported in the future.
1121            "A String",
1122          ],
1123          "inherited": True or False, # Whether this permission is inherited. This field is always populated. This is an output-only field.
1124        },
1125      ],
1126      "name": "A String", # The name for this permission.
1127      "teamDrivePermissionDetails": [ # Deprecated - use permissionDetails instead.
1128        {
1129          "inheritedFrom": "A String", # Deprecated - use permissionDetails/inheritedFrom instead.
1130          "role": "A String", # Deprecated - use permissionDetails/role instead.
1131          "additionalRoles": [ # Deprecated - use permissionDetails/additionalRoles instead.
1132            "A String",
1133          ],
1134          "teamDrivePermissionType": "A String", # Deprecated - use permissionDetails/permissionType instead.
1135          "inherited": True or False, # Deprecated - use permissionDetails/inherited instead.
1136        },
1137      ],
1138      "deleted": True or False, # Whether the account associated with this permission has been deleted. This field only pertains to user and group permissions.
1139      "kind": "drive#permission", # This is always drive#permission.
1140      "value": "A String", # The email address or domain name for the entity. This is used during inserts and is not populated in responses. When making a drive.permissions.insert request, exactly one of the id or value fields must be specified unless the permission type is anyone, in which case both id and value are ignored.
1141      "id": "A String", # The ID of the user this permission refers to, and identical to the permissionId in the About and Files resources. When making a drive.permissions.insert request, exactly one of the id or value fields must be specified unless the permission type is anyone, in which case both id and value are ignored.
1142      "authKey": "A String", # Deprecated.
1143      "etag": "A String", # The ETag of the permission.
1144      "emailAddress": "A String", # 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.
1145      "expirationDate": "A String", # The time at which this permission will expire (RFC 3339 date-time). Expiration dates have the following restrictions:
1146          # - They can only be set on user and group permissions
1147          # - The date must be in the future
1148          # - The date cannot be more than a year in the future
1149          # - The date can only be set on drive.permissions.update or drive.permissions.patch requests
1150      "role": "A String", # The primary role for this user. While new values may be supported in the future, the following are currently allowed:
1151          # - owner
1152          # - organizer
1153          # - fileOrganizer
1154          # - writer
1155          # - reader
1156      "type": "A String", # The account type. Allowed values are:
1157          # - user
1158          # - group
1159          # - domain
1160          # - anyone
1161      "additionalRoles": [ # Additional roles for this user. Only commenter is currently allowed, though more may be supported in the future.
1162        "A String",
1163      ],
1164      "selfLink": "A String", # A link back to this permission.
1165      "photoLink": "A String", # A link to the profile photo, if available.
1166    },
1167    "spaces": [ # The list of spaces which contain the file. Supported values are 'drive', 'appDataFolder' and 'photos'.
1168      "A String",
1169    ],
1170    "permissionIds": [ # List of permission IDs for users with access to this file.
1171      "A String",
1172    ],
1173    "originalFilename": "A String", # The original filename of the uploaded content if available, or else the original value of the title field. This is only available for files with binary content in Google Drive.
1174    "fileExtension": "A String", # The final component of fullFileExtension with trailing text that does not appear to be part of the extension removed. This field is only populated for files with content stored in Google Drive; it is not populated for Google Docs or shortcut files.
1175    "hasAugmentedPermissions": True or False, # Whether any users are granted file access directly on this file. This field is only populated for items in shared drives.
1176    "permissions": [ # The list of permissions for users with access to this file. Not populated for items in shared drives.
1177      { # A permission for a file.
1178        "withLink": True or False, # Whether the link is required for this permission.
1179        "domain": "A String", # The domain name of the entity this permission refers to. This is an output-only field which is present when the permission type is user, group or domain.
1180        "permissionDetails": [ # 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.
1181          {
1182            "role": "A String", # The primary role for this user. While new values may be added in the future, the following are currently possible:
1183                # - organizer
1184                # - fileOrganizer
1185                # - writer
1186                # - reader
1187            "inheritedFrom": "A String", # The ID of the item from which this permission is inherited. This is an output-only field and is only populated for members of the shared drive.
1188            "permissionType": "A String", # The permission type for this user. While new values may be added in future, the following are currently possible:
1189                # - file
1190                # - member
1191            "additionalRoles": [ # Additional roles for this user. Only commenter is currently possible, though more may be supported in the future.
1192              "A String",
1193            ],
1194            "inherited": True or False, # Whether this permission is inherited. This field is always populated. This is an output-only field.
1195          },
1196        ],
1197        "name": "A String", # The name for this permission.
1198        "teamDrivePermissionDetails": [ # Deprecated - use permissionDetails instead.
1199          {
1200            "inheritedFrom": "A String", # Deprecated - use permissionDetails/inheritedFrom instead.
1201            "role": "A String", # Deprecated - use permissionDetails/role instead.
1202            "additionalRoles": [ # Deprecated - use permissionDetails/additionalRoles instead.
1203              "A String",
1204            ],
1205            "teamDrivePermissionType": "A String", # Deprecated - use permissionDetails/permissionType instead.
1206            "inherited": True or False, # Deprecated - use permissionDetails/inherited instead.
1207          },
1208        ],
1209        "deleted": True or False, # Whether the account associated with this permission has been deleted. This field only pertains to user and group permissions.
1210        "kind": "drive#permission", # This is always drive#permission.
1211        "value": "A String", # The email address or domain name for the entity. This is used during inserts and is not populated in responses. When making a drive.permissions.insert request, exactly one of the id or value fields must be specified unless the permission type is anyone, in which case both id and value are ignored.
1212        "id": "A String", # The ID of the user this permission refers to, and identical to the permissionId in the About and Files resources. When making a drive.permissions.insert request, exactly one of the id or value fields must be specified unless the permission type is anyone, in which case both id and value are ignored.
1213        "authKey": "A String", # Deprecated.
1214        "etag": "A String", # The ETag of the permission.
1215        "emailAddress": "A String", # 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.
1216        "expirationDate": "A String", # The time at which this permission will expire (RFC 3339 date-time). Expiration dates have the following restrictions:
1217            # - They can only be set on user and group permissions
1218            # - The date must be in the future
1219            # - The date cannot be more than a year in the future
1220            # - The date can only be set on drive.permissions.update or drive.permissions.patch requests
1221        "role": "A String", # The primary role for this user. While new values may be supported in the future, the following are currently allowed:
1222            # - owner
1223            # - organizer
1224            # - fileOrganizer
1225            # - writer
1226            # - reader
1227        "type": "A String", # The account type. Allowed values are:
1228            # - user
1229            # - group
1230            # - domain
1231            # - anyone
1232        "additionalRoles": [ # Additional roles for this user. Only commenter is currently allowed, though more may be supported in the future.
1233          "A String",
1234        ],
1235        "selfLink": "A String", # A link back to this permission.
1236        "photoLink": "A String", # A link to the profile photo, if available.
1237      },
1238    ],
1239    "headRevisionId": "A String", # The ID of the file's head revision. This field is only populated for files with content stored in Google Drive; it is not populated for Google Docs or shortcut files.
1240    "selfLink": "A String", # A link back to this file.
1241    "modifiedDate": "A String", # Last time this file was modified by anyone (formatted RFC 3339 timestamp). This is only mutable on update when the setModifiedDate parameter is set.
1242  }</pre>
1243</div>
1244
1245<div class="method">
1246    <code class="details" id="get_media">get_media(fileId, projection=None, revisionId=None, supportsTeamDrives=None, supportsAllDrives=None, acknowledgeAbuse=None, updateViewedDate=None)</code>
1247  <pre>Gets a file's metadata by ID.
1248
1249Args:
1250  fileId: string, The ID for the file in question. (required)
1251  projection: string, This parameter is deprecated and has no function.
1252    Allowed values
1253      BASIC - Deprecated
1254      FULL - Deprecated
1255  revisionId: string, Specifies the Revision ID that should be downloaded. Ignored unless alt=media is specified.
1256  supportsTeamDrives: boolean, Deprecated use supportsAllDrives instead.
1257  supportsAllDrives: boolean, Deprecated - Whether the requesting application supports both My Drives and shared drives. This parameter will only be effective until June 1, 2020. Afterwards all applications are assumed to support shared drives.
1258  acknowledgeAbuse: boolean, Whether the user is acknowledging the risk of downloading known malware or other abusive files.
1259  updateViewedDate: boolean, Deprecated: Use files.update with modifiedDateBehavior=noChange, updateViewedDate=true and an empty request body.
1260
1261Returns:
1262  The media object as a string.
1263
1264    </pre>
1265</div>
1266
1267<div class="method">
1268    <code class="details" id="insert">insert(body=None, supportsTeamDrives=None, media_body=None, ocrLanguage=None, ocr=None, pinned=None, visibility=None, timedTextTrackName=None, convert=None, useContentAsIndexableText=None, supportsAllDrives=None, media_mime_type=None, timedTextLanguage=None)</code>
1269  <pre>Insert a new file.
1270
1271Args:
1272  body: object, The request body.
1273    The object takes the form of:
1274
1275{ # The metadata for a file.
1276  "hasThumbnail": True or False, # Whether this file has a thumbnail. This does not indicate whether the requesting app has access to the thumbnail. To check access, look for the presence of the thumbnailLink field.
1277  "lastViewedByMeDate": "A String", # Last time this file was viewed by the user (formatted RFC 3339 timestamp).
1278  "trashedDate": "A String", # The time that the item was trashed (formatted RFC 3339 timestamp). Only populated for items in shared drives.
1279  "version": "A String", # A monotonically increasing version number for the file. This reflects every change made to the file on the server, even those not visible to the requesting user.
1280  "appDataContents": True or False, # Whether this file is in the Application Data folder.
1281  "thumbnailLink": "A String", # A short-lived link to the file's thumbnail. Typically lasts on the order of hours. Only populated when the requesting app can access the file's content.
1282  "labels": { # A group of labels for the file.
1283    "restricted": True or False, # Deprecated - use copyRequiresWriterPermission instead.
1284    "modified": True or False, # Whether the file has been modified by this user.
1285    "trashed": True or False, # Whether this file has been trashed. This label applies to all users accessing the file; however, only owners are allowed to see and untrash files.
1286    "hidden": True or False, # Deprecated.
1287    "starred": True or False, # Whether this file is starred by the user.
1288    "viewed": True or False, # Whether this file has been viewed by this user.
1289  },
1290  "indexableText": { # Indexable text attributes for the file (can only be written)
1291    "text": "A String", # The text to be indexed for this file.
1292  },
1293  "thumbnailVersion": "A String", # The thumbnail version for use in thumbnail cache invalidation.
1294  "explicitlyTrashed": True or False, # Whether this file has been explicitly trashed, as opposed to recursively trashed.
1295  "isAppAuthorized": True or False, # Whether the file was created or opened by the requesting app.
1296  "lastModifyingUserName": "A String", # Name of the last user to modify this file.
1297  "writersCanShare": True or False, # Whether writers can share the document with other users. Not populated for items in shared drives.
1298  "owners": [ # The owner(s) of this file. Not populated for items in shared drives.
1299    { # Information about a Drive user.
1300      "picture": { # The user's profile picture.
1301        "url": "A String", # A URL that points to a profile picture of this user.
1302      },
1303      "kind": "drive#user", # This is always drive#user.
1304      "displayName": "A String", # A plain text displayable name for this user.
1305      "permissionId": "A String", # The user's ID as visible in the permissions collection.
1306      "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
1307      "emailAddress": "A String", # The email address of the user.
1308    },
1309  ],
1310  "ownedByMe": True or False, # Whether the file is owned by the current user. Not populated for items in shared drives.
1311  "id": "A String", # The ID of the file.
1312  "sharingUser": { # Information about a Drive user. # User that shared the item with the current user, if available.
1313    "picture": { # The user's profile picture.
1314      "url": "A String", # A URL that points to a profile picture of this user.
1315    },
1316    "kind": "drive#user", # This is always drive#user.
1317    "displayName": "A String", # A plain text displayable name for this user.
1318    "permissionId": "A String", # The user's ID as visible in the permissions collection.
1319    "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
1320    "emailAddress": "A String", # The email address of the user.
1321  },
1322  "trashingUser": { # Information about a Drive user. # If the file has been explicitly trashed, the user who trashed it. Only populated for items in shared drives.
1323    "picture": { # The user's profile picture.
1324      "url": "A String", # A URL that points to a profile picture of this user.
1325    },
1326    "kind": "drive#user", # This is always drive#user.
1327    "displayName": "A String", # A plain text displayable name for this user.
1328    "permissionId": "A String", # The user's ID as visible in the permissions collection.
1329    "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
1330    "emailAddress": "A String", # The email address of the user.
1331  },
1332  "downloadUrl": "A String", # 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 Google Docs or shortcut files.
1333  "mimeType": "A String", # 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's MIME type.
1334  "lastModifyingUser": { # Information about a Drive user. # The last user to modify this file.
1335    "picture": { # The user's profile picture.
1336      "url": "A String", # A URL that points to a profile picture of this user.
1337    },
1338    "kind": "drive#user", # This is always drive#user.
1339    "displayName": "A String", # A plain text displayable name for this user.
1340    "permissionId": "A String", # The user's ID as visible in the permissions collection.
1341    "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
1342    "emailAddress": "A String", # The email address of the user.
1343  },
1344  "copyable": True or False, # Deprecated: use capabilities/canCopy.
1345  "folderColorRgb": "A String", # Folder color as an RGB hex string if the file is a folder. The list of supported colors is available in the folderColorPalette field of the About resource. If an unsupported color is specified, it will be changed to the closest color in the palette. Not populated for items in shared drives.
1346  "markedViewedByMeDate": "A String", # Deprecated.
1347  "ownerNames": [ # Name(s) of the owner(s) of this file. Not populated for items in shared drives.
1348    "A String",
1349  ],
1350  "capabilities": { # Capabilities the current user has on this file. Each capability corresponds to a fine-grained action that a user may take.
1351    "canMoveItemOutOfDrive": 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.
1352    "canUntrash": True or False, # Whether the current user can restore this file from trash.
1353    "canMoveItemWithinTeamDrive": True or False, # Deprecated - use canMoveItemWithinDrive instead.
1354    "canDeleteChildren": 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.
1355    "canMoveChildrenWithinTeamDrive": True or False, # Deprecated - use canMoveChildrenWithinDrive instead.
1356    "canListChildren": True or False, # Whether the current user can list the children of this folder. This is always false when the item is not a folder.
1357    "canRename": True or False, # Whether the current user can rename this file.
1358    "canReadDrive": True or False, # Whether the current user can read the shared drive to which this file belongs. Only populated for items in shared drives.
1359    "canAddChildren": True or False, # Whether the current user can add children to this folder. This is always false when the item is not a folder.
1360    "canChangeRestrictedDownload": True or False, # Deprecated
1361    "canShare": True or False, # Whether the current user can modify the sharing settings for this file.
1362    "canTrashChildren": 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.
1363    "canMoveChildrenWithinDrive": True or False, # Whether the current user can move children of this folder within the shared drive. This is false when the item is not a folder. Only populated for items in shared drives.
1364    "canReadRevisions": 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.
1365    "canMoveItemWithinDrive": True or False, # Whether the current user can move this item within this shared drive. Note that a request to change the parent of the item may still fail depending on the new parent that is being added. Only populated for items in shared drives.
1366    "canCopy": 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.
1367    "canMoveItemIntoTeamDrive": True or False, # Deprecated - use canMoveItemOutOfDrive instead.
1368    "canMoveItemOutOfTeamDrive": True or False, # Deprecated - use canMoveItemOutOfDrive instead.
1369    "canComment": True or False, # Whether the current user can comment on this file.
1370    "canMoveChildrenOutOfDrive": 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.
1371    "canTrash": True or False, # Whether the current user can move this file to trash.
1372    "canDelete": True or False, # Whether the current user can delete this file.
1373    "canMoveTeamDriveItem": True or False, # Deprecated - use canMoveItemWithinDrive or canMoveItemOutOfDrive instead.
1374    "canDownload": True or False, # Whether the current user can download this file.
1375    "canChangeCopyRequiresWriterPermission": True or False, # Whether the current user can change the copyRequiresWriterPermission restriction of this file.
1376    "canMoveChildrenOutOfTeamDrive": True or False, # Deprecated - use canMoveChildrenOutOfDrive instead.
1377    "canRemoveChildren": True or False, # Whether the current user can remove children from this folder. This is always false when the item is not a folder. For a folder in a shared drive, use canDeleteChildren or canTrashChildren instead.
1378    "canReadTeamDrive": True or False, # Deprecated - use canReadDrive instead.
1379    "canEdit": True or False, # Whether the current user can edit this file.
1380  },
1381  "sharedWithMeDate": "A String", # Time at which this file was shared with the user (formatted RFC 3339 timestamp).
1382  "webViewLink": "A String", # A link only available on public folders for viewing their static web assets (HTML, CSS, JS, etc) via Google Drive's Website Hosting.
1383  "etag": "A String", # ETag of the file.
1384  "parents": [ # Collection of parent folders which contain this file.
1385      # If not specified as part of an insert request, the file will be placed directly in the user's My Drive folder. If not specified as part of a copy request, the file will inherit any discoverable parents of the source file. Update requests can also use the addParents and removeParents parameters to modify the parents list.
1386    { # A reference to a file's parent.
1387      "selfLink": "A String", # A link back to this reference.
1388      "kind": "drive#parentReference", # This is always drive#parentReference.
1389      "id": "A String", # The ID of the parent.
1390      "isRoot": True or False, # Whether or not the parent is the root folder.
1391      "parentLink": "A String", # A link to the parent.
1392    },
1393  ],
1394  "exportLinks": { # Links for exporting Google Docs to specific formats.
1395    "a_key": "A String", # A mapping from export format to URL
1396  },
1397  "shareable": True or False, # Deprecated: use capabilities/canShare.
1398  "copyRequiresWriterPermission": True or False, # Whether the options to copy, print, or download this file, should be disabled for readers and commenters.
1399  "fullFileExtension": "A String", # The full file extension; extracted from the title. May contain multiple concatenated extensions, such as "tar.gz". 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 Google Docs or shortcut files.
1400  "openWithLinks": { # A map of the id of each of the user's apps to a link to open this file with that app. Only populated when the drive.apps.readonly scope is used.
1401    "a_key": "A String",
1402  },
1403  "canReadRevisions": True or False, # Deprecated: use capabilities/canReadRevisions.
1404  "imageMediaMetadata": { # Metadata about image media. This will only be present for image types, and its contents will depend on what can be parsed from the image content.
1405    "exposureBias": 3.14, # The exposure bias of the photo (APEX value).
1406    "exposureTime": 3.14, # The length of the exposure, in seconds.
1407    "cameraMake": "A String", # The make of the camera used to create the photo.
1408    "maxApertureValue": 3.14, # The smallest f-number of the lens at the focal length used to create the photo (APEX value).
1409    "isoSpeed": 42, # The ISO speed used to create the photo.
1410    "focalLength": 3.14, # The focal length used to create the photo, in millimeters.
1411    "exposureMode": "A String", # The exposure mode used to create the photo.
1412    "colorSpace": "A String", # The color space of the photo.
1413    "location": { # Geographic location information stored in the image.
1414      "latitude": 3.14, # The latitude stored in the image.
1415      "altitude": 3.14, # The altitude stored in the image.
1416      "longitude": 3.14, # The longitude stored in the image.
1417    },
1418    "subjectDistance": 42, # The distance to the subject of the photo, in meters.
1419    "height": 42, # The height of the image in pixels.
1420    "lens": "A String", # The lens used to create the photo.
1421    "date": "A String", # The date and time the photo was taken (EXIF format timestamp).
1422    "width": 42, # The width of the image in pixels.
1423    "meteringMode": "A String", # The metering mode used to create the photo.
1424    "flashUsed": True or False, # Whether a flash was used to create the photo.
1425    "aperture": 3.14, # The aperture used to create the photo (f-number).
1426    "rotation": 42, # The rotation in clockwise degrees from the image's original orientation.
1427    "sensor": "A String", # The type of sensor used to create the photo.
1428    "whiteBalance": "A String", # The white balance mode used to create the photo.
1429    "cameraModel": "A String", # The model of the camera used to create the photo.
1430  },
1431  "description": "A String", # A short description of the file.
1432  "webContentLink": "A String", # 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.
1433  "videoMediaMetadata": { # Metadata about video media. This will only be present for video types.
1434    "width": 42, # The width of the video in pixels.
1435    "durationMillis": "A String", # The duration of the video in milliseconds.
1436    "height": 42, # The height of the video in pixels.
1437  },
1438  "editable": True or False, # Deprecated: use capabilities/canEdit.
1439  "kind": "drive#file", # The type of file. This is always drive#file.
1440  "canComment": True or False, # Deprecated: use capabilities/canComment.
1441  "quotaBytesUsed": "A String", # The number of quota bytes used by this file.
1442  "fileSize": "A String", # The size of the file in bytes. This field is only populated for files with content stored in Google Drive; it is not populated for Google Docs or shortcut files.
1443  "createdDate": "A String", # Create time for this file (formatted RFC 3339 timestamp).
1444  "teamDriveId": "A String", # Deprecated - use driveId instead.
1445  "properties": [ # The list of properties.
1446    { # A key-value pair attached to a file that is either public or private to an application.
1447        # The following limits apply to file properties:
1448        # - Maximum of 100 properties total per file
1449        # - Maximum of 30 private properties per app
1450        # - Maximum of 30 public properties
1451        # - Maximum of 124 bytes size limit on (key + value) string in UTF-8 encoding for a single property.
1452      "kind": "drive#property", # This is always drive#property.
1453      "value": "A String", # The value of this property.
1454      "etag": "A String", # ETag of the property.
1455      "visibility": "A String", # The visibility of this property. Allowed values are PRIVATE and PUBLIC. (Default: PRIVATE)
1456      "key": "A String", # The key of this property.
1457      "selfLink": "A String", # The link back to this property.
1458    },
1459  ],
1460  "md5Checksum": "A String", # 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 Google Docs or shortcut files.
1461  "iconLink": "A String", # A link to the file's icon.
1462  "defaultOpenWithLink": "A String", # A link to open this file with the user's default app for this file. Only populated when the drive.apps.readonly scope is used.
1463  "embedLink": "A String", # A link for embedding the file.
1464  "alternateLink": "A String", # A link for opening the file in a relevant Google editor or viewer.
1465  "shared": True or False, # Whether the file has been shared. Not populated for items in shared drives.
1466  "title": "A String", # 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.
1467  "modifiedByMeDate": "A String", # 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.
1468  "thumbnail": { # A thumbnail for the file. This will only be used if a standard thumbnail cannot be generated.
1469    "mimeType": "A String", # The MIME type of the thumbnail.
1470    "image": "A String", # The URL-safe Base64 encoded bytes of the thumbnail image. It should conform to RFC 4648 section 5.
1471  },
1472  "driveId": "A String", # ID of the shared drive the file resides in. Only populated for items in shared drives.
1473  "userPermission": { # A permission for a file. # The permissions for the authenticated user on this file.
1474    "withLink": True or False, # Whether the link is required for this permission.
1475    "domain": "A String", # The domain name of the entity this permission refers to. This is an output-only field which is present when the permission type is user, group or domain.
1476    "permissionDetails": [ # 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.
1477      {
1478        "role": "A String", # The primary role for this user. While new values may be added in the future, the following are currently possible:
1479            # - organizer
1480            # - fileOrganizer
1481            # - writer
1482            # - reader
1483        "inheritedFrom": "A String", # The ID of the item from which this permission is inherited. This is an output-only field and is only populated for members of the shared drive.
1484        "permissionType": "A String", # The permission type for this user. While new values may be added in future, the following are currently possible:
1485            # - file
1486            # - member
1487        "additionalRoles": [ # Additional roles for this user. Only commenter is currently possible, though more may be supported in the future.
1488          "A String",
1489        ],
1490        "inherited": True or False, # Whether this permission is inherited. This field is always populated. This is an output-only field.
1491      },
1492    ],
1493    "name": "A String", # The name for this permission.
1494    "teamDrivePermissionDetails": [ # Deprecated - use permissionDetails instead.
1495      {
1496        "inheritedFrom": "A String", # Deprecated - use permissionDetails/inheritedFrom instead.
1497        "role": "A String", # Deprecated - use permissionDetails/role instead.
1498        "additionalRoles": [ # Deprecated - use permissionDetails/additionalRoles instead.
1499          "A String",
1500        ],
1501        "teamDrivePermissionType": "A String", # Deprecated - use permissionDetails/permissionType instead.
1502        "inherited": True or False, # Deprecated - use permissionDetails/inherited instead.
1503      },
1504    ],
1505    "deleted": True or False, # Whether the account associated with this permission has been deleted. This field only pertains to user and group permissions.
1506    "kind": "drive#permission", # This is always drive#permission.
1507    "value": "A String", # The email address or domain name for the entity. This is used during inserts and is not populated in responses. When making a drive.permissions.insert request, exactly one of the id or value fields must be specified unless the permission type is anyone, in which case both id and value are ignored.
1508    "id": "A String", # The ID of the user this permission refers to, and identical to the permissionId in the About and Files resources. When making a drive.permissions.insert request, exactly one of the id or value fields must be specified unless the permission type is anyone, in which case both id and value are ignored.
1509    "authKey": "A String", # Deprecated.
1510    "etag": "A String", # The ETag of the permission.
1511    "emailAddress": "A String", # 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.
1512    "expirationDate": "A String", # The time at which this permission will expire (RFC 3339 date-time). Expiration dates have the following restrictions:
1513        # - They can only be set on user and group permissions
1514        # - The date must be in the future
1515        # - The date cannot be more than a year in the future
1516        # - The date can only be set on drive.permissions.update or drive.permissions.patch requests
1517    "role": "A String", # The primary role for this user. While new values may be supported in the future, the following are currently allowed:
1518        # - owner
1519        # - organizer
1520        # - fileOrganizer
1521        # - writer
1522        # - reader
1523    "type": "A String", # The account type. Allowed values are:
1524        # - user
1525        # - group
1526        # - domain
1527        # - anyone
1528    "additionalRoles": [ # Additional roles for this user. Only commenter is currently allowed, though more may be supported in the future.
1529      "A String",
1530    ],
1531    "selfLink": "A String", # A link back to this permission.
1532    "photoLink": "A String", # A link to the profile photo, if available.
1533  },
1534  "spaces": [ # The list of spaces which contain the file. Supported values are 'drive', 'appDataFolder' and 'photos'.
1535    "A String",
1536  ],
1537  "permissionIds": [ # List of permission IDs for users with access to this file.
1538    "A String",
1539  ],
1540  "originalFilename": "A String", # The original filename of the uploaded content if available, or else the original value of the title field. This is only available for files with binary content in Google Drive.
1541  "fileExtension": "A String", # The final component of fullFileExtension with trailing text that does not appear to be part of the extension removed. This field is only populated for files with content stored in Google Drive; it is not populated for Google Docs or shortcut files.
1542  "hasAugmentedPermissions": True or False, # Whether any users are granted file access directly on this file. This field is only populated for items in shared drives.
1543  "permissions": [ # The list of permissions for users with access to this file. Not populated for items in shared drives.
1544    { # A permission for a file.
1545      "withLink": True or False, # Whether the link is required for this permission.
1546      "domain": "A String", # The domain name of the entity this permission refers to. This is an output-only field which is present when the permission type is user, group or domain.
1547      "permissionDetails": [ # 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.
1548        {
1549          "role": "A String", # The primary role for this user. While new values may be added in the future, the following are currently possible:
1550              # - organizer
1551              # - fileOrganizer
1552              # - writer
1553              # - reader
1554          "inheritedFrom": "A String", # The ID of the item from which this permission is inherited. This is an output-only field and is only populated for members of the shared drive.
1555          "permissionType": "A String", # The permission type for this user. While new values may be added in future, the following are currently possible:
1556              # - file
1557              # - member
1558          "additionalRoles": [ # Additional roles for this user. Only commenter is currently possible, though more may be supported in the future.
1559            "A String",
1560          ],
1561          "inherited": True or False, # Whether this permission is inherited. This field is always populated. This is an output-only field.
1562        },
1563      ],
1564      "name": "A String", # The name for this permission.
1565      "teamDrivePermissionDetails": [ # Deprecated - use permissionDetails instead.
1566        {
1567          "inheritedFrom": "A String", # Deprecated - use permissionDetails/inheritedFrom instead.
1568          "role": "A String", # Deprecated - use permissionDetails/role instead.
1569          "additionalRoles": [ # Deprecated - use permissionDetails/additionalRoles instead.
1570            "A String",
1571          ],
1572          "teamDrivePermissionType": "A String", # Deprecated - use permissionDetails/permissionType instead.
1573          "inherited": True or False, # Deprecated - use permissionDetails/inherited instead.
1574        },
1575      ],
1576      "deleted": True or False, # Whether the account associated with this permission has been deleted. This field only pertains to user and group permissions.
1577      "kind": "drive#permission", # This is always drive#permission.
1578      "value": "A String", # The email address or domain name for the entity. This is used during inserts and is not populated in responses. When making a drive.permissions.insert request, exactly one of the id or value fields must be specified unless the permission type is anyone, in which case both id and value are ignored.
1579      "id": "A String", # The ID of the user this permission refers to, and identical to the permissionId in the About and Files resources. When making a drive.permissions.insert request, exactly one of the id or value fields must be specified unless the permission type is anyone, in which case both id and value are ignored.
1580      "authKey": "A String", # Deprecated.
1581      "etag": "A String", # The ETag of the permission.
1582      "emailAddress": "A String", # 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.
1583      "expirationDate": "A String", # The time at which this permission will expire (RFC 3339 date-time). Expiration dates have the following restrictions:
1584          # - They can only be set on user and group permissions
1585          # - The date must be in the future
1586          # - The date cannot be more than a year in the future
1587          # - The date can only be set on drive.permissions.update or drive.permissions.patch requests
1588      "role": "A String", # The primary role for this user. While new values may be supported in the future, the following are currently allowed:
1589          # - owner
1590          # - organizer
1591          # - fileOrganizer
1592          # - writer
1593          # - reader
1594      "type": "A String", # The account type. Allowed values are:
1595          # - user
1596          # - group
1597          # - domain
1598          # - anyone
1599      "additionalRoles": [ # Additional roles for this user. Only commenter is currently allowed, though more may be supported in the future.
1600        "A String",
1601      ],
1602      "selfLink": "A String", # A link back to this permission.
1603      "photoLink": "A String", # A link to the profile photo, if available.
1604    },
1605  ],
1606  "headRevisionId": "A String", # The ID of the file's head revision. This field is only populated for files with content stored in Google Drive; it is not populated for Google Docs or shortcut files.
1607  "selfLink": "A String", # A link back to this file.
1608  "modifiedDate": "A String", # Last time this file was modified by anyone (formatted RFC 3339 timestamp). This is only mutable on update when the setModifiedDate parameter is set.
1609}
1610
1611  supportsTeamDrives: boolean, Deprecated use supportsAllDrives instead.
1612  media_body: string, The filename of the media request body, or an instance of a MediaUpload object.
1613  ocrLanguage: string, If ocr is true, hints at the language to use. Valid values are BCP 47 codes.
1614  ocr: boolean, Whether to attempt OCR on .jpg, .png, .gif, or .pdf uploads.
1615  pinned: boolean, Whether to pin the head revision of the uploaded file. A file can have a maximum of 200 pinned revisions.
1616  visibility: string, The visibility of the new file. This parameter is only relevant when convert=false.
1617    Allowed values
1618      DEFAULT - The visibility of the new file is determined by the user's default visibility/sharing policies.
1619      PRIVATE - The new file will be visible to only the owner.
1620  timedTextTrackName: string, The timed text track name.
1621  convert: boolean, Whether to convert this file to the corresponding Google Docs format.
1622  useContentAsIndexableText: boolean, Whether to use the content as indexable text.
1623  supportsAllDrives: boolean, Deprecated - Whether the requesting application supports both My Drives and shared drives. This parameter will only be effective until June 1, 2020. Afterwards all applications are assumed to support shared drives.
1624  media_mime_type: string, The MIME type of the media request body, or an instance of a MediaUpload object.
1625  timedTextLanguage: string, The language of the timed text.
1626
1627Returns:
1628  An object of the form:
1629
1630    { # The metadata for a file.
1631    "hasThumbnail": True or False, # Whether this file has a thumbnail. This does not indicate whether the requesting app has access to the thumbnail. To check access, look for the presence of the thumbnailLink field.
1632    "lastViewedByMeDate": "A String", # Last time this file was viewed by the user (formatted RFC 3339 timestamp).
1633    "trashedDate": "A String", # The time that the item was trashed (formatted RFC 3339 timestamp). Only populated for items in shared drives.
1634    "version": "A String", # A monotonically increasing version number for the file. This reflects every change made to the file on the server, even those not visible to the requesting user.
1635    "appDataContents": True or False, # Whether this file is in the Application Data folder.
1636    "thumbnailLink": "A String", # A short-lived link to the file's thumbnail. Typically lasts on the order of hours. Only populated when the requesting app can access the file's content.
1637    "labels": { # A group of labels for the file.
1638      "restricted": True or False, # Deprecated - use copyRequiresWriterPermission instead.
1639      "modified": True or False, # Whether the file has been modified by this user.
1640      "trashed": True or False, # Whether this file has been trashed. This label applies to all users accessing the file; however, only owners are allowed to see and untrash files.
1641      "hidden": True or False, # Deprecated.
1642      "starred": True or False, # Whether this file is starred by the user.
1643      "viewed": True or False, # Whether this file has been viewed by this user.
1644    },
1645    "indexableText": { # Indexable text attributes for the file (can only be written)
1646      "text": "A String", # The text to be indexed for this file.
1647    },
1648    "thumbnailVersion": "A String", # The thumbnail version for use in thumbnail cache invalidation.
1649    "explicitlyTrashed": True or False, # Whether this file has been explicitly trashed, as opposed to recursively trashed.
1650    "isAppAuthorized": True or False, # Whether the file was created or opened by the requesting app.
1651    "lastModifyingUserName": "A String", # Name of the last user to modify this file.
1652    "writersCanShare": True or False, # Whether writers can share the document with other users. Not populated for items in shared drives.
1653    "owners": [ # The owner(s) of this file. Not populated for items in shared drives.
1654      { # Information about a Drive user.
1655        "picture": { # The user's profile picture.
1656          "url": "A String", # A URL that points to a profile picture of this user.
1657        },
1658        "kind": "drive#user", # This is always drive#user.
1659        "displayName": "A String", # A plain text displayable name for this user.
1660        "permissionId": "A String", # The user's ID as visible in the permissions collection.
1661        "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
1662        "emailAddress": "A String", # The email address of the user.
1663      },
1664    ],
1665    "ownedByMe": True or False, # Whether the file is owned by the current user. Not populated for items in shared drives.
1666    "id": "A String", # The ID of the file.
1667    "sharingUser": { # Information about a Drive user. # User that shared the item with the current user, if available.
1668      "picture": { # The user's profile picture.
1669        "url": "A String", # A URL that points to a profile picture of this user.
1670      },
1671      "kind": "drive#user", # This is always drive#user.
1672      "displayName": "A String", # A plain text displayable name for this user.
1673      "permissionId": "A String", # The user's ID as visible in the permissions collection.
1674      "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
1675      "emailAddress": "A String", # The email address of the user.
1676    },
1677    "trashingUser": { # Information about a Drive user. # If the file has been explicitly trashed, the user who trashed it. Only populated for items in shared drives.
1678      "picture": { # The user's profile picture.
1679        "url": "A String", # A URL that points to a profile picture of this user.
1680      },
1681      "kind": "drive#user", # This is always drive#user.
1682      "displayName": "A String", # A plain text displayable name for this user.
1683      "permissionId": "A String", # The user's ID as visible in the permissions collection.
1684      "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
1685      "emailAddress": "A String", # The email address of the user.
1686    },
1687    "downloadUrl": "A String", # 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 Google Docs or shortcut files.
1688    "mimeType": "A String", # 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's MIME type.
1689    "lastModifyingUser": { # Information about a Drive user. # The last user to modify this file.
1690      "picture": { # The user's profile picture.
1691        "url": "A String", # A URL that points to a profile picture of this user.
1692      },
1693      "kind": "drive#user", # This is always drive#user.
1694      "displayName": "A String", # A plain text displayable name for this user.
1695      "permissionId": "A String", # The user's ID as visible in the permissions collection.
1696      "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
1697      "emailAddress": "A String", # The email address of the user.
1698    },
1699    "copyable": True or False, # Deprecated: use capabilities/canCopy.
1700    "folderColorRgb": "A String", # Folder color as an RGB hex string if the file is a folder. The list of supported colors is available in the folderColorPalette field of the About resource. If an unsupported color is specified, it will be changed to the closest color in the palette. Not populated for items in shared drives.
1701    "markedViewedByMeDate": "A String", # Deprecated.
1702    "ownerNames": [ # Name(s) of the owner(s) of this file. Not populated for items in shared drives.
1703      "A String",
1704    ],
1705    "capabilities": { # Capabilities the current user has on this file. Each capability corresponds to a fine-grained action that a user may take.
1706      "canMoveItemOutOfDrive": 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.
1707      "canUntrash": True or False, # Whether the current user can restore this file from trash.
1708      "canMoveItemWithinTeamDrive": True or False, # Deprecated - use canMoveItemWithinDrive instead.
1709      "canDeleteChildren": 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.
1710      "canMoveChildrenWithinTeamDrive": True or False, # Deprecated - use canMoveChildrenWithinDrive instead.
1711      "canListChildren": True or False, # Whether the current user can list the children of this folder. This is always false when the item is not a folder.
1712      "canRename": True or False, # Whether the current user can rename this file.
1713      "canReadDrive": True or False, # Whether the current user can read the shared drive to which this file belongs. Only populated for items in shared drives.
1714      "canAddChildren": True or False, # Whether the current user can add children to this folder. This is always false when the item is not a folder.
1715      "canChangeRestrictedDownload": True or False, # Deprecated
1716      "canShare": True or False, # Whether the current user can modify the sharing settings for this file.
1717      "canTrashChildren": 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.
1718      "canMoveChildrenWithinDrive": True or False, # Whether the current user can move children of this folder within the shared drive. This is false when the item is not a folder. Only populated for items in shared drives.
1719      "canReadRevisions": 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.
1720      "canMoveItemWithinDrive": True or False, # Whether the current user can move this item within this shared drive. Note that a request to change the parent of the item may still fail depending on the new parent that is being added. Only populated for items in shared drives.
1721      "canCopy": 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.
1722      "canMoveItemIntoTeamDrive": True or False, # Deprecated - use canMoveItemOutOfDrive instead.
1723      "canMoveItemOutOfTeamDrive": True or False, # Deprecated - use canMoveItemOutOfDrive instead.
1724      "canComment": True or False, # Whether the current user can comment on this file.
1725      "canMoveChildrenOutOfDrive": 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.
1726      "canTrash": True or False, # Whether the current user can move this file to trash.
1727      "canDelete": True or False, # Whether the current user can delete this file.
1728      "canMoveTeamDriveItem": True or False, # Deprecated - use canMoveItemWithinDrive or canMoveItemOutOfDrive instead.
1729      "canDownload": True or False, # Whether the current user can download this file.
1730      "canChangeCopyRequiresWriterPermission": True or False, # Whether the current user can change the copyRequiresWriterPermission restriction of this file.
1731      "canMoveChildrenOutOfTeamDrive": True or False, # Deprecated - use canMoveChildrenOutOfDrive instead.
1732      "canRemoveChildren": True or False, # Whether the current user can remove children from this folder. This is always false when the item is not a folder. For a folder in a shared drive, use canDeleteChildren or canTrashChildren instead.
1733      "canReadTeamDrive": True or False, # Deprecated - use canReadDrive instead.
1734      "canEdit": True or False, # Whether the current user can edit this file.
1735    },
1736    "sharedWithMeDate": "A String", # Time at which this file was shared with the user (formatted RFC 3339 timestamp).
1737    "webViewLink": "A String", # A link only available on public folders for viewing their static web assets (HTML, CSS, JS, etc) via Google Drive's Website Hosting.
1738    "etag": "A String", # ETag of the file.
1739    "parents": [ # Collection of parent folders which contain this file.
1740        # If not specified as part of an insert request, the file will be placed directly in the user's My Drive folder. If not specified as part of a copy request, the file will inherit any discoverable parents of the source file. Update requests can also use the addParents and removeParents parameters to modify the parents list.
1741      { # A reference to a file's parent.
1742        "selfLink": "A String", # A link back to this reference.
1743        "kind": "drive#parentReference", # This is always drive#parentReference.
1744        "id": "A String", # The ID of the parent.
1745        "isRoot": True or False, # Whether or not the parent is the root folder.
1746        "parentLink": "A String", # A link to the parent.
1747      },
1748    ],
1749    "exportLinks": { # Links for exporting Google Docs to specific formats.
1750      "a_key": "A String", # A mapping from export format to URL
1751    },
1752    "shareable": True or False, # Deprecated: use capabilities/canShare.
1753    "copyRequiresWriterPermission": True or False, # Whether the options to copy, print, or download this file, should be disabled for readers and commenters.
1754    "fullFileExtension": "A String", # The full file extension; extracted from the title. May contain multiple concatenated extensions, such as "tar.gz". 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 Google Docs or shortcut files.
1755    "openWithLinks": { # A map of the id of each of the user's apps to a link to open this file with that app. Only populated when the drive.apps.readonly scope is used.
1756      "a_key": "A String",
1757    },
1758    "canReadRevisions": True or False, # Deprecated: use capabilities/canReadRevisions.
1759    "imageMediaMetadata": { # Metadata about image media. This will only be present for image types, and its contents will depend on what can be parsed from the image content.
1760      "exposureBias": 3.14, # The exposure bias of the photo (APEX value).
1761      "exposureTime": 3.14, # The length of the exposure, in seconds.
1762      "cameraMake": "A String", # The make of the camera used to create the photo.
1763      "maxApertureValue": 3.14, # The smallest f-number of the lens at the focal length used to create the photo (APEX value).
1764      "isoSpeed": 42, # The ISO speed used to create the photo.
1765      "focalLength": 3.14, # The focal length used to create the photo, in millimeters.
1766      "exposureMode": "A String", # The exposure mode used to create the photo.
1767      "colorSpace": "A String", # The color space of the photo.
1768      "location": { # Geographic location information stored in the image.
1769        "latitude": 3.14, # The latitude stored in the image.
1770        "altitude": 3.14, # The altitude stored in the image.
1771        "longitude": 3.14, # The longitude stored in the image.
1772      },
1773      "subjectDistance": 42, # The distance to the subject of the photo, in meters.
1774      "height": 42, # The height of the image in pixels.
1775      "lens": "A String", # The lens used to create the photo.
1776      "date": "A String", # The date and time the photo was taken (EXIF format timestamp).
1777      "width": 42, # The width of the image in pixels.
1778      "meteringMode": "A String", # The metering mode used to create the photo.
1779      "flashUsed": True or False, # Whether a flash was used to create the photo.
1780      "aperture": 3.14, # The aperture used to create the photo (f-number).
1781      "rotation": 42, # The rotation in clockwise degrees from the image's original orientation.
1782      "sensor": "A String", # The type of sensor used to create the photo.
1783      "whiteBalance": "A String", # The white balance mode used to create the photo.
1784      "cameraModel": "A String", # The model of the camera used to create the photo.
1785    },
1786    "description": "A String", # A short description of the file.
1787    "webContentLink": "A String", # 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.
1788    "videoMediaMetadata": { # Metadata about video media. This will only be present for video types.
1789      "width": 42, # The width of the video in pixels.
1790      "durationMillis": "A String", # The duration of the video in milliseconds.
1791      "height": 42, # The height of the video in pixels.
1792    },
1793    "editable": True or False, # Deprecated: use capabilities/canEdit.
1794    "kind": "drive#file", # The type of file. This is always drive#file.
1795    "canComment": True or False, # Deprecated: use capabilities/canComment.
1796    "quotaBytesUsed": "A String", # The number of quota bytes used by this file.
1797    "fileSize": "A String", # The size of the file in bytes. This field is only populated for files with content stored in Google Drive; it is not populated for Google Docs or shortcut files.
1798    "createdDate": "A String", # Create time for this file (formatted RFC 3339 timestamp).
1799    "teamDriveId": "A String", # Deprecated - use driveId instead.
1800    "properties": [ # The list of properties.
1801      { # A key-value pair attached to a file that is either public or private to an application.
1802          # The following limits apply to file properties:
1803          # - Maximum of 100 properties total per file
1804          # - Maximum of 30 private properties per app
1805          # - Maximum of 30 public properties
1806          # - Maximum of 124 bytes size limit on (key + value) string in UTF-8 encoding for a single property.
1807        "kind": "drive#property", # This is always drive#property.
1808        "value": "A String", # The value of this property.
1809        "etag": "A String", # ETag of the property.
1810        "visibility": "A String", # The visibility of this property. Allowed values are PRIVATE and PUBLIC. (Default: PRIVATE)
1811        "key": "A String", # The key of this property.
1812        "selfLink": "A String", # The link back to this property.
1813      },
1814    ],
1815    "md5Checksum": "A String", # 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 Google Docs or shortcut files.
1816    "iconLink": "A String", # A link to the file's icon.
1817    "defaultOpenWithLink": "A String", # A link to open this file with the user's default app for this file. Only populated when the drive.apps.readonly scope is used.
1818    "embedLink": "A String", # A link for embedding the file.
1819    "alternateLink": "A String", # A link for opening the file in a relevant Google editor or viewer.
1820    "shared": True or False, # Whether the file has been shared. Not populated for items in shared drives.
1821    "title": "A String", # 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.
1822    "modifiedByMeDate": "A String", # 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.
1823    "thumbnail": { # A thumbnail for the file. This will only be used if a standard thumbnail cannot be generated.
1824      "mimeType": "A String", # The MIME type of the thumbnail.
1825      "image": "A String", # The URL-safe Base64 encoded bytes of the thumbnail image. It should conform to RFC 4648 section 5.
1826    },
1827    "driveId": "A String", # ID of the shared drive the file resides in. Only populated for items in shared drives.
1828    "userPermission": { # A permission for a file. # The permissions for the authenticated user on this file.
1829      "withLink": True or False, # Whether the link is required for this permission.
1830      "domain": "A String", # The domain name of the entity this permission refers to. This is an output-only field which is present when the permission type is user, group or domain.
1831      "permissionDetails": [ # 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.
1832        {
1833          "role": "A String", # The primary role for this user. While new values may be added in the future, the following are currently possible:
1834              # - organizer
1835              # - fileOrganizer
1836              # - writer
1837              # - reader
1838          "inheritedFrom": "A String", # The ID of the item from which this permission is inherited. This is an output-only field and is only populated for members of the shared drive.
1839          "permissionType": "A String", # The permission type for this user. While new values may be added in future, the following are currently possible:
1840              # - file
1841              # - member
1842          "additionalRoles": [ # Additional roles for this user. Only commenter is currently possible, though more may be supported in the future.
1843            "A String",
1844          ],
1845          "inherited": True or False, # Whether this permission is inherited. This field is always populated. This is an output-only field.
1846        },
1847      ],
1848      "name": "A String", # The name for this permission.
1849      "teamDrivePermissionDetails": [ # Deprecated - use permissionDetails instead.
1850        {
1851          "inheritedFrom": "A String", # Deprecated - use permissionDetails/inheritedFrom instead.
1852          "role": "A String", # Deprecated - use permissionDetails/role instead.
1853          "additionalRoles": [ # Deprecated - use permissionDetails/additionalRoles instead.
1854            "A String",
1855          ],
1856          "teamDrivePermissionType": "A String", # Deprecated - use permissionDetails/permissionType instead.
1857          "inherited": True or False, # Deprecated - use permissionDetails/inherited instead.
1858        },
1859      ],
1860      "deleted": True or False, # Whether the account associated with this permission has been deleted. This field only pertains to user and group permissions.
1861      "kind": "drive#permission", # This is always drive#permission.
1862      "value": "A String", # The email address or domain name for the entity. This is used during inserts and is not populated in responses. When making a drive.permissions.insert request, exactly one of the id or value fields must be specified unless the permission type is anyone, in which case both id and value are ignored.
1863      "id": "A String", # The ID of the user this permission refers to, and identical to the permissionId in the About and Files resources. When making a drive.permissions.insert request, exactly one of the id or value fields must be specified unless the permission type is anyone, in which case both id and value are ignored.
1864      "authKey": "A String", # Deprecated.
1865      "etag": "A String", # The ETag of the permission.
1866      "emailAddress": "A String", # 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.
1867      "expirationDate": "A String", # The time at which this permission will expire (RFC 3339 date-time). Expiration dates have the following restrictions:
1868          # - They can only be set on user and group permissions
1869          # - The date must be in the future
1870          # - The date cannot be more than a year in the future
1871          # - The date can only be set on drive.permissions.update or drive.permissions.patch requests
1872      "role": "A String", # The primary role for this user. While new values may be supported in the future, the following are currently allowed:
1873          # - owner
1874          # - organizer
1875          # - fileOrganizer
1876          # - writer
1877          # - reader
1878      "type": "A String", # The account type. Allowed values are:
1879          # - user
1880          # - group
1881          # - domain
1882          # - anyone
1883      "additionalRoles": [ # Additional roles for this user. Only commenter is currently allowed, though more may be supported in the future.
1884        "A String",
1885      ],
1886      "selfLink": "A String", # A link back to this permission.
1887      "photoLink": "A String", # A link to the profile photo, if available.
1888    },
1889    "spaces": [ # The list of spaces which contain the file. Supported values are 'drive', 'appDataFolder' and 'photos'.
1890      "A String",
1891    ],
1892    "permissionIds": [ # List of permission IDs for users with access to this file.
1893      "A String",
1894    ],
1895    "originalFilename": "A String", # The original filename of the uploaded content if available, or else the original value of the title field. This is only available for files with binary content in Google Drive.
1896    "fileExtension": "A String", # The final component of fullFileExtension with trailing text that does not appear to be part of the extension removed. This field is only populated for files with content stored in Google Drive; it is not populated for Google Docs or shortcut files.
1897    "hasAugmentedPermissions": True or False, # Whether any users are granted file access directly on this file. This field is only populated for items in shared drives.
1898    "permissions": [ # The list of permissions for users with access to this file. Not populated for items in shared drives.
1899      { # A permission for a file.
1900        "withLink": True or False, # Whether the link is required for this permission.
1901        "domain": "A String", # The domain name of the entity this permission refers to. This is an output-only field which is present when the permission type is user, group or domain.
1902        "permissionDetails": [ # 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.
1903          {
1904            "role": "A String", # The primary role for this user. While new values may be added in the future, the following are currently possible:
1905                # - organizer
1906                # - fileOrganizer
1907                # - writer
1908                # - reader
1909            "inheritedFrom": "A String", # The ID of the item from which this permission is inherited. This is an output-only field and is only populated for members of the shared drive.
1910            "permissionType": "A String", # The permission type for this user. While new values may be added in future, the following are currently possible:
1911                # - file
1912                # - member
1913            "additionalRoles": [ # Additional roles for this user. Only commenter is currently possible, though more may be supported in the future.
1914              "A String",
1915            ],
1916            "inherited": True or False, # Whether this permission is inherited. This field is always populated. This is an output-only field.
1917          },
1918        ],
1919        "name": "A String", # The name for this permission.
1920        "teamDrivePermissionDetails": [ # Deprecated - use permissionDetails instead.
1921          {
1922            "inheritedFrom": "A String", # Deprecated - use permissionDetails/inheritedFrom instead.
1923            "role": "A String", # Deprecated - use permissionDetails/role instead.
1924            "additionalRoles": [ # Deprecated - use permissionDetails/additionalRoles instead.
1925              "A String",
1926            ],
1927            "teamDrivePermissionType": "A String", # Deprecated - use permissionDetails/permissionType instead.
1928            "inherited": True or False, # Deprecated - use permissionDetails/inherited instead.
1929          },
1930        ],
1931        "deleted": True or False, # Whether the account associated with this permission has been deleted. This field only pertains to user and group permissions.
1932        "kind": "drive#permission", # This is always drive#permission.
1933        "value": "A String", # The email address or domain name for the entity. This is used during inserts and is not populated in responses. When making a drive.permissions.insert request, exactly one of the id or value fields must be specified unless the permission type is anyone, in which case both id and value are ignored.
1934        "id": "A String", # The ID of the user this permission refers to, and identical to the permissionId in the About and Files resources. When making a drive.permissions.insert request, exactly one of the id or value fields must be specified unless the permission type is anyone, in which case both id and value are ignored.
1935        "authKey": "A String", # Deprecated.
1936        "etag": "A String", # The ETag of the permission.
1937        "emailAddress": "A String", # 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.
1938        "expirationDate": "A String", # The time at which this permission will expire (RFC 3339 date-time). Expiration dates have the following restrictions:
1939            # - They can only be set on user and group permissions
1940            # - The date must be in the future
1941            # - The date cannot be more than a year in the future
1942            # - The date can only be set on drive.permissions.update or drive.permissions.patch requests
1943        "role": "A String", # The primary role for this user. While new values may be supported in the future, the following are currently allowed:
1944            # - owner
1945            # - organizer
1946            # - fileOrganizer
1947            # - writer
1948            # - reader
1949        "type": "A String", # The account type. Allowed values are:
1950            # - user
1951            # - group
1952            # - domain
1953            # - anyone
1954        "additionalRoles": [ # Additional roles for this user. Only commenter is currently allowed, though more may be supported in the future.
1955          "A String",
1956        ],
1957        "selfLink": "A String", # A link back to this permission.
1958        "photoLink": "A String", # A link to the profile photo, if available.
1959      },
1960    ],
1961    "headRevisionId": "A String", # The ID of the file's head revision. This field is only populated for files with content stored in Google Drive; it is not populated for Google Docs or shortcut files.
1962    "selfLink": "A String", # A link back to this file.
1963    "modifiedDate": "A String", # Last time this file was modified by anyone (formatted RFC 3339 timestamp). This is only mutable on update when the setModifiedDate parameter is set.
1964  }</pre>
1965</div>
1966
1967<div class="method">
1968    <code class="details" id="list">list(orderBy=None, projection=None, supportsTeamDrives=None, spaces=None, q=None, pageToken=None, corpus=None, maxResults=None, teamDriveId=None, includeItemsFromAllDrives=None, includeTeamDriveItems=None, corpora=None, supportsAllDrives=None, driveId=None)</code>
1969  <pre>Lists the user's files.
1970
1971Args:
1972  orderBy: string, A comma-separated list of sort keys. Valid keys are 'createdDate', 'folder', 'lastViewedByMeDate', 'modifiedByMeDate', 'modifiedDate', 'quotaBytesUsed', 'recency', 'sharedWithMeDate', 'starred', 'title', and 'title_natural'. Each key sorts ascending by default, but may be reversed with the 'desc' modifier. Example usage: ?orderBy=folder,modifiedDate desc,title. Please note that there is a current limitation for users with approximately one million files in which the requested sort order is ignored.
1973  projection: string, This parameter is deprecated and has no function.
1974    Allowed values
1975      BASIC - Deprecated
1976      FULL - Deprecated
1977  supportsTeamDrives: boolean, Deprecated use supportsAllDrives instead.
1978  spaces: string, A comma-separated list of spaces to query. Supported values are 'drive', 'appDataFolder' and 'photos'.
1979  q: string, Query string for searching files.
1980  pageToken: string, Page token for files.
1981  corpus: string, The body of items (files/documents) to which the query applies. Deprecated: use 'corpora' instead.
1982    Allowed values
1983      DEFAULT - The items that the user has accessed.
1984      DOMAIN - Items shared to the user's domain.
1985  maxResults: integer, The maximum number of files to return per page. Partial or empty result pages are possible even before the end of the files list has been reached.
1986  teamDriveId: string, Deprecated use driveId instead.
1987  includeItemsFromAllDrives: boolean, Deprecated - Whether both My Drive and shared drive items should be included in results. This parameter will only be effective until June 1, 2020. Afterwards shared drive items will be included in the results.
1988  includeTeamDriveItems: boolean, Deprecated use includeItemsFromAllDrives instead.
1989  corpora: string, Bodies of items (files/documents) to which the query applies. Supported bodies are 'default', 'domain', 'drive' and 'allDrives'. Prefer 'default' or 'drive' to 'allDrives' for efficiency.
1990  supportsAllDrives: boolean, Deprecated - Whether the requesting application supports both My Drives and shared drives. This parameter will only be effective until June 1, 2020. Afterwards all applications are assumed to support shared drives.
1991  driveId: string, ID of the shared drive to search.
1992
1993Returns:
1994  An object of the form:
1995
1996    { # A list of files.
1997    "incompleteSearch": True or False, # Whether the search process was incomplete. If true, then some search results may be missing, since all documents were not searched. This may occur when searching multiple drives with the "allDrives" corpora, but all corpora could not be searched. When this happens, it is suggested that clients narrow their query by choosing a different corpus such as "default" or "drive".
1998    "nextPageToken": "A String", # The page token for the next page of files. This will be absent if the end of the files 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.
1999    "kind": "drive#fileList", # This is always drive#fileList.
2000    "items": [ # The list of files. If nextPageToken is populated, then this list may be incomplete and an additional page of results should be fetched.
2001      { # The metadata for a file.
2002        "hasThumbnail": True or False, # Whether this file has a thumbnail. This does not indicate whether the requesting app has access to the thumbnail. To check access, look for the presence of the thumbnailLink field.
2003        "lastViewedByMeDate": "A String", # Last time this file was viewed by the user (formatted RFC 3339 timestamp).
2004        "trashedDate": "A String", # The time that the item was trashed (formatted RFC 3339 timestamp). Only populated for items in shared drives.
2005        "version": "A String", # A monotonically increasing version number for the file. This reflects every change made to the file on the server, even those not visible to the requesting user.
2006        "appDataContents": True or False, # Whether this file is in the Application Data folder.
2007        "thumbnailLink": "A String", # A short-lived link to the file's thumbnail. Typically lasts on the order of hours. Only populated when the requesting app can access the file's content.
2008        "labels": { # A group of labels for the file.
2009          "restricted": True or False, # Deprecated - use copyRequiresWriterPermission instead.
2010          "modified": True or False, # Whether the file has been modified by this user.
2011          "trashed": True or False, # Whether this file has been trashed. This label applies to all users accessing the file; however, only owners are allowed to see and untrash files.
2012          "hidden": True or False, # Deprecated.
2013          "starred": True or False, # Whether this file is starred by the user.
2014          "viewed": True or False, # Whether this file has been viewed by this user.
2015        },
2016        "indexableText": { # Indexable text attributes for the file (can only be written)
2017          "text": "A String", # The text to be indexed for this file.
2018        },
2019        "thumbnailVersion": "A String", # The thumbnail version for use in thumbnail cache invalidation.
2020        "explicitlyTrashed": True or False, # Whether this file has been explicitly trashed, as opposed to recursively trashed.
2021        "isAppAuthorized": True or False, # Whether the file was created or opened by the requesting app.
2022        "lastModifyingUserName": "A String", # Name of the last user to modify this file.
2023        "writersCanShare": True or False, # Whether writers can share the document with other users. Not populated for items in shared drives.
2024        "owners": [ # The owner(s) of this file. Not populated for items in shared drives.
2025          { # Information about a Drive user.
2026            "picture": { # The user's profile picture.
2027              "url": "A String", # A URL that points to a profile picture of this user.
2028            },
2029            "kind": "drive#user", # This is always drive#user.
2030            "displayName": "A String", # A plain text displayable name for this user.
2031            "permissionId": "A String", # The user's ID as visible in the permissions collection.
2032            "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
2033            "emailAddress": "A String", # The email address of the user.
2034          },
2035        ],
2036        "ownedByMe": True or False, # Whether the file is owned by the current user. Not populated for items in shared drives.
2037        "id": "A String", # The ID of the file.
2038        "sharingUser": { # Information about a Drive user. # User that shared the item with the current user, if available.
2039          "picture": { # The user's profile picture.
2040            "url": "A String", # A URL that points to a profile picture of this user.
2041          },
2042          "kind": "drive#user", # This is always drive#user.
2043          "displayName": "A String", # A plain text displayable name for this user.
2044          "permissionId": "A String", # The user's ID as visible in the permissions collection.
2045          "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
2046          "emailAddress": "A String", # The email address of the user.
2047        },
2048        "trashingUser": { # Information about a Drive user. # If the file has been explicitly trashed, the user who trashed it. Only populated for items in shared drives.
2049          "picture": { # The user's profile picture.
2050            "url": "A String", # A URL that points to a profile picture of this user.
2051          },
2052          "kind": "drive#user", # This is always drive#user.
2053          "displayName": "A String", # A plain text displayable name for this user.
2054          "permissionId": "A String", # The user's ID as visible in the permissions collection.
2055          "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
2056          "emailAddress": "A String", # The email address of the user.
2057        },
2058        "downloadUrl": "A String", # 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 Google Docs or shortcut files.
2059        "mimeType": "A String", # 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's MIME type.
2060        "lastModifyingUser": { # Information about a Drive user. # The last user to modify this file.
2061          "picture": { # The user's profile picture.
2062            "url": "A String", # A URL that points to a profile picture of this user.
2063          },
2064          "kind": "drive#user", # This is always drive#user.
2065          "displayName": "A String", # A plain text displayable name for this user.
2066          "permissionId": "A String", # The user's ID as visible in the permissions collection.
2067          "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
2068          "emailAddress": "A String", # The email address of the user.
2069        },
2070        "copyable": True or False, # Deprecated: use capabilities/canCopy.
2071        "folderColorRgb": "A String", # Folder color as an RGB hex string if the file is a folder. The list of supported colors is available in the folderColorPalette field of the About resource. If an unsupported color is specified, it will be changed to the closest color in the palette. Not populated for items in shared drives.
2072        "markedViewedByMeDate": "A String", # Deprecated.
2073        "ownerNames": [ # Name(s) of the owner(s) of this file. Not populated for items in shared drives.
2074          "A String",
2075        ],
2076        "capabilities": { # Capabilities the current user has on this file. Each capability corresponds to a fine-grained action that a user may take.
2077          "canMoveItemOutOfDrive": 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.
2078          "canUntrash": True or False, # Whether the current user can restore this file from trash.
2079          "canMoveItemWithinTeamDrive": True or False, # Deprecated - use canMoveItemWithinDrive instead.
2080          "canDeleteChildren": 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.
2081          "canMoveChildrenWithinTeamDrive": True or False, # Deprecated - use canMoveChildrenWithinDrive instead.
2082          "canListChildren": True or False, # Whether the current user can list the children of this folder. This is always false when the item is not a folder.
2083          "canRename": True or False, # Whether the current user can rename this file.
2084          "canReadDrive": True or False, # Whether the current user can read the shared drive to which this file belongs. Only populated for items in shared drives.
2085          "canAddChildren": True or False, # Whether the current user can add children to this folder. This is always false when the item is not a folder.
2086          "canChangeRestrictedDownload": True or False, # Deprecated
2087          "canShare": True or False, # Whether the current user can modify the sharing settings for this file.
2088          "canTrashChildren": 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.
2089          "canMoveChildrenWithinDrive": True or False, # Whether the current user can move children of this folder within the shared drive. This is false when the item is not a folder. Only populated for items in shared drives.
2090          "canReadRevisions": 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.
2091          "canMoveItemWithinDrive": True or False, # Whether the current user can move this item within this shared drive. Note that a request to change the parent of the item may still fail depending on the new parent that is being added. Only populated for items in shared drives.
2092          "canCopy": 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.
2093          "canMoveItemIntoTeamDrive": True or False, # Deprecated - use canMoveItemOutOfDrive instead.
2094          "canMoveItemOutOfTeamDrive": True or False, # Deprecated - use canMoveItemOutOfDrive instead.
2095          "canComment": True or False, # Whether the current user can comment on this file.
2096          "canMoveChildrenOutOfDrive": 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.
2097          "canTrash": True or False, # Whether the current user can move this file to trash.
2098          "canDelete": True or False, # Whether the current user can delete this file.
2099          "canMoveTeamDriveItem": True or False, # Deprecated - use canMoveItemWithinDrive or canMoveItemOutOfDrive instead.
2100          "canDownload": True or False, # Whether the current user can download this file.
2101          "canChangeCopyRequiresWriterPermission": True or False, # Whether the current user can change the copyRequiresWriterPermission restriction of this file.
2102          "canMoveChildrenOutOfTeamDrive": True or False, # Deprecated - use canMoveChildrenOutOfDrive instead.
2103          "canRemoveChildren": True or False, # Whether the current user can remove children from this folder. This is always false when the item is not a folder. For a folder in a shared drive, use canDeleteChildren or canTrashChildren instead.
2104          "canReadTeamDrive": True or False, # Deprecated - use canReadDrive instead.
2105          "canEdit": True or False, # Whether the current user can edit this file.
2106        },
2107        "sharedWithMeDate": "A String", # Time at which this file was shared with the user (formatted RFC 3339 timestamp).
2108        "webViewLink": "A String", # A link only available on public folders for viewing their static web assets (HTML, CSS, JS, etc) via Google Drive's Website Hosting.
2109        "etag": "A String", # ETag of the file.
2110        "parents": [ # Collection of parent folders which contain this file.
2111            # If not specified as part of an insert request, the file will be placed directly in the user's My Drive folder. If not specified as part of a copy request, the file will inherit any discoverable parents of the source file. Update requests can also use the addParents and removeParents parameters to modify the parents list.
2112          { # A reference to a file's parent.
2113            "selfLink": "A String", # A link back to this reference.
2114            "kind": "drive#parentReference", # This is always drive#parentReference.
2115            "id": "A String", # The ID of the parent.
2116            "isRoot": True or False, # Whether or not the parent is the root folder.
2117            "parentLink": "A String", # A link to the parent.
2118          },
2119        ],
2120        "exportLinks": { # Links for exporting Google Docs to specific formats.
2121          "a_key": "A String", # A mapping from export format to URL
2122        },
2123        "shareable": True or False, # Deprecated: use capabilities/canShare.
2124        "copyRequiresWriterPermission": True or False, # Whether the options to copy, print, or download this file, should be disabled for readers and commenters.
2125        "fullFileExtension": "A String", # The full file extension; extracted from the title. May contain multiple concatenated extensions, such as "tar.gz". 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 Google Docs or shortcut files.
2126        "openWithLinks": { # A map of the id of each of the user's apps to a link to open this file with that app. Only populated when the drive.apps.readonly scope is used.
2127          "a_key": "A String",
2128        },
2129        "canReadRevisions": True or False, # Deprecated: use capabilities/canReadRevisions.
2130        "imageMediaMetadata": { # Metadata about image media. This will only be present for image types, and its contents will depend on what can be parsed from the image content.
2131          "exposureBias": 3.14, # The exposure bias of the photo (APEX value).
2132          "exposureTime": 3.14, # The length of the exposure, in seconds.
2133          "cameraMake": "A String", # The make of the camera used to create the photo.
2134          "maxApertureValue": 3.14, # The smallest f-number of the lens at the focal length used to create the photo (APEX value).
2135          "isoSpeed": 42, # The ISO speed used to create the photo.
2136          "focalLength": 3.14, # The focal length used to create the photo, in millimeters.
2137          "exposureMode": "A String", # The exposure mode used to create the photo.
2138          "colorSpace": "A String", # The color space of the photo.
2139          "location": { # Geographic location information stored in the image.
2140            "latitude": 3.14, # The latitude stored in the image.
2141            "altitude": 3.14, # The altitude stored in the image.
2142            "longitude": 3.14, # The longitude stored in the image.
2143          },
2144          "subjectDistance": 42, # The distance to the subject of the photo, in meters.
2145          "height": 42, # The height of the image in pixels.
2146          "lens": "A String", # The lens used to create the photo.
2147          "date": "A String", # The date and time the photo was taken (EXIF format timestamp).
2148          "width": 42, # The width of the image in pixels.
2149          "meteringMode": "A String", # The metering mode used to create the photo.
2150          "flashUsed": True or False, # Whether a flash was used to create the photo.
2151          "aperture": 3.14, # The aperture used to create the photo (f-number).
2152          "rotation": 42, # The rotation in clockwise degrees from the image's original orientation.
2153          "sensor": "A String", # The type of sensor used to create the photo.
2154          "whiteBalance": "A String", # The white balance mode used to create the photo.
2155          "cameraModel": "A String", # The model of the camera used to create the photo.
2156        },
2157        "description": "A String", # A short description of the file.
2158        "webContentLink": "A String", # 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.
2159        "videoMediaMetadata": { # Metadata about video media. This will only be present for video types.
2160          "width": 42, # The width of the video in pixels.
2161          "durationMillis": "A String", # The duration of the video in milliseconds.
2162          "height": 42, # The height of the video in pixels.
2163        },
2164        "editable": True or False, # Deprecated: use capabilities/canEdit.
2165        "kind": "drive#file", # The type of file. This is always drive#file.
2166        "canComment": True or False, # Deprecated: use capabilities/canComment.
2167        "quotaBytesUsed": "A String", # The number of quota bytes used by this file.
2168        "fileSize": "A String", # The size of the file in bytes. This field is only populated for files with content stored in Google Drive; it is not populated for Google Docs or shortcut files.
2169        "createdDate": "A String", # Create time for this file (formatted RFC 3339 timestamp).
2170        "teamDriveId": "A String", # Deprecated - use driveId instead.
2171        "properties": [ # The list of properties.
2172          { # A key-value pair attached to a file that is either public or private to an application.
2173              # The following limits apply to file properties:
2174              # - Maximum of 100 properties total per file
2175              # - Maximum of 30 private properties per app
2176              # - Maximum of 30 public properties
2177              # - Maximum of 124 bytes size limit on (key + value) string in UTF-8 encoding for a single property.
2178            "kind": "drive#property", # This is always drive#property.
2179            "value": "A String", # The value of this property.
2180            "etag": "A String", # ETag of the property.
2181            "visibility": "A String", # The visibility of this property. Allowed values are PRIVATE and PUBLIC. (Default: PRIVATE)
2182            "key": "A String", # The key of this property.
2183            "selfLink": "A String", # The link back to this property.
2184          },
2185        ],
2186        "md5Checksum": "A String", # 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 Google Docs or shortcut files.
2187        "iconLink": "A String", # A link to the file's icon.
2188        "defaultOpenWithLink": "A String", # A link to open this file with the user's default app for this file. Only populated when the drive.apps.readonly scope is used.
2189        "embedLink": "A String", # A link for embedding the file.
2190        "alternateLink": "A String", # A link for opening the file in a relevant Google editor or viewer.
2191        "shared": True or False, # Whether the file has been shared. Not populated for items in shared drives.
2192        "title": "A String", # 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.
2193        "modifiedByMeDate": "A String", # 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.
2194        "thumbnail": { # A thumbnail for the file. This will only be used if a standard thumbnail cannot be generated.
2195          "mimeType": "A String", # The MIME type of the thumbnail.
2196          "image": "A String", # The URL-safe Base64 encoded bytes of the thumbnail image. It should conform to RFC 4648 section 5.
2197        },
2198        "driveId": "A String", # ID of the shared drive the file resides in. Only populated for items in shared drives.
2199        "userPermission": { # A permission for a file. # The permissions for the authenticated user on this file.
2200          "withLink": True or False, # Whether the link is required for this permission.
2201          "domain": "A String", # The domain name of the entity this permission refers to. This is an output-only field which is present when the permission type is user, group or domain.
2202          "permissionDetails": [ # 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.
2203            {
2204              "role": "A String", # The primary role for this user. While new values may be added in the future, the following are currently possible:
2205                  # - organizer
2206                  # - fileOrganizer
2207                  # - writer
2208                  # - reader
2209              "inheritedFrom": "A String", # The ID of the item from which this permission is inherited. This is an output-only field and is only populated for members of the shared drive.
2210              "permissionType": "A String", # The permission type for this user. While new values may be added in future, the following are currently possible:
2211                  # - file
2212                  # - member
2213              "additionalRoles": [ # Additional roles for this user. Only commenter is currently possible, though more may be supported in the future.
2214                "A String",
2215              ],
2216              "inherited": True or False, # Whether this permission is inherited. This field is always populated. This is an output-only field.
2217            },
2218          ],
2219          "name": "A String", # The name for this permission.
2220          "teamDrivePermissionDetails": [ # Deprecated - use permissionDetails instead.
2221            {
2222              "inheritedFrom": "A String", # Deprecated - use permissionDetails/inheritedFrom instead.
2223              "role": "A String", # Deprecated - use permissionDetails/role instead.
2224              "additionalRoles": [ # Deprecated - use permissionDetails/additionalRoles instead.
2225                "A String",
2226              ],
2227              "teamDrivePermissionType": "A String", # Deprecated - use permissionDetails/permissionType instead.
2228              "inherited": True or False, # Deprecated - use permissionDetails/inherited instead.
2229            },
2230          ],
2231          "deleted": True or False, # Whether the account associated with this permission has been deleted. This field only pertains to user and group permissions.
2232          "kind": "drive#permission", # This is always drive#permission.
2233          "value": "A String", # The email address or domain name for the entity. This is used during inserts and is not populated in responses. When making a drive.permissions.insert request, exactly one of the id or value fields must be specified unless the permission type is anyone, in which case both id and value are ignored.
2234          "id": "A String", # The ID of the user this permission refers to, and identical to the permissionId in the About and Files resources. When making a drive.permissions.insert request, exactly one of the id or value fields must be specified unless the permission type is anyone, in which case both id and value are ignored.
2235          "authKey": "A String", # Deprecated.
2236          "etag": "A String", # The ETag of the permission.
2237          "emailAddress": "A String", # 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.
2238          "expirationDate": "A String", # The time at which this permission will expire (RFC 3339 date-time). Expiration dates have the following restrictions:
2239              # - They can only be set on user and group permissions
2240              # - The date must be in the future
2241              # - The date cannot be more than a year in the future
2242              # - The date can only be set on drive.permissions.update or drive.permissions.patch requests
2243          "role": "A String", # The primary role for this user. While new values may be supported in the future, the following are currently allowed:
2244              # - owner
2245              # - organizer
2246              # - fileOrganizer
2247              # - writer
2248              # - reader
2249          "type": "A String", # The account type. Allowed values are:
2250              # - user
2251              # - group
2252              # - domain
2253              # - anyone
2254          "additionalRoles": [ # Additional roles for this user. Only commenter is currently allowed, though more may be supported in the future.
2255            "A String",
2256          ],
2257          "selfLink": "A String", # A link back to this permission.
2258          "photoLink": "A String", # A link to the profile photo, if available.
2259        },
2260        "spaces": [ # The list of spaces which contain the file. Supported values are 'drive', 'appDataFolder' and 'photos'.
2261          "A String",
2262        ],
2263        "permissionIds": [ # List of permission IDs for users with access to this file.
2264          "A String",
2265        ],
2266        "originalFilename": "A String", # The original filename of the uploaded content if available, or else the original value of the title field. This is only available for files with binary content in Google Drive.
2267        "fileExtension": "A String", # The final component of fullFileExtension with trailing text that does not appear to be part of the extension removed. This field is only populated for files with content stored in Google Drive; it is not populated for Google Docs or shortcut files.
2268        "hasAugmentedPermissions": True or False, # Whether any users are granted file access directly on this file. This field is only populated for items in shared drives.
2269        "permissions": [ # The list of permissions for users with access to this file. Not populated for items in shared drives.
2270          { # A permission for a file.
2271            "withLink": True or False, # Whether the link is required for this permission.
2272            "domain": "A String", # The domain name of the entity this permission refers to. This is an output-only field which is present when the permission type is user, group or domain.
2273            "permissionDetails": [ # 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.
2274              {
2275                "role": "A String", # The primary role for this user. While new values may be added in the future, the following are currently possible:
2276                    # - organizer
2277                    # - fileOrganizer
2278                    # - writer
2279                    # - reader
2280                "inheritedFrom": "A String", # The ID of the item from which this permission is inherited. This is an output-only field and is only populated for members of the shared drive.
2281                "permissionType": "A String", # The permission type for this user. While new values may be added in future, the following are currently possible:
2282                    # - file
2283                    # - member
2284                "additionalRoles": [ # Additional roles for this user. Only commenter is currently possible, though more may be supported in the future.
2285                  "A String",
2286                ],
2287                "inherited": True or False, # Whether this permission is inherited. This field is always populated. This is an output-only field.
2288              },
2289            ],
2290            "name": "A String", # The name for this permission.
2291            "teamDrivePermissionDetails": [ # Deprecated - use permissionDetails instead.
2292              {
2293                "inheritedFrom": "A String", # Deprecated - use permissionDetails/inheritedFrom instead.
2294                "role": "A String", # Deprecated - use permissionDetails/role instead.
2295                "additionalRoles": [ # Deprecated - use permissionDetails/additionalRoles instead.
2296                  "A String",
2297                ],
2298                "teamDrivePermissionType": "A String", # Deprecated - use permissionDetails/permissionType instead.
2299                "inherited": True or False, # Deprecated - use permissionDetails/inherited instead.
2300              },
2301            ],
2302            "deleted": True or False, # Whether the account associated with this permission has been deleted. This field only pertains to user and group permissions.
2303            "kind": "drive#permission", # This is always drive#permission.
2304            "value": "A String", # The email address or domain name for the entity. This is used during inserts and is not populated in responses. When making a drive.permissions.insert request, exactly one of the id or value fields must be specified unless the permission type is anyone, in which case both id and value are ignored.
2305            "id": "A String", # The ID of the user this permission refers to, and identical to the permissionId in the About and Files resources. When making a drive.permissions.insert request, exactly one of the id or value fields must be specified unless the permission type is anyone, in which case both id and value are ignored.
2306            "authKey": "A String", # Deprecated.
2307            "etag": "A String", # The ETag of the permission.
2308            "emailAddress": "A String", # 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.
2309            "expirationDate": "A String", # The time at which this permission will expire (RFC 3339 date-time). Expiration dates have the following restrictions:
2310                # - They can only be set on user and group permissions
2311                # - The date must be in the future
2312                # - The date cannot be more than a year in the future
2313                # - The date can only be set on drive.permissions.update or drive.permissions.patch requests
2314            "role": "A String", # The primary role for this user. While new values may be supported in the future, the following are currently allowed:
2315                # - owner
2316                # - organizer
2317                # - fileOrganizer
2318                # - writer
2319                # - reader
2320            "type": "A String", # The account type. Allowed values are:
2321                # - user
2322                # - group
2323                # - domain
2324                # - anyone
2325            "additionalRoles": [ # Additional roles for this user. Only commenter is currently allowed, though more may be supported in the future.
2326              "A String",
2327            ],
2328            "selfLink": "A String", # A link back to this permission.
2329            "photoLink": "A String", # A link to the profile photo, if available.
2330          },
2331        ],
2332        "headRevisionId": "A String", # The ID of the file's head revision. This field is only populated for files with content stored in Google Drive; it is not populated for Google Docs or shortcut files.
2333        "selfLink": "A String", # A link back to this file.
2334        "modifiedDate": "A String", # Last time this file was modified by anyone (formatted RFC 3339 timestamp). This is only mutable on update when the setModifiedDate parameter is set.
2335      },
2336    ],
2337    "nextLink": "A String", # A link to the next page of files.
2338    "etag": "A String", # The ETag of the list.
2339    "selfLink": "A String", # A link back to this list.
2340  }</pre>
2341</div>
2342
2343<div class="method">
2344    <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
2345  <pre>Retrieves the next page of results.
2346
2347Args:
2348  previous_request: The request for the previous page. (required)
2349  previous_response: The response from the request for the previous page. (required)
2350
2351Returns:
2352  A request object that you can call 'execute()' on to request the next
2353  page. Returns None if there are no more items in the collection.
2354    </pre>
2355</div>
2356
2357<div class="method">
2358    <code class="details" id="patch">patch(fileId, body, supportsTeamDrives=None, newRevision=None, modifiedDateBehavior=None, pinned=None, ocrLanguage=None, ocr=None, addParents=None, removeParents=None, updateViewedDate=None, timedTextTrackName=None, convert=None, useContentAsIndexableText=None, supportsAllDrives=None, setModifiedDate=None, timedTextLanguage=None)</code>
2359  <pre>Updates file metadata and/or content. This method supports patch semantics.
2360
2361Args:
2362  fileId: string, The ID of the file to update. (required)
2363  body: object, The request body. (required)
2364    The object takes the form of:
2365
2366{ # The metadata for a file.
2367  "hasThumbnail": True or False, # Whether this file has a thumbnail. This does not indicate whether the requesting app has access to the thumbnail. To check access, look for the presence of the thumbnailLink field.
2368  "lastViewedByMeDate": "A String", # Last time this file was viewed by the user (formatted RFC 3339 timestamp).
2369  "trashedDate": "A String", # The time that the item was trashed (formatted RFC 3339 timestamp). Only populated for items in shared drives.
2370  "version": "A String", # A monotonically increasing version number for the file. This reflects every change made to the file on the server, even those not visible to the requesting user.
2371  "appDataContents": True or False, # Whether this file is in the Application Data folder.
2372  "thumbnailLink": "A String", # A short-lived link to the file's thumbnail. Typically lasts on the order of hours. Only populated when the requesting app can access the file's content.
2373  "labels": { # A group of labels for the file.
2374    "restricted": True or False, # Deprecated - use copyRequiresWriterPermission instead.
2375    "modified": True or False, # Whether the file has been modified by this user.
2376    "trashed": True or False, # Whether this file has been trashed. This label applies to all users accessing the file; however, only owners are allowed to see and untrash files.
2377    "hidden": True or False, # Deprecated.
2378    "starred": True or False, # Whether this file is starred by the user.
2379    "viewed": True or False, # Whether this file has been viewed by this user.
2380  },
2381  "indexableText": { # Indexable text attributes for the file (can only be written)
2382    "text": "A String", # The text to be indexed for this file.
2383  },
2384  "thumbnailVersion": "A String", # The thumbnail version for use in thumbnail cache invalidation.
2385  "explicitlyTrashed": True or False, # Whether this file has been explicitly trashed, as opposed to recursively trashed.
2386  "isAppAuthorized": True or False, # Whether the file was created or opened by the requesting app.
2387  "lastModifyingUserName": "A String", # Name of the last user to modify this file.
2388  "writersCanShare": True or False, # Whether writers can share the document with other users. Not populated for items in shared drives.
2389  "owners": [ # The owner(s) of this file. Not populated for items in shared drives.
2390    { # Information about a Drive user.
2391      "picture": { # The user's profile picture.
2392        "url": "A String", # A URL that points to a profile picture of this user.
2393      },
2394      "kind": "drive#user", # This is always drive#user.
2395      "displayName": "A String", # A plain text displayable name for this user.
2396      "permissionId": "A String", # The user's ID as visible in the permissions collection.
2397      "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
2398      "emailAddress": "A String", # The email address of the user.
2399    },
2400  ],
2401  "ownedByMe": True or False, # Whether the file is owned by the current user. Not populated for items in shared drives.
2402  "id": "A String", # The ID of the file.
2403  "sharingUser": { # Information about a Drive user. # User that shared the item with the current user, if available.
2404    "picture": { # The user's profile picture.
2405      "url": "A String", # A URL that points to a profile picture of this user.
2406    },
2407    "kind": "drive#user", # This is always drive#user.
2408    "displayName": "A String", # A plain text displayable name for this user.
2409    "permissionId": "A String", # The user's ID as visible in the permissions collection.
2410    "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
2411    "emailAddress": "A String", # The email address of the user.
2412  },
2413  "trashingUser": { # Information about a Drive user. # If the file has been explicitly trashed, the user who trashed it. Only populated for items in shared drives.
2414    "picture": { # The user's profile picture.
2415      "url": "A String", # A URL that points to a profile picture of this user.
2416    },
2417    "kind": "drive#user", # This is always drive#user.
2418    "displayName": "A String", # A plain text displayable name for this user.
2419    "permissionId": "A String", # The user's ID as visible in the permissions collection.
2420    "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
2421    "emailAddress": "A String", # The email address of the user.
2422  },
2423  "downloadUrl": "A String", # 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 Google Docs or shortcut files.
2424  "mimeType": "A String", # 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's MIME type.
2425  "lastModifyingUser": { # Information about a Drive user. # The last user to modify this file.
2426    "picture": { # The user's profile picture.
2427      "url": "A String", # A URL that points to a profile picture of this user.
2428    },
2429    "kind": "drive#user", # This is always drive#user.
2430    "displayName": "A String", # A plain text displayable name for this user.
2431    "permissionId": "A String", # The user's ID as visible in the permissions collection.
2432    "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
2433    "emailAddress": "A String", # The email address of the user.
2434  },
2435  "copyable": True or False, # Deprecated: use capabilities/canCopy.
2436  "folderColorRgb": "A String", # Folder color as an RGB hex string if the file is a folder. The list of supported colors is available in the folderColorPalette field of the About resource. If an unsupported color is specified, it will be changed to the closest color in the palette. Not populated for items in shared drives.
2437  "markedViewedByMeDate": "A String", # Deprecated.
2438  "ownerNames": [ # Name(s) of the owner(s) of this file. Not populated for items in shared drives.
2439    "A String",
2440  ],
2441  "capabilities": { # Capabilities the current user has on this file. Each capability corresponds to a fine-grained action that a user may take.
2442    "canMoveItemOutOfDrive": 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.
2443    "canUntrash": True or False, # Whether the current user can restore this file from trash.
2444    "canMoveItemWithinTeamDrive": True or False, # Deprecated - use canMoveItemWithinDrive instead.
2445    "canDeleteChildren": 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.
2446    "canMoveChildrenWithinTeamDrive": True or False, # Deprecated - use canMoveChildrenWithinDrive instead.
2447    "canListChildren": True or False, # Whether the current user can list the children of this folder. This is always false when the item is not a folder.
2448    "canRename": True or False, # Whether the current user can rename this file.
2449    "canReadDrive": True or False, # Whether the current user can read the shared drive to which this file belongs. Only populated for items in shared drives.
2450    "canAddChildren": True or False, # Whether the current user can add children to this folder. This is always false when the item is not a folder.
2451    "canChangeRestrictedDownload": True or False, # Deprecated
2452    "canShare": True or False, # Whether the current user can modify the sharing settings for this file.
2453    "canTrashChildren": 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.
2454    "canMoveChildrenWithinDrive": True or False, # Whether the current user can move children of this folder within the shared drive. This is false when the item is not a folder. Only populated for items in shared drives.
2455    "canReadRevisions": 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.
2456    "canMoveItemWithinDrive": True or False, # Whether the current user can move this item within this shared drive. Note that a request to change the parent of the item may still fail depending on the new parent that is being added. Only populated for items in shared drives.
2457    "canCopy": 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.
2458    "canMoveItemIntoTeamDrive": True or False, # Deprecated - use canMoveItemOutOfDrive instead.
2459    "canMoveItemOutOfTeamDrive": True or False, # Deprecated - use canMoveItemOutOfDrive instead.
2460    "canComment": True or False, # Whether the current user can comment on this file.
2461    "canMoveChildrenOutOfDrive": 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.
2462    "canTrash": True or False, # Whether the current user can move this file to trash.
2463    "canDelete": True or False, # Whether the current user can delete this file.
2464    "canMoveTeamDriveItem": True or False, # Deprecated - use canMoveItemWithinDrive or canMoveItemOutOfDrive instead.
2465    "canDownload": True or False, # Whether the current user can download this file.
2466    "canChangeCopyRequiresWriterPermission": True or False, # Whether the current user can change the copyRequiresWriterPermission restriction of this file.
2467    "canMoveChildrenOutOfTeamDrive": True or False, # Deprecated - use canMoveChildrenOutOfDrive instead.
2468    "canRemoveChildren": True or False, # Whether the current user can remove children from this folder. This is always false when the item is not a folder. For a folder in a shared drive, use canDeleteChildren or canTrashChildren instead.
2469    "canReadTeamDrive": True or False, # Deprecated - use canReadDrive instead.
2470    "canEdit": True or False, # Whether the current user can edit this file.
2471  },
2472  "sharedWithMeDate": "A String", # Time at which this file was shared with the user (formatted RFC 3339 timestamp).
2473  "webViewLink": "A String", # A link only available on public folders for viewing their static web assets (HTML, CSS, JS, etc) via Google Drive's Website Hosting.
2474  "etag": "A String", # ETag of the file.
2475  "parents": [ # Collection of parent folders which contain this file.
2476      # If not specified as part of an insert request, the file will be placed directly in the user's My Drive folder. If not specified as part of a copy request, the file will inherit any discoverable parents of the source file. Update requests can also use the addParents and removeParents parameters to modify the parents list.
2477    { # A reference to a file's parent.
2478      "selfLink": "A String", # A link back to this reference.
2479      "kind": "drive#parentReference", # This is always drive#parentReference.
2480      "id": "A String", # The ID of the parent.
2481      "isRoot": True or False, # Whether or not the parent is the root folder.
2482      "parentLink": "A String", # A link to the parent.
2483    },
2484  ],
2485  "exportLinks": { # Links for exporting Google Docs to specific formats.
2486    "a_key": "A String", # A mapping from export format to URL
2487  },
2488  "shareable": True or False, # Deprecated: use capabilities/canShare.
2489  "copyRequiresWriterPermission": True or False, # Whether the options to copy, print, or download this file, should be disabled for readers and commenters.
2490  "fullFileExtension": "A String", # The full file extension; extracted from the title. May contain multiple concatenated extensions, such as "tar.gz". 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 Google Docs or shortcut files.
2491  "openWithLinks": { # A map of the id of each of the user's apps to a link to open this file with that app. Only populated when the drive.apps.readonly scope is used.
2492    "a_key": "A String",
2493  },
2494  "canReadRevisions": True or False, # Deprecated: use capabilities/canReadRevisions.
2495  "imageMediaMetadata": { # Metadata about image media. This will only be present for image types, and its contents will depend on what can be parsed from the image content.
2496    "exposureBias": 3.14, # The exposure bias of the photo (APEX value).
2497    "exposureTime": 3.14, # The length of the exposure, in seconds.
2498    "cameraMake": "A String", # The make of the camera used to create the photo.
2499    "maxApertureValue": 3.14, # The smallest f-number of the lens at the focal length used to create the photo (APEX value).
2500    "isoSpeed": 42, # The ISO speed used to create the photo.
2501    "focalLength": 3.14, # The focal length used to create the photo, in millimeters.
2502    "exposureMode": "A String", # The exposure mode used to create the photo.
2503    "colorSpace": "A String", # The color space of the photo.
2504    "location": { # Geographic location information stored in the image.
2505      "latitude": 3.14, # The latitude stored in the image.
2506      "altitude": 3.14, # The altitude stored in the image.
2507      "longitude": 3.14, # The longitude stored in the image.
2508    },
2509    "subjectDistance": 42, # The distance to the subject of the photo, in meters.
2510    "height": 42, # The height of the image in pixels.
2511    "lens": "A String", # The lens used to create the photo.
2512    "date": "A String", # The date and time the photo was taken (EXIF format timestamp).
2513    "width": 42, # The width of the image in pixels.
2514    "meteringMode": "A String", # The metering mode used to create the photo.
2515    "flashUsed": True or False, # Whether a flash was used to create the photo.
2516    "aperture": 3.14, # The aperture used to create the photo (f-number).
2517    "rotation": 42, # The rotation in clockwise degrees from the image's original orientation.
2518    "sensor": "A String", # The type of sensor used to create the photo.
2519    "whiteBalance": "A String", # The white balance mode used to create the photo.
2520    "cameraModel": "A String", # The model of the camera used to create the photo.
2521  },
2522  "description": "A String", # A short description of the file.
2523  "webContentLink": "A String", # 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.
2524  "videoMediaMetadata": { # Metadata about video media. This will only be present for video types.
2525    "width": 42, # The width of the video in pixels.
2526    "durationMillis": "A String", # The duration of the video in milliseconds.
2527    "height": 42, # The height of the video in pixels.
2528  },
2529  "editable": True or False, # Deprecated: use capabilities/canEdit.
2530  "kind": "drive#file", # The type of file. This is always drive#file.
2531  "canComment": True or False, # Deprecated: use capabilities/canComment.
2532  "quotaBytesUsed": "A String", # The number of quota bytes used by this file.
2533  "fileSize": "A String", # The size of the file in bytes. This field is only populated for files with content stored in Google Drive; it is not populated for Google Docs or shortcut files.
2534  "createdDate": "A String", # Create time for this file (formatted RFC 3339 timestamp).
2535  "teamDriveId": "A String", # Deprecated - use driveId instead.
2536  "properties": [ # The list of properties.
2537    { # A key-value pair attached to a file that is either public or private to an application.
2538        # The following limits apply to file properties:
2539        # - Maximum of 100 properties total per file
2540        # - Maximum of 30 private properties per app
2541        # - Maximum of 30 public properties
2542        # - Maximum of 124 bytes size limit on (key + value) string in UTF-8 encoding for a single property.
2543      "kind": "drive#property", # This is always drive#property.
2544      "value": "A String", # The value of this property.
2545      "etag": "A String", # ETag of the property.
2546      "visibility": "A String", # The visibility of this property. Allowed values are PRIVATE and PUBLIC. (Default: PRIVATE)
2547      "key": "A String", # The key of this property.
2548      "selfLink": "A String", # The link back to this property.
2549    },
2550  ],
2551  "md5Checksum": "A String", # 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 Google Docs or shortcut files.
2552  "iconLink": "A String", # A link to the file's icon.
2553  "defaultOpenWithLink": "A String", # A link to open this file with the user's default app for this file. Only populated when the drive.apps.readonly scope is used.
2554  "embedLink": "A String", # A link for embedding the file.
2555  "alternateLink": "A String", # A link for opening the file in a relevant Google editor or viewer.
2556  "shared": True or False, # Whether the file has been shared. Not populated for items in shared drives.
2557  "title": "A String", # 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.
2558  "modifiedByMeDate": "A String", # 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.
2559  "thumbnail": { # A thumbnail for the file. This will only be used if a standard thumbnail cannot be generated.
2560    "mimeType": "A String", # The MIME type of the thumbnail.
2561    "image": "A String", # The URL-safe Base64 encoded bytes of the thumbnail image. It should conform to RFC 4648 section 5.
2562  },
2563  "driveId": "A String", # ID of the shared drive the file resides in. Only populated for items in shared drives.
2564  "userPermission": { # A permission for a file. # The permissions for the authenticated user on this file.
2565    "withLink": True or False, # Whether the link is required for this permission.
2566    "domain": "A String", # The domain name of the entity this permission refers to. This is an output-only field which is present when the permission type is user, group or domain.
2567    "permissionDetails": [ # 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.
2568      {
2569        "role": "A String", # The primary role for this user. While new values may be added in the future, the following are currently possible:
2570            # - organizer
2571            # - fileOrganizer
2572            # - writer
2573            # - reader
2574        "inheritedFrom": "A String", # The ID of the item from which this permission is inherited. This is an output-only field and is only populated for members of the shared drive.
2575        "permissionType": "A String", # The permission type for this user. While new values may be added in future, the following are currently possible:
2576            # - file
2577            # - member
2578        "additionalRoles": [ # Additional roles for this user. Only commenter is currently possible, though more may be supported in the future.
2579          "A String",
2580        ],
2581        "inherited": True or False, # Whether this permission is inherited. This field is always populated. This is an output-only field.
2582      },
2583    ],
2584    "name": "A String", # The name for this permission.
2585    "teamDrivePermissionDetails": [ # Deprecated - use permissionDetails instead.
2586      {
2587        "inheritedFrom": "A String", # Deprecated - use permissionDetails/inheritedFrom instead.
2588        "role": "A String", # Deprecated - use permissionDetails/role instead.
2589        "additionalRoles": [ # Deprecated - use permissionDetails/additionalRoles instead.
2590          "A String",
2591        ],
2592        "teamDrivePermissionType": "A String", # Deprecated - use permissionDetails/permissionType instead.
2593        "inherited": True or False, # Deprecated - use permissionDetails/inherited instead.
2594      },
2595    ],
2596    "deleted": True or False, # Whether the account associated with this permission has been deleted. This field only pertains to user and group permissions.
2597    "kind": "drive#permission", # This is always drive#permission.
2598    "value": "A String", # The email address or domain name for the entity. This is used during inserts and is not populated in responses. When making a drive.permissions.insert request, exactly one of the id or value fields must be specified unless the permission type is anyone, in which case both id and value are ignored.
2599    "id": "A String", # The ID of the user this permission refers to, and identical to the permissionId in the About and Files resources. When making a drive.permissions.insert request, exactly one of the id or value fields must be specified unless the permission type is anyone, in which case both id and value are ignored.
2600    "authKey": "A String", # Deprecated.
2601    "etag": "A String", # The ETag of the permission.
2602    "emailAddress": "A String", # 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.
2603    "expirationDate": "A String", # The time at which this permission will expire (RFC 3339 date-time). Expiration dates have the following restrictions:
2604        # - They can only be set on user and group permissions
2605        # - The date must be in the future
2606        # - The date cannot be more than a year in the future
2607        # - The date can only be set on drive.permissions.update or drive.permissions.patch requests
2608    "role": "A String", # The primary role for this user. While new values may be supported in the future, the following are currently allowed:
2609        # - owner
2610        # - organizer
2611        # - fileOrganizer
2612        # - writer
2613        # - reader
2614    "type": "A String", # The account type. Allowed values are:
2615        # - user
2616        # - group
2617        # - domain
2618        # - anyone
2619    "additionalRoles": [ # Additional roles for this user. Only commenter is currently allowed, though more may be supported in the future.
2620      "A String",
2621    ],
2622    "selfLink": "A String", # A link back to this permission.
2623    "photoLink": "A String", # A link to the profile photo, if available.
2624  },
2625  "spaces": [ # The list of spaces which contain the file. Supported values are 'drive', 'appDataFolder' and 'photos'.
2626    "A String",
2627  ],
2628  "permissionIds": [ # List of permission IDs for users with access to this file.
2629    "A String",
2630  ],
2631  "originalFilename": "A String", # The original filename of the uploaded content if available, or else the original value of the title field. This is only available for files with binary content in Google Drive.
2632  "fileExtension": "A String", # The final component of fullFileExtension with trailing text that does not appear to be part of the extension removed. This field is only populated for files with content stored in Google Drive; it is not populated for Google Docs or shortcut files.
2633  "hasAugmentedPermissions": True or False, # Whether any users are granted file access directly on this file. This field is only populated for items in shared drives.
2634  "permissions": [ # The list of permissions for users with access to this file. Not populated for items in shared drives.
2635    { # A permission for a file.
2636      "withLink": True or False, # Whether the link is required for this permission.
2637      "domain": "A String", # The domain name of the entity this permission refers to. This is an output-only field which is present when the permission type is user, group or domain.
2638      "permissionDetails": [ # 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.
2639        {
2640          "role": "A String", # The primary role for this user. While new values may be added in the future, the following are currently possible:
2641              # - organizer
2642              # - fileOrganizer
2643              # - writer
2644              # - reader
2645          "inheritedFrom": "A String", # The ID of the item from which this permission is inherited. This is an output-only field and is only populated for members of the shared drive.
2646          "permissionType": "A String", # The permission type for this user. While new values may be added in future, the following are currently possible:
2647              # - file
2648              # - member
2649          "additionalRoles": [ # Additional roles for this user. Only commenter is currently possible, though more may be supported in the future.
2650            "A String",
2651          ],
2652          "inherited": True or False, # Whether this permission is inherited. This field is always populated. This is an output-only field.
2653        },
2654      ],
2655      "name": "A String", # The name for this permission.
2656      "teamDrivePermissionDetails": [ # Deprecated - use permissionDetails instead.
2657        {
2658          "inheritedFrom": "A String", # Deprecated - use permissionDetails/inheritedFrom instead.
2659          "role": "A String", # Deprecated - use permissionDetails/role instead.
2660          "additionalRoles": [ # Deprecated - use permissionDetails/additionalRoles instead.
2661            "A String",
2662          ],
2663          "teamDrivePermissionType": "A String", # Deprecated - use permissionDetails/permissionType instead.
2664          "inherited": True or False, # Deprecated - use permissionDetails/inherited instead.
2665        },
2666      ],
2667      "deleted": True or False, # Whether the account associated with this permission has been deleted. This field only pertains to user and group permissions.
2668      "kind": "drive#permission", # This is always drive#permission.
2669      "value": "A String", # The email address or domain name for the entity. This is used during inserts and is not populated in responses. When making a drive.permissions.insert request, exactly one of the id or value fields must be specified unless the permission type is anyone, in which case both id and value are ignored.
2670      "id": "A String", # The ID of the user this permission refers to, and identical to the permissionId in the About and Files resources. When making a drive.permissions.insert request, exactly one of the id or value fields must be specified unless the permission type is anyone, in which case both id and value are ignored.
2671      "authKey": "A String", # Deprecated.
2672      "etag": "A String", # The ETag of the permission.
2673      "emailAddress": "A String", # 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.
2674      "expirationDate": "A String", # The time at which this permission will expire (RFC 3339 date-time). Expiration dates have the following restrictions:
2675          # - They can only be set on user and group permissions
2676          # - The date must be in the future
2677          # - The date cannot be more than a year in the future
2678          # - The date can only be set on drive.permissions.update or drive.permissions.patch requests
2679      "role": "A String", # The primary role for this user. While new values may be supported in the future, the following are currently allowed:
2680          # - owner
2681          # - organizer
2682          # - fileOrganizer
2683          # - writer
2684          # - reader
2685      "type": "A String", # The account type. Allowed values are:
2686          # - user
2687          # - group
2688          # - domain
2689          # - anyone
2690      "additionalRoles": [ # Additional roles for this user. Only commenter is currently allowed, though more may be supported in the future.
2691        "A String",
2692      ],
2693      "selfLink": "A String", # A link back to this permission.
2694      "photoLink": "A String", # A link to the profile photo, if available.
2695    },
2696  ],
2697  "headRevisionId": "A String", # The ID of the file's head revision. This field is only populated for files with content stored in Google Drive; it is not populated for Google Docs or shortcut files.
2698  "selfLink": "A String", # A link back to this file.
2699  "modifiedDate": "A String", # Last time this file was modified by anyone (formatted RFC 3339 timestamp). This is only mutable on update when the setModifiedDate parameter is set.
2700}
2701
2702  supportsTeamDrives: boolean, Deprecated use supportsAllDrives instead.
2703  newRevision: boolean, Whether a blob upload should create a new revision. If false, the blob data in the current head revision is replaced. If true or not set, a new blob is created as head revision, and previous unpinned revisions are preserved for a short period of time. Pinned revisions are stored indefinitely, using additional storage quota, up to a maximum of 200 revisions. For details on how revisions are retained, see the Drive Help Center.
2704  modifiedDateBehavior: string, Determines the behavior in which modifiedDate is updated. This overrides setModifiedDate.
2705    Allowed values
2706      fromBody - Set modifiedDate to the value provided in the body of the request. No change if no value was provided.
2707      fromBodyIfNeeded - Set modifiedDate to the value provided in the body of the request depending on other contents of the update.
2708      fromBodyOrNow - Set modifiedDate to the value provided in the body of the request, or to the current time if no value was provided.
2709      noChange - Maintain the previous value of modifiedDate.
2710      now - Set modifiedDate to the current time.
2711      nowIfNeeded - Set modifiedDate to the current time depending on contents of the update.
2712  pinned: boolean, Whether to pin the new revision. A file can have a maximum of 200 pinned revisions.
2713  ocrLanguage: string, If ocr is true, hints at the language to use. Valid values are BCP 47 codes.
2714  ocr: boolean, Whether to attempt OCR on .jpg, .png, .gif, or .pdf uploads.
2715  addParents: string, Comma-separated list of parent IDs to add.
2716  removeParents: string, Comma-separated list of parent IDs to remove.
2717  updateViewedDate: boolean, Whether to update the view date after successfully updating the file.
2718  timedTextTrackName: string, The timed text track name.
2719  convert: boolean, This parameter is deprecated and has no function.
2720  useContentAsIndexableText: boolean, Whether to use the content as indexable text.
2721  supportsAllDrives: boolean, Deprecated - Whether the requesting application supports both My Drives and shared drives. This parameter will only be effective until June 1, 2020. Afterwards all applications are assumed to support shared drives.
2722  setModifiedDate: boolean, Whether to set the modified date using the value supplied in the request body. Setting this field to true is equivalent to modifiedDateBehavior=fromBodyOrNow, and false is equivalent to modifiedDateBehavior=now. To prevent any changes to the modified date set modifiedDateBehavior=noChange.
2723  timedTextLanguage: string, The language of the timed text.
2724
2725Returns:
2726  An object of the form:
2727
2728    { # The metadata for a file.
2729    "hasThumbnail": True or False, # Whether this file has a thumbnail. This does not indicate whether the requesting app has access to the thumbnail. To check access, look for the presence of the thumbnailLink field.
2730    "lastViewedByMeDate": "A String", # Last time this file was viewed by the user (formatted RFC 3339 timestamp).
2731    "trashedDate": "A String", # The time that the item was trashed (formatted RFC 3339 timestamp). Only populated for items in shared drives.
2732    "version": "A String", # A monotonically increasing version number for the file. This reflects every change made to the file on the server, even those not visible to the requesting user.
2733    "appDataContents": True or False, # Whether this file is in the Application Data folder.
2734    "thumbnailLink": "A String", # A short-lived link to the file's thumbnail. Typically lasts on the order of hours. Only populated when the requesting app can access the file's content.
2735    "labels": { # A group of labels for the file.
2736      "restricted": True or False, # Deprecated - use copyRequiresWriterPermission instead.
2737      "modified": True or False, # Whether the file has been modified by this user.
2738      "trashed": True or False, # Whether this file has been trashed. This label applies to all users accessing the file; however, only owners are allowed to see and untrash files.
2739      "hidden": True or False, # Deprecated.
2740      "starred": True or False, # Whether this file is starred by the user.
2741      "viewed": True or False, # Whether this file has been viewed by this user.
2742    },
2743    "indexableText": { # Indexable text attributes for the file (can only be written)
2744      "text": "A String", # The text to be indexed for this file.
2745    },
2746    "thumbnailVersion": "A String", # The thumbnail version for use in thumbnail cache invalidation.
2747    "explicitlyTrashed": True or False, # Whether this file has been explicitly trashed, as opposed to recursively trashed.
2748    "isAppAuthorized": True or False, # Whether the file was created or opened by the requesting app.
2749    "lastModifyingUserName": "A String", # Name of the last user to modify this file.
2750    "writersCanShare": True or False, # Whether writers can share the document with other users. Not populated for items in shared drives.
2751    "owners": [ # The owner(s) of this file. Not populated for items in shared drives.
2752      { # Information about a Drive user.
2753        "picture": { # The user's profile picture.
2754          "url": "A String", # A URL that points to a profile picture of this user.
2755        },
2756        "kind": "drive#user", # This is always drive#user.
2757        "displayName": "A String", # A plain text displayable name for this user.
2758        "permissionId": "A String", # The user's ID as visible in the permissions collection.
2759        "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
2760        "emailAddress": "A String", # The email address of the user.
2761      },
2762    ],
2763    "ownedByMe": True or False, # Whether the file is owned by the current user. Not populated for items in shared drives.
2764    "id": "A String", # The ID of the file.
2765    "sharingUser": { # Information about a Drive user. # User that shared the item with the current user, if available.
2766      "picture": { # The user's profile picture.
2767        "url": "A String", # A URL that points to a profile picture of this user.
2768      },
2769      "kind": "drive#user", # This is always drive#user.
2770      "displayName": "A String", # A plain text displayable name for this user.
2771      "permissionId": "A String", # The user's ID as visible in the permissions collection.
2772      "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
2773      "emailAddress": "A String", # The email address of the user.
2774    },
2775    "trashingUser": { # Information about a Drive user. # If the file has been explicitly trashed, the user who trashed it. Only populated for items in shared drives.
2776      "picture": { # The user's profile picture.
2777        "url": "A String", # A URL that points to a profile picture of this user.
2778      },
2779      "kind": "drive#user", # This is always drive#user.
2780      "displayName": "A String", # A plain text displayable name for this user.
2781      "permissionId": "A String", # The user's ID as visible in the permissions collection.
2782      "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
2783      "emailAddress": "A String", # The email address of the user.
2784    },
2785    "downloadUrl": "A String", # 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 Google Docs or shortcut files.
2786    "mimeType": "A String", # 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's MIME type.
2787    "lastModifyingUser": { # Information about a Drive user. # The last user to modify this file.
2788      "picture": { # The user's profile picture.
2789        "url": "A String", # A URL that points to a profile picture of this user.
2790      },
2791      "kind": "drive#user", # This is always drive#user.
2792      "displayName": "A String", # A plain text displayable name for this user.
2793      "permissionId": "A String", # The user's ID as visible in the permissions collection.
2794      "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
2795      "emailAddress": "A String", # The email address of the user.
2796    },
2797    "copyable": True or False, # Deprecated: use capabilities/canCopy.
2798    "folderColorRgb": "A String", # Folder color as an RGB hex string if the file is a folder. The list of supported colors is available in the folderColorPalette field of the About resource. If an unsupported color is specified, it will be changed to the closest color in the palette. Not populated for items in shared drives.
2799    "markedViewedByMeDate": "A String", # Deprecated.
2800    "ownerNames": [ # Name(s) of the owner(s) of this file. Not populated for items in shared drives.
2801      "A String",
2802    ],
2803    "capabilities": { # Capabilities the current user has on this file. Each capability corresponds to a fine-grained action that a user may take.
2804      "canMoveItemOutOfDrive": 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.
2805      "canUntrash": True or False, # Whether the current user can restore this file from trash.
2806      "canMoveItemWithinTeamDrive": True or False, # Deprecated - use canMoveItemWithinDrive instead.
2807      "canDeleteChildren": 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.
2808      "canMoveChildrenWithinTeamDrive": True or False, # Deprecated - use canMoveChildrenWithinDrive instead.
2809      "canListChildren": True or False, # Whether the current user can list the children of this folder. This is always false when the item is not a folder.
2810      "canRename": True or False, # Whether the current user can rename this file.
2811      "canReadDrive": True or False, # Whether the current user can read the shared drive to which this file belongs. Only populated for items in shared drives.
2812      "canAddChildren": True or False, # Whether the current user can add children to this folder. This is always false when the item is not a folder.
2813      "canChangeRestrictedDownload": True or False, # Deprecated
2814      "canShare": True or False, # Whether the current user can modify the sharing settings for this file.
2815      "canTrashChildren": 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.
2816      "canMoveChildrenWithinDrive": True or False, # Whether the current user can move children of this folder within the shared drive. This is false when the item is not a folder. Only populated for items in shared drives.
2817      "canReadRevisions": 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.
2818      "canMoveItemWithinDrive": True or False, # Whether the current user can move this item within this shared drive. Note that a request to change the parent of the item may still fail depending on the new parent that is being added. Only populated for items in shared drives.
2819      "canCopy": 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.
2820      "canMoveItemIntoTeamDrive": True or False, # Deprecated - use canMoveItemOutOfDrive instead.
2821      "canMoveItemOutOfTeamDrive": True or False, # Deprecated - use canMoveItemOutOfDrive instead.
2822      "canComment": True or False, # Whether the current user can comment on this file.
2823      "canMoveChildrenOutOfDrive": 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.
2824      "canTrash": True or False, # Whether the current user can move this file to trash.
2825      "canDelete": True or False, # Whether the current user can delete this file.
2826      "canMoveTeamDriveItem": True or False, # Deprecated - use canMoveItemWithinDrive or canMoveItemOutOfDrive instead.
2827      "canDownload": True or False, # Whether the current user can download this file.
2828      "canChangeCopyRequiresWriterPermission": True or False, # Whether the current user can change the copyRequiresWriterPermission restriction of this file.
2829      "canMoveChildrenOutOfTeamDrive": True or False, # Deprecated - use canMoveChildrenOutOfDrive instead.
2830      "canRemoveChildren": True or False, # Whether the current user can remove children from this folder. This is always false when the item is not a folder. For a folder in a shared drive, use canDeleteChildren or canTrashChildren instead.
2831      "canReadTeamDrive": True or False, # Deprecated - use canReadDrive instead.
2832      "canEdit": True or False, # Whether the current user can edit this file.
2833    },
2834    "sharedWithMeDate": "A String", # Time at which this file was shared with the user (formatted RFC 3339 timestamp).
2835    "webViewLink": "A String", # A link only available on public folders for viewing their static web assets (HTML, CSS, JS, etc) via Google Drive's Website Hosting.
2836    "etag": "A String", # ETag of the file.
2837    "parents": [ # Collection of parent folders which contain this file.
2838        # If not specified as part of an insert request, the file will be placed directly in the user's My Drive folder. If not specified as part of a copy request, the file will inherit any discoverable parents of the source file. Update requests can also use the addParents and removeParents parameters to modify the parents list.
2839      { # A reference to a file's parent.
2840        "selfLink": "A String", # A link back to this reference.
2841        "kind": "drive#parentReference", # This is always drive#parentReference.
2842        "id": "A String", # The ID of the parent.
2843        "isRoot": True or False, # Whether or not the parent is the root folder.
2844        "parentLink": "A String", # A link to the parent.
2845      },
2846    ],
2847    "exportLinks": { # Links for exporting Google Docs to specific formats.
2848      "a_key": "A String", # A mapping from export format to URL
2849    },
2850    "shareable": True or False, # Deprecated: use capabilities/canShare.
2851    "copyRequiresWriterPermission": True or False, # Whether the options to copy, print, or download this file, should be disabled for readers and commenters.
2852    "fullFileExtension": "A String", # The full file extension; extracted from the title. May contain multiple concatenated extensions, such as "tar.gz". 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 Google Docs or shortcut files.
2853    "openWithLinks": { # A map of the id of each of the user's apps to a link to open this file with that app. Only populated when the drive.apps.readonly scope is used.
2854      "a_key": "A String",
2855    },
2856    "canReadRevisions": True or False, # Deprecated: use capabilities/canReadRevisions.
2857    "imageMediaMetadata": { # Metadata about image media. This will only be present for image types, and its contents will depend on what can be parsed from the image content.
2858      "exposureBias": 3.14, # The exposure bias of the photo (APEX value).
2859      "exposureTime": 3.14, # The length of the exposure, in seconds.
2860      "cameraMake": "A String", # The make of the camera used to create the photo.
2861      "maxApertureValue": 3.14, # The smallest f-number of the lens at the focal length used to create the photo (APEX value).
2862      "isoSpeed": 42, # The ISO speed used to create the photo.
2863      "focalLength": 3.14, # The focal length used to create the photo, in millimeters.
2864      "exposureMode": "A String", # The exposure mode used to create the photo.
2865      "colorSpace": "A String", # The color space of the photo.
2866      "location": { # Geographic location information stored in the image.
2867        "latitude": 3.14, # The latitude stored in the image.
2868        "altitude": 3.14, # The altitude stored in the image.
2869        "longitude": 3.14, # The longitude stored in the image.
2870      },
2871      "subjectDistance": 42, # The distance to the subject of the photo, in meters.
2872      "height": 42, # The height of the image in pixels.
2873      "lens": "A String", # The lens used to create the photo.
2874      "date": "A String", # The date and time the photo was taken (EXIF format timestamp).
2875      "width": 42, # The width of the image in pixels.
2876      "meteringMode": "A String", # The metering mode used to create the photo.
2877      "flashUsed": True or False, # Whether a flash was used to create the photo.
2878      "aperture": 3.14, # The aperture used to create the photo (f-number).
2879      "rotation": 42, # The rotation in clockwise degrees from the image's original orientation.
2880      "sensor": "A String", # The type of sensor used to create the photo.
2881      "whiteBalance": "A String", # The white balance mode used to create the photo.
2882      "cameraModel": "A String", # The model of the camera used to create the photo.
2883    },
2884    "description": "A String", # A short description of the file.
2885    "webContentLink": "A String", # 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.
2886    "videoMediaMetadata": { # Metadata about video media. This will only be present for video types.
2887      "width": 42, # The width of the video in pixels.
2888      "durationMillis": "A String", # The duration of the video in milliseconds.
2889      "height": 42, # The height of the video in pixels.
2890    },
2891    "editable": True or False, # Deprecated: use capabilities/canEdit.
2892    "kind": "drive#file", # The type of file. This is always drive#file.
2893    "canComment": True or False, # Deprecated: use capabilities/canComment.
2894    "quotaBytesUsed": "A String", # The number of quota bytes used by this file.
2895    "fileSize": "A String", # The size of the file in bytes. This field is only populated for files with content stored in Google Drive; it is not populated for Google Docs or shortcut files.
2896    "createdDate": "A String", # Create time for this file (formatted RFC 3339 timestamp).
2897    "teamDriveId": "A String", # Deprecated - use driveId instead.
2898    "properties": [ # The list of properties.
2899      { # A key-value pair attached to a file that is either public or private to an application.
2900          # The following limits apply to file properties:
2901          # - Maximum of 100 properties total per file
2902          # - Maximum of 30 private properties per app
2903          # - Maximum of 30 public properties
2904          # - Maximum of 124 bytes size limit on (key + value) string in UTF-8 encoding for a single property.
2905        "kind": "drive#property", # This is always drive#property.
2906        "value": "A String", # The value of this property.
2907        "etag": "A String", # ETag of the property.
2908        "visibility": "A String", # The visibility of this property. Allowed values are PRIVATE and PUBLIC. (Default: PRIVATE)
2909        "key": "A String", # The key of this property.
2910        "selfLink": "A String", # The link back to this property.
2911      },
2912    ],
2913    "md5Checksum": "A String", # 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 Google Docs or shortcut files.
2914    "iconLink": "A String", # A link to the file's icon.
2915    "defaultOpenWithLink": "A String", # A link to open this file with the user's default app for this file. Only populated when the drive.apps.readonly scope is used.
2916    "embedLink": "A String", # A link for embedding the file.
2917    "alternateLink": "A String", # A link for opening the file in a relevant Google editor or viewer.
2918    "shared": True or False, # Whether the file has been shared. Not populated for items in shared drives.
2919    "title": "A String", # 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.
2920    "modifiedByMeDate": "A String", # 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.
2921    "thumbnail": { # A thumbnail for the file. This will only be used if a standard thumbnail cannot be generated.
2922      "mimeType": "A String", # The MIME type of the thumbnail.
2923      "image": "A String", # The URL-safe Base64 encoded bytes of the thumbnail image. It should conform to RFC 4648 section 5.
2924    },
2925    "driveId": "A String", # ID of the shared drive the file resides in. Only populated for items in shared drives.
2926    "userPermission": { # A permission for a file. # The permissions for the authenticated user on this file.
2927      "withLink": True or False, # Whether the link is required for this permission.
2928      "domain": "A String", # The domain name of the entity this permission refers to. This is an output-only field which is present when the permission type is user, group or domain.
2929      "permissionDetails": [ # 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.
2930        {
2931          "role": "A String", # The primary role for this user. While new values may be added in the future, the following are currently possible:
2932              # - organizer
2933              # - fileOrganizer
2934              # - writer
2935              # - reader
2936          "inheritedFrom": "A String", # The ID of the item from which this permission is inherited. This is an output-only field and is only populated for members of the shared drive.
2937          "permissionType": "A String", # The permission type for this user. While new values may be added in future, the following are currently possible:
2938              # - file
2939              # - member
2940          "additionalRoles": [ # Additional roles for this user. Only commenter is currently possible, though more may be supported in the future.
2941            "A String",
2942          ],
2943          "inherited": True or False, # Whether this permission is inherited. This field is always populated. This is an output-only field.
2944        },
2945      ],
2946      "name": "A String", # The name for this permission.
2947      "teamDrivePermissionDetails": [ # Deprecated - use permissionDetails instead.
2948        {
2949          "inheritedFrom": "A String", # Deprecated - use permissionDetails/inheritedFrom instead.
2950          "role": "A String", # Deprecated - use permissionDetails/role instead.
2951          "additionalRoles": [ # Deprecated - use permissionDetails/additionalRoles instead.
2952            "A String",
2953          ],
2954          "teamDrivePermissionType": "A String", # Deprecated - use permissionDetails/permissionType instead.
2955          "inherited": True or False, # Deprecated - use permissionDetails/inherited instead.
2956        },
2957      ],
2958      "deleted": True or False, # Whether the account associated with this permission has been deleted. This field only pertains to user and group permissions.
2959      "kind": "drive#permission", # This is always drive#permission.
2960      "value": "A String", # The email address or domain name for the entity. This is used during inserts and is not populated in responses. When making a drive.permissions.insert request, exactly one of the id or value fields must be specified unless the permission type is anyone, in which case both id and value are ignored.
2961      "id": "A String", # The ID of the user this permission refers to, and identical to the permissionId in the About and Files resources. When making a drive.permissions.insert request, exactly one of the id or value fields must be specified unless the permission type is anyone, in which case both id and value are ignored.
2962      "authKey": "A String", # Deprecated.
2963      "etag": "A String", # The ETag of the permission.
2964      "emailAddress": "A String", # 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.
2965      "expirationDate": "A String", # The time at which this permission will expire (RFC 3339 date-time). Expiration dates have the following restrictions:
2966          # - They can only be set on user and group permissions
2967          # - The date must be in the future
2968          # - The date cannot be more than a year in the future
2969          # - The date can only be set on drive.permissions.update or drive.permissions.patch requests
2970      "role": "A String", # The primary role for this user. While new values may be supported in the future, the following are currently allowed:
2971          # - owner
2972          # - organizer
2973          # - fileOrganizer
2974          # - writer
2975          # - reader
2976      "type": "A String", # The account type. Allowed values are:
2977          # - user
2978          # - group
2979          # - domain
2980          # - anyone
2981      "additionalRoles": [ # Additional roles for this user. Only commenter is currently allowed, though more may be supported in the future.
2982        "A String",
2983      ],
2984      "selfLink": "A String", # A link back to this permission.
2985      "photoLink": "A String", # A link to the profile photo, if available.
2986    },
2987    "spaces": [ # The list of spaces which contain the file. Supported values are 'drive', 'appDataFolder' and 'photos'.
2988      "A String",
2989    ],
2990    "permissionIds": [ # List of permission IDs for users with access to this file.
2991      "A String",
2992    ],
2993    "originalFilename": "A String", # The original filename of the uploaded content if available, or else the original value of the title field. This is only available for files with binary content in Google Drive.
2994    "fileExtension": "A String", # The final component of fullFileExtension with trailing text that does not appear to be part of the extension removed. This field is only populated for files with content stored in Google Drive; it is not populated for Google Docs or shortcut files.
2995    "hasAugmentedPermissions": True or False, # Whether any users are granted file access directly on this file. This field is only populated for items in shared drives.
2996    "permissions": [ # The list of permissions for users with access to this file. Not populated for items in shared drives.
2997      { # A permission for a file.
2998        "withLink": True or False, # Whether the link is required for this permission.
2999        "domain": "A String", # The domain name of the entity this permission refers to. This is an output-only field which is present when the permission type is user, group or domain.
3000        "permissionDetails": [ # 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.
3001          {
3002            "role": "A String", # The primary role for this user. While new values may be added in the future, the following are currently possible:
3003                # - organizer
3004                # - fileOrganizer
3005                # - writer
3006                # - reader
3007            "inheritedFrom": "A String", # The ID of the item from which this permission is inherited. This is an output-only field and is only populated for members of the shared drive.
3008            "permissionType": "A String", # The permission type for this user. While new values may be added in future, the following are currently possible:
3009                # - file
3010                # - member
3011            "additionalRoles": [ # Additional roles for this user. Only commenter is currently possible, though more may be supported in the future.
3012              "A String",
3013            ],
3014            "inherited": True or False, # Whether this permission is inherited. This field is always populated. This is an output-only field.
3015          },
3016        ],
3017        "name": "A String", # The name for this permission.
3018        "teamDrivePermissionDetails": [ # Deprecated - use permissionDetails instead.
3019          {
3020            "inheritedFrom": "A String", # Deprecated - use permissionDetails/inheritedFrom instead.
3021            "role": "A String", # Deprecated - use permissionDetails/role instead.
3022            "additionalRoles": [ # Deprecated - use permissionDetails/additionalRoles instead.
3023              "A String",
3024            ],
3025            "teamDrivePermissionType": "A String", # Deprecated - use permissionDetails/permissionType instead.
3026            "inherited": True or False, # Deprecated - use permissionDetails/inherited instead.
3027          },
3028        ],
3029        "deleted": True or False, # Whether the account associated with this permission has been deleted. This field only pertains to user and group permissions.
3030        "kind": "drive#permission", # This is always drive#permission.
3031        "value": "A String", # The email address or domain name for the entity. This is used during inserts and is not populated in responses. When making a drive.permissions.insert request, exactly one of the id or value fields must be specified unless the permission type is anyone, in which case both id and value are ignored.
3032        "id": "A String", # The ID of the user this permission refers to, and identical to the permissionId in the About and Files resources. When making a drive.permissions.insert request, exactly one of the id or value fields must be specified unless the permission type is anyone, in which case both id and value are ignored.
3033        "authKey": "A String", # Deprecated.
3034        "etag": "A String", # The ETag of the permission.
3035        "emailAddress": "A String", # 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.
3036        "expirationDate": "A String", # The time at which this permission will expire (RFC 3339 date-time). Expiration dates have the following restrictions:
3037            # - They can only be set on user and group permissions
3038            # - The date must be in the future
3039            # - The date cannot be more than a year in the future
3040            # - The date can only be set on drive.permissions.update or drive.permissions.patch requests
3041        "role": "A String", # The primary role for this user. While new values may be supported in the future, the following are currently allowed:
3042            # - owner
3043            # - organizer
3044            # - fileOrganizer
3045            # - writer
3046            # - reader
3047        "type": "A String", # The account type. Allowed values are:
3048            # - user
3049            # - group
3050            # - domain
3051            # - anyone
3052        "additionalRoles": [ # Additional roles for this user. Only commenter is currently allowed, though more may be supported in the future.
3053          "A String",
3054        ],
3055        "selfLink": "A String", # A link back to this permission.
3056        "photoLink": "A String", # A link to the profile photo, if available.
3057      },
3058    ],
3059    "headRevisionId": "A String", # The ID of the file's head revision. This field is only populated for files with content stored in Google Drive; it is not populated for Google Docs or shortcut files.
3060    "selfLink": "A String", # A link back to this file.
3061    "modifiedDate": "A String", # Last time this file was modified by anyone (formatted RFC 3339 timestamp). This is only mutable on update when the setModifiedDate parameter is set.
3062  }</pre>
3063</div>
3064
3065<div class="method">
3066    <code class="details" id="touch">touch(fileId, supportsTeamDrives=None, supportsAllDrives=None)</code>
3067  <pre>Set the file's updated time to the current server time.
3068
3069Args:
3070  fileId: string, The ID of the file to update. (required)
3071  supportsTeamDrives: boolean, Deprecated use supportsAllDrives instead.
3072  supportsAllDrives: boolean, Deprecated - Whether the requesting application supports both My Drives and shared drives. This parameter will only be effective until June 1, 2020. Afterwards all applications are assumed to support shared drives.
3073
3074Returns:
3075  An object of the form:
3076
3077    { # The metadata for a file.
3078    "hasThumbnail": True or False, # Whether this file has a thumbnail. This does not indicate whether the requesting app has access to the thumbnail. To check access, look for the presence of the thumbnailLink field.
3079    "lastViewedByMeDate": "A String", # Last time this file was viewed by the user (formatted RFC 3339 timestamp).
3080    "trashedDate": "A String", # The time that the item was trashed (formatted RFC 3339 timestamp). Only populated for items in shared drives.
3081    "version": "A String", # A monotonically increasing version number for the file. This reflects every change made to the file on the server, even those not visible to the requesting user.
3082    "appDataContents": True or False, # Whether this file is in the Application Data folder.
3083    "thumbnailLink": "A String", # A short-lived link to the file's thumbnail. Typically lasts on the order of hours. Only populated when the requesting app can access the file's content.
3084    "labels": { # A group of labels for the file.
3085      "restricted": True or False, # Deprecated - use copyRequiresWriterPermission instead.
3086      "modified": True or False, # Whether the file has been modified by this user.
3087      "trashed": True or False, # Whether this file has been trashed. This label applies to all users accessing the file; however, only owners are allowed to see and untrash files.
3088      "hidden": True or False, # Deprecated.
3089      "starred": True or False, # Whether this file is starred by the user.
3090      "viewed": True or False, # Whether this file has been viewed by this user.
3091    },
3092    "indexableText": { # Indexable text attributes for the file (can only be written)
3093      "text": "A String", # The text to be indexed for this file.
3094    },
3095    "thumbnailVersion": "A String", # The thumbnail version for use in thumbnail cache invalidation.
3096    "explicitlyTrashed": True or False, # Whether this file has been explicitly trashed, as opposed to recursively trashed.
3097    "isAppAuthorized": True or False, # Whether the file was created or opened by the requesting app.
3098    "lastModifyingUserName": "A String", # Name of the last user to modify this file.
3099    "writersCanShare": True or False, # Whether writers can share the document with other users. Not populated for items in shared drives.
3100    "owners": [ # The owner(s) of this file. Not populated for items in shared drives.
3101      { # Information about a Drive user.
3102        "picture": { # The user's profile picture.
3103          "url": "A String", # A URL that points to a profile picture of this user.
3104        },
3105        "kind": "drive#user", # This is always drive#user.
3106        "displayName": "A String", # A plain text displayable name for this user.
3107        "permissionId": "A String", # The user's ID as visible in the permissions collection.
3108        "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
3109        "emailAddress": "A String", # The email address of the user.
3110      },
3111    ],
3112    "ownedByMe": True or False, # Whether the file is owned by the current user. Not populated for items in shared drives.
3113    "id": "A String", # The ID of the file.
3114    "sharingUser": { # Information about a Drive user. # User that shared the item with the current user, if available.
3115      "picture": { # The user's profile picture.
3116        "url": "A String", # A URL that points to a profile picture of this user.
3117      },
3118      "kind": "drive#user", # This is always drive#user.
3119      "displayName": "A String", # A plain text displayable name for this user.
3120      "permissionId": "A String", # The user's ID as visible in the permissions collection.
3121      "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
3122      "emailAddress": "A String", # The email address of the user.
3123    },
3124    "trashingUser": { # Information about a Drive user. # If the file has been explicitly trashed, the user who trashed it. Only populated for items in shared drives.
3125      "picture": { # The user's profile picture.
3126        "url": "A String", # A URL that points to a profile picture of this user.
3127      },
3128      "kind": "drive#user", # This is always drive#user.
3129      "displayName": "A String", # A plain text displayable name for this user.
3130      "permissionId": "A String", # The user's ID as visible in the permissions collection.
3131      "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
3132      "emailAddress": "A String", # The email address of the user.
3133    },
3134    "downloadUrl": "A String", # 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 Google Docs or shortcut files.
3135    "mimeType": "A String", # 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's MIME type.
3136    "lastModifyingUser": { # Information about a Drive user. # The last user to modify this file.
3137      "picture": { # The user's profile picture.
3138        "url": "A String", # A URL that points to a profile picture of this user.
3139      },
3140      "kind": "drive#user", # This is always drive#user.
3141      "displayName": "A String", # A plain text displayable name for this user.
3142      "permissionId": "A String", # The user's ID as visible in the permissions collection.
3143      "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
3144      "emailAddress": "A String", # The email address of the user.
3145    },
3146    "copyable": True or False, # Deprecated: use capabilities/canCopy.
3147    "folderColorRgb": "A String", # Folder color as an RGB hex string if the file is a folder. The list of supported colors is available in the folderColorPalette field of the About resource. If an unsupported color is specified, it will be changed to the closest color in the palette. Not populated for items in shared drives.
3148    "markedViewedByMeDate": "A String", # Deprecated.
3149    "ownerNames": [ # Name(s) of the owner(s) of this file. Not populated for items in shared drives.
3150      "A String",
3151    ],
3152    "capabilities": { # Capabilities the current user has on this file. Each capability corresponds to a fine-grained action that a user may take.
3153      "canMoveItemOutOfDrive": 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.
3154      "canUntrash": True or False, # Whether the current user can restore this file from trash.
3155      "canMoveItemWithinTeamDrive": True or False, # Deprecated - use canMoveItemWithinDrive instead.
3156      "canDeleteChildren": 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.
3157      "canMoveChildrenWithinTeamDrive": True or False, # Deprecated - use canMoveChildrenWithinDrive instead.
3158      "canListChildren": True or False, # Whether the current user can list the children of this folder. This is always false when the item is not a folder.
3159      "canRename": True or False, # Whether the current user can rename this file.
3160      "canReadDrive": True or False, # Whether the current user can read the shared drive to which this file belongs. Only populated for items in shared drives.
3161      "canAddChildren": True or False, # Whether the current user can add children to this folder. This is always false when the item is not a folder.
3162      "canChangeRestrictedDownload": True or False, # Deprecated
3163      "canShare": True or False, # Whether the current user can modify the sharing settings for this file.
3164      "canTrashChildren": 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.
3165      "canMoveChildrenWithinDrive": True or False, # Whether the current user can move children of this folder within the shared drive. This is false when the item is not a folder. Only populated for items in shared drives.
3166      "canReadRevisions": 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.
3167      "canMoveItemWithinDrive": True or False, # Whether the current user can move this item within this shared drive. Note that a request to change the parent of the item may still fail depending on the new parent that is being added. Only populated for items in shared drives.
3168      "canCopy": 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.
3169      "canMoveItemIntoTeamDrive": True or False, # Deprecated - use canMoveItemOutOfDrive instead.
3170      "canMoveItemOutOfTeamDrive": True or False, # Deprecated - use canMoveItemOutOfDrive instead.
3171      "canComment": True or False, # Whether the current user can comment on this file.
3172      "canMoveChildrenOutOfDrive": 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.
3173      "canTrash": True or False, # Whether the current user can move this file to trash.
3174      "canDelete": True or False, # Whether the current user can delete this file.
3175      "canMoveTeamDriveItem": True or False, # Deprecated - use canMoveItemWithinDrive or canMoveItemOutOfDrive instead.
3176      "canDownload": True or False, # Whether the current user can download this file.
3177      "canChangeCopyRequiresWriterPermission": True or False, # Whether the current user can change the copyRequiresWriterPermission restriction of this file.
3178      "canMoveChildrenOutOfTeamDrive": True or False, # Deprecated - use canMoveChildrenOutOfDrive instead.
3179      "canRemoveChildren": True or False, # Whether the current user can remove children from this folder. This is always false when the item is not a folder. For a folder in a shared drive, use canDeleteChildren or canTrashChildren instead.
3180      "canReadTeamDrive": True or False, # Deprecated - use canReadDrive instead.
3181      "canEdit": True or False, # Whether the current user can edit this file.
3182    },
3183    "sharedWithMeDate": "A String", # Time at which this file was shared with the user (formatted RFC 3339 timestamp).
3184    "webViewLink": "A String", # A link only available on public folders for viewing their static web assets (HTML, CSS, JS, etc) via Google Drive's Website Hosting.
3185    "etag": "A String", # ETag of the file.
3186    "parents": [ # Collection of parent folders which contain this file.
3187        # If not specified as part of an insert request, the file will be placed directly in the user's My Drive folder. If not specified as part of a copy request, the file will inherit any discoverable parents of the source file. Update requests can also use the addParents and removeParents parameters to modify the parents list.
3188      { # A reference to a file's parent.
3189        "selfLink": "A String", # A link back to this reference.
3190        "kind": "drive#parentReference", # This is always drive#parentReference.
3191        "id": "A String", # The ID of the parent.
3192        "isRoot": True or False, # Whether or not the parent is the root folder.
3193        "parentLink": "A String", # A link to the parent.
3194      },
3195    ],
3196    "exportLinks": { # Links for exporting Google Docs to specific formats.
3197      "a_key": "A String", # A mapping from export format to URL
3198    },
3199    "shareable": True or False, # Deprecated: use capabilities/canShare.
3200    "copyRequiresWriterPermission": True or False, # Whether the options to copy, print, or download this file, should be disabled for readers and commenters.
3201    "fullFileExtension": "A String", # The full file extension; extracted from the title. May contain multiple concatenated extensions, such as "tar.gz". 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 Google Docs or shortcut files.
3202    "openWithLinks": { # A map of the id of each of the user's apps to a link to open this file with that app. Only populated when the drive.apps.readonly scope is used.
3203      "a_key": "A String",
3204    },
3205    "canReadRevisions": True or False, # Deprecated: use capabilities/canReadRevisions.
3206    "imageMediaMetadata": { # Metadata about image media. This will only be present for image types, and its contents will depend on what can be parsed from the image content.
3207      "exposureBias": 3.14, # The exposure bias of the photo (APEX value).
3208      "exposureTime": 3.14, # The length of the exposure, in seconds.
3209      "cameraMake": "A String", # The make of the camera used to create the photo.
3210      "maxApertureValue": 3.14, # The smallest f-number of the lens at the focal length used to create the photo (APEX value).
3211      "isoSpeed": 42, # The ISO speed used to create the photo.
3212      "focalLength": 3.14, # The focal length used to create the photo, in millimeters.
3213      "exposureMode": "A String", # The exposure mode used to create the photo.
3214      "colorSpace": "A String", # The color space of the photo.
3215      "location": { # Geographic location information stored in the image.
3216        "latitude": 3.14, # The latitude stored in the image.
3217        "altitude": 3.14, # The altitude stored in the image.
3218        "longitude": 3.14, # The longitude stored in the image.
3219      },
3220      "subjectDistance": 42, # The distance to the subject of the photo, in meters.
3221      "height": 42, # The height of the image in pixels.
3222      "lens": "A String", # The lens used to create the photo.
3223      "date": "A String", # The date and time the photo was taken (EXIF format timestamp).
3224      "width": 42, # The width of the image in pixels.
3225      "meteringMode": "A String", # The metering mode used to create the photo.
3226      "flashUsed": True or False, # Whether a flash was used to create the photo.
3227      "aperture": 3.14, # The aperture used to create the photo (f-number).
3228      "rotation": 42, # The rotation in clockwise degrees from the image's original orientation.
3229      "sensor": "A String", # The type of sensor used to create the photo.
3230      "whiteBalance": "A String", # The white balance mode used to create the photo.
3231      "cameraModel": "A String", # The model of the camera used to create the photo.
3232    },
3233    "description": "A String", # A short description of the file.
3234    "webContentLink": "A String", # 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.
3235    "videoMediaMetadata": { # Metadata about video media. This will only be present for video types.
3236      "width": 42, # The width of the video in pixels.
3237      "durationMillis": "A String", # The duration of the video in milliseconds.
3238      "height": 42, # The height of the video in pixels.
3239    },
3240    "editable": True or False, # Deprecated: use capabilities/canEdit.
3241    "kind": "drive#file", # The type of file. This is always drive#file.
3242    "canComment": True or False, # Deprecated: use capabilities/canComment.
3243    "quotaBytesUsed": "A String", # The number of quota bytes used by this file.
3244    "fileSize": "A String", # The size of the file in bytes. This field is only populated for files with content stored in Google Drive; it is not populated for Google Docs or shortcut files.
3245    "createdDate": "A String", # Create time for this file (formatted RFC 3339 timestamp).
3246    "teamDriveId": "A String", # Deprecated - use driveId instead.
3247    "properties": [ # The list of properties.
3248      { # A key-value pair attached to a file that is either public or private to an application.
3249          # The following limits apply to file properties:
3250          # - Maximum of 100 properties total per file
3251          # - Maximum of 30 private properties per app
3252          # - Maximum of 30 public properties
3253          # - Maximum of 124 bytes size limit on (key + value) string in UTF-8 encoding for a single property.
3254        "kind": "drive#property", # This is always drive#property.
3255        "value": "A String", # The value of this property.
3256        "etag": "A String", # ETag of the property.
3257        "visibility": "A String", # The visibility of this property. Allowed values are PRIVATE and PUBLIC. (Default: PRIVATE)
3258        "key": "A String", # The key of this property.
3259        "selfLink": "A String", # The link back to this property.
3260      },
3261    ],
3262    "md5Checksum": "A String", # 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 Google Docs or shortcut files.
3263    "iconLink": "A String", # A link to the file's icon.
3264    "defaultOpenWithLink": "A String", # A link to open this file with the user's default app for this file. Only populated when the drive.apps.readonly scope is used.
3265    "embedLink": "A String", # A link for embedding the file.
3266    "alternateLink": "A String", # A link for opening the file in a relevant Google editor or viewer.
3267    "shared": True or False, # Whether the file has been shared. Not populated for items in shared drives.
3268    "title": "A String", # 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.
3269    "modifiedByMeDate": "A String", # 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.
3270    "thumbnail": { # A thumbnail for the file. This will only be used if a standard thumbnail cannot be generated.
3271      "mimeType": "A String", # The MIME type of the thumbnail.
3272      "image": "A String", # The URL-safe Base64 encoded bytes of the thumbnail image. It should conform to RFC 4648 section 5.
3273    },
3274    "driveId": "A String", # ID of the shared drive the file resides in. Only populated for items in shared drives.
3275    "userPermission": { # A permission for a file. # The permissions for the authenticated user on this file.
3276      "withLink": True or False, # Whether the link is required for this permission.
3277      "domain": "A String", # The domain name of the entity this permission refers to. This is an output-only field which is present when the permission type is user, group or domain.
3278      "permissionDetails": [ # 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.
3279        {
3280          "role": "A String", # The primary role for this user. While new values may be added in the future, the following are currently possible:
3281              # - organizer
3282              # - fileOrganizer
3283              # - writer
3284              # - reader
3285          "inheritedFrom": "A String", # The ID of the item from which this permission is inherited. This is an output-only field and is only populated for members of the shared drive.
3286          "permissionType": "A String", # The permission type for this user. While new values may be added in future, the following are currently possible:
3287              # - file
3288              # - member
3289          "additionalRoles": [ # Additional roles for this user. Only commenter is currently possible, though more may be supported in the future.
3290            "A String",
3291          ],
3292          "inherited": True or False, # Whether this permission is inherited. This field is always populated. This is an output-only field.
3293        },
3294      ],
3295      "name": "A String", # The name for this permission.
3296      "teamDrivePermissionDetails": [ # Deprecated - use permissionDetails instead.
3297        {
3298          "inheritedFrom": "A String", # Deprecated - use permissionDetails/inheritedFrom instead.
3299          "role": "A String", # Deprecated - use permissionDetails/role instead.
3300          "additionalRoles": [ # Deprecated - use permissionDetails/additionalRoles instead.
3301            "A String",
3302          ],
3303          "teamDrivePermissionType": "A String", # Deprecated - use permissionDetails/permissionType instead.
3304          "inherited": True or False, # Deprecated - use permissionDetails/inherited instead.
3305        },
3306      ],
3307      "deleted": True or False, # Whether the account associated with this permission has been deleted. This field only pertains to user and group permissions.
3308      "kind": "drive#permission", # This is always drive#permission.
3309      "value": "A String", # The email address or domain name for the entity. This is used during inserts and is not populated in responses. When making a drive.permissions.insert request, exactly one of the id or value fields must be specified unless the permission type is anyone, in which case both id and value are ignored.
3310      "id": "A String", # The ID of the user this permission refers to, and identical to the permissionId in the About and Files resources. When making a drive.permissions.insert request, exactly one of the id or value fields must be specified unless the permission type is anyone, in which case both id and value are ignored.
3311      "authKey": "A String", # Deprecated.
3312      "etag": "A String", # The ETag of the permission.
3313      "emailAddress": "A String", # 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.
3314      "expirationDate": "A String", # The time at which this permission will expire (RFC 3339 date-time). Expiration dates have the following restrictions:
3315          # - They can only be set on user and group permissions
3316          # - The date must be in the future
3317          # - The date cannot be more than a year in the future
3318          # - The date can only be set on drive.permissions.update or drive.permissions.patch requests
3319      "role": "A String", # The primary role for this user. While new values may be supported in the future, the following are currently allowed:
3320          # - owner
3321          # - organizer
3322          # - fileOrganizer
3323          # - writer
3324          # - reader
3325      "type": "A String", # The account type. Allowed values are:
3326          # - user
3327          # - group
3328          # - domain
3329          # - anyone
3330      "additionalRoles": [ # Additional roles for this user. Only commenter is currently allowed, though more may be supported in the future.
3331        "A String",
3332      ],
3333      "selfLink": "A String", # A link back to this permission.
3334      "photoLink": "A String", # A link to the profile photo, if available.
3335    },
3336    "spaces": [ # The list of spaces which contain the file. Supported values are 'drive', 'appDataFolder' and 'photos'.
3337      "A String",
3338    ],
3339    "permissionIds": [ # List of permission IDs for users with access to this file.
3340      "A String",
3341    ],
3342    "originalFilename": "A String", # The original filename of the uploaded content if available, or else the original value of the title field. This is only available for files with binary content in Google Drive.
3343    "fileExtension": "A String", # The final component of fullFileExtension with trailing text that does not appear to be part of the extension removed. This field is only populated for files with content stored in Google Drive; it is not populated for Google Docs or shortcut files.
3344    "hasAugmentedPermissions": True or False, # Whether any users are granted file access directly on this file. This field is only populated for items in shared drives.
3345    "permissions": [ # The list of permissions for users with access to this file. Not populated for items in shared drives.
3346      { # A permission for a file.
3347        "withLink": True or False, # Whether the link is required for this permission.
3348        "domain": "A String", # The domain name of the entity this permission refers to. This is an output-only field which is present when the permission type is user, group or domain.
3349        "permissionDetails": [ # 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.
3350          {
3351            "role": "A String", # The primary role for this user. While new values may be added in the future, the following are currently possible:
3352                # - organizer
3353                # - fileOrganizer
3354                # - writer
3355                # - reader
3356            "inheritedFrom": "A String", # The ID of the item from which this permission is inherited. This is an output-only field and is only populated for members of the shared drive.
3357            "permissionType": "A String", # The permission type for this user. While new values may be added in future, the following are currently possible:
3358                # - file
3359                # - member
3360            "additionalRoles": [ # Additional roles for this user. Only commenter is currently possible, though more may be supported in the future.
3361              "A String",
3362            ],
3363            "inherited": True or False, # Whether this permission is inherited. This field is always populated. This is an output-only field.
3364          },
3365        ],
3366        "name": "A String", # The name for this permission.
3367        "teamDrivePermissionDetails": [ # Deprecated - use permissionDetails instead.
3368          {
3369            "inheritedFrom": "A String", # Deprecated - use permissionDetails/inheritedFrom instead.
3370            "role": "A String", # Deprecated - use permissionDetails/role instead.
3371            "additionalRoles": [ # Deprecated - use permissionDetails/additionalRoles instead.
3372              "A String",
3373            ],
3374            "teamDrivePermissionType": "A String", # Deprecated - use permissionDetails/permissionType instead.
3375            "inherited": True or False, # Deprecated - use permissionDetails/inherited instead.
3376          },
3377        ],
3378        "deleted": True or False, # Whether the account associated with this permission has been deleted. This field only pertains to user and group permissions.
3379        "kind": "drive#permission", # This is always drive#permission.
3380        "value": "A String", # The email address or domain name for the entity. This is used during inserts and is not populated in responses. When making a drive.permissions.insert request, exactly one of the id or value fields must be specified unless the permission type is anyone, in which case both id and value are ignored.
3381        "id": "A String", # The ID of the user this permission refers to, and identical to the permissionId in the About and Files resources. When making a drive.permissions.insert request, exactly one of the id or value fields must be specified unless the permission type is anyone, in which case both id and value are ignored.
3382        "authKey": "A String", # Deprecated.
3383        "etag": "A String", # The ETag of the permission.
3384        "emailAddress": "A String", # 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.
3385        "expirationDate": "A String", # The time at which this permission will expire (RFC 3339 date-time). Expiration dates have the following restrictions:
3386            # - They can only be set on user and group permissions
3387            # - The date must be in the future
3388            # - The date cannot be more than a year in the future
3389            # - The date can only be set on drive.permissions.update or drive.permissions.patch requests
3390        "role": "A String", # The primary role for this user. While new values may be supported in the future, the following are currently allowed:
3391            # - owner
3392            # - organizer
3393            # - fileOrganizer
3394            # - writer
3395            # - reader
3396        "type": "A String", # The account type. Allowed values are:
3397            # - user
3398            # - group
3399            # - domain
3400            # - anyone
3401        "additionalRoles": [ # Additional roles for this user. Only commenter is currently allowed, though more may be supported in the future.
3402          "A String",
3403        ],
3404        "selfLink": "A String", # A link back to this permission.
3405        "photoLink": "A String", # A link to the profile photo, if available.
3406      },
3407    ],
3408    "headRevisionId": "A String", # The ID of the file's head revision. This field is only populated for files with content stored in Google Drive; it is not populated for Google Docs or shortcut files.
3409    "selfLink": "A String", # A link back to this file.
3410    "modifiedDate": "A String", # Last time this file was modified by anyone (formatted RFC 3339 timestamp). This is only mutable on update when the setModifiedDate parameter is set.
3411  }</pre>
3412</div>
3413
3414<div class="method">
3415    <code class="details" id="trash">trash(fileId, supportsTeamDrives=None, supportsAllDrives=None)</code>
3416  <pre>Moves a file to the trash. The currently authenticated user must own the file or be at least a fileOrganizer on the parent for shared drive files.
3417
3418Args:
3419  fileId: string, The ID of the file to trash. (required)
3420  supportsTeamDrives: boolean, Deprecated use supportsAllDrives instead.
3421  supportsAllDrives: boolean, Deprecated - Whether the requesting application supports both My Drives and shared drives. This parameter will only be effective until June 1, 2020. Afterwards all applications are assumed to support shared drives.
3422
3423Returns:
3424  An object of the form:
3425
3426    { # The metadata for a file.
3427    "hasThumbnail": True or False, # Whether this file has a thumbnail. This does not indicate whether the requesting app has access to the thumbnail. To check access, look for the presence of the thumbnailLink field.
3428    "lastViewedByMeDate": "A String", # Last time this file was viewed by the user (formatted RFC 3339 timestamp).
3429    "trashedDate": "A String", # The time that the item was trashed (formatted RFC 3339 timestamp). Only populated for items in shared drives.
3430    "version": "A String", # A monotonically increasing version number for the file. This reflects every change made to the file on the server, even those not visible to the requesting user.
3431    "appDataContents": True or False, # Whether this file is in the Application Data folder.
3432    "thumbnailLink": "A String", # A short-lived link to the file's thumbnail. Typically lasts on the order of hours. Only populated when the requesting app can access the file's content.
3433    "labels": { # A group of labels for the file.
3434      "restricted": True or False, # Deprecated - use copyRequiresWriterPermission instead.
3435      "modified": True or False, # Whether the file has been modified by this user.
3436      "trashed": True or False, # Whether this file has been trashed. This label applies to all users accessing the file; however, only owners are allowed to see and untrash files.
3437      "hidden": True or False, # Deprecated.
3438      "starred": True or False, # Whether this file is starred by the user.
3439      "viewed": True or False, # Whether this file has been viewed by this user.
3440    },
3441    "indexableText": { # Indexable text attributes for the file (can only be written)
3442      "text": "A String", # The text to be indexed for this file.
3443    },
3444    "thumbnailVersion": "A String", # The thumbnail version for use in thumbnail cache invalidation.
3445    "explicitlyTrashed": True or False, # Whether this file has been explicitly trashed, as opposed to recursively trashed.
3446    "isAppAuthorized": True or False, # Whether the file was created or opened by the requesting app.
3447    "lastModifyingUserName": "A String", # Name of the last user to modify this file.
3448    "writersCanShare": True or False, # Whether writers can share the document with other users. Not populated for items in shared drives.
3449    "owners": [ # The owner(s) of this file. Not populated for items in shared drives.
3450      { # Information about a Drive user.
3451        "picture": { # The user's profile picture.
3452          "url": "A String", # A URL that points to a profile picture of this user.
3453        },
3454        "kind": "drive#user", # This is always drive#user.
3455        "displayName": "A String", # A plain text displayable name for this user.
3456        "permissionId": "A String", # The user's ID as visible in the permissions collection.
3457        "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
3458        "emailAddress": "A String", # The email address of the user.
3459      },
3460    ],
3461    "ownedByMe": True or False, # Whether the file is owned by the current user. Not populated for items in shared drives.
3462    "id": "A String", # The ID of the file.
3463    "sharingUser": { # Information about a Drive user. # User that shared the item with the current user, if available.
3464      "picture": { # The user's profile picture.
3465        "url": "A String", # A URL that points to a profile picture of this user.
3466      },
3467      "kind": "drive#user", # This is always drive#user.
3468      "displayName": "A String", # A plain text displayable name for this user.
3469      "permissionId": "A String", # The user's ID as visible in the permissions collection.
3470      "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
3471      "emailAddress": "A String", # The email address of the user.
3472    },
3473    "trashingUser": { # Information about a Drive user. # If the file has been explicitly trashed, the user who trashed it. Only populated for items in shared drives.
3474      "picture": { # The user's profile picture.
3475        "url": "A String", # A URL that points to a profile picture of this user.
3476      },
3477      "kind": "drive#user", # This is always drive#user.
3478      "displayName": "A String", # A plain text displayable name for this user.
3479      "permissionId": "A String", # The user's ID as visible in the permissions collection.
3480      "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
3481      "emailAddress": "A String", # The email address of the user.
3482    },
3483    "downloadUrl": "A String", # 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 Google Docs or shortcut files.
3484    "mimeType": "A String", # 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's MIME type.
3485    "lastModifyingUser": { # Information about a Drive user. # The last user to modify this file.
3486      "picture": { # The user's profile picture.
3487        "url": "A String", # A URL that points to a profile picture of this user.
3488      },
3489      "kind": "drive#user", # This is always drive#user.
3490      "displayName": "A String", # A plain text displayable name for this user.
3491      "permissionId": "A String", # The user's ID as visible in the permissions collection.
3492      "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
3493      "emailAddress": "A String", # The email address of the user.
3494    },
3495    "copyable": True or False, # Deprecated: use capabilities/canCopy.
3496    "folderColorRgb": "A String", # Folder color as an RGB hex string if the file is a folder. The list of supported colors is available in the folderColorPalette field of the About resource. If an unsupported color is specified, it will be changed to the closest color in the palette. Not populated for items in shared drives.
3497    "markedViewedByMeDate": "A String", # Deprecated.
3498    "ownerNames": [ # Name(s) of the owner(s) of this file. Not populated for items in shared drives.
3499      "A String",
3500    ],
3501    "capabilities": { # Capabilities the current user has on this file. Each capability corresponds to a fine-grained action that a user may take.
3502      "canMoveItemOutOfDrive": 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.
3503      "canUntrash": True or False, # Whether the current user can restore this file from trash.
3504      "canMoveItemWithinTeamDrive": True or False, # Deprecated - use canMoveItemWithinDrive instead.
3505      "canDeleteChildren": 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.
3506      "canMoveChildrenWithinTeamDrive": True or False, # Deprecated - use canMoveChildrenWithinDrive instead.
3507      "canListChildren": True or False, # Whether the current user can list the children of this folder. This is always false when the item is not a folder.
3508      "canRename": True or False, # Whether the current user can rename this file.
3509      "canReadDrive": True or False, # Whether the current user can read the shared drive to which this file belongs. Only populated for items in shared drives.
3510      "canAddChildren": True or False, # Whether the current user can add children to this folder. This is always false when the item is not a folder.
3511      "canChangeRestrictedDownload": True or False, # Deprecated
3512      "canShare": True or False, # Whether the current user can modify the sharing settings for this file.
3513      "canTrashChildren": 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.
3514      "canMoveChildrenWithinDrive": True or False, # Whether the current user can move children of this folder within the shared drive. This is false when the item is not a folder. Only populated for items in shared drives.
3515      "canReadRevisions": 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.
3516      "canMoveItemWithinDrive": True or False, # Whether the current user can move this item within this shared drive. Note that a request to change the parent of the item may still fail depending on the new parent that is being added. Only populated for items in shared drives.
3517      "canCopy": 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.
3518      "canMoveItemIntoTeamDrive": True or False, # Deprecated - use canMoveItemOutOfDrive instead.
3519      "canMoveItemOutOfTeamDrive": True or False, # Deprecated - use canMoveItemOutOfDrive instead.
3520      "canComment": True or False, # Whether the current user can comment on this file.
3521      "canMoveChildrenOutOfDrive": 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.
3522      "canTrash": True or False, # Whether the current user can move this file to trash.
3523      "canDelete": True or False, # Whether the current user can delete this file.
3524      "canMoveTeamDriveItem": True or False, # Deprecated - use canMoveItemWithinDrive or canMoveItemOutOfDrive instead.
3525      "canDownload": True or False, # Whether the current user can download this file.
3526      "canChangeCopyRequiresWriterPermission": True or False, # Whether the current user can change the copyRequiresWriterPermission restriction of this file.
3527      "canMoveChildrenOutOfTeamDrive": True or False, # Deprecated - use canMoveChildrenOutOfDrive instead.
3528      "canRemoveChildren": True or False, # Whether the current user can remove children from this folder. This is always false when the item is not a folder. For a folder in a shared drive, use canDeleteChildren or canTrashChildren instead.
3529      "canReadTeamDrive": True or False, # Deprecated - use canReadDrive instead.
3530      "canEdit": True or False, # Whether the current user can edit this file.
3531    },
3532    "sharedWithMeDate": "A String", # Time at which this file was shared with the user (formatted RFC 3339 timestamp).
3533    "webViewLink": "A String", # A link only available on public folders for viewing their static web assets (HTML, CSS, JS, etc) via Google Drive's Website Hosting.
3534    "etag": "A String", # ETag of the file.
3535    "parents": [ # Collection of parent folders which contain this file.
3536        # If not specified as part of an insert request, the file will be placed directly in the user's My Drive folder. If not specified as part of a copy request, the file will inherit any discoverable parents of the source file. Update requests can also use the addParents and removeParents parameters to modify the parents list.
3537      { # A reference to a file's parent.
3538        "selfLink": "A String", # A link back to this reference.
3539        "kind": "drive#parentReference", # This is always drive#parentReference.
3540        "id": "A String", # The ID of the parent.
3541        "isRoot": True or False, # Whether or not the parent is the root folder.
3542        "parentLink": "A String", # A link to the parent.
3543      },
3544    ],
3545    "exportLinks": { # Links for exporting Google Docs to specific formats.
3546      "a_key": "A String", # A mapping from export format to URL
3547    },
3548    "shareable": True or False, # Deprecated: use capabilities/canShare.
3549    "copyRequiresWriterPermission": True or False, # Whether the options to copy, print, or download this file, should be disabled for readers and commenters.
3550    "fullFileExtension": "A String", # The full file extension; extracted from the title. May contain multiple concatenated extensions, such as "tar.gz". 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 Google Docs or shortcut files.
3551    "openWithLinks": { # A map of the id of each of the user's apps to a link to open this file with that app. Only populated when the drive.apps.readonly scope is used.
3552      "a_key": "A String",
3553    },
3554    "canReadRevisions": True or False, # Deprecated: use capabilities/canReadRevisions.
3555    "imageMediaMetadata": { # Metadata about image media. This will only be present for image types, and its contents will depend on what can be parsed from the image content.
3556      "exposureBias": 3.14, # The exposure bias of the photo (APEX value).
3557      "exposureTime": 3.14, # The length of the exposure, in seconds.
3558      "cameraMake": "A String", # The make of the camera used to create the photo.
3559      "maxApertureValue": 3.14, # The smallest f-number of the lens at the focal length used to create the photo (APEX value).
3560      "isoSpeed": 42, # The ISO speed used to create the photo.
3561      "focalLength": 3.14, # The focal length used to create the photo, in millimeters.
3562      "exposureMode": "A String", # The exposure mode used to create the photo.
3563      "colorSpace": "A String", # The color space of the photo.
3564      "location": { # Geographic location information stored in the image.
3565        "latitude": 3.14, # The latitude stored in the image.
3566        "altitude": 3.14, # The altitude stored in the image.
3567        "longitude": 3.14, # The longitude stored in the image.
3568      },
3569      "subjectDistance": 42, # The distance to the subject of the photo, in meters.
3570      "height": 42, # The height of the image in pixels.
3571      "lens": "A String", # The lens used to create the photo.
3572      "date": "A String", # The date and time the photo was taken (EXIF format timestamp).
3573      "width": 42, # The width of the image in pixels.
3574      "meteringMode": "A String", # The metering mode used to create the photo.
3575      "flashUsed": True or False, # Whether a flash was used to create the photo.
3576      "aperture": 3.14, # The aperture used to create the photo (f-number).
3577      "rotation": 42, # The rotation in clockwise degrees from the image's original orientation.
3578      "sensor": "A String", # The type of sensor used to create the photo.
3579      "whiteBalance": "A String", # The white balance mode used to create the photo.
3580      "cameraModel": "A String", # The model of the camera used to create the photo.
3581    },
3582    "description": "A String", # A short description of the file.
3583    "webContentLink": "A String", # 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.
3584    "videoMediaMetadata": { # Metadata about video media. This will only be present for video types.
3585      "width": 42, # The width of the video in pixels.
3586      "durationMillis": "A String", # The duration of the video in milliseconds.
3587      "height": 42, # The height of the video in pixels.
3588    },
3589    "editable": True or False, # Deprecated: use capabilities/canEdit.
3590    "kind": "drive#file", # The type of file. This is always drive#file.
3591    "canComment": True or False, # Deprecated: use capabilities/canComment.
3592    "quotaBytesUsed": "A String", # The number of quota bytes used by this file.
3593    "fileSize": "A String", # The size of the file in bytes. This field is only populated for files with content stored in Google Drive; it is not populated for Google Docs or shortcut files.
3594    "createdDate": "A String", # Create time for this file (formatted RFC 3339 timestamp).
3595    "teamDriveId": "A String", # Deprecated - use driveId instead.
3596    "properties": [ # The list of properties.
3597      { # A key-value pair attached to a file that is either public or private to an application.
3598          # The following limits apply to file properties:
3599          # - Maximum of 100 properties total per file
3600          # - Maximum of 30 private properties per app
3601          # - Maximum of 30 public properties
3602          # - Maximum of 124 bytes size limit on (key + value) string in UTF-8 encoding for a single property.
3603        "kind": "drive#property", # This is always drive#property.
3604        "value": "A String", # The value of this property.
3605        "etag": "A String", # ETag of the property.
3606        "visibility": "A String", # The visibility of this property. Allowed values are PRIVATE and PUBLIC. (Default: PRIVATE)
3607        "key": "A String", # The key of this property.
3608        "selfLink": "A String", # The link back to this property.
3609      },
3610    ],
3611    "md5Checksum": "A String", # 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 Google Docs or shortcut files.
3612    "iconLink": "A String", # A link to the file's icon.
3613    "defaultOpenWithLink": "A String", # A link to open this file with the user's default app for this file. Only populated when the drive.apps.readonly scope is used.
3614    "embedLink": "A String", # A link for embedding the file.
3615    "alternateLink": "A String", # A link for opening the file in a relevant Google editor or viewer.
3616    "shared": True or False, # Whether the file has been shared. Not populated for items in shared drives.
3617    "title": "A String", # 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.
3618    "modifiedByMeDate": "A String", # 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.
3619    "thumbnail": { # A thumbnail for the file. This will only be used if a standard thumbnail cannot be generated.
3620      "mimeType": "A String", # The MIME type of the thumbnail.
3621      "image": "A String", # The URL-safe Base64 encoded bytes of the thumbnail image. It should conform to RFC 4648 section 5.
3622    },
3623    "driveId": "A String", # ID of the shared drive the file resides in. Only populated for items in shared drives.
3624    "userPermission": { # A permission for a file. # The permissions for the authenticated user on this file.
3625      "withLink": True or False, # Whether the link is required for this permission.
3626      "domain": "A String", # The domain name of the entity this permission refers to. This is an output-only field which is present when the permission type is user, group or domain.
3627      "permissionDetails": [ # 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.
3628        {
3629          "role": "A String", # The primary role for this user. While new values may be added in the future, the following are currently possible:
3630              # - organizer
3631              # - fileOrganizer
3632              # - writer
3633              # - reader
3634          "inheritedFrom": "A String", # The ID of the item from which this permission is inherited. This is an output-only field and is only populated for members of the shared drive.
3635          "permissionType": "A String", # The permission type for this user. While new values may be added in future, the following are currently possible:
3636              # - file
3637              # - member
3638          "additionalRoles": [ # Additional roles for this user. Only commenter is currently possible, though more may be supported in the future.
3639            "A String",
3640          ],
3641          "inherited": True or False, # Whether this permission is inherited. This field is always populated. This is an output-only field.
3642        },
3643      ],
3644      "name": "A String", # The name for this permission.
3645      "teamDrivePermissionDetails": [ # Deprecated - use permissionDetails instead.
3646        {
3647          "inheritedFrom": "A String", # Deprecated - use permissionDetails/inheritedFrom instead.
3648          "role": "A String", # Deprecated - use permissionDetails/role instead.
3649          "additionalRoles": [ # Deprecated - use permissionDetails/additionalRoles instead.
3650            "A String",
3651          ],
3652          "teamDrivePermissionType": "A String", # Deprecated - use permissionDetails/permissionType instead.
3653          "inherited": True or False, # Deprecated - use permissionDetails/inherited instead.
3654        },
3655      ],
3656      "deleted": True or False, # Whether the account associated with this permission has been deleted. This field only pertains to user and group permissions.
3657      "kind": "drive#permission", # This is always drive#permission.
3658      "value": "A String", # The email address or domain name for the entity. This is used during inserts and is not populated in responses. When making a drive.permissions.insert request, exactly one of the id or value fields must be specified unless the permission type is anyone, in which case both id and value are ignored.
3659      "id": "A String", # The ID of the user this permission refers to, and identical to the permissionId in the About and Files resources. When making a drive.permissions.insert request, exactly one of the id or value fields must be specified unless the permission type is anyone, in which case both id and value are ignored.
3660      "authKey": "A String", # Deprecated.
3661      "etag": "A String", # The ETag of the permission.
3662      "emailAddress": "A String", # 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.
3663      "expirationDate": "A String", # The time at which this permission will expire (RFC 3339 date-time). Expiration dates have the following restrictions:
3664          # - They can only be set on user and group permissions
3665          # - The date must be in the future
3666          # - The date cannot be more than a year in the future
3667          # - The date can only be set on drive.permissions.update or drive.permissions.patch requests
3668      "role": "A String", # The primary role for this user. While new values may be supported in the future, the following are currently allowed:
3669          # - owner
3670          # - organizer
3671          # - fileOrganizer
3672          # - writer
3673          # - reader
3674      "type": "A String", # The account type. Allowed values are:
3675          # - user
3676          # - group
3677          # - domain
3678          # - anyone
3679      "additionalRoles": [ # Additional roles for this user. Only commenter is currently allowed, though more may be supported in the future.
3680        "A String",
3681      ],
3682      "selfLink": "A String", # A link back to this permission.
3683      "photoLink": "A String", # A link to the profile photo, if available.
3684    },
3685    "spaces": [ # The list of spaces which contain the file. Supported values are 'drive', 'appDataFolder' and 'photos'.
3686      "A String",
3687    ],
3688    "permissionIds": [ # List of permission IDs for users with access to this file.
3689      "A String",
3690    ],
3691    "originalFilename": "A String", # The original filename of the uploaded content if available, or else the original value of the title field. This is only available for files with binary content in Google Drive.
3692    "fileExtension": "A String", # The final component of fullFileExtension with trailing text that does not appear to be part of the extension removed. This field is only populated for files with content stored in Google Drive; it is not populated for Google Docs or shortcut files.
3693    "hasAugmentedPermissions": True or False, # Whether any users are granted file access directly on this file. This field is only populated for items in shared drives.
3694    "permissions": [ # The list of permissions for users with access to this file. Not populated for items in shared drives.
3695      { # A permission for a file.
3696        "withLink": True or False, # Whether the link is required for this permission.
3697        "domain": "A String", # The domain name of the entity this permission refers to. This is an output-only field which is present when the permission type is user, group or domain.
3698        "permissionDetails": [ # 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.
3699          {
3700            "role": "A String", # The primary role for this user. While new values may be added in the future, the following are currently possible:
3701                # - organizer
3702                # - fileOrganizer
3703                # - writer
3704                # - reader
3705            "inheritedFrom": "A String", # The ID of the item from which this permission is inherited. This is an output-only field and is only populated for members of the shared drive.
3706            "permissionType": "A String", # The permission type for this user. While new values may be added in future, the following are currently possible:
3707                # - file
3708                # - member
3709            "additionalRoles": [ # Additional roles for this user. Only commenter is currently possible, though more may be supported in the future.
3710              "A String",
3711            ],
3712            "inherited": True or False, # Whether this permission is inherited. This field is always populated. This is an output-only field.
3713          },
3714        ],
3715        "name": "A String", # The name for this permission.
3716        "teamDrivePermissionDetails": [ # Deprecated - use permissionDetails instead.
3717          {
3718            "inheritedFrom": "A String", # Deprecated - use permissionDetails/inheritedFrom instead.
3719            "role": "A String", # Deprecated - use permissionDetails/role instead.
3720            "additionalRoles": [ # Deprecated - use permissionDetails/additionalRoles instead.
3721              "A String",
3722            ],
3723            "teamDrivePermissionType": "A String", # Deprecated - use permissionDetails/permissionType instead.
3724            "inherited": True or False, # Deprecated - use permissionDetails/inherited instead.
3725          },
3726        ],
3727        "deleted": True or False, # Whether the account associated with this permission has been deleted. This field only pertains to user and group permissions.
3728        "kind": "drive#permission", # This is always drive#permission.
3729        "value": "A String", # The email address or domain name for the entity. This is used during inserts and is not populated in responses. When making a drive.permissions.insert request, exactly one of the id or value fields must be specified unless the permission type is anyone, in which case both id and value are ignored.
3730        "id": "A String", # The ID of the user this permission refers to, and identical to the permissionId in the About and Files resources. When making a drive.permissions.insert request, exactly one of the id or value fields must be specified unless the permission type is anyone, in which case both id and value are ignored.
3731        "authKey": "A String", # Deprecated.
3732        "etag": "A String", # The ETag of the permission.
3733        "emailAddress": "A String", # 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.
3734        "expirationDate": "A String", # The time at which this permission will expire (RFC 3339 date-time). Expiration dates have the following restrictions:
3735            # - They can only be set on user and group permissions
3736            # - The date must be in the future
3737            # - The date cannot be more than a year in the future
3738            # - The date can only be set on drive.permissions.update or drive.permissions.patch requests
3739        "role": "A String", # The primary role for this user. While new values may be supported in the future, the following are currently allowed:
3740            # - owner
3741            # - organizer
3742            # - fileOrganizer
3743            # - writer
3744            # - reader
3745        "type": "A String", # The account type. Allowed values are:
3746            # - user
3747            # - group
3748            # - domain
3749            # - anyone
3750        "additionalRoles": [ # Additional roles for this user. Only commenter is currently allowed, though more may be supported in the future.
3751          "A String",
3752        ],
3753        "selfLink": "A String", # A link back to this permission.
3754        "photoLink": "A String", # A link to the profile photo, if available.
3755      },
3756    ],
3757    "headRevisionId": "A String", # The ID of the file's head revision. This field is only populated for files with content stored in Google Drive; it is not populated for Google Docs or shortcut files.
3758    "selfLink": "A String", # A link back to this file.
3759    "modifiedDate": "A String", # Last time this file was modified by anyone (formatted RFC 3339 timestamp). This is only mutable on update when the setModifiedDate parameter is set.
3760  }</pre>
3761</div>
3762
3763<div class="method">
3764    <code class="details" id="untrash">untrash(fileId, supportsTeamDrives=None, supportsAllDrives=None)</code>
3765  <pre>Restores a file from the trash.
3766
3767Args:
3768  fileId: string, The ID of the file to untrash. (required)
3769  supportsTeamDrives: boolean, Deprecated use supportsAllDrives instead.
3770  supportsAllDrives: boolean, Deprecated - Whether the requesting application supports both My Drives and shared drives. This parameter will only be effective until June 1, 2020. Afterwards all applications are assumed to support shared drives.
3771
3772Returns:
3773  An object of the form:
3774
3775    { # The metadata for a file.
3776    "hasThumbnail": True or False, # Whether this file has a thumbnail. This does not indicate whether the requesting app has access to the thumbnail. To check access, look for the presence of the thumbnailLink field.
3777    "lastViewedByMeDate": "A String", # Last time this file was viewed by the user (formatted RFC 3339 timestamp).
3778    "trashedDate": "A String", # The time that the item was trashed (formatted RFC 3339 timestamp). Only populated for items in shared drives.
3779    "version": "A String", # A monotonically increasing version number for the file. This reflects every change made to the file on the server, even those not visible to the requesting user.
3780    "appDataContents": True or False, # Whether this file is in the Application Data folder.
3781    "thumbnailLink": "A String", # A short-lived link to the file's thumbnail. Typically lasts on the order of hours. Only populated when the requesting app can access the file's content.
3782    "labels": { # A group of labels for the file.
3783      "restricted": True or False, # Deprecated - use copyRequiresWriterPermission instead.
3784      "modified": True or False, # Whether the file has been modified by this user.
3785      "trashed": True or False, # Whether this file has been trashed. This label applies to all users accessing the file; however, only owners are allowed to see and untrash files.
3786      "hidden": True or False, # Deprecated.
3787      "starred": True or False, # Whether this file is starred by the user.
3788      "viewed": True or False, # Whether this file has been viewed by this user.
3789    },
3790    "indexableText": { # Indexable text attributes for the file (can only be written)
3791      "text": "A String", # The text to be indexed for this file.
3792    },
3793    "thumbnailVersion": "A String", # The thumbnail version for use in thumbnail cache invalidation.
3794    "explicitlyTrashed": True or False, # Whether this file has been explicitly trashed, as opposed to recursively trashed.
3795    "isAppAuthorized": True or False, # Whether the file was created or opened by the requesting app.
3796    "lastModifyingUserName": "A String", # Name of the last user to modify this file.
3797    "writersCanShare": True or False, # Whether writers can share the document with other users. Not populated for items in shared drives.
3798    "owners": [ # The owner(s) of this file. Not populated for items in shared drives.
3799      { # Information about a Drive user.
3800        "picture": { # The user's profile picture.
3801          "url": "A String", # A URL that points to a profile picture of this user.
3802        },
3803        "kind": "drive#user", # This is always drive#user.
3804        "displayName": "A String", # A plain text displayable name for this user.
3805        "permissionId": "A String", # The user's ID as visible in the permissions collection.
3806        "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
3807        "emailAddress": "A String", # The email address of the user.
3808      },
3809    ],
3810    "ownedByMe": True or False, # Whether the file is owned by the current user. Not populated for items in shared drives.
3811    "id": "A String", # The ID of the file.
3812    "sharingUser": { # Information about a Drive user. # User that shared the item with the current user, if available.
3813      "picture": { # The user's profile picture.
3814        "url": "A String", # A URL that points to a profile picture of this user.
3815      },
3816      "kind": "drive#user", # This is always drive#user.
3817      "displayName": "A String", # A plain text displayable name for this user.
3818      "permissionId": "A String", # The user's ID as visible in the permissions collection.
3819      "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
3820      "emailAddress": "A String", # The email address of the user.
3821    },
3822    "trashingUser": { # Information about a Drive user. # If the file has been explicitly trashed, the user who trashed it. Only populated for items in shared drives.
3823      "picture": { # The user's profile picture.
3824        "url": "A String", # A URL that points to a profile picture of this user.
3825      },
3826      "kind": "drive#user", # This is always drive#user.
3827      "displayName": "A String", # A plain text displayable name for this user.
3828      "permissionId": "A String", # The user's ID as visible in the permissions collection.
3829      "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
3830      "emailAddress": "A String", # The email address of the user.
3831    },
3832    "downloadUrl": "A String", # 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 Google Docs or shortcut files.
3833    "mimeType": "A String", # 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's MIME type.
3834    "lastModifyingUser": { # Information about a Drive user. # The last user to modify this file.
3835      "picture": { # The user's profile picture.
3836        "url": "A String", # A URL that points to a profile picture of this user.
3837      },
3838      "kind": "drive#user", # This is always drive#user.
3839      "displayName": "A String", # A plain text displayable name for this user.
3840      "permissionId": "A String", # The user's ID as visible in the permissions collection.
3841      "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
3842      "emailAddress": "A String", # The email address of the user.
3843    },
3844    "copyable": True or False, # Deprecated: use capabilities/canCopy.
3845    "folderColorRgb": "A String", # Folder color as an RGB hex string if the file is a folder. The list of supported colors is available in the folderColorPalette field of the About resource. If an unsupported color is specified, it will be changed to the closest color in the palette. Not populated for items in shared drives.
3846    "markedViewedByMeDate": "A String", # Deprecated.
3847    "ownerNames": [ # Name(s) of the owner(s) of this file. Not populated for items in shared drives.
3848      "A String",
3849    ],
3850    "capabilities": { # Capabilities the current user has on this file. Each capability corresponds to a fine-grained action that a user may take.
3851      "canMoveItemOutOfDrive": 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.
3852      "canUntrash": True or False, # Whether the current user can restore this file from trash.
3853      "canMoveItemWithinTeamDrive": True or False, # Deprecated - use canMoveItemWithinDrive instead.
3854      "canDeleteChildren": 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.
3855      "canMoveChildrenWithinTeamDrive": True or False, # Deprecated - use canMoveChildrenWithinDrive instead.
3856      "canListChildren": True or False, # Whether the current user can list the children of this folder. This is always false when the item is not a folder.
3857      "canRename": True or False, # Whether the current user can rename this file.
3858      "canReadDrive": True or False, # Whether the current user can read the shared drive to which this file belongs. Only populated for items in shared drives.
3859      "canAddChildren": True or False, # Whether the current user can add children to this folder. This is always false when the item is not a folder.
3860      "canChangeRestrictedDownload": True or False, # Deprecated
3861      "canShare": True or False, # Whether the current user can modify the sharing settings for this file.
3862      "canTrashChildren": 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.
3863      "canMoveChildrenWithinDrive": True or False, # Whether the current user can move children of this folder within the shared drive. This is false when the item is not a folder. Only populated for items in shared drives.
3864      "canReadRevisions": 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.
3865      "canMoveItemWithinDrive": True or False, # Whether the current user can move this item within this shared drive. Note that a request to change the parent of the item may still fail depending on the new parent that is being added. Only populated for items in shared drives.
3866      "canCopy": 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.
3867      "canMoveItemIntoTeamDrive": True or False, # Deprecated - use canMoveItemOutOfDrive instead.
3868      "canMoveItemOutOfTeamDrive": True or False, # Deprecated - use canMoveItemOutOfDrive instead.
3869      "canComment": True or False, # Whether the current user can comment on this file.
3870      "canMoveChildrenOutOfDrive": 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.
3871      "canTrash": True or False, # Whether the current user can move this file to trash.
3872      "canDelete": True or False, # Whether the current user can delete this file.
3873      "canMoveTeamDriveItem": True or False, # Deprecated - use canMoveItemWithinDrive or canMoveItemOutOfDrive instead.
3874      "canDownload": True or False, # Whether the current user can download this file.
3875      "canChangeCopyRequiresWriterPermission": True or False, # Whether the current user can change the copyRequiresWriterPermission restriction of this file.
3876      "canMoveChildrenOutOfTeamDrive": True or False, # Deprecated - use canMoveChildrenOutOfDrive instead.
3877      "canRemoveChildren": True or False, # Whether the current user can remove children from this folder. This is always false when the item is not a folder. For a folder in a shared drive, use canDeleteChildren or canTrashChildren instead.
3878      "canReadTeamDrive": True or False, # Deprecated - use canReadDrive instead.
3879      "canEdit": True or False, # Whether the current user can edit this file.
3880    },
3881    "sharedWithMeDate": "A String", # Time at which this file was shared with the user (formatted RFC 3339 timestamp).
3882    "webViewLink": "A String", # A link only available on public folders for viewing their static web assets (HTML, CSS, JS, etc) via Google Drive's Website Hosting.
3883    "etag": "A String", # ETag of the file.
3884    "parents": [ # Collection of parent folders which contain this file.
3885        # If not specified as part of an insert request, the file will be placed directly in the user's My Drive folder. If not specified as part of a copy request, the file will inherit any discoverable parents of the source file. Update requests can also use the addParents and removeParents parameters to modify the parents list.
3886      { # A reference to a file's parent.
3887        "selfLink": "A String", # A link back to this reference.
3888        "kind": "drive#parentReference", # This is always drive#parentReference.
3889        "id": "A String", # The ID of the parent.
3890        "isRoot": True or False, # Whether or not the parent is the root folder.
3891        "parentLink": "A String", # A link to the parent.
3892      },
3893    ],
3894    "exportLinks": { # Links for exporting Google Docs to specific formats.
3895      "a_key": "A String", # A mapping from export format to URL
3896    },
3897    "shareable": True or False, # Deprecated: use capabilities/canShare.
3898    "copyRequiresWriterPermission": True or False, # Whether the options to copy, print, or download this file, should be disabled for readers and commenters.
3899    "fullFileExtension": "A String", # The full file extension; extracted from the title. May contain multiple concatenated extensions, such as "tar.gz". 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 Google Docs or shortcut files.
3900    "openWithLinks": { # A map of the id of each of the user's apps to a link to open this file with that app. Only populated when the drive.apps.readonly scope is used.
3901      "a_key": "A String",
3902    },
3903    "canReadRevisions": True or False, # Deprecated: use capabilities/canReadRevisions.
3904    "imageMediaMetadata": { # Metadata about image media. This will only be present for image types, and its contents will depend on what can be parsed from the image content.
3905      "exposureBias": 3.14, # The exposure bias of the photo (APEX value).
3906      "exposureTime": 3.14, # The length of the exposure, in seconds.
3907      "cameraMake": "A String", # The make of the camera used to create the photo.
3908      "maxApertureValue": 3.14, # The smallest f-number of the lens at the focal length used to create the photo (APEX value).
3909      "isoSpeed": 42, # The ISO speed used to create the photo.
3910      "focalLength": 3.14, # The focal length used to create the photo, in millimeters.
3911      "exposureMode": "A String", # The exposure mode used to create the photo.
3912      "colorSpace": "A String", # The color space of the photo.
3913      "location": { # Geographic location information stored in the image.
3914        "latitude": 3.14, # The latitude stored in the image.
3915        "altitude": 3.14, # The altitude stored in the image.
3916        "longitude": 3.14, # The longitude stored in the image.
3917      },
3918      "subjectDistance": 42, # The distance to the subject of the photo, in meters.
3919      "height": 42, # The height of the image in pixels.
3920      "lens": "A String", # The lens used to create the photo.
3921      "date": "A String", # The date and time the photo was taken (EXIF format timestamp).
3922      "width": 42, # The width of the image in pixels.
3923      "meteringMode": "A String", # The metering mode used to create the photo.
3924      "flashUsed": True or False, # Whether a flash was used to create the photo.
3925      "aperture": 3.14, # The aperture used to create the photo (f-number).
3926      "rotation": 42, # The rotation in clockwise degrees from the image's original orientation.
3927      "sensor": "A String", # The type of sensor used to create the photo.
3928      "whiteBalance": "A String", # The white balance mode used to create the photo.
3929      "cameraModel": "A String", # The model of the camera used to create the photo.
3930    },
3931    "description": "A String", # A short description of the file.
3932    "webContentLink": "A String", # 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.
3933    "videoMediaMetadata": { # Metadata about video media. This will only be present for video types.
3934      "width": 42, # The width of the video in pixels.
3935      "durationMillis": "A String", # The duration of the video in milliseconds.
3936      "height": 42, # The height of the video in pixels.
3937    },
3938    "editable": True or False, # Deprecated: use capabilities/canEdit.
3939    "kind": "drive#file", # The type of file. This is always drive#file.
3940    "canComment": True or False, # Deprecated: use capabilities/canComment.
3941    "quotaBytesUsed": "A String", # The number of quota bytes used by this file.
3942    "fileSize": "A String", # The size of the file in bytes. This field is only populated for files with content stored in Google Drive; it is not populated for Google Docs or shortcut files.
3943    "createdDate": "A String", # Create time for this file (formatted RFC 3339 timestamp).
3944    "teamDriveId": "A String", # Deprecated - use driveId instead.
3945    "properties": [ # The list of properties.
3946      { # A key-value pair attached to a file that is either public or private to an application.
3947          # The following limits apply to file properties:
3948          # - Maximum of 100 properties total per file
3949          # - Maximum of 30 private properties per app
3950          # - Maximum of 30 public properties
3951          # - Maximum of 124 bytes size limit on (key + value) string in UTF-8 encoding for a single property.
3952        "kind": "drive#property", # This is always drive#property.
3953        "value": "A String", # The value of this property.
3954        "etag": "A String", # ETag of the property.
3955        "visibility": "A String", # The visibility of this property. Allowed values are PRIVATE and PUBLIC. (Default: PRIVATE)
3956        "key": "A String", # The key of this property.
3957        "selfLink": "A String", # The link back to this property.
3958      },
3959    ],
3960    "md5Checksum": "A String", # 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 Google Docs or shortcut files.
3961    "iconLink": "A String", # A link to the file's icon.
3962    "defaultOpenWithLink": "A String", # A link to open this file with the user's default app for this file. Only populated when the drive.apps.readonly scope is used.
3963    "embedLink": "A String", # A link for embedding the file.
3964    "alternateLink": "A String", # A link for opening the file in a relevant Google editor or viewer.
3965    "shared": True or False, # Whether the file has been shared. Not populated for items in shared drives.
3966    "title": "A String", # 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.
3967    "modifiedByMeDate": "A String", # 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.
3968    "thumbnail": { # A thumbnail for the file. This will only be used if a standard thumbnail cannot be generated.
3969      "mimeType": "A String", # The MIME type of the thumbnail.
3970      "image": "A String", # The URL-safe Base64 encoded bytes of the thumbnail image. It should conform to RFC 4648 section 5.
3971    },
3972    "driveId": "A String", # ID of the shared drive the file resides in. Only populated for items in shared drives.
3973    "userPermission": { # A permission for a file. # The permissions for the authenticated user on this file.
3974      "withLink": True or False, # Whether the link is required for this permission.
3975      "domain": "A String", # The domain name of the entity this permission refers to. This is an output-only field which is present when the permission type is user, group or domain.
3976      "permissionDetails": [ # 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.
3977        {
3978          "role": "A String", # The primary role for this user. While new values may be added in the future, the following are currently possible:
3979              # - organizer
3980              # - fileOrganizer
3981              # - writer
3982              # - reader
3983          "inheritedFrom": "A String", # The ID of the item from which this permission is inherited. This is an output-only field and is only populated for members of the shared drive.
3984          "permissionType": "A String", # The permission type for this user. While new values may be added in future, the following are currently possible:
3985              # - file
3986              # - member
3987          "additionalRoles": [ # Additional roles for this user. Only commenter is currently possible, though more may be supported in the future.
3988            "A String",
3989          ],
3990          "inherited": True or False, # Whether this permission is inherited. This field is always populated. This is an output-only field.
3991        },
3992      ],
3993      "name": "A String", # The name for this permission.
3994      "teamDrivePermissionDetails": [ # Deprecated - use permissionDetails instead.
3995        {
3996          "inheritedFrom": "A String", # Deprecated - use permissionDetails/inheritedFrom instead.
3997          "role": "A String", # Deprecated - use permissionDetails/role instead.
3998          "additionalRoles": [ # Deprecated - use permissionDetails/additionalRoles instead.
3999            "A String",
4000          ],
4001          "teamDrivePermissionType": "A String", # Deprecated - use permissionDetails/permissionType instead.
4002          "inherited": True or False, # Deprecated - use permissionDetails/inherited instead.
4003        },
4004      ],
4005      "deleted": True or False, # Whether the account associated with this permission has been deleted. This field only pertains to user and group permissions.
4006      "kind": "drive#permission", # This is always drive#permission.
4007      "value": "A String", # The email address or domain name for the entity. This is used during inserts and is not populated in responses. When making a drive.permissions.insert request, exactly one of the id or value fields must be specified unless the permission type is anyone, in which case both id and value are ignored.
4008      "id": "A String", # The ID of the user this permission refers to, and identical to the permissionId in the About and Files resources. When making a drive.permissions.insert request, exactly one of the id or value fields must be specified unless the permission type is anyone, in which case both id and value are ignored.
4009      "authKey": "A String", # Deprecated.
4010      "etag": "A String", # The ETag of the permission.
4011      "emailAddress": "A String", # 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.
4012      "expirationDate": "A String", # The time at which this permission will expire (RFC 3339 date-time). Expiration dates have the following restrictions:
4013          # - They can only be set on user and group permissions
4014          # - The date must be in the future
4015          # - The date cannot be more than a year in the future
4016          # - The date can only be set on drive.permissions.update or drive.permissions.patch requests
4017      "role": "A String", # The primary role for this user. While new values may be supported in the future, the following are currently allowed:
4018          # - owner
4019          # - organizer
4020          # - fileOrganizer
4021          # - writer
4022          # - reader
4023      "type": "A String", # The account type. Allowed values are:
4024          # - user
4025          # - group
4026          # - domain
4027          # - anyone
4028      "additionalRoles": [ # Additional roles for this user. Only commenter is currently allowed, though more may be supported in the future.
4029        "A String",
4030      ],
4031      "selfLink": "A String", # A link back to this permission.
4032      "photoLink": "A String", # A link to the profile photo, if available.
4033    },
4034    "spaces": [ # The list of spaces which contain the file. Supported values are 'drive', 'appDataFolder' and 'photos'.
4035      "A String",
4036    ],
4037    "permissionIds": [ # List of permission IDs for users with access to this file.
4038      "A String",
4039    ],
4040    "originalFilename": "A String", # The original filename of the uploaded content if available, or else the original value of the title field. This is only available for files with binary content in Google Drive.
4041    "fileExtension": "A String", # The final component of fullFileExtension with trailing text that does not appear to be part of the extension removed. This field is only populated for files with content stored in Google Drive; it is not populated for Google Docs or shortcut files.
4042    "hasAugmentedPermissions": True or False, # Whether any users are granted file access directly on this file. This field is only populated for items in shared drives.
4043    "permissions": [ # The list of permissions for users with access to this file. Not populated for items in shared drives.
4044      { # A permission for a file.
4045        "withLink": True or False, # Whether the link is required for this permission.
4046        "domain": "A String", # The domain name of the entity this permission refers to. This is an output-only field which is present when the permission type is user, group or domain.
4047        "permissionDetails": [ # 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.
4048          {
4049            "role": "A String", # The primary role for this user. While new values may be added in the future, the following are currently possible:
4050                # - organizer
4051                # - fileOrganizer
4052                # - writer
4053                # - reader
4054            "inheritedFrom": "A String", # The ID of the item from which this permission is inherited. This is an output-only field and is only populated for members of the shared drive.
4055            "permissionType": "A String", # The permission type for this user. While new values may be added in future, the following are currently possible:
4056                # - file
4057                # - member
4058            "additionalRoles": [ # Additional roles for this user. Only commenter is currently possible, though more may be supported in the future.
4059              "A String",
4060            ],
4061            "inherited": True or False, # Whether this permission is inherited. This field is always populated. This is an output-only field.
4062          },
4063        ],
4064        "name": "A String", # The name for this permission.
4065        "teamDrivePermissionDetails": [ # Deprecated - use permissionDetails instead.
4066          {
4067            "inheritedFrom": "A String", # Deprecated - use permissionDetails/inheritedFrom instead.
4068            "role": "A String", # Deprecated - use permissionDetails/role instead.
4069            "additionalRoles": [ # Deprecated - use permissionDetails/additionalRoles instead.
4070              "A String",
4071            ],
4072            "teamDrivePermissionType": "A String", # Deprecated - use permissionDetails/permissionType instead.
4073            "inherited": True or False, # Deprecated - use permissionDetails/inherited instead.
4074          },
4075        ],
4076        "deleted": True or False, # Whether the account associated with this permission has been deleted. This field only pertains to user and group permissions.
4077        "kind": "drive#permission", # This is always drive#permission.
4078        "value": "A String", # The email address or domain name for the entity. This is used during inserts and is not populated in responses. When making a drive.permissions.insert request, exactly one of the id or value fields must be specified unless the permission type is anyone, in which case both id and value are ignored.
4079        "id": "A String", # The ID of the user this permission refers to, and identical to the permissionId in the About and Files resources. When making a drive.permissions.insert request, exactly one of the id or value fields must be specified unless the permission type is anyone, in which case both id and value are ignored.
4080        "authKey": "A String", # Deprecated.
4081        "etag": "A String", # The ETag of the permission.
4082        "emailAddress": "A String", # 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.
4083        "expirationDate": "A String", # The time at which this permission will expire (RFC 3339 date-time). Expiration dates have the following restrictions:
4084            # - They can only be set on user and group permissions
4085            # - The date must be in the future
4086            # - The date cannot be more than a year in the future
4087            # - The date can only be set on drive.permissions.update or drive.permissions.patch requests
4088        "role": "A String", # The primary role for this user. While new values may be supported in the future, the following are currently allowed:
4089            # - owner
4090            # - organizer
4091            # - fileOrganizer
4092            # - writer
4093            # - reader
4094        "type": "A String", # The account type. Allowed values are:
4095            # - user
4096            # - group
4097            # - domain
4098            # - anyone
4099        "additionalRoles": [ # Additional roles for this user. Only commenter is currently allowed, though more may be supported in the future.
4100          "A String",
4101        ],
4102        "selfLink": "A String", # A link back to this permission.
4103        "photoLink": "A String", # A link to the profile photo, if available.
4104      },
4105    ],
4106    "headRevisionId": "A String", # The ID of the file's head revision. This field is only populated for files with content stored in Google Drive; it is not populated for Google Docs or shortcut files.
4107    "selfLink": "A String", # A link back to this file.
4108    "modifiedDate": "A String", # Last time this file was modified by anyone (formatted RFC 3339 timestamp). This is only mutable on update when the setModifiedDate parameter is set.
4109  }</pre>
4110</div>
4111
4112<div class="method">
4113    <code class="details" id="update">update(fileId, body=None, supportsTeamDrives=None, newRevision=None, modifiedDateBehavior=None, media_body=None, ocrLanguage=None, ocr=None, pinned=None, addParents=None, removeParents=None, updateViewedDate=None, timedTextTrackName=None, convert=None, useContentAsIndexableText=None, supportsAllDrives=None, media_mime_type=None, setModifiedDate=None, timedTextLanguage=None)</code>
4114  <pre>Updates file metadata and/or content.
4115
4116Args:
4117  fileId: string, The ID of the file to update. (required)
4118  body: object, The request body.
4119    The object takes the form of:
4120
4121{ # The metadata for a file.
4122  "hasThumbnail": True or False, # Whether this file has a thumbnail. This does not indicate whether the requesting app has access to the thumbnail. To check access, look for the presence of the thumbnailLink field.
4123  "lastViewedByMeDate": "A String", # Last time this file was viewed by the user (formatted RFC 3339 timestamp).
4124  "trashedDate": "A String", # The time that the item was trashed (formatted RFC 3339 timestamp). Only populated for items in shared drives.
4125  "version": "A String", # A monotonically increasing version number for the file. This reflects every change made to the file on the server, even those not visible to the requesting user.
4126  "appDataContents": True or False, # Whether this file is in the Application Data folder.
4127  "thumbnailLink": "A String", # A short-lived link to the file's thumbnail. Typically lasts on the order of hours. Only populated when the requesting app can access the file's content.
4128  "labels": { # A group of labels for the file.
4129    "restricted": True or False, # Deprecated - use copyRequiresWriterPermission instead.
4130    "modified": True or False, # Whether the file has been modified by this user.
4131    "trashed": True or False, # Whether this file has been trashed. This label applies to all users accessing the file; however, only owners are allowed to see and untrash files.
4132    "hidden": True or False, # Deprecated.
4133    "starred": True or False, # Whether this file is starred by the user.
4134    "viewed": True or False, # Whether this file has been viewed by this user.
4135  },
4136  "indexableText": { # Indexable text attributes for the file (can only be written)
4137    "text": "A String", # The text to be indexed for this file.
4138  },
4139  "thumbnailVersion": "A String", # The thumbnail version for use in thumbnail cache invalidation.
4140  "explicitlyTrashed": True or False, # Whether this file has been explicitly trashed, as opposed to recursively trashed.
4141  "isAppAuthorized": True or False, # Whether the file was created or opened by the requesting app.
4142  "lastModifyingUserName": "A String", # Name of the last user to modify this file.
4143  "writersCanShare": True or False, # Whether writers can share the document with other users. Not populated for items in shared drives.
4144  "owners": [ # The owner(s) of this file. Not populated for items in shared drives.
4145    { # Information about a Drive user.
4146      "picture": { # The user's profile picture.
4147        "url": "A String", # A URL that points to a profile picture of this user.
4148      },
4149      "kind": "drive#user", # This is always drive#user.
4150      "displayName": "A String", # A plain text displayable name for this user.
4151      "permissionId": "A String", # The user's ID as visible in the permissions collection.
4152      "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
4153      "emailAddress": "A String", # The email address of the user.
4154    },
4155  ],
4156  "ownedByMe": True or False, # Whether the file is owned by the current user. Not populated for items in shared drives.
4157  "id": "A String", # The ID of the file.
4158  "sharingUser": { # Information about a Drive user. # User that shared the item with the current user, if available.
4159    "picture": { # The user's profile picture.
4160      "url": "A String", # A URL that points to a profile picture of this user.
4161    },
4162    "kind": "drive#user", # This is always drive#user.
4163    "displayName": "A String", # A plain text displayable name for this user.
4164    "permissionId": "A String", # The user's ID as visible in the permissions collection.
4165    "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
4166    "emailAddress": "A String", # The email address of the user.
4167  },
4168  "trashingUser": { # Information about a Drive user. # If the file has been explicitly trashed, the user who trashed it. Only populated for items in shared drives.
4169    "picture": { # The user's profile picture.
4170      "url": "A String", # A URL that points to a profile picture of this user.
4171    },
4172    "kind": "drive#user", # This is always drive#user.
4173    "displayName": "A String", # A plain text displayable name for this user.
4174    "permissionId": "A String", # The user's ID as visible in the permissions collection.
4175    "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
4176    "emailAddress": "A String", # The email address of the user.
4177  },
4178  "downloadUrl": "A String", # 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 Google Docs or shortcut files.
4179  "mimeType": "A String", # 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's MIME type.
4180  "lastModifyingUser": { # Information about a Drive user. # The last user to modify this file.
4181    "picture": { # The user's profile picture.
4182      "url": "A String", # A URL that points to a profile picture of this user.
4183    },
4184    "kind": "drive#user", # This is always drive#user.
4185    "displayName": "A String", # A plain text displayable name for this user.
4186    "permissionId": "A String", # The user's ID as visible in the permissions collection.
4187    "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
4188    "emailAddress": "A String", # The email address of the user.
4189  },
4190  "copyable": True or False, # Deprecated: use capabilities/canCopy.
4191  "folderColorRgb": "A String", # Folder color as an RGB hex string if the file is a folder. The list of supported colors is available in the folderColorPalette field of the About resource. If an unsupported color is specified, it will be changed to the closest color in the palette. Not populated for items in shared drives.
4192  "markedViewedByMeDate": "A String", # Deprecated.
4193  "ownerNames": [ # Name(s) of the owner(s) of this file. Not populated for items in shared drives.
4194    "A String",
4195  ],
4196  "capabilities": { # Capabilities the current user has on this file. Each capability corresponds to a fine-grained action that a user may take.
4197    "canMoveItemOutOfDrive": 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.
4198    "canUntrash": True or False, # Whether the current user can restore this file from trash.
4199    "canMoveItemWithinTeamDrive": True or False, # Deprecated - use canMoveItemWithinDrive instead.
4200    "canDeleteChildren": 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.
4201    "canMoveChildrenWithinTeamDrive": True or False, # Deprecated - use canMoveChildrenWithinDrive instead.
4202    "canListChildren": True or False, # Whether the current user can list the children of this folder. This is always false when the item is not a folder.
4203    "canRename": True or False, # Whether the current user can rename this file.
4204    "canReadDrive": True or False, # Whether the current user can read the shared drive to which this file belongs. Only populated for items in shared drives.
4205    "canAddChildren": True or False, # Whether the current user can add children to this folder. This is always false when the item is not a folder.
4206    "canChangeRestrictedDownload": True or False, # Deprecated
4207    "canShare": True or False, # Whether the current user can modify the sharing settings for this file.
4208    "canTrashChildren": 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.
4209    "canMoveChildrenWithinDrive": True or False, # Whether the current user can move children of this folder within the shared drive. This is false when the item is not a folder. Only populated for items in shared drives.
4210    "canReadRevisions": 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.
4211    "canMoveItemWithinDrive": True or False, # Whether the current user can move this item within this shared drive. Note that a request to change the parent of the item may still fail depending on the new parent that is being added. Only populated for items in shared drives.
4212    "canCopy": 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.
4213    "canMoveItemIntoTeamDrive": True or False, # Deprecated - use canMoveItemOutOfDrive instead.
4214    "canMoveItemOutOfTeamDrive": True or False, # Deprecated - use canMoveItemOutOfDrive instead.
4215    "canComment": True or False, # Whether the current user can comment on this file.
4216    "canMoveChildrenOutOfDrive": 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.
4217    "canTrash": True or False, # Whether the current user can move this file to trash.
4218    "canDelete": True or False, # Whether the current user can delete this file.
4219    "canMoveTeamDriveItem": True or False, # Deprecated - use canMoveItemWithinDrive or canMoveItemOutOfDrive instead.
4220    "canDownload": True or False, # Whether the current user can download this file.
4221    "canChangeCopyRequiresWriterPermission": True or False, # Whether the current user can change the copyRequiresWriterPermission restriction of this file.
4222    "canMoveChildrenOutOfTeamDrive": True or False, # Deprecated - use canMoveChildrenOutOfDrive instead.
4223    "canRemoveChildren": True or False, # Whether the current user can remove children from this folder. This is always false when the item is not a folder. For a folder in a shared drive, use canDeleteChildren or canTrashChildren instead.
4224    "canReadTeamDrive": True or False, # Deprecated - use canReadDrive instead.
4225    "canEdit": True or False, # Whether the current user can edit this file.
4226  },
4227  "sharedWithMeDate": "A String", # Time at which this file was shared with the user (formatted RFC 3339 timestamp).
4228  "webViewLink": "A String", # A link only available on public folders for viewing their static web assets (HTML, CSS, JS, etc) via Google Drive's Website Hosting.
4229  "etag": "A String", # ETag of the file.
4230  "parents": [ # Collection of parent folders which contain this file.
4231      # If not specified as part of an insert request, the file will be placed directly in the user's My Drive folder. If not specified as part of a copy request, the file will inherit any discoverable parents of the source file. Update requests can also use the addParents and removeParents parameters to modify the parents list.
4232    { # A reference to a file's parent.
4233      "selfLink": "A String", # A link back to this reference.
4234      "kind": "drive#parentReference", # This is always drive#parentReference.
4235      "id": "A String", # The ID of the parent.
4236      "isRoot": True or False, # Whether or not the parent is the root folder.
4237      "parentLink": "A String", # A link to the parent.
4238    },
4239  ],
4240  "exportLinks": { # Links for exporting Google Docs to specific formats.
4241    "a_key": "A String", # A mapping from export format to URL
4242  },
4243  "shareable": True or False, # Deprecated: use capabilities/canShare.
4244  "copyRequiresWriterPermission": True or False, # Whether the options to copy, print, or download this file, should be disabled for readers and commenters.
4245  "fullFileExtension": "A String", # The full file extension; extracted from the title. May contain multiple concatenated extensions, such as "tar.gz". 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 Google Docs or shortcut files.
4246  "openWithLinks": { # A map of the id of each of the user's apps to a link to open this file with that app. Only populated when the drive.apps.readonly scope is used.
4247    "a_key": "A String",
4248  },
4249  "canReadRevisions": True or False, # Deprecated: use capabilities/canReadRevisions.
4250  "imageMediaMetadata": { # Metadata about image media. This will only be present for image types, and its contents will depend on what can be parsed from the image content.
4251    "exposureBias": 3.14, # The exposure bias of the photo (APEX value).
4252    "exposureTime": 3.14, # The length of the exposure, in seconds.
4253    "cameraMake": "A String", # The make of the camera used to create the photo.
4254    "maxApertureValue": 3.14, # The smallest f-number of the lens at the focal length used to create the photo (APEX value).
4255    "isoSpeed": 42, # The ISO speed used to create the photo.
4256    "focalLength": 3.14, # The focal length used to create the photo, in millimeters.
4257    "exposureMode": "A String", # The exposure mode used to create the photo.
4258    "colorSpace": "A String", # The color space of the photo.
4259    "location": { # Geographic location information stored in the image.
4260      "latitude": 3.14, # The latitude stored in the image.
4261      "altitude": 3.14, # The altitude stored in the image.
4262      "longitude": 3.14, # The longitude stored in the image.
4263    },
4264    "subjectDistance": 42, # The distance to the subject of the photo, in meters.
4265    "height": 42, # The height of the image in pixels.
4266    "lens": "A String", # The lens used to create the photo.
4267    "date": "A String", # The date and time the photo was taken (EXIF format timestamp).
4268    "width": 42, # The width of the image in pixels.
4269    "meteringMode": "A String", # The metering mode used to create the photo.
4270    "flashUsed": True or False, # Whether a flash was used to create the photo.
4271    "aperture": 3.14, # The aperture used to create the photo (f-number).
4272    "rotation": 42, # The rotation in clockwise degrees from the image's original orientation.
4273    "sensor": "A String", # The type of sensor used to create the photo.
4274    "whiteBalance": "A String", # The white balance mode used to create the photo.
4275    "cameraModel": "A String", # The model of the camera used to create the photo.
4276  },
4277  "description": "A String", # A short description of the file.
4278  "webContentLink": "A String", # 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.
4279  "videoMediaMetadata": { # Metadata about video media. This will only be present for video types.
4280    "width": 42, # The width of the video in pixels.
4281    "durationMillis": "A String", # The duration of the video in milliseconds.
4282    "height": 42, # The height of the video in pixels.
4283  },
4284  "editable": True or False, # Deprecated: use capabilities/canEdit.
4285  "kind": "drive#file", # The type of file. This is always drive#file.
4286  "canComment": True or False, # Deprecated: use capabilities/canComment.
4287  "quotaBytesUsed": "A String", # The number of quota bytes used by this file.
4288  "fileSize": "A String", # The size of the file in bytes. This field is only populated for files with content stored in Google Drive; it is not populated for Google Docs or shortcut files.
4289  "createdDate": "A String", # Create time for this file (formatted RFC 3339 timestamp).
4290  "teamDriveId": "A String", # Deprecated - use driveId instead.
4291  "properties": [ # The list of properties.
4292    { # A key-value pair attached to a file that is either public or private to an application.
4293        # The following limits apply to file properties:
4294        # - Maximum of 100 properties total per file
4295        # - Maximum of 30 private properties per app
4296        # - Maximum of 30 public properties
4297        # - Maximum of 124 bytes size limit on (key + value) string in UTF-8 encoding for a single property.
4298      "kind": "drive#property", # This is always drive#property.
4299      "value": "A String", # The value of this property.
4300      "etag": "A String", # ETag of the property.
4301      "visibility": "A String", # The visibility of this property. Allowed values are PRIVATE and PUBLIC. (Default: PRIVATE)
4302      "key": "A String", # The key of this property.
4303      "selfLink": "A String", # The link back to this property.
4304    },
4305  ],
4306  "md5Checksum": "A String", # 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 Google Docs or shortcut files.
4307  "iconLink": "A String", # A link to the file's icon.
4308  "defaultOpenWithLink": "A String", # A link to open this file with the user's default app for this file. Only populated when the drive.apps.readonly scope is used.
4309  "embedLink": "A String", # A link for embedding the file.
4310  "alternateLink": "A String", # A link for opening the file in a relevant Google editor or viewer.
4311  "shared": True or False, # Whether the file has been shared. Not populated for items in shared drives.
4312  "title": "A String", # 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.
4313  "modifiedByMeDate": "A String", # 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.
4314  "thumbnail": { # A thumbnail for the file. This will only be used if a standard thumbnail cannot be generated.
4315    "mimeType": "A String", # The MIME type of the thumbnail.
4316    "image": "A String", # The URL-safe Base64 encoded bytes of the thumbnail image. It should conform to RFC 4648 section 5.
4317  },
4318  "driveId": "A String", # ID of the shared drive the file resides in. Only populated for items in shared drives.
4319  "userPermission": { # A permission for a file. # The permissions for the authenticated user on this file.
4320    "withLink": True or False, # Whether the link is required for this permission.
4321    "domain": "A String", # The domain name of the entity this permission refers to. This is an output-only field which is present when the permission type is user, group or domain.
4322    "permissionDetails": [ # 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.
4323      {
4324        "role": "A String", # The primary role for this user. While new values may be added in the future, the following are currently possible:
4325            # - organizer
4326            # - fileOrganizer
4327            # - writer
4328            # - reader
4329        "inheritedFrom": "A String", # The ID of the item from which this permission is inherited. This is an output-only field and is only populated for members of the shared drive.
4330        "permissionType": "A String", # The permission type for this user. While new values may be added in future, the following are currently possible:
4331            # - file
4332            # - member
4333        "additionalRoles": [ # Additional roles for this user. Only commenter is currently possible, though more may be supported in the future.
4334          "A String",
4335        ],
4336        "inherited": True or False, # Whether this permission is inherited. This field is always populated. This is an output-only field.
4337      },
4338    ],
4339    "name": "A String", # The name for this permission.
4340    "teamDrivePermissionDetails": [ # Deprecated - use permissionDetails instead.
4341      {
4342        "inheritedFrom": "A String", # Deprecated - use permissionDetails/inheritedFrom instead.
4343        "role": "A String", # Deprecated - use permissionDetails/role instead.
4344        "additionalRoles": [ # Deprecated - use permissionDetails/additionalRoles instead.
4345          "A String",
4346        ],
4347        "teamDrivePermissionType": "A String", # Deprecated - use permissionDetails/permissionType instead.
4348        "inherited": True or False, # Deprecated - use permissionDetails/inherited instead.
4349      },
4350    ],
4351    "deleted": True or False, # Whether the account associated with this permission has been deleted. This field only pertains to user and group permissions.
4352    "kind": "drive#permission", # This is always drive#permission.
4353    "value": "A String", # The email address or domain name for the entity. This is used during inserts and is not populated in responses. When making a drive.permissions.insert request, exactly one of the id or value fields must be specified unless the permission type is anyone, in which case both id and value are ignored.
4354    "id": "A String", # The ID of the user this permission refers to, and identical to the permissionId in the About and Files resources. When making a drive.permissions.insert request, exactly one of the id or value fields must be specified unless the permission type is anyone, in which case both id and value are ignored.
4355    "authKey": "A String", # Deprecated.
4356    "etag": "A String", # The ETag of the permission.
4357    "emailAddress": "A String", # 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.
4358    "expirationDate": "A String", # The time at which this permission will expire (RFC 3339 date-time). Expiration dates have the following restrictions:
4359        # - They can only be set on user and group permissions
4360        # - The date must be in the future
4361        # - The date cannot be more than a year in the future
4362        # - The date can only be set on drive.permissions.update or drive.permissions.patch requests
4363    "role": "A String", # The primary role for this user. While new values may be supported in the future, the following are currently allowed:
4364        # - owner
4365        # - organizer
4366        # - fileOrganizer
4367        # - writer
4368        # - reader
4369    "type": "A String", # The account type. Allowed values are:
4370        # - user
4371        # - group
4372        # - domain
4373        # - anyone
4374    "additionalRoles": [ # Additional roles for this user. Only commenter is currently allowed, though more may be supported in the future.
4375      "A String",
4376    ],
4377    "selfLink": "A String", # A link back to this permission.
4378    "photoLink": "A String", # A link to the profile photo, if available.
4379  },
4380  "spaces": [ # The list of spaces which contain the file. Supported values are 'drive', 'appDataFolder' and 'photos'.
4381    "A String",
4382  ],
4383  "permissionIds": [ # List of permission IDs for users with access to this file.
4384    "A String",
4385  ],
4386  "originalFilename": "A String", # The original filename of the uploaded content if available, or else the original value of the title field. This is only available for files with binary content in Google Drive.
4387  "fileExtension": "A String", # The final component of fullFileExtension with trailing text that does not appear to be part of the extension removed. This field is only populated for files with content stored in Google Drive; it is not populated for Google Docs or shortcut files.
4388  "hasAugmentedPermissions": True or False, # Whether any users are granted file access directly on this file. This field is only populated for items in shared drives.
4389  "permissions": [ # The list of permissions for users with access to this file. Not populated for items in shared drives.
4390    { # A permission for a file.
4391      "withLink": True or False, # Whether the link is required for this permission.
4392      "domain": "A String", # The domain name of the entity this permission refers to. This is an output-only field which is present when the permission type is user, group or domain.
4393      "permissionDetails": [ # 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.
4394        {
4395          "role": "A String", # The primary role for this user. While new values may be added in the future, the following are currently possible:
4396              # - organizer
4397              # - fileOrganizer
4398              # - writer
4399              # - reader
4400          "inheritedFrom": "A String", # The ID of the item from which this permission is inherited. This is an output-only field and is only populated for members of the shared drive.
4401          "permissionType": "A String", # The permission type for this user. While new values may be added in future, the following are currently possible:
4402              # - file
4403              # - member
4404          "additionalRoles": [ # Additional roles for this user. Only commenter is currently possible, though more may be supported in the future.
4405            "A String",
4406          ],
4407          "inherited": True or False, # Whether this permission is inherited. This field is always populated. This is an output-only field.
4408        },
4409      ],
4410      "name": "A String", # The name for this permission.
4411      "teamDrivePermissionDetails": [ # Deprecated - use permissionDetails instead.
4412        {
4413          "inheritedFrom": "A String", # Deprecated - use permissionDetails/inheritedFrom instead.
4414          "role": "A String", # Deprecated - use permissionDetails/role instead.
4415          "additionalRoles": [ # Deprecated - use permissionDetails/additionalRoles instead.
4416            "A String",
4417          ],
4418          "teamDrivePermissionType": "A String", # Deprecated - use permissionDetails/permissionType instead.
4419          "inherited": True or False, # Deprecated - use permissionDetails/inherited instead.
4420        },
4421      ],
4422      "deleted": True or False, # Whether the account associated with this permission has been deleted. This field only pertains to user and group permissions.
4423      "kind": "drive#permission", # This is always drive#permission.
4424      "value": "A String", # The email address or domain name for the entity. This is used during inserts and is not populated in responses. When making a drive.permissions.insert request, exactly one of the id or value fields must be specified unless the permission type is anyone, in which case both id and value are ignored.
4425      "id": "A String", # The ID of the user this permission refers to, and identical to the permissionId in the About and Files resources. When making a drive.permissions.insert request, exactly one of the id or value fields must be specified unless the permission type is anyone, in which case both id and value are ignored.
4426      "authKey": "A String", # Deprecated.
4427      "etag": "A String", # The ETag of the permission.
4428      "emailAddress": "A String", # 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.
4429      "expirationDate": "A String", # The time at which this permission will expire (RFC 3339 date-time). Expiration dates have the following restrictions:
4430          # - They can only be set on user and group permissions
4431          # - The date must be in the future
4432          # - The date cannot be more than a year in the future
4433          # - The date can only be set on drive.permissions.update or drive.permissions.patch requests
4434      "role": "A String", # The primary role for this user. While new values may be supported in the future, the following are currently allowed:
4435          # - owner
4436          # - organizer
4437          # - fileOrganizer
4438          # - writer
4439          # - reader
4440      "type": "A String", # The account type. Allowed values are:
4441          # - user
4442          # - group
4443          # - domain
4444          # - anyone
4445      "additionalRoles": [ # Additional roles for this user. Only commenter is currently allowed, though more may be supported in the future.
4446        "A String",
4447      ],
4448      "selfLink": "A String", # A link back to this permission.
4449      "photoLink": "A String", # A link to the profile photo, if available.
4450    },
4451  ],
4452  "headRevisionId": "A String", # The ID of the file's head revision. This field is only populated for files with content stored in Google Drive; it is not populated for Google Docs or shortcut files.
4453  "selfLink": "A String", # A link back to this file.
4454  "modifiedDate": "A String", # Last time this file was modified by anyone (formatted RFC 3339 timestamp). This is only mutable on update when the setModifiedDate parameter is set.
4455}
4456
4457  supportsTeamDrives: boolean, Deprecated use supportsAllDrives instead.
4458  newRevision: boolean, Whether a blob upload should create a new revision. If false, the blob data in the current head revision is replaced. If true or not set, a new blob is created as head revision, and previous unpinned revisions are preserved for a short period of time. Pinned revisions are stored indefinitely, using additional storage quota, up to a maximum of 200 revisions. For details on how revisions are retained, see the Drive Help Center.
4459  modifiedDateBehavior: string, Determines the behavior in which modifiedDate is updated. This overrides setModifiedDate.
4460    Allowed values
4461      fromBody - Set modifiedDate to the value provided in the body of the request. No change if no value was provided.
4462      fromBodyIfNeeded - Set modifiedDate to the value provided in the body of the request depending on other contents of the update.
4463      fromBodyOrNow - Set modifiedDate to the value provided in the body of the request, or to the current time if no value was provided.
4464      noChange - Maintain the previous value of modifiedDate.
4465      now - Set modifiedDate to the current time.
4466      nowIfNeeded - Set modifiedDate to the current time depending on contents of the update.
4467  media_body: string, The filename of the media request body, or an instance of a MediaUpload object.
4468  ocrLanguage: string, If ocr is true, hints at the language to use. Valid values are BCP 47 codes.
4469  ocr: boolean, Whether to attempt OCR on .jpg, .png, .gif, or .pdf uploads.
4470  pinned: boolean, Whether to pin the new revision. A file can have a maximum of 200 pinned revisions.
4471  addParents: string, Comma-separated list of parent IDs to add.
4472  removeParents: string, Comma-separated list of parent IDs to remove.
4473  updateViewedDate: boolean, Whether to update the view date after successfully updating the file.
4474  timedTextTrackName: string, The timed text track name.
4475  convert: boolean, This parameter is deprecated and has no function.
4476  useContentAsIndexableText: boolean, Whether to use the content as indexable text.
4477  supportsAllDrives: boolean, Deprecated - Whether the requesting application supports both My Drives and shared drives. This parameter will only be effective until June 1, 2020. Afterwards all applications are assumed to support shared drives.
4478  media_mime_type: string, The MIME type of the media request body, or an instance of a MediaUpload object.
4479  setModifiedDate: boolean, Whether to set the modified date using the value supplied in the request body. Setting this field to true is equivalent to modifiedDateBehavior=fromBodyOrNow, and false is equivalent to modifiedDateBehavior=now. To prevent any changes to the modified date set modifiedDateBehavior=noChange.
4480  timedTextLanguage: string, The language of the timed text.
4481
4482Returns:
4483  An object of the form:
4484
4485    { # The metadata for a file.
4486    "hasThumbnail": True or False, # Whether this file has a thumbnail. This does not indicate whether the requesting app has access to the thumbnail. To check access, look for the presence of the thumbnailLink field.
4487    "lastViewedByMeDate": "A String", # Last time this file was viewed by the user (formatted RFC 3339 timestamp).
4488    "trashedDate": "A String", # The time that the item was trashed (formatted RFC 3339 timestamp). Only populated for items in shared drives.
4489    "version": "A String", # A monotonically increasing version number for the file. This reflects every change made to the file on the server, even those not visible to the requesting user.
4490    "appDataContents": True or False, # Whether this file is in the Application Data folder.
4491    "thumbnailLink": "A String", # A short-lived link to the file's thumbnail. Typically lasts on the order of hours. Only populated when the requesting app can access the file's content.
4492    "labels": { # A group of labels for the file.
4493      "restricted": True or False, # Deprecated - use copyRequiresWriterPermission instead.
4494      "modified": True or False, # Whether the file has been modified by this user.
4495      "trashed": True or False, # Whether this file has been trashed. This label applies to all users accessing the file; however, only owners are allowed to see and untrash files.
4496      "hidden": True or False, # Deprecated.
4497      "starred": True or False, # Whether this file is starred by the user.
4498      "viewed": True or False, # Whether this file has been viewed by this user.
4499    },
4500    "indexableText": { # Indexable text attributes for the file (can only be written)
4501      "text": "A String", # The text to be indexed for this file.
4502    },
4503    "thumbnailVersion": "A String", # The thumbnail version for use in thumbnail cache invalidation.
4504    "explicitlyTrashed": True or False, # Whether this file has been explicitly trashed, as opposed to recursively trashed.
4505    "isAppAuthorized": True or False, # Whether the file was created or opened by the requesting app.
4506    "lastModifyingUserName": "A String", # Name of the last user to modify this file.
4507    "writersCanShare": True or False, # Whether writers can share the document with other users. Not populated for items in shared drives.
4508    "owners": [ # The owner(s) of this file. Not populated for items in shared drives.
4509      { # Information about a Drive user.
4510        "picture": { # The user's profile picture.
4511          "url": "A String", # A URL that points to a profile picture of this user.
4512        },
4513        "kind": "drive#user", # This is always drive#user.
4514        "displayName": "A String", # A plain text displayable name for this user.
4515        "permissionId": "A String", # The user's ID as visible in the permissions collection.
4516        "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
4517        "emailAddress": "A String", # The email address of the user.
4518      },
4519    ],
4520    "ownedByMe": True or False, # Whether the file is owned by the current user. Not populated for items in shared drives.
4521    "id": "A String", # The ID of the file.
4522    "sharingUser": { # Information about a Drive user. # User that shared the item with the current user, if available.
4523      "picture": { # The user's profile picture.
4524        "url": "A String", # A URL that points to a profile picture of this user.
4525      },
4526      "kind": "drive#user", # This is always drive#user.
4527      "displayName": "A String", # A plain text displayable name for this user.
4528      "permissionId": "A String", # The user's ID as visible in the permissions collection.
4529      "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
4530      "emailAddress": "A String", # The email address of the user.
4531    },
4532    "trashingUser": { # Information about a Drive user. # If the file has been explicitly trashed, the user who trashed it. Only populated for items in shared drives.
4533      "picture": { # The user's profile picture.
4534        "url": "A String", # A URL that points to a profile picture of this user.
4535      },
4536      "kind": "drive#user", # This is always drive#user.
4537      "displayName": "A String", # A plain text displayable name for this user.
4538      "permissionId": "A String", # The user's ID as visible in the permissions collection.
4539      "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
4540      "emailAddress": "A String", # The email address of the user.
4541    },
4542    "downloadUrl": "A String", # 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 Google Docs or shortcut files.
4543    "mimeType": "A String", # 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's MIME type.
4544    "lastModifyingUser": { # Information about a Drive user. # The last user to modify this file.
4545      "picture": { # The user's profile picture.
4546        "url": "A String", # A URL that points to a profile picture of this user.
4547      },
4548      "kind": "drive#user", # This is always drive#user.
4549      "displayName": "A String", # A plain text displayable name for this user.
4550      "permissionId": "A String", # The user's ID as visible in the permissions collection.
4551      "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
4552      "emailAddress": "A String", # The email address of the user.
4553    },
4554    "copyable": True or False, # Deprecated: use capabilities/canCopy.
4555    "folderColorRgb": "A String", # Folder color as an RGB hex string if the file is a folder. The list of supported colors is available in the folderColorPalette field of the About resource. If an unsupported color is specified, it will be changed to the closest color in the palette. Not populated for items in shared drives.
4556    "markedViewedByMeDate": "A String", # Deprecated.
4557    "ownerNames": [ # Name(s) of the owner(s) of this file. Not populated for items in shared drives.
4558      "A String",
4559    ],
4560    "capabilities": { # Capabilities the current user has on this file. Each capability corresponds to a fine-grained action that a user may take.
4561      "canMoveItemOutOfDrive": 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.
4562      "canUntrash": True or False, # Whether the current user can restore this file from trash.
4563      "canMoveItemWithinTeamDrive": True or False, # Deprecated - use canMoveItemWithinDrive instead.
4564      "canDeleteChildren": 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.
4565      "canMoveChildrenWithinTeamDrive": True or False, # Deprecated - use canMoveChildrenWithinDrive instead.
4566      "canListChildren": True or False, # Whether the current user can list the children of this folder. This is always false when the item is not a folder.
4567      "canRename": True or False, # Whether the current user can rename this file.
4568      "canReadDrive": True or False, # Whether the current user can read the shared drive to which this file belongs. Only populated for items in shared drives.
4569      "canAddChildren": True or False, # Whether the current user can add children to this folder. This is always false when the item is not a folder.
4570      "canChangeRestrictedDownload": True or False, # Deprecated
4571      "canShare": True or False, # Whether the current user can modify the sharing settings for this file.
4572      "canTrashChildren": 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.
4573      "canMoveChildrenWithinDrive": True or False, # Whether the current user can move children of this folder within the shared drive. This is false when the item is not a folder. Only populated for items in shared drives.
4574      "canReadRevisions": 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.
4575      "canMoveItemWithinDrive": True or False, # Whether the current user can move this item within this shared drive. Note that a request to change the parent of the item may still fail depending on the new parent that is being added. Only populated for items in shared drives.
4576      "canCopy": 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.
4577      "canMoveItemIntoTeamDrive": True or False, # Deprecated - use canMoveItemOutOfDrive instead.
4578      "canMoveItemOutOfTeamDrive": True or False, # Deprecated - use canMoveItemOutOfDrive instead.
4579      "canComment": True or False, # Whether the current user can comment on this file.
4580      "canMoveChildrenOutOfDrive": 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.
4581      "canTrash": True or False, # Whether the current user can move this file to trash.
4582      "canDelete": True or False, # Whether the current user can delete this file.
4583      "canMoveTeamDriveItem": True or False, # Deprecated - use canMoveItemWithinDrive or canMoveItemOutOfDrive instead.
4584      "canDownload": True or False, # Whether the current user can download this file.
4585      "canChangeCopyRequiresWriterPermission": True or False, # Whether the current user can change the copyRequiresWriterPermission restriction of this file.
4586      "canMoveChildrenOutOfTeamDrive": True or False, # Deprecated - use canMoveChildrenOutOfDrive instead.
4587      "canRemoveChildren": True or False, # Whether the current user can remove children from this folder. This is always false when the item is not a folder. For a folder in a shared drive, use canDeleteChildren or canTrashChildren instead.
4588      "canReadTeamDrive": True or False, # Deprecated - use canReadDrive instead.
4589      "canEdit": True or False, # Whether the current user can edit this file.
4590    },
4591    "sharedWithMeDate": "A String", # Time at which this file was shared with the user (formatted RFC 3339 timestamp).
4592    "webViewLink": "A String", # A link only available on public folders for viewing their static web assets (HTML, CSS, JS, etc) via Google Drive's Website Hosting.
4593    "etag": "A String", # ETag of the file.
4594    "parents": [ # Collection of parent folders which contain this file.
4595        # If not specified as part of an insert request, the file will be placed directly in the user's My Drive folder. If not specified as part of a copy request, the file will inherit any discoverable parents of the source file. Update requests can also use the addParents and removeParents parameters to modify the parents list.
4596      { # A reference to a file's parent.
4597        "selfLink": "A String", # A link back to this reference.
4598        "kind": "drive#parentReference", # This is always drive#parentReference.
4599        "id": "A String", # The ID of the parent.
4600        "isRoot": True or False, # Whether or not the parent is the root folder.
4601        "parentLink": "A String", # A link to the parent.
4602      },
4603    ],
4604    "exportLinks": { # Links for exporting Google Docs to specific formats.
4605      "a_key": "A String", # A mapping from export format to URL
4606    },
4607    "shareable": True or False, # Deprecated: use capabilities/canShare.
4608    "copyRequiresWriterPermission": True or False, # Whether the options to copy, print, or download this file, should be disabled for readers and commenters.
4609    "fullFileExtension": "A String", # The full file extension; extracted from the title. May contain multiple concatenated extensions, such as "tar.gz". 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 Google Docs or shortcut files.
4610    "openWithLinks": { # A map of the id of each of the user's apps to a link to open this file with that app. Only populated when the drive.apps.readonly scope is used.
4611      "a_key": "A String",
4612    },
4613    "canReadRevisions": True or False, # Deprecated: use capabilities/canReadRevisions.
4614    "imageMediaMetadata": { # Metadata about image media. This will only be present for image types, and its contents will depend on what can be parsed from the image content.
4615      "exposureBias": 3.14, # The exposure bias of the photo (APEX value).
4616      "exposureTime": 3.14, # The length of the exposure, in seconds.
4617      "cameraMake": "A String", # The make of the camera used to create the photo.
4618      "maxApertureValue": 3.14, # The smallest f-number of the lens at the focal length used to create the photo (APEX value).
4619      "isoSpeed": 42, # The ISO speed used to create the photo.
4620      "focalLength": 3.14, # The focal length used to create the photo, in millimeters.
4621      "exposureMode": "A String", # The exposure mode used to create the photo.
4622      "colorSpace": "A String", # The color space of the photo.
4623      "location": { # Geographic location information stored in the image.
4624        "latitude": 3.14, # The latitude stored in the image.
4625        "altitude": 3.14, # The altitude stored in the image.
4626        "longitude": 3.14, # The longitude stored in the image.
4627      },
4628      "subjectDistance": 42, # The distance to the subject of the photo, in meters.
4629      "height": 42, # The height of the image in pixels.
4630      "lens": "A String", # The lens used to create the photo.
4631      "date": "A String", # The date and time the photo was taken (EXIF format timestamp).
4632      "width": 42, # The width of the image in pixels.
4633      "meteringMode": "A String", # The metering mode used to create the photo.
4634      "flashUsed": True or False, # Whether a flash was used to create the photo.
4635      "aperture": 3.14, # The aperture used to create the photo (f-number).
4636      "rotation": 42, # The rotation in clockwise degrees from the image's original orientation.
4637      "sensor": "A String", # The type of sensor used to create the photo.
4638      "whiteBalance": "A String", # The white balance mode used to create the photo.
4639      "cameraModel": "A String", # The model of the camera used to create the photo.
4640    },
4641    "description": "A String", # A short description of the file.
4642    "webContentLink": "A String", # 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.
4643    "videoMediaMetadata": { # Metadata about video media. This will only be present for video types.
4644      "width": 42, # The width of the video in pixels.
4645      "durationMillis": "A String", # The duration of the video in milliseconds.
4646      "height": 42, # The height of the video in pixels.
4647    },
4648    "editable": True or False, # Deprecated: use capabilities/canEdit.
4649    "kind": "drive#file", # The type of file. This is always drive#file.
4650    "canComment": True or False, # Deprecated: use capabilities/canComment.
4651    "quotaBytesUsed": "A String", # The number of quota bytes used by this file.
4652    "fileSize": "A String", # The size of the file in bytes. This field is only populated for files with content stored in Google Drive; it is not populated for Google Docs or shortcut files.
4653    "createdDate": "A String", # Create time for this file (formatted RFC 3339 timestamp).
4654    "teamDriveId": "A String", # Deprecated - use driveId instead.
4655    "properties": [ # The list of properties.
4656      { # A key-value pair attached to a file that is either public or private to an application.
4657          # The following limits apply to file properties:
4658          # - Maximum of 100 properties total per file
4659          # - Maximum of 30 private properties per app
4660          # - Maximum of 30 public properties
4661          # - Maximum of 124 bytes size limit on (key + value) string in UTF-8 encoding for a single property.
4662        "kind": "drive#property", # This is always drive#property.
4663        "value": "A String", # The value of this property.
4664        "etag": "A String", # ETag of the property.
4665        "visibility": "A String", # The visibility of this property. Allowed values are PRIVATE and PUBLIC. (Default: PRIVATE)
4666        "key": "A String", # The key of this property.
4667        "selfLink": "A String", # The link back to this property.
4668      },
4669    ],
4670    "md5Checksum": "A String", # 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 Google Docs or shortcut files.
4671    "iconLink": "A String", # A link to the file's icon.
4672    "defaultOpenWithLink": "A String", # A link to open this file with the user's default app for this file. Only populated when the drive.apps.readonly scope is used.
4673    "embedLink": "A String", # A link for embedding the file.
4674    "alternateLink": "A String", # A link for opening the file in a relevant Google editor or viewer.
4675    "shared": True or False, # Whether the file has been shared. Not populated for items in shared drives.
4676    "title": "A String", # 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.
4677    "modifiedByMeDate": "A String", # 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.
4678    "thumbnail": { # A thumbnail for the file. This will only be used if a standard thumbnail cannot be generated.
4679      "mimeType": "A String", # The MIME type of the thumbnail.
4680      "image": "A String", # The URL-safe Base64 encoded bytes of the thumbnail image. It should conform to RFC 4648 section 5.
4681    },
4682    "driveId": "A String", # ID of the shared drive the file resides in. Only populated for items in shared drives.
4683    "userPermission": { # A permission for a file. # The permissions for the authenticated user on this file.
4684      "withLink": True or False, # Whether the link is required for this permission.
4685      "domain": "A String", # The domain name of the entity this permission refers to. This is an output-only field which is present when the permission type is user, group or domain.
4686      "permissionDetails": [ # 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.
4687        {
4688          "role": "A String", # The primary role for this user. While new values may be added in the future, the following are currently possible:
4689              # - organizer
4690              # - fileOrganizer
4691              # - writer
4692              # - reader
4693          "inheritedFrom": "A String", # The ID of the item from which this permission is inherited. This is an output-only field and is only populated for members of the shared drive.
4694          "permissionType": "A String", # The permission type for this user. While new values may be added in future, the following are currently possible:
4695              # - file
4696              # - member
4697          "additionalRoles": [ # Additional roles for this user. Only commenter is currently possible, though more may be supported in the future.
4698            "A String",
4699          ],
4700          "inherited": True or False, # Whether this permission is inherited. This field is always populated. This is an output-only field.
4701        },
4702      ],
4703      "name": "A String", # The name for this permission.
4704      "teamDrivePermissionDetails": [ # Deprecated - use permissionDetails instead.
4705        {
4706          "inheritedFrom": "A String", # Deprecated - use permissionDetails/inheritedFrom instead.
4707          "role": "A String", # Deprecated - use permissionDetails/role instead.
4708          "additionalRoles": [ # Deprecated - use permissionDetails/additionalRoles instead.
4709            "A String",
4710          ],
4711          "teamDrivePermissionType": "A String", # Deprecated - use permissionDetails/permissionType instead.
4712          "inherited": True or False, # Deprecated - use permissionDetails/inherited instead.
4713        },
4714      ],
4715      "deleted": True or False, # Whether the account associated with this permission has been deleted. This field only pertains to user and group permissions.
4716      "kind": "drive#permission", # This is always drive#permission.
4717      "value": "A String", # The email address or domain name for the entity. This is used during inserts and is not populated in responses. When making a drive.permissions.insert request, exactly one of the id or value fields must be specified unless the permission type is anyone, in which case both id and value are ignored.
4718      "id": "A String", # The ID of the user this permission refers to, and identical to the permissionId in the About and Files resources. When making a drive.permissions.insert request, exactly one of the id or value fields must be specified unless the permission type is anyone, in which case both id and value are ignored.
4719      "authKey": "A String", # Deprecated.
4720      "etag": "A String", # The ETag of the permission.
4721      "emailAddress": "A String", # 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.
4722      "expirationDate": "A String", # The time at which this permission will expire (RFC 3339 date-time). Expiration dates have the following restrictions:
4723          # - They can only be set on user and group permissions
4724          # - The date must be in the future
4725          # - The date cannot be more than a year in the future
4726          # - The date can only be set on drive.permissions.update or drive.permissions.patch requests
4727      "role": "A String", # The primary role for this user. While new values may be supported in the future, the following are currently allowed:
4728          # - owner
4729          # - organizer
4730          # - fileOrganizer
4731          # - writer
4732          # - reader
4733      "type": "A String", # The account type. Allowed values are:
4734          # - user
4735          # - group
4736          # - domain
4737          # - anyone
4738      "additionalRoles": [ # Additional roles for this user. Only commenter is currently allowed, though more may be supported in the future.
4739        "A String",
4740      ],
4741      "selfLink": "A String", # A link back to this permission.
4742      "photoLink": "A String", # A link to the profile photo, if available.
4743    },
4744    "spaces": [ # The list of spaces which contain the file. Supported values are 'drive', 'appDataFolder' and 'photos'.
4745      "A String",
4746    ],
4747    "permissionIds": [ # List of permission IDs for users with access to this file.
4748      "A String",
4749    ],
4750    "originalFilename": "A String", # The original filename of the uploaded content if available, or else the original value of the title field. This is only available for files with binary content in Google Drive.
4751    "fileExtension": "A String", # The final component of fullFileExtension with trailing text that does not appear to be part of the extension removed. This field is only populated for files with content stored in Google Drive; it is not populated for Google Docs or shortcut files.
4752    "hasAugmentedPermissions": True or False, # Whether any users are granted file access directly on this file. This field is only populated for items in shared drives.
4753    "permissions": [ # The list of permissions for users with access to this file. Not populated for items in shared drives.
4754      { # A permission for a file.
4755        "withLink": True or False, # Whether the link is required for this permission.
4756        "domain": "A String", # The domain name of the entity this permission refers to. This is an output-only field which is present when the permission type is user, group or domain.
4757        "permissionDetails": [ # 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.
4758          {
4759            "role": "A String", # The primary role for this user. While new values may be added in the future, the following are currently possible:
4760                # - organizer
4761                # - fileOrganizer
4762                # - writer
4763                # - reader
4764            "inheritedFrom": "A String", # The ID of the item from which this permission is inherited. This is an output-only field and is only populated for members of the shared drive.
4765            "permissionType": "A String", # The permission type for this user. While new values may be added in future, the following are currently possible:
4766                # - file
4767                # - member
4768            "additionalRoles": [ # Additional roles for this user. Only commenter is currently possible, though more may be supported in the future.
4769              "A String",
4770            ],
4771            "inherited": True or False, # Whether this permission is inherited. This field is always populated. This is an output-only field.
4772          },
4773        ],
4774        "name": "A String", # The name for this permission.
4775        "teamDrivePermissionDetails": [ # Deprecated - use permissionDetails instead.
4776          {
4777            "inheritedFrom": "A String", # Deprecated - use permissionDetails/inheritedFrom instead.
4778            "role": "A String", # Deprecated - use permissionDetails/role instead.
4779            "additionalRoles": [ # Deprecated - use permissionDetails/additionalRoles instead.
4780              "A String",
4781            ],
4782            "teamDrivePermissionType": "A String", # Deprecated - use permissionDetails/permissionType instead.
4783            "inherited": True or False, # Deprecated - use permissionDetails/inherited instead.
4784          },
4785        ],
4786        "deleted": True or False, # Whether the account associated with this permission has been deleted. This field only pertains to user and group permissions.
4787        "kind": "drive#permission", # This is always drive#permission.
4788        "value": "A String", # The email address or domain name for the entity. This is used during inserts and is not populated in responses. When making a drive.permissions.insert request, exactly one of the id or value fields must be specified unless the permission type is anyone, in which case both id and value are ignored.
4789        "id": "A String", # The ID of the user this permission refers to, and identical to the permissionId in the About and Files resources. When making a drive.permissions.insert request, exactly one of the id or value fields must be specified unless the permission type is anyone, in which case both id and value are ignored.
4790        "authKey": "A String", # Deprecated.
4791        "etag": "A String", # The ETag of the permission.
4792        "emailAddress": "A String", # 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.
4793        "expirationDate": "A String", # The time at which this permission will expire (RFC 3339 date-time). Expiration dates have the following restrictions:
4794            # - They can only be set on user and group permissions
4795            # - The date must be in the future
4796            # - The date cannot be more than a year in the future
4797            # - The date can only be set on drive.permissions.update or drive.permissions.patch requests
4798        "role": "A String", # The primary role for this user. While new values may be supported in the future, the following are currently allowed:
4799            # - owner
4800            # - organizer
4801            # - fileOrganizer
4802            # - writer
4803            # - reader
4804        "type": "A String", # The account type. Allowed values are:
4805            # - user
4806            # - group
4807            # - domain
4808            # - anyone
4809        "additionalRoles": [ # Additional roles for this user. Only commenter is currently allowed, though more may be supported in the future.
4810          "A String",
4811        ],
4812        "selfLink": "A String", # A link back to this permission.
4813        "photoLink": "A String", # A link to the profile photo, if available.
4814      },
4815    ],
4816    "headRevisionId": "A String", # The ID of the file's head revision. This field is only populated for files with content stored in Google Drive; it is not populated for Google Docs or shortcut files.
4817    "selfLink": "A String", # A link back to this file.
4818    "modifiedDate": "A String", # Last time this file was modified by anyone (formatted RFC 3339 timestamp). This is only mutable on update when the setModifiedDate parameter is set.
4819  }</pre>
4820</div>
4821
4822<div class="method">
4823    <code class="details" id="watch">watch(fileId, body, projection=None, revisionId=None, supportsTeamDrives=None, supportsAllDrives=None, acknowledgeAbuse=None, updateViewedDate=None)</code>
4824  <pre>Subscribe to changes on a file
4825
4826Args:
4827  fileId: string, The ID for the file in question. (required)
4828  body: object, The request body. (required)
4829    The object takes the form of:
4830
4831{ # An notification channel used to watch for resource changes.
4832    "resourceUri": "A String", # A version-specific identifier for the watched resource.
4833    "kind": "api#channel", # Identifies this as a notification channel used to watch for changes to a resource. Value: the fixed string "api#channel".
4834    "resourceId": "A String", # An opaque ID that identifies the resource being watched on this channel. Stable across different API versions.
4835    "payload": True or False, # A Boolean value to indicate whether payload is wanted. Optional.
4836    "token": "A String", # An arbitrary string delivered to the target address with each notification delivered over this channel. Optional.
4837    "params": { # Additional parameters controlling delivery channel behavior. Optional.
4838      "a_key": "A String", # Declares a new parameter by name.
4839    },
4840    "expiration": "A String", # Date and time of notification channel expiration, expressed as a Unix timestamp, in milliseconds. Optional.
4841    "address": "A String", # The address where notifications are delivered for this channel.
4842    "type": "A String", # The type of delivery mechanism used for this channel.
4843    "id": "A String", # A UUID or similar unique string that identifies this channel.
4844  }
4845
4846  projection: string, This parameter is deprecated and has no function.
4847    Allowed values
4848      BASIC - Deprecated
4849      FULL - Deprecated
4850  revisionId: string, Specifies the Revision ID that should be downloaded. Ignored unless alt=media is specified.
4851  supportsTeamDrives: boolean, Deprecated use supportsAllDrives instead.
4852  supportsAllDrives: boolean, Deprecated - Whether the requesting application supports both My Drives and shared drives. This parameter will only be effective until June 1, 2020. Afterwards all applications are assumed to support shared drives.
4853  acknowledgeAbuse: boolean, Whether the user is acknowledging the risk of downloading known malware or other abusive files.
4854  updateViewedDate: boolean, Deprecated: Use files.update with modifiedDateBehavior=noChange, updateViewedDate=true and an empty request body.
4855
4856Returns:
4857  An object of the form:
4858
4859    { # An notification channel used to watch for resource changes.
4860      "resourceUri": "A String", # A version-specific identifier for the watched resource.
4861      "kind": "api#channel", # Identifies this as a notification channel used to watch for changes to a resource. Value: the fixed string "api#channel".
4862      "resourceId": "A String", # An opaque ID that identifies the resource being watched on this channel. Stable across different API versions.
4863      "payload": True or False, # A Boolean value to indicate whether payload is wanted. Optional.
4864      "token": "A String", # An arbitrary string delivered to the target address with each notification delivered over this channel. Optional.
4865      "params": { # Additional parameters controlling delivery channel behavior. Optional.
4866        "a_key": "A String", # Declares a new parameter by name.
4867      },
4868      "expiration": "A String", # Date and time of notification channel expiration, expressed as a Unix timestamp, in milliseconds. Optional.
4869      "address": "A String", # The address where notifications are delivered for this channel.
4870      "type": "A String", # The type of delivery mechanism used for this channel.
4871      "id": "A String", # A UUID or similar unique string that identifies this channel.
4872    }</pre>
4873</div>
4874
4875<div class="method">
4876    <code class="details" id="watch_media">watch_media(fileId, body, projection=None, revisionId=None, supportsTeamDrives=None, supportsAllDrives=None, acknowledgeAbuse=None, updateViewedDate=None)</code>
4877  <pre>Subscribe to changes on a file
4878
4879Args:
4880  fileId: string, The ID for the file in question. (required)
4881  body: object, The request body. (required)
4882    The object takes the form of:
4883
4884{ # An notification channel used to watch for resource changes.
4885    "resourceUri": "A String", # A version-specific identifier for the watched resource.
4886    "kind": "api#channel", # Identifies this as a notification channel used to watch for changes to a resource. Value: the fixed string "api#channel".
4887    "resourceId": "A String", # An opaque ID that identifies the resource being watched on this channel. Stable across different API versions.
4888    "payload": True or False, # A Boolean value to indicate whether payload is wanted. Optional.
4889    "token": "A String", # An arbitrary string delivered to the target address with each notification delivered over this channel. Optional.
4890    "params": { # Additional parameters controlling delivery channel behavior. Optional.
4891      "a_key": "A String", # Declares a new parameter by name.
4892    },
4893    "expiration": "A String", # Date and time of notification channel expiration, expressed as a Unix timestamp, in milliseconds. Optional.
4894    "address": "A String", # The address where notifications are delivered for this channel.
4895    "type": "A String", # The type of delivery mechanism used for this channel.
4896    "id": "A String", # A UUID or similar unique string that identifies this channel.
4897  }
4898
4899  projection: string, This parameter is deprecated and has no function.
4900    Allowed values
4901      BASIC - Deprecated
4902      FULL - Deprecated
4903  revisionId: string, Specifies the Revision ID that should be downloaded. Ignored unless alt=media is specified.
4904  supportsTeamDrives: boolean, Deprecated use supportsAllDrives instead.
4905  supportsAllDrives: boolean, Deprecated - Whether the requesting application supports both My Drives and shared drives. This parameter will only be effective until June 1, 2020. Afterwards all applications are assumed to support shared drives.
4906  acknowledgeAbuse: boolean, Whether the user is acknowledging the risk of downloading known malware or other abusive files.
4907  updateViewedDate: boolean, Deprecated: Use files.update with modifiedDateBehavior=noChange, updateViewedDate=true and an empty request body.
4908
4909Returns:
4910  The media object as a string.
4911
4912    </pre>
4913</div>
4914
4915</body></html>