blob: f01d687390a87f5b18d438a4cb0a9363b08cc478 [file] [log] [blame]
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08001<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_v3.html">Drive API</a> . <a href="drive_v3.files.html">files</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070078 <code><a href="#close">close()</a></code></p>
79<p class="firstline">Close httplib2 connections.</p>
80<p class="toc_element">
81 <code><a href="#copy">copy(fileId, body=None, enforceSingleParent=None, ignoreDefaultVisibility=None, includePermissionsForView=None, keepRevisionForever=None, ocrLanguage=None, supportsAllDrives=None, supportsTeamDrives=None)</a></code></p>
Bu Sun Kimd059ad82020-07-22 17:02:09 -070082<p class="firstline">Creates a copy of a file and applies any requested updates with patch semantics. Folders cannot be copied.</p>
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -080083<p class="toc_element">
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -080084 <code><a href="#create">create(body=None, enforceSingleParent=None, ignoreDefaultVisibility=None, includePermissionsForView=None, keepRevisionForever=None, media_body=None, media_mime_type=None, ocrLanguage=None, supportsAllDrives=None, supportsTeamDrives=None, useContentAsIndexableText=None)</a></code></p>
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -080085<p class="firstline">Creates a new file.</p>
86<p class="toc_element">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070087 <code><a href="#delete">delete(fileId, enforceSingleParent=None, supportsAllDrives=None, supportsTeamDrives=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070088<p class="firstline">Permanently deletes a file owned by the user without moving it to the trash. If the file belongs to a shared drive the user must be an organizer on the parent. If the target is a folder, all descendants owned by the user are also deleted.</p>
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -080089<p class="toc_element">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070090 <code><a href="#emptyTrash">emptyTrash(enforceSingleParent=None)</a></code></p>
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -080091<p class="firstline">Permanently deletes all of the user's trashed files.</p>
92<p class="toc_element">
93 <code><a href="#export">export(fileId, mimeType)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070094<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>
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -080095<p class="toc_element">
96 <code><a href="#export_media">export_media(fileId, mimeType)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070097<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>
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -080098<p class="toc_element">
yoshi-code-botc2cd3262021-05-16 02:16:04 -070099 <code><a href="#generateIds">generateIds(count=None, space=None, type=None)</a></code></p>
Dan O'Mearadd494642020-05-01 07:42:23 -0700100<p class="firstline">Generates a set of file IDs which can be provided in create or copy requests.</p>
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800101<p class="toc_element">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700102 <code><a href="#get">get(fileId, acknowledgeAbuse=None, includePermissionsForView=None, supportsAllDrives=None, supportsTeamDrives=None)</a></code></p>
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800103<p class="firstline">Gets a file's metadata or content by ID.</p>
104<p class="toc_element">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700105 <code><a href="#get_media">get_media(fileId, acknowledgeAbuse=None, includePermissionsForView=None, supportsAllDrives=None, supportsTeamDrives=None)</a></code></p>
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800106<p class="firstline">Gets a file's metadata or content by ID.</p>
107<p class="toc_element">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700108 <code><a href="#list">list(corpora=None, corpus=None, driveId=None, includeItemsFromAllDrives=None, includePermissionsForView=None, includeTeamDriveItems=None, orderBy=None, pageSize=None, pageToken=None, q=None, spaces=None, supportsAllDrives=None, supportsTeamDrives=None, teamDriveId=None)</a></code></p>
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800109<p class="firstline">Lists or searches files.</p>
110<p class="toc_element">
111 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
112<p class="firstline">Retrieves the next page of results.</p>
113<p class="toc_element">
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800114 <code><a href="#update">update(fileId, addParents=None, body=None, enforceSingleParent=None, includePermissionsForView=None, keepRevisionForever=None, media_body=None, media_mime_type=None, ocrLanguage=None, removeParents=None, supportsAllDrives=None, supportsTeamDrives=None, useContentAsIndexableText=None)</a></code></p>
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700115<p class="firstline">Updates a file's metadata and/or content. This method supports patch semantics.</p>
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800116<p class="toc_element">
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800117 <code><a href="#watch">watch(fileId, acknowledgeAbuse=None, body=None, includePermissionsForView=None, supportsAllDrives=None, supportsTeamDrives=None)</a></code></p>
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800118<p class="firstline">Subscribes to changes to a file</p>
119<p class="toc_element">
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800120 <code><a href="#watch_media">watch_media(fileId, acknowledgeAbuse=None, body=None, includePermissionsForView=None, supportsAllDrives=None, supportsTeamDrives=None)</a></code></p>
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800121<p class="firstline">Subscribes to changes to a file</p>
122<h3>Method Details</h3>
123<div class="method">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700124 <code class="details" id="close">close()</code>
125 <pre>Close httplib2 connections.</pre>
126</div>
127
128<div class="method">
129 <code class="details" id="copy">copy(fileId, body=None, enforceSingleParent=None, ignoreDefaultVisibility=None, includePermissionsForView=None, keepRevisionForever=None, ocrLanguage=None, supportsAllDrives=None, supportsTeamDrives=None)</code>
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700130 <pre>Creates a copy of a file and applies any requested updates with patch semantics. Folders cannot be copied.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800131
132Args:
133 fileId: string, The ID of the file. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700134 body: object, The request body.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800135 The object takes the form of:
136
137{ # The metadata for a file.
Bu Sun Kim65020912020-05-20 12:08:20 -0700138 &quot;appProperties&quot;: { # A collection of arbitrary key-value pairs which are private to the requesting app.
yoshi-code-bot69706592021-03-03 03:54:02 -0800139 # Entries with null values are cleared in update and copy requests. These properties can only be retrieved using an authenticated request. An authenticated request uses an access token obtained with a OAuth 2 client ID. You cannot use an API key to retrieve private properties.
Bu Sun Kim65020912020-05-20 12:08:20 -0700140 &quot;a_key&quot;: &quot;A String&quot;,
141 },
142 &quot;capabilities&quot;: { # Capabilities the current user has on this file. Each capability corresponds to a fine-grained action that a user may take.
143 &quot;canAddChildren&quot;: True or False, # Whether the current user can add children to this folder. This is always false when the item is not a folder.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700144 &quot;canAddFolderFromAnotherDrive&quot;: True or False, # Whether the current user can add a folder from another drive (different shared drive or My Drive) to this folder. This is false when the item is not a folder. Only populated for items in shared drives.
Bu Sun Kim65020912020-05-20 12:08:20 -0700145 &quot;canAddMyDriveParent&quot;: True or False, # Whether the current user can add a parent for the item without removing an existing parent in the same request. Not populated for shared drive files.
146 &quot;canChangeCopyRequiresWriterPermission&quot;: True or False, # Whether the current user can change the copyRequiresWriterPermission restriction of this file.
yoshi-code-bot04bafe12021-06-29 00:20:25 -0700147 &quot;canChangeSecurityUpdateEnabled&quot;: True or False, # Whether the current user can change the securityUpdateEnabled field on link share metadata.
Bu Sun Kim65020912020-05-20 12:08:20 -0700148 &quot;canChangeViewersCanCopyContent&quot;: True or False, # Deprecated
149 &quot;canComment&quot;: True or False, # Whether the current user can comment on this file.
150 &quot;canCopy&quot;: True or False, # Whether the current user can copy this file. For an item in a shared drive, whether the current user can copy non-folder descendants of this item, or this item itself if it is not a folder.
151 &quot;canDelete&quot;: True or False, # Whether the current user can delete this file.
152 &quot;canDeleteChildren&quot;: True or False, # Whether the current user can delete children of this folder. This is false when the item is not a folder. Only populated for items in shared drives.
153 &quot;canDownload&quot;: True or False, # Whether the current user can download this file.
154 &quot;canEdit&quot;: True or False, # Whether the current user can edit this file. Other factors may limit the type of changes a user can make to a file. For example, see canChangeCopyRequiresWriterPermission or canModifyContent.
155 &quot;canListChildren&quot;: True or False, # Whether the current user can list the children of this folder. This is always false when the item is not a folder.
156 &quot;canModifyContent&quot;: True or False, # Whether the current user can modify the content of this file.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700157 &quot;canModifyContentRestriction&quot;: True or False, # Whether the current user can modify restrictions on content of this file.
Bu Sun Kim65020912020-05-20 12:08:20 -0700158 &quot;canMoveChildrenOutOfDrive&quot;: True or False, # Whether the current user can move children of this folder outside of the shared drive. This is false when the item is not a folder. Only populated for items in shared drives.
159 &quot;canMoveChildrenOutOfTeamDrive&quot;: True or False, # Deprecated - use canMoveChildrenOutOfDrive instead.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700160 &quot;canMoveChildrenWithinDrive&quot;: True or False, # Whether the current user can move children of this folder within this drive. This is false when the item is not a folder. Note that a request to move the child may still fail depending on the current user&#x27;s access to the child and to the destination folder.
Bu Sun Kim65020912020-05-20 12:08:20 -0700161 &quot;canMoveChildrenWithinTeamDrive&quot;: True or False, # Deprecated - use canMoveChildrenWithinDrive instead.
162 &quot;canMoveItemIntoTeamDrive&quot;: True or False, # Deprecated - use canMoveItemOutOfDrive instead.
163 &quot;canMoveItemOutOfDrive&quot;: True or False, # Whether the current user can move this item outside of this drive by changing its parent. Note that a request to change the parent of the item may still fail depending on the new parent that is being added.
164 &quot;canMoveItemOutOfTeamDrive&quot;: True or False, # Deprecated - use canMoveItemOutOfDrive instead.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700165 &quot;canMoveItemWithinDrive&quot;: True or False, # Whether the current user can move this item within this drive. Note that a request to change the parent of the item may still fail depending on the new parent that is being added and the parent that is being removed.
Bu Sun Kim65020912020-05-20 12:08:20 -0700166 &quot;canMoveItemWithinTeamDrive&quot;: True or False, # Deprecated - use canMoveItemWithinDrive instead.
167 &quot;canMoveTeamDriveItem&quot;: True or False, # Deprecated - use canMoveItemWithinDrive or canMoveItemOutOfDrive instead.
168 &quot;canReadDrive&quot;: True or False, # Whether the current user can read the shared drive to which this file belongs. Only populated for items in shared drives.
169 &quot;canReadRevisions&quot;: True or False, # Whether the current user can read the revisions resource of this file. For a shared drive item, whether revisions of non-folder descendants of this item, or this item itself if it is not a folder, can be read.
170 &quot;canReadTeamDrive&quot;: True or False, # Deprecated - use canReadDrive instead.
171 &quot;canRemoveChildren&quot;: True or False, # Whether the current user can remove children from this folder. This is always false when the item is not a folder. For a folder in a shared drive, use canDeleteChildren or canTrashChildren instead.
172 &quot;canRemoveMyDriveParent&quot;: True or False, # Whether the current user can remove a parent from the item without adding another parent in the same request. Not populated for shared drive files.
173 &quot;canRename&quot;: True or False, # Whether the current user can rename this file.
174 &quot;canShare&quot;: True or False, # Whether the current user can modify the sharing settings for this file.
175 &quot;canTrash&quot;: True or False, # Whether the current user can move this file to trash.
176 &quot;canTrashChildren&quot;: True or False, # Whether the current user can trash children of this folder. This is false when the item is not a folder. Only populated for items in shared drives.
177 &quot;canUntrash&quot;: True or False, # Whether the current user can restore this file from trash.
178 },
179 &quot;contentHints&quot;: { # Additional information about the content of the file. These fields are never populated in responses.
180 &quot;indexableText&quot;: &quot;A String&quot;, # Text to be indexed for the file to improve fullText queries. This is limited to 128KB in length and may contain HTML elements.
181 &quot;thumbnail&quot;: { # A thumbnail for the file. This will only be used if Google Drive cannot generate a standard thumbnail.
182 &quot;image&quot;: &quot;A String&quot;, # The thumbnail data encoded with URL-safe Base64 (RFC 4648 section 5).
183 &quot;mimeType&quot;: &quot;A String&quot;, # The MIME type of the thumbnail.
184 },
185 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700186 &quot;contentRestrictions&quot;: [ # Restrictions for accessing the content of the file. Only populated if such a restriction exists.
187 { # A restriction for accessing the content of the file.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700188 &quot;readOnly&quot;: True or False, # Whether the content of the file is read-only. If a file is read-only, a new revision of the file may not be added, comments may not be added or modified, and the title of the file may not be modified.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700189 &quot;reason&quot;: &quot;A String&quot;, # Reason for why the content of the file is restricted. This is only mutable on requests that also set readOnly=true.
190 &quot;restrictingUser&quot;: { # Information about a Drive user. # The user who set the content restriction. Only populated if readOnly is true.
191 &quot;displayName&quot;: &quot;A String&quot;, # A plain text displayable name for this user.
192 &quot;emailAddress&quot;: &quot;A String&quot;, # The email address of the user. This may not be present in certain contexts if the user has not made their email address visible to the requester.
193 &quot;kind&quot;: &quot;drive#user&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;drive#user&quot;.
194 &quot;me&quot;: True or False, # Whether this user is the requesting user.
195 &quot;permissionId&quot;: &quot;A String&quot;, # The user&#x27;s ID as visible in Permission resources.
196 &quot;photoLink&quot;: &quot;A String&quot;, # A link to the user&#x27;s profile photo, if available.
197 },
198 &quot;restrictionTime&quot;: &quot;A String&quot;, # The time at which the content restriction was set (formatted RFC 3339 timestamp). Only populated if readOnly is true.
199 &quot;type&quot;: &quot;A String&quot;, # The type of the content restriction. Currently the only possible value is globalContentRestriction.
200 },
201 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700202 &quot;copyRequiresWriterPermission&quot;: True or False, # Whether the options to copy, print, or download this file, should be disabled for readers and commenters.
203 &quot;createdTime&quot;: &quot;A String&quot;, # The time at which the file was created (RFC 3339 date-time).
204 &quot;description&quot;: &quot;A String&quot;, # A short description of the file.
205 &quot;driveId&quot;: &quot;A String&quot;, # ID of the shared drive the file resides in. Only populated for items in shared drives.
206 &quot;explicitlyTrashed&quot;: True or False, # Whether the file has been explicitly trashed, as opposed to recursively trashed from a parent folder.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700207 &quot;exportLinks&quot;: { # Links for exporting Docs Editors files to specific formats.
Bu Sun Kim65020912020-05-20 12:08:20 -0700208 &quot;a_key&quot;: &quot;A String&quot;, # A mapping from export format to URL
209 },
210 &quot;fileExtension&quot;: &quot;A String&quot;, # The final component of fullFileExtension. This is only available for files with binary content in Google Drive.
211 &quot;folderColorRgb&quot;: &quot;A String&quot;, # The color for a folder as an RGB hex string. The supported colors are published in the folderColorPalette field of the About resource.
212 # If an unsupported color is specified, the closest color in the palette will be used instead.
213 &quot;fullFileExtension&quot;: &quot;A String&quot;, # The full file extension extracted from the name field. May contain multiple concatenated extensions, such as &quot;tar.gz&quot;. This is only available for files with binary content in Google Drive.
214 # This is automatically updated when the name field changes, however it is not cleared if the new name does not contain a valid extension.
215 &quot;hasAugmentedPermissions&quot;: True or False, # Whether there are permissions directly on this file. This field is only populated for items in shared drives.
216 &quot;hasThumbnail&quot;: True or False, # Whether this file has a thumbnail. This does not indicate whether the requesting app has access to the thumbnail. To check access, look for the presence of the thumbnailLink field.
217 &quot;headRevisionId&quot;: &quot;A String&quot;, # The ID of the file&#x27;s head revision. This is currently only available for files with binary content in Google Drive.
218 &quot;iconLink&quot;: &quot;A String&quot;, # A static, unauthenticated link to the file&#x27;s icon.
219 &quot;id&quot;: &quot;A String&quot;, # The ID of the file.
220 &quot;imageMediaMetadata&quot;: { # Additional metadata about image media, if available.
221 &quot;aperture&quot;: 3.14, # The aperture used to create the photo (f-number).
222 &quot;cameraMake&quot;: &quot;A String&quot;, # The make of the camera used to create the photo.
223 &quot;cameraModel&quot;: &quot;A String&quot;, # The model of the camera used to create the photo.
224 &quot;colorSpace&quot;: &quot;A String&quot;, # The color space of the photo.
225 &quot;exposureBias&quot;: 3.14, # The exposure bias of the photo (APEX value).
226 &quot;exposureMode&quot;: &quot;A String&quot;, # The exposure mode used to create the photo.
227 &quot;exposureTime&quot;: 3.14, # The length of the exposure, in seconds.
228 &quot;flashUsed&quot;: True or False, # Whether a flash was used to create the photo.
229 &quot;focalLength&quot;: 3.14, # The focal length used to create the photo, in millimeters.
230 &quot;height&quot;: 42, # The height of the image in pixels.
231 &quot;isoSpeed&quot;: 42, # The ISO speed used to create the photo.
232 &quot;lens&quot;: &quot;A String&quot;, # The lens used to create the photo.
233 &quot;location&quot;: { # Geographic location information stored in the image.
234 &quot;altitude&quot;: 3.14, # The altitude stored in the image.
235 &quot;latitude&quot;: 3.14, # The latitude stored in the image.
236 &quot;longitude&quot;: 3.14, # The longitude stored in the image.
237 },
238 &quot;maxApertureValue&quot;: 3.14, # The smallest f-number of the lens at the focal length used to create the photo (APEX value).
239 &quot;meteringMode&quot;: &quot;A String&quot;, # The metering mode used to create the photo.
240 &quot;rotation&quot;: 42, # The number of clockwise 90 degree rotations applied from the image&#x27;s original orientation.
241 &quot;sensor&quot;: &quot;A String&quot;, # The type of sensor used to create the photo.
242 &quot;subjectDistance&quot;: 42, # The distance to the subject of the photo, in meters.
243 &quot;time&quot;: &quot;A String&quot;, # The date and time the photo was taken (EXIF DateTime).
244 &quot;whiteBalance&quot;: &quot;A String&quot;, # The white balance mode used to create the photo.
245 &quot;width&quot;: 42, # The width of the image in pixels.
246 },
247 &quot;isAppAuthorized&quot;: True or False, # Whether the file was created or opened by the requesting app.
248 &quot;kind&quot;: &quot;drive#file&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;drive#file&quot;.
249 &quot;lastModifyingUser&quot;: { # Information about a Drive user. # The last user to modify the file.
250 &quot;displayName&quot;: &quot;A String&quot;, # A plain text displayable name for this user.
251 &quot;emailAddress&quot;: &quot;A String&quot;, # The email address of the user. This may not be present in certain contexts if the user has not made their email address visible to the requester.
252 &quot;kind&quot;: &quot;drive#user&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;drive#user&quot;.
253 &quot;me&quot;: True or False, # Whether this user is the requesting user.
254 &quot;permissionId&quot;: &quot;A String&quot;, # The user&#x27;s ID as visible in Permission resources.
255 &quot;photoLink&quot;: &quot;A String&quot;, # A link to the user&#x27;s profile photo, if available.
256 },
yoshi-code-bot04bafe12021-06-29 00:20:25 -0700257 &quot;linkShareMetadata&quot;: { # Contains details about the link URLs that clients are using to refer to this item.
258 &quot;securityUpdateEligible&quot;: True or False, # Whether the file is eligible for security update.
259 &quot;securityUpdateEnabled&quot;: True or False, # Whether the security update is enabled for this file.
260 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700261 &quot;md5Checksum&quot;: &quot;A String&quot;, # The MD5 checksum for the content of the file. This is only applicable to files with binary content in Google Drive.
262 &quot;mimeType&quot;: &quot;A String&quot;, # The MIME type of the file.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700263 # Google Drive will attempt to automatically detect an appropriate value from uploaded content if no value is provided. The value cannot be changed unless a new revision is uploaded.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800264 # If a file is created with a Google Doc MIME type, the uploaded content will be imported if possible. The supported import formats are published in the About resource.
Bu Sun Kim65020912020-05-20 12:08:20 -0700265 &quot;modifiedByMe&quot;: True or False, # Whether the file has been modified by this user.
266 &quot;modifiedByMeTime&quot;: &quot;A String&quot;, # The last time the file was modified by the user (RFC 3339 date-time).
267 &quot;modifiedTime&quot;: &quot;A String&quot;, # The last time the file was modified by anyone (RFC 3339 date-time).
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800268 # Note that setting modifiedTime will also update modifiedByMeTime for the user.
Bu Sun Kim65020912020-05-20 12:08:20 -0700269 &quot;name&quot;: &quot;A String&quot;, # The name of the file. This is not necessarily unique within a folder. Note that for immutable items such as the top level folders of shared drives, My Drive root folder, and Application Data folder the name is constant.
270 &quot;originalFilename&quot;: &quot;A String&quot;, # The original filename of the uploaded content if available, or else the original value of the name field. This is only available for files with binary content in Google Drive.
271 &quot;ownedByMe&quot;: True or False, # Whether the user owns the file. Not populated for items in shared drives.
yoshi-code-botab1d6dc2021-05-28 00:42:02 -0700272 &quot;owners&quot;: [ # The owner of this file. Only certain legacy files may have more than one owner. This field isn&#x27;t populated for items in shared drives.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800273 { # Information about a Drive user.
Bu Sun Kim65020912020-05-20 12:08:20 -0700274 &quot;displayName&quot;: &quot;A String&quot;, # A plain text displayable name for this user.
275 &quot;emailAddress&quot;: &quot;A String&quot;, # The email address of the user. This may not be present in certain contexts if the user has not made their email address visible to the requester.
276 &quot;kind&quot;: &quot;drive#user&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;drive#user&quot;.
277 &quot;me&quot;: True or False, # Whether this user is the requesting user.
278 &quot;permissionId&quot;: &quot;A String&quot;, # The user&#x27;s ID as visible in Permission resources.
279 &quot;photoLink&quot;: &quot;A String&quot;, # A link to the user&#x27;s profile photo, if available.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800280 },
281 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700282 &quot;parents&quot;: [ # The IDs of the parent folders which contain the file.
283 # If not specified as part of a create request, the file will be placed directly in the user&#x27;s My Drive folder. If not specified as part of a copy request, the file will inherit any discoverable parents of the source file. Update requests must use the addParents and removeParents parameters to modify the parents list.
284 &quot;A String&quot;,
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800285 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700286 &quot;permissionIds&quot;: [ # List of permission IDs for users with access to this file.
287 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700288 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700289 &quot;permissions&quot;: [ # The full list of permissions for the file. This is only available if the requesting user can share the file. Not populated for items in shared drives.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700290 { # A permission for a file. A permission grants a user, group, domain or the world access to a file or a folder hierarchy.
Bu Sun Kim65020912020-05-20 12:08:20 -0700291 &quot;allowFileDiscovery&quot;: True or False, # Whether the permission allows the file to be discovered through search. This is only applicable for permissions of type domain or anyone.
292 &quot;deleted&quot;: True or False, # Whether the account associated with this permission has been deleted. This field only pertains to user and group permissions.
293 &quot;displayName&quot;: &quot;A String&quot;, # The &quot;pretty&quot; name of the value of the permission. The following is a list of examples for each type of permission:
294 # - user - User&#x27;s full name, as defined for their Google account, such as &quot;Joe Smith.&quot;
295 # - group - Name of the Google Group, such as &quot;The Company Administrators.&quot;
296 # - domain - String domain name, such as &quot;thecompany.com.&quot;
Dan O'Mearadd494642020-05-01 07:42:23 -0700297 # - anyone - No displayName is present.
Bu Sun Kim65020912020-05-20 12:08:20 -0700298 &quot;domain&quot;: &quot;A String&quot;, # The domain to which this permission refers.
299 &quot;emailAddress&quot;: &quot;A String&quot;, # The email address of the user or group to which this permission refers.
300 &quot;expirationTime&quot;: &quot;A String&quot;, # The time at which this permission will expire (RFC 3339 date-time). Expiration times have the following restrictions:
301 # - They can only be set on user and group permissions
302 # - The time must be in the future
303 # - The time cannot be more than a year in the future
304 &quot;id&quot;: &quot;A String&quot;, # The ID of this permission. This is a unique identifier for the grantee, and is published in User resources as permissionId. IDs should be treated as opaque values.
305 &quot;kind&quot;: &quot;drive#permission&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;drive#permission&quot;.
306 &quot;permissionDetails&quot;: [ # Details of whether the permissions on this shared drive item are inherited or directly on this item. This is an output-only field which is present only for shared drive items.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700307 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700308 &quot;inherited&quot;: True or False, # Whether this permission is inherited. This field is always populated. This is an output-only field.
309 &quot;inheritedFrom&quot;: &quot;A String&quot;, # The ID of the item from which this permission is inherited. This is an output-only field.
310 &quot;permissionType&quot;: &quot;A String&quot;, # The permission type for this user. While new values may be added in future, the following are currently possible:
311 # - file
312 # - member
313 &quot;role&quot;: &quot;A String&quot;, # The primary role for this user. While new values may be added in the future, the following are currently possible:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700314 # - organizer
315 # - fileOrganizer
316 # - writer
317 # - commenter
318 # - reader
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700319 },
320 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700321 &quot;photoLink&quot;: &quot;A String&quot;, # A link to the user&#x27;s profile photo, if available.
322 &quot;role&quot;: &quot;A String&quot;, # The role granted by this permission. While new values may be supported in the future, the following are currently allowed:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700323 # - owner
324 # - organizer
325 # - fileOrganizer
326 # - writer
327 # - commenter
328 # - reader
Bu Sun Kim65020912020-05-20 12:08:20 -0700329 &quot;teamDrivePermissionDetails&quot;: [ # Deprecated - use permissionDetails instead.
330 {
331 &quot;inherited&quot;: True or False, # Deprecated - use permissionDetails/inherited instead.
332 &quot;inheritedFrom&quot;: &quot;A String&quot;, # Deprecated - use permissionDetails/inheritedFrom instead.
333 &quot;role&quot;: &quot;A String&quot;, # Deprecated - use permissionDetails/role instead.
334 &quot;teamDrivePermissionType&quot;: &quot;A String&quot;, # Deprecated - use permissionDetails/permissionType instead.
335 },
336 ],
337 &quot;type&quot;: &quot;A String&quot;, # The type of the grantee. Valid values are:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700338 # - user
339 # - group
340 # - domain
Bu Sun Kim65020912020-05-20 12:08:20 -0700341 # - anyone When creating a permission, if type is user or group, you must provide an emailAddress for the user or group. When type is domain, you must provide a domain. There isn&#x27;t extra information required for a anyone type.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700342 &quot;view&quot;: &quot;A String&quot;, # Indicates the view for this permission. Only populated for permissions that belong to a view. published is the only supported value.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700343 },
344 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700345 &quot;properties&quot;: { # A collection of arbitrary key-value pairs which are visible to all apps.
346 # Entries with null values are cleared in update and copy requests.
347 &quot;a_key&quot;: &quot;A String&quot;,
348 },
349 &quot;quotaBytesUsed&quot;: &quot;A String&quot;, # The number of storage quota bytes used by the file. This includes the head revision as well as previous revisions with keepForever enabled.
yoshi-code-bot04bafe12021-06-29 00:20:25 -0700350 &quot;resourceKey&quot;: &quot;A String&quot;, # A key needed to access the item via a shared link.
Bu Sun Kim65020912020-05-20 12:08:20 -0700351 &quot;shared&quot;: True or False, # Whether the file has been shared. Not populated for items in shared drives.
352 &quot;sharedWithMeTime&quot;: &quot;A String&quot;, # The time at which the file was shared with the user, if applicable (RFC 3339 date-time).
353 &quot;sharingUser&quot;: { # Information about a Drive user. # The user who shared the file with the requesting user, if applicable.
354 &quot;displayName&quot;: &quot;A String&quot;, # A plain text displayable name for this user.
355 &quot;emailAddress&quot;: &quot;A String&quot;, # The email address of the user. This may not be present in certain contexts if the user has not made their email address visible to the requester.
356 &quot;kind&quot;: &quot;drive#user&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;drive#user&quot;.
357 &quot;me&quot;: True or False, # Whether this user is the requesting user.
358 &quot;permissionId&quot;: &quot;A String&quot;, # The user&#x27;s ID as visible in Permission resources.
359 &quot;photoLink&quot;: &quot;A String&quot;, # A link to the user&#x27;s profile photo, if available.
360 },
361 &quot;shortcutDetails&quot;: { # Shortcut file details. Only populated for shortcut files, which have the mimeType field set to application/vnd.google-apps.shortcut.
362 &quot;targetId&quot;: &quot;A String&quot;, # The ID of the file that this shortcut points to.
363 &quot;targetMimeType&quot;: &quot;A String&quot;, # The MIME type of the file that this shortcut points to. The value of this field is a snapshot of the target&#x27;s MIME type, captured when the shortcut is created.
yoshi-code-bot04bafe12021-06-29 00:20:25 -0700364 &quot;targetResourceKey&quot;: &quot;A String&quot;, # The ResourceKey for the target file.
Bu Sun Kim65020912020-05-20 12:08:20 -0700365 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700366 &quot;size&quot;: &quot;A String&quot;, # The size of the file&#x27;s content in bytes. This is applicable to binary files in Google Drive and Google Docs files.
Bu Sun Kim65020912020-05-20 12:08:20 -0700367 &quot;spaces&quot;: [ # The list of spaces which contain the file. The currently supported values are &#x27;drive&#x27;, &#x27;appDataFolder&#x27; and &#x27;photos&#x27;.
368 &quot;A String&quot;,
369 ],
370 &quot;starred&quot;: True or False, # Whether the user has starred the file.
371 &quot;teamDriveId&quot;: &quot;A String&quot;, # Deprecated - use driveId instead.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700372 &quot;thumbnailLink&quot;: &quot;A String&quot;, # A short-lived link to the file&#x27;s thumbnail, if available. Typically lasts on the order of hours. Only populated when the requesting app can access the file&#x27;s content. If the file isn&#x27;t shared publicly, the URL returned in Files.thumbnailLink must be fetched using a credentialed request.
Bu Sun Kim65020912020-05-20 12:08:20 -0700373 &quot;thumbnailVersion&quot;: &quot;A String&quot;, # The thumbnail version for use in thumbnail cache invalidation.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700374 &quot;trashed&quot;: True or False, # Whether the file has been trashed, either explicitly or from a trashed parent folder. Only the owner may trash a file. The trashed item is excluded from all files.list responses returned for any user who does not own the file. However, all users with access to the file can see the trashed item metadata in an API response. All users with access can copy, download, export, and share the file.
Bu Sun Kim65020912020-05-20 12:08:20 -0700375 &quot;trashedTime&quot;: &quot;A String&quot;, # The time that the item was trashed (RFC 3339 date-time). Only populated for items in shared drives.
376 &quot;trashingUser&quot;: { # Information about a Drive user. # If the file has been explicitly trashed, the user who trashed it. Only populated for items in shared drives.
377 &quot;displayName&quot;: &quot;A String&quot;, # A plain text displayable name for this user.
378 &quot;emailAddress&quot;: &quot;A String&quot;, # The email address of the user. This may not be present in certain contexts if the user has not made their email address visible to the requester.
379 &quot;kind&quot;: &quot;drive#user&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;drive#user&quot;.
380 &quot;me&quot;: True or False, # Whether this user is the requesting user.
381 &quot;permissionId&quot;: &quot;A String&quot;, # The user&#x27;s ID as visible in Permission resources.
382 &quot;photoLink&quot;: &quot;A String&quot;, # A link to the user&#x27;s profile photo, if available.
383 },
384 &quot;version&quot;: &quot;A String&quot;, # A monotonically increasing version number for the file. This reflects every change made to the file on the server, even those not visible to the user.
385 &quot;videoMediaMetadata&quot;: { # Additional metadata about video media. This may not be available immediately upon upload.
386 &quot;durationMillis&quot;: &quot;A String&quot;, # The duration of the video in milliseconds.
387 &quot;height&quot;: 42, # The height of the video in pixels.
388 &quot;width&quot;: 42, # The width of the video in pixels.
389 },
390 &quot;viewedByMe&quot;: True or False, # Whether the file has been viewed by this user.
391 &quot;viewedByMeTime&quot;: &quot;A String&quot;, # The last time the file was viewed by the user (RFC 3339 date-time).
392 &quot;viewersCanCopyContent&quot;: True or False, # Deprecated - use copyRequiresWriterPermission instead.
393 &quot;webContentLink&quot;: &quot;A String&quot;, # A link for downloading the content of the file in a browser. This is only available for files with binary content in Google Drive.
394 &quot;webViewLink&quot;: &quot;A String&quot;, # A link for opening the file in a relevant Google editor or viewer in a browser.
395 &quot;writersCanShare&quot;: True or False, # Whether users with only writer permission can modify the file&#x27;s permissions. Not populated for items in shared drives.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800396}
397
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800398 enforceSingleParent: boolean, Deprecated. Copying files into multiple folders is no longer supported. Use shortcuts instead.
Bu Sun Kim65020912020-05-20 12:08:20 -0700399 ignoreDefaultVisibility: boolean, Whether to ignore the domain&#x27;s default visibility settings for the created file. Domain administrators can choose to make all uploaded files visible to the domain by default; this parameter bypasses that behavior for the request. Permissions are still inherited from parent folders.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700400 includePermissionsForView: string, Specifies which additional view&#x27;s permissions to include in the response. Only &#x27;published&#x27; is supported.
Bu Sun Kim65020912020-05-20 12:08:20 -0700401 keepRevisionForever: boolean, Whether to set the &#x27;keepForever&#x27; field in the new head revision. This is only applicable to files with binary content in Google Drive. Only 200 revisions for the file can be kept forever. If the limit is reached, try deleting pinned revisions.
Dan O'Mearadd494642020-05-01 07:42:23 -0700402 ocrLanguage: string, A language hint for OCR processing during image import (ISO 639-1 code).
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700403 supportsAllDrives: boolean, Whether the requesting application supports both My Drives and shared drives.
Bu Sun Kim65020912020-05-20 12:08:20 -0700404 supportsTeamDrives: boolean, Deprecated use supportsAllDrives instead.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800405
406Returns:
407 An object of the form:
408
409 { # The metadata for a file.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800410 &quot;appProperties&quot;: { # A collection of arbitrary key-value pairs which are private to the requesting app.
yoshi-code-bot69706592021-03-03 03:54:02 -0800411 # Entries with null values are cleared in update and copy requests. These properties can only be retrieved using an authenticated request. An authenticated request uses an access token obtained with a OAuth 2 client ID. You cannot use an API key to retrieve private properties.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800412 &quot;a_key&quot;: &quot;A String&quot;,
413 },
414 &quot;capabilities&quot;: { # Capabilities the current user has on this file. Each capability corresponds to a fine-grained action that a user may take.
415 &quot;canAddChildren&quot;: True or False, # Whether the current user can add children to this folder. This is always false when the item is not a folder.
416 &quot;canAddFolderFromAnotherDrive&quot;: True or False, # Whether the current user can add a folder from another drive (different shared drive or My Drive) to this folder. This is false when the item is not a folder. Only populated for items in shared drives.
417 &quot;canAddMyDriveParent&quot;: True or False, # Whether the current user can add a parent for the item without removing an existing parent in the same request. Not populated for shared drive files.
418 &quot;canChangeCopyRequiresWriterPermission&quot;: True or False, # Whether the current user can change the copyRequiresWriterPermission restriction of this file.
yoshi-code-bot04bafe12021-06-29 00:20:25 -0700419 &quot;canChangeSecurityUpdateEnabled&quot;: True or False, # Whether the current user can change the securityUpdateEnabled field on link share metadata.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800420 &quot;canChangeViewersCanCopyContent&quot;: True or False, # Deprecated
421 &quot;canComment&quot;: True or False, # Whether the current user can comment on this file.
422 &quot;canCopy&quot;: True or False, # Whether the current user can copy this file. For an item in a shared drive, whether the current user can copy non-folder descendants of this item, or this item itself if it is not a folder.
423 &quot;canDelete&quot;: True or False, # Whether the current user can delete this file.
424 &quot;canDeleteChildren&quot;: True or False, # Whether the current user can delete children of this folder. This is false when the item is not a folder. Only populated for items in shared drives.
425 &quot;canDownload&quot;: True or False, # Whether the current user can download this file.
426 &quot;canEdit&quot;: True or False, # Whether the current user can edit this file. Other factors may limit the type of changes a user can make to a file. For example, see canChangeCopyRequiresWriterPermission or canModifyContent.
427 &quot;canListChildren&quot;: True or False, # Whether the current user can list the children of this folder. This is always false when the item is not a folder.
428 &quot;canModifyContent&quot;: True or False, # Whether the current user can modify the content of this file.
429 &quot;canModifyContentRestriction&quot;: True or False, # Whether the current user can modify restrictions on content of this file.
430 &quot;canMoveChildrenOutOfDrive&quot;: True or False, # Whether the current user can move children of this folder outside of the shared drive. This is false when the item is not a folder. Only populated for items in shared drives.
431 &quot;canMoveChildrenOutOfTeamDrive&quot;: True or False, # Deprecated - use canMoveChildrenOutOfDrive instead.
432 &quot;canMoveChildrenWithinDrive&quot;: True or False, # Whether the current user can move children of this folder within this drive. This is false when the item is not a folder. Note that a request to move the child may still fail depending on the current user&#x27;s access to the child and to the destination folder.
433 &quot;canMoveChildrenWithinTeamDrive&quot;: True or False, # Deprecated - use canMoveChildrenWithinDrive instead.
434 &quot;canMoveItemIntoTeamDrive&quot;: True or False, # Deprecated - use canMoveItemOutOfDrive instead.
435 &quot;canMoveItemOutOfDrive&quot;: True or False, # Whether the current user can move this item outside of this drive by changing its parent. Note that a request to change the parent of the item may still fail depending on the new parent that is being added.
436 &quot;canMoveItemOutOfTeamDrive&quot;: True or False, # Deprecated - use canMoveItemOutOfDrive instead.
437 &quot;canMoveItemWithinDrive&quot;: True or False, # Whether the current user can move this item within this drive. Note that a request to change the parent of the item may still fail depending on the new parent that is being added and the parent that is being removed.
438 &quot;canMoveItemWithinTeamDrive&quot;: True or False, # Deprecated - use canMoveItemWithinDrive instead.
439 &quot;canMoveTeamDriveItem&quot;: True or False, # Deprecated - use canMoveItemWithinDrive or canMoveItemOutOfDrive instead.
440 &quot;canReadDrive&quot;: True or False, # Whether the current user can read the shared drive to which this file belongs. Only populated for items in shared drives.
441 &quot;canReadRevisions&quot;: True or False, # Whether the current user can read the revisions resource of this file. For a shared drive item, whether revisions of non-folder descendants of this item, or this item itself if it is not a folder, can be read.
442 &quot;canReadTeamDrive&quot;: True or False, # Deprecated - use canReadDrive instead.
443 &quot;canRemoveChildren&quot;: True or False, # Whether the current user can remove children from this folder. This is always false when the item is not a folder. For a folder in a shared drive, use canDeleteChildren or canTrashChildren instead.
444 &quot;canRemoveMyDriveParent&quot;: True or False, # Whether the current user can remove a parent from the item without adding another parent in the same request. Not populated for shared drive files.
445 &quot;canRename&quot;: True or False, # Whether the current user can rename this file.
446 &quot;canShare&quot;: True or False, # Whether the current user can modify the sharing settings for this file.
447 &quot;canTrash&quot;: True or False, # Whether the current user can move this file to trash.
448 &quot;canTrashChildren&quot;: True or False, # Whether the current user can trash children of this folder. This is false when the item is not a folder. Only populated for items in shared drives.
449 &quot;canUntrash&quot;: True or False, # Whether the current user can restore this file from trash.
450 },
451 &quot;contentHints&quot;: { # Additional information about the content of the file. These fields are never populated in responses.
452 &quot;indexableText&quot;: &quot;A String&quot;, # Text to be indexed for the file to improve fullText queries. This is limited to 128KB in length and may contain HTML elements.
453 &quot;thumbnail&quot;: { # A thumbnail for the file. This will only be used if Google Drive cannot generate a standard thumbnail.
454 &quot;image&quot;: &quot;A String&quot;, # The thumbnail data encoded with URL-safe Base64 (RFC 4648 section 5).
455 &quot;mimeType&quot;: &quot;A String&quot;, # The MIME type of the thumbnail.
Bu Sun Kim65020912020-05-20 12:08:20 -0700456 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800457 },
458 &quot;contentRestrictions&quot;: [ # Restrictions for accessing the content of the file. Only populated if such a restriction exists.
459 { # A restriction for accessing the content of the file.
460 &quot;readOnly&quot;: True or False, # Whether the content of the file is read-only. If a file is read-only, a new revision of the file may not be added, comments may not be added or modified, and the title of the file may not be modified.
461 &quot;reason&quot;: &quot;A String&quot;, # Reason for why the content of the file is restricted. This is only mutable on requests that also set readOnly=true.
462 &quot;restrictingUser&quot;: { # Information about a Drive user. # The user who set the content restriction. Only populated if readOnly is true.
Bu Sun Kim65020912020-05-20 12:08:20 -0700463 &quot;displayName&quot;: &quot;A String&quot;, # A plain text displayable name for this user.
464 &quot;emailAddress&quot;: &quot;A String&quot;, # The email address of the user. This may not be present in certain contexts if the user has not made their email address visible to the requester.
465 &quot;kind&quot;: &quot;drive#user&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;drive#user&quot;.
466 &quot;me&quot;: True or False, # Whether this user is the requesting user.
467 &quot;permissionId&quot;: &quot;A String&quot;, # The user&#x27;s ID as visible in Permission resources.
468 &quot;photoLink&quot;: &quot;A String&quot;, # A link to the user&#x27;s profile photo, if available.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800469 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800470 &quot;restrictionTime&quot;: &quot;A String&quot;, # The time at which the content restriction was set (formatted RFC 3339 timestamp). Only populated if readOnly is true.
471 &quot;type&quot;: &quot;A String&quot;, # The type of the content restriction. Currently the only possible value is globalContentRestriction.
Bu Sun Kim65020912020-05-20 12:08:20 -0700472 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800473 ],
474 &quot;copyRequiresWriterPermission&quot;: True or False, # Whether the options to copy, print, or download this file, should be disabled for readers and commenters.
475 &quot;createdTime&quot;: &quot;A String&quot;, # The time at which the file was created (RFC 3339 date-time).
476 &quot;description&quot;: &quot;A String&quot;, # A short description of the file.
477 &quot;driveId&quot;: &quot;A String&quot;, # ID of the shared drive the file resides in. Only populated for items in shared drives.
478 &quot;explicitlyTrashed&quot;: True or False, # Whether the file has been explicitly trashed, as opposed to recursively trashed from a parent folder.
479 &quot;exportLinks&quot;: { # Links for exporting Docs Editors files to specific formats.
480 &quot;a_key&quot;: &quot;A String&quot;, # A mapping from export format to URL
481 },
482 &quot;fileExtension&quot;: &quot;A String&quot;, # The final component of fullFileExtension. This is only available for files with binary content in Google Drive.
483 &quot;folderColorRgb&quot;: &quot;A String&quot;, # The color for a folder as an RGB hex string. The supported colors are published in the folderColorPalette field of the About resource.
484 # If an unsupported color is specified, the closest color in the palette will be used instead.
485 &quot;fullFileExtension&quot;: &quot;A String&quot;, # The full file extension extracted from the name field. May contain multiple concatenated extensions, such as &quot;tar.gz&quot;. This is only available for files with binary content in Google Drive.
486 # This is automatically updated when the name field changes, however it is not cleared if the new name does not contain a valid extension.
487 &quot;hasAugmentedPermissions&quot;: True or False, # Whether there are permissions directly on this file. This field is only populated for items in shared drives.
488 &quot;hasThumbnail&quot;: True or False, # Whether this file has a thumbnail. This does not indicate whether the requesting app has access to the thumbnail. To check access, look for the presence of the thumbnailLink field.
489 &quot;headRevisionId&quot;: &quot;A String&quot;, # The ID of the file&#x27;s head revision. This is currently only available for files with binary content in Google Drive.
490 &quot;iconLink&quot;: &quot;A String&quot;, # A static, unauthenticated link to the file&#x27;s icon.
491 &quot;id&quot;: &quot;A String&quot;, # The ID of the file.
492 &quot;imageMediaMetadata&quot;: { # Additional metadata about image media, if available.
493 &quot;aperture&quot;: 3.14, # The aperture used to create the photo (f-number).
494 &quot;cameraMake&quot;: &quot;A String&quot;, # The make of the camera used to create the photo.
495 &quot;cameraModel&quot;: &quot;A String&quot;, # The model of the camera used to create the photo.
496 &quot;colorSpace&quot;: &quot;A String&quot;, # The color space of the photo.
497 &quot;exposureBias&quot;: 3.14, # The exposure bias of the photo (APEX value).
498 &quot;exposureMode&quot;: &quot;A String&quot;, # The exposure mode used to create the photo.
499 &quot;exposureTime&quot;: 3.14, # The length of the exposure, in seconds.
500 &quot;flashUsed&quot;: True or False, # Whether a flash was used to create the photo.
501 &quot;focalLength&quot;: 3.14, # The focal length used to create the photo, in millimeters.
502 &quot;height&quot;: 42, # The height of the image in pixels.
503 &quot;isoSpeed&quot;: 42, # The ISO speed used to create the photo.
504 &quot;lens&quot;: &quot;A String&quot;, # The lens used to create the photo.
505 &quot;location&quot;: { # Geographic location information stored in the image.
506 &quot;altitude&quot;: 3.14, # The altitude stored in the image.
507 &quot;latitude&quot;: 3.14, # The latitude stored in the image.
508 &quot;longitude&quot;: 3.14, # The longitude stored in the image.
509 },
510 &quot;maxApertureValue&quot;: 3.14, # The smallest f-number of the lens at the focal length used to create the photo (APEX value).
511 &quot;meteringMode&quot;: &quot;A String&quot;, # The metering mode used to create the photo.
512 &quot;rotation&quot;: 42, # The number of clockwise 90 degree rotations applied from the image&#x27;s original orientation.
513 &quot;sensor&quot;: &quot;A String&quot;, # The type of sensor used to create the photo.
514 &quot;subjectDistance&quot;: 42, # The distance to the subject of the photo, in meters.
515 &quot;time&quot;: &quot;A String&quot;, # The date and time the photo was taken (EXIF DateTime).
516 &quot;whiteBalance&quot;: &quot;A String&quot;, # The white balance mode used to create the photo.
517 &quot;width&quot;: 42, # The width of the image in pixels.
518 },
519 &quot;isAppAuthorized&quot;: True or False, # Whether the file was created or opened by the requesting app.
520 &quot;kind&quot;: &quot;drive#file&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;drive#file&quot;.
521 &quot;lastModifyingUser&quot;: { # Information about a Drive user. # The last user to modify the file.
522 &quot;displayName&quot;: &quot;A String&quot;, # A plain text displayable name for this user.
523 &quot;emailAddress&quot;: &quot;A String&quot;, # The email address of the user. This may not be present in certain contexts if the user has not made their email address visible to the requester.
524 &quot;kind&quot;: &quot;drive#user&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;drive#user&quot;.
525 &quot;me&quot;: True or False, # Whether this user is the requesting user.
526 &quot;permissionId&quot;: &quot;A String&quot;, # The user&#x27;s ID as visible in Permission resources.
527 &quot;photoLink&quot;: &quot;A String&quot;, # A link to the user&#x27;s profile photo, if available.
528 },
yoshi-code-bot04bafe12021-06-29 00:20:25 -0700529 &quot;linkShareMetadata&quot;: { # Contains details about the link URLs that clients are using to refer to this item.
530 &quot;securityUpdateEligible&quot;: True or False, # Whether the file is eligible for security update.
531 &quot;securityUpdateEnabled&quot;: True or False, # Whether the security update is enabled for this file.
532 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800533 &quot;md5Checksum&quot;: &quot;A String&quot;, # The MD5 checksum for the content of the file. This is only applicable to files with binary content in Google Drive.
534 &quot;mimeType&quot;: &quot;A String&quot;, # The MIME type of the file.
535 # Google Drive will attempt to automatically detect an appropriate value from uploaded content if no value is provided. The value cannot be changed unless a new revision is uploaded.
536 # If a file is created with a Google Doc MIME type, the uploaded content will be imported if possible. The supported import formats are published in the About resource.
537 &quot;modifiedByMe&quot;: True or False, # Whether the file has been modified by this user.
538 &quot;modifiedByMeTime&quot;: &quot;A String&quot;, # The last time the file was modified by the user (RFC 3339 date-time).
539 &quot;modifiedTime&quot;: &quot;A String&quot;, # The last time the file was modified by anyone (RFC 3339 date-time).
540 # Note that setting modifiedTime will also update modifiedByMeTime for the user.
541 &quot;name&quot;: &quot;A String&quot;, # The name of the file. This is not necessarily unique within a folder. Note that for immutable items such as the top level folders of shared drives, My Drive root folder, and Application Data folder the name is constant.
542 &quot;originalFilename&quot;: &quot;A String&quot;, # The original filename of the uploaded content if available, or else the original value of the name field. This is only available for files with binary content in Google Drive.
543 &quot;ownedByMe&quot;: True or False, # Whether the user owns the file. Not populated for items in shared drives.
yoshi-code-botab1d6dc2021-05-28 00:42:02 -0700544 &quot;owners&quot;: [ # The owner of this file. Only certain legacy files may have more than one owner. This field isn&#x27;t populated for items in shared drives.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800545 { # Information about a Drive user.
Bu Sun Kim65020912020-05-20 12:08:20 -0700546 &quot;displayName&quot;: &quot;A String&quot;, # A plain text displayable name for this user.
547 &quot;emailAddress&quot;: &quot;A String&quot;, # The email address of the user. This may not be present in certain contexts if the user has not made their email address visible to the requester.
548 &quot;kind&quot;: &quot;drive#user&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;drive#user&quot;.
549 &quot;me&quot;: True or False, # Whether this user is the requesting user.
550 &quot;permissionId&quot;: &quot;A String&quot;, # The user&#x27;s ID as visible in Permission resources.
551 &quot;photoLink&quot;: &quot;A String&quot;, # A link to the user&#x27;s profile photo, if available.
552 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800553 ],
554 &quot;parents&quot;: [ # The IDs of the parent folders which contain the file.
555 # If not specified as part of a create request, the file will be placed directly in the user&#x27;s My Drive folder. If not specified as part of a copy request, the file will inherit any discoverable parents of the source file. Update requests must use the addParents and removeParents parameters to modify the parents list.
556 &quot;A String&quot;,
557 ],
558 &quot;permissionIds&quot;: [ # List of permission IDs for users with access to this file.
559 &quot;A String&quot;,
560 ],
561 &quot;permissions&quot;: [ # The full list of permissions for the file. This is only available if the requesting user can share the file. Not populated for items in shared drives.
562 { # A permission for a file. A permission grants a user, group, domain or the world access to a file or a folder hierarchy.
563 &quot;allowFileDiscovery&quot;: True or False, # Whether the permission allows the file to be discovered through search. This is only applicable for permissions of type domain or anyone.
564 &quot;deleted&quot;: True or False, # Whether the account associated with this permission has been deleted. This field only pertains to user and group permissions.
565 &quot;displayName&quot;: &quot;A String&quot;, # The &quot;pretty&quot; name of the value of the permission. The following is a list of examples for each type of permission:
566 # - user - User&#x27;s full name, as defined for their Google account, such as &quot;Joe Smith.&quot;
567 # - group - Name of the Google Group, such as &quot;The Company Administrators.&quot;
568 # - domain - String domain name, such as &quot;thecompany.com.&quot;
569 # - anyone - No displayName is present.
570 &quot;domain&quot;: &quot;A String&quot;, # The domain to which this permission refers.
571 &quot;emailAddress&quot;: &quot;A String&quot;, # The email address of the user or group to which this permission refers.
572 &quot;expirationTime&quot;: &quot;A String&quot;, # The time at which this permission will expire (RFC 3339 date-time). Expiration times have the following restrictions:
573 # - They can only be set on user and group permissions
574 # - The time must be in the future
575 # - The time cannot be more than a year in the future
576 &quot;id&quot;: &quot;A String&quot;, # The ID of this permission. This is a unique identifier for the grantee, and is published in User resources as permissionId. IDs should be treated as opaque values.
577 &quot;kind&quot;: &quot;drive#permission&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;drive#permission&quot;.
578 &quot;permissionDetails&quot;: [ # Details of whether the permissions on this shared drive item are inherited or directly on this item. This is an output-only field which is present only for shared drive items.
579 {
580 &quot;inherited&quot;: True or False, # Whether this permission is inherited. This field is always populated. This is an output-only field.
581 &quot;inheritedFrom&quot;: &quot;A String&quot;, # The ID of the item from which this permission is inherited. This is an output-only field.
582 &quot;permissionType&quot;: &quot;A String&quot;, # The permission type for this user. While new values may be added in future, the following are currently possible:
583 # - file
584 # - member
585 &quot;role&quot;: &quot;A String&quot;, # The primary role for this user. While new values may be added in the future, the following are currently possible:
586 # - organizer
587 # - fileOrganizer
588 # - writer
589 # - commenter
590 # - reader
591 },
592 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700593 &quot;photoLink&quot;: &quot;A String&quot;, # A link to the user&#x27;s profile photo, if available.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800594 &quot;role&quot;: &quot;A String&quot;, # The role granted by this permission. While new values may be supported in the future, the following are currently allowed:
595 # - owner
596 # - organizer
597 # - fileOrganizer
598 # - writer
599 # - commenter
600 # - reader
601 &quot;teamDrivePermissionDetails&quot;: [ # Deprecated - use permissionDetails instead.
602 {
603 &quot;inherited&quot;: True or False, # Deprecated - use permissionDetails/inherited instead.
604 &quot;inheritedFrom&quot;: &quot;A String&quot;, # Deprecated - use permissionDetails/inheritedFrom instead.
605 &quot;role&quot;: &quot;A String&quot;, # Deprecated - use permissionDetails/role instead.
606 &quot;teamDrivePermissionType&quot;: &quot;A String&quot;, # Deprecated - use permissionDetails/permissionType instead.
607 },
608 ],
609 &quot;type&quot;: &quot;A String&quot;, # The type of the grantee. Valid values are:
610 # - user
611 # - group
612 # - domain
613 # - anyone When creating a permission, if type is user or group, you must provide an emailAddress for the user or group. When type is domain, you must provide a domain. There isn&#x27;t extra information required for a anyone type.
614 &quot;view&quot;: &quot;A String&quot;, # Indicates the view for this permission. Only populated for permissions that belong to a view. published is the only supported value.
Bu Sun Kim65020912020-05-20 12:08:20 -0700615 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800616 ],
617 &quot;properties&quot;: { # A collection of arbitrary key-value pairs which are visible to all apps.
618 # Entries with null values are cleared in update and copy requests.
619 &quot;a_key&quot;: &quot;A String&quot;,
620 },
621 &quot;quotaBytesUsed&quot;: &quot;A String&quot;, # The number of storage quota bytes used by the file. This includes the head revision as well as previous revisions with keepForever enabled.
yoshi-code-bot04bafe12021-06-29 00:20:25 -0700622 &quot;resourceKey&quot;: &quot;A String&quot;, # A key needed to access the item via a shared link.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800623 &quot;shared&quot;: True or False, # Whether the file has been shared. Not populated for items in shared drives.
624 &quot;sharedWithMeTime&quot;: &quot;A String&quot;, # The time at which the file was shared with the user, if applicable (RFC 3339 date-time).
625 &quot;sharingUser&quot;: { # Information about a Drive user. # The user who shared the file with the requesting user, if applicable.
626 &quot;displayName&quot;: &quot;A String&quot;, # A plain text displayable name for this user.
627 &quot;emailAddress&quot;: &quot;A String&quot;, # The email address of the user. This may not be present in certain contexts if the user has not made their email address visible to the requester.
628 &quot;kind&quot;: &quot;drive#user&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;drive#user&quot;.
629 &quot;me&quot;: True or False, # Whether this user is the requesting user.
630 &quot;permissionId&quot;: &quot;A String&quot;, # The user&#x27;s ID as visible in Permission resources.
631 &quot;photoLink&quot;: &quot;A String&quot;, # A link to the user&#x27;s profile photo, if available.
632 },
633 &quot;shortcutDetails&quot;: { # Shortcut file details. Only populated for shortcut files, which have the mimeType field set to application/vnd.google-apps.shortcut.
634 &quot;targetId&quot;: &quot;A String&quot;, # The ID of the file that this shortcut points to.
635 &quot;targetMimeType&quot;: &quot;A String&quot;, # The MIME type of the file that this shortcut points to. The value of this field is a snapshot of the target&#x27;s MIME type, captured when the shortcut is created.
yoshi-code-bot04bafe12021-06-29 00:20:25 -0700636 &quot;targetResourceKey&quot;: &quot;A String&quot;, # The ResourceKey for the target file.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800637 },
638 &quot;size&quot;: &quot;A String&quot;, # The size of the file&#x27;s content in bytes. This is applicable to binary files in Google Drive and Google Docs files.
639 &quot;spaces&quot;: [ # The list of spaces which contain the file. The currently supported values are &#x27;drive&#x27;, &#x27;appDataFolder&#x27; and &#x27;photos&#x27;.
640 &quot;A String&quot;,
641 ],
642 &quot;starred&quot;: True or False, # Whether the user has starred the file.
643 &quot;teamDriveId&quot;: &quot;A String&quot;, # Deprecated - use driveId instead.
644 &quot;thumbnailLink&quot;: &quot;A String&quot;, # A short-lived link to the file&#x27;s thumbnail, if available. Typically lasts on the order of hours. Only populated when the requesting app can access the file&#x27;s content. If the file isn&#x27;t shared publicly, the URL returned in Files.thumbnailLink must be fetched using a credentialed request.
645 &quot;thumbnailVersion&quot;: &quot;A String&quot;, # The thumbnail version for use in thumbnail cache invalidation.
646 &quot;trashed&quot;: True or False, # Whether the file has been trashed, either explicitly or from a trashed parent folder. Only the owner may trash a file. The trashed item is excluded from all files.list responses returned for any user who does not own the file. However, all users with access to the file can see the trashed item metadata in an API response. All users with access can copy, download, export, and share the file.
647 &quot;trashedTime&quot;: &quot;A String&quot;, # The time that the item was trashed (RFC 3339 date-time). Only populated for items in shared drives.
648 &quot;trashingUser&quot;: { # Information about a Drive user. # If the file has been explicitly trashed, the user who trashed it. Only populated for items in shared drives.
649 &quot;displayName&quot;: &quot;A String&quot;, # A plain text displayable name for this user.
650 &quot;emailAddress&quot;: &quot;A String&quot;, # The email address of the user. This may not be present in certain contexts if the user has not made their email address visible to the requester.
651 &quot;kind&quot;: &quot;drive#user&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;drive#user&quot;.
652 &quot;me&quot;: True or False, # Whether this user is the requesting user.
653 &quot;permissionId&quot;: &quot;A String&quot;, # The user&#x27;s ID as visible in Permission resources.
654 &quot;photoLink&quot;: &quot;A String&quot;, # A link to the user&#x27;s profile photo, if available.
655 },
656 &quot;version&quot;: &quot;A String&quot;, # A monotonically increasing version number for the file. This reflects every change made to the file on the server, even those not visible to the user.
657 &quot;videoMediaMetadata&quot;: { # Additional metadata about video media. This may not be available immediately upon upload.
658 &quot;durationMillis&quot;: &quot;A String&quot;, # The duration of the video in milliseconds.
659 &quot;height&quot;: 42, # The height of the video in pixels.
660 &quot;width&quot;: 42, # The width of the video in pixels.
661 },
662 &quot;viewedByMe&quot;: True or False, # Whether the file has been viewed by this user.
663 &quot;viewedByMeTime&quot;: &quot;A String&quot;, # The last time the file was viewed by the user (RFC 3339 date-time).
664 &quot;viewersCanCopyContent&quot;: True or False, # Deprecated - use copyRequiresWriterPermission instead.
665 &quot;webContentLink&quot;: &quot;A String&quot;, # A link for downloading the content of the file in a browser. This is only available for files with binary content in Google Drive.
666 &quot;webViewLink&quot;: &quot;A String&quot;, # A link for opening the file in a relevant Google editor or viewer in a browser.
667 &quot;writersCanShare&quot;: True or False, # Whether users with only writer permission can modify the file&#x27;s permissions. Not populated for items in shared drives.
668}</pre>
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800669</div>
670
671<div class="method">
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800672 <code class="details" id="create">create(body=None, enforceSingleParent=None, ignoreDefaultVisibility=None, includePermissionsForView=None, keepRevisionForever=None, media_body=None, media_mime_type=None, ocrLanguage=None, supportsAllDrives=None, supportsTeamDrives=None, useContentAsIndexableText=None)</code>
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800673 <pre>Creates a new file.
674
675Args:
676 body: object, The request body.
677 The object takes the form of:
678
679{ # The metadata for a file.
Bu Sun Kim65020912020-05-20 12:08:20 -0700680 &quot;appProperties&quot;: { # A collection of arbitrary key-value pairs which are private to the requesting app.
yoshi-code-bot69706592021-03-03 03:54:02 -0800681 # Entries with null values are cleared in update and copy requests. These properties can only be retrieved using an authenticated request. An authenticated request uses an access token obtained with a OAuth 2 client ID. You cannot use an API key to retrieve private properties.
Bu Sun Kim65020912020-05-20 12:08:20 -0700682 &quot;a_key&quot;: &quot;A String&quot;,
683 },
684 &quot;capabilities&quot;: { # Capabilities the current user has on this file. Each capability corresponds to a fine-grained action that a user may take.
685 &quot;canAddChildren&quot;: True or False, # Whether the current user can add children to this folder. This is always false when the item is not a folder.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700686 &quot;canAddFolderFromAnotherDrive&quot;: True or False, # Whether the current user can add a folder from another drive (different shared drive or My Drive) to this folder. This is false when the item is not a folder. Only populated for items in shared drives.
Bu Sun Kim65020912020-05-20 12:08:20 -0700687 &quot;canAddMyDriveParent&quot;: True or False, # Whether the current user can add a parent for the item without removing an existing parent in the same request. Not populated for shared drive files.
688 &quot;canChangeCopyRequiresWriterPermission&quot;: True or False, # Whether the current user can change the copyRequiresWriterPermission restriction of this file.
yoshi-code-bot04bafe12021-06-29 00:20:25 -0700689 &quot;canChangeSecurityUpdateEnabled&quot;: True or False, # Whether the current user can change the securityUpdateEnabled field on link share metadata.
Bu Sun Kim65020912020-05-20 12:08:20 -0700690 &quot;canChangeViewersCanCopyContent&quot;: True or False, # Deprecated
691 &quot;canComment&quot;: True or False, # Whether the current user can comment on this file.
692 &quot;canCopy&quot;: True or False, # Whether the current user can copy this file. For an item in a shared drive, whether the current user can copy non-folder descendants of this item, or this item itself if it is not a folder.
693 &quot;canDelete&quot;: True or False, # Whether the current user can delete this file.
694 &quot;canDeleteChildren&quot;: True or False, # Whether the current user can delete children of this folder. This is false when the item is not a folder. Only populated for items in shared drives.
695 &quot;canDownload&quot;: True or False, # Whether the current user can download this file.
696 &quot;canEdit&quot;: True or False, # Whether the current user can edit this file. Other factors may limit the type of changes a user can make to a file. For example, see canChangeCopyRequiresWriterPermission or canModifyContent.
697 &quot;canListChildren&quot;: True or False, # Whether the current user can list the children of this folder. This is always false when the item is not a folder.
698 &quot;canModifyContent&quot;: True or False, # Whether the current user can modify the content of this file.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700699 &quot;canModifyContentRestriction&quot;: True or False, # Whether the current user can modify restrictions on content of this file.
Bu Sun Kim65020912020-05-20 12:08:20 -0700700 &quot;canMoveChildrenOutOfDrive&quot;: True or False, # Whether the current user can move children of this folder outside of the shared drive. This is false when the item is not a folder. Only populated for items in shared drives.
701 &quot;canMoveChildrenOutOfTeamDrive&quot;: True or False, # Deprecated - use canMoveChildrenOutOfDrive instead.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700702 &quot;canMoveChildrenWithinDrive&quot;: True or False, # Whether the current user can move children of this folder within this drive. This is false when the item is not a folder. Note that a request to move the child may still fail depending on the current user&#x27;s access to the child and to the destination folder.
Bu Sun Kim65020912020-05-20 12:08:20 -0700703 &quot;canMoveChildrenWithinTeamDrive&quot;: True or False, # Deprecated - use canMoveChildrenWithinDrive instead.
704 &quot;canMoveItemIntoTeamDrive&quot;: True or False, # Deprecated - use canMoveItemOutOfDrive instead.
705 &quot;canMoveItemOutOfDrive&quot;: True or False, # Whether the current user can move this item outside of this drive by changing its parent. Note that a request to change the parent of the item may still fail depending on the new parent that is being added.
706 &quot;canMoveItemOutOfTeamDrive&quot;: True or False, # Deprecated - use canMoveItemOutOfDrive instead.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700707 &quot;canMoveItemWithinDrive&quot;: True or False, # Whether the current user can move this item within this drive. Note that a request to change the parent of the item may still fail depending on the new parent that is being added and the parent that is being removed.
Bu Sun Kim65020912020-05-20 12:08:20 -0700708 &quot;canMoveItemWithinTeamDrive&quot;: True or False, # Deprecated - use canMoveItemWithinDrive instead.
709 &quot;canMoveTeamDriveItem&quot;: True or False, # Deprecated - use canMoveItemWithinDrive or canMoveItemOutOfDrive instead.
710 &quot;canReadDrive&quot;: True or False, # Whether the current user can read the shared drive to which this file belongs. Only populated for items in shared drives.
711 &quot;canReadRevisions&quot;: True or False, # Whether the current user can read the revisions resource of this file. For a shared drive item, whether revisions of non-folder descendants of this item, or this item itself if it is not a folder, can be read.
712 &quot;canReadTeamDrive&quot;: True or False, # Deprecated - use canReadDrive instead.
713 &quot;canRemoveChildren&quot;: True or False, # Whether the current user can remove children from this folder. This is always false when the item is not a folder. For a folder in a shared drive, use canDeleteChildren or canTrashChildren instead.
714 &quot;canRemoveMyDriveParent&quot;: True or False, # Whether the current user can remove a parent from the item without adding another parent in the same request. Not populated for shared drive files.
715 &quot;canRename&quot;: True or False, # Whether the current user can rename this file.
716 &quot;canShare&quot;: True or False, # Whether the current user can modify the sharing settings for this file.
717 &quot;canTrash&quot;: True or False, # Whether the current user can move this file to trash.
718 &quot;canTrashChildren&quot;: True or False, # Whether the current user can trash children of this folder. This is false when the item is not a folder. Only populated for items in shared drives.
719 &quot;canUntrash&quot;: True or False, # Whether the current user can restore this file from trash.
720 },
721 &quot;contentHints&quot;: { # Additional information about the content of the file. These fields are never populated in responses.
722 &quot;indexableText&quot;: &quot;A String&quot;, # Text to be indexed for the file to improve fullText queries. This is limited to 128KB in length and may contain HTML elements.
723 &quot;thumbnail&quot;: { # A thumbnail for the file. This will only be used if Google Drive cannot generate a standard thumbnail.
724 &quot;image&quot;: &quot;A String&quot;, # The thumbnail data encoded with URL-safe Base64 (RFC 4648 section 5).
725 &quot;mimeType&quot;: &quot;A String&quot;, # The MIME type of the thumbnail.
726 },
727 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700728 &quot;contentRestrictions&quot;: [ # Restrictions for accessing the content of the file. Only populated if such a restriction exists.
729 { # A restriction for accessing the content of the file.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700730 &quot;readOnly&quot;: True or False, # Whether the content of the file is read-only. If a file is read-only, a new revision of the file may not be added, comments may not be added or modified, and the title of the file may not be modified.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700731 &quot;reason&quot;: &quot;A String&quot;, # Reason for why the content of the file is restricted. This is only mutable on requests that also set readOnly=true.
732 &quot;restrictingUser&quot;: { # Information about a Drive user. # The user who set the content restriction. Only populated if readOnly is true.
733 &quot;displayName&quot;: &quot;A String&quot;, # A plain text displayable name for this user.
734 &quot;emailAddress&quot;: &quot;A String&quot;, # The email address of the user. This may not be present in certain contexts if the user has not made their email address visible to the requester.
735 &quot;kind&quot;: &quot;drive#user&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;drive#user&quot;.
736 &quot;me&quot;: True or False, # Whether this user is the requesting user.
737 &quot;permissionId&quot;: &quot;A String&quot;, # The user&#x27;s ID as visible in Permission resources.
738 &quot;photoLink&quot;: &quot;A String&quot;, # A link to the user&#x27;s profile photo, if available.
739 },
740 &quot;restrictionTime&quot;: &quot;A String&quot;, # The time at which the content restriction was set (formatted RFC 3339 timestamp). Only populated if readOnly is true.
741 &quot;type&quot;: &quot;A String&quot;, # The type of the content restriction. Currently the only possible value is globalContentRestriction.
742 },
743 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700744 &quot;copyRequiresWriterPermission&quot;: True or False, # Whether the options to copy, print, or download this file, should be disabled for readers and commenters.
745 &quot;createdTime&quot;: &quot;A String&quot;, # The time at which the file was created (RFC 3339 date-time).
746 &quot;description&quot;: &quot;A String&quot;, # A short description of the file.
747 &quot;driveId&quot;: &quot;A String&quot;, # ID of the shared drive the file resides in. Only populated for items in shared drives.
748 &quot;explicitlyTrashed&quot;: True or False, # Whether the file has been explicitly trashed, as opposed to recursively trashed from a parent folder.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700749 &quot;exportLinks&quot;: { # Links for exporting Docs Editors files to specific formats.
Bu Sun Kim65020912020-05-20 12:08:20 -0700750 &quot;a_key&quot;: &quot;A String&quot;, # A mapping from export format to URL
751 },
752 &quot;fileExtension&quot;: &quot;A String&quot;, # The final component of fullFileExtension. This is only available for files with binary content in Google Drive.
753 &quot;folderColorRgb&quot;: &quot;A String&quot;, # The color for a folder as an RGB hex string. The supported colors are published in the folderColorPalette field of the About resource.
754 # If an unsupported color is specified, the closest color in the palette will be used instead.
755 &quot;fullFileExtension&quot;: &quot;A String&quot;, # The full file extension extracted from the name field. May contain multiple concatenated extensions, such as &quot;tar.gz&quot;. This is only available for files with binary content in Google Drive.
756 # This is automatically updated when the name field changes, however it is not cleared if the new name does not contain a valid extension.
757 &quot;hasAugmentedPermissions&quot;: True or False, # Whether there are permissions directly on this file. This field is only populated for items in shared drives.
758 &quot;hasThumbnail&quot;: True or False, # Whether this file has a thumbnail. This does not indicate whether the requesting app has access to the thumbnail. To check access, look for the presence of the thumbnailLink field.
759 &quot;headRevisionId&quot;: &quot;A String&quot;, # The ID of the file&#x27;s head revision. This is currently only available for files with binary content in Google Drive.
760 &quot;iconLink&quot;: &quot;A String&quot;, # A static, unauthenticated link to the file&#x27;s icon.
761 &quot;id&quot;: &quot;A String&quot;, # The ID of the file.
762 &quot;imageMediaMetadata&quot;: { # Additional metadata about image media, if available.
763 &quot;aperture&quot;: 3.14, # The aperture used to create the photo (f-number).
764 &quot;cameraMake&quot;: &quot;A String&quot;, # The make of the camera used to create the photo.
765 &quot;cameraModel&quot;: &quot;A String&quot;, # The model of the camera used to create the photo.
766 &quot;colorSpace&quot;: &quot;A String&quot;, # The color space of the photo.
767 &quot;exposureBias&quot;: 3.14, # The exposure bias of the photo (APEX value).
768 &quot;exposureMode&quot;: &quot;A String&quot;, # The exposure mode used to create the photo.
769 &quot;exposureTime&quot;: 3.14, # The length of the exposure, in seconds.
770 &quot;flashUsed&quot;: True or False, # Whether a flash was used to create the photo.
771 &quot;focalLength&quot;: 3.14, # The focal length used to create the photo, in millimeters.
772 &quot;height&quot;: 42, # The height of the image in pixels.
773 &quot;isoSpeed&quot;: 42, # The ISO speed used to create the photo.
774 &quot;lens&quot;: &quot;A String&quot;, # The lens used to create the photo.
775 &quot;location&quot;: { # Geographic location information stored in the image.
776 &quot;altitude&quot;: 3.14, # The altitude stored in the image.
777 &quot;latitude&quot;: 3.14, # The latitude stored in the image.
778 &quot;longitude&quot;: 3.14, # The longitude stored in the image.
779 },
780 &quot;maxApertureValue&quot;: 3.14, # The smallest f-number of the lens at the focal length used to create the photo (APEX value).
781 &quot;meteringMode&quot;: &quot;A String&quot;, # The metering mode used to create the photo.
782 &quot;rotation&quot;: 42, # The number of clockwise 90 degree rotations applied from the image&#x27;s original orientation.
783 &quot;sensor&quot;: &quot;A String&quot;, # The type of sensor used to create the photo.
784 &quot;subjectDistance&quot;: 42, # The distance to the subject of the photo, in meters.
785 &quot;time&quot;: &quot;A String&quot;, # The date and time the photo was taken (EXIF DateTime).
786 &quot;whiteBalance&quot;: &quot;A String&quot;, # The white balance mode used to create the photo.
787 &quot;width&quot;: 42, # The width of the image in pixels.
788 },
789 &quot;isAppAuthorized&quot;: True or False, # Whether the file was created or opened by the requesting app.
790 &quot;kind&quot;: &quot;drive#file&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;drive#file&quot;.
791 &quot;lastModifyingUser&quot;: { # Information about a Drive user. # The last user to modify the file.
792 &quot;displayName&quot;: &quot;A String&quot;, # A plain text displayable name for this user.
793 &quot;emailAddress&quot;: &quot;A String&quot;, # The email address of the user. This may not be present in certain contexts if the user has not made their email address visible to the requester.
794 &quot;kind&quot;: &quot;drive#user&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;drive#user&quot;.
795 &quot;me&quot;: True or False, # Whether this user is the requesting user.
796 &quot;permissionId&quot;: &quot;A String&quot;, # The user&#x27;s ID as visible in Permission resources.
797 &quot;photoLink&quot;: &quot;A String&quot;, # A link to the user&#x27;s profile photo, if available.
798 },
yoshi-code-bot04bafe12021-06-29 00:20:25 -0700799 &quot;linkShareMetadata&quot;: { # Contains details about the link URLs that clients are using to refer to this item.
800 &quot;securityUpdateEligible&quot;: True or False, # Whether the file is eligible for security update.
801 &quot;securityUpdateEnabled&quot;: True or False, # Whether the security update is enabled for this file.
802 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700803 &quot;md5Checksum&quot;: &quot;A String&quot;, # The MD5 checksum for the content of the file. This is only applicable to files with binary content in Google Drive.
804 &quot;mimeType&quot;: &quot;A String&quot;, # The MIME type of the file.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700805 # Google Drive will attempt to automatically detect an appropriate value from uploaded content if no value is provided. The value cannot be changed unless a new revision is uploaded.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800806 # If a file is created with a Google Doc MIME type, the uploaded content will be imported if possible. The supported import formats are published in the About resource.
Bu Sun Kim65020912020-05-20 12:08:20 -0700807 &quot;modifiedByMe&quot;: True or False, # Whether the file has been modified by this user.
808 &quot;modifiedByMeTime&quot;: &quot;A String&quot;, # The last time the file was modified by the user (RFC 3339 date-time).
809 &quot;modifiedTime&quot;: &quot;A String&quot;, # The last time the file was modified by anyone (RFC 3339 date-time).
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800810 # Note that setting modifiedTime will also update modifiedByMeTime for the user.
Bu Sun Kim65020912020-05-20 12:08:20 -0700811 &quot;name&quot;: &quot;A String&quot;, # The name of the file. This is not necessarily unique within a folder. Note that for immutable items such as the top level folders of shared drives, My Drive root folder, and Application Data folder the name is constant.
812 &quot;originalFilename&quot;: &quot;A String&quot;, # The original filename of the uploaded content if available, or else the original value of the name field. This is only available for files with binary content in Google Drive.
813 &quot;ownedByMe&quot;: True or False, # Whether the user owns the file. Not populated for items in shared drives.
yoshi-code-botab1d6dc2021-05-28 00:42:02 -0700814 &quot;owners&quot;: [ # The owner of this file. Only certain legacy files may have more than one owner. This field isn&#x27;t populated for items in shared drives.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800815 { # Information about a Drive user.
Bu Sun Kim65020912020-05-20 12:08:20 -0700816 &quot;displayName&quot;: &quot;A String&quot;, # A plain text displayable name for this user.
817 &quot;emailAddress&quot;: &quot;A String&quot;, # The email address of the user. This may not be present in certain contexts if the user has not made their email address visible to the requester.
818 &quot;kind&quot;: &quot;drive#user&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;drive#user&quot;.
819 &quot;me&quot;: True or False, # Whether this user is the requesting user.
820 &quot;permissionId&quot;: &quot;A String&quot;, # The user&#x27;s ID as visible in Permission resources.
821 &quot;photoLink&quot;: &quot;A String&quot;, # A link to the user&#x27;s profile photo, if available.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800822 },
823 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700824 &quot;parents&quot;: [ # The IDs of the parent folders which contain the file.
825 # If not specified as part of a create request, the file will be placed directly in the user&#x27;s My Drive folder. If not specified as part of a copy request, the file will inherit any discoverable parents of the source file. Update requests must use the addParents and removeParents parameters to modify the parents list.
826 &quot;A String&quot;,
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800827 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700828 &quot;permissionIds&quot;: [ # List of permission IDs for users with access to this file.
829 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700830 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700831 &quot;permissions&quot;: [ # The full list of permissions for the file. This is only available if the requesting user can share the file. Not populated for items in shared drives.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700832 { # A permission for a file. A permission grants a user, group, domain or the world access to a file or a folder hierarchy.
Bu Sun Kim65020912020-05-20 12:08:20 -0700833 &quot;allowFileDiscovery&quot;: True or False, # Whether the permission allows the file to be discovered through search. This is only applicable for permissions of type domain or anyone.
834 &quot;deleted&quot;: True or False, # Whether the account associated with this permission has been deleted. This field only pertains to user and group permissions.
835 &quot;displayName&quot;: &quot;A String&quot;, # The &quot;pretty&quot; name of the value of the permission. The following is a list of examples for each type of permission:
836 # - user - User&#x27;s full name, as defined for their Google account, such as &quot;Joe Smith.&quot;
837 # - group - Name of the Google Group, such as &quot;The Company Administrators.&quot;
838 # - domain - String domain name, such as &quot;thecompany.com.&quot;
Dan O'Mearadd494642020-05-01 07:42:23 -0700839 # - anyone - No displayName is present.
Bu Sun Kim65020912020-05-20 12:08:20 -0700840 &quot;domain&quot;: &quot;A String&quot;, # The domain to which this permission refers.
841 &quot;emailAddress&quot;: &quot;A String&quot;, # The email address of the user or group to which this permission refers.
842 &quot;expirationTime&quot;: &quot;A String&quot;, # The time at which this permission will expire (RFC 3339 date-time). Expiration times have the following restrictions:
843 # - They can only be set on user and group permissions
844 # - The time must be in the future
845 # - The time cannot be more than a year in the future
846 &quot;id&quot;: &quot;A String&quot;, # The ID of this permission. This is a unique identifier for the grantee, and is published in User resources as permissionId. IDs should be treated as opaque values.
847 &quot;kind&quot;: &quot;drive#permission&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;drive#permission&quot;.
848 &quot;permissionDetails&quot;: [ # Details of whether the permissions on this shared drive item are inherited or directly on this item. This is an output-only field which is present only for shared drive items.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700849 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700850 &quot;inherited&quot;: True or False, # Whether this permission is inherited. This field is always populated. This is an output-only field.
851 &quot;inheritedFrom&quot;: &quot;A String&quot;, # The ID of the item from which this permission is inherited. This is an output-only field.
852 &quot;permissionType&quot;: &quot;A String&quot;, # The permission type for this user. While new values may be added in future, the following are currently possible:
853 # - file
854 # - member
855 &quot;role&quot;: &quot;A String&quot;, # The primary role for this user. While new values may be added in the future, the following are currently possible:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700856 # - organizer
857 # - fileOrganizer
858 # - writer
859 # - commenter
860 # - reader
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700861 },
862 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700863 &quot;photoLink&quot;: &quot;A String&quot;, # A link to the user&#x27;s profile photo, if available.
864 &quot;role&quot;: &quot;A String&quot;, # The role granted by this permission. While new values may be supported in the future, the following are currently allowed:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700865 # - owner
866 # - organizer
867 # - fileOrganizer
868 # - writer
869 # - commenter
870 # - reader
Bu Sun Kim65020912020-05-20 12:08:20 -0700871 &quot;teamDrivePermissionDetails&quot;: [ # Deprecated - use permissionDetails instead.
872 {
873 &quot;inherited&quot;: True or False, # Deprecated - use permissionDetails/inherited instead.
874 &quot;inheritedFrom&quot;: &quot;A String&quot;, # Deprecated - use permissionDetails/inheritedFrom instead.
875 &quot;role&quot;: &quot;A String&quot;, # Deprecated - use permissionDetails/role instead.
876 &quot;teamDrivePermissionType&quot;: &quot;A String&quot;, # Deprecated - use permissionDetails/permissionType instead.
877 },
878 ],
879 &quot;type&quot;: &quot;A String&quot;, # The type of the grantee. Valid values are:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700880 # - user
881 # - group
882 # - domain
Bu Sun Kim65020912020-05-20 12:08:20 -0700883 # - anyone When creating a permission, if type is user or group, you must provide an emailAddress for the user or group. When type is domain, you must provide a domain. There isn&#x27;t extra information required for a anyone type.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700884 &quot;view&quot;: &quot;A String&quot;, # Indicates the view for this permission. Only populated for permissions that belong to a view. published is the only supported value.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700885 },
886 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700887 &quot;properties&quot;: { # A collection of arbitrary key-value pairs which are visible to all apps.
888 # Entries with null values are cleared in update and copy requests.
889 &quot;a_key&quot;: &quot;A String&quot;,
890 },
891 &quot;quotaBytesUsed&quot;: &quot;A String&quot;, # The number of storage quota bytes used by the file. This includes the head revision as well as previous revisions with keepForever enabled.
yoshi-code-bot04bafe12021-06-29 00:20:25 -0700892 &quot;resourceKey&quot;: &quot;A String&quot;, # A key needed to access the item via a shared link.
Bu Sun Kim65020912020-05-20 12:08:20 -0700893 &quot;shared&quot;: True or False, # Whether the file has been shared. Not populated for items in shared drives.
894 &quot;sharedWithMeTime&quot;: &quot;A String&quot;, # The time at which the file was shared with the user, if applicable (RFC 3339 date-time).
895 &quot;sharingUser&quot;: { # Information about a Drive user. # The user who shared the file with the requesting user, if applicable.
896 &quot;displayName&quot;: &quot;A String&quot;, # A plain text displayable name for this user.
897 &quot;emailAddress&quot;: &quot;A String&quot;, # The email address of the user. This may not be present in certain contexts if the user has not made their email address visible to the requester.
898 &quot;kind&quot;: &quot;drive#user&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;drive#user&quot;.
899 &quot;me&quot;: True or False, # Whether this user is the requesting user.
900 &quot;permissionId&quot;: &quot;A String&quot;, # The user&#x27;s ID as visible in Permission resources.
901 &quot;photoLink&quot;: &quot;A String&quot;, # A link to the user&#x27;s profile photo, if available.
902 },
903 &quot;shortcutDetails&quot;: { # Shortcut file details. Only populated for shortcut files, which have the mimeType field set to application/vnd.google-apps.shortcut.
904 &quot;targetId&quot;: &quot;A String&quot;, # The ID of the file that this shortcut points to.
905 &quot;targetMimeType&quot;: &quot;A String&quot;, # The MIME type of the file that this shortcut points to. The value of this field is a snapshot of the target&#x27;s MIME type, captured when the shortcut is created.
yoshi-code-bot04bafe12021-06-29 00:20:25 -0700906 &quot;targetResourceKey&quot;: &quot;A String&quot;, # The ResourceKey for the target file.
Bu Sun Kim65020912020-05-20 12:08:20 -0700907 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700908 &quot;size&quot;: &quot;A String&quot;, # The size of the file&#x27;s content in bytes. This is applicable to binary files in Google Drive and Google Docs files.
Bu Sun Kim65020912020-05-20 12:08:20 -0700909 &quot;spaces&quot;: [ # The list of spaces which contain the file. The currently supported values are &#x27;drive&#x27;, &#x27;appDataFolder&#x27; and &#x27;photos&#x27;.
910 &quot;A String&quot;,
911 ],
912 &quot;starred&quot;: True or False, # Whether the user has starred the file.
913 &quot;teamDriveId&quot;: &quot;A String&quot;, # Deprecated - use driveId instead.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700914 &quot;thumbnailLink&quot;: &quot;A String&quot;, # A short-lived link to the file&#x27;s thumbnail, if available. Typically lasts on the order of hours. Only populated when the requesting app can access the file&#x27;s content. If the file isn&#x27;t shared publicly, the URL returned in Files.thumbnailLink must be fetched using a credentialed request.
Bu Sun Kim65020912020-05-20 12:08:20 -0700915 &quot;thumbnailVersion&quot;: &quot;A String&quot;, # The thumbnail version for use in thumbnail cache invalidation.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700916 &quot;trashed&quot;: True or False, # Whether the file has been trashed, either explicitly or from a trashed parent folder. Only the owner may trash a file. The trashed item is excluded from all files.list responses returned for any user who does not own the file. However, all users with access to the file can see the trashed item metadata in an API response. All users with access can copy, download, export, and share the file.
Bu Sun Kim65020912020-05-20 12:08:20 -0700917 &quot;trashedTime&quot;: &quot;A String&quot;, # The time that the item was trashed (RFC 3339 date-time). Only populated for items in shared drives.
918 &quot;trashingUser&quot;: { # Information about a Drive user. # If the file has been explicitly trashed, the user who trashed it. Only populated for items in shared drives.
919 &quot;displayName&quot;: &quot;A String&quot;, # A plain text displayable name for this user.
920 &quot;emailAddress&quot;: &quot;A String&quot;, # The email address of the user. This may not be present in certain contexts if the user has not made their email address visible to the requester.
921 &quot;kind&quot;: &quot;drive#user&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;drive#user&quot;.
922 &quot;me&quot;: True or False, # Whether this user is the requesting user.
923 &quot;permissionId&quot;: &quot;A String&quot;, # The user&#x27;s ID as visible in Permission resources.
924 &quot;photoLink&quot;: &quot;A String&quot;, # A link to the user&#x27;s profile photo, if available.
925 },
926 &quot;version&quot;: &quot;A String&quot;, # A monotonically increasing version number for the file. This reflects every change made to the file on the server, even those not visible to the user.
927 &quot;videoMediaMetadata&quot;: { # Additional metadata about video media. This may not be available immediately upon upload.
928 &quot;durationMillis&quot;: &quot;A String&quot;, # The duration of the video in milliseconds.
929 &quot;height&quot;: 42, # The height of the video in pixels.
930 &quot;width&quot;: 42, # The width of the video in pixels.
931 },
932 &quot;viewedByMe&quot;: True or False, # Whether the file has been viewed by this user.
933 &quot;viewedByMeTime&quot;: &quot;A String&quot;, # The last time the file was viewed by the user (RFC 3339 date-time).
934 &quot;viewersCanCopyContent&quot;: True or False, # Deprecated - use copyRequiresWriterPermission instead.
935 &quot;webContentLink&quot;: &quot;A String&quot;, # A link for downloading the content of the file in a browser. This is only available for files with binary content in Google Drive.
936 &quot;webViewLink&quot;: &quot;A String&quot;, # A link for opening the file in a relevant Google editor or viewer in a browser.
937 &quot;writersCanShare&quot;: True or False, # Whether users with only writer permission can modify the file&#x27;s permissions. Not populated for items in shared drives.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800938}
939
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800940 enforceSingleParent: boolean, Deprecated. Creating files in multiple folders is no longer supported.
Bu Sun Kim65020912020-05-20 12:08:20 -0700941 ignoreDefaultVisibility: boolean, Whether to ignore the domain&#x27;s default visibility settings for the created file. Domain administrators can choose to make all uploaded files visible to the domain by default; this parameter bypasses that behavior for the request. Permissions are still inherited from parent folders.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700942 includePermissionsForView: string, Specifies which additional view&#x27;s permissions to include in the response. Only &#x27;published&#x27; is supported.
Bu Sun Kim65020912020-05-20 12:08:20 -0700943 keepRevisionForever: boolean, Whether to set the &#x27;keepForever&#x27; field in the new head revision. This is only applicable to files with binary content in Google Drive. Only 200 revisions for the file can be kept forever. If the limit is reached, try deleting pinned revisions.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800944 media_body: string, The filename of the media request body, or an instance of a MediaUpload object.
945 media_mime_type: string, The MIME type of the media request body, or an instance of a MediaUpload object.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400946 ocrLanguage: string, A language hint for OCR processing during image import (ISO 639-1 code).
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700947 supportsAllDrives: boolean, Whether the requesting application supports both My Drives and shared drives.
Bu Sun Kim65020912020-05-20 12:08:20 -0700948 supportsTeamDrives: boolean, Deprecated use supportsAllDrives instead.
949 useContentAsIndexableText: boolean, Whether to use the uploaded content as indexable text.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800950
951Returns:
952 An object of the form:
953
954 { # The metadata for a file.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800955 &quot;appProperties&quot;: { # A collection of arbitrary key-value pairs which are private to the requesting app.
yoshi-code-bot69706592021-03-03 03:54:02 -0800956 # Entries with null values are cleared in update and copy requests. These properties can only be retrieved using an authenticated request. An authenticated request uses an access token obtained with a OAuth 2 client ID. You cannot use an API key to retrieve private properties.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800957 &quot;a_key&quot;: &quot;A String&quot;,
958 },
959 &quot;capabilities&quot;: { # Capabilities the current user has on this file. Each capability corresponds to a fine-grained action that a user may take.
960 &quot;canAddChildren&quot;: True or False, # Whether the current user can add children to this folder. This is always false when the item is not a folder.
961 &quot;canAddFolderFromAnotherDrive&quot;: True or False, # Whether the current user can add a folder from another drive (different shared drive or My Drive) to this folder. This is false when the item is not a folder. Only populated for items in shared drives.
962 &quot;canAddMyDriveParent&quot;: True or False, # Whether the current user can add a parent for the item without removing an existing parent in the same request. Not populated for shared drive files.
963 &quot;canChangeCopyRequiresWriterPermission&quot;: True or False, # Whether the current user can change the copyRequiresWriterPermission restriction of this file.
yoshi-code-bot04bafe12021-06-29 00:20:25 -0700964 &quot;canChangeSecurityUpdateEnabled&quot;: True or False, # Whether the current user can change the securityUpdateEnabled field on link share metadata.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800965 &quot;canChangeViewersCanCopyContent&quot;: True or False, # Deprecated
966 &quot;canComment&quot;: True or False, # Whether the current user can comment on this file.
967 &quot;canCopy&quot;: True or False, # Whether the current user can copy this file. For an item in a shared drive, whether the current user can copy non-folder descendants of this item, or this item itself if it is not a folder.
968 &quot;canDelete&quot;: True or False, # Whether the current user can delete this file.
969 &quot;canDeleteChildren&quot;: True or False, # Whether the current user can delete children of this folder. This is false when the item is not a folder. Only populated for items in shared drives.
970 &quot;canDownload&quot;: True or False, # Whether the current user can download this file.
971 &quot;canEdit&quot;: True or False, # Whether the current user can edit this file. Other factors may limit the type of changes a user can make to a file. For example, see canChangeCopyRequiresWriterPermission or canModifyContent.
972 &quot;canListChildren&quot;: True or False, # Whether the current user can list the children of this folder. This is always false when the item is not a folder.
973 &quot;canModifyContent&quot;: True or False, # Whether the current user can modify the content of this file.
974 &quot;canModifyContentRestriction&quot;: True or False, # Whether the current user can modify restrictions on content of this file.
975 &quot;canMoveChildrenOutOfDrive&quot;: True or False, # Whether the current user can move children of this folder outside of the shared drive. This is false when the item is not a folder. Only populated for items in shared drives.
976 &quot;canMoveChildrenOutOfTeamDrive&quot;: True or False, # Deprecated - use canMoveChildrenOutOfDrive instead.
977 &quot;canMoveChildrenWithinDrive&quot;: True or False, # Whether the current user can move children of this folder within this drive. This is false when the item is not a folder. Note that a request to move the child may still fail depending on the current user&#x27;s access to the child and to the destination folder.
978 &quot;canMoveChildrenWithinTeamDrive&quot;: True or False, # Deprecated - use canMoveChildrenWithinDrive instead.
979 &quot;canMoveItemIntoTeamDrive&quot;: True or False, # Deprecated - use canMoveItemOutOfDrive instead.
980 &quot;canMoveItemOutOfDrive&quot;: True or False, # Whether the current user can move this item outside of this drive by changing its parent. Note that a request to change the parent of the item may still fail depending on the new parent that is being added.
981 &quot;canMoveItemOutOfTeamDrive&quot;: True or False, # Deprecated - use canMoveItemOutOfDrive instead.
982 &quot;canMoveItemWithinDrive&quot;: True or False, # Whether the current user can move this item within this drive. Note that a request to change the parent of the item may still fail depending on the new parent that is being added and the parent that is being removed.
983 &quot;canMoveItemWithinTeamDrive&quot;: True or False, # Deprecated - use canMoveItemWithinDrive instead.
984 &quot;canMoveTeamDriveItem&quot;: True or False, # Deprecated - use canMoveItemWithinDrive or canMoveItemOutOfDrive instead.
985 &quot;canReadDrive&quot;: True or False, # Whether the current user can read the shared drive to which this file belongs. Only populated for items in shared drives.
986 &quot;canReadRevisions&quot;: True or False, # Whether the current user can read the revisions resource of this file. For a shared drive item, whether revisions of non-folder descendants of this item, or this item itself if it is not a folder, can be read.
987 &quot;canReadTeamDrive&quot;: True or False, # Deprecated - use canReadDrive instead.
988 &quot;canRemoveChildren&quot;: True or False, # Whether the current user can remove children from this folder. This is always false when the item is not a folder. For a folder in a shared drive, use canDeleteChildren or canTrashChildren instead.
989 &quot;canRemoveMyDriveParent&quot;: True or False, # Whether the current user can remove a parent from the item without adding another parent in the same request. Not populated for shared drive files.
990 &quot;canRename&quot;: True or False, # Whether the current user can rename this file.
991 &quot;canShare&quot;: True or False, # Whether the current user can modify the sharing settings for this file.
992 &quot;canTrash&quot;: True or False, # Whether the current user can move this file to trash.
993 &quot;canTrashChildren&quot;: True or False, # Whether the current user can trash children of this folder. This is false when the item is not a folder. Only populated for items in shared drives.
994 &quot;canUntrash&quot;: True or False, # Whether the current user can restore this file from trash.
995 },
996 &quot;contentHints&quot;: { # Additional information about the content of the file. These fields are never populated in responses.
997 &quot;indexableText&quot;: &quot;A String&quot;, # Text to be indexed for the file to improve fullText queries. This is limited to 128KB in length and may contain HTML elements.
998 &quot;thumbnail&quot;: { # A thumbnail for the file. This will only be used if Google Drive cannot generate a standard thumbnail.
999 &quot;image&quot;: &quot;A String&quot;, # The thumbnail data encoded with URL-safe Base64 (RFC 4648 section 5).
1000 &quot;mimeType&quot;: &quot;A String&quot;, # The MIME type of the thumbnail.
Bu Sun Kim65020912020-05-20 12:08:20 -07001001 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001002 },
1003 &quot;contentRestrictions&quot;: [ # Restrictions for accessing the content of the file. Only populated if such a restriction exists.
1004 { # A restriction for accessing the content of the file.
1005 &quot;readOnly&quot;: True or False, # Whether the content of the file is read-only. If a file is read-only, a new revision of the file may not be added, comments may not be added or modified, and the title of the file may not be modified.
1006 &quot;reason&quot;: &quot;A String&quot;, # Reason for why the content of the file is restricted. This is only mutable on requests that also set readOnly=true.
1007 &quot;restrictingUser&quot;: { # Information about a Drive user. # The user who set the content restriction. Only populated if readOnly is true.
Bu Sun Kim65020912020-05-20 12:08:20 -07001008 &quot;displayName&quot;: &quot;A String&quot;, # A plain text displayable name for this user.
1009 &quot;emailAddress&quot;: &quot;A String&quot;, # The email address of the user. This may not be present in certain contexts if the user has not made their email address visible to the requester.
1010 &quot;kind&quot;: &quot;drive#user&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;drive#user&quot;.
1011 &quot;me&quot;: True or False, # Whether this user is the requesting user.
1012 &quot;permissionId&quot;: &quot;A String&quot;, # The user&#x27;s ID as visible in Permission resources.
1013 &quot;photoLink&quot;: &quot;A String&quot;, # A link to the user&#x27;s profile photo, if available.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08001014 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001015 &quot;restrictionTime&quot;: &quot;A String&quot;, # The time at which the content restriction was set (formatted RFC 3339 timestamp). Only populated if readOnly is true.
1016 &quot;type&quot;: &quot;A String&quot;, # The type of the content restriction. Currently the only possible value is globalContentRestriction.
Bu Sun Kim65020912020-05-20 12:08:20 -07001017 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001018 ],
1019 &quot;copyRequiresWriterPermission&quot;: True or False, # Whether the options to copy, print, or download this file, should be disabled for readers and commenters.
1020 &quot;createdTime&quot;: &quot;A String&quot;, # The time at which the file was created (RFC 3339 date-time).
1021 &quot;description&quot;: &quot;A String&quot;, # A short description of the file.
1022 &quot;driveId&quot;: &quot;A String&quot;, # ID of the shared drive the file resides in. Only populated for items in shared drives.
1023 &quot;explicitlyTrashed&quot;: True or False, # Whether the file has been explicitly trashed, as opposed to recursively trashed from a parent folder.
1024 &quot;exportLinks&quot;: { # Links for exporting Docs Editors files to specific formats.
1025 &quot;a_key&quot;: &quot;A String&quot;, # A mapping from export format to URL
1026 },
1027 &quot;fileExtension&quot;: &quot;A String&quot;, # The final component of fullFileExtension. This is only available for files with binary content in Google Drive.
1028 &quot;folderColorRgb&quot;: &quot;A String&quot;, # The color for a folder as an RGB hex string. The supported colors are published in the folderColorPalette field of the About resource.
1029 # If an unsupported color is specified, the closest color in the palette will be used instead.
1030 &quot;fullFileExtension&quot;: &quot;A String&quot;, # The full file extension extracted from the name field. May contain multiple concatenated extensions, such as &quot;tar.gz&quot;. This is only available for files with binary content in Google Drive.
1031 # This is automatically updated when the name field changes, however it is not cleared if the new name does not contain a valid extension.
1032 &quot;hasAugmentedPermissions&quot;: True or False, # Whether there are permissions directly on this file. This field is only populated for items in shared drives.
1033 &quot;hasThumbnail&quot;: True or False, # Whether this file has a thumbnail. This does not indicate whether the requesting app has access to the thumbnail. To check access, look for the presence of the thumbnailLink field.
1034 &quot;headRevisionId&quot;: &quot;A String&quot;, # The ID of the file&#x27;s head revision. This is currently only available for files with binary content in Google Drive.
1035 &quot;iconLink&quot;: &quot;A String&quot;, # A static, unauthenticated link to the file&#x27;s icon.
1036 &quot;id&quot;: &quot;A String&quot;, # The ID of the file.
1037 &quot;imageMediaMetadata&quot;: { # Additional metadata about image media, if available.
1038 &quot;aperture&quot;: 3.14, # The aperture used to create the photo (f-number).
1039 &quot;cameraMake&quot;: &quot;A String&quot;, # The make of the camera used to create the photo.
1040 &quot;cameraModel&quot;: &quot;A String&quot;, # The model of the camera used to create the photo.
1041 &quot;colorSpace&quot;: &quot;A String&quot;, # The color space of the photo.
1042 &quot;exposureBias&quot;: 3.14, # The exposure bias of the photo (APEX value).
1043 &quot;exposureMode&quot;: &quot;A String&quot;, # The exposure mode used to create the photo.
1044 &quot;exposureTime&quot;: 3.14, # The length of the exposure, in seconds.
1045 &quot;flashUsed&quot;: True or False, # Whether a flash was used to create the photo.
1046 &quot;focalLength&quot;: 3.14, # The focal length used to create the photo, in millimeters.
1047 &quot;height&quot;: 42, # The height of the image in pixels.
1048 &quot;isoSpeed&quot;: 42, # The ISO speed used to create the photo.
1049 &quot;lens&quot;: &quot;A String&quot;, # The lens used to create the photo.
1050 &quot;location&quot;: { # Geographic location information stored in the image.
1051 &quot;altitude&quot;: 3.14, # The altitude stored in the image.
1052 &quot;latitude&quot;: 3.14, # The latitude stored in the image.
1053 &quot;longitude&quot;: 3.14, # The longitude stored in the image.
1054 },
1055 &quot;maxApertureValue&quot;: 3.14, # The smallest f-number of the lens at the focal length used to create the photo (APEX value).
1056 &quot;meteringMode&quot;: &quot;A String&quot;, # The metering mode used to create the photo.
1057 &quot;rotation&quot;: 42, # The number of clockwise 90 degree rotations applied from the image&#x27;s original orientation.
1058 &quot;sensor&quot;: &quot;A String&quot;, # The type of sensor used to create the photo.
1059 &quot;subjectDistance&quot;: 42, # The distance to the subject of the photo, in meters.
1060 &quot;time&quot;: &quot;A String&quot;, # The date and time the photo was taken (EXIF DateTime).
1061 &quot;whiteBalance&quot;: &quot;A String&quot;, # The white balance mode used to create the photo.
1062 &quot;width&quot;: 42, # The width of the image in pixels.
1063 },
1064 &quot;isAppAuthorized&quot;: True or False, # Whether the file was created or opened by the requesting app.
1065 &quot;kind&quot;: &quot;drive#file&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;drive#file&quot;.
1066 &quot;lastModifyingUser&quot;: { # Information about a Drive user. # The last user to modify the file.
1067 &quot;displayName&quot;: &quot;A String&quot;, # A plain text displayable name for this user.
1068 &quot;emailAddress&quot;: &quot;A String&quot;, # The email address of the user. This may not be present in certain contexts if the user has not made their email address visible to the requester.
1069 &quot;kind&quot;: &quot;drive#user&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;drive#user&quot;.
1070 &quot;me&quot;: True or False, # Whether this user is the requesting user.
1071 &quot;permissionId&quot;: &quot;A String&quot;, # The user&#x27;s ID as visible in Permission resources.
1072 &quot;photoLink&quot;: &quot;A String&quot;, # A link to the user&#x27;s profile photo, if available.
1073 },
yoshi-code-bot04bafe12021-06-29 00:20:25 -07001074 &quot;linkShareMetadata&quot;: { # Contains details about the link URLs that clients are using to refer to this item.
1075 &quot;securityUpdateEligible&quot;: True or False, # Whether the file is eligible for security update.
1076 &quot;securityUpdateEnabled&quot;: True or False, # Whether the security update is enabled for this file.
1077 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001078 &quot;md5Checksum&quot;: &quot;A String&quot;, # The MD5 checksum for the content of the file. This is only applicable to files with binary content in Google Drive.
1079 &quot;mimeType&quot;: &quot;A String&quot;, # The MIME type of the file.
1080 # Google Drive will attempt to automatically detect an appropriate value from uploaded content if no value is provided. The value cannot be changed unless a new revision is uploaded.
1081 # If a file is created with a Google Doc MIME type, the uploaded content will be imported if possible. The supported import formats are published in the About resource.
1082 &quot;modifiedByMe&quot;: True or False, # Whether the file has been modified by this user.
1083 &quot;modifiedByMeTime&quot;: &quot;A String&quot;, # The last time the file was modified by the user (RFC 3339 date-time).
1084 &quot;modifiedTime&quot;: &quot;A String&quot;, # The last time the file was modified by anyone (RFC 3339 date-time).
1085 # Note that setting modifiedTime will also update modifiedByMeTime for the user.
1086 &quot;name&quot;: &quot;A String&quot;, # The name of the file. This is not necessarily unique within a folder. Note that for immutable items such as the top level folders of shared drives, My Drive root folder, and Application Data folder the name is constant.
1087 &quot;originalFilename&quot;: &quot;A String&quot;, # The original filename of the uploaded content if available, or else the original value of the name field. This is only available for files with binary content in Google Drive.
1088 &quot;ownedByMe&quot;: True or False, # Whether the user owns the file. Not populated for items in shared drives.
yoshi-code-botab1d6dc2021-05-28 00:42:02 -07001089 &quot;owners&quot;: [ # The owner of this file. Only certain legacy files may have more than one owner. This field isn&#x27;t populated for items in shared drives.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001090 { # Information about a Drive user.
Bu Sun Kim65020912020-05-20 12:08:20 -07001091 &quot;displayName&quot;: &quot;A String&quot;, # A plain text displayable name for this user.
1092 &quot;emailAddress&quot;: &quot;A String&quot;, # The email address of the user. This may not be present in certain contexts if the user has not made their email address visible to the requester.
1093 &quot;kind&quot;: &quot;drive#user&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;drive#user&quot;.
1094 &quot;me&quot;: True or False, # Whether this user is the requesting user.
1095 &quot;permissionId&quot;: &quot;A String&quot;, # The user&#x27;s ID as visible in Permission resources.
1096 &quot;photoLink&quot;: &quot;A String&quot;, # A link to the user&#x27;s profile photo, if available.
1097 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001098 ],
1099 &quot;parents&quot;: [ # The IDs of the parent folders which contain the file.
1100 # If not specified as part of a create request, the file will be placed directly in the user&#x27;s My Drive folder. If not specified as part of a copy request, the file will inherit any discoverable parents of the source file. Update requests must use the addParents and removeParents parameters to modify the parents list.
1101 &quot;A String&quot;,
1102 ],
1103 &quot;permissionIds&quot;: [ # List of permission IDs for users with access to this file.
1104 &quot;A String&quot;,
1105 ],
1106 &quot;permissions&quot;: [ # The full list of permissions for the file. This is only available if the requesting user can share the file. Not populated for items in shared drives.
1107 { # A permission for a file. A permission grants a user, group, domain or the world access to a file or a folder hierarchy.
1108 &quot;allowFileDiscovery&quot;: True or False, # Whether the permission allows the file to be discovered through search. This is only applicable for permissions of type domain or anyone.
1109 &quot;deleted&quot;: True or False, # Whether the account associated with this permission has been deleted. This field only pertains to user and group permissions.
1110 &quot;displayName&quot;: &quot;A String&quot;, # The &quot;pretty&quot; name of the value of the permission. The following is a list of examples for each type of permission:
1111 # - user - User&#x27;s full name, as defined for their Google account, such as &quot;Joe Smith.&quot;
1112 # - group - Name of the Google Group, such as &quot;The Company Administrators.&quot;
1113 # - domain - String domain name, such as &quot;thecompany.com.&quot;
1114 # - anyone - No displayName is present.
1115 &quot;domain&quot;: &quot;A String&quot;, # The domain to which this permission refers.
1116 &quot;emailAddress&quot;: &quot;A String&quot;, # The email address of the user or group to which this permission refers.
1117 &quot;expirationTime&quot;: &quot;A String&quot;, # The time at which this permission will expire (RFC 3339 date-time). Expiration times have the following restrictions:
1118 # - They can only be set on user and group permissions
1119 # - The time must be in the future
1120 # - The time cannot be more than a year in the future
1121 &quot;id&quot;: &quot;A String&quot;, # The ID of this permission. This is a unique identifier for the grantee, and is published in User resources as permissionId. IDs should be treated as opaque values.
1122 &quot;kind&quot;: &quot;drive#permission&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;drive#permission&quot;.
1123 &quot;permissionDetails&quot;: [ # Details of whether the permissions on this shared drive item are inherited or directly on this item. This is an output-only field which is present only for shared drive items.
1124 {
1125 &quot;inherited&quot;: True or False, # Whether this permission is inherited. This field is always populated. This is an output-only field.
1126 &quot;inheritedFrom&quot;: &quot;A String&quot;, # The ID of the item from which this permission is inherited. This is an output-only field.
1127 &quot;permissionType&quot;: &quot;A String&quot;, # The permission type for this user. While new values may be added in future, the following are currently possible:
1128 # - file
1129 # - member
1130 &quot;role&quot;: &quot;A String&quot;, # The primary role for this user. While new values may be added in the future, the following are currently possible:
1131 # - organizer
1132 # - fileOrganizer
1133 # - writer
1134 # - commenter
1135 # - reader
1136 },
1137 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001138 &quot;photoLink&quot;: &quot;A String&quot;, # A link to the user&#x27;s profile photo, if available.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001139 &quot;role&quot;: &quot;A String&quot;, # The role granted by this permission. While new values may be supported in the future, the following are currently allowed:
1140 # - owner
1141 # - organizer
1142 # - fileOrganizer
1143 # - writer
1144 # - commenter
1145 # - reader
1146 &quot;teamDrivePermissionDetails&quot;: [ # Deprecated - use permissionDetails instead.
1147 {
1148 &quot;inherited&quot;: True or False, # Deprecated - use permissionDetails/inherited instead.
1149 &quot;inheritedFrom&quot;: &quot;A String&quot;, # Deprecated - use permissionDetails/inheritedFrom instead.
1150 &quot;role&quot;: &quot;A String&quot;, # Deprecated - use permissionDetails/role instead.
1151 &quot;teamDrivePermissionType&quot;: &quot;A String&quot;, # Deprecated - use permissionDetails/permissionType instead.
1152 },
1153 ],
1154 &quot;type&quot;: &quot;A String&quot;, # The type of the grantee. Valid values are:
1155 # - user
1156 # - group
1157 # - domain
1158 # - anyone When creating a permission, if type is user or group, you must provide an emailAddress for the user or group. When type is domain, you must provide a domain. There isn&#x27;t extra information required for a anyone type.
1159 &quot;view&quot;: &quot;A String&quot;, # Indicates the view for this permission. Only populated for permissions that belong to a view. published is the only supported value.
Bu Sun Kim65020912020-05-20 12:08:20 -07001160 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001161 ],
1162 &quot;properties&quot;: { # A collection of arbitrary key-value pairs which are visible to all apps.
1163 # Entries with null values are cleared in update and copy requests.
1164 &quot;a_key&quot;: &quot;A String&quot;,
1165 },
1166 &quot;quotaBytesUsed&quot;: &quot;A String&quot;, # The number of storage quota bytes used by the file. This includes the head revision as well as previous revisions with keepForever enabled.
yoshi-code-bot04bafe12021-06-29 00:20:25 -07001167 &quot;resourceKey&quot;: &quot;A String&quot;, # A key needed to access the item via a shared link.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001168 &quot;shared&quot;: True or False, # Whether the file has been shared. Not populated for items in shared drives.
1169 &quot;sharedWithMeTime&quot;: &quot;A String&quot;, # The time at which the file was shared with the user, if applicable (RFC 3339 date-time).
1170 &quot;sharingUser&quot;: { # Information about a Drive user. # The user who shared the file with the requesting user, if applicable.
1171 &quot;displayName&quot;: &quot;A String&quot;, # A plain text displayable name for this user.
1172 &quot;emailAddress&quot;: &quot;A String&quot;, # The email address of the user. This may not be present in certain contexts if the user has not made their email address visible to the requester.
1173 &quot;kind&quot;: &quot;drive#user&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;drive#user&quot;.
1174 &quot;me&quot;: True or False, # Whether this user is the requesting user.
1175 &quot;permissionId&quot;: &quot;A String&quot;, # The user&#x27;s ID as visible in Permission resources.
1176 &quot;photoLink&quot;: &quot;A String&quot;, # A link to the user&#x27;s profile photo, if available.
1177 },
1178 &quot;shortcutDetails&quot;: { # Shortcut file details. Only populated for shortcut files, which have the mimeType field set to application/vnd.google-apps.shortcut.
1179 &quot;targetId&quot;: &quot;A String&quot;, # The ID of the file that this shortcut points to.
1180 &quot;targetMimeType&quot;: &quot;A String&quot;, # The MIME type of the file that this shortcut points to. The value of this field is a snapshot of the target&#x27;s MIME type, captured when the shortcut is created.
yoshi-code-bot04bafe12021-06-29 00:20:25 -07001181 &quot;targetResourceKey&quot;: &quot;A String&quot;, # The ResourceKey for the target file.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001182 },
1183 &quot;size&quot;: &quot;A String&quot;, # The size of the file&#x27;s content in bytes. This is applicable to binary files in Google Drive and Google Docs files.
1184 &quot;spaces&quot;: [ # The list of spaces which contain the file. The currently supported values are &#x27;drive&#x27;, &#x27;appDataFolder&#x27; and &#x27;photos&#x27;.
1185 &quot;A String&quot;,
1186 ],
1187 &quot;starred&quot;: True or False, # Whether the user has starred the file.
1188 &quot;teamDriveId&quot;: &quot;A String&quot;, # Deprecated - use driveId instead.
1189 &quot;thumbnailLink&quot;: &quot;A String&quot;, # A short-lived link to the file&#x27;s thumbnail, if available. Typically lasts on the order of hours. Only populated when the requesting app can access the file&#x27;s content. If the file isn&#x27;t shared publicly, the URL returned in Files.thumbnailLink must be fetched using a credentialed request.
1190 &quot;thumbnailVersion&quot;: &quot;A String&quot;, # The thumbnail version for use in thumbnail cache invalidation.
1191 &quot;trashed&quot;: True or False, # Whether the file has been trashed, either explicitly or from a trashed parent folder. Only the owner may trash a file. The trashed item is excluded from all files.list responses returned for any user who does not own the file. However, all users with access to the file can see the trashed item metadata in an API response. All users with access can copy, download, export, and share the file.
1192 &quot;trashedTime&quot;: &quot;A String&quot;, # The time that the item was trashed (RFC 3339 date-time). Only populated for items in shared drives.
1193 &quot;trashingUser&quot;: { # Information about a Drive user. # If the file has been explicitly trashed, the user who trashed it. Only populated for items in shared drives.
1194 &quot;displayName&quot;: &quot;A String&quot;, # A plain text displayable name for this user.
1195 &quot;emailAddress&quot;: &quot;A String&quot;, # The email address of the user. This may not be present in certain contexts if the user has not made their email address visible to the requester.
1196 &quot;kind&quot;: &quot;drive#user&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;drive#user&quot;.
1197 &quot;me&quot;: True or False, # Whether this user is the requesting user.
1198 &quot;permissionId&quot;: &quot;A String&quot;, # The user&#x27;s ID as visible in Permission resources.
1199 &quot;photoLink&quot;: &quot;A String&quot;, # A link to the user&#x27;s profile photo, if available.
1200 },
1201 &quot;version&quot;: &quot;A String&quot;, # A monotonically increasing version number for the file. This reflects every change made to the file on the server, even those not visible to the user.
1202 &quot;videoMediaMetadata&quot;: { # Additional metadata about video media. This may not be available immediately upon upload.
1203 &quot;durationMillis&quot;: &quot;A String&quot;, # The duration of the video in milliseconds.
1204 &quot;height&quot;: 42, # The height of the video in pixels.
1205 &quot;width&quot;: 42, # The width of the video in pixels.
1206 },
1207 &quot;viewedByMe&quot;: True or False, # Whether the file has been viewed by this user.
1208 &quot;viewedByMeTime&quot;: &quot;A String&quot;, # The last time the file was viewed by the user (RFC 3339 date-time).
1209 &quot;viewersCanCopyContent&quot;: True or False, # Deprecated - use copyRequiresWriterPermission instead.
1210 &quot;webContentLink&quot;: &quot;A String&quot;, # A link for downloading the content of the file in a browser. This is only available for files with binary content in Google Drive.
1211 &quot;webViewLink&quot;: &quot;A String&quot;, # A link for opening the file in a relevant Google editor or viewer in a browser.
1212 &quot;writersCanShare&quot;: True or False, # Whether users with only writer permission can modify the file&#x27;s permissions. Not populated for items in shared drives.
1213}</pre>
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08001214</div>
1215
1216<div class="method">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001217 <code class="details" id="delete">delete(fileId, enforceSingleParent=None, supportsAllDrives=None, supportsTeamDrives=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001218 <pre>Permanently deletes a file owned by the user without moving it to the trash. If the file belongs to a shared drive the user must be an organizer on the parent. If the target is a folder, all descendants owned by the user are also deleted.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08001219
1220Args:
1221 fileId: string, The ID of the file. (required)
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001222 enforceSingleParent: boolean, Deprecated. If an item is not in a shared drive and its last parent is deleted but the item itself is not, the item will be placed under its owner&#x27;s root.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001223 supportsAllDrives: boolean, Whether the requesting application supports both My Drives and shared drives.
Bu Sun Kim65020912020-05-20 12:08:20 -07001224 supportsTeamDrives: boolean, Deprecated use supportsAllDrives instead.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08001225</pre>
1226</div>
1227
1228<div class="method">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001229 <code class="details" id="emptyTrash">emptyTrash(enforceSingleParent=None)</code>
Bu Sun Kim65020912020-05-20 12:08:20 -07001230 <pre>Permanently deletes all of the user&#x27;s trashed files.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08001231
1232Args:
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001233 enforceSingleParent: boolean, Deprecated. If an item is not in a shared drive and its last parent is deleted but the item itself is not, the item will be placed under its owner&#x27;s root.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08001234</pre>
1235</div>
1236
1237<div class="method">
1238 <code class="details" id="export">export(fileId, mimeType)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001239 <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.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08001240
1241Args:
1242 fileId: string, The ID of the file. (required)
1243 mimeType: string, The MIME type of the format requested for this export. (required)
1244</pre>
1245</div>
1246
1247<div class="method">
1248 <code class="details" id="export_media">export_media(fileId, mimeType)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001249 <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.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08001250
1251Args:
1252 fileId: string, The ID of the file. (required)
1253 mimeType: string, The MIME type of the format requested for this export. (required)
1254</pre>
1255</div>
1256
1257<div class="method">
yoshi-code-botc2cd3262021-05-16 02:16:04 -07001258 <code class="details" id="generateIds">generateIds(count=None, space=None, type=None)</code>
Dan O'Mearadd494642020-05-01 07:42:23 -07001259 <pre>Generates a set of file IDs which can be provided in create or copy requests.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08001260
1261Args:
1262 count: integer, The number of IDs to return.
yoshi-code-botc2cd3262021-05-16 02:16:04 -07001263 space: string, The space in which the IDs can be used to create new files. Supported values are &#x27;drive&#x27; and &#x27;appDataFolder&#x27;. (Default: &#x27;drive&#x27;)
1264 type: string, The type of items which the IDs can be used for. Supported values are &#x27;files&#x27; and &#x27;shortcuts&#x27;. Note that &#x27;shortcuts&#x27; are only supported in the drive &#x27;space&#x27;. (Default: &#x27;files&#x27;)
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08001265
1266Returns:
1267 An object of the form:
1268
1269 { # A list of generated file IDs which can be provided in create requests.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001270 &quot;ids&quot;: [ # The IDs generated for the requesting user in the specified space.
1271 &quot;A String&quot;,
1272 ],
1273 &quot;kind&quot;: &quot;drive#generatedIds&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;drive#generatedIds&quot;.
1274 &quot;space&quot;: &quot;A String&quot;, # The type of file that can be created with these IDs.
1275}</pre>
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08001276</div>
1277
1278<div class="method">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001279 <code class="details" id="get">get(fileId, acknowledgeAbuse=None, includePermissionsForView=None, supportsAllDrives=None, supportsTeamDrives=None)</code>
Bu Sun Kim65020912020-05-20 12:08:20 -07001280 <pre>Gets a file&#x27;s metadata or content by ID.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08001281
1282Args:
1283 fileId: string, The ID of the file. (required)
1284 acknowledgeAbuse: boolean, Whether the user is acknowledging the risk of downloading known malware or other abusive files. This is only applicable when alt=media.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001285 includePermissionsForView: string, Specifies which additional view&#x27;s permissions to include in the response. Only &#x27;published&#x27; is supported.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001286 supportsAllDrives: boolean, Whether the requesting application supports both My Drives and shared drives.
Bu Sun Kim65020912020-05-20 12:08:20 -07001287 supportsTeamDrives: boolean, Deprecated use supportsAllDrives instead.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08001288
1289Returns:
1290 An object of the form:
1291
1292 { # The metadata for a file.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001293 &quot;appProperties&quot;: { # A collection of arbitrary key-value pairs which are private to the requesting app.
yoshi-code-bot69706592021-03-03 03:54:02 -08001294 # Entries with null values are cleared in update and copy requests. These properties can only be retrieved using an authenticated request. An authenticated request uses an access token obtained with a OAuth 2 client ID. You cannot use an API key to retrieve private properties.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001295 &quot;a_key&quot;: &quot;A String&quot;,
1296 },
1297 &quot;capabilities&quot;: { # Capabilities the current user has on this file. Each capability corresponds to a fine-grained action that a user may take.
1298 &quot;canAddChildren&quot;: True or False, # Whether the current user can add children to this folder. This is always false when the item is not a folder.
1299 &quot;canAddFolderFromAnotherDrive&quot;: True or False, # Whether the current user can add a folder from another drive (different shared drive or My Drive) to this folder. This is false when the item is not a folder. Only populated for items in shared drives.
1300 &quot;canAddMyDriveParent&quot;: True or False, # Whether the current user can add a parent for the item without removing an existing parent in the same request. Not populated for shared drive files.
1301 &quot;canChangeCopyRequiresWriterPermission&quot;: True or False, # Whether the current user can change the copyRequiresWriterPermission restriction of this file.
yoshi-code-bot04bafe12021-06-29 00:20:25 -07001302 &quot;canChangeSecurityUpdateEnabled&quot;: True or False, # Whether the current user can change the securityUpdateEnabled field on link share metadata.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001303 &quot;canChangeViewersCanCopyContent&quot;: True or False, # Deprecated
1304 &quot;canComment&quot;: True or False, # Whether the current user can comment on this file.
1305 &quot;canCopy&quot;: True or False, # Whether the current user can copy this file. For an item in a shared drive, whether the current user can copy non-folder descendants of this item, or this item itself if it is not a folder.
1306 &quot;canDelete&quot;: True or False, # Whether the current user can delete this file.
1307 &quot;canDeleteChildren&quot;: True or False, # Whether the current user can delete children of this folder. This is false when the item is not a folder. Only populated for items in shared drives.
1308 &quot;canDownload&quot;: True or False, # Whether the current user can download this file.
1309 &quot;canEdit&quot;: True or False, # Whether the current user can edit this file. Other factors may limit the type of changes a user can make to a file. For example, see canChangeCopyRequiresWriterPermission or canModifyContent.
1310 &quot;canListChildren&quot;: True or False, # Whether the current user can list the children of this folder. This is always false when the item is not a folder.
1311 &quot;canModifyContent&quot;: True or False, # Whether the current user can modify the content of this file.
1312 &quot;canModifyContentRestriction&quot;: True or False, # Whether the current user can modify restrictions on content of this file.
1313 &quot;canMoveChildrenOutOfDrive&quot;: True or False, # Whether the current user can move children of this folder outside of the shared drive. This is false when the item is not a folder. Only populated for items in shared drives.
1314 &quot;canMoveChildrenOutOfTeamDrive&quot;: True or False, # Deprecated - use canMoveChildrenOutOfDrive instead.
1315 &quot;canMoveChildrenWithinDrive&quot;: True or False, # Whether the current user can move children of this folder within this drive. This is false when the item is not a folder. Note that a request to move the child may still fail depending on the current user&#x27;s access to the child and to the destination folder.
1316 &quot;canMoveChildrenWithinTeamDrive&quot;: True or False, # Deprecated - use canMoveChildrenWithinDrive instead.
1317 &quot;canMoveItemIntoTeamDrive&quot;: True or False, # Deprecated - use canMoveItemOutOfDrive instead.
1318 &quot;canMoveItemOutOfDrive&quot;: True or False, # Whether the current user can move this item outside of this drive by changing its parent. Note that a request to change the parent of the item may still fail depending on the new parent that is being added.
1319 &quot;canMoveItemOutOfTeamDrive&quot;: True or False, # Deprecated - use canMoveItemOutOfDrive instead.
1320 &quot;canMoveItemWithinDrive&quot;: True or False, # Whether the current user can move this item within this drive. Note that a request to change the parent of the item may still fail depending on the new parent that is being added and the parent that is being removed.
1321 &quot;canMoveItemWithinTeamDrive&quot;: True or False, # Deprecated - use canMoveItemWithinDrive instead.
1322 &quot;canMoveTeamDriveItem&quot;: True or False, # Deprecated - use canMoveItemWithinDrive or canMoveItemOutOfDrive instead.
1323 &quot;canReadDrive&quot;: True or False, # Whether the current user can read the shared drive to which this file belongs. Only populated for items in shared drives.
1324 &quot;canReadRevisions&quot;: True or False, # Whether the current user can read the revisions resource of this file. For a shared drive item, whether revisions of non-folder descendants of this item, or this item itself if it is not a folder, can be read.
1325 &quot;canReadTeamDrive&quot;: True or False, # Deprecated - use canReadDrive instead.
1326 &quot;canRemoveChildren&quot;: True or False, # Whether the current user can remove children from this folder. This is always false when the item is not a folder. For a folder in a shared drive, use canDeleteChildren or canTrashChildren instead.
1327 &quot;canRemoveMyDriveParent&quot;: True or False, # Whether the current user can remove a parent from the item without adding another parent in the same request. Not populated for shared drive files.
1328 &quot;canRename&quot;: True or False, # Whether the current user can rename this file.
1329 &quot;canShare&quot;: True or False, # Whether the current user can modify the sharing settings for this file.
1330 &quot;canTrash&quot;: True or False, # Whether the current user can move this file to trash.
1331 &quot;canTrashChildren&quot;: True or False, # Whether the current user can trash children of this folder. This is false when the item is not a folder. Only populated for items in shared drives.
1332 &quot;canUntrash&quot;: True or False, # Whether the current user can restore this file from trash.
1333 },
1334 &quot;contentHints&quot;: { # Additional information about the content of the file. These fields are never populated in responses.
1335 &quot;indexableText&quot;: &quot;A String&quot;, # Text to be indexed for the file to improve fullText queries. This is limited to 128KB in length and may contain HTML elements.
1336 &quot;thumbnail&quot;: { # A thumbnail for the file. This will only be used if Google Drive cannot generate a standard thumbnail.
1337 &quot;image&quot;: &quot;A String&quot;, # The thumbnail data encoded with URL-safe Base64 (RFC 4648 section 5).
1338 &quot;mimeType&quot;: &quot;A String&quot;, # The MIME type of the thumbnail.
Bu Sun Kim65020912020-05-20 12:08:20 -07001339 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001340 },
1341 &quot;contentRestrictions&quot;: [ # Restrictions for accessing the content of the file. Only populated if such a restriction exists.
1342 { # A restriction for accessing the content of the file.
1343 &quot;readOnly&quot;: True or False, # Whether the content of the file is read-only. If a file is read-only, a new revision of the file may not be added, comments may not be added or modified, and the title of the file may not be modified.
1344 &quot;reason&quot;: &quot;A String&quot;, # Reason for why the content of the file is restricted. This is only mutable on requests that also set readOnly=true.
1345 &quot;restrictingUser&quot;: { # Information about a Drive user. # The user who set the content restriction. Only populated if readOnly is true.
Bu Sun Kim65020912020-05-20 12:08:20 -07001346 &quot;displayName&quot;: &quot;A String&quot;, # A plain text displayable name for this user.
1347 &quot;emailAddress&quot;: &quot;A String&quot;, # The email address of the user. This may not be present in certain contexts if the user has not made their email address visible to the requester.
1348 &quot;kind&quot;: &quot;drive#user&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;drive#user&quot;.
1349 &quot;me&quot;: True or False, # Whether this user is the requesting user.
1350 &quot;permissionId&quot;: &quot;A String&quot;, # The user&#x27;s ID as visible in Permission resources.
1351 &quot;photoLink&quot;: &quot;A String&quot;, # A link to the user&#x27;s profile photo, if available.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08001352 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001353 &quot;restrictionTime&quot;: &quot;A String&quot;, # The time at which the content restriction was set (formatted RFC 3339 timestamp). Only populated if readOnly is true.
1354 &quot;type&quot;: &quot;A String&quot;, # The type of the content restriction. Currently the only possible value is globalContentRestriction.
Bu Sun Kim65020912020-05-20 12:08:20 -07001355 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001356 ],
1357 &quot;copyRequiresWriterPermission&quot;: True or False, # Whether the options to copy, print, or download this file, should be disabled for readers and commenters.
1358 &quot;createdTime&quot;: &quot;A String&quot;, # The time at which the file was created (RFC 3339 date-time).
1359 &quot;description&quot;: &quot;A String&quot;, # A short description of the file.
1360 &quot;driveId&quot;: &quot;A String&quot;, # ID of the shared drive the file resides in. Only populated for items in shared drives.
1361 &quot;explicitlyTrashed&quot;: True or False, # Whether the file has been explicitly trashed, as opposed to recursively trashed from a parent folder.
1362 &quot;exportLinks&quot;: { # Links for exporting Docs Editors files to specific formats.
1363 &quot;a_key&quot;: &quot;A String&quot;, # A mapping from export format to URL
1364 },
1365 &quot;fileExtension&quot;: &quot;A String&quot;, # The final component of fullFileExtension. This is only available for files with binary content in Google Drive.
1366 &quot;folderColorRgb&quot;: &quot;A String&quot;, # The color for a folder as an RGB hex string. The supported colors are published in the folderColorPalette field of the About resource.
1367 # If an unsupported color is specified, the closest color in the palette will be used instead.
1368 &quot;fullFileExtension&quot;: &quot;A String&quot;, # The full file extension extracted from the name field. May contain multiple concatenated extensions, such as &quot;tar.gz&quot;. This is only available for files with binary content in Google Drive.
1369 # This is automatically updated when the name field changes, however it is not cleared if the new name does not contain a valid extension.
1370 &quot;hasAugmentedPermissions&quot;: True or False, # Whether there are permissions directly on this file. This field is only populated for items in shared drives.
1371 &quot;hasThumbnail&quot;: True or False, # Whether this file has a thumbnail. This does not indicate whether the requesting app has access to the thumbnail. To check access, look for the presence of the thumbnailLink field.
1372 &quot;headRevisionId&quot;: &quot;A String&quot;, # The ID of the file&#x27;s head revision. This is currently only available for files with binary content in Google Drive.
1373 &quot;iconLink&quot;: &quot;A String&quot;, # A static, unauthenticated link to the file&#x27;s icon.
1374 &quot;id&quot;: &quot;A String&quot;, # The ID of the file.
1375 &quot;imageMediaMetadata&quot;: { # Additional metadata about image media, if available.
1376 &quot;aperture&quot;: 3.14, # The aperture used to create the photo (f-number).
1377 &quot;cameraMake&quot;: &quot;A String&quot;, # The make of the camera used to create the photo.
1378 &quot;cameraModel&quot;: &quot;A String&quot;, # The model of the camera used to create the photo.
1379 &quot;colorSpace&quot;: &quot;A String&quot;, # The color space of the photo.
1380 &quot;exposureBias&quot;: 3.14, # The exposure bias of the photo (APEX value).
1381 &quot;exposureMode&quot;: &quot;A String&quot;, # The exposure mode used to create the photo.
1382 &quot;exposureTime&quot;: 3.14, # The length of the exposure, in seconds.
1383 &quot;flashUsed&quot;: True or False, # Whether a flash was used to create the photo.
1384 &quot;focalLength&quot;: 3.14, # The focal length used to create the photo, in millimeters.
1385 &quot;height&quot;: 42, # The height of the image in pixels.
1386 &quot;isoSpeed&quot;: 42, # The ISO speed used to create the photo.
1387 &quot;lens&quot;: &quot;A String&quot;, # The lens used to create the photo.
1388 &quot;location&quot;: { # Geographic location information stored in the image.
1389 &quot;altitude&quot;: 3.14, # The altitude stored in the image.
1390 &quot;latitude&quot;: 3.14, # The latitude stored in the image.
1391 &quot;longitude&quot;: 3.14, # The longitude stored in the image.
1392 },
1393 &quot;maxApertureValue&quot;: 3.14, # The smallest f-number of the lens at the focal length used to create the photo (APEX value).
1394 &quot;meteringMode&quot;: &quot;A String&quot;, # The metering mode used to create the photo.
1395 &quot;rotation&quot;: 42, # The number of clockwise 90 degree rotations applied from the image&#x27;s original orientation.
1396 &quot;sensor&quot;: &quot;A String&quot;, # The type of sensor used to create the photo.
1397 &quot;subjectDistance&quot;: 42, # The distance to the subject of the photo, in meters.
1398 &quot;time&quot;: &quot;A String&quot;, # The date and time the photo was taken (EXIF DateTime).
1399 &quot;whiteBalance&quot;: &quot;A String&quot;, # The white balance mode used to create the photo.
1400 &quot;width&quot;: 42, # The width of the image in pixels.
1401 },
1402 &quot;isAppAuthorized&quot;: True or False, # Whether the file was created or opened by the requesting app.
1403 &quot;kind&quot;: &quot;drive#file&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;drive#file&quot;.
1404 &quot;lastModifyingUser&quot;: { # Information about a Drive user. # The last user to modify the file.
1405 &quot;displayName&quot;: &quot;A String&quot;, # A plain text displayable name for this user.
1406 &quot;emailAddress&quot;: &quot;A String&quot;, # The email address of the user. This may not be present in certain contexts if the user has not made their email address visible to the requester.
1407 &quot;kind&quot;: &quot;drive#user&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;drive#user&quot;.
1408 &quot;me&quot;: True or False, # Whether this user is the requesting user.
1409 &quot;permissionId&quot;: &quot;A String&quot;, # The user&#x27;s ID as visible in Permission resources.
1410 &quot;photoLink&quot;: &quot;A String&quot;, # A link to the user&#x27;s profile photo, if available.
1411 },
yoshi-code-bot04bafe12021-06-29 00:20:25 -07001412 &quot;linkShareMetadata&quot;: { # Contains details about the link URLs that clients are using to refer to this item.
1413 &quot;securityUpdateEligible&quot;: True or False, # Whether the file is eligible for security update.
1414 &quot;securityUpdateEnabled&quot;: True or False, # Whether the security update is enabled for this file.
1415 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001416 &quot;md5Checksum&quot;: &quot;A String&quot;, # The MD5 checksum for the content of the file. This is only applicable to files with binary content in Google Drive.
1417 &quot;mimeType&quot;: &quot;A String&quot;, # The MIME type of the file.
1418 # Google Drive will attempt to automatically detect an appropriate value from uploaded content if no value is provided. The value cannot be changed unless a new revision is uploaded.
1419 # If a file is created with a Google Doc MIME type, the uploaded content will be imported if possible. The supported import formats are published in the About resource.
1420 &quot;modifiedByMe&quot;: True or False, # Whether the file has been modified by this user.
1421 &quot;modifiedByMeTime&quot;: &quot;A String&quot;, # The last time the file was modified by the user (RFC 3339 date-time).
1422 &quot;modifiedTime&quot;: &quot;A String&quot;, # The last time the file was modified by anyone (RFC 3339 date-time).
1423 # Note that setting modifiedTime will also update modifiedByMeTime for the user.
1424 &quot;name&quot;: &quot;A String&quot;, # The name of the file. This is not necessarily unique within a folder. Note that for immutable items such as the top level folders of shared drives, My Drive root folder, and Application Data folder the name is constant.
1425 &quot;originalFilename&quot;: &quot;A String&quot;, # The original filename of the uploaded content if available, or else the original value of the name field. This is only available for files with binary content in Google Drive.
1426 &quot;ownedByMe&quot;: True or False, # Whether the user owns the file. Not populated for items in shared drives.
yoshi-code-botab1d6dc2021-05-28 00:42:02 -07001427 &quot;owners&quot;: [ # The owner of this file. Only certain legacy files may have more than one owner. This field isn&#x27;t populated for items in shared drives.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001428 { # Information about a Drive user.
Bu Sun Kim65020912020-05-20 12:08:20 -07001429 &quot;displayName&quot;: &quot;A String&quot;, # A plain text displayable name for this user.
1430 &quot;emailAddress&quot;: &quot;A String&quot;, # The email address of the user. This may not be present in certain contexts if the user has not made their email address visible to the requester.
1431 &quot;kind&quot;: &quot;drive#user&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;drive#user&quot;.
1432 &quot;me&quot;: True or False, # Whether this user is the requesting user.
1433 &quot;permissionId&quot;: &quot;A String&quot;, # The user&#x27;s ID as visible in Permission resources.
1434 &quot;photoLink&quot;: &quot;A String&quot;, # A link to the user&#x27;s profile photo, if available.
1435 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001436 ],
1437 &quot;parents&quot;: [ # The IDs of the parent folders which contain the file.
1438 # If not specified as part of a create request, the file will be placed directly in the user&#x27;s My Drive folder. If not specified as part of a copy request, the file will inherit any discoverable parents of the source file. Update requests must use the addParents and removeParents parameters to modify the parents list.
1439 &quot;A String&quot;,
1440 ],
1441 &quot;permissionIds&quot;: [ # List of permission IDs for users with access to this file.
1442 &quot;A String&quot;,
1443 ],
1444 &quot;permissions&quot;: [ # The full list of permissions for the file. This is only available if the requesting user can share the file. Not populated for items in shared drives.
1445 { # A permission for a file. A permission grants a user, group, domain or the world access to a file or a folder hierarchy.
1446 &quot;allowFileDiscovery&quot;: True or False, # Whether the permission allows the file to be discovered through search. This is only applicable for permissions of type domain or anyone.
1447 &quot;deleted&quot;: True or False, # Whether the account associated with this permission has been deleted. This field only pertains to user and group permissions.
1448 &quot;displayName&quot;: &quot;A String&quot;, # The &quot;pretty&quot; name of the value of the permission. The following is a list of examples for each type of permission:
1449 # - user - User&#x27;s full name, as defined for their Google account, such as &quot;Joe Smith.&quot;
1450 # - group - Name of the Google Group, such as &quot;The Company Administrators.&quot;
1451 # - domain - String domain name, such as &quot;thecompany.com.&quot;
1452 # - anyone - No displayName is present.
1453 &quot;domain&quot;: &quot;A String&quot;, # The domain to which this permission refers.
1454 &quot;emailAddress&quot;: &quot;A String&quot;, # The email address of the user or group to which this permission refers.
1455 &quot;expirationTime&quot;: &quot;A String&quot;, # The time at which this permission will expire (RFC 3339 date-time). Expiration times have the following restrictions:
1456 # - They can only be set on user and group permissions
1457 # - The time must be in the future
1458 # - The time cannot be more than a year in the future
1459 &quot;id&quot;: &quot;A String&quot;, # The ID of this permission. This is a unique identifier for the grantee, and is published in User resources as permissionId. IDs should be treated as opaque values.
1460 &quot;kind&quot;: &quot;drive#permission&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;drive#permission&quot;.
1461 &quot;permissionDetails&quot;: [ # Details of whether the permissions on this shared drive item are inherited or directly on this item. This is an output-only field which is present only for shared drive items.
1462 {
1463 &quot;inherited&quot;: True or False, # Whether this permission is inherited. This field is always populated. This is an output-only field.
1464 &quot;inheritedFrom&quot;: &quot;A String&quot;, # The ID of the item from which this permission is inherited. This is an output-only field.
1465 &quot;permissionType&quot;: &quot;A String&quot;, # The permission type for this user. While new values may be added in future, the following are currently possible:
1466 # - file
1467 # - member
1468 &quot;role&quot;: &quot;A String&quot;, # The primary role for this user. While new values may be added in the future, the following are currently possible:
1469 # - organizer
1470 # - fileOrganizer
1471 # - writer
1472 # - commenter
1473 # - reader
1474 },
1475 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001476 &quot;photoLink&quot;: &quot;A String&quot;, # A link to the user&#x27;s profile photo, if available.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001477 &quot;role&quot;: &quot;A String&quot;, # The role granted by this permission. While new values may be supported in the future, the following are currently allowed:
1478 # - owner
1479 # - organizer
1480 # - fileOrganizer
1481 # - writer
1482 # - commenter
1483 # - reader
1484 &quot;teamDrivePermissionDetails&quot;: [ # Deprecated - use permissionDetails instead.
1485 {
1486 &quot;inherited&quot;: True or False, # Deprecated - use permissionDetails/inherited instead.
1487 &quot;inheritedFrom&quot;: &quot;A String&quot;, # Deprecated - use permissionDetails/inheritedFrom instead.
1488 &quot;role&quot;: &quot;A String&quot;, # Deprecated - use permissionDetails/role instead.
1489 &quot;teamDrivePermissionType&quot;: &quot;A String&quot;, # Deprecated - use permissionDetails/permissionType instead.
1490 },
1491 ],
1492 &quot;type&quot;: &quot;A String&quot;, # The type of the grantee. Valid values are:
1493 # - user
1494 # - group
1495 # - domain
1496 # - anyone When creating a permission, if type is user or group, you must provide an emailAddress for the user or group. When type is domain, you must provide a domain. There isn&#x27;t extra information required for a anyone type.
1497 &quot;view&quot;: &quot;A String&quot;, # Indicates the view for this permission. Only populated for permissions that belong to a view. published is the only supported value.
Bu Sun Kim65020912020-05-20 12:08:20 -07001498 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001499 ],
1500 &quot;properties&quot;: { # A collection of arbitrary key-value pairs which are visible to all apps.
1501 # Entries with null values are cleared in update and copy requests.
1502 &quot;a_key&quot;: &quot;A String&quot;,
1503 },
1504 &quot;quotaBytesUsed&quot;: &quot;A String&quot;, # The number of storage quota bytes used by the file. This includes the head revision as well as previous revisions with keepForever enabled.
yoshi-code-bot04bafe12021-06-29 00:20:25 -07001505 &quot;resourceKey&quot;: &quot;A String&quot;, # A key needed to access the item via a shared link.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001506 &quot;shared&quot;: True or False, # Whether the file has been shared. Not populated for items in shared drives.
1507 &quot;sharedWithMeTime&quot;: &quot;A String&quot;, # The time at which the file was shared with the user, if applicable (RFC 3339 date-time).
1508 &quot;sharingUser&quot;: { # Information about a Drive user. # The user who shared the file with the requesting user, if applicable.
1509 &quot;displayName&quot;: &quot;A String&quot;, # A plain text displayable name for this user.
1510 &quot;emailAddress&quot;: &quot;A String&quot;, # The email address of the user. This may not be present in certain contexts if the user has not made their email address visible to the requester.
1511 &quot;kind&quot;: &quot;drive#user&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;drive#user&quot;.
1512 &quot;me&quot;: True or False, # Whether this user is the requesting user.
1513 &quot;permissionId&quot;: &quot;A String&quot;, # The user&#x27;s ID as visible in Permission resources.
1514 &quot;photoLink&quot;: &quot;A String&quot;, # A link to the user&#x27;s profile photo, if available.
1515 },
1516 &quot;shortcutDetails&quot;: { # Shortcut file details. Only populated for shortcut files, which have the mimeType field set to application/vnd.google-apps.shortcut.
1517 &quot;targetId&quot;: &quot;A String&quot;, # The ID of the file that this shortcut points to.
1518 &quot;targetMimeType&quot;: &quot;A String&quot;, # The MIME type of the file that this shortcut points to. The value of this field is a snapshot of the target&#x27;s MIME type, captured when the shortcut is created.
yoshi-code-bot04bafe12021-06-29 00:20:25 -07001519 &quot;targetResourceKey&quot;: &quot;A String&quot;, # The ResourceKey for the target file.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001520 },
1521 &quot;size&quot;: &quot;A String&quot;, # The size of the file&#x27;s content in bytes. This is applicable to binary files in Google Drive and Google Docs files.
1522 &quot;spaces&quot;: [ # The list of spaces which contain the file. The currently supported values are &#x27;drive&#x27;, &#x27;appDataFolder&#x27; and &#x27;photos&#x27;.
1523 &quot;A String&quot;,
1524 ],
1525 &quot;starred&quot;: True or False, # Whether the user has starred the file.
1526 &quot;teamDriveId&quot;: &quot;A String&quot;, # Deprecated - use driveId instead.
1527 &quot;thumbnailLink&quot;: &quot;A String&quot;, # A short-lived link to the file&#x27;s thumbnail, if available. Typically lasts on the order of hours. Only populated when the requesting app can access the file&#x27;s content. If the file isn&#x27;t shared publicly, the URL returned in Files.thumbnailLink must be fetched using a credentialed request.
1528 &quot;thumbnailVersion&quot;: &quot;A String&quot;, # The thumbnail version for use in thumbnail cache invalidation.
1529 &quot;trashed&quot;: True or False, # Whether the file has been trashed, either explicitly or from a trashed parent folder. Only the owner may trash a file. The trashed item is excluded from all files.list responses returned for any user who does not own the file. However, all users with access to the file can see the trashed item metadata in an API response. All users with access can copy, download, export, and share the file.
1530 &quot;trashedTime&quot;: &quot;A String&quot;, # The time that the item was trashed (RFC 3339 date-time). Only populated for items in shared drives.
1531 &quot;trashingUser&quot;: { # Information about a Drive user. # If the file has been explicitly trashed, the user who trashed it. Only populated for items in shared drives.
1532 &quot;displayName&quot;: &quot;A String&quot;, # A plain text displayable name for this user.
1533 &quot;emailAddress&quot;: &quot;A String&quot;, # The email address of the user. This may not be present in certain contexts if the user has not made their email address visible to the requester.
1534 &quot;kind&quot;: &quot;drive#user&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;drive#user&quot;.
1535 &quot;me&quot;: True or False, # Whether this user is the requesting user.
1536 &quot;permissionId&quot;: &quot;A String&quot;, # The user&#x27;s ID as visible in Permission resources.
1537 &quot;photoLink&quot;: &quot;A String&quot;, # A link to the user&#x27;s profile photo, if available.
1538 },
1539 &quot;version&quot;: &quot;A String&quot;, # A monotonically increasing version number for the file. This reflects every change made to the file on the server, even those not visible to the user.
1540 &quot;videoMediaMetadata&quot;: { # Additional metadata about video media. This may not be available immediately upon upload.
1541 &quot;durationMillis&quot;: &quot;A String&quot;, # The duration of the video in milliseconds.
1542 &quot;height&quot;: 42, # The height of the video in pixels.
1543 &quot;width&quot;: 42, # The width of the video in pixels.
1544 },
1545 &quot;viewedByMe&quot;: True or False, # Whether the file has been viewed by this user.
1546 &quot;viewedByMeTime&quot;: &quot;A String&quot;, # The last time the file was viewed by the user (RFC 3339 date-time).
1547 &quot;viewersCanCopyContent&quot;: True or False, # Deprecated - use copyRequiresWriterPermission instead.
1548 &quot;webContentLink&quot;: &quot;A String&quot;, # A link for downloading the content of the file in a browser. This is only available for files with binary content in Google Drive.
1549 &quot;webViewLink&quot;: &quot;A String&quot;, # A link for opening the file in a relevant Google editor or viewer in a browser.
1550 &quot;writersCanShare&quot;: True or False, # Whether users with only writer permission can modify the file&#x27;s permissions. Not populated for items in shared drives.
1551}</pre>
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08001552</div>
1553
1554<div class="method">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001555 <code class="details" id="get_media">get_media(fileId, acknowledgeAbuse=None, includePermissionsForView=None, supportsAllDrives=None, supportsTeamDrives=None)</code>
Bu Sun Kim65020912020-05-20 12:08:20 -07001556 <pre>Gets a file&#x27;s metadata or content by ID.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08001557
1558Args:
1559 fileId: string, The ID of the file. (required)
1560 acknowledgeAbuse: boolean, Whether the user is acknowledging the risk of downloading known malware or other abusive files. This is only applicable when alt=media.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001561 includePermissionsForView: string, Specifies which additional view&#x27;s permissions to include in the response. Only &#x27;published&#x27; is supported.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001562 supportsAllDrives: boolean, Whether the requesting application supports both My Drives and shared drives.
Bu Sun Kim65020912020-05-20 12:08:20 -07001563 supportsTeamDrives: boolean, Deprecated use supportsAllDrives instead.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08001564
1565Returns:
1566 The media object as a string.
1567
1568 </pre>
1569</div>
1570
1571<div class="method">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001572 <code class="details" id="list">list(corpora=None, corpus=None, driveId=None, includeItemsFromAllDrives=None, includePermissionsForView=None, includeTeamDriveItems=None, orderBy=None, pageSize=None, pageToken=None, q=None, spaces=None, supportsAllDrives=None, supportsTeamDrives=None, teamDriveId=None)</code>
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08001573 <pre>Lists or searches files.
1574
1575Args:
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001576 corpora: string, Groupings of files to which the query applies. Supported groupings are: &#x27;user&#x27; (files created by, opened by, or shared directly with the user), &#x27;drive&#x27; (files in the specified shared drive as indicated by the &#x27;driveId&#x27;), &#x27;domain&#x27; (files shared to the user&#x27;s domain), and &#x27;allDrives&#x27; (A combination of &#x27;user&#x27; and &#x27;drive&#x27; for all drives where the user is a member). When able, use &#x27;user&#x27; or &#x27;drive&#x27;, instead of &#x27;allDrives&#x27;, for efficiency.
Bu Sun Kim65020912020-05-20 12:08:20 -07001577 corpus: string, The source of files to list. Deprecated: use &#x27;corpora&#x27; instead.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08001578 Allowed values
Bu Sun Kim65020912020-05-20 12:08:20 -07001579 domain - Files shared to the user&#x27;s domain.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001580 user - Files owned by or shared to the user. If a user has permissions on a Shared Drive, the files inside it won&#x27;t be retrieved unless the user has created, opened, or shared the file.
Bu Sun Kim65020912020-05-20 12:08:20 -07001581 driveId: string, ID of the shared drive to search.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001582 includeItemsFromAllDrives: boolean, Whether both My Drive and shared drive items should be included in results.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001583 includePermissionsForView: string, Specifies which additional view&#x27;s permissions to include in the response. Only &#x27;published&#x27; is supported.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001584 includeTeamDriveItems: boolean, Deprecated use includeItemsFromAllDrives instead.
Bu Sun Kim65020912020-05-20 12:08:20 -07001585 orderBy: string, A comma-separated list of sort keys. Valid keys are &#x27;createdTime&#x27;, &#x27;folder&#x27;, &#x27;modifiedByMeTime&#x27;, &#x27;modifiedTime&#x27;, &#x27;name&#x27;, &#x27;name_natural&#x27;, &#x27;quotaBytesUsed&#x27;, &#x27;recency&#x27;, &#x27;sharedWithMeTime&#x27;, &#x27;starred&#x27;, and &#x27;viewedByMeTime&#x27;. Each key sorts ascending by default, but may be reversed with the &#x27;desc&#x27; modifier. Example usage: ?orderBy=folder,modifiedTime desc,name. Please note that there is a current limitation for users with approximately one million files in which the requested sort order is ignored.
1586 pageSize: 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.
1587 pageToken: string, The token for continuing a previous list request on the next page. This should be set to the value of &#x27;nextPageToken&#x27; from the previous response.
1588 q: string, A query for filtering the file results. See the &quot;Search for Files&quot; guide for supported syntax.
1589 spaces: string, A comma-separated list of spaces to query within the corpus. Supported values are &#x27;drive&#x27;, &#x27;appDataFolder&#x27; and &#x27;photos&#x27;.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001590 supportsAllDrives: boolean, Whether the requesting application supports both My Drives and shared drives.
Bu Sun Kim65020912020-05-20 12:08:20 -07001591 supportsTeamDrives: boolean, Deprecated use supportsAllDrives instead.
1592 teamDriveId: string, Deprecated use driveId instead.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08001593
1594Returns:
1595 An object of the form:
1596
1597 { # A list of files.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001598 &quot;files&quot;: [ # The list of files. If nextPageToken is populated, then this list may be incomplete and an additional page of results should be fetched.
1599 { # The metadata for a file.
1600 &quot;appProperties&quot;: { # A collection of arbitrary key-value pairs which are private to the requesting app.
yoshi-code-bot69706592021-03-03 03:54:02 -08001601 # Entries with null values are cleared in update and copy requests. These properties can only be retrieved using an authenticated request. An authenticated request uses an access token obtained with a OAuth 2 client ID. You cannot use an API key to retrieve private properties.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001602 &quot;a_key&quot;: &quot;A String&quot;,
1603 },
1604 &quot;capabilities&quot;: { # Capabilities the current user has on this file. Each capability corresponds to a fine-grained action that a user may take.
1605 &quot;canAddChildren&quot;: True or False, # Whether the current user can add children to this folder. This is always false when the item is not a folder.
1606 &quot;canAddFolderFromAnotherDrive&quot;: True or False, # Whether the current user can add a folder from another drive (different shared drive or My Drive) to this folder. This is false when the item is not a folder. Only populated for items in shared drives.
1607 &quot;canAddMyDriveParent&quot;: True or False, # Whether the current user can add a parent for the item without removing an existing parent in the same request. Not populated for shared drive files.
1608 &quot;canChangeCopyRequiresWriterPermission&quot;: True or False, # Whether the current user can change the copyRequiresWriterPermission restriction of this file.
yoshi-code-bot04bafe12021-06-29 00:20:25 -07001609 &quot;canChangeSecurityUpdateEnabled&quot;: True or False, # Whether the current user can change the securityUpdateEnabled field on link share metadata.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001610 &quot;canChangeViewersCanCopyContent&quot;: True or False, # Deprecated
1611 &quot;canComment&quot;: True or False, # Whether the current user can comment on this file.
1612 &quot;canCopy&quot;: True or False, # Whether the current user can copy this file. For an item in a shared drive, whether the current user can copy non-folder descendants of this item, or this item itself if it is not a folder.
1613 &quot;canDelete&quot;: True or False, # Whether the current user can delete this file.
1614 &quot;canDeleteChildren&quot;: True or False, # Whether the current user can delete children of this folder. This is false when the item is not a folder. Only populated for items in shared drives.
1615 &quot;canDownload&quot;: True or False, # Whether the current user can download this file.
1616 &quot;canEdit&quot;: True or False, # Whether the current user can edit this file. Other factors may limit the type of changes a user can make to a file. For example, see canChangeCopyRequiresWriterPermission or canModifyContent.
1617 &quot;canListChildren&quot;: True or False, # Whether the current user can list the children of this folder. This is always false when the item is not a folder.
1618 &quot;canModifyContent&quot;: True or False, # Whether the current user can modify the content of this file.
1619 &quot;canModifyContentRestriction&quot;: True or False, # Whether the current user can modify restrictions on content of this file.
1620 &quot;canMoveChildrenOutOfDrive&quot;: True or False, # Whether the current user can move children of this folder outside of the shared drive. This is false when the item is not a folder. Only populated for items in shared drives.
1621 &quot;canMoveChildrenOutOfTeamDrive&quot;: True or False, # Deprecated - use canMoveChildrenOutOfDrive instead.
1622 &quot;canMoveChildrenWithinDrive&quot;: True or False, # Whether the current user can move children of this folder within this drive. This is false when the item is not a folder. Note that a request to move the child may still fail depending on the current user&#x27;s access to the child and to the destination folder.
1623 &quot;canMoveChildrenWithinTeamDrive&quot;: True or False, # Deprecated - use canMoveChildrenWithinDrive instead.
1624 &quot;canMoveItemIntoTeamDrive&quot;: True or False, # Deprecated - use canMoveItemOutOfDrive instead.
1625 &quot;canMoveItemOutOfDrive&quot;: True or False, # Whether the current user can move this item outside of this drive by changing its parent. Note that a request to change the parent of the item may still fail depending on the new parent that is being added.
1626 &quot;canMoveItemOutOfTeamDrive&quot;: True or False, # Deprecated - use canMoveItemOutOfDrive instead.
1627 &quot;canMoveItemWithinDrive&quot;: True or False, # Whether the current user can move this item within this drive. Note that a request to change the parent of the item may still fail depending on the new parent that is being added and the parent that is being removed.
1628 &quot;canMoveItemWithinTeamDrive&quot;: True or False, # Deprecated - use canMoveItemWithinDrive instead.
1629 &quot;canMoveTeamDriveItem&quot;: True or False, # Deprecated - use canMoveItemWithinDrive or canMoveItemOutOfDrive instead.
1630 &quot;canReadDrive&quot;: True or False, # Whether the current user can read the shared drive to which this file belongs. Only populated for items in shared drives.
1631 &quot;canReadRevisions&quot;: True or False, # Whether the current user can read the revisions resource of this file. For a shared drive item, whether revisions of non-folder descendants of this item, or this item itself if it is not a folder, can be read.
1632 &quot;canReadTeamDrive&quot;: True or False, # Deprecated - use canReadDrive instead.
1633 &quot;canRemoveChildren&quot;: True or False, # Whether the current user can remove children from this folder. This is always false when the item is not a folder. For a folder in a shared drive, use canDeleteChildren or canTrashChildren instead.
1634 &quot;canRemoveMyDriveParent&quot;: True or False, # Whether the current user can remove a parent from the item without adding another parent in the same request. Not populated for shared drive files.
1635 &quot;canRename&quot;: True or False, # Whether the current user can rename this file.
1636 &quot;canShare&quot;: True or False, # Whether the current user can modify the sharing settings for this file.
1637 &quot;canTrash&quot;: True or False, # Whether the current user can move this file to trash.
1638 &quot;canTrashChildren&quot;: True or False, # Whether the current user can trash children of this folder. This is false when the item is not a folder. Only populated for items in shared drives.
1639 &quot;canUntrash&quot;: True or False, # Whether the current user can restore this file from trash.
1640 },
1641 &quot;contentHints&quot;: { # Additional information about the content of the file. These fields are never populated in responses.
1642 &quot;indexableText&quot;: &quot;A String&quot;, # Text to be indexed for the file to improve fullText queries. This is limited to 128KB in length and may contain HTML elements.
1643 &quot;thumbnail&quot;: { # A thumbnail for the file. This will only be used if Google Drive cannot generate a standard thumbnail.
1644 &quot;image&quot;: &quot;A String&quot;, # The thumbnail data encoded with URL-safe Base64 (RFC 4648 section 5).
1645 &quot;mimeType&quot;: &quot;A String&quot;, # The MIME type of the thumbnail.
Bu Sun Kim65020912020-05-20 12:08:20 -07001646 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001647 },
1648 &quot;contentRestrictions&quot;: [ # Restrictions for accessing the content of the file. Only populated if such a restriction exists.
1649 { # A restriction for accessing the content of the file.
1650 &quot;readOnly&quot;: True or False, # Whether the content of the file is read-only. If a file is read-only, a new revision of the file may not be added, comments may not be added or modified, and the title of the file may not be modified.
1651 &quot;reason&quot;: &quot;A String&quot;, # Reason for why the content of the file is restricted. This is only mutable on requests that also set readOnly=true.
1652 &quot;restrictingUser&quot;: { # Information about a Drive user. # The user who set the content restriction. Only populated if readOnly is true.
Bu Sun Kim65020912020-05-20 12:08:20 -07001653 &quot;displayName&quot;: &quot;A String&quot;, # A plain text displayable name for this user.
1654 &quot;emailAddress&quot;: &quot;A String&quot;, # The email address of the user. This may not be present in certain contexts if the user has not made their email address visible to the requester.
1655 &quot;kind&quot;: &quot;drive#user&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;drive#user&quot;.
1656 &quot;me&quot;: True or False, # Whether this user is the requesting user.
1657 &quot;permissionId&quot;: &quot;A String&quot;, # The user&#x27;s ID as visible in Permission resources.
1658 &quot;photoLink&quot;: &quot;A String&quot;, # A link to the user&#x27;s profile photo, if available.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08001659 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001660 &quot;restrictionTime&quot;: &quot;A String&quot;, # The time at which the content restriction was set (formatted RFC 3339 timestamp). Only populated if readOnly is true.
1661 &quot;type&quot;: &quot;A String&quot;, # The type of the content restriction. Currently the only possible value is globalContentRestriction.
Bu Sun Kim65020912020-05-20 12:08:20 -07001662 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001663 ],
1664 &quot;copyRequiresWriterPermission&quot;: True or False, # Whether the options to copy, print, or download this file, should be disabled for readers and commenters.
1665 &quot;createdTime&quot;: &quot;A String&quot;, # The time at which the file was created (RFC 3339 date-time).
1666 &quot;description&quot;: &quot;A String&quot;, # A short description of the file.
1667 &quot;driveId&quot;: &quot;A String&quot;, # ID of the shared drive the file resides in. Only populated for items in shared drives.
1668 &quot;explicitlyTrashed&quot;: True or False, # Whether the file has been explicitly trashed, as opposed to recursively trashed from a parent folder.
1669 &quot;exportLinks&quot;: { # Links for exporting Docs Editors files to specific formats.
1670 &quot;a_key&quot;: &quot;A String&quot;, # A mapping from export format to URL
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08001671 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001672 &quot;fileExtension&quot;: &quot;A String&quot;, # The final component of fullFileExtension. This is only available for files with binary content in Google Drive.
1673 &quot;folderColorRgb&quot;: &quot;A String&quot;, # The color for a folder as an RGB hex string. The supported colors are published in the folderColorPalette field of the About resource.
1674 # If an unsupported color is specified, the closest color in the palette will be used instead.
1675 &quot;fullFileExtension&quot;: &quot;A String&quot;, # The full file extension extracted from the name field. May contain multiple concatenated extensions, such as &quot;tar.gz&quot;. This is only available for files with binary content in Google Drive.
1676 # This is automatically updated when the name field changes, however it is not cleared if the new name does not contain a valid extension.
1677 &quot;hasAugmentedPermissions&quot;: True or False, # Whether there are permissions directly on this file. This field is only populated for items in shared drives.
1678 &quot;hasThumbnail&quot;: True or False, # Whether this file has a thumbnail. This does not indicate whether the requesting app has access to the thumbnail. To check access, look for the presence of the thumbnailLink field.
1679 &quot;headRevisionId&quot;: &quot;A String&quot;, # The ID of the file&#x27;s head revision. This is currently only available for files with binary content in Google Drive.
1680 &quot;iconLink&quot;: &quot;A String&quot;, # A static, unauthenticated link to the file&#x27;s icon.
1681 &quot;id&quot;: &quot;A String&quot;, # The ID of the file.
1682 &quot;imageMediaMetadata&quot;: { # Additional metadata about image media, if available.
1683 &quot;aperture&quot;: 3.14, # The aperture used to create the photo (f-number).
1684 &quot;cameraMake&quot;: &quot;A String&quot;, # The make of the camera used to create the photo.
1685 &quot;cameraModel&quot;: &quot;A String&quot;, # The model of the camera used to create the photo.
1686 &quot;colorSpace&quot;: &quot;A String&quot;, # The color space of the photo.
1687 &quot;exposureBias&quot;: 3.14, # The exposure bias of the photo (APEX value).
1688 &quot;exposureMode&quot;: &quot;A String&quot;, # The exposure mode used to create the photo.
1689 &quot;exposureTime&quot;: 3.14, # The length of the exposure, in seconds.
1690 &quot;flashUsed&quot;: True or False, # Whether a flash was used to create the photo.
1691 &quot;focalLength&quot;: 3.14, # The focal length used to create the photo, in millimeters.
1692 &quot;height&quot;: 42, # The height of the image in pixels.
1693 &quot;isoSpeed&quot;: 42, # The ISO speed used to create the photo.
1694 &quot;lens&quot;: &quot;A String&quot;, # The lens used to create the photo.
1695 &quot;location&quot;: { # Geographic location information stored in the image.
1696 &quot;altitude&quot;: 3.14, # The altitude stored in the image.
1697 &quot;latitude&quot;: 3.14, # The latitude stored in the image.
1698 &quot;longitude&quot;: 3.14, # The longitude stored in the image.
1699 },
1700 &quot;maxApertureValue&quot;: 3.14, # The smallest f-number of the lens at the focal length used to create the photo (APEX value).
1701 &quot;meteringMode&quot;: &quot;A String&quot;, # The metering mode used to create the photo.
1702 &quot;rotation&quot;: 42, # The number of clockwise 90 degree rotations applied from the image&#x27;s original orientation.
1703 &quot;sensor&quot;: &quot;A String&quot;, # The type of sensor used to create the photo.
1704 &quot;subjectDistance&quot;: 42, # The distance to the subject of the photo, in meters.
1705 &quot;time&quot;: &quot;A String&quot;, # The date and time the photo was taken (EXIF DateTime).
1706 &quot;whiteBalance&quot;: &quot;A String&quot;, # The white balance mode used to create the photo.
1707 &quot;width&quot;: 42, # The width of the image in pixels.
1708 },
1709 &quot;isAppAuthorized&quot;: True or False, # Whether the file was created or opened by the requesting app.
1710 &quot;kind&quot;: &quot;drive#file&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;drive#file&quot;.
1711 &quot;lastModifyingUser&quot;: { # Information about a Drive user. # The last user to modify the file.
1712 &quot;displayName&quot;: &quot;A String&quot;, # A plain text displayable name for this user.
1713 &quot;emailAddress&quot;: &quot;A String&quot;, # The email address of the user. This may not be present in certain contexts if the user has not made their email address visible to the requester.
1714 &quot;kind&quot;: &quot;drive#user&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;drive#user&quot;.
1715 &quot;me&quot;: True or False, # Whether this user is the requesting user.
1716 &quot;permissionId&quot;: &quot;A String&quot;, # The user&#x27;s ID as visible in Permission resources.
1717 &quot;photoLink&quot;: &quot;A String&quot;, # A link to the user&#x27;s profile photo, if available.
1718 },
yoshi-code-bot04bafe12021-06-29 00:20:25 -07001719 &quot;linkShareMetadata&quot;: { # Contains details about the link URLs that clients are using to refer to this item.
1720 &quot;securityUpdateEligible&quot;: True or False, # Whether the file is eligible for security update.
1721 &quot;securityUpdateEnabled&quot;: True or False, # Whether the security update is enabled for this file.
1722 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001723 &quot;md5Checksum&quot;: &quot;A String&quot;, # The MD5 checksum for the content of the file. This is only applicable to files with binary content in Google Drive.
1724 &quot;mimeType&quot;: &quot;A String&quot;, # The MIME type of the file.
1725 # Google Drive will attempt to automatically detect an appropriate value from uploaded content if no value is provided. The value cannot be changed unless a new revision is uploaded.
1726 # If a file is created with a Google Doc MIME type, the uploaded content will be imported if possible. The supported import formats are published in the About resource.
1727 &quot;modifiedByMe&quot;: True or False, # Whether the file has been modified by this user.
1728 &quot;modifiedByMeTime&quot;: &quot;A String&quot;, # The last time the file was modified by the user (RFC 3339 date-time).
1729 &quot;modifiedTime&quot;: &quot;A String&quot;, # The last time the file was modified by anyone (RFC 3339 date-time).
1730 # Note that setting modifiedTime will also update modifiedByMeTime for the user.
1731 &quot;name&quot;: &quot;A String&quot;, # The name of the file. This is not necessarily unique within a folder. Note that for immutable items such as the top level folders of shared drives, My Drive root folder, and Application Data folder the name is constant.
1732 &quot;originalFilename&quot;: &quot;A String&quot;, # The original filename of the uploaded content if available, or else the original value of the name field. This is only available for files with binary content in Google Drive.
1733 &quot;ownedByMe&quot;: True or False, # Whether the user owns the file. Not populated for items in shared drives.
yoshi-code-botab1d6dc2021-05-28 00:42:02 -07001734 &quot;owners&quot;: [ # The owner of this file. Only certain legacy files may have more than one owner. This field isn&#x27;t populated for items in shared drives.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001735 { # Information about a Drive user.
1736 &quot;displayName&quot;: &quot;A String&quot;, # A plain text displayable name for this user.
1737 &quot;emailAddress&quot;: &quot;A String&quot;, # The email address of the user. This may not be present in certain contexts if the user has not made their email address visible to the requester.
1738 &quot;kind&quot;: &quot;drive#user&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;drive#user&quot;.
1739 &quot;me&quot;: True or False, # Whether this user is the requesting user.
1740 &quot;permissionId&quot;: &quot;A String&quot;, # The user&#x27;s ID as visible in Permission resources.
1741 &quot;photoLink&quot;: &quot;A String&quot;, # A link to the user&#x27;s profile photo, if available.
1742 },
1743 ],
1744 &quot;parents&quot;: [ # The IDs of the parent folders which contain the file.
1745 # If not specified as part of a create request, the file will be placed directly in the user&#x27;s My Drive folder. If not specified as part of a copy request, the file will inherit any discoverable parents of the source file. Update requests must use the addParents and removeParents parameters to modify the parents list.
1746 &quot;A String&quot;,
1747 ],
1748 &quot;permissionIds&quot;: [ # List of permission IDs for users with access to this file.
1749 &quot;A String&quot;,
1750 ],
1751 &quot;permissions&quot;: [ # The full list of permissions for the file. This is only available if the requesting user can share the file. Not populated for items in shared drives.
1752 { # A permission for a file. A permission grants a user, group, domain or the world access to a file or a folder hierarchy.
1753 &quot;allowFileDiscovery&quot;: True or False, # Whether the permission allows the file to be discovered through search. This is only applicable for permissions of type domain or anyone.
1754 &quot;deleted&quot;: True or False, # Whether the account associated with this permission has been deleted. This field only pertains to user and group permissions.
1755 &quot;displayName&quot;: &quot;A String&quot;, # The &quot;pretty&quot; name of the value of the permission. The following is a list of examples for each type of permission:
1756 # - user - User&#x27;s full name, as defined for their Google account, such as &quot;Joe Smith.&quot;
1757 # - group - Name of the Google Group, such as &quot;The Company Administrators.&quot;
1758 # - domain - String domain name, such as &quot;thecompany.com.&quot;
1759 # - anyone - No displayName is present.
1760 &quot;domain&quot;: &quot;A String&quot;, # The domain to which this permission refers.
1761 &quot;emailAddress&quot;: &quot;A String&quot;, # The email address of the user or group to which this permission refers.
1762 &quot;expirationTime&quot;: &quot;A String&quot;, # The time at which this permission will expire (RFC 3339 date-time). Expiration times have the following restrictions:
1763 # - They can only be set on user and group permissions
1764 # - The time must be in the future
1765 # - The time cannot be more than a year in the future
1766 &quot;id&quot;: &quot;A String&quot;, # The ID of this permission. This is a unique identifier for the grantee, and is published in User resources as permissionId. IDs should be treated as opaque values.
1767 &quot;kind&quot;: &quot;drive#permission&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;drive#permission&quot;.
1768 &quot;permissionDetails&quot;: [ # Details of whether the permissions on this shared drive item are inherited or directly on this item. This is an output-only field which is present only for shared drive items.
1769 {
1770 &quot;inherited&quot;: True or False, # Whether this permission is inherited. This field is always populated. This is an output-only field.
1771 &quot;inheritedFrom&quot;: &quot;A String&quot;, # The ID of the item from which this permission is inherited. This is an output-only field.
1772 &quot;permissionType&quot;: &quot;A String&quot;, # The permission type for this user. While new values may be added in future, the following are currently possible:
1773 # - file
1774 # - member
1775 &quot;role&quot;: &quot;A String&quot;, # The primary role for this user. While new values may be added in the future, the following are currently possible:
1776 # - organizer
1777 # - fileOrganizer
1778 # - writer
1779 # - commenter
1780 # - reader
1781 },
1782 ],
1783 &quot;photoLink&quot;: &quot;A String&quot;, # A link to the user&#x27;s profile photo, if available.
1784 &quot;role&quot;: &quot;A String&quot;, # The role granted by this permission. While new values may be supported in the future, the following are currently allowed:
1785 # - owner
1786 # - organizer
1787 # - fileOrganizer
1788 # - writer
1789 # - commenter
1790 # - reader
1791 &quot;teamDrivePermissionDetails&quot;: [ # Deprecated - use permissionDetails instead.
1792 {
1793 &quot;inherited&quot;: True or False, # Deprecated - use permissionDetails/inherited instead.
1794 &quot;inheritedFrom&quot;: &quot;A String&quot;, # Deprecated - use permissionDetails/inheritedFrom instead.
1795 &quot;role&quot;: &quot;A String&quot;, # Deprecated - use permissionDetails/role instead.
1796 &quot;teamDrivePermissionType&quot;: &quot;A String&quot;, # Deprecated - use permissionDetails/permissionType instead.
1797 },
1798 ],
1799 &quot;type&quot;: &quot;A String&quot;, # The type of the grantee. Valid values are:
1800 # - user
1801 # - group
1802 # - domain
1803 # - anyone When creating a permission, if type is user or group, you must provide an emailAddress for the user or group. When type is domain, you must provide a domain. There isn&#x27;t extra information required for a anyone type.
1804 &quot;view&quot;: &quot;A String&quot;, # Indicates the view for this permission. Only populated for permissions that belong to a view. published is the only supported value.
1805 },
1806 ],
1807 &quot;properties&quot;: { # A collection of arbitrary key-value pairs which are visible to all apps.
1808 # Entries with null values are cleared in update and copy requests.
1809 &quot;a_key&quot;: &quot;A String&quot;,
1810 },
1811 &quot;quotaBytesUsed&quot;: &quot;A String&quot;, # The number of storage quota bytes used by the file. This includes the head revision as well as previous revisions with keepForever enabled.
yoshi-code-bot04bafe12021-06-29 00:20:25 -07001812 &quot;resourceKey&quot;: &quot;A String&quot;, # A key needed to access the item via a shared link.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001813 &quot;shared&quot;: True or False, # Whether the file has been shared. Not populated for items in shared drives.
1814 &quot;sharedWithMeTime&quot;: &quot;A String&quot;, # The time at which the file was shared with the user, if applicable (RFC 3339 date-time).
1815 &quot;sharingUser&quot;: { # Information about a Drive user. # The user who shared the file with the requesting user, if applicable.
1816 &quot;displayName&quot;: &quot;A String&quot;, # A plain text displayable name for this user.
1817 &quot;emailAddress&quot;: &quot;A String&quot;, # The email address of the user. This may not be present in certain contexts if the user has not made their email address visible to the requester.
1818 &quot;kind&quot;: &quot;drive#user&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;drive#user&quot;.
1819 &quot;me&quot;: True or False, # Whether this user is the requesting user.
1820 &quot;permissionId&quot;: &quot;A String&quot;, # The user&#x27;s ID as visible in Permission resources.
1821 &quot;photoLink&quot;: &quot;A String&quot;, # A link to the user&#x27;s profile photo, if available.
1822 },
1823 &quot;shortcutDetails&quot;: { # Shortcut file details. Only populated for shortcut files, which have the mimeType field set to application/vnd.google-apps.shortcut.
1824 &quot;targetId&quot;: &quot;A String&quot;, # The ID of the file that this shortcut points to.
1825 &quot;targetMimeType&quot;: &quot;A String&quot;, # The MIME type of the file that this shortcut points to. The value of this field is a snapshot of the target&#x27;s MIME type, captured when the shortcut is created.
yoshi-code-bot04bafe12021-06-29 00:20:25 -07001826 &quot;targetResourceKey&quot;: &quot;A String&quot;, # The ResourceKey for the target file.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001827 },
1828 &quot;size&quot;: &quot;A String&quot;, # The size of the file&#x27;s content in bytes. This is applicable to binary files in Google Drive and Google Docs files.
1829 &quot;spaces&quot;: [ # The list of spaces which contain the file. The currently supported values are &#x27;drive&#x27;, &#x27;appDataFolder&#x27; and &#x27;photos&#x27;.
1830 &quot;A String&quot;,
1831 ],
1832 &quot;starred&quot;: True or False, # Whether the user has starred the file.
1833 &quot;teamDriveId&quot;: &quot;A String&quot;, # Deprecated - use driveId instead.
1834 &quot;thumbnailLink&quot;: &quot;A String&quot;, # A short-lived link to the file&#x27;s thumbnail, if available. Typically lasts on the order of hours. Only populated when the requesting app can access the file&#x27;s content. If the file isn&#x27;t shared publicly, the URL returned in Files.thumbnailLink must be fetched using a credentialed request.
1835 &quot;thumbnailVersion&quot;: &quot;A String&quot;, # The thumbnail version for use in thumbnail cache invalidation.
1836 &quot;trashed&quot;: True or False, # Whether the file has been trashed, either explicitly or from a trashed parent folder. Only the owner may trash a file. The trashed item is excluded from all files.list responses returned for any user who does not own the file. However, all users with access to the file can see the trashed item metadata in an API response. All users with access can copy, download, export, and share the file.
1837 &quot;trashedTime&quot;: &quot;A String&quot;, # The time that the item was trashed (RFC 3339 date-time). Only populated for items in shared drives.
1838 &quot;trashingUser&quot;: { # Information about a Drive user. # If the file has been explicitly trashed, the user who trashed it. Only populated for items in shared drives.
1839 &quot;displayName&quot;: &quot;A String&quot;, # A plain text displayable name for this user.
1840 &quot;emailAddress&quot;: &quot;A String&quot;, # The email address of the user. This may not be present in certain contexts if the user has not made their email address visible to the requester.
1841 &quot;kind&quot;: &quot;drive#user&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;drive#user&quot;.
1842 &quot;me&quot;: True or False, # Whether this user is the requesting user.
1843 &quot;permissionId&quot;: &quot;A String&quot;, # The user&#x27;s ID as visible in Permission resources.
1844 &quot;photoLink&quot;: &quot;A String&quot;, # A link to the user&#x27;s profile photo, if available.
1845 },
1846 &quot;version&quot;: &quot;A String&quot;, # A monotonically increasing version number for the file. This reflects every change made to the file on the server, even those not visible to the user.
1847 &quot;videoMediaMetadata&quot;: { # Additional metadata about video media. This may not be available immediately upon upload.
1848 &quot;durationMillis&quot;: &quot;A String&quot;, # The duration of the video in milliseconds.
1849 &quot;height&quot;: 42, # The height of the video in pixels.
1850 &quot;width&quot;: 42, # The width of the video in pixels.
1851 },
1852 &quot;viewedByMe&quot;: True or False, # Whether the file has been viewed by this user.
1853 &quot;viewedByMeTime&quot;: &quot;A String&quot;, # The last time the file was viewed by the user (RFC 3339 date-time).
1854 &quot;viewersCanCopyContent&quot;: True or False, # Deprecated - use copyRequiresWriterPermission instead.
1855 &quot;webContentLink&quot;: &quot;A String&quot;, # A link for downloading the content of the file in a browser. This is only available for files with binary content in Google Drive.
1856 &quot;webViewLink&quot;: &quot;A String&quot;, # A link for opening the file in a relevant Google editor or viewer in a browser.
1857 &quot;writersCanShare&quot;: True or False, # Whether users with only writer permission can modify the file&#x27;s permissions. Not populated for items in shared drives.
1858 },
1859 ],
1860 &quot;incompleteSearch&quot;: 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 &quot;allDrives&quot; 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 &quot;user&quot; or &quot;drive&quot;.
1861 &quot;kind&quot;: &quot;drive#fileList&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;drive#fileList&quot;.
1862 &quot;nextPageToken&quot;: &quot;A String&quot;, # 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.
1863}</pre>
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08001864</div>
1865
1866<div class="method">
1867 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
1868 <pre>Retrieves the next page of results.
1869
1870Args:
1871 previous_request: The request for the previous page. (required)
1872 previous_response: The response from the request for the previous page. (required)
1873
1874Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -07001875 A request object that you can call &#x27;execute()&#x27; on to request the next
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08001876 page. Returns None if there are no more items in the collection.
1877 </pre>
1878</div>
1879
1880<div class="method">
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001881 <code class="details" id="update">update(fileId, addParents=None, body=None, enforceSingleParent=None, includePermissionsForView=None, keepRevisionForever=None, media_body=None, media_mime_type=None, ocrLanguage=None, removeParents=None, supportsAllDrives=None, supportsTeamDrives=None, useContentAsIndexableText=None)</code>
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001882 <pre>Updates a file&#x27;s metadata and/or content. This method supports patch semantics.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08001883
1884Args:
1885 fileId: string, The ID of the file. (required)
1886 body: object, The request body.
1887 The object takes the form of:
1888
1889{ # The metadata for a file.
Bu Sun Kim65020912020-05-20 12:08:20 -07001890 &quot;appProperties&quot;: { # A collection of arbitrary key-value pairs which are private to the requesting app.
yoshi-code-bot69706592021-03-03 03:54:02 -08001891 # Entries with null values are cleared in update and copy requests. These properties can only be retrieved using an authenticated request. An authenticated request uses an access token obtained with a OAuth 2 client ID. You cannot use an API key to retrieve private properties.
Bu Sun Kim65020912020-05-20 12:08:20 -07001892 &quot;a_key&quot;: &quot;A String&quot;,
1893 },
1894 &quot;capabilities&quot;: { # Capabilities the current user has on this file. Each capability corresponds to a fine-grained action that a user may take.
1895 &quot;canAddChildren&quot;: True or False, # Whether the current user can add children to this folder. This is always false when the item is not a folder.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001896 &quot;canAddFolderFromAnotherDrive&quot;: True or False, # Whether the current user can add a folder from another drive (different shared drive or My Drive) to this folder. This is false when the item is not a folder. Only populated for items in shared drives.
Bu Sun Kim65020912020-05-20 12:08:20 -07001897 &quot;canAddMyDriveParent&quot;: True or False, # Whether the current user can add a parent for the item without removing an existing parent in the same request. Not populated for shared drive files.
1898 &quot;canChangeCopyRequiresWriterPermission&quot;: True or False, # Whether the current user can change the copyRequiresWriterPermission restriction of this file.
yoshi-code-bot04bafe12021-06-29 00:20:25 -07001899 &quot;canChangeSecurityUpdateEnabled&quot;: True or False, # Whether the current user can change the securityUpdateEnabled field on link share metadata.
Bu Sun Kim65020912020-05-20 12:08:20 -07001900 &quot;canChangeViewersCanCopyContent&quot;: True or False, # Deprecated
1901 &quot;canComment&quot;: True or False, # Whether the current user can comment on this file.
1902 &quot;canCopy&quot;: True or False, # Whether the current user can copy this file. For an item in a shared drive, whether the current user can copy non-folder descendants of this item, or this item itself if it is not a folder.
1903 &quot;canDelete&quot;: True or False, # Whether the current user can delete this file.
1904 &quot;canDeleteChildren&quot;: True or False, # Whether the current user can delete children of this folder. This is false when the item is not a folder. Only populated for items in shared drives.
1905 &quot;canDownload&quot;: True or False, # Whether the current user can download this file.
1906 &quot;canEdit&quot;: True or False, # Whether the current user can edit this file. Other factors may limit the type of changes a user can make to a file. For example, see canChangeCopyRequiresWriterPermission or canModifyContent.
1907 &quot;canListChildren&quot;: True or False, # Whether the current user can list the children of this folder. This is always false when the item is not a folder.
1908 &quot;canModifyContent&quot;: True or False, # Whether the current user can modify the content of this file.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001909 &quot;canModifyContentRestriction&quot;: True or False, # Whether the current user can modify restrictions on content of this file.
Bu Sun Kim65020912020-05-20 12:08:20 -07001910 &quot;canMoveChildrenOutOfDrive&quot;: True or False, # Whether the current user can move children of this folder outside of the shared drive. This is false when the item is not a folder. Only populated for items in shared drives.
1911 &quot;canMoveChildrenOutOfTeamDrive&quot;: True or False, # Deprecated - use canMoveChildrenOutOfDrive instead.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001912 &quot;canMoveChildrenWithinDrive&quot;: True or False, # Whether the current user can move children of this folder within this drive. This is false when the item is not a folder. Note that a request to move the child may still fail depending on the current user&#x27;s access to the child and to the destination folder.
Bu Sun Kim65020912020-05-20 12:08:20 -07001913 &quot;canMoveChildrenWithinTeamDrive&quot;: True or False, # Deprecated - use canMoveChildrenWithinDrive instead.
1914 &quot;canMoveItemIntoTeamDrive&quot;: True or False, # Deprecated - use canMoveItemOutOfDrive instead.
1915 &quot;canMoveItemOutOfDrive&quot;: True or False, # Whether the current user can move this item outside of this drive by changing its parent. Note that a request to change the parent of the item may still fail depending on the new parent that is being added.
1916 &quot;canMoveItemOutOfTeamDrive&quot;: True or False, # Deprecated - use canMoveItemOutOfDrive instead.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001917 &quot;canMoveItemWithinDrive&quot;: True or False, # Whether the current user can move this item within this drive. Note that a request to change the parent of the item may still fail depending on the new parent that is being added and the parent that is being removed.
Bu Sun Kim65020912020-05-20 12:08:20 -07001918 &quot;canMoveItemWithinTeamDrive&quot;: True or False, # Deprecated - use canMoveItemWithinDrive instead.
1919 &quot;canMoveTeamDriveItem&quot;: True or False, # Deprecated - use canMoveItemWithinDrive or canMoveItemOutOfDrive instead.
1920 &quot;canReadDrive&quot;: True or False, # Whether the current user can read the shared drive to which this file belongs. Only populated for items in shared drives.
1921 &quot;canReadRevisions&quot;: True or False, # Whether the current user can read the revisions resource of this file. For a shared drive item, whether revisions of non-folder descendants of this item, or this item itself if it is not a folder, can be read.
1922 &quot;canReadTeamDrive&quot;: True or False, # Deprecated - use canReadDrive instead.
1923 &quot;canRemoveChildren&quot;: True or False, # Whether the current user can remove children from this folder. This is always false when the item is not a folder. For a folder in a shared drive, use canDeleteChildren or canTrashChildren instead.
1924 &quot;canRemoveMyDriveParent&quot;: True or False, # Whether the current user can remove a parent from the item without adding another parent in the same request. Not populated for shared drive files.
1925 &quot;canRename&quot;: True or False, # Whether the current user can rename this file.
1926 &quot;canShare&quot;: True or False, # Whether the current user can modify the sharing settings for this file.
1927 &quot;canTrash&quot;: True or False, # Whether the current user can move this file to trash.
1928 &quot;canTrashChildren&quot;: True or False, # Whether the current user can trash children of this folder. This is false when the item is not a folder. Only populated for items in shared drives.
1929 &quot;canUntrash&quot;: True or False, # Whether the current user can restore this file from trash.
1930 },
1931 &quot;contentHints&quot;: { # Additional information about the content of the file. These fields are never populated in responses.
1932 &quot;indexableText&quot;: &quot;A String&quot;, # Text to be indexed for the file to improve fullText queries. This is limited to 128KB in length and may contain HTML elements.
1933 &quot;thumbnail&quot;: { # A thumbnail for the file. This will only be used if Google Drive cannot generate a standard thumbnail.
1934 &quot;image&quot;: &quot;A String&quot;, # The thumbnail data encoded with URL-safe Base64 (RFC 4648 section 5).
1935 &quot;mimeType&quot;: &quot;A String&quot;, # The MIME type of the thumbnail.
1936 },
1937 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001938 &quot;contentRestrictions&quot;: [ # Restrictions for accessing the content of the file. Only populated if such a restriction exists.
1939 { # A restriction for accessing the content of the file.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001940 &quot;readOnly&quot;: True or False, # Whether the content of the file is read-only. If a file is read-only, a new revision of the file may not be added, comments may not be added or modified, and the title of the file may not be modified.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001941 &quot;reason&quot;: &quot;A String&quot;, # Reason for why the content of the file is restricted. This is only mutable on requests that also set readOnly=true.
1942 &quot;restrictingUser&quot;: { # Information about a Drive user. # The user who set the content restriction. Only populated if readOnly is true.
1943 &quot;displayName&quot;: &quot;A String&quot;, # A plain text displayable name for this user.
1944 &quot;emailAddress&quot;: &quot;A String&quot;, # The email address of the user. This may not be present in certain contexts if the user has not made their email address visible to the requester.
1945 &quot;kind&quot;: &quot;drive#user&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;drive#user&quot;.
1946 &quot;me&quot;: True or False, # Whether this user is the requesting user.
1947 &quot;permissionId&quot;: &quot;A String&quot;, # The user&#x27;s ID as visible in Permission resources.
1948 &quot;photoLink&quot;: &quot;A String&quot;, # A link to the user&#x27;s profile photo, if available.
1949 },
1950 &quot;restrictionTime&quot;: &quot;A String&quot;, # The time at which the content restriction was set (formatted RFC 3339 timestamp). Only populated if readOnly is true.
1951 &quot;type&quot;: &quot;A String&quot;, # The type of the content restriction. Currently the only possible value is globalContentRestriction.
1952 },
1953 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001954 &quot;copyRequiresWriterPermission&quot;: True or False, # Whether the options to copy, print, or download this file, should be disabled for readers and commenters.
1955 &quot;createdTime&quot;: &quot;A String&quot;, # The time at which the file was created (RFC 3339 date-time).
1956 &quot;description&quot;: &quot;A String&quot;, # A short description of the file.
1957 &quot;driveId&quot;: &quot;A String&quot;, # ID of the shared drive the file resides in. Only populated for items in shared drives.
1958 &quot;explicitlyTrashed&quot;: True or False, # Whether the file has been explicitly trashed, as opposed to recursively trashed from a parent folder.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001959 &quot;exportLinks&quot;: { # Links for exporting Docs Editors files to specific formats.
Bu Sun Kim65020912020-05-20 12:08:20 -07001960 &quot;a_key&quot;: &quot;A String&quot;, # A mapping from export format to URL
1961 },
1962 &quot;fileExtension&quot;: &quot;A String&quot;, # The final component of fullFileExtension. This is only available for files with binary content in Google Drive.
1963 &quot;folderColorRgb&quot;: &quot;A String&quot;, # The color for a folder as an RGB hex string. The supported colors are published in the folderColorPalette field of the About resource.
1964 # If an unsupported color is specified, the closest color in the palette will be used instead.
1965 &quot;fullFileExtension&quot;: &quot;A String&quot;, # The full file extension extracted from the name field. May contain multiple concatenated extensions, such as &quot;tar.gz&quot;. This is only available for files with binary content in Google Drive.
1966 # This is automatically updated when the name field changes, however it is not cleared if the new name does not contain a valid extension.
1967 &quot;hasAugmentedPermissions&quot;: True or False, # Whether there are permissions directly on this file. This field is only populated for items in shared drives.
1968 &quot;hasThumbnail&quot;: True or False, # Whether this file has a thumbnail. This does not indicate whether the requesting app has access to the thumbnail. To check access, look for the presence of the thumbnailLink field.
1969 &quot;headRevisionId&quot;: &quot;A String&quot;, # The ID of the file&#x27;s head revision. This is currently only available for files with binary content in Google Drive.
1970 &quot;iconLink&quot;: &quot;A String&quot;, # A static, unauthenticated link to the file&#x27;s icon.
1971 &quot;id&quot;: &quot;A String&quot;, # The ID of the file.
1972 &quot;imageMediaMetadata&quot;: { # Additional metadata about image media, if available.
1973 &quot;aperture&quot;: 3.14, # The aperture used to create the photo (f-number).
1974 &quot;cameraMake&quot;: &quot;A String&quot;, # The make of the camera used to create the photo.
1975 &quot;cameraModel&quot;: &quot;A String&quot;, # The model of the camera used to create the photo.
1976 &quot;colorSpace&quot;: &quot;A String&quot;, # The color space of the photo.
1977 &quot;exposureBias&quot;: 3.14, # The exposure bias of the photo (APEX value).
1978 &quot;exposureMode&quot;: &quot;A String&quot;, # The exposure mode used to create the photo.
1979 &quot;exposureTime&quot;: 3.14, # The length of the exposure, in seconds.
1980 &quot;flashUsed&quot;: True or False, # Whether a flash was used to create the photo.
1981 &quot;focalLength&quot;: 3.14, # The focal length used to create the photo, in millimeters.
1982 &quot;height&quot;: 42, # The height of the image in pixels.
1983 &quot;isoSpeed&quot;: 42, # The ISO speed used to create the photo.
1984 &quot;lens&quot;: &quot;A String&quot;, # The lens used to create the photo.
1985 &quot;location&quot;: { # Geographic location information stored in the image.
1986 &quot;altitude&quot;: 3.14, # The altitude stored in the image.
1987 &quot;latitude&quot;: 3.14, # The latitude stored in the image.
1988 &quot;longitude&quot;: 3.14, # The longitude stored in the image.
1989 },
1990 &quot;maxApertureValue&quot;: 3.14, # The smallest f-number of the lens at the focal length used to create the photo (APEX value).
1991 &quot;meteringMode&quot;: &quot;A String&quot;, # The metering mode used to create the photo.
1992 &quot;rotation&quot;: 42, # The number of clockwise 90 degree rotations applied from the image&#x27;s original orientation.
1993 &quot;sensor&quot;: &quot;A String&quot;, # The type of sensor used to create the photo.
1994 &quot;subjectDistance&quot;: 42, # The distance to the subject of the photo, in meters.
1995 &quot;time&quot;: &quot;A String&quot;, # The date and time the photo was taken (EXIF DateTime).
1996 &quot;whiteBalance&quot;: &quot;A String&quot;, # The white balance mode used to create the photo.
1997 &quot;width&quot;: 42, # The width of the image in pixels.
1998 },
1999 &quot;isAppAuthorized&quot;: True or False, # Whether the file was created or opened by the requesting app.
2000 &quot;kind&quot;: &quot;drive#file&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;drive#file&quot;.
2001 &quot;lastModifyingUser&quot;: { # Information about a Drive user. # The last user to modify the file.
2002 &quot;displayName&quot;: &quot;A String&quot;, # A plain text displayable name for this user.
2003 &quot;emailAddress&quot;: &quot;A String&quot;, # The email address of the user. This may not be present in certain contexts if the user has not made their email address visible to the requester.
2004 &quot;kind&quot;: &quot;drive#user&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;drive#user&quot;.
2005 &quot;me&quot;: True or False, # Whether this user is the requesting user.
2006 &quot;permissionId&quot;: &quot;A String&quot;, # The user&#x27;s ID as visible in Permission resources.
2007 &quot;photoLink&quot;: &quot;A String&quot;, # A link to the user&#x27;s profile photo, if available.
2008 },
yoshi-code-bot04bafe12021-06-29 00:20:25 -07002009 &quot;linkShareMetadata&quot;: { # Contains details about the link URLs that clients are using to refer to this item.
2010 &quot;securityUpdateEligible&quot;: True or False, # Whether the file is eligible for security update.
2011 &quot;securityUpdateEnabled&quot;: True or False, # Whether the security update is enabled for this file.
2012 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002013 &quot;md5Checksum&quot;: &quot;A String&quot;, # The MD5 checksum for the content of the file. This is only applicable to files with binary content in Google Drive.
2014 &quot;mimeType&quot;: &quot;A String&quot;, # The MIME type of the file.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002015 # Google Drive will attempt to automatically detect an appropriate value from uploaded content if no value is provided. The value cannot be changed unless a new revision is uploaded.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08002016 # If a file is created with a Google Doc MIME type, the uploaded content will be imported if possible. The supported import formats are published in the About resource.
Bu Sun Kim65020912020-05-20 12:08:20 -07002017 &quot;modifiedByMe&quot;: True or False, # Whether the file has been modified by this user.
2018 &quot;modifiedByMeTime&quot;: &quot;A String&quot;, # The last time the file was modified by the user (RFC 3339 date-time).
2019 &quot;modifiedTime&quot;: &quot;A String&quot;, # The last time the file was modified by anyone (RFC 3339 date-time).
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08002020 # Note that setting modifiedTime will also update modifiedByMeTime for the user.
Bu Sun Kim65020912020-05-20 12:08:20 -07002021 &quot;name&quot;: &quot;A String&quot;, # The name of the file. This is not necessarily unique within a folder. Note that for immutable items such as the top level folders of shared drives, My Drive root folder, and Application Data folder the name is constant.
2022 &quot;originalFilename&quot;: &quot;A String&quot;, # The original filename of the uploaded content if available, or else the original value of the name field. This is only available for files with binary content in Google Drive.
2023 &quot;ownedByMe&quot;: True or False, # Whether the user owns the file. Not populated for items in shared drives.
yoshi-code-botab1d6dc2021-05-28 00:42:02 -07002024 &quot;owners&quot;: [ # The owner of this file. Only certain legacy files may have more than one owner. This field isn&#x27;t populated for items in shared drives.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08002025 { # Information about a Drive user.
Bu Sun Kim65020912020-05-20 12:08:20 -07002026 &quot;displayName&quot;: &quot;A String&quot;, # A plain text displayable name for this user.
2027 &quot;emailAddress&quot;: &quot;A String&quot;, # The email address of the user. This may not be present in certain contexts if the user has not made their email address visible to the requester.
2028 &quot;kind&quot;: &quot;drive#user&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;drive#user&quot;.
2029 &quot;me&quot;: True or False, # Whether this user is the requesting user.
2030 &quot;permissionId&quot;: &quot;A String&quot;, # The user&#x27;s ID as visible in Permission resources.
2031 &quot;photoLink&quot;: &quot;A String&quot;, # A link to the user&#x27;s profile photo, if available.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08002032 },
2033 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002034 &quot;parents&quot;: [ # The IDs of the parent folders which contain the file.
2035 # If not specified as part of a create request, the file will be placed directly in the user&#x27;s My Drive folder. If not specified as part of a copy request, the file will inherit any discoverable parents of the source file. Update requests must use the addParents and removeParents parameters to modify the parents list.
2036 &quot;A String&quot;,
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08002037 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002038 &quot;permissionIds&quot;: [ # List of permission IDs for users with access to this file.
2039 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002040 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002041 &quot;permissions&quot;: [ # The full list of permissions for the file. This is only available if the requesting user can share the file. Not populated for items in shared drives.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002042 { # A permission for a file. A permission grants a user, group, domain or the world access to a file or a folder hierarchy.
Bu Sun Kim65020912020-05-20 12:08:20 -07002043 &quot;allowFileDiscovery&quot;: True or False, # Whether the permission allows the file to be discovered through search. This is only applicable for permissions of type domain or anyone.
2044 &quot;deleted&quot;: True or False, # Whether the account associated with this permission has been deleted. This field only pertains to user and group permissions.
2045 &quot;displayName&quot;: &quot;A String&quot;, # The &quot;pretty&quot; name of the value of the permission. The following is a list of examples for each type of permission:
2046 # - user - User&#x27;s full name, as defined for their Google account, such as &quot;Joe Smith.&quot;
2047 # - group - Name of the Google Group, such as &quot;The Company Administrators.&quot;
2048 # - domain - String domain name, such as &quot;thecompany.com.&quot;
Dan O'Mearadd494642020-05-01 07:42:23 -07002049 # - anyone - No displayName is present.
Bu Sun Kim65020912020-05-20 12:08:20 -07002050 &quot;domain&quot;: &quot;A String&quot;, # The domain to which this permission refers.
2051 &quot;emailAddress&quot;: &quot;A String&quot;, # The email address of the user or group to which this permission refers.
2052 &quot;expirationTime&quot;: &quot;A String&quot;, # The time at which this permission will expire (RFC 3339 date-time). Expiration times have the following restrictions:
2053 # - They can only be set on user and group permissions
2054 # - The time must be in the future
2055 # - The time cannot be more than a year in the future
2056 &quot;id&quot;: &quot;A String&quot;, # The ID of this permission. This is a unique identifier for the grantee, and is published in User resources as permissionId. IDs should be treated as opaque values.
2057 &quot;kind&quot;: &quot;drive#permission&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;drive#permission&quot;.
2058 &quot;permissionDetails&quot;: [ # Details of whether the permissions on this shared drive item are inherited or directly on this item. This is an output-only field which is present only for shared drive items.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002059 {
Bu Sun Kim65020912020-05-20 12:08:20 -07002060 &quot;inherited&quot;: True or False, # Whether this permission is inherited. This field is always populated. This is an output-only field.
2061 &quot;inheritedFrom&quot;: &quot;A String&quot;, # The ID of the item from which this permission is inherited. This is an output-only field.
2062 &quot;permissionType&quot;: &quot;A String&quot;, # The permission type for this user. While new values may be added in future, the following are currently possible:
2063 # - file
2064 # - member
2065 &quot;role&quot;: &quot;A String&quot;, # The primary role for this user. While new values may be added in the future, the following are currently possible:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002066 # - organizer
2067 # - fileOrganizer
2068 # - writer
2069 # - commenter
2070 # - reader
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002071 },
2072 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002073 &quot;photoLink&quot;: &quot;A String&quot;, # A link to the user&#x27;s profile photo, if available.
2074 &quot;role&quot;: &quot;A String&quot;, # The role granted by this permission. While new values may be supported in the future, the following are currently allowed:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002075 # - owner
2076 # - organizer
2077 # - fileOrganizer
2078 # - writer
2079 # - commenter
2080 # - reader
Bu Sun Kim65020912020-05-20 12:08:20 -07002081 &quot;teamDrivePermissionDetails&quot;: [ # Deprecated - use permissionDetails instead.
2082 {
2083 &quot;inherited&quot;: True or False, # Deprecated - use permissionDetails/inherited instead.
2084 &quot;inheritedFrom&quot;: &quot;A String&quot;, # Deprecated - use permissionDetails/inheritedFrom instead.
2085 &quot;role&quot;: &quot;A String&quot;, # Deprecated - use permissionDetails/role instead.
2086 &quot;teamDrivePermissionType&quot;: &quot;A String&quot;, # Deprecated - use permissionDetails/permissionType instead.
2087 },
2088 ],
2089 &quot;type&quot;: &quot;A String&quot;, # The type of the grantee. Valid values are:
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002090 # - user
2091 # - group
2092 # - domain
Bu Sun Kim65020912020-05-20 12:08:20 -07002093 # - anyone When creating a permission, if type is user or group, you must provide an emailAddress for the user or group. When type is domain, you must provide a domain. There isn&#x27;t extra information required for a anyone type.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002094 &quot;view&quot;: &quot;A String&quot;, # Indicates the view for this permission. Only populated for permissions that belong to a view. published is the only supported value.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002095 },
2096 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002097 &quot;properties&quot;: { # A collection of arbitrary key-value pairs which are visible to all apps.
2098 # Entries with null values are cleared in update and copy requests.
2099 &quot;a_key&quot;: &quot;A String&quot;,
2100 },
2101 &quot;quotaBytesUsed&quot;: &quot;A String&quot;, # The number of storage quota bytes used by the file. This includes the head revision as well as previous revisions with keepForever enabled.
yoshi-code-bot04bafe12021-06-29 00:20:25 -07002102 &quot;resourceKey&quot;: &quot;A String&quot;, # A key needed to access the item via a shared link.
Bu Sun Kim65020912020-05-20 12:08:20 -07002103 &quot;shared&quot;: True or False, # Whether the file has been shared. Not populated for items in shared drives.
2104 &quot;sharedWithMeTime&quot;: &quot;A String&quot;, # The time at which the file was shared with the user, if applicable (RFC 3339 date-time).
2105 &quot;sharingUser&quot;: { # Information about a Drive user. # The user who shared the file with the requesting user, if applicable.
2106 &quot;displayName&quot;: &quot;A String&quot;, # A plain text displayable name for this user.
2107 &quot;emailAddress&quot;: &quot;A String&quot;, # The email address of the user. This may not be present in certain contexts if the user has not made their email address visible to the requester.
2108 &quot;kind&quot;: &quot;drive#user&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;drive#user&quot;.
2109 &quot;me&quot;: True or False, # Whether this user is the requesting user.
2110 &quot;permissionId&quot;: &quot;A String&quot;, # The user&#x27;s ID as visible in Permission resources.
2111 &quot;photoLink&quot;: &quot;A String&quot;, # A link to the user&#x27;s profile photo, if available.
2112 },
2113 &quot;shortcutDetails&quot;: { # Shortcut file details. Only populated for shortcut files, which have the mimeType field set to application/vnd.google-apps.shortcut.
2114 &quot;targetId&quot;: &quot;A String&quot;, # The ID of the file that this shortcut points to.
2115 &quot;targetMimeType&quot;: &quot;A String&quot;, # The MIME type of the file that this shortcut points to. The value of this field is a snapshot of the target&#x27;s MIME type, captured when the shortcut is created.
yoshi-code-bot04bafe12021-06-29 00:20:25 -07002116 &quot;targetResourceKey&quot;: &quot;A String&quot;, # The ResourceKey for the target file.
Bu Sun Kim65020912020-05-20 12:08:20 -07002117 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002118 &quot;size&quot;: &quot;A String&quot;, # The size of the file&#x27;s content in bytes. This is applicable to binary files in Google Drive and Google Docs files.
Bu Sun Kim65020912020-05-20 12:08:20 -07002119 &quot;spaces&quot;: [ # The list of spaces which contain the file. The currently supported values are &#x27;drive&#x27;, &#x27;appDataFolder&#x27; and &#x27;photos&#x27;.
2120 &quot;A String&quot;,
2121 ],
2122 &quot;starred&quot;: True or False, # Whether the user has starred the file.
2123 &quot;teamDriveId&quot;: &quot;A String&quot;, # Deprecated - use driveId instead.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002124 &quot;thumbnailLink&quot;: &quot;A String&quot;, # A short-lived link to the file&#x27;s thumbnail, if available. Typically lasts on the order of hours. Only populated when the requesting app can access the file&#x27;s content. If the file isn&#x27;t shared publicly, the URL returned in Files.thumbnailLink must be fetched using a credentialed request.
Bu Sun Kim65020912020-05-20 12:08:20 -07002125 &quot;thumbnailVersion&quot;: &quot;A String&quot;, # The thumbnail version for use in thumbnail cache invalidation.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002126 &quot;trashed&quot;: True or False, # Whether the file has been trashed, either explicitly or from a trashed parent folder. Only the owner may trash a file. The trashed item is excluded from all files.list responses returned for any user who does not own the file. However, all users with access to the file can see the trashed item metadata in an API response. All users with access can copy, download, export, and share the file.
Bu Sun Kim65020912020-05-20 12:08:20 -07002127 &quot;trashedTime&quot;: &quot;A String&quot;, # The time that the item was trashed (RFC 3339 date-time). Only populated for items in shared drives.
2128 &quot;trashingUser&quot;: { # Information about a Drive user. # If the file has been explicitly trashed, the user who trashed it. Only populated for items in shared drives.
2129 &quot;displayName&quot;: &quot;A String&quot;, # A plain text displayable name for this user.
2130 &quot;emailAddress&quot;: &quot;A String&quot;, # The email address of the user. This may not be present in certain contexts if the user has not made their email address visible to the requester.
2131 &quot;kind&quot;: &quot;drive#user&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;drive#user&quot;.
2132 &quot;me&quot;: True or False, # Whether this user is the requesting user.
2133 &quot;permissionId&quot;: &quot;A String&quot;, # The user&#x27;s ID as visible in Permission resources.
2134 &quot;photoLink&quot;: &quot;A String&quot;, # A link to the user&#x27;s profile photo, if available.
2135 },
2136 &quot;version&quot;: &quot;A String&quot;, # A monotonically increasing version number for the file. This reflects every change made to the file on the server, even those not visible to the user.
2137 &quot;videoMediaMetadata&quot;: { # Additional metadata about video media. This may not be available immediately upon upload.
2138 &quot;durationMillis&quot;: &quot;A String&quot;, # The duration of the video in milliseconds.
2139 &quot;height&quot;: 42, # The height of the video in pixels.
2140 &quot;width&quot;: 42, # The width of the video in pixels.
2141 },
2142 &quot;viewedByMe&quot;: True or False, # Whether the file has been viewed by this user.
2143 &quot;viewedByMeTime&quot;: &quot;A String&quot;, # The last time the file was viewed by the user (RFC 3339 date-time).
2144 &quot;viewersCanCopyContent&quot;: True or False, # Deprecated - use copyRequiresWriterPermission instead.
2145 &quot;webContentLink&quot;: &quot;A String&quot;, # A link for downloading the content of the file in a browser. This is only available for files with binary content in Google Drive.
2146 &quot;webViewLink&quot;: &quot;A String&quot;, # A link for opening the file in a relevant Google editor or viewer in a browser.
2147 &quot;writersCanShare&quot;: True or False, # Whether users with only writer permission can modify the file&#x27;s permissions. Not populated for items in shared drives.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08002148}
2149
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002150 addParents: string, A comma-separated list of parent IDs to add.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002151 enforceSingleParent: boolean, Deprecated. Adding files to multiple folders is no longer supported. Use shortcuts instead.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002152 includePermissionsForView: string, Specifies which additional view&#x27;s permissions to include in the response. Only &#x27;published&#x27; is supported.
Bu Sun Kim65020912020-05-20 12:08:20 -07002153 keepRevisionForever: boolean, Whether to set the &#x27;keepForever&#x27; field in the new head revision. This is only applicable to files with binary content in Google Drive. Only 200 revisions for the file can be kept forever. If the limit is reached, try deleting pinned revisions.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002154 media_body: string, The filename of the media request body, or an instance of a MediaUpload object.
2155 media_mime_type: string, The MIME type of the media request body, or an instance of a MediaUpload object.
Bu Sun Kim65020912020-05-20 12:08:20 -07002156 ocrLanguage: string, A language hint for OCR processing during image import (ISO 639-1 code).
2157 removeParents: string, A comma-separated list of parent IDs to remove.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002158 supportsAllDrives: boolean, Whether the requesting application supports both My Drives and shared drives.
Bu Sun Kim65020912020-05-20 12:08:20 -07002159 supportsTeamDrives: boolean, Deprecated use supportsAllDrives instead.
2160 useContentAsIndexableText: boolean, Whether to use the uploaded content as indexable text.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08002161
2162Returns:
2163 An object of the form:
2164
2165 { # The metadata for a file.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002166 &quot;appProperties&quot;: { # A collection of arbitrary key-value pairs which are private to the requesting app.
yoshi-code-bot69706592021-03-03 03:54:02 -08002167 # Entries with null values are cleared in update and copy requests. These properties can only be retrieved using an authenticated request. An authenticated request uses an access token obtained with a OAuth 2 client ID. You cannot use an API key to retrieve private properties.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002168 &quot;a_key&quot;: &quot;A String&quot;,
2169 },
2170 &quot;capabilities&quot;: { # Capabilities the current user has on this file. Each capability corresponds to a fine-grained action that a user may take.
2171 &quot;canAddChildren&quot;: True or False, # Whether the current user can add children to this folder. This is always false when the item is not a folder.
2172 &quot;canAddFolderFromAnotherDrive&quot;: True or False, # Whether the current user can add a folder from another drive (different shared drive or My Drive) to this folder. This is false when the item is not a folder. Only populated for items in shared drives.
2173 &quot;canAddMyDriveParent&quot;: True or False, # Whether the current user can add a parent for the item without removing an existing parent in the same request. Not populated for shared drive files.
2174 &quot;canChangeCopyRequiresWriterPermission&quot;: True or False, # Whether the current user can change the copyRequiresWriterPermission restriction of this file.
yoshi-code-bot04bafe12021-06-29 00:20:25 -07002175 &quot;canChangeSecurityUpdateEnabled&quot;: True or False, # Whether the current user can change the securityUpdateEnabled field on link share metadata.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002176 &quot;canChangeViewersCanCopyContent&quot;: True or False, # Deprecated
2177 &quot;canComment&quot;: True or False, # Whether the current user can comment on this file.
2178 &quot;canCopy&quot;: True or False, # Whether the current user can copy this file. For an item in a shared drive, whether the current user can copy non-folder descendants of this item, or this item itself if it is not a folder.
2179 &quot;canDelete&quot;: True or False, # Whether the current user can delete this file.
2180 &quot;canDeleteChildren&quot;: True or False, # Whether the current user can delete children of this folder. This is false when the item is not a folder. Only populated for items in shared drives.
2181 &quot;canDownload&quot;: True or False, # Whether the current user can download this file.
2182 &quot;canEdit&quot;: True or False, # Whether the current user can edit this file. Other factors may limit the type of changes a user can make to a file. For example, see canChangeCopyRequiresWriterPermission or canModifyContent.
2183 &quot;canListChildren&quot;: True or False, # Whether the current user can list the children of this folder. This is always false when the item is not a folder.
2184 &quot;canModifyContent&quot;: True or False, # Whether the current user can modify the content of this file.
2185 &quot;canModifyContentRestriction&quot;: True or False, # Whether the current user can modify restrictions on content of this file.
2186 &quot;canMoveChildrenOutOfDrive&quot;: True or False, # Whether the current user can move children of this folder outside of the shared drive. This is false when the item is not a folder. Only populated for items in shared drives.
2187 &quot;canMoveChildrenOutOfTeamDrive&quot;: True or False, # Deprecated - use canMoveChildrenOutOfDrive instead.
2188 &quot;canMoveChildrenWithinDrive&quot;: True or False, # Whether the current user can move children of this folder within this drive. This is false when the item is not a folder. Note that a request to move the child may still fail depending on the current user&#x27;s access to the child and to the destination folder.
2189 &quot;canMoveChildrenWithinTeamDrive&quot;: True or False, # Deprecated - use canMoveChildrenWithinDrive instead.
2190 &quot;canMoveItemIntoTeamDrive&quot;: True or False, # Deprecated - use canMoveItemOutOfDrive instead.
2191 &quot;canMoveItemOutOfDrive&quot;: True or False, # Whether the current user can move this item outside of this drive by changing its parent. Note that a request to change the parent of the item may still fail depending on the new parent that is being added.
2192 &quot;canMoveItemOutOfTeamDrive&quot;: True or False, # Deprecated - use canMoveItemOutOfDrive instead.
2193 &quot;canMoveItemWithinDrive&quot;: True or False, # Whether the current user can move this item within this drive. Note that a request to change the parent of the item may still fail depending on the new parent that is being added and the parent that is being removed.
2194 &quot;canMoveItemWithinTeamDrive&quot;: True or False, # Deprecated - use canMoveItemWithinDrive instead.
2195 &quot;canMoveTeamDriveItem&quot;: True or False, # Deprecated - use canMoveItemWithinDrive or canMoveItemOutOfDrive instead.
2196 &quot;canReadDrive&quot;: True or False, # Whether the current user can read the shared drive to which this file belongs. Only populated for items in shared drives.
2197 &quot;canReadRevisions&quot;: True or False, # Whether the current user can read the revisions resource of this file. For a shared drive item, whether revisions of non-folder descendants of this item, or this item itself if it is not a folder, can be read.
2198 &quot;canReadTeamDrive&quot;: True or False, # Deprecated - use canReadDrive instead.
2199 &quot;canRemoveChildren&quot;: True or False, # Whether the current user can remove children from this folder. This is always false when the item is not a folder. For a folder in a shared drive, use canDeleteChildren or canTrashChildren instead.
2200 &quot;canRemoveMyDriveParent&quot;: True or False, # Whether the current user can remove a parent from the item without adding another parent in the same request. Not populated for shared drive files.
2201 &quot;canRename&quot;: True or False, # Whether the current user can rename this file.
2202 &quot;canShare&quot;: True or False, # Whether the current user can modify the sharing settings for this file.
2203 &quot;canTrash&quot;: True or False, # Whether the current user can move this file to trash.
2204 &quot;canTrashChildren&quot;: True or False, # Whether the current user can trash children of this folder. This is false when the item is not a folder. Only populated for items in shared drives.
2205 &quot;canUntrash&quot;: True or False, # Whether the current user can restore this file from trash.
2206 },
2207 &quot;contentHints&quot;: { # Additional information about the content of the file. These fields are never populated in responses.
2208 &quot;indexableText&quot;: &quot;A String&quot;, # Text to be indexed for the file to improve fullText queries. This is limited to 128KB in length and may contain HTML elements.
2209 &quot;thumbnail&quot;: { # A thumbnail for the file. This will only be used if Google Drive cannot generate a standard thumbnail.
2210 &quot;image&quot;: &quot;A String&quot;, # The thumbnail data encoded with URL-safe Base64 (RFC 4648 section 5).
2211 &quot;mimeType&quot;: &quot;A String&quot;, # The MIME type of the thumbnail.
Bu Sun Kim65020912020-05-20 12:08:20 -07002212 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002213 },
2214 &quot;contentRestrictions&quot;: [ # Restrictions for accessing the content of the file. Only populated if such a restriction exists.
2215 { # A restriction for accessing the content of the file.
2216 &quot;readOnly&quot;: True or False, # Whether the content of the file is read-only. If a file is read-only, a new revision of the file may not be added, comments may not be added or modified, and the title of the file may not be modified.
2217 &quot;reason&quot;: &quot;A String&quot;, # Reason for why the content of the file is restricted. This is only mutable on requests that also set readOnly=true.
2218 &quot;restrictingUser&quot;: { # Information about a Drive user. # The user who set the content restriction. Only populated if readOnly is true.
Bu Sun Kim65020912020-05-20 12:08:20 -07002219 &quot;displayName&quot;: &quot;A String&quot;, # A plain text displayable name for this user.
2220 &quot;emailAddress&quot;: &quot;A String&quot;, # The email address of the user. This may not be present in certain contexts if the user has not made their email address visible to the requester.
2221 &quot;kind&quot;: &quot;drive#user&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;drive#user&quot;.
2222 &quot;me&quot;: True or False, # Whether this user is the requesting user.
2223 &quot;permissionId&quot;: &quot;A String&quot;, # The user&#x27;s ID as visible in Permission resources.
2224 &quot;photoLink&quot;: &quot;A String&quot;, # A link to the user&#x27;s profile photo, if available.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08002225 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002226 &quot;restrictionTime&quot;: &quot;A String&quot;, # The time at which the content restriction was set (formatted RFC 3339 timestamp). Only populated if readOnly is true.
2227 &quot;type&quot;: &quot;A String&quot;, # The type of the content restriction. Currently the only possible value is globalContentRestriction.
Bu Sun Kim65020912020-05-20 12:08:20 -07002228 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002229 ],
2230 &quot;copyRequiresWriterPermission&quot;: True or False, # Whether the options to copy, print, or download this file, should be disabled for readers and commenters.
2231 &quot;createdTime&quot;: &quot;A String&quot;, # The time at which the file was created (RFC 3339 date-time).
2232 &quot;description&quot;: &quot;A String&quot;, # A short description of the file.
2233 &quot;driveId&quot;: &quot;A String&quot;, # ID of the shared drive the file resides in. Only populated for items in shared drives.
2234 &quot;explicitlyTrashed&quot;: True or False, # Whether the file has been explicitly trashed, as opposed to recursively trashed from a parent folder.
2235 &quot;exportLinks&quot;: { # Links for exporting Docs Editors files to specific formats.
2236 &quot;a_key&quot;: &quot;A String&quot;, # A mapping from export format to URL
2237 },
2238 &quot;fileExtension&quot;: &quot;A String&quot;, # The final component of fullFileExtension. This is only available for files with binary content in Google Drive.
2239 &quot;folderColorRgb&quot;: &quot;A String&quot;, # The color for a folder as an RGB hex string. The supported colors are published in the folderColorPalette field of the About resource.
2240 # If an unsupported color is specified, the closest color in the palette will be used instead.
2241 &quot;fullFileExtension&quot;: &quot;A String&quot;, # The full file extension extracted from the name field. May contain multiple concatenated extensions, such as &quot;tar.gz&quot;. This is only available for files with binary content in Google Drive.
2242 # This is automatically updated when the name field changes, however it is not cleared if the new name does not contain a valid extension.
2243 &quot;hasAugmentedPermissions&quot;: True or False, # Whether there are permissions directly on this file. This field is only populated for items in shared drives.
2244 &quot;hasThumbnail&quot;: True or False, # Whether this file has a thumbnail. This does not indicate whether the requesting app has access to the thumbnail. To check access, look for the presence of the thumbnailLink field.
2245 &quot;headRevisionId&quot;: &quot;A String&quot;, # The ID of the file&#x27;s head revision. This is currently only available for files with binary content in Google Drive.
2246 &quot;iconLink&quot;: &quot;A String&quot;, # A static, unauthenticated link to the file&#x27;s icon.
2247 &quot;id&quot;: &quot;A String&quot;, # The ID of the file.
2248 &quot;imageMediaMetadata&quot;: { # Additional metadata about image media, if available.
2249 &quot;aperture&quot;: 3.14, # The aperture used to create the photo (f-number).
2250 &quot;cameraMake&quot;: &quot;A String&quot;, # The make of the camera used to create the photo.
2251 &quot;cameraModel&quot;: &quot;A String&quot;, # The model of the camera used to create the photo.
2252 &quot;colorSpace&quot;: &quot;A String&quot;, # The color space of the photo.
2253 &quot;exposureBias&quot;: 3.14, # The exposure bias of the photo (APEX value).
2254 &quot;exposureMode&quot;: &quot;A String&quot;, # The exposure mode used to create the photo.
2255 &quot;exposureTime&quot;: 3.14, # The length of the exposure, in seconds.
2256 &quot;flashUsed&quot;: True or False, # Whether a flash was used to create the photo.
2257 &quot;focalLength&quot;: 3.14, # The focal length used to create the photo, in millimeters.
2258 &quot;height&quot;: 42, # The height of the image in pixels.
2259 &quot;isoSpeed&quot;: 42, # The ISO speed used to create the photo.
2260 &quot;lens&quot;: &quot;A String&quot;, # The lens used to create the photo.
2261 &quot;location&quot;: { # Geographic location information stored in the image.
2262 &quot;altitude&quot;: 3.14, # The altitude stored in the image.
2263 &quot;latitude&quot;: 3.14, # The latitude stored in the image.
2264 &quot;longitude&quot;: 3.14, # The longitude stored in the image.
2265 },
2266 &quot;maxApertureValue&quot;: 3.14, # The smallest f-number of the lens at the focal length used to create the photo (APEX value).
2267 &quot;meteringMode&quot;: &quot;A String&quot;, # The metering mode used to create the photo.
2268 &quot;rotation&quot;: 42, # The number of clockwise 90 degree rotations applied from the image&#x27;s original orientation.
2269 &quot;sensor&quot;: &quot;A String&quot;, # The type of sensor used to create the photo.
2270 &quot;subjectDistance&quot;: 42, # The distance to the subject of the photo, in meters.
2271 &quot;time&quot;: &quot;A String&quot;, # The date and time the photo was taken (EXIF DateTime).
2272 &quot;whiteBalance&quot;: &quot;A String&quot;, # The white balance mode used to create the photo.
2273 &quot;width&quot;: 42, # The width of the image in pixels.
2274 },
2275 &quot;isAppAuthorized&quot;: True or False, # Whether the file was created or opened by the requesting app.
2276 &quot;kind&quot;: &quot;drive#file&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;drive#file&quot;.
2277 &quot;lastModifyingUser&quot;: { # Information about a Drive user. # The last user to modify the file.
2278 &quot;displayName&quot;: &quot;A String&quot;, # A plain text displayable name for this user.
2279 &quot;emailAddress&quot;: &quot;A String&quot;, # The email address of the user. This may not be present in certain contexts if the user has not made their email address visible to the requester.
2280 &quot;kind&quot;: &quot;drive#user&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;drive#user&quot;.
2281 &quot;me&quot;: True or False, # Whether this user is the requesting user.
2282 &quot;permissionId&quot;: &quot;A String&quot;, # The user&#x27;s ID as visible in Permission resources.
2283 &quot;photoLink&quot;: &quot;A String&quot;, # A link to the user&#x27;s profile photo, if available.
2284 },
yoshi-code-bot04bafe12021-06-29 00:20:25 -07002285 &quot;linkShareMetadata&quot;: { # Contains details about the link URLs that clients are using to refer to this item.
2286 &quot;securityUpdateEligible&quot;: True or False, # Whether the file is eligible for security update.
2287 &quot;securityUpdateEnabled&quot;: True or False, # Whether the security update is enabled for this file.
2288 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002289 &quot;md5Checksum&quot;: &quot;A String&quot;, # The MD5 checksum for the content of the file. This is only applicable to files with binary content in Google Drive.
2290 &quot;mimeType&quot;: &quot;A String&quot;, # The MIME type of the file.
2291 # Google Drive will attempt to automatically detect an appropriate value from uploaded content if no value is provided. The value cannot be changed unless a new revision is uploaded.
2292 # If a file is created with a Google Doc MIME type, the uploaded content will be imported if possible. The supported import formats are published in the About resource.
2293 &quot;modifiedByMe&quot;: True or False, # Whether the file has been modified by this user.
2294 &quot;modifiedByMeTime&quot;: &quot;A String&quot;, # The last time the file was modified by the user (RFC 3339 date-time).
2295 &quot;modifiedTime&quot;: &quot;A String&quot;, # The last time the file was modified by anyone (RFC 3339 date-time).
2296 # Note that setting modifiedTime will also update modifiedByMeTime for the user.
2297 &quot;name&quot;: &quot;A String&quot;, # The name of the file. This is not necessarily unique within a folder. Note that for immutable items such as the top level folders of shared drives, My Drive root folder, and Application Data folder the name is constant.
2298 &quot;originalFilename&quot;: &quot;A String&quot;, # The original filename of the uploaded content if available, or else the original value of the name field. This is only available for files with binary content in Google Drive.
2299 &quot;ownedByMe&quot;: True or False, # Whether the user owns the file. Not populated for items in shared drives.
yoshi-code-botab1d6dc2021-05-28 00:42:02 -07002300 &quot;owners&quot;: [ # The owner of this file. Only certain legacy files may have more than one owner. This field isn&#x27;t populated for items in shared drives.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002301 { # Information about a Drive user.
Bu Sun Kim65020912020-05-20 12:08:20 -07002302 &quot;displayName&quot;: &quot;A String&quot;, # A plain text displayable name for this user.
2303 &quot;emailAddress&quot;: &quot;A String&quot;, # The email address of the user. This may not be present in certain contexts if the user has not made their email address visible to the requester.
2304 &quot;kind&quot;: &quot;drive#user&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;drive#user&quot;.
2305 &quot;me&quot;: True or False, # Whether this user is the requesting user.
2306 &quot;permissionId&quot;: &quot;A String&quot;, # The user&#x27;s ID as visible in Permission resources.
2307 &quot;photoLink&quot;: &quot;A String&quot;, # A link to the user&#x27;s profile photo, if available.
2308 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002309 ],
2310 &quot;parents&quot;: [ # The IDs of the parent folders which contain the file.
2311 # If not specified as part of a create request, the file will be placed directly in the user&#x27;s My Drive folder. If not specified as part of a copy request, the file will inherit any discoverable parents of the source file. Update requests must use the addParents and removeParents parameters to modify the parents list.
2312 &quot;A String&quot;,
2313 ],
2314 &quot;permissionIds&quot;: [ # List of permission IDs for users with access to this file.
2315 &quot;A String&quot;,
2316 ],
2317 &quot;permissions&quot;: [ # The full list of permissions for the file. This is only available if the requesting user can share the file. Not populated for items in shared drives.
2318 { # A permission for a file. A permission grants a user, group, domain or the world access to a file or a folder hierarchy.
2319 &quot;allowFileDiscovery&quot;: True or False, # Whether the permission allows the file to be discovered through search. This is only applicable for permissions of type domain or anyone.
2320 &quot;deleted&quot;: True or False, # Whether the account associated with this permission has been deleted. This field only pertains to user and group permissions.
2321 &quot;displayName&quot;: &quot;A String&quot;, # The &quot;pretty&quot; name of the value of the permission. The following is a list of examples for each type of permission:
2322 # - user - User&#x27;s full name, as defined for their Google account, such as &quot;Joe Smith.&quot;
2323 # - group - Name of the Google Group, such as &quot;The Company Administrators.&quot;
2324 # - domain - String domain name, such as &quot;thecompany.com.&quot;
2325 # - anyone - No displayName is present.
2326 &quot;domain&quot;: &quot;A String&quot;, # The domain to which this permission refers.
2327 &quot;emailAddress&quot;: &quot;A String&quot;, # The email address of the user or group to which this permission refers.
2328 &quot;expirationTime&quot;: &quot;A String&quot;, # The time at which this permission will expire (RFC 3339 date-time). Expiration times have the following restrictions:
2329 # - They can only be set on user and group permissions
2330 # - The time must be in the future
2331 # - The time cannot be more than a year in the future
2332 &quot;id&quot;: &quot;A String&quot;, # The ID of this permission. This is a unique identifier for the grantee, and is published in User resources as permissionId. IDs should be treated as opaque values.
2333 &quot;kind&quot;: &quot;drive#permission&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;drive#permission&quot;.
2334 &quot;permissionDetails&quot;: [ # Details of whether the permissions on this shared drive item are inherited or directly on this item. This is an output-only field which is present only for shared drive items.
2335 {
2336 &quot;inherited&quot;: True or False, # Whether this permission is inherited. This field is always populated. This is an output-only field.
2337 &quot;inheritedFrom&quot;: &quot;A String&quot;, # The ID of the item from which this permission is inherited. This is an output-only field.
2338 &quot;permissionType&quot;: &quot;A String&quot;, # The permission type for this user. While new values may be added in future, the following are currently possible:
2339 # - file
2340 # - member
2341 &quot;role&quot;: &quot;A String&quot;, # The primary role for this user. While new values may be added in the future, the following are currently possible:
2342 # - organizer
2343 # - fileOrganizer
2344 # - writer
2345 # - commenter
2346 # - reader
2347 },
2348 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002349 &quot;photoLink&quot;: &quot;A String&quot;, # A link to the user&#x27;s profile photo, if available.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002350 &quot;role&quot;: &quot;A String&quot;, # The role granted by this permission. While new values may be supported in the future, the following are currently allowed:
2351 # - owner
2352 # - organizer
2353 # - fileOrganizer
2354 # - writer
2355 # - commenter
2356 # - reader
2357 &quot;teamDrivePermissionDetails&quot;: [ # Deprecated - use permissionDetails instead.
2358 {
2359 &quot;inherited&quot;: True or False, # Deprecated - use permissionDetails/inherited instead.
2360 &quot;inheritedFrom&quot;: &quot;A String&quot;, # Deprecated - use permissionDetails/inheritedFrom instead.
2361 &quot;role&quot;: &quot;A String&quot;, # Deprecated - use permissionDetails/role instead.
2362 &quot;teamDrivePermissionType&quot;: &quot;A String&quot;, # Deprecated - use permissionDetails/permissionType instead.
2363 },
2364 ],
2365 &quot;type&quot;: &quot;A String&quot;, # The type of the grantee. Valid values are:
2366 # - user
2367 # - group
2368 # - domain
2369 # - anyone When creating a permission, if type is user or group, you must provide an emailAddress for the user or group. When type is domain, you must provide a domain. There isn&#x27;t extra information required for a anyone type.
2370 &quot;view&quot;: &quot;A String&quot;, # Indicates the view for this permission. Only populated for permissions that belong to a view. published is the only supported value.
Bu Sun Kim65020912020-05-20 12:08:20 -07002371 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002372 ],
2373 &quot;properties&quot;: { # A collection of arbitrary key-value pairs which are visible to all apps.
2374 # Entries with null values are cleared in update and copy requests.
2375 &quot;a_key&quot;: &quot;A String&quot;,
2376 },
2377 &quot;quotaBytesUsed&quot;: &quot;A String&quot;, # The number of storage quota bytes used by the file. This includes the head revision as well as previous revisions with keepForever enabled.
yoshi-code-bot04bafe12021-06-29 00:20:25 -07002378 &quot;resourceKey&quot;: &quot;A String&quot;, # A key needed to access the item via a shared link.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002379 &quot;shared&quot;: True or False, # Whether the file has been shared. Not populated for items in shared drives.
2380 &quot;sharedWithMeTime&quot;: &quot;A String&quot;, # The time at which the file was shared with the user, if applicable (RFC 3339 date-time).
2381 &quot;sharingUser&quot;: { # Information about a Drive user. # The user who shared the file with the requesting user, if applicable.
2382 &quot;displayName&quot;: &quot;A String&quot;, # A plain text displayable name for this user.
2383 &quot;emailAddress&quot;: &quot;A String&quot;, # The email address of the user. This may not be present in certain contexts if the user has not made their email address visible to the requester.
2384 &quot;kind&quot;: &quot;drive#user&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;drive#user&quot;.
2385 &quot;me&quot;: True or False, # Whether this user is the requesting user.
2386 &quot;permissionId&quot;: &quot;A String&quot;, # The user&#x27;s ID as visible in Permission resources.
2387 &quot;photoLink&quot;: &quot;A String&quot;, # A link to the user&#x27;s profile photo, if available.
2388 },
2389 &quot;shortcutDetails&quot;: { # Shortcut file details. Only populated for shortcut files, which have the mimeType field set to application/vnd.google-apps.shortcut.
2390 &quot;targetId&quot;: &quot;A String&quot;, # The ID of the file that this shortcut points to.
2391 &quot;targetMimeType&quot;: &quot;A String&quot;, # The MIME type of the file that this shortcut points to. The value of this field is a snapshot of the target&#x27;s MIME type, captured when the shortcut is created.
yoshi-code-bot04bafe12021-06-29 00:20:25 -07002392 &quot;targetResourceKey&quot;: &quot;A String&quot;, # The ResourceKey for the target file.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002393 },
2394 &quot;size&quot;: &quot;A String&quot;, # The size of the file&#x27;s content in bytes. This is applicable to binary files in Google Drive and Google Docs files.
2395 &quot;spaces&quot;: [ # The list of spaces which contain the file. The currently supported values are &#x27;drive&#x27;, &#x27;appDataFolder&#x27; and &#x27;photos&#x27;.
2396 &quot;A String&quot;,
2397 ],
2398 &quot;starred&quot;: True or False, # Whether the user has starred the file.
2399 &quot;teamDriveId&quot;: &quot;A String&quot;, # Deprecated - use driveId instead.
2400 &quot;thumbnailLink&quot;: &quot;A String&quot;, # A short-lived link to the file&#x27;s thumbnail, if available. Typically lasts on the order of hours. Only populated when the requesting app can access the file&#x27;s content. If the file isn&#x27;t shared publicly, the URL returned in Files.thumbnailLink must be fetched using a credentialed request.
2401 &quot;thumbnailVersion&quot;: &quot;A String&quot;, # The thumbnail version for use in thumbnail cache invalidation.
2402 &quot;trashed&quot;: True or False, # Whether the file has been trashed, either explicitly or from a trashed parent folder. Only the owner may trash a file. The trashed item is excluded from all files.list responses returned for any user who does not own the file. However, all users with access to the file can see the trashed item metadata in an API response. All users with access can copy, download, export, and share the file.
2403 &quot;trashedTime&quot;: &quot;A String&quot;, # The time that the item was trashed (RFC 3339 date-time). Only populated for items in shared drives.
2404 &quot;trashingUser&quot;: { # Information about a Drive user. # If the file has been explicitly trashed, the user who trashed it. Only populated for items in shared drives.
2405 &quot;displayName&quot;: &quot;A String&quot;, # A plain text displayable name for this user.
2406 &quot;emailAddress&quot;: &quot;A String&quot;, # The email address of the user. This may not be present in certain contexts if the user has not made their email address visible to the requester.
2407 &quot;kind&quot;: &quot;drive#user&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;drive#user&quot;.
2408 &quot;me&quot;: True or False, # Whether this user is the requesting user.
2409 &quot;permissionId&quot;: &quot;A String&quot;, # The user&#x27;s ID as visible in Permission resources.
2410 &quot;photoLink&quot;: &quot;A String&quot;, # A link to the user&#x27;s profile photo, if available.
2411 },
2412 &quot;version&quot;: &quot;A String&quot;, # A monotonically increasing version number for the file. This reflects every change made to the file on the server, even those not visible to the user.
2413 &quot;videoMediaMetadata&quot;: { # Additional metadata about video media. This may not be available immediately upon upload.
2414 &quot;durationMillis&quot;: &quot;A String&quot;, # The duration of the video in milliseconds.
2415 &quot;height&quot;: 42, # The height of the video in pixels.
2416 &quot;width&quot;: 42, # The width of the video in pixels.
2417 },
2418 &quot;viewedByMe&quot;: True or False, # Whether the file has been viewed by this user.
2419 &quot;viewedByMeTime&quot;: &quot;A String&quot;, # The last time the file was viewed by the user (RFC 3339 date-time).
2420 &quot;viewersCanCopyContent&quot;: True or False, # Deprecated - use copyRequiresWriterPermission instead.
2421 &quot;webContentLink&quot;: &quot;A String&quot;, # A link for downloading the content of the file in a browser. This is only available for files with binary content in Google Drive.
2422 &quot;webViewLink&quot;: &quot;A String&quot;, # A link for opening the file in a relevant Google editor or viewer in a browser.
2423 &quot;writersCanShare&quot;: True or False, # Whether users with only writer permission can modify the file&#x27;s permissions. Not populated for items in shared drives.
2424}</pre>
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08002425</div>
2426
2427<div class="method">
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002428 <code class="details" id="watch">watch(fileId, acknowledgeAbuse=None, body=None, includePermissionsForView=None, supportsAllDrives=None, supportsTeamDrives=None)</code>
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08002429 <pre>Subscribes to changes to a file
2430
2431Args:
2432 fileId: string, The ID of the file. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07002433 body: object, The request body.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08002434 The object takes the form of:
2435
2436{ # An notification channel used to watch for resource changes.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002437 &quot;address&quot;: &quot;A String&quot;, # The address where notifications are delivered for this channel.
2438 &quot;expiration&quot;: &quot;A String&quot;, # Date and time of notification channel expiration, expressed as a Unix timestamp, in milliseconds. Optional.
2439 &quot;id&quot;: &quot;A String&quot;, # A UUID or similar unique string that identifies this channel.
2440 &quot;kind&quot;: &quot;api#channel&quot;, # Identifies this as a notification channel used to watch for changes to a resource, which is &quot;api#channel&quot;.
2441 &quot;params&quot;: { # Additional parameters controlling delivery channel behavior. Optional.
2442 &quot;a_key&quot;: &quot;A String&quot;, # Declares a new parameter by name.
2443 },
2444 &quot;payload&quot;: True or False, # A Boolean value to indicate whether payload is wanted. Optional.
2445 &quot;resourceId&quot;: &quot;A String&quot;, # An opaque ID that identifies the resource being watched on this channel. Stable across different API versions.
2446 &quot;resourceUri&quot;: &quot;A String&quot;, # A version-specific identifier for the watched resource.
2447 &quot;token&quot;: &quot;A String&quot;, # An arbitrary string delivered to the target address with each notification delivered over this channel. Optional.
yoshi-code-bota8b35b92021-03-31 13:33:30 -07002448 &quot;type&quot;: &quot;A String&quot;, # The type of delivery mechanism used for this channel. Valid values are &quot;web_hook&quot; (or &quot;webhook&quot;). Both values refer to a channel where Http requests are used to deliver messages.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002449}
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08002450
2451 acknowledgeAbuse: boolean, Whether the user is acknowledging the risk of downloading known malware or other abusive files. This is only applicable when alt=media.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002452 includePermissionsForView: string, Specifies which additional view&#x27;s permissions to include in the response. Only &#x27;published&#x27; is supported.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002453 supportsAllDrives: boolean, Whether the requesting application supports both My Drives and shared drives.
Bu Sun Kim65020912020-05-20 12:08:20 -07002454 supportsTeamDrives: boolean, Deprecated use supportsAllDrives instead.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08002455
2456Returns:
2457 An object of the form:
2458
2459 { # An notification channel used to watch for resource changes.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002460 &quot;address&quot;: &quot;A String&quot;, # The address where notifications are delivered for this channel.
2461 &quot;expiration&quot;: &quot;A String&quot;, # Date and time of notification channel expiration, expressed as a Unix timestamp, in milliseconds. Optional.
2462 &quot;id&quot;: &quot;A String&quot;, # A UUID or similar unique string that identifies this channel.
2463 &quot;kind&quot;: &quot;api#channel&quot;, # Identifies this as a notification channel used to watch for changes to a resource, which is &quot;api#channel&quot;.
2464 &quot;params&quot;: { # Additional parameters controlling delivery channel behavior. Optional.
2465 &quot;a_key&quot;: &quot;A String&quot;, # Declares a new parameter by name.
2466 },
2467 &quot;payload&quot;: True or False, # A Boolean value to indicate whether payload is wanted. Optional.
2468 &quot;resourceId&quot;: &quot;A String&quot;, # An opaque ID that identifies the resource being watched on this channel. Stable across different API versions.
2469 &quot;resourceUri&quot;: &quot;A String&quot;, # A version-specific identifier for the watched resource.
2470 &quot;token&quot;: &quot;A String&quot;, # An arbitrary string delivered to the target address with each notification delivered over this channel. Optional.
yoshi-code-bota8b35b92021-03-31 13:33:30 -07002471 &quot;type&quot;: &quot;A String&quot;, # The type of delivery mechanism used for this channel. Valid values are &quot;web_hook&quot; (or &quot;webhook&quot;). Both values refer to a channel where Http requests are used to deliver messages.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002472}</pre>
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08002473</div>
2474
2475<div class="method">
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002476 <code class="details" id="watch_media">watch_media(fileId, acknowledgeAbuse=None, body=None, includePermissionsForView=None, supportsAllDrives=None, supportsTeamDrives=None)</code>
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08002477 <pre>Subscribes to changes to a file
2478
2479Args:
2480 fileId: string, The ID of the file. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07002481 body: object, The request body.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08002482 The object takes the form of:
2483
2484{ # An notification channel used to watch for resource changes.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002485 &quot;address&quot;: &quot;A String&quot;, # The address where notifications are delivered for this channel.
2486 &quot;expiration&quot;: &quot;A String&quot;, # Date and time of notification channel expiration, expressed as a Unix timestamp, in milliseconds. Optional.
2487 &quot;id&quot;: &quot;A String&quot;, # A UUID or similar unique string that identifies this channel.
2488 &quot;kind&quot;: &quot;api#channel&quot;, # Identifies this as a notification channel used to watch for changes to a resource, which is &quot;api#channel&quot;.
2489 &quot;params&quot;: { # Additional parameters controlling delivery channel behavior. Optional.
2490 &quot;a_key&quot;: &quot;A String&quot;, # Declares a new parameter by name.
2491 },
2492 &quot;payload&quot;: True or False, # A Boolean value to indicate whether payload is wanted. Optional.
2493 &quot;resourceId&quot;: &quot;A String&quot;, # An opaque ID that identifies the resource being watched on this channel. Stable across different API versions.
2494 &quot;resourceUri&quot;: &quot;A String&quot;, # A version-specific identifier for the watched resource.
2495 &quot;token&quot;: &quot;A String&quot;, # An arbitrary string delivered to the target address with each notification delivered over this channel. Optional.
yoshi-code-bota8b35b92021-03-31 13:33:30 -07002496 &quot;type&quot;: &quot;A String&quot;, # The type of delivery mechanism used for this channel. Valid values are &quot;web_hook&quot; (or &quot;webhook&quot;). Both values refer to a channel where Http requests are used to deliver messages.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002497}
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08002498
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08002499 acknowledgeAbuse: boolean, Whether the user is acknowledging the risk of downloading known malware or other abusive files. This is only applicable when alt=media.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002500 includePermissionsForView: string, Specifies which additional view&#x27;s permissions to include in the response. Only &#x27;published&#x27; is supported.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002501 supportsAllDrives: boolean, Whether the requesting application supports both My Drives and shared drives.
Bu Sun Kim65020912020-05-20 12:08:20 -07002502 supportsTeamDrives: boolean, Deprecated use supportsAllDrives instead.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08002503
2504Returns:
2505 The media object as a string.
2506
2507 </pre>
2508</div>
2509
2510</body></html>